티스토리 수익 글 보기
U<=0)){var N,P;const U=(((N=s.flip)==null?void 0:N.index)||0)+1,q=E[U];if(q&&(!(d==="alignment"?y!==Ca(q):!1)||I.every(F=>Ca(F.placement)===y?F.overflows[0]>0:!0)))return{data:{index:U,overflows:I},reset:{placement:q}};let V=(P=I.filter(K=>K.overflows[0]<=0).sort((K,F)=>K.overflows[1]-F.overflows[1])[0])==null?void 0:P.placement;if(!V)switch(h){case”bestFit”:{var L;const K=(L=I.filter(F=>{if(x){const W=Ca(F.placement);return W===y||W===”y”}return!0}).map(F=>[F.placement,F.overflows.filter(W=>W>0).reduce((W,D)=>W+D,0)]).sort((F,W)=>F[1]-W[1])[0])==null?void 0:L[0];K&&(V=K);break}case”initialPlacement”:V=a;break}if(i!==V)return{reset:{placement:V}}}return{}}}};function HR(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function WR(e){return Kae.some(t=>e[t]>=0)}const cle=function(e){return e===void 0&&(e={}),{name:”hide”,options:e,async fn(t){const{rects:n}=t,{strategy:r=”referenceHidden”,…i}=ql(e,t);switch(r){case”referenceHidden”:{const s=await Em(t,{…i,elementContext:”reference”}),o=HR(s,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:WR(o)}}}case”escaped”:{const s=await Em(t,{…i,altBoundary:!0}),o=HR(s,n.floating);return{data:{escapedOffsets:o,escaped:WR(o)}}}default:return{}}}}},oU=new Set([“left”,”top”]);async function ule(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Gl(n),a=Km(n),l=Ca(n)===”y”,c=oU.has(o)?-1:1,u=s&&l?-1:1,d=ql(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:m}=typeof d==”number”?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m==”number”&&(h=a===”end”?m*-1:m),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}const dle=function(e){return e===void 0&&(e=0),{name:”offset”,options:e,async fn(t){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=t,l=await ule(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{…l,placement:o}}}}},fle=function(e){return e===void 0&&(e={}),{name:”shift”,options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:v=>{let{x:p,y}=v;return{x:p,y}}},…l}=ql(e,t),c={x:n,y:r},u=await Em(t,l),d=Ca(Gl(i)),f=kI(d);let h=c[f],m=c[d];if(s){const v=f===”y”?”top”:”left”,p=f===”y”?”bottom”:”right”,y=h+u[v],g=h-u[p];h=YC(y,h,g)}if(o){const v=d===”y”?”top”:”left”,p=d===”y”?”bottom”:”right”,y=m+u[v],g=m-u[p];m=YC(y,m,g)}const _=a.fn({…t,[f]:h,[d]:m});return{…_,data:{x:_.x-n,y:_.y-r,enabled:{[f]:s,[d]:o}}}}}},hle=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=ql(e,t),u={x:n,y:r},d=Ca(i),f=kI(d);let h=u[f],m=u[d];const _=ql(a,t),v=typeof _==”number”?{mainAxis:_,crossAxis:0}:{mainAxis:0,crossAxis:0,…_};if(l){const g=f===”y”?”height”:”width”,k=s.reference[f]-s.floating[g]+v.mainAxis,S=s.reference[f]+s.reference[g]-v.mainAxis;h >>3]|=parseInt(v.substr(g,2),16)<<24-g%8*4;return new c.init(y,p/2)}},f=u.Latin1={stringify:function(v){for(var p=v.words,y=v.sigBytes,g=[],k=0;k >>2]|=(255&v.charCodeAt(g))<<24-g%4*8;return new c.init(y,p)}},h=u.Utf8={stringify:function(v){try{return decodeURIComponent(escape(f.stringify(v)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(v){return f.parse(unescape(encodeURIComponent(v)))}},m=a.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(v){typeof v=="string"&&(v=h.parse(v)),this._data.concat(v),this._nDataBytes+=v.sigBytes},_process:function(v){var p,y=this._data,g=y.words,k=y.sigBytes,S=this.blockSize,x=k/(4*S),E=(x=v?t.ceil(x):t.max((0|x)-this._minBufferSize,0))*S,T=t.min(4*E,k);if(E){for(var A=0;A “)),m(“slurpAllLineEndings”)}function F(){o[o.length-1]?m(“slurpAllLineEndings”,!0):y(“ p[p.length-1]||cr(r.current,{transform:Xn(a)?`translate3d(0, ${T}px, 0)`:`translate3d(${T}px, 0, 0)`})}function x(E,T){if(!n||typeof _!="number"||!p||s===void 0)return null;const A=_===s-1;if(_>=s&&T)return 0;if(A&&!T)return 1;if(!v&&!A)return null;const N=A?_+1:_-1,P=A?p[N]-p[N-1]:p[N+1]-p[N],L=E/Math.abs(P);return A?1-L:L}return{isLastSnapPoint:m,activeSnapPoint:u,shouldFade:v,getPercentageDragged:x,setActiveSnapPoint:d,activeSnapPointIndex:_,onRelease:k,onDrag:S,snapPointsOffset:p}}const RPe=()=>()=>{};function LPe(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:i}=my(),s=X.useRef(null),o=w.useMemo(()=>document.body.style.backgroundColor,[]);function a(){return(window.innerWidth-J2)/window.innerWidth}X.useEffect(()=>{if(t&&n){s.current&&clearTimeout(s.current);const l=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!l)return;IPe(r&&!i?eC(document.body,{background:"black"}):RPe,eC(l,{transformOrigin:Xn(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${xn.DURATION}s`,transitionTimingFunction:`cubic-bezier(${xn.EASE.join(",")})`}));const c=eC(l,{borderRadius:`${AY}px`,overflow:"hidden",...Xn(e)?{transform:`scale(${a()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${a()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{c(),s.current=window.setTimeout(()=>{o?document.body.style.background=o:document.body.style.removeProperty("background")},xn.DURATION*1e3)}}},[t,n,o])}let Kp=null;function DPe({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:i,noBodyStyles:s}){const[o,a]=X.useState(()=>typeof window<"u"?window.location.href:""),l=X.useRef(0),c=X.useCallback(()=>{if(d3()&&Kp===null&&e&&!s){Kp={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:d,innerHeight:f}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-l.current}px`,left:`${-d}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const h=f-window.innerHeight;h&&l.current>=f&&(document.body.style.top=`${-(l.current+h)}px`)}),300)}},[e]),u=X.useCallback(()=>{if(d3()&&Kp!==null&&!s){const d=-parseInt(document.body.style.top,10),f=-parseInt(document.body.style.left,10);Object.assign(document.body.style,Kp),window.requestAnimationFrame(()=>{if(i&&o!==window.location.href){a(window.location.href);return}window.scrollTo(f,d)}),Kp=null}},[o]);return X.useEffect(()=>{function d(){l.current=window.scrollY}return d(),window.addEventListener("scroll",d),()=>{window.removeEventListener("scroll",d)}},[]),X.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||u()}},[t,u]),X.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&c(),t||window.setTimeout(()=>{u()},500)):u())},[e,r,o,t,n,c,u]),{restorePositionSetting:u}}function jPe({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:i,snapPoints:s,shouldScaleBackground:o=!1,setBackgroundColorOnScale:a=!0,closeThreshold:l=APe,scrollLockTimeout:c=MPe,dismissible:u=!0,handleOnly:d=!1,fadeFromIndex:f=s&&s.length-1,activeSnapPoint:h,setActiveSnapPoint:m,fixed:_,modal:v=!0,onClose:p,nested:y,noBodyStyles:g=!1,direction:k="bottom",defaultOpen:S=!1,disablePreventScroll:x=!0,snapToSequentialPoint:E=!1,preventScrollRestoration:T=!1,repositionInputs:A=!0,onAnimationEnd:I,container:N,autoFocus:P=!1}){var L,U;const[q=!1,V]=PY({defaultProp:S,prop:e,onChange:Ee=>{t==null||t(Ee),!Ee&&!y&&te(),setTimeout(()=>{I==null||I(Ee)},xn.DURATION*1e3),Ee&&!v&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),Ee||(document.body.style.pointerEvents="auto")}}),[K,F]=X.useState(!1),[W,D]=X.useState(!1),[oe,me]=X.useState(!1),z=X.useRef(null),Ie=X.useRef(null),Oe=X.useRef(null),Re=X.useRef(null),je=X.useRef(null),Le=X.useRef(!1),fe=X.useRef(null),ye=X.useRef(0),pe=X.useRef(!1),ue=X.useRef(!S),$=X.useRef(0),R=X.useRef(null),G=X.useRef(((L=R.current)==null?void 0:L.getBoundingClientRect().height)||0),re=X.useRef(((U=R.current)==null?void 0:U.getBoundingClientRect().width)||0),ne=X.useRef(0),ie=X.useCallback(Ee=>{s&&Ee===Z.length-1&&(Ie.current=new Date)},[]),{activeSnapPoint:ce,activeSnapPointIndex:O,setActiveSnapPoint:M,onRelease:j,snapPointsOffset:Z,onDrag:J,shouldFade:Y,getPercentageDragged:H}=NPe({snapPoints:s,activeSnapPointProp:h,setActiveSnapPointProp:m,drawerRef:R,fadeFromIndex:f,overlayRef:z,onSnapPointChange:ie,direction:k,container:N,snapToSequentialPoint:E});kPe({isDisabled:!q||W||!v||oe||!K||!A||!x});const{restorePositionSetting:te}=DPe({isOpen:q,modal:v,nested:y??!1,hasBeenOpened:K,preventScrollRestoration:T,noBodyStyles:g});function xe(){return(window.innerWidth-J2)/window.innerWidth}function Me(Ee){var Ye,De;!u&&!s||R.current&&!R.current.contains(Ee.target)||(G.current=((Ye=R.current)==null?void 0:Ye.getBoundingClientRect().height)||0,re.current=((De=R.current)==null?void 0:De.getBoundingClientRect().width)||0,D(!0),Oe.current=new Date,EY()&&window.addEventListener("touchend",()=>Le.current=!1,{once:!0}),Ee.target.setPointerCapture(Ee.pointerId),ye.current=Xn(k)?Ee.pageY:Ee.pageX)}function Ge(Ee,Ye){var De;let Ve=Ee;const nt=(De=window.getSelection())==null?void 0:De.toString(),Xe=R.current?Kb(R.current,k):null,be=new Date;if(Ve.tagName==="SELECT"||Ve.hasAttribute("data-vaul-no-drag")||Ve.closest("[data-vaul-no-drag]"))return!1;if(k==="right"||k==="left")return!0;if(Ie.current&&be.getTime()-Ie.current.getTime()<500)return!1;if(Xe!==null&&(k==="bottom"?Xe>0:Xe<0))return!0;if(nt&&nt.length>0)return!1;if(je.current&&be.getTime()-je.current.getTime()x&&(m=x)}return{[f]:h,[d]:m}}}},mle=function(e){return e===void 0&&(e={}),{name:”size”,options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:o,elements:a}=t,{apply:l=()=>{},…c}=ql(e,t),u=await Em(t,c),d=Gl(i),f=Km(i),h=Ca(i)===”y”,{width:m,height:_}=s.floating;let v,p;d===”top”||d===”bottom”?(v=d,p=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?”start”:”end”)?”left”:”right”):(p=d,v=f===”end”?”top”:”bottom”);const y=_-u.top-u.bottom,g=m-u.left-u.right,k=du(_-u[v],y),S=du(m-u[p],g),x=!t.middlewareData.shift;let E=k,T=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=g),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=y),x&&!f){const I=ls(u.left,0),N=ls(u.right,0),P=ls(u.top,0),L=ls(u.bottom,0);h?T=m-2*(I!==0||N!==0?I+N:ls(u.left,u.right)):E=_-2*(P!==0||L!==0?P+L:ls(u.top,u.bottom))}await l({…t,availableWidth:T,availableHeight:E});const A=await o.getDimensions(a.floating);return m!==A.width||_!==A.height?{reset:{rects:!0}}:{}}}};function uS(){return typeof window<"u"}function Zm(e){return aU(e)?(e.nodeName||"").toLowerCase():"#document"}function _s(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $a(e){var t;return(t=(aU(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function aU(e){return uS()?e instanceof Node||e instanceof _s(e).Node:!1}function Do(e){return uS()?e instanceof Element||e instanceof _s(e).Element:!1}function ja(e){return uS()?e instanceof HTMLElement||e instanceof _s(e).HTMLElement:!1}function qR(e){return!uS()||typeof ShadowRoot>“u”?!1:e instanceof ShadowRoot||e instanceof _s(e).ShadowRoot}const ple=new Set([“inline”,”contents”]);function Uv(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=jo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ple.has(i)}const _le=new Set([“table”,”td”,”th”]);function gle(e){return _le.has(Zm(e))}const vle=[“:popover-open”,”:modal”];function dS(e){return vle.some(t=>{try{return e.matches(t)}catch{return!1}})}const yle=[“transform”,”translate”,”scale”,”rotate”,”perspective”],ble=[“transform”,”translate”,”scale”,”rotate”,”perspective”,”filter”],wle=[“paint”,”layout”,”strict”,”content”];function EI(e){const t=CI(),n=Do(e)?jo(e):e;return yle.some(r=>n[r]?n[r]!==”none”:!1)||(n.containerType?n.containerType!==”normal”:!1)||!t&&(n.backdropFilter?n.backdropFilter!==”none”:!1)||!t&&(n.filter?n.filter!==”none”:!1)||ble.some(r=>(n.willChange||””).includes(r))||wle.some(r=>(n.contain||””).includes(r))}function kle(e){let t=fu(e);for(;ja(t)&&!Cm(t);){if(EI(t))return t;if(dS(t))return null;t=fu(t)}return null}function CI(){return typeof CSS>”u”||!CSS.supports?!1:CSS.supports(“-webkit-backdrop-filter”,”none”)}const Sle=new Set([“html”,”body”,”#document”]);function Cm(e){return Sle.has(Zm(e))}function jo(e){return _s(e).getComputedStyle(e)}function fS(e){return Do(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function fu(e){if(Zm(e)===”html”)return e;const t=e.assignedSlot||e.parentNode||qR(e)&&e.host||$a(e);return qR(t)?t.host:t}function lU(e){const t=fu(e);return Cm(t)?e.ownerDocument?e.ownerDocument.body:e.body:ja(t)&&Uv(t)?t:lU(t)}function wg(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=lU(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=_s(i);if(s){const a=ZC(o);return t.concat(o,o.visualViewport||[],Uv(i)?i:[],a&&n?wg(a):[])}return t.concat(i,wg(i,[],n))}function ZC(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function cU(e){const t=jo(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ja(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=h0(n)!==s||h0(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function TI(e){return Do(e)?e:e.contextElement}function Dh(e){const t=TI(e);if(!ja(t))return Aa(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=cU(t);let o=(s?h0(n.width):n.width)/r,a=(s?h0(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const xle=Aa(0);function uU(e){const t=_s(e);return!CI()||!t.visualViewport?xle:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ele(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==_s(e)?!1:t}function Jd(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=TI(e);let o=Aa(1);t&&(r?Do(r)&&(o=Dh(r)):o=Dh(e));const a=Ele(s,n,r)?uU(s):Aa(0);let l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(s){const f=_s(s),h=r&&Do(r)?_s(r):r;let m=f,_=ZC(m);for(;_&&r&&h!==m;){const v=Dh(_),p=_.getBoundingClientRect(),y=jo(_),g=p.left+(_.clientLeft+parseFloat(y.paddingLeft))*v.x,k=p.top+(_.clientTop+parseFloat(y.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=g,c+=k,m=_s(_),_=ZC(m)}}return p0({width:u,height:d,x:l,y:c})}function hS(e,t){const n=fS(e).scrollLeft;return t?t.left+n:Jd($a(e)).left+n}function dU(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-hS(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Cle(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i===”fixed”,o=$a(r),a=t?dS(t.floating):!1;if(r===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Aa(1);const u=Aa(0),d=ja(r);if((d||!d&&!s)&&((Zm(r)!==”body”||Uv(o))&&(l=fS(r)),ja(r))){const h=Jd(r);c=Dh(r),u.x=h.x+r.clientLeft,u.y=h.y+r.clientTop}const f=o&&!d&&!s?dU(o,l):Aa(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function Tle(e){return Array.from(e.getClientRects())}function Ole(e){const t=$a(e),n=fS(e),r=e.ownerDocument.body,i=ls(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ls(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+hS(e);const a=-n.scrollTop;return jo(r).direction===”rtl”&&(o+=ls(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}const GR=25;function Ile(e,t){const n=_s(e),r=$a(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const u=CI();(!u||u&&t===”fixed”)&&(a=i.offsetLeft,l=i.offsetTop)}const c=hS(r);if(c<=0){const u=r.ownerDocument,d=u.body,f=getComputedStyle(d),h=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,m=Math.abs(r.clientWidth-d.clientWidth-h);m<=GR&&(s-=m)}else c<=GR&&(s+=c);return{width:s,height:o,x:a,y:l}}const Ale=new Set(["absolute","fixed"]);function Mle(e,t){const n=Jd(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=ja(e)?Dh(e):Aa(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,c=r*s.y;return{width:o,height:a,x:l,y:c}}function YR(e,t,n){let r;if(t==="viewport")r=Ile(e,n);else if(t==="document")r=Ole($a(e));else if(Do(t))r=Mle(t,n);else{const i=uU(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return p0(r)}function fU(e,t){const n=fu(e);return n===t||!Do(n)||Cm(n)?!1:jo(n).position==="fixed"||fU(n,t)}function Ple(e,t){const n=t.get(e);if(n)return n;let r=wg(e,[],!1).filter(a=>Do(a)&&Zm(a)!==”body”),i=null;const s=jo(e).position===”fixed”;let o=s?fu(e):e;for(;Do(o)&&!Cm(o);){const a=jo(o),l=EI(o);!l&&a.position===”fixed”&&(i=null),(s?!l&&!i:!l&&a.position===”static”&&!!i&&Ale.has(i.position)||Uv(o)&&!l&&fU(e,o))?r=r.filter(u=>u!==o):i=a,o=fu(o)}return t.set(e,r),r}function Nle(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[…n===”clippingAncestors”?dS(t)?[]:Ple(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((c,u)=>{const d=YR(t,u,i);return c.top=ls(d.top,c.top),c.right=du(d.right,c.right),c.bottom=du(d.bottom,c.bottom),c.left=ls(d.left,c.left),c},YR(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Rle(e){const{width:t,height:n}=cU(e);return{width:t,height:n}}function Lle(e,t,n){const r=ja(t),i=$a(t),s=n===”fixed”,o=Jd(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Aa(0);function c(){l.x=hS(i)}if(r||!r&&!s)if((Zm(t)!==”body”||Uv(i))&&(a=fS(t)),r){const h=Jd(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else i&&c();s&&!r&&i&&c();const u=i&&!r&&!s?dU(i,a):Aa(0),d=o.left+a.scrollLeft-l.x-u.x,f=o.top+a.scrollTop-l.y-u.y;return{x:d,y:f,width:o.width,height:o.height}}function ax(e){return jo(e).position===”static”}function KR(e,t){if(!ja(e)||jo(e).position===”fixed”)return null;if(t)return t(e);let n=e.offsetParent;return $a(e)===n&&(n=n.ownerDocument.body),n}function hU(e,t){const n=_s(e);if(dS(e))return n;if(!ja(e)){let i=fu(e);for(;i&&!Cm(i);){if(Do(i)&&!ax(i))return i;i=fu(i)}return n}let r=KR(e,t);for(;r&&gle(r)&&ax(r);)r=KR(r,t);return r&&Cm(r)&&ax(r)&&!EI(r)?n:r||kle(e)||n}const Dle=async function(e){const t=this.getOffsetParent||hU,n=this.getDimensions,r=await n(e.floating);return{reference:Lle(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function jle(e){return jo(e).direction===”rtl”}const Fle={convertOffsetParentRelativeRectToViewportRelativeRect:Cle,getDocumentElement:$a,getClippingRect:Nle,getOffsetParent:hU,getElementRects:Dle,getClientRects:Tle,getDimensions:Rle,getScale:Dh,isElement:Do,isRTL:jle};function mU(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $le(e,t){let n=null,r;const i=$a(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:h}=c;if(a||t(),!f||!h)return;const m=Wy(d),_=Wy(i.clientWidth-(u+f)),v=Wy(i.clientHeight-(d+h)),p=Wy(u),g={rootMargin:-m+”px “+-_+”px “+-v+”px “+-p+”px”,threshold:ls(0,du(1,l))||1};let k=!0;function S(x){const E=x[0].intersectionRatio;if(E!==l){if(!k)return o();E?o(!1,E):r=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!mU(c,e.getBoundingClientRect())&&o(),k=!1}try{n=new IntersectionObserver(S,{…g,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,g)}n.observe(e)}return o(!0),s}function zle(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver==”function”,layoutShift:a=typeof IntersectionObserver==”function”,animationFrame:l=!1}=r,c=TI(e),u=i||s?[…c?wg(c):[],…wg(t)]:[];u.forEach(p=>{i&&p.addEventListener(“scroll”,n,{passive:!0}),s&&p.addEventListener(“resize”,n)});const d=c&&a?$le(c,n):null;let f=-1,h=null;o&&(h=new ResizeObserver(p=>{let[y]=p;y&&y.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var g;(g=h)==null||g.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let m,_=l?Jd(e):null;l&&v();function v(){const p=Jd(e);_&&!mU(_,p)&&n(),_=p,m=requestAnimationFrame(v)}return n(),()=>{var p;u.forEach(y=>{i&&y.removeEventListener(“scroll”,n),s&&y.removeEventListener(“resize”,n)}),d==null||d(),(p=h)==null||p.disconnect(),h=null,l&&cancelAnimationFrame(m)}}const N$e=Em,Ble=dle,Ule=fle,Vle=lle,Hle=mle,Wle=cle,ZR=ale,qle=hle,Gle=(e,t,n)=>{const r=new Map,i={platform:Fle,…n},s={…i.platform,_c:r};return ole(e,t,{…i,platform:s})};var _t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function za(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cd(){return cd=Object.assign?Object.assign.bind():function(e){for(var t=1;t(Wv(t,(i,s)=>{n&&Hi(i)?e[s]=vU(i,n):e[s]=i},{allOwnKeys:r}),e),Yce=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Kce=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,”super”,{value:t.prototype}),n&&Object.assign(e.prototype,n)},Zce=(e,t,n,r)=>{let i,s,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s– >0;)o=i[s],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&OI(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Xce=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Jce=e=>{if(!e)return null;if(Xm(e))return e;let t=e.length;if(!wU(t))return null;const n=new Array(t);for(;t– >0;)n[t]=e[t];return n},Qce=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&OI(Uint8Array)),eue=(e,t)=>{const r=(e&&e[pS]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},tue=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},nue=Uo(“HTMLFormElement”),rue=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),rL=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),iue=Uo(“RegExp”),xU=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Wv(n,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(r[s]=o||i)}),Object.defineProperties(e,r)},sue=e=>{xU(e,(t,n)=>{if(Hi(e)&&[“arguments”,”caller”,”callee”].indexOf(n)!==-1)return!1;const r=e[n];if(Hi(r)){if(t.enumerable=!1,”writable”in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error(“Can not rewrite read-only method ‘”+n+”‘”)})}})},oue=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return Xm(e)?r(e):r(String(e).split(t)),n},aue=()=>{},lue=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function cue(e){return!!(e&&Hi(e.append)&&e[yU]===”FormData”&&e[pS])}const uue=e=>{const t=new Array(10),n=(r,i)=>{if(Hv(r)){if(t.indexOf(r)>=0)return;if(Vv(r))return r;if(!(“toJSON”in r)){t[i]=r;const s=Xm(r)?[]:{};return Wv(r,(o,a)=>{const l=n(o,i+1);!Tm(l)&&(s[a]=l)}),t[i]=void 0,s}}return r};return n(e,0)},due=Uo(“AsyncFunction”),fue=e=>e&&(Hv(e)||Hi(e))&&Hi(e.then)&&Hi(e.catch),EU=((e,t)=>e?setImmediate:t?((n,r)=>(ud.addEventListener(“message”,({source:i,data:s})=>{i===ud&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),ud.postMessage(n,”*”)}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate==”function”,Hi(ud.postMessage)),hue=typeof queueMicrotask<"u"?queueMicrotask.bind(ud):typeof process<"u"&&process.nextTick||EU,mue=e=>e!=null&&Hi(e[pS]),ae={isArray:Xm,isArrayBuffer:bU,isBuffer:Vv,isFormData:zce,isArrayBufferView:Mce,isString:Pce,isNumber:wU,isBoolean:Nce,isObject:Hv,isPlainObject:lw,isEmptyObject:Rce,isReadableStream:Uce,isRequest:Vce,isResponse:Hce,isHeaders:Wce,isUndefined:Tm,isDate:Lce,isFile:Dce,isBlob:jce,isRegExp:iue,isFunction:Hi,isStream:$ce,isURLSearchParams:Bce,isTypedArray:Qce,isFileList:Fce,forEach:Wv,merge:rT,extend:Gce,trim:qce,stripBOM:Yce,inherits:Kce,toFlatObject:Zce,kindOf:_S,kindOfTest:Uo,endsWith:Xce,toArray:Jce,forEachEntry:eue,matchAll:tue,isHTMLForm:nue,hasOwnProperty:rL,hasOwnProp:rL,reduceDescriptors:xU,freezeMethods:sue,toObjectSet:oue,toCamelCase:rue,noop:aue,toFiniteNumber:lue,findKey:kU,global:ud,isContextDefined:SU,isSpecCompliantForm:cue,toJSONObject:uue,isAsyncFn:due,isThenable:fue,setImmediate:EU,asap:hue,isIterable:mue};function ht(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name=”AxiosError”,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}ae.inherits(ht,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ae.toJSONObject(this.config),code:this.code,status:this.status}}});const CU=ht.prototype,TU={};[“ERR_BAD_OPTION_VALUE”,”ERR_BAD_OPTION”,”ECONNABORTED”,”ETIMEDOUT”,”ERR_NETWORK”,”ERR_FR_TOO_MANY_REDIRECTS”,”ERR_DEPRECATED”,”ERR_BAD_RESPONSE”,”ERR_BAD_REQUEST”,”ERR_CANCELED”,”ERR_NOT_SUPPORT”,”ERR_INVALID_URL”].forEach(e=>{TU[e]={value:e}});Object.defineProperties(ht,TU);Object.defineProperty(CU,”isAxiosError”,{value:!0});ht.from=(e,t,n,r,i,s)=>{const o=Object.create(CU);ae.toFlatObject(e,o,function(u){return u!==Error.prototype},c=>c!==”isAxiosError”);const a=e&&e.message?e.message:”Error”,l=t==null&&e?e.code:t;return ht.call(o,a,l,n,r,i),e&&o.cause==null&&Object.defineProperty(o,”cause”,{value:e,configurable:!0}),o.name=e&&e.name||”Error”,s&&Object.assign(o,s),o};const pue=null;function iT(e){return ae.isPlainObject(e)||ae.isArray(e)}function OU(e){return ae.endsWith(e,”[]”)?e.slice(0,-2):e}function iL(e,t,n){return e?e.concat(t).map(function(i,s){return i=OU(i),!n&&s?”[“+i+”]”:i}).join(n?”.”:””):t}function _ue(e){return ae.isArray(e)&&!e.some(iT)}const gue=ae.toFlatObject(ae,{},null,function(t){return/^is[A-Z]/.test(t)});function vS(e,t,n){if(!ae.isObject(e))throw new TypeError(“target must be an object”);t=t||new FormData,n=ae.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,v){return!ae.isUndefined(v[_])});const r=n.metaTokens,i=n.visitor||u,s=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&ae.isSpecCompliantForm(t);if(!ae.isFunction(i))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(ae.isDate(m))return m.toISOString();if(ae.isBoolean(m))return m.toString();if(!l&&ae.isBlob(m))throw new ht("Blob is not supported. Use a Buffer instead.");return ae.isArrayBuffer(m)||ae.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,_,v){let p=m;if(m&&!v&&typeof m=="object"){if(ae.endsWith(_,"{}"))_=r?_:_.slice(0,-2),m=JSON.stringify(m);else if(ae.isArray(m)&&_ue(m)||(ae.isFileList(m)||ae.endsWith(_,"[]"))&&(p=ae.toArray(m)))return _=OU(_),p.forEach(function(g,k){!(ae.isUndefined(g)||g===null)&&t.append(o===!0?iL([_],k,s):o===null?_:_+"[]",c(g))}),!1}return iT(m)?!0:(t.append(iL(v,_,s),c(m)),!1)}const d=[],f=Object.assign(gue,{defaultVisitor:u,convertValue:c,isVisitable:iT});function h(m,_){if(!ae.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+_.join("."));d.push(m),ae.forEach(m,function(p,y){(!(ae.isUndefined(p)||p===null)&&i.call(t,p,ae.isString(y)?y.trim():y,_,f))===!0&&h(p,_?_.concat(y):[y])}),d.pop()}}if(!ae.isObject(e))throw new TypeError("data must be an object");return h(e),t}function sL(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function II(e,t){this._pairs=[],e&&vS(e,this,t)}const IU=II.prototype;IU.append=function(t,n){this._pairs.push([t,n])};IU.toString=function(t){const n=t?function(r){return t.call(this,r,sL)}:sL;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function vue(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function AU(e,t,n){if(!t)return e;const r=n&&n.encode||vue;ae.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(t,n):s=ae.isURLSearchParams(t)?t.toString():new II(t,n).toString(r),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class oL{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ae.forEach(this.handlers,function(r){r!==null&&t(r)})}}const MU={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yue=typeof URLSearchParams<"u"?URLSearchParams:II,bue=typeof FormData<"u"?FormData:null,wue=typeof Blob<"u"?Blob:null,kue={isBrowser:!0,classes:{URLSearchParams:yue,FormData:bue,Blob:wue},protocols:["http","https","file","blob","url","data"]},AI=typeof window<"u"&&typeof document<"u",sT=typeof navigator=="object"&&navigator||void 0,Sue=AI&&(!sT||["ReactNative","NativeScript","NS"].indexOf(sT.product)<0),xue=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Eue=AI&&window.location.href||"http://localhost",Cue=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:AI,hasStandardBrowserEnv:Sue,hasStandardBrowserWebWorkerEnv:xue,navigator:sT,origin:Eue},Symbol.toStringTag,{value:"Module"})),ti={...Cue,...kue};function Tue(e,t){return vS(e,new ti.classes.URLSearchParams,{visitor:function(n,r,i,s){return ti.isNode&&ae.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function Oue(e){return ae.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]===”[]”?””:t[1]||t[0])}function Iue(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r=n.length;return o=!o&&ae.isArray(i)?i.length:o,l?(ae.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!a):((!i[o]||!ae.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],s)&&ae.isArray(i[o])&&(i[o]=Iue(i[o])),!a)}if(ae.isFormData(e)&&ae.isFunction(e.entries)){const n={};return ae.forEachEntry(e,(r,i)=>{t(Oue(r),i,n,0)}),n}return null}function Aue(e,t,n){if(ae.isString(e))try{return(t||JSON.parse)(e),ae.trim(e)}catch(r){if(r.name!==”SyntaxError”)throw r}return(n||JSON.stringify)(e)}const qv={transitional:MU,adapter:[“xhr”,”http”,”fetch”],transformRequest:[function(t,n){const r=n.getContentType()||””,i=r.indexOf(“application/json”)>-1,s=ae.isObject(t);if(s&&ae.isHTMLForm(t)&&(t=new FormData(t)),ae.isFormData(t))return i?JSON.stringify(PU(t)):t;if(ae.isArrayBuffer(t)||ae.isBuffer(t)||ae.isStream(t)||ae.isFile(t)||ae.isBlob(t)||ae.isReadableStream(t))return t;if(ae.isArrayBufferView(t))return t.buffer;if(ae.isURLSearchParams(t))return n.setContentType(“application/x-www-form-urlencoded;charset=utf-8”,!1),t.toString();let a;if(s){if(r.indexOf(“application/x-www-form-urlencoded”)>-1)return Tue(t,this.formSerializer).toString();if((a=ae.isFileList(t))||r.indexOf(“multipart/form-data”)>-1){const l=this.env&&this.env.FormData;return vS(a?{“files[]”:t}:t,l&&new l,this.formSerializer)}}return s||i?(n.setContentType(“application/json”,!1),Aue(t)):t}],transformResponse:[function(t){const n=this.transitional||qv.transitional,r=n&&n.forcedJSONParsing,i=this.responseType===”json”;if(ae.isResponse(t)||ae.isReadableStream(t))return t;if(t&&ae.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(a){if(o)throw a.name===”SyntaxError”?ht.from(a,ht.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:”XSRF-TOKEN”,xsrfHeaderName:”X-XSRF-TOKEN”,maxContentLength:-1,maxBodyLength:-1,env:{FormData:ti.classes.FormData,Blob:ti.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ae.forEach(["delete","get","head","post","put","patch"],e=>{qv.headers[e]={}});const Mue=ae.toObjectSet([“age”,”authorization”,”content-length”,”content-type”,”etag”,”expires”,”from”,”host”,”if-modified-since”,”if-unmodified-since”,”last-modified”,”location”,”max-forwards”,”proxy-authorization”,”referer”,”retry-after”,”user-agent”]),Pue=e=>{const t={};let n,r,i;return e&&e.split(`
`).forEach(function(o){i=o.indexOf(“:”),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&Mue[n])&&(n===”set-cookie”?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+”, “+r:r)}),t},aL=Symbol(“internals”);function wp(e){return e&&String(e).trim().toLowerCase()}function cw(e){return e===!1||e==null?e:ae.isArray(e)?e.map(cw):String(e)}function Nue(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Rue=e=>/^[-_a-zA-Z0-9^`|~,!#$%&’*+.]+$/.test(e.trim());function cx(e,t,n,r,i){if(ae.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!ae.isString(t)){if(ae.isString(r))return t.indexOf(r)!==-1;if(ae.isRegExp(r))return r.test(t)}}function Lue(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Due(e,t){const n=ae.toCamelCase(” “+t);[“get”,”set”,”has”].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,o){return this[r].call(this,t,i,s,o)},configurable:!0})})}let Wi=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(a,l,c){const u=wp(l);if(!u)throw new Error(“header name must be a non-empty string”);const d=ae.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=cw(a))}const o=(a,l)=>ae.forEach(a,(c,u)=>s(c,u,l));if(ae.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(ae.isString(t)&&(t=t.trim())&&!Rue(t))o(Pue(t),n);else if(ae.isObject(t)&&ae.isIterable(t)){let a={},l,c;for(const u of t){if(!ae.isArray(u))throw TypeError(“Object iterator must return a key-value pair”);a[c=u[0]]=(l=a[c])?ae.isArray(l)?[…l,u[1]]:[l,u[1]]:u[1]}o(a,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=wp(t),t){const r=ae.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Nue(i);if(ae.isFunction(n))return n.call(this,i,r);if(ae.isRegExp(n))return n.exec(i);throw new TypeError(“parser must be boolean|regexp|function”)}}}has(t,n){if(t=wp(t),t){const r=ae.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||cx(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(o){if(o=wp(o),o){const a=ae.findKey(r,o);a&&(!n||cx(r,r[a],a,n))&&(delete r[a],i=!0)}}return ae.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r–;){const s=n[r];(!t||cx(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return ae.forEach(this,(i,s)=>{const o=ae.findKey(r,s);if(o){n[o]=cw(i),delete n[s];return}const a=t?Lue(s):String(s).trim();a!==s&&delete n[s],n[a]=cw(i),r[a]=!0}),this}concat(…t){return this.constructor.concat(this,…t)}toJSON(t){const n=Object.create(null);return ae.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&ae.isArray(r)?r.join(“, “):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+”: “+n).join(`
`)}getSetCookie(){return this.get(“set-cookie”)||[]}get[Symbol.toStringTag](){return”AxiosHeaders”}static from(t){return t instanceof this?t:new this(t)}static concat(t,…n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[aL]=this[aL]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=wp(o);r[a]||(Due(i,o),r[a]=!0)}return ae.isArray(t)?t.forEach(s):s(t),this}};Wi.accessor([“Content-Type”,”Content-Length”,”Accept”,”Accept-Encoding”,”User-Agent”,”Authorization”]);ae.reduceDescriptors(Wi.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ae.freezeMethods(Wi);function ux(e,t){const n=this||qv,r=t||n,i=Wi.from(r.headers);let s=r.data;return ae.forEach(e,function(a){s=a.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function NU(e){return!!(e&&e.__CANCEL__)}function Jm(e,t,n){ht.call(this,e??”canceled”,ht.ERR_CANCELED,t,n),this.name=”CanceledError”}ae.inherits(Jm,ht,{__CANCEL__:!0});function RU(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ht(“Request failed with status code “+n.status,[ht.ERR_BAD_REQUEST,ht.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function jue(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||””}function Fue(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[s];o||(o=c),n[i]=l,r[i]=c;let d=s,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o-1?d:0,e.charCodeAt(h+1)){case 100:case 102:if(u>=l||t[u]==null)break;d{const{min:v,max:p}=s,y=s.constrain(m),g=!_,k=NM(n,_);return g?p:k||c(v,y)?v:c(p,y)?p:y}).map(m=>parseFloat(m.toFixed(3)))}function f(){if(t<=e+i)return[s.max];if(r==="keepSnaps")return o;const{min:m,max:_}=a;return o.slice(m,_)}return{snapsContained:l,scrollContainLimit:a}}function Wke(e,t,n){const r=t[0],i=n?r-e:No(t);return{limit:lf(i,r)}}function qke(e,t,n,r){const s=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:l}=lf(s,o);function c(f){return f===1?l(n.get()):f===-1?a(n.get()):!1}function u(f){if(!c(f))return;const h=e*(f*-1);r.forEach(m=>m.add(h))}return{loop:u}}function Gke(e){const{max:t,length:n}=e;function r(s){const o=s-t;return n?o/-n:0}return{get:r}}function Yke(e,t,n,r,i){const{startEdge:s,endEdge:o}=e,{groupSlides:a}=i,l=d().map(t.measure),c=f(),u=h();function d(){return a(r).map(_=>No(_)[o]-_[0][s]).map(Cn)}function f(){return r.map(_=>n[s]-_[s]).map(_=>-Cn(_))}function h(){return a(c).map(_=>_[0]).map((_,v)=>_+l[v])}return{snaps:c,snapsAligned:u}}function Kke(e,t,n,r,i,s){const{groupSlides:o}=i,{min:a,max:l}=r,c=u();function u(){const f=o(s),h=!e||t===”keepSnaps”;return n.length===1?[s]:h?f:f.slice(a,l).map((m,_,v)=>{const p=!_,y=NM(v,_);if(p){const g=No(v[0])+1;return zF(g)}if(y){const g=ay(s)-No(v)[0]+1;return zF(g,No(v)[0])}return m})}return{slideRegistry:c}}function Zke(e,t,n,r,i){const{reachedAny:s,removeOffset:o,constrain:a}=r;function l(m){return m.concat().sort((_,v)=>Cn(_)-Cn(v))[0]}function c(m){const _=e?o(m):a(m),v=t.map((y,g)=>({diff:u(y-_,0),index:g})).sort((y,g)=>Cn(y.diff)-Cn(g.diff)),{index:p}=v[0];return{index:p,distance:_}}function u(m,_){const v=[m,m+n,m-n];if(!e)return m;if(!_)return l(v);const p=v.filter(y=>PM(y)===_);return p.length?l(p):No(v)-n}function d(m,_){const v=t[m]-i.get(),p=u(v,_);return{index:m,distance:p}}function f(m,_){const v=i.get()+m,{index:p,distance:y}=c(v),g=!e&&s(v);if(!_||g)return{index:p,distance:m};const k=t[p]-y,S=m+u(k,0);return{index:p,distance:S}}return{byDistance:f,byIndex:d,shortcut:u}}function Xke(e,t,n,r,i,s,o){function a(d){const f=d.distance,h=d.index!==t.get();s.add(f),f&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),h&&(n.set(t.get()),t.set(d.index),o.emit(“select”))}function l(d,f){const h=i.byDistance(d,f);a(h)}function c(d,f){const h=t.clone().set(d),m=i.byIndex(h.get(),f);a(m)}return{distance:l,index:c}}function Jke(e,t,n,r,i,s,o,a){const l={passive:!0,capture:!0};let c=0;function u(h){if(!a)return;function m(_){if(new Date().getTime()-c>10)return;o.emit(“slideFocusStart”),e.scrollLeft=0;const y=n.findIndex(g=>g.includes(_));MM(y)&&(i.useDuration(0),r.index(y,0),o.emit(“slideFocus”))}s.add(document,”keydown”,d,!1),t.forEach((_,v)=>{s.add(_,”focus”,p=>{(c1(a)||a(h,p))&&m(v)},l)})}function d(h){h.code===”Tab”&&(c=new Date().getTime())}return{init:u}}function v_(e){let t=e;function n(){return t}function r(l){t=o(l)}function i(l){t+=o(l)}function s(l){t-=o(l)}function o(l){return MM(l)?l:l.get()}return{get:n,set:r,add:i,subtract:s}}function Dq(e,t){const n=e.scroll===”x”?o:a,r=t.style;let i=null,s=!1;function o(f){return`translate3d(${f}px,0px,0px)`}function a(f){return`translate3d(0px,${f}px,0px)`}function l(f){if(s)return;const h=Nke(e.direction(f));h!==i&&(r.transform=n(h),i=h)}function c(f){s=!f}function u(){s||(r.transform=””,t.getAttribute(“style”)||t.removeAttribute(“style”))}return{clear:u,to:l,toggleActive:c}}function Qke(e,t,n,r,i,s,o,a,l){const u=Gg(i),d=Gg(i).reverse(),f=p().concat(y());function h(E,T){return E.reduce((A,I)=>A-i[I],T)}function m(E,T){return E.reduce((A,I)=>h(A,T)>0?A.concat([I]):A,[])}function _(E){return s.map((T,A)=>({start:T-r[A]+.5+E,end:T+t-.5+E}))}function v(E,T,A){const I=_(T);return E.map(N=>{const P=A?0:-n,L=A?n:0,U=A?”end”:”start”,q=I[N][U];return{index:N,loopPoint:q,slideLocation:v_(-1),translate:Dq(e,l[N]),target:()=>a.get()>q?P:L}})}function p(){const E=o[0],T=m(d,E);return v(T,n,!1)}function y(){const E=t-o[0]-1,T=m(u,E);return v(T,-n,!0)}function g(){return f.every(({index:E})=>{const T=u.filter(A=>A!==E);return h(T,t)<=.1})}function k(){f.forEach(E=>{const{target:T,translate:A,slideLocation:I}=E,N=T();N!==I.get()&&(A.to(N),I.set(N))})}function S(){f.forEach(E=>E.translate.clear())}return{canLoop:g,clear:S,loop:k,loopPoints:f}}function eSe(e,t,n){let r,i=!1;function s(l){if(!n)return;function c(u){for(const d of u)if(d.type===”childList”){l.reInit(),t.emit(“slidesChanged”);break}}r=new MutationObserver(u=>{i||(c1(n)||n(l,u))&&c(u)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),i=!0}return{init:s,destroy:o}}function tSe(e,t,n,r){const i={};let s=null,o=null,a,l=!1;function c(){a=new IntersectionObserver(m=>{l||(m.forEach(_=>{const v=t.indexOf(_.target);i[v]=_}),s=null,o=null,n.emit(“slidesInView”))},{root:e.parentElement,threshold:r}),t.forEach(m=>a.observe(m))}function u(){a&&a.disconnect(),l=!0}function d(m){return Yg(i).reduce((_,v)=>{const p=parseInt(v),{isIntersecting:y}=i[p];return(m&&y||!m&&!y)&&_.push(p),_},[])}function f(m=!0){if(m&&s)return s;if(!m&&o)return o;const _=d(m);return m&&(s=_),m||(o=_),_}return{init:c,destroy:u,get:f}}function nSe(e,t,n,r,i,s){const{measureSize:o,startEdge:a,endEdge:l}=e,c=n[0]&&i,u=m(),d=_(),f=n.map(o),h=v();function m(){if(!c)return 0;const y=n[0];return Cn(t[a]-y[a])}function _(){if(!c)return 0;const y=s.getComputedStyle(No(r));return parseFloat(y.getPropertyValue(`margin-${l}`))}function v(){return n.map((y,g,k)=>{const S=!g,x=NM(k,g);return S?f[g]+u:x?f[g]+d:k[g+1][a]-y[a]}).map(Cn)}return{slideSizes:f,slideSizesWithGaps:h,startGap:u,endGap:d}}function rSe(e,t,n,r,i,s,o,a,l){const{startEdge:c,endEdge:u,direction:d}=e,f=MM(n);function h(p,y){return Gg(p).filter(g=>g%y===0).map(g=>p.slice(g,g+y))}function m(p){return p.length?Gg(p).reduce((y,g,k)=>{const S=No(y)||0,x=S===0,E=g===ay(p),T=i[c]-s[S][c],A=i[c]-s[g][u],I=!r&&x?d(o):0,N=!r&&E?d(a):0,P=Cn(A-N-(T+I));return k&&P>t+l&&y.push(g),E&&y.push(p.length),y},[]).map((y,g,k)=>{const S=Math.max(k[g-1]||0);return p.slice(S,y)}):[]}function _(p){return f?h(p,n):m(p)}return{groupSlides:_}}function iSe(e,t,n,r,i,s,o){const{align:a,axis:l,direction:c,startIndex:u,loop:d,duration:f,dragFree:h,dragThreshold:m,inViewThreshold:_,slidesToScroll:v,skipSnaps:p,containScroll:y,watchResize:g,watchSlides:k,watchDrag:S,watchFocus:x}=s,E=2,T=$ke(),A=T.measure(t),I=n.map(T.measure),N=Dke(l,c),P=N.measureSize(A),L=zke(P),U=Rke(a,P),q=!d&&!!y,V=d||!!y,{slideSizes:K,slideSizesWithGaps:F,startGap:W,endGap:D}=nSe(N,A,I,n,V,i),oe=rSe(N,P,v,d,A,I,W,D,E),{snaps:me,snapsAligned:z}=Yke(N,U,A,I,oe),Ie=-No(me)+No(F),{snapsContained:Oe,scrollContainLimit:Re}=Hke(P,Ie,z,y,E),je=q?Oe:z,{limit:Le}=Wke(Ie,je,d),fe=Lq(ay(je),u,d),ye=fe.clone(),pe=Gg(n),ue=({dragHandler:Ge,scrollBody:st,scrollBounds:ct,options:{loop:Qe}})=>{Qe||ct.constrain(Ge.pointerDown()),st.seek()},$=({scrollBody:Ge,translate:st,location:ct,offsetLocation:Qe,previousLocation:Xt,scrollLooper:rn,slideLooper:Dt,dragHandler:Et,animation:In,eventHandler:Ee,scrollBounds:Ye,options:{loop:De}},Ve)=>{const nt=Ge.settled(),Xe=!Ye.shouldConstrain(),be=De?nt:nt&&Xe,ze=be&&!Et.pointerDown();ze&&In.stop();const dt=ct.get()*Ve+Xt.get()*(1-Ve);Qe.set(dt),De&&(rn.loop(Ge.direction()),Dt.loop()),st.to(Qe.get()),ze&&Ee.emit(“settle”),be||Ee.emit(“scroll”)},R=Lke(r,i,()=>ue(Me),Ge=>$(Me,Ge)),G=.68,re=je[fe.get()],ne=v_(re),ie=v_(re),ce=v_(re),O=v_(re),M=Uke(ne,ce,ie,O,f,G),j=Zke(d,je,Ie,Le,O),Z=Xke(R,fe,ye,M,j,O,o),J=Gke(Le),Y=Kg(),H=tSe(t,n,o,_),{slideRegistry:te}=Kke(q,y,je,Re,oe,pe),xe=Jke(e,n,te,Z,M,Y,o,x),Me={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:A,slideRects:I,animation:R,axis:N,dragHandler:jke(N,e,r,i,O,Fke(N,i),ne,R,Z,M,j,fe,o,L,h,m,p,G,S),eventStore:Y,percentOfView:L,index:fe,indexPrevious:ye,limit:Le,location:ne,offsetLocation:ce,previousLocation:ie,options:s,resizeHandler:Bke(t,o,i,n,N,g,T),scrollBody:M,scrollBounds:Vke(Le,ce,O,M,L),scrollLooper:qke(Ie,Le,ce,[ne,ce,ie,O]),scrollProgress:J,scrollSnapList:je.map(J.get),scrollSnaps:je,scrollTarget:j,scrollTo:Z,slideLooper:Qke(N,P,Ie,K,F,me,je,ce,n),slideFocus:xe,slidesHandler:eSe(t,o,k),slidesInView:H,slideIndexes:pe,slideRegistry:te,slidesToScroll:oe,target:O,translate:Dq(N,t)};return Me}function sSe(){let e={},t;function n(c){t=c}function r(c){return e[c]||[]}function i(c){return r(c).forEach(u=>u(t,c)),l}function s(c,u){return e[c]=r(c).concat([u]),l}function o(c,u){return e[c]=r(c).filter(d=>d!==u),l}function a(){e={}}const l={init:n,emit:i,off:o,on:s,clear:a};return l}const oSe={align:”center”,axis:”x”,container:null,slides:null,containScroll:”trimSnaps”,direction:”ltr”,slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function aSe(e){function t(s,o){return Rq(s,o||{})}function n(s){const o=s.breakpoints||{},a=Yg(o).filter(l=>e.matchMedia(l).matches).map(l=>o[l]).reduce((l,c)=>t(l,c),{});return t(s,a)}function r(s){return s.map(o=>Yg(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function lSe(e){let t=[];function n(s,o){return t=o.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(s,e)),o.reduce((a,l)=>Object.assign(a,{[l.name]:l}),{})}function r(){t=t.filter(s=>s.destroy())}return{init:n,destroy:r}}function sk(e,t,n){const r=e.ownerDocument,i=r.defaultView,s=aSe(i),o=lSe(s),a=Kg(),l=sSe(),{mergeOptions:c,optionsAtMedia:u,optionsMediaQueries:d}=s,{on:f,off:h,emit:m}=l,_=N;let v=!1,p,y=c(oSe,sk.globalOptions),g=c(y),k=[],S,x,E;function T(){const{container:pe,slides:ue}=g;x=(N2(pe)?e.querySelector(pe):pe)||e.children[0];const R=N2(ue)?x.querySelectorAll(ue):ue;E=[].slice.call(R||x.children)}function A(pe){const ue=iSe(e,x,E,r,i,pe,l);if(pe.loop&&!ue.slideLooper.canLoop()){const $=Object.assign({},pe,{loop:!1});return A($)}return ue}function I(pe,ue){v||(y=c(y,pe),g=u(y),k=ue||k,T(),p=A(g),d([y,…k.map(({options:$})=>$)]).forEach($=>a.add($,”change”,N)),g.active&&(p.translate.to(p.location.get()),p.animation.init(),p.slidesInView.init(),p.slideFocus.init(ye),p.eventHandler.init(ye),p.resizeHandler.init(ye),p.slidesHandler.init(ye),p.options.loop&&p.slideLooper.loop(),x.offsetParent&&E.length&&p.dragHandler.init(ye),S=o.init(ye,k)))}function N(pe,ue){const $=oe();P(),I(c({startIndex:$},pe),ue),l.emit(“reInit”)}function P(){p.dragHandler.destroy(),p.eventStore.clear(),p.translate.clear(),p.slideLooper.clear(),p.resizeHandler.destroy(),p.slidesHandler.destroy(),p.slidesInView.destroy(),p.animation.destroy(),o.destroy(),a.clear()}function L(){v||(v=!0,a.clear(),P(),l.emit(“destroy”),l.clear())}function U(pe,ue,$){!g.active||v||(p.scrollBody.useBaseFriction().useDuration(ue===!0?0:g.duration),p.scrollTo.index(pe,$||0))}function q(pe){const ue=p.index.add(1).get();U(ue,pe,-1)}function V(pe){const ue=p.index.add(-1).get();U(ue,pe,1)}function K(){return p.index.add(1).get()!==oe()}function F(){return p.index.add(-1).get()!==oe()}function W(){return p.scrollSnapList}function D(){return p.scrollProgress.get(p.offsetLocation.get())}function oe(){return p.index.get()}function me(){return p.indexPrevious.get()}function z(){return p.slidesInView.get()}function Ie(){return p.slidesInView.get(!1)}function Oe(){return S}function Re(){return p}function je(){return e}function Le(){return x}function fe(){return E}const ye={canScrollNext:K,canScrollPrev:F,containerNode:Le,internalEngine:Re,destroy:L,off:h,on:f,emit:m,plugins:Oe,previousScrollSnap:me,reInit:_,rootNode:je,scrollNext:q,scrollPrev:V,scrollProgress:D,scrollSnapList:W,scrollTo:U,selectedScrollSnap:oe,slideNodes:fe,slidesInView:z,slidesNotInView:Ie};return I(t,n),setTimeout(()=>l.emit(“init”),0),ye}sk.globalOptions=void 0;function RM(e={},t=[]){const n=w.useRef(e),r=w.useRef(t),[i,s]=w.useState(),[o,a]=w.useState(),l=w.useCallback(()=>{i&&i.reInit(n.current,r.current)},[i]);return w.useEffect(()=>{AM(n.current,e)||(n.current=e,l())},[e,l]),w.useEffect(()=>{Mke(r.current,t)||(r.current=t,l())},[t,l]),w.useEffect(()=>{if(Ake()&&o){sk.globalOptions=RM.globalOptions;const c=sk(o,n.current,r.current);return s(c),()=>c.destroy()}else s(void 0)},[o,s]),[a,i]}RM.globalOptions=void 0;/**
* filesize
*
* @copyright 2022 Jason Mulligan ")),s.pop()}function R(){v(),s.push({})}function G(be){p(),s[s.length-1].labelId=this.sliceSerialize(be)}function re(){v(),m("ignoreEncode",!0)}function ne(){s[s.length-1].destination=p(),m("ignoreEncode")}function ie(){s[s.length-1].title=p()}function ce(){const be=s[s.length-1],ze=Qg(be.labelId);p(),l$.call(r,ze)||(r[ze]=s[s.length-1]),s.pop()}function O(){m("slurpAllLineEndings",!0)}function M(be){_("headingRank")||(m("headingRank",this.sliceSerialize(be).length),S(),y("{let G=R.currentTarget.value.slice(0,s);if(G.length>0&&P&&!P.test(G)){R.preventDefault();return}typeof I==”string”&&G.length“)}function V(){o.pop(),S(),y(“
“),m(“slurpAllLineEndings”)}function K(){o[o.length-1]||(S(),y(“"),m("slurpOneLineEnding",!0)),m("fencesCount",be+1)}function me(){S(),y("
"),be!==void 0&&be<2&&S(),m("flowCodeSeenData"),m("fencesCount"),m("slurpOneLineEnding")}function Ie(){s.push({image:!0}),n=void 0}function Oe(){s.push({})}function Re(be){s[s.length-1].labelId=this.sliceSerialize(be)}function je(){s[s.length-1].label=p()}function Le(be){s[s.length-1].referenceId=this.sliceSerialize(be)}function fe(){v(),s[s.length-1].destination=""}function ye(){v(),m("ignoreEncode",!0)}function pe(){s[s.length-1].destination=p(),m("ignoreEncode")}function ue(){s[s.length-1].title=p()}function $(){let be=s.length-1;const ze=s[be],dt=ze.referenceId||ze.labelId,At=ze.destination===void 0?r[Qg(dt)]:ze;for(n=!0;be--;)if(s[be].image){n=void 0;break}ze.image?(y('")}function z(){const be=_("fencesCount");be!==void 0&&be<2&&c.tightStack.length>0&&!_("lastWasTag")&&k(),_("flowCodeSeenData")&&S(),y(""):(y(">"),g(ze.label),y("
")}function st(){S(),Qe()}function ct(){m("ignoreEncode")}function Qe(){t.allowDangerousHtml&&m("ignoreEncode",!0)}function Xt(){y("")}function rn(){y("")}function Dt(){m("inCodeText",!0),y("")}function Et(){m("inCodeText"),y("")}function In(){y("")}function Ee(){y("")}function Ye(){S(),y("
")}function De(be){m("characterReferenceType",be.type)}function Ve(be){const ze=this.sliceSerialize(be),dt=_("characterReferenceType")?lxe(ze,_("characterReferenceType")==="characterReferenceMarkerNumeric"?10:16):C7(ze);g(x(dt)),m("characterReferenceType")}function nt(be){const ze=this.sliceSerialize(be);y(''),g(x(ze)),y("")}function Xe(be){const ze=this.sliceSerialize(be);y(''),g(x(ze)),y("")}}function $t(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(l){return St(l)?(e.enter(n),a(l)):t(l)}function a(l){return St(l)&&s++o))return;const E=t.events.length;let T=E,A,I;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){if(A){I=t.events[T][1].end;break}A=!0}for(p(r),x=E;x"))},tableHead(){this.lineEndingIfNeeded(),this.tag("")},tableHeader(){const e=this.getData("tableAlign"),t=this.getData("tableColumn"),n=LE[e[t]];this.lineEndingIfNeeded(),this.tag(" ")},tableData(){const e=this.getData("tableAlign"),t=this.getData("tableColumn");t in e?(this.tag(""),this.setData("tableColumn",t+1)):this.resume()},tableHead(){this.lineEndingIfNeeded(),this.tag("")},tableHeader(){const e=this.getData("tableColumn");this.tag(""),this.setData("tableColumn",e+1)},tableRow(){const e=this.getData("tableAlign");let t=this.getData("tableColumn");for(;t")},tableRow(){this.setData("tableColumn",0),this.lineEndingIfNeeded(),this.tag(" ")}},exit:{codeTextData(e){let t=this.sliceSerialize(e);this.getData("tableAlign")&&(t=t.replace(/\\([\\|])/g,lCe)),this.raw(this.encode(t))},table(){this.setData("tableAlign"),this.setData("slurpAllLineEndings"),this.lineEndingIfNeeded(),this.tag("")},tableBody(){this.lineEndingIfNeeded(),this.tag(" X.useContext(aP),BCe=e=>{const{children:t,...n}=e;return X.createElement(aP.Provider,{value:n},t)};var B7=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(i,s,{get:()=>{const o=s;return t._proxyFormState[o]!==Eo.all&&(t._proxyFormState[o]=!r||Eo.all),n&&(n[o]=!0),e[o]}});return i};const lP=typeof window<"u"?X.useLayoutEffect:X.useEffect;function UCe(e){const t=ip(),{control:n=t.control,disabled:r,name:i,exact:s}=e||{},[o,a]=X.useState(n._formState),l=X.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return lP(()=>n._subscribe({name:i,formState:l.current,exact:s,callback:c=>{!r&&a({...n._formState,...c})}}),[i,r,s]),X.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),X.useMemo(()=>B7(o,n,l.current,!1),[o,n])}var ds=e=>typeof e=="string",U7=(e,t,n,r,i)=>ds(e)?(r&&t.watch.add(e),$e(n,e,i)):Array.isArray(e)?e.map(s=>(r&&t.watch.add(s),$e(n,s))):(r&&(t.watchAll=!0),n),V2=e=>$i(e)||!F7(e);function Tl(e,t,n=new WeakSet){if(V2(e)||V2(t))return e===t;if(pd(e)&&pd(t))return e.getTime()===t.getTime();const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const s of r){const o=e[s];if(!i.includes(s))return!1;if(s!=="ref"){const a=t[s];if(pd(o)&&pd(a)||rr(o)&&rr(a)||Array.isArray(o)&&Array.isArray(a)?!Tl(o,a,n):o!==a)return!1}}return!0}function V7(e){const t=ip(),{control:n=t.control,name:r,defaultValue:i,disabled:s,exact:o,compute:a}=e||{},l=X.useRef(i),c=X.useRef(a),u=X.useRef(void 0);c.current=a;const d=X.useMemo(()=>n._getWatch(r,l.current),[n,r]),[f,h]=X.useState(c.current?c.current(d):d);return lP(()=>n._subscribe({name:r,formState:{values:!0},exact:o,callback:m=>{if(!s){const _=U7(r,n._names,m.values||n._formValues,!1,l.current);if(c.current){const v=c.current(_);Tl(v,u.current)||(h(v),u.current=v)}else h(_)}}}),[n,s,r,o]),X.useEffect(()=>n._removeUnmounted()),f}function VCe(e){const t=ip(),{name:n,disabled:r,control:i=t.control,shouldUnregister:s,defaultValue:o}=e,a=z7(i._names.array,n),l=X.useMemo(()=>$e(i._formValues,n,$e(i._defaultValues,n,o)),[i,n,o]),c=V7({control:i,name:n,defaultValue:l,exact:!0}),u=UCe({control:i,name:n,exact:!0}),d=X.useRef(e),f=X.useRef(void 0),h=X.useRef(i.register(n,{...e.rules,value:c,...as(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;const m=X.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!$e(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!$e(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!$e(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!$e(u.validatingFields,n)},error:{enumerable:!0,get:()=>$e(u.errors,n)}}),[u,n]),_=X.useCallback(g=>h.current.onChange({target:{value:$7(g),name:n},type:ck.CHANGE}),[n]),v=X.useCallback(()=>h.current.onBlur({target:{value:$e(i._formValues,n),name:n},type:ck.BLUR}),[n,i._formValues]),p=X.useCallback(g=>{const k=$e(i._fields,n);k&&g&&(k._f.ref={focus:()=>g.focus&&g.focus(),select:()=>g.select&&g.select(),setCustomValidity:S=>g.setCustomValidity(S),reportValidity:()=>g.reportValidity()})},[i._fields,n]),y=X.useMemo(()=>({name:n,value:c,...as(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:_,onBlur:v,ref:p}),[n,r,u.disabled,_,v,p,c]);return X.useEffect(()=>{const g=i._options.shouldUnregister||s,k=f.current;k&&k!==n&&!a&&i.unregister(k),i.register(n,{...d.current.rules,...as(d.current.disabled)?{disabled:d.current.disabled}:{}});const S=(x,E)=>{const T=$e(i._fields,x);T&&T._f&&(T._f.mount=E)};if(S(n,!0),g){const x=or($e(i._options.defaultValues,n,d.current.defaultValue));Vt(i._defaultValues,n,x),Rn($e(i._formValues,n))&&Vt(i._formValues,n,x)}return!a&&i.register(n),f.current=n,()=>{(a?g&&!i._state.action:g)?i.unregister(n):S(n,!1)}},[n,i,a,s]),X.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),X.useMemo(()=>({field:y,formState:u,fieldState:m}),[y,u,m])}const HCe=e=>e.render(VCe(e));var WCe=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},X_=e=>Array.isArray(e)?e:[e],y$=()=>{let e=[];return{get observers(){return e},next:i=>{for(const s of e)s.next&&s.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(s=>s!==i)}}),unsubscribe:()=>{e=[]}}};function H7(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r],s=t[r];if(i&&rr(i)&&s){const o=H7(i,s);rr(o)&&(n[r]=o)}else e[r]&&(n[r]=s)}return n}var Di=e=>rr(e)&&!Object.keys(e).length,cP=e=>e.type==="file",Co=e=>typeof e=="function",uk=e=>{if(!iP)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},W7=e=>e.type==="select-multiple",uP=e=>e.type==="radio",qCe=e=>uP(e)||ly(e),DE=e=>uk(e)&&e.isConnected;function GCe(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{!r&&typeof i=="object"&&(r=ir.bind(null,i));const s=Zt(i,r);(!n||n>s||isNaN(+s))&&(n=s)}),ir(r,n||NaN)}function gTe(e,t,n){const[r,i]=sp(n==null?void 0:n.in,e,t);return+tv(r)==+tv(i)}function nG(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function vTe(e){return!(!nG(e)&&typeof e!="number"||isNaN(+Zt(e)))}function yTe(e,t,n){const[r,i]=sp(n==null?void 0:n.in,e,t),s=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return s*12+o}function bTe(e,t){const n=Zt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function rG(e,t){const[n,r]=sp(e,t.start,t.end);return{start:n,end:r}}function wTe(e,t){const{start:n,end:r}=rG(t==null?void 0:t.in,e);let i=+n>+r;const s=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setDate(1);let a=1;const l=[];for(;+o<=s;)l.push(ir(n,o)),o.setMonth(o.getMonth()+a);return i?l.reverse():l}function kTe(e,t){const n=Zt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function STe(e,t){const n=Zt(e,t==null?void 0:t.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function iG(e,t){const n=Zt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function xTe(e,t){const{start:n,end:r}=rG(t==null?void 0:t.in,e);let i=+n>+r;const s=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setMonth(0,1);let a=1;const l=[];for(;+o<=s;)l.push(ir(n,o)),o.setFullYear(o.getFullYear()+a);return i?l.reverse():l}function sG(e,t){var a,l,c,u;const n=cy(),r=(t==null?void 0:t.weekStartsOn)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=Zt(e,t==null?void 0:t.in),s=i.getDay(),o=(ss(n)||!1;return{value:m,label:h,disabled:_}})}function xOe(e,t={},n={}){let r={...t==null?void 0:t[He.Day]};return Object.entries(e).filter(([,i])=>i===!0).forEach(([i])=>{r={...r,...n==null?void 0:n[i]}}),r}function EOe(e,t,n){const r=e.today(),i=t?e.startOfISOWeek(r):e.startOfWeek(r),s=[];for(let o=0;o<7;o++){const a=e.addDays(i,o);s.push(a)}return s}function COe(e,t,n,r,i=!1){if(!e||!t)return;const{startOfYear:s,endOfYear:o,eachYearOfInterval:a,getYear:l}=r,c=s(e),u=o(t),d=a({start:c,end:u});return i&&d.reverse(),d.map(f=>{const h=n.formatYearDropdown(f,r);return{value:l(f),label:h,disabled:!1}})}function bG(e,t,n,r){let i=(r??new Ss(n)).format(e,"PPPP");return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i}const TOe=bG;function wG(e,t,n){return(n??new Ss(t)).formatMonthYear(e)}const OOe=wG;function IOe(e,t,n,r){let i=(r??new Ss(n)).format(e,"PPPP");return t!=null&&t.today&&(i=`Today, ${i}`),i}function AOe(e){return"Choose the Month"}function MOe(){return""}function POe(e){return"Go to the Next Month"}function NOe(e){return"Go to the Previous Month"}function ROe(e,t,n){return(n??new Ss(t)).format(e,"cccc")}function LOe(e,t){return`Week ${e}`}function DOe(e){return"Week Number"}function jOe(e){return"Choose the Year"}const FOe=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:OOe,labelDay:TOe,labelDayButton:bG,labelGrid:wG,labelGridcell:IOe,labelMonthDropdown:AOe,labelNav:MOe,labelNext:POe,labelPrevious:NOe,labelWeekNumber:LOe,labelWeekNumberHeader:DOe,labelWeekday:ROe,labelYearDropdown:jOe},Symbol.toStringTag,{value:"Module"})),dy=e=>e instanceof HTMLElement?e:null,$E=e=>[...e.querySelectorAll("[data-animated-month]")??[]],$Oe=e=>dy(e.querySelector("[data-animated-month]")),zE=e=>dy(e.querySelector("[data-animated-caption]")),BE=e=>dy(e.querySelector("[data-animated-weeks]")),zOe=e=>dy(e.querySelector("[data-animated-nav]")),BOe=e=>dy(e.querySelector("[data-animated-weekdays]"));function UOe(e,t,{classNames:n,months:r,focused:i,dateLib:s}){const o=w.useRef(null),a=w.useRef(r),l=w.useRef(!1);w.useLayoutEffect(()=>{const c=a.current;if(a.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||c.length===0||r.length!==c.length)return;const u=s.isSameMonth(r[0].date,c[0].date),d=s.isAfter(r[0].date,c[0].date),f=d?n[ss.caption_after_enter]:n[ss.caption_before_enter],h=d?n[ss.weeks_after_enter]:n[ss.weeks_before_enter],m=o.current,_=e.current.cloneNode(!0);if(_ instanceof HTMLElement?($E(_).forEach(g=>{if(!(g instanceof HTMLElement))return;const k=$Oe(g);k&&g.contains(k)&&g.removeChild(k);const S=zE(g);S&&S.classList.remove(f);const x=BE(g);x&&x.classList.remove(h)}),o.current=_):o.current=null,l.current||u||i)return;const v=m instanceof HTMLElement?$E(m):[],p=$E(e.current);if(p!=null&&p.every(y=>y instanceof HTMLElement)&&v&&v.every(y=>y instanceof HTMLElement)){l.current=!0,e.current.style.isolation="isolate";const y=zOe(e.current);y&&(y.style.zIndex="1"),p.forEach((g,k)=>{const S=v[k];if(!S)return;g.style.position="relative",g.style.overflow="hidden";const x=zE(g);x&&x.classList.add(f);const E=BE(g);E&&E.classList.add(h);const T=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),y&&(y.style.zIndex=""),x&&x.classList.remove(f),E&&E.classList.remove(h),g.style.position="",g.style.overflow="",g.contains(S)&&g.removeChild(S)};S.style.pointerEvents="none",S.style.position="absolute",S.style.overflow="hidden",S.setAttribute("aria-hidden","true");const A=BOe(S);A&&(A.style.opacity="0");const I=zE(S);I&&(I.classList.add(d?n[ss.caption_before_exit]:n[ss.caption_after_exit]),I.addEventListener("animationend",T));const N=BE(S);N&&N.classList.add(d?n[ss.weeks_before_exit]:n[ss.weeks_after_exit]),g.insertBefore(S,g.firstChild)})}})}function VOe(e,t,n,r){const i=e[0],s=e[e.length-1],{ISOWeek:o,fixedWeeks:a,broadcastCalendar:l}=n??{},{addDays:c,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:f,endOfISOWeek:h,endOfMonth:m,endOfWeek:_,isAfter:v,startOfBroadcastWeek:p,startOfISOWeek:y,startOfWeek:g}=r,k=l?p(i,r):o?y(i):g(i),S=l?f(s):o?h(m(s)):_(m(s)),x=u(S,k),E=d(s,i)+1,T=[];for(let N=0;N<=x;N++){const P=c(k,N);if(t&&v(P,t))break;T.push(P)}const I=(l?35:42)*E;if(a&&T.length{const i=r.weeks.reduce((s,o)=>s.concat(o.days.slice()),t.slice());return n.concat(i.slice())},t.slice())}function WOe(e,t,n,r){const{numberOfMonths:i=1}=n,s=[];for(let o=0;ot)break;s.push(a)}return s}function $$(e,t,n,r){const{month:i,defaultMonth:s,today:o=r.today(),numberOfMonths:a=1}=e;let l=i||s||o;const{differenceInCalendarMonths:c,addMonths:u,startOfMonth:d}=r;if(n&&c(n,l)n.concat(r.weeks.slice()),t.slice())}function y1(e,t){const[n,r]=w.useState(e);return[t===void 0?n:t,r]}function XOe(e,t){const[n,r]=GOe(e,t),{startOfMonth:i,endOfMonth:s}=t,o=$$(e,n,r,t),[a,l]=y1(o,e.month?o:void 0);w.useEffect(()=>{const x=$$(e,n,r,t);l(x)},[e.timeZone]);const c=WOe(a,r,e,t),u=VOe(c,e.endMonth?s(e.endMonth):void 0,e,t),d=qOe(c,u,e,t),f=ZOe(d),h=HOe(d),m=KOe(a,n,e,t),_=YOe(a,r,e,t),{disableNavigation:v,onMonthChange:p}=e,y=x=>f.some(E=>E.days.some(T=>T.isEqualTo(x))),g=x=>{if(v)return;let E=i(x);n&&Ei(r)&&(E=i(r)),l(E),p==null||p(E)};return{months:d,weeks:f,days:h,navStart:n,navEnd:r,previousMonth:m,nextMonth:_,goToMonth:g,goToDay:x=>{y(x)||g(x.date)}}}var sa;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(sa||(sa={}));function z$(e){return!e[ln.disabled]&&!e[ln.hidden]&&!e[ln.outside]}function JOe(e,t,n,r){let i,s=-1;for(const o of e){const a=t(o);z$(a)&&(a[ln.focused]&&s{if(u||e){var E;const T=(E=n==null?void 0:n.findIndex(A=>A===e||A===u))!=null?E:-1;p&&T!==-1&&typeof p[T]=="number"&&g(p[T])}},[u,e,n,p,g]);function k({draggedDistance:E,closeDrawer:T,velocity:A,dismissible:I}){if(s===void 0)return;const N=a==="bottom"||a==="right"?(y??0)-E:(y??0)+E,P=_===s-1,L=_===0,U=E>0;if(P&&cr(i.current,{transition:`opacity ${xn.DURATION}s cubic-bezier(${xn.EASE.join(",")})`}),!c&&A>2&&!U){I?T():g(p[0]);return}if(!c&&A>2&&U&&p&&n){g(p[n.length-1]);return}const q=p==null?void 0:p.reduce((K,F)=>typeof K!="number"||typeof F!="number"?K:Math.abs(F-N)-1&&B%1==0&&B<=o}function mn(B){var Q=typeof B;return B!=null&&(Q=="object"||Q=="function")}function mt(B){return B!=null&&typeof B=="object"}var An=R?ce(R):mp;function Qt(B){return ft(B)?up(B):xy(B)}function Er(){return[]}function qn(){return!1}e.exports=Bt})(gk,gk.exports);var INe=gk.exports,ANe=_t&&_t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(py,"__esModule",{value:!0});var ts=Oi,_3=op,MNe=ANe(INe),PNe=function(){function e(t,n){typeof t=="string"&&(t=new _3.InsertDataQuill(ts.DataType.Text,t+"")),this.insert=t,this.attributes=n||{}}return e.createNewLineOp=function(){return new e(ts.NewLine)},e.prototype.isContainerBlock=function(){return this.isBlockquote()||this.isList()||this.isTable()||this.isCodeBlock()||this.isHeader()||this.isBlockAttribute()||this.isCustomTextBlock()},e.prototype.isBlockAttribute=function(){var t=this.attributes;return!!(t.align||t.direction||t.indent)},e.prototype.isBlockquote=function(){return!!this.attributes.blockquote},e.prototype.isHeader=function(){return!!this.attributes.header},e.prototype.isTable=function(){return!!this.attributes.table},e.prototype.isSameHeaderAs=function(t){return t.attributes.header===this.attributes.header&&this.isHeader()},e.prototype.hasSameAdiAs=function(t){return this.attributes.align===t.attributes.align&&this.attributes.direction===t.attributes.direction&&this.attributes.indent===t.attributes.indent},e.prototype.hasSameIndentationAs=function(t){return this.attributes.indent===t.attributes.indent},e.prototype.hasSameAttr=function(t){return MNe.default(this.attributes,t.attributes)},e.prototype.hasHigherIndentThan=function(t){return(Number(this.attributes.indent)||0)>(Number(t.attributes.indent)||0)},e.prototype.isInline=function(){return!(this.isContainerBlock()||this.isVideo()||this.isCustomEmbedBlock())},e.prototype.isCodeBlock=function(){return!!this.attributes["code-block"]},e.prototype.hasSameLangAs=function(t){return this.attributes["code-block"]===t.attributes["code-block"]},e.prototype.isJustNewline=function(){return this.insert.value===ts.NewLine},e.prototype.isList=function(){return this.isOrderedList()||this.isBulletList()||this.isCheckedList()||this.isUncheckedList()},e.prototype.isOrderedList=function(){return this.attributes.list===ts.ListType.Ordered},e.prototype.isBulletList=function(){return this.attributes.list===ts.ListType.Bullet},e.prototype.isCheckedList=function(){return this.attributes.list===ts.ListType.Checked},e.prototype.isUncheckedList=function(){return this.attributes.list===ts.ListType.Unchecked},e.prototype.isACheckList=function(){return this.attributes.list==ts.ListType.Unchecked||this.attributes.list===ts.ListType.Checked},e.prototype.isSameListAs=function(t){return!!t.attributes.list&&(this.attributes.list===t.attributes.list||t.isACheckList()&&this.isACheckList())},e.prototype.isSameTableRowAs=function(t){return!!t.isTable()&&this.isTable()&&this.attributes.table===t.attributes.table},e.prototype.isText=function(){return this.insert.type===ts.DataType.Text},e.prototype.isImage=function(){return this.insert.type===ts.DataType.Image},e.prototype.isFormula=function(){return this.insert.type===ts.DataType.Formula},e.prototype.isVideo=function(){return this.insert.type===ts.DataType.Video},e.prototype.isLink=function(){return this.isText()&&!!this.attributes.link},e.prototype.isCustomEmbed=function(){return this.insert instanceof _3.InsertDataCustom},e.prototype.isCustomEmbedBlock=function(){return this.isCustomEmbed()&&!!this.attributes.renderAsBlock},e.prototype.isCustomTextBlock=function(){return this.isText()&&!!this.attributes.renderAsBlock},e.prototype.isMentions=function(){return this.isText()&&!!this.attributes.mentions},e}();py.DeltaInsertOp=PNe;var I1={},EP={},_y={},CP={};Object.defineProperty(CP,"__esModule",{value:!0});function NNe(e){var t=e;t=t.replace(/^\s*/gm,"");var n=/^((https?|s?ftp|file|blob|mailto|tel):|#|\/|data:image\/)/;return n.test(t)?t:"unsafe:"+t}CP.sanitize=NNe;var lc={};Object.defineProperty(lc,"__esModule",{value:!0});var Vm;(function(e){e[e.Html=0]="Html",e[e.Url=1]="Url"})(Vm||(Vm={}));function RNe(e,t){if(t===void 0&&(t=void 0),!e)return"";var n="";if(t){var r=[].concat(t);n=r.map(function(s){return s.key+(s.value?'="'+s.value+'"':"")}).join(" ")}var i=">";return(e==="img"||e==="br")&&(i="/>"),n?"<"+e+" "+n+i:"<"+e+i}lc.makeStartTag=RNe;function LNe(e){return e===void 0&&(e=""),e&&""+e+">"||""}lc.makeEndTag=LNe;function QY(e){return TP(Vm.Html).reduce(tK,e)}lc.decodeHtml=QY;function DNe(e,t){return t===void 0&&(t=!0),t&&(e=QY(e)),TP(Vm.Html).reduce(eK,e)}lc.encodeHtml=DNe;function jNe(e){var t=TP(Vm.Url),n=t.reduce(tK,e);return t.reduce(eK,n)}lc.encodeLink=jNe;function TP(e){var t=[["&","&"],["<","<"],[">",">"],['"',"""],["'","'"],["\\/","/"],["\\(","("],["\\)",")"]];return e===Vm.Html?t.filter(function(n){var r=n[0];return n[1],r.indexOf("(")===-1&&r.indexOf(")")===-1}):t.filter(function(n){var r=n[0];return n[1],r.indexOf("/")===-1})}function eK(e,t){return e.replace(new RegExp(t[0],"g"),t[1])}function tK(e,t){return e.replace(new RegExp(t[1],"g"),t[0].replace("\\",""))}var FNe=_t&&_t.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(_y,"__esModule",{value:!0});var $Ne=FNe(CP),zNe=lc,BNe=function(){function e(){}return e.sanitize=function(t,n){var r=function(){};n&&typeof n.urlSanitizer=="function"&&(r=n.urlSanitizer);var i=r(t);return typeof i=="string"?i:zNe.encodeLink($Ne.sanitize(t))},e}();_y.OpLinkSanitizer=BNe;Object.defineProperty(EP,"__esModule",{value:!0});var g3=_y,UNe=function(){function e(){}return e.sanitize=function(t,n){var r={};return!t||typeof t!="object"||(t.class&&e.IsValidClass(t.class)&&(r.class=t.class),t.id&&e.IsValidId(t.id)&&(r.id=t.id),e.IsValidTarget(t.target+"")&&(r.target=t.target),t.avatar&&(r.avatar=g3.OpLinkSanitizer.sanitize(t.avatar+"",n)),t["end-point"]&&(r["end-point"]=g3.OpLinkSanitizer.sanitize(t["end-point"]+"",n)),t.slug&&(r.slug=t.slug+"")),r},e.IsValidClass=function(t){return!!t.match(/^[a-zA-Z0-9_\-]{1,500}$/i)},e.IsValidId=function(t){return!!t.match(/^[a-zA-Z0-9_\-\:\.]{1,500}$/i)},e.IsValidTarget=function(t){return["_self","_blank","_parent","_top"].indexOf(t)>-1},e}();EP.MentionSanitizer=UNe;var io={};Object.defineProperty(io,"__esModule",{value:!0});function VNe(e){return e.length===0?null:e.length>=2?e[1]:e[0]}io.preferSecond=VNe;function nK(e){return e.reduce(function(t,n){return t.concat(Array.isArray(n)?nK(n):n)},[])}io.flatten=nK;function HNe(e,t){if(Array.prototype.find)return Array.prototype.find.call(e,t);for(var n=0;n
",xRe=function(){function e(t,n){this.rawDeltaOps=[],this.callbacks={},this.options=kRe.assign({paragraphTag:"p",encodeHtml:!0,classPrefix:"ql",inlineStyles:!1,multiLineBlockquote:!0,multiLineHeader:!0,multiLineCodeblock:!0,multiLineParagraph:!0,multiLineCustomBlock:!0,allowBackgroundClasses:!1,linkTarget:"_blank"},n,{orderedListTag:"ol",bulletListTag:"ul",listItemTag:"li"});var r;this.options.inlineStyles?typeof this.options.inlineStyles=="object"?r=this.options.inlineStyles:r={}:r=void 0,this.converterOptions={encodeHtml:this.options.encodeHtml,classPrefix:this.options.classPrefix,inlineStyles:r,listItemTag:this.options.listItemTag,paragraphTag:this.options.paragraphTag,linkRel:this.options.linkRel,linkTarget:this.options.linkTarget,allowBackgroundClasses:this.options.allowBackgroundClasses,customTag:this.options.customTag,customTagAttributes:this.options.customTagAttributes,customCssClasses:this.options.customCssClasses,customCssStyles:this.options.customCssStyles},this.rawDeltaOps=t}return e.prototype._getListTag=function(t){return t.isOrderedList()?this.options.orderedListTag+"":t.isBulletList()?this.options.bulletListTag+"":t.isCheckedList()?this.options.bulletListTag+"":t.isUncheckedList()?this.options.bulletListTag+"":""},e.prototype.getGroupedOps=function(){var t=bRe.InsertOpsConverter.convert(this.rawDeltaOps,this.options),n=iC.Grouper.pairOpsWithTheirBlock(t),r=iC.Grouper.groupConsecutiveSameStyleBlocks(n,{blockquotes:!!this.options.multiLineBlockquote,header:!!this.options.multiLineHeader,codeBlocks:!!this.options.multiLineCodeblock,customBlocks:!!this.options.multiLineCustomBlock}),i=iC.Grouper.reduceConsecutiveSameStyleBlocksToOne(r),s=new SRe.TableGrouper;i=s.group(i);var o=new wRe.ListNester;return o.nest(i)},e.prototype.convert=function(){var t=this,n=this.getGroupedOps();return n.map(function(r){if(r instanceof Qp.ListGroup)return t._renderWithCallbacks(e_.GroupType.List,r,function(){return t._renderList(r)});if(r instanceof Qp.TableGroup)return t._renderWithCallbacks(e_.GroupType.Table,r,function(){return t._renderTable(r)});if(r instanceof Qp.BlockGroup){var i=r;return t._renderWithCallbacks(e_.GroupType.Block,r,function(){return t._renderBlock(i.op,i.ops)})}else return r instanceof Qp.BlotBlock?t._renderCustom(r.op,null):r instanceof Qp.VideoItem?t._renderWithCallbacks(e_.GroupType.Video,r,function(){var s=r,o=new Jp.OpToHtmlConverter(s.op,t.converterOptions);return o.getHtml()}):t._renderWithCallbacks(e_.GroupType.InlineGroup,r,function(){return t._renderInlines(r.ops,!0)})}).join("")},e.prototype._renderWithCallbacks=function(t,n,r){var i="",s=this.callbacks.beforeRender_cb;i=typeof s=="function"?s.apply(null,[t,n]):"",i||(i=r());var o=this.callbacks.afterRender_cb;return i=typeof o=="function"?o.apply(null,[t,i]):i,i},e.prototype._renderList=function(t){var n=this,r=t.items[0];return ns.makeStartTag(this._getListTag(r.item.op))+t.items.map(function(i){return n._renderListItem(i)}).join("")+ns.makeEndTag(this._getListTag(r.item.op))},e.prototype._renderListItem=function(t){t.item.op.attributes.indent=0;var n=new Jp.OpToHtmlConverter(t.item.op,this.converterOptions),r=n.getHtmlParts(),i=this._renderInlines(t.item.ops,!1);return r.openingTag+i+(t.innerList?this._renderList(t.innerList):"")+r.closingTag},e.prototype._renderTable=function(t){var n=this;return ns.makeStartTag("table")+ns.makeStartTag("tbody")+t.rows.map(function(r){return n._renderTableRow(r)}).join("")+ns.makeEndTag("tbody")+ns.makeEndTag("table")},e.prototype._renderTableRow=function(t){var n=this;return ns.makeStartTag("tr")+t.cells.map(function(r){return n._renderTableCell(r)}).join("")+ns.makeEndTag("tr")},e.prototype._renderTableCell=function(t){var n=new Jp.OpToHtmlConverter(t.item.op,this.converterOptions),r=n.getHtmlParts(),i=this._renderInlines(t.item.ops,!1);return ns.makeStartTag("td",{key:"data-row",value:t.item.op.attributes.table})+r.openingTag+i+r.closingTag+ns.makeEndTag("td")},e.prototype._renderBlock=function(t,n){var r=this,i=new Jp.OpToHtmlConverter(t,this.converterOptions),s=i.getHtmlParts();if(t.isCodeBlock())return s.openingTag+ns.encodeHtml(n.map(function(a){return a.isCustomEmbed()?r._renderCustom(a,t):a.insert.value}).join(""))+s.closingTag;var o=n.map(function(a){return r._renderInline(a,t)}).join("");return s.openingTag+(o||t_)+s.closingTag},e.prototype._renderInlines=function(t,n){var r=this;n===void 0&&(n=!0);var i=t.length-1,s=t.map(function(l,c){return c>0&&c===i&&l.isJustNewline()?"":r._renderInline(l,null)}).join("");if(!n)return s;var o=ns.makeStartTag(this.options.paragraphTag),a=ns.makeEndTag(this.options.paragraphTag);return s===t_||this.options.multiLineParagraph?o+s+a:o+s.split(t_).map(function(l){return l===""?t_:l}).join(a+o)+a},e.prototype._renderInline=function(t,n){if(t.isCustomEmbed())return this._renderCustom(t,n);var r=new Jp.OpToHtmlConverter(t,this.converterOptions);return r.getHtml().replace(/\n/g,t_)},e.prototype._renderCustom=function(t,n){var r=this.callbacks.renderCustomOp_cb;return typeof r=="function"?r.apply(null,[t,n]):""},e.prototype.beforeRender=function(t){typeof t=="function"&&(this.callbacks.beforeRender_cb=t)},e.prototype.afterRender=function(t){typeof t=="function"&&(this.callbacks.afterRender_cb=t)},e.prototype.renderCustomWith=function(t){this.callbacks.renderCustomOp_cb=t},e}();SP.QuillDeltaToHtmlConverter=xRe;Object.defineProperty(_r,"__esModule",{value:!0});var ERe=SP,CRe=_r.QuillDeltaToHtmlConverter=ERe.QuillDeltaToHtmlConverter,TRe=AP;_r.OpToHtmlConverter=TRe.OpToHtmlConverter;var ap=Ii;_r.InlineGroup=ap.InlineGroup;_r.VideoItem=ap.VideoItem;_r.BlockGroup=ap.BlockGroup;_r.ListGroup=ap.ListGroup;_r.ListItem=ap.ListItem;_r.BlotBlock=ap.BlotBlock;var ORe=py;_r.DeltaInsertOp=ORe.DeltaInsertOp;var oK=op;_r.InsertDataQuill=oK.InsertDataQuill;_r.InsertDataCustom=oK.InsertDataCustom;var Pf=Oi;_r.NewLine=Pf.NewLine;_r.ListType=Pf.ListType;_r.ScriptType=Pf.ScriptType;_r.DirectionType=Pf.DirectionType;_r.AlignType=Pf.AlignType;_r.DataType=Pf.DataType;_r.GroupType=Pf.GroupType;class k_ extends Error{}k_.prototype.name="InvalidTokenError";function IRe(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function ARe(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return IRe(t)}catch{return atob(t)}}function MRe(e,t){if(typeof e!="string")throw new k_("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,r=e.split(".")[n];if(typeof r!="string")throw new k_(`Invalid token specified: missing part #${n+1}`);let i;try{i=ARe(r)}catch(s){throw new k_(`Invalid token specified: invalid base64 for part #${n+1} (${s.message})`)}try{return JSON.parse(i)}catch(s){throw new k_(`Invalid token specified: invalid json for part #${n+1} (${s.message})`)}}const PRe="data:image/svg+xml,%3csvg%20width='56'%20height='56'%20viewBox='0%200%2056%2056'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M26.2545%203.48926V29.7405H0C-2.07687e-06%2029.3378%200.20495%2028.935%200.614857%2028.717L10.4295%2023.4972C14.5059%2021.3292%2017.8422%2017.9934%2020.0107%2013.9172L25.2312%204.104C25.4492%203.69417%2025.8518%203.48926%2026.2545%203.48926Z'%20fill='url(%23paint0_radial_2201_22148)'/%3e%3cpath%20d='M52.5091%2029.7405L26.2546%2029.7405L26.2546%203.48926C26.6573%203.48926%2027.06%203.69417%2027.278%204.104L32.4985%2013.9172C34.667%2017.9934%2038.0032%2021.3292%2042.0797%2023.4972L51.8943%2028.7171C52.3042%2028.9351%2052.5091%2029.3378%2052.5091%2029.7405Z'%20fill='url(%23paint1_radial_2201_22148)'/%3e%3cpath%20d='M26.2546%2055.9924L26.2546%2029.7412L52.5091%2029.7412C52.5091%2030.1439%2052.3042%2030.5466%2051.8943%2030.7646L42.0796%2035.9845C38.0032%2038.1525%2034.667%2041.4883%2032.4985%2045.5645L27.278%2055.3777C27.06%2055.7875%2026.6573%2055.9924%2026.2546%2055.9924Z'%20fill='url(%23paint2_radial_2201_22148)'/%3e%3cpath%20d='M0%2029.7412L26.2621%2029.7412V56.0001C25.8595%2056.0001%2025.4568%2055.7951%2025.2388%2055.3853L20.0156%2045.5671C17.8472%2041.491%2014.5109%2038.1551%2010.4345%2035.9871L0.614858%2030.7646C0.204956%2030.5466%203.25422e-06%2030.1439%200%2029.7412Z'%20fill='url(%23paint3_radial_2201_22148)'/%3e%3cpath%20d='M26.2547%2016.4155L26.2547%2029.7411H12.9272L15.3729%2028.4404C19.4493%2026.2724%2022.7856%2022.9366%2024.9541%2018.8604L26.2547%2016.4155Z'%20fill='url(%23paint4_linear_2201_22148)'/%3e%3cpath%20d='M39.5821%2029.7411L37.1364%2028.4404C33.06%2026.2724%2029.7238%2022.9366%2027.5553%2018.8604L26.2546%2016.4155L26.2546%2029.7411L39.5821%2029.7411Z'%20fill='url(%23paint5_linear_2201_22148)'/%3e%3cpath%20d='M26.2546%2043.0668L26.2546%2029.7412L39.5821%2029.7412L37.1364%2031.0419C33.06%2033.2099%2029.7238%2036.5458%2027.5553%2040.622L26.2546%2043.0668Z'%20fill='url(%23paint6_linear_2201_22148)'/%3e%3cpath%20d='M12.9272%2029.7412L26.2547%2029.7412L26.2547%2043.0668L24.9541%2040.622C22.7856%2036.5458%2019.4493%2033.2099%2015.3729%2031.0419L12.9272%2029.7412Z'%20fill='url(%23paint7_linear_2201_22148)'/%3e%3cpath%20d='M46.7757%200V9.22298H37.5515C37.5515%209.08972%2037.6193%208.95647%2037.755%208.88433L40.939%207.19094C42.5577%206.33007%2043.8824%205.00548%2044.7435%203.38691L46.4371%200.203416C46.5092%200.0678062%2046.6425%207.41328e-07%2046.7757%200Z'%20fill='url(%23paint8_radial_2201_22148)'/%3e%3cpath%20d='M56.0001%209.22298L46.7759%209.22298L46.7759%200C46.9091%207.33684e-07%2047.0424%200.0678062%2047.1145%200.203417L48.8081%203.38691C49.6692%205.00548%2050.9939%206.33007%2052.6126%207.19095L55.7966%208.88433C55.9323%208.95647%2056.0001%209.08972%2056.0001%209.22298Z'%20fill='url(%23paint9_radial_2201_22148)'/%3e%3cpath%20d='M46.7759%2018.4461L46.7759%209.22314L56.0001%209.22315C56.0001%209.3564%2055.9323%209.48966%2055.7966%209.5618L52.6126%2011.2552C50.9939%2012.1161%2049.6692%2013.4406%2048.8081%2015.0592L47.1145%2018.2427C47.0424%2018.3783%2046.9091%2018.4461%2046.7759%2018.4461Z'%20fill='url(%23paint10_radial_2201_22148)'/%3e%3cpath%20d='M37.5515%209.22314L46.7784%209.22314V18.4488C46.6452%2018.4488%2046.5119%2018.381%2046.4398%2018.2454L44.7452%2015.0601C43.8842%2013.4416%2042.5594%2012.117%2040.9407%2011.2561L37.755%209.56179C37.6193%209.48965%2037.5515%209.3564%2037.5515%209.22314Z'%20fill='url(%23paint11_radial_2201_22148)'/%3e%3cpath%20d='M46.7764%204.5542L46.256%205.53251C45.5384%206.88132%2044.4345%207.98515%2043.0856%208.70255L42.1069%209.22302L46.7764%209.22302L46.7764%204.5542Z'%20fill='url(%23paint12_linear_2201_22148)'/%3e%3cpath%20d='M51.4454%209.22302L50.4668%208.70255C49.1179%207.98515%2048.0139%206.88133%2047.2963%205.53252L46.7759%204.5542L46.7759%209.22302L51.4454%209.22302Z'%20fill='url(%23paint13_linear_2201_22148)'/%3e%3cpath%20d='M46.7759%2013.892L46.7759%209.22314L51.4454%209.22314L50.4667%209.74362C49.1179%2010.461%2048.0139%2011.5648%2047.2963%2012.9136L46.7759%2013.892Z'%20fill='url(%23paint14_linear_2201_22148)'/%3e%3cpath%20d='M42.1069%209.22314L46.7764%209.22315L46.7764%2013.892L46.256%2012.9136C45.5384%2011.5648%2044.4345%2010.461%2043.0856%209.74361L42.1069%209.22314Z'%20fill='url(%23paint15_linear_2201_22148)'/%3e%3cdefs%3e%3cradialGradient%20id='paint0_radial_2201_22148'%20cx='0'%20cy='0'%20r='1'%20gradientTransform='matrix(-11.9793%2013.0086%20-13.0102%20-11.9778%2025.1065%2016.7319)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.130911'%20stop-color='%231722F6'/%3e%3cstop%20offset='0.651476'%20stop-color='%235C97F5'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint1_radial_2201_22148'%20cx='0'%20cy='0'%20r='1'%20gradientTransform='matrix(-7.46174%2019.8955%20-19.898%20-7.4608%2040.9868%209.845)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.130911'%20stop-color='%231722F6'/%3e%3cstop%20offset='0.651476'%20stop-color='%23A7DFFF'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint2_radial_2201_22148'%20cx='0'%20cy='0'%20r='1'%20gradientTransform='matrix(-21.8112%2020.0868%20-20.0893%20-21.8085%2044.2393%2033.1847)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.130911'%20stop-color='%231722F6'/%3e%3cstop%20offset='0.651476'%20stop-color='%2399D4FF'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint3_radial_2201_22148'%20cx='0'%20cy='0'%20r='1'%20gradientTransform='matrix(-9.56911%209.37655%20-9.37773%20-9.56791%2022.5831%2034.7165)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.130911'%20stop-color='%232C67FF'/%3e%3cstop%20offset='0.651476'%20stop-color='%236CB0FF'/%3e%3c/radialGradient%3e%3clinearGradient%20id='paint4_linear_2201_22148'%20x1='23.018'%20y1='16.4155'%20x2='19.5919'%20y2='29.7413'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.13'%20stop-color='%239786FF'/%3e%3cstop%20offset='0.736193'%20stop-color='%23183DFE'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint5_linear_2201_22148'%20x1='29.4855'%20y1='20.2517'%20x2='31.5043'%20y2='26.7127'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23915DFF'/%3e%3cstop%20offset='1'%20stop-color='%230429EB'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint6_linear_2201_22148'%20x1='26.2546'%20y1='34.31'%20x2='37.3604'%20y2='29.7401'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.28'%20stop-color='%230E31EA'/%3e%3cstop%20offset='1'%20stop-color='%235570FF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint7_linear_2201_22148'%20x1='18.1775'%20y1='40.2402'%20x2='25.2439'%20y2='31.5574'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%238793FF'/%3e%3cstop%20offset='1'%20stop-color='%23072DF3'/%3e%3c/linearGradient%3e%3cradialGradient%20id='paint8_radial_2201_22148'%20cx='0'%20cy='0'%20r='1'%20gradientTransform='matrix(-4.61216%205.34861%20-5.34928%20-4.61151%2046.7758%203.87436)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%230846E6'/%3e%3cstop%20offset='0.651476'%20stop-color='%2361A0FF'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint9_radial_2201_22148'%20cx='0'%20cy='0'%20r='1'%20gradientTransform='matrix(-3.58226%207.97603%20-7.97712%20-3.5819%2052.9125%201.24695)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.130911'%20stop-color='%231722F6'/%3e%3cstop%20offset='0.651476'%20stop-color='%2399C0FF'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint10_radial_2201_22148'%20cx='0'%20cy='0'%20r='1'%20gradientTransform='matrix(-7.66312%207.05719%20-7.05813%20-7.6621%2053.0946%2010.433)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%230140E1'/%3e%3cstop%20offset='0.651476'%20stop-color='%2399D4FF'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint11_radial_2201_22148'%20cx='0'%20cy='0'%20r='1'%20gradientTransform='matrix(-3.36199%203.29431%20-3.29475%20-3.36154%2045.4858%2010.9711)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.130911'%20stop-color='%232C67FF'/%3e%3cstop%20offset='0.651476'%20stop-color='%236CB0FF'/%3e%3c/radialGradient%3e%3clinearGradient%20id='paint12_linear_2201_22148'%20x1='45.6424'%20y1='4.5542'%20x2='44.442'%20y2='9.2231'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.13'%20stop-color='%23BEE8FF'/%3e%3cstop%20offset='0.736193'%20stop-color='%236ED7FF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint13_linear_2201_22148'%20x1='47.5429'%20y1='4.62154'%20x2='49.0768'%20y2='9.22442'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2355C9FF'/%3e%3cstop%20offset='1'%20stop-color='%2388E0FF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint14_linear_2201_22148'%20x1='46.7759'%20y1='10.8239'%20x2='50.667'%20y2='9.22274'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.28'%20stop-color='%2367D9FF'/%3e%3cstop%20offset='1'%20stop-color='%23A7E6FF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint15_linear_2201_22148'%20x1='43.9464'%20y1='12.9016'%20x2='47.3512'%20y2='9.22393'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.221428'%20stop-color='%23FCFEFF'/%3e%3cstop%20offset='0.895295'%20stop-color='%2348D3FF'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";function w3({items:e=[],empty:t}){const n=e.length===0&&t;return b.jsxs("div",{className:"zm-chatsdk__onboarding",children:[n?null:b.jsx("div",{className:"zm-chatsdk__onboarding__logo",children:b.jsx("img",{src:PRe,alt:"logo"})}),b.jsx("div",{className:"zm-chatsdk__onboarding__content",children:n?b.jsxs("div",{className:"zm-chatsdk__onboarding__empty",role:"status","aria-live":"polite",children:[t.image&&b.jsx("img",{src:t.image,alt:t.text||"empty state",className:"zm-chatsdk__onboarding__empty-image"}),t.text&&b.jsx("div",{className:"zm-chatsdk__onboarding__empty-text",children:t.text})]}):e.map(r=>{const i=Pe("zm-chatsdk__onboarding__item",r.highlight&&"zm-chatsdk__onboarding__item--highlight");return r.onClick?b.jsx("button",{type:"button",className:i,onClick:r.onClick,children:r.label},r.label):b.jsx("div",{className:i,children:r.label},r.label)})})]})}const NRe="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.50128%200.997009V8.49735H0C-5.93392e-07%208.3823%200.0585572%208.26724%200.175674%208.20495L2.97986%206.71357C4.14455%206.09414%205.09776%205.14104%205.71733%203.97641L7.2089%201.17265C7.27119%201.05556%207.38624%200.99701%207.50128%200.997009Z'%20fill='url(%23paint0_radial_50190_122)'/%3e%3cpath%20d='M15.0025%208.49735L7.50122%208.49735L7.50122%200.997009C7.61627%200.997009%207.73132%201.05556%207.79361%201.17265L9.28518%203.97642C9.90475%205.14104%2010.858%206.09414%2012.0227%206.71357L14.8268%208.20495C14.944%208.26724%2015.0025%208.3823%2015.0025%208.49735Z'%20fill='url(%23paint1_radial_50190_122)'/%3e%3cpath%20d='M7.50122%2015.9978L7.50122%208.49747L15.0025%208.49747C15.0025%208.61253%2014.9439%208.72759%2014.8268%208.78987L12.0226%2010.2813C10.858%2010.9007%209.90474%2011.8538%209.28518%2013.0184L7.7936%2015.8222C7.73131%2015.9393%207.61627%2015.9978%207.50122%2015.9978Z'%20fill='url(%23paint2_radial_50190_122)'/%3e%3cpath%20d='M0%208.49747L7.50347%208.49747V16C7.38843%2016%207.27338%2015.9414%207.21109%2015.8244L5.71876%2013.0192C5.09919%2011.8545%204.14598%2010.9014%202.98128%2010.282L0.175674%208.78987C0.0585589%208.72758%209.29778e-07%208.61252%200%208.49747Z'%20fill='url(%23paint3_radial_50190_122)'/%3e%3cpath%20d='M7.5012%204.69012L7.5012%208.49744H3.69336L4.39212%208.12581C5.55682%207.50637%206.51003%206.55327%207.12959%205.38865L7.5012%204.69012Z'%20fill='url(%23paint4_linear_50190_122)'/%3e%3cpath%20d='M11.3091%208.49744L10.6103%208.12581C9.4456%207.50637%208.4924%206.55327%207.87283%205.38865L7.50122%204.69012L7.50122%208.49744L11.3091%208.49744Z'%20fill='url(%23paint5_linear_50190_122)'/%3e%3cpath%20d='M7.50122%2012.3048L7.50122%208.49747L11.3091%208.49747L10.6103%208.8691C9.44561%209.48853%208.4924%2010.4416%207.87283%2011.6063L7.50122%2012.3048Z'%20fill='url(%23paint6_linear_50190_122)'/%3e%3cpath%20d='M3.69336%208.49747L7.5012%208.49747L7.5012%2012.3048L7.12959%2011.6063C6.51002%2010.4416%205.55682%209.48853%204.39212%208.8691L3.69336%208.49747Z'%20fill='url(%23paint7_linear_50190_122)'/%3e%3cpath%20d='M13.3645%200V2.63514H10.729C10.729%202.59706%2010.7484%202.55899%2010.7871%202.53838L11.6969%202.05456C12.1593%201.80859%2012.5378%201.43014%2012.7839%200.967689L13.2677%200.058119C13.2884%200.0193732%2013.3264%202.11808e-07%2013.3645%200Z'%20fill='url(%23paint8_radial_50190_122)'/%3e%3cpath%20d='M16%202.63514L13.3645%202.63514L13.3645%200C13.4026%202.09624e-07%2013.4406%200.0193732%2013.4613%200.058119L13.9451%200.967689C14.1912%201.43014%2014.5697%201.80859%2015.0321%202.05456L15.9419%202.53838C15.9806%202.55899%2016%202.59706%2016%202.63514Z'%20fill='url(%23paint9_radial_50190_122)'/%3e%3cpath%20d='M13.3645%205.2703L13.3645%202.63516L16%202.63516C16%202.67324%2015.9806%202.71131%2015.9419%202.73192L15.0321%203.21574C14.5697%203.46171%2014.1912%203.84016%2013.9451%204.30261L13.4613%205.21218C13.4406%205.25093%2013.4026%205.2703%2013.3645%205.2703Z'%20fill='url(%23paint10_radial_50190_122)'/%3e%3cpath%20d='M10.729%202.63516L13.3653%202.63516V5.27106C13.3272%205.27106%2013.2891%205.25169%2013.2685%205.21294L12.7844%204.30287C12.5383%203.84043%2012.1598%203.46197%2011.6974%203.21601L10.7871%202.73192C10.7484%202.71131%2010.729%202.67323%2010.729%202.63516Z'%20fill='url(%23paint11_radial_50190_122)'/%3e%3cpath%20d='M13.3647%201.30121L13.216%201.58073C13.0109%201.9661%2012.6955%202.28148%2012.3101%202.48645L12.0305%202.63516L13.3647%202.63516L13.3647%201.30121Z'%20fill='url(%23paint12_linear_50190_122)'/%3e%3cpath%20d='M14.6986%202.63516L14.419%202.48645C14.0336%202.28148%2013.7182%201.9661%2013.5132%201.58073L13.3645%201.30121L13.3645%202.63516L14.6986%202.63516Z'%20fill='url(%23paint13_linear_50190_122)'/%3e%3cpath%20d='M13.3645%203.96911L13.3645%202.63516L14.6986%202.63516L14.419%202.78387C14.0336%202.98884%2013.7182%203.30422%2013.5132%203.68959L13.3645%203.96911Z'%20fill='url(%23paint14_linear_50190_122)'/%3e%3cpath%20d='M12.0305%202.63516L13.3647%202.63516L13.3647%203.96911L13.216%203.68959C13.0109%203.30422%2012.6955%202.98884%2012.3101%202.78387L12.0305%202.63516Z'%20fill='url(%23paint15_linear_50190_122)'/%3e%3cdefs%3e%3cradialGradient%20id='paint0_radial_50190_122'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(7.1733%204.78062)%20rotate(132.641)%20scale(5.05259%205.05264)'%3e%3cstop%20offset='0.130911'%20stop-color='%231722F6'/%3e%3cstop%20offset='0.651476'%20stop-color='%235C97F5'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint1_radial_50190_122'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(11.7104%202.81294)%20rotate(110.558)%20scale(6.07105%206.07163)'%3e%3cstop%20offset='0.130911'%20stop-color='%231722F6'/%3e%3cstop%20offset='0.651476'%20stop-color='%23A7DFFF'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint2_radial_50190_122'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(12.6397%209.48131)%20rotate(137.357)%20scale(8.47184%208.47175)'%3e%3cstop%20offset='0.130911'%20stop-color='%231722F6'/%3e%3cstop%20offset='0.651476'%20stop-color='%2399D4FF'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint3_radial_50190_122'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(6.45232%209.91899)%20rotate(135.582)%20scale(3.8278%203.82779)'%3e%3cstop%20offset='0.130911'%20stop-color='%232C67FF'/%3e%3cstop%20offset='0.651476'%20stop-color='%236CB0FF'/%3e%3c/radialGradient%3e%3clinearGradient%20id='paint4_linear_50190_122'%20x1='6.57644'%20y1='4.69012'%20x2='5.59754'%20y2='8.4975'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.13'%20stop-color='%239786FF'/%3e%3cstop%20offset='0.736193'%20stop-color='%23183DFE'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint5_linear_50190_122'%20x1='8.42433'%20y1='5.78617'%20x2='9.00113'%20y2='7.63218'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23915DFF'/%3e%3cstop%20offset='1'%20stop-color='%230429EB'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint6_linear_50190_122'%20x1='7.50122'%20y1='9.80283'%20x2='10.6743'%20y2='8.49716'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.28'%20stop-color='%230E31EA'/%3e%3cstop%20offset='1'%20stop-color='%235570FF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint7_linear_50190_122'%20x1='5.19342'%20y1='11.4972'%20x2='7.21239'%20y2='9.01637'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%238793FF'/%3e%3cstop%20offset='1'%20stop-color='%23072DF3'/%3e%3c/linearGradient%3e%3cradialGradient%20id='paint8_radial_50190_122'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(13.3645%201.10696)%20rotate(130.772)%20scale(2.01787%202.0179)'%3e%3cstop%20stop-color='%230846E6'/%3e%3cstop%20offset='0.651476'%20stop-color='%2361A0FF'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint9_radial_50190_122'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(15.1178%200.356272)%20rotate(114.186)%20scale(2.49816%202.4984)'%3e%3cstop%20offset='0.130911'%20stop-color='%231722F6'/%3e%3cstop%20offset='0.651476'%20stop-color='%2399C0FF'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint10_radial_50190_122'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(15.1698%202.98082)%20rotate(137.357)%20scale(2.97647%202.97644)'%3e%3cstop%20stop-color='%230140E1'/%3e%3cstop%20offset='0.651476'%20stop-color='%2399D4FF'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint11_radial_50190_122'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(12.9959%203.13459)%20rotate(135.583)%20scale(1.34485%201.34484)'%3e%3cstop%20offset='0.130911'%20stop-color='%232C67FF'/%3e%3cstop%20offset='0.651476'%20stop-color='%236CB0FF'/%3e%3c/radialGradient%3e%3clinearGradient%20id='paint12_linear_50190_122'%20x1='13.0407'%20y1='1.30121'%20x2='12.6977'%20y2='2.63518'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.13'%20stop-color='%23BEE8FF'/%3e%3cstop%20offset='0.736193'%20stop-color='%236ED7FF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint13_linear_50190_122'%20x1='13.5837'%20y1='1.32045'%20x2='14.0219'%20y2='2.63556'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2355C9FF'/%3e%3cstop%20offset='1'%20stop-color='%2388E0FF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint14_linear_50190_122'%20x1='13.3645'%20y1='3.09251'%20x2='14.4762'%20y2='2.63505'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.28'%20stop-color='%2367D9FF'/%3e%3cstop%20offset='1'%20stop-color='%23A7E6FF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint15_linear_50190_122'%20x1='12.5561'%20y1='3.68615'%20x2='13.5289'%20y2='2.63539'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.221428'%20stop-color='%23FCFEFF'/%3e%3cstop%20offset='0.895295'%20stop-color='%2348D3FF'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";function aK({messageId:e,enableFeedback:t,onFeedback:n,previous:r=null,next:i=null,groupInfo:s}){const o=bq(e),a=OM(o)==="sent",l=typeof t=="function"?t(o):t,c=(s==null?void 0:s.position)==="middle"||(s==null?void 0:s.position)==="last";return b.jsxs(ah,{messageId:e,previous:r,next:i,groupInfo:s,children:[!a&&b.jsx(ah.Avatar,{empty:c}),b.jsx(ah.Content,{}),b.jsx(ah.Footer,{children:a?b.jsx(ah.Time,{}):l&&b.jsxs("div",{className:"zm-chatsdk__message__footer__actions",children:[b.jsx(Si,{variant:"tertiary",icon:"i-chatsdk-upvote-outline",size:"sm",onClick:()=>n==null?void 0:n("upvote",o)}),b.jsx(Si,{variant:"tertiary",icon:"i-chatsdk-downvote-outline",size:"sm",onClick:()=>n==null?void 0:n("downvote",o)})]})})]})}aK.displayName="AICMessage";const RRe=({onboarding:e,onFeedback:t,enableFeedback:n}={})=>({name:"preset-aic-plugin",setup({registerBlock:r,setOptions:i,registerComponents:s}){j7.forEach(o=>{r(o)}),s({Message:o=>b.jsx(aK,{...o,onFeedback:t,enableFeedback:n})}),e&&s({Onboarding:()=>{const o=Va();if("empty"in e)return b.jsx(w3,{empty:e.empty});const a=w.useMemo(()=>e.items.map(l=>({label:l.label,highlight:l.highlight,onClick:()=>{l.action.type==="link"?window.open(l.action.link,"_blank","noopener,noreferrer"):l.action.type==="prompt"?o.sendMessage({text:l.action.text||l.label}):l.action.type==="input"&&o.input(l.action.text||l.label,{overwrite:!0})}})),[e.items,o]);return b.jsx(w3,{items:a})}}),i({message:{header:!1,avatarSize:20,defaultBotAvatar:NRe,sent:{hideAvatar:!0,placement:"right"},received:{bubbleStyle:"none"}},theme:{themeTokens:{colorMessageBubbleBackgroundReceived:"transparent"}},editor:{layout:"compact"},features:{onboarding:e&&("empty"in e||e.items.length>0),jumpToLatest:!0}})},messageAdded(){this.setOptions({features:{onboarding:!1}})}});function Rt({open:e,onOpenChange:t,children:n,container:r}){const[i,s]=w.useState(e);w.useEffect(()=>{s(e)},[e]);const o=w.useCallback(l=>{s(l),l&&(t==null||t(l))},[t]),a=w.useCallback(l=>{l||t==null||t(l)},[t]);return b.jsx(LY,{open:i,onOpenChange:o,onAnimationEnd:a,direction:"right",modal:!1,handleOnly:!0,children:b.jsx(DY,{container:r||void 0,style:{height:"100%"},className:"zm-chatsdk__drawer-content",children:n})})}Rt.displayName="ChatDrawer";function lK({title:e,description:t,children:n,...r}){return b.jsxs(jY,{className:"zm-chatsdk__header",...r,children:[b.jsx($Y,{style:{display:"none"},children:e}),b.jsx(zY,{style:{display:"none"},children:t}),n]})}lK.displayName="ChatDrawerHeader";function cK(e){return b.jsx("div",{className:"zm-chatsdk__drawer-content-inner",...e})}cK.displayName="ChatDrawerContent";function uK({className:e,...t}){return b.jsx(FY,{className:Pe("zm-chatsdk__drawer-footer",e),...t})}uK.displayName="ChatDrawerFooter";Rt.Header=lK;Rt.Content=cK;Rt.Footer=uK;Rt.Close=VPe;function dK({backText:e,article:t,visible:n,setVisible:r,readFullArticleText:i}){const s=Tf();if(!t)return null;const{content:o,title:a,target:l,url:c}=t;let u=null;return c&&(u={href:c,text:i||"Read full article",target:l}),b.jsxs(Rt,{open:n,onOpenChange:r,container:s,children:[b.jsx(Rt.Header,{children:b.jsxs("div",{className:"zm-chatsdk__drawer-article__header",children:[b.jsx(Rt.Close,{asChild:!0,children:b.jsx(Tt,{variant:"tertiary",size:"sm",leadingIcon:"i-chatsdk-chevron-left-outline",children:e||"Back"})}),b.jsx("div",{className:"zm-chatsdk-zva__article__header__right",children:u&&b.jsx(Tt,{variant:"link",size:"sm",trailingIcon:Or.PopOutSmallOutline,onClick:()=>{window.open(u.href,u.target)},children:u.text})})]})}),b.jsx(Rt.Content,{children:b.jsxs("div",{className:"zm-chatsdk__drawer-article__body",children:[b.jsx("div",{className:"zm-chatsdk__drawer-article__body__title",children:a}),b.jsx(ri,{type:"html",content:o,attributes:{"@config":{style:{color:"#6E7680",whiteSpace:"normal"}}}})]})})]})}dK.displayName="ArticleDrawer";function sv({title:e,subtitle:t}){return b.jsx("div",{className:"zm-chatsdk__drawer-form__header",children:b.jsxs("div",{className:"zm-chatsdk__drawer-form__header__content",children:[b.jsx("div",{style:{marginRight:"16px"},children:b.jsx(gt,{className:"zm-chatsdk__drawer-form__header__icon",name:Or.SurveyResultsOutline,size:40,color:"#0e72ed"})}),b.jsxs("div",{children:[b.jsx("strong",{className:"zm-chatsdk__drawer-form__header__title",children:e}),b.jsx("div",{className:"zm-chatsdk__drawer-form__header__subtitle",children:t})]})]})})}const fK=w.forwardRef(function({visible:t,setVisible:n,title:r,subtitle:i,cancelText:s="Back",submitText:o="Submit",schema:a,initialValues:l,onSubmit:c,onChange:u,onFileUpload:d,onCancel:f},h){const m=Tf(),[_,v]=w.useState(!1),p=w.useCallback(async g=>{try{v(!0),await(c==null?void 0:c(g)),n==null||n(!1)}catch(k){console.error("Form submission failed:",k)}finally{v(!1)}},[c,n]),y=w.useCallback(g=>{u==null||u(g)},[u]);return b.jsx(Rt,{open:t,onOpenChange:n,container:m,children:b.jsxs(wi,{ref:h,schema:a,initialValues:l,onSubmit:p,onValuesChange:y,onFileUpload:d,children:[b.jsx(Rt.Header,{children:b.jsx(sv,{title:r,subtitle:i})}),b.jsx(Rt.Content,{className:"zm-chatsdk__drawer-form__content",children:b.jsx(wi.Form,{})}),b.jsxs(Rt.Footer,{className:"zm-chatsdk__drawer-form__footer",children:[b.jsx(Rt.Close,{asChild:!0,children:b.jsx(Tt,{variant:"tertiary",size:"sm",leadingIcon:"i-chatsdk-chevron-left-outline","aria-label":s,disabled:_,onClick:()=>f==null?void 0:f(),children:s})}),b.jsx(wi.Submit,{asChild:!0,children:b.jsx(Tt,{className:"zm-chatsdk__drawer-form__submit",size:"sm",loading:_,loadingIconPosition:"right","aria-label":o,children:o})})]})]})})});fK.displayName="FormDrawer";function LRe({visible:e,setVisible:t,url:n,title:r,subtitle:i,skeleton:s,onClose:o}){const a=Tf(),l=Dn();return n?b.jsxs(Rt,{open:e,onOpenChange:t,container:a,children:[b.jsx(Rt.Header,{children:b.jsxs("div",{className:"zm-chatsdk__drawer-iframe__header",children:[b.jsxs("div",{className:"zm-chatsdk__drawer-iframe__header__content",children:[b.jsx("div",{style:{marginRight:"16px"},children:b.jsx(gt,{className:"zm-chatsdk__drawer-iframe__header__icon",name:Or.SurveyResultsOutline,size:40,color:"#0e72ed"})}),b.jsxs("div",{children:[b.jsx("strong",{className:"zm-chatsdk__drawer-iframe__header__title",children:r||l("chat.surveyCard.title")}),b.jsx("div",{children:i||l("chat.surveyCard.subtitle")})]})]}),b.jsx(Rt.Close,{asChild:!0,children:b.jsx(Si,{variant:"tertiary",onClick:o,icon:"i-chatsdk-close-medium-outline"})})]})}),b.jsx(Rt.Content,{children:b.jsx(Uq,{src:n,customSkeleton:s})})]}):null}const Fn={Requesting:"requesting",Countdown:"countdown",Incorrect:"incorrect",Timeout:"timeout",Verifying:"verifying"},vk={Timeout:"timeout",Incorrect:"incorrect"},Jb=6,DRe={code:"",isFocused:!1,status:void 0,expireTime:0,remainingTime:"00:00"},jRe=(e,t)=>{switch(t.type){case"SET_CODE":return e.status===Fn.Incorrect&&t.payload.length>0?{...e,code:t.payload,status:Fn.Countdown}:{...e,code:t.payload};case"SET_FOCUS":return{...e,isFocused:t.payload};case"SET_STATUS":return{...e,status:t.payload};case"SET_EXPIRE_TIME":return{...e,expireTime:t.payload};case"SET_REMAINING_TIME":return{...e,remainingTime:t.payload};case"RESET_OTP":return{...e,code:"",status:Fn.Requesting};case"INCORRECT_OTP":return{...e,code:"",status:Fn.Incorrect};case"TIMEOUT_OTP":return{...e,code:"",status:Fn.Timeout};default:return e}},k3=e=>{const t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,"0")}:${String(n).padStart(2,"0")}`},FRe=(e,t)=>{const n=w.useRef(null);return w.useEffect(()=>{if(n.current&&(clearInterval(n.current),n.current=null),!e||e<=Date.now()){t();return}const i=()=>{const s=Date.now();return Math.max(0,Math.floor((e-s)/1e3))};return n.current=setInterval(()=>{i()<=0&&(clearInterval(n.current),n.current=null,t())},1e3),()=>{n.current&&clearInterval(n.current)}},[e,t]),{getRemainingTime:w.useCallback(()=>{if(!e)return k3(0);const i=Math.max(0,Math.floor((e-Date.now())/1e3));return k3(i)},[e])}},hK=X.memo(({status:e,remainingTime:t,resendText:n,onResend:r})=>{const i=Dn(),s=t==="00:00";return e===Fn.Requesting?b.jsxs("div",{className:"zm-chatsdk__drawer-otp__desc__time",children:[b.jsx("div",{}),b.jsx(Tt,{className:"zm-chatsdk__drawer-otp__desc__resend",size:"sm",variant:"tertiary",loading:!0,disabled:!0,loadingIconPosition:"right",style:{color:"#6E7680"},children:n||i("chat.otpCard.resend")})]}):e===Fn.Timeout?b.jsxs("div",{className:"zm-chatsdk__drawer-otp__desc--incorrect",children:[b.jsx(gt,{name:Or.AlertTriangleOutline,size:12,style:{marginRight:"4px"}}),b.jsx("span",{children:i("chat.otpCard.timeOut")}),b.jsx(Tt,{size:"sm",variant:"tertiary",onClick:r,children:n||i("chat.otpCard.resend")})]}):b.jsxs(b.Fragment,{children:[e===Fn.Incorrect&&b.jsxs("div",{className:"zm-chatsdk__drawer-otp__desc--incorrect",children:[b.jsx(gt,{name:Or.AlertTriangleOutline,size:12,style:{marginRight:"4px"}}),i("chat.otpCard.incorrect")]}),b.jsxs("div",{className:"zm-chatsdk__drawer-otp__desc__time",children:[s?b.jsx("div",{}):b.jsx("div",{children:`${i("chat.otpCard.timeRemaining")} ${t}`}),b.jsx(Tt,{size:"sm",variant:"tertiary",onClick:r,"aria-label":n||i("chat.otpCard.resend"),children:n||i("chat.otpCard.resend")})]})]})});hK.displayName="OtpDescription";const mK=w.forwardRef(({codeValue:e,status:t,isFocused:n,codeLength:r,onChange:i,onFocus:s,onBlur:o},a)=>{const l=t===Fn.Requesting||t===Fn.Verifying||t===Fn.Timeout,c=t===Fn.Incorrect&&!n;return b.jsx(LM,{maxLength:r,onChange:i,ref:a,value:e,disabled:l,onFocus:s,onBlur:o,containerClassName:"zm-chatsdk__drawer-otp__content__container","aria-invalid":c,children:b.jsx(DM,{style:{width:"100%"},children:Array.from({length:r}).map((u,d)=>b.jsx(jM,{index:d,className:Pe(c&&"zm-chatsdk__drawer-otp__content--incorrect")},d))})})});mK.displayName="OtpInput";function $Re({visible:e,setVisible:t,backText:n,verifyText:r,resendText:i,title:s,subtitle:o,content:a,onVerify:l,onSendOtp:c}){const u=Tf(),d=w.useRef(null),f=w.useRef(null),h=Dn(),[m,_]=w.useReducer(jRe,DRe),{code:v,isFocused:p,status:y,expireTime:g,remainingTime:k}=m,S=w.useCallback(()=>{_({type:"TIMEOUT_OTP"})},[_]),{getRemainingTime:x}=FRe(g,S);w.useEffect(()=>{if(y!==Fn.Timeout){const N=setInterval(()=>{_({type:"SET_REMAINING_TIME",payload:x()}),x()==="00:00"&&d.current&&d.current.blur()},1e3);return()=>clearInterval(N)}},[y,x]);const E=w.useCallback(()=>{d.current&&d.current.focus()},[]),T=w.useCallback(async()=>{if(c)try{_({type:"RESET_OTP"});const N=await c();N!=null&&N.expireTime?(_({type:"SET_EXPIRE_TIME",payload:N.expireTime}),_({type:"SET_STATUS",payload:Fn.Countdown}),E()):(ys.module("ui/form").error("OTP request did not return a valid expireTime."),_({type:"SET_EXPIRE_TIME",payload:0}),_({type:"SET_STATUS",payload:Fn.Countdown}))}catch(N){ys.module("ui/form").error("Failed to request OTP:",N),_({type:"SET_EXPIRE_TIME",payload:0}),_({type:"SET_STATUS",payload:Fn.Countdown})}},[c,E]);w.useEffect(()=>{e&&T()},[e,T]),w.useEffect(()=>{if(e&&y!==Fn.Timeout){const N=setTimeout(E,500);return()=>clearTimeout(N)}},[e,y,E]);const A=w.useCallback(N=>{var L;const P=N.replace(/\s/g,"");_({type:"SET_CODE",payload:P}),P.length>=Jb&&((L=d.current)==null||L.blur(),setTimeout(()=>{var U;(U=f.current)==null||U.focus()},0))},[]),I=w.useCallback(async()=>{if(!(!l||v.length!==Jb))try{_({type:"SET_STATUS",payload:Fn.Verifying}),await l(v),t==null||t(!1)}catch(N){N instanceof Error&&(N.message===vk.Timeout?_({type:"TIMEOUT_OTP"}):N.message===vk.Incorrect?_({type:"INCORRECT_OTP"}):(ys.module("ui/form").error("OTP verification error:",N),_({type:"INCORRECT_OTP"})))}},[v,l,t]);return b.jsxs(Rt,{open:e,onOpenChange:t,container:u,"aria-labelledby":"otp-drawer-title",children:[b.jsx(Rt.Header,{children:b.jsxs("div",{className:"zm-chatsdk__drawer-otp__header",children:[b.jsx("div",{className:"zm-chatsdk__drawer-otp__header__title",id:"otp-drawer-title",children:s||h("chat.otpCard.title")}),b.jsx("div",{children:o||h("chat.otpCard.subTitle")})]})}),b.jsxs(Rt.Content,{className:"zm-chatsdk__drawer-otp__content",children:[b.jsx("div",{className:"zm-chatsdk__drawer-otp__content__top",children:a||h("chat.otpCard.content")}),b.jsx(mK,{codeValue:v,status:y,isFocused:p,codeLength:Jb,ref:d,onChange:A,onFocus:()=>_({type:"SET_FOCUS",payload:!0}),onBlur:()=>_({type:"SET_FOCUS",payload:!1})}),b.jsx("div",{className:"zm-chatsdk__drawer-otp__desc",children:b.jsx(hK,{status:y,remainingTime:k,resendText:i,onResend:T})})]}),b.jsxs(Rt.Footer,{className:"zm-chatsdk__drawer-otp__footer",children:[b.jsx(Rt.Close,{asChild:!0,children:b.jsx(Tt,{variant:"tertiary",size:"sm",leadingIcon:"i-chatsdk-chevron-left-outline","aria-label":n||h("chat.otpCard.back"),children:n||h("chat.otpCard.back")})}),b.jsx(Tt,{ref:f,className:"zm-chatsdk__drawer-otp__send",size:"sm","aria-label":r||h("chat.otpCard.verify"),onClick:I,disabled:v.length!==Jb||y===Fn.Verifying||y===Fn.Requesting,loading:y===Fn.Verifying,loadingIconPosition:"right",children:r||h("chat.otpCard.verify")})]})]})}function zRe(){return b.jsxs("div",{className:"zm-chatsdk__dots-indicator",children:[b.jsxs("div",{className:"zm-chatsdk__dots-indicator__shadow",children:[b.jsx("div",{className:"zm-chatsdk__dots-indicator__shadow-dot"}),b.jsx("div",{className:"zm-chatsdk__dots-indicator__shadow-dot"}),b.jsx("div",{className:"zm-chatsdk__dots-indicator__shadow-dot"})]}),b.jsx("div",{className:"zm-chatsdk__dots-indicator__dot zm-chatsdk__dots-indicator__dot--first",children:b.jsx("div",{className:"zm-chatsdk__dots-indicator__ripple zm-chatsdk__dots-indicator__ripple--first"})}),b.jsx("div",{className:"zm-chatsdk__dots-indicator__dot zm-chatsdk__dots-indicator__dot--second",children:b.jsx("div",{className:"zm-chatsdk__dots-indicator__ripple zm-chatsdk__dots-indicator__ripple--second"})}),b.jsx("div",{className:"zm-chatsdk__dots-indicator__dot zm-chatsdk__dots-indicator__dot--third",children:b.jsx("div",{className:"zm-chatsdk__dots-indicator__ripple zm-chatsdk__dots-indicator__ripple--third"})})]})}function BRe({loadingIndicator:e}){return b.jsx("div",{className:"zm-chatsdk__loading-layer",children:e??b.jsx(zRe,{})})}const URe=()=>({name:"drawer-plugin",setup({registerLayer:e}){e("drawer:article",{store:()=>({article:null}),render:dK}),e("drawer:iframe",{store:()=>({article:null}),render:LRe}),e("drawer:otp-form",{store:()=>({backText:void 0,verifyText:void 0,resendText:void 0,title:void 0,subtitle:void 0,content:void 0,onVerify:void 0,onSendOtp:void 0}),render:$Re}),e("drawer:form",{store:()=>({schema:{}}),render:fK}),e("loading",{store:()=>({}),render:BRe})}});function VRe(e){return e&&typeof e.then=="function"}Promise.resolve(!1);var HRe=Promise.resolve(!0),$l=Promise.resolve();function gd(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function WRe(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function vy(){return Math.random().toString(36).substring(2)}var sC=0;function yy(){var e=Date.now()*1e3;return e<=sC&&(e=sC+1),sC=e,e}function qRe(){return typeof navigator<"u"&&typeof navigator.locks<"u"&&typeof navigator.locks.request=="function"}var GRe=yy,YRe="native";function KRe(e){var t={time:yy(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(n){t.messagesCallback&&t.messagesCallback(n.data)},t}function ZRe(e){e.bc.close(),e.subFns=[]}function XRe(e,t){try{return e.bc.postMessage(t,!1),$l}catch(n){return Promise.reject(n)}}function JRe(e,t){e.messagesCallback=t}function QRe(){if(typeof globalThis<"u"&&globalThis.Deno&&globalThis.Deno.args)return!0;if((typeof window<"u"||typeof self<"u")&&typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}function eLe(){return 150}var tLe={create:KRe,close:ZRe,onMessage:JRe,postMessage:XRe,canBeUsed:QRe,type:YRe,averageResponseTime:eLe,microSeconds:GRe};class pK{constructor(t){Te(this,"ttl");Te(this,"map",new Map);Te(this,"_to",!1);this.ttl=t}has(t){return this.map.has(t)}add(t){this.map.set(t,_K()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,nLe(this)},0))}clear(){this.map.clear()}}function nLe(e){const t=_K()-e.ttl,n=e.map[Symbol.iterator]();for(;;){const r=n.next().value;if(!r)return;const i=r[0];if(r[1]