intlayer-editor 8.7.5-canary.0 → 8.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -156,7 +156,7 @@ Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}
|
|
|
156
156
|
.block-interactivity-${e} {pointer-events: none;}
|
|
157
157
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
158
158
|
`},ZN=0,QN=[];function $N(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),i=v.useState(ZN++)[0],a=v.useState(xN)[0],o=v.useRef(e);v.useEffect(function(){o.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=XM([e.lockRef.current],(e.shards||[]).map(JN),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=v.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=KN(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=zN(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=zN(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return GN(h,t,e,h===`h`?s:c,!0)},[]),c=v.useCallback(function(e){var n=e;if(!(!QN.length||QN[QN.length-1]!==a)){var r=`deltaY`in n?qN(n):KN(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&YN(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(JN).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=v.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:eP(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=v.useCallback(function(e){n.current=KN(e),r.current=void 0},[]),d=v.useCallback(function(t){l(t.type,qN(t),t.target,s(t,e.lockRef.current))},[]),f=v.useCallback(function(t){l(t.type,KN(t),t.target,s(t,e.lockRef.current))},[]);v.useEffect(function(){return QN.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,PN),document.addEventListener(`touchmove`,c,PN),document.addEventListener(`touchstart`,u,PN),function(){QN=QN.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,PN),document.removeEventListener(`touchmove`,c,PN),document.removeEventListener(`touchstart`,u,PN)}},[]);var p=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(a,{styles:XN(i)}):null,p?v.createElement(jN,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function eP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var tP=uN(dN,$N),nP=v.forwardRef(function(e,t){return v.createElement(pN,JM({},e,{ref:t,sideCar:tP}))});nP.classNames=pN.classNames;var rP=[` `,`Enter`,`ArrowUp`,`ArrowDown`],iP=[` `,`Enter`],aP=`Select`,[oP,sP,cP]=Oc(aP),[lP,uP]=bc(aP,[cP,vM]),dP=vM(),[fP,pP]=lP(aP),[mP,hP]=lP(aP),gP=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m}=e,h=dP(t),[g,_]=v.useState(null),[y,b]=v.useState(null),[x,S]=v.useState(!1),C=jk(l),[w,E]=il({prop:r,defaultProp:i??!1,onChange:a,caller:aP}),[D,O]=il({prop:o,defaultProp:s,onChange:c,caller:aP}),k=v.useRef(null),A=g?m||!!g.closest(`form`):!0,[j,M]=v.useState(new Set),N=Array.from(j).map(e=>e.props.value).join(`;`);return(0,T.jsx)(PM,{...h,children:(0,T.jsxs)(fP,{required:p,scope:t,trigger:g,onTriggerChange:_,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:x,onValueNodeHasChildrenChange:S,contentId:$k(),value:D,onValueChange:O,open:w,onOpenChange:E,dir:C,triggerPointerDownPosRef:k,disabled:f,children:[(0,T.jsx)(oP.Provider,{scope:t,children:(0,T.jsx)(mP,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(e=>{M(t=>new Set(t).add(e))},[]),onNativeOptionRemove:v.useCallback(e=>{M(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),A?(0,T.jsxs)(dF,{"aria-hidden":!0,required:p,tabIndex:-1,name:u,autoComplete:d,value:D,onChange:e=>O(e.target.value),disabled:f,form:m,children:[D===void 0?(0,T.jsx)(`option`,{value:``}):null,Array.from(j)]},N):null]})})};gP.displayName=aP;var _P=`SelectTrigger`,vP=v.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...i}=e,a=dP(n),o=pP(_P,n),s=o.disabled||r,c=vc(t,o.onTriggerChange),l=sP(n),u=v.useRef(`touch`),[d,f,p]=pF(e=>{let t=l().filter(e=>!e.disabled),n=mF(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),m=e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,T.jsx)(FM,{asChild:!0,...a,children:(0,T.jsx)(Ac.button,{type:`button`,role:`combobox`,"aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":fF(o.value)?``:void 0,...i,ref:c,onClick:hc(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:hc(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(m(e),e.preventDefault())}),onKeyDown:hc(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&f(e.key),!(t&&e.key===` `)&&rP.includes(e.key)&&(m(),e.preventDefault())})})})});vP.displayName=_P;var yP=`SelectValue`,bP=v.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=pP(yP,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=vc(t,c.onValueNodeChange);return Yc(()=>{l(u)},[l,u]),(0,T.jsx)(Ac.span,{...s,ref:d,style:{pointerEvents:`none`},children:fF(c.value)?(0,T.jsx)(T.Fragment,{children:o}):a})});bP.displayName=yP;var xP=`SelectIcon`,SP=v.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,T.jsx)(Ac.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})});SP.displayName=xP;var CP=`SelectPortal`,wP=e=>(0,T.jsx)(Zc,{asChild:!0,...e});wP.displayName=CP;var TP=`SelectContent`,EP=v.forwardRef((e,t)=>{let n=pP(TP,e.__scopeSelect),[r,i]=v.useState();if(Yc(()=>{i(new DocumentFragment)},[]),!n.open){let t=r;return t?kc.createPortal((0,T.jsx)(OP,{scope:e.__scopeSelect,children:(0,T.jsx)(oP.Slot,{scope:e.__scopeSelect,children:(0,T.jsx)(`div`,{children:e.children})})}),t):null}return(0,T.jsx)(MP,{...e,ref:t})});EP.displayName=TP;var DP=10,[OP,kP]=lP(TP),AP=`SelectContentImpl`,jP=Sc(`SelectContent.RemoveScroll`),MP=v.forwardRef((e,t)=>{let{__scopeSelect:n,position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,..._}=e,y=pP(TP,n),[b,x]=v.useState(null),[S,C]=v.useState(null),w=vc(t,e=>x(e)),[E,D]=v.useState(null),[O,k]=v.useState(null),A=sP(n),[j,M]=v.useState(!1),N=v.useRef(!1);v.useEffect(()=>{if(b)return qM(b)},[b]),Nk();let P=v.useCallback(e=>{let[t,...n]=A().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&S&&(S.scrollTop=0),n===r&&S&&(S.scrollTop=S.scrollHeight),n?.focus(),document.activeElement!==i))return},[A,S]),F=v.useCallback(()=>P([E,b]),[P,E,b]);v.useEffect(()=>{j&&F()},[j,F]);let{onOpenChange:I,triggerPointerDownPosRef:L}=y;v.useEffect(()=>{if(b){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(L.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(L.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():b.contains(n.target)||I(!1),document.removeEventListener(`pointermove`,t),L.current=null};return L.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[b,I,L]),v.useEffect(()=>{let e=()=>I(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[I]);let[R,ee]=pF(e=>{let t=A().filter(e=>!e.disabled),n=mF(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),te=v.useCallback((e,t,n)=>{let r=!N.current&&!n;(y.value!==void 0&&y.value===t||r)&&(D(e),r&&(N.current=!0))},[y.value]),ne=v.useCallback(()=>b?.focus(),[b]),z=v.useCallback((e,t,n)=>{let r=!N.current&&!n;(y.value!==void 0&&y.value===t||r)&&k(e)},[y.value]),B=r===`popper`?IP:PP,re=B===IP?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,T.jsx)(OP,{scope:n,content:b,viewport:S,onViewportChange:C,itemRefCallback:te,selectedItem:E,onItemLeave:ne,itemTextRefCallback:z,focusSelectedItem:F,selectedItemText:O,position:r,isPositioned:j,searchRef:R,children:(0,T.jsx)(nP,{as:jP,allowPinchZoom:!0,children:(0,T.jsx)(zk,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:hc(i,e=>{y.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,T.jsx)(Bc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:(0,T.jsx)(B,{role:`listbox`,id:y.contentId,"data-state":y.open?`open`:`closed`,dir:y.dir,onContextMenu:e=>e.preventDefault(),..._,...re,onPlaced:()=>M(!0),ref:w,style:{display:`flex`,flexDirection:`column`,outline:`none`,..._.style},onKeyDown:hc(_.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ee(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=A().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>P(t)),e.preventDefault()}})})})})})})});MP.displayName=AP;var NP=`SelectItemAlignedPosition`,PP=v.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...i}=e,a=pP(TP,n),o=kP(TP,n),[s,c]=v.useState(null),[l,u]=v.useState(null),d=vc(t,e=>u(e)),f=sP(n),p=v.useRef(!1),m=v.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:_,focusSelectedItem:y}=o,b=v.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&_){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=_.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-DP,d=kk(a,[DP,Math.max(DP,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-DP,d=kk(a,[DP,Math.max(DP,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-DP*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+v+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-DP,D=c-E,O=g.offsetHeight/2,k=g.offsetTop+O,A=m+v+k,j=x-A;if(A<=E){let e=o.length>0&&g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,h.scrollTop=A-E+h.offsetTop}s.style.margin=`${DP}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,_,a.dir,r]);Yc(()=>b(),[b]);let[x,S]=v.useState();return Yc(()=>{l&&S(window.getComputedStyle(l).zIndex)},[l]),(0,T.jsx)(LP,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:v.useCallback(e=>{e&&m.current===!0&&(b(),y?.(),m.current=!1)},[b,y]),children:(0,T.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:x},children:(0,T.jsx)(Ac.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})});PP.displayName=NP;var FP=`SelectPopperPosition`,IP=v.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=DP,...a}=e,o=dP(n);return(0,T.jsx)(IM,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})});IP.displayName=FP;var[LP,RP]=lP(TP,{}),zP=`SelectViewport`,BP=v.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,a=kP(zP,n),o=RP(zP,n),s=vc(t,a.onViewportChange),c=v.useRef(0);return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,T.jsx)(oP.Slot,{scope:n,children:(0,T.jsx)(Ac.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:hc(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-DP*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})});BP.displayName=zP;var VP=`SelectGroup`,[HP,UP]=lP(VP),WP=v.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=$k();return(0,T.jsx)(HP,{scope:n,id:i,children:(0,T.jsx)(Ac.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})});WP.displayName=VP;var GP=`SelectLabel`,KP=v.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=UP(GP,n);return(0,T.jsx)(Ac.div,{id:i.id,...r,ref:t})});KP.displayName=GP;var qP=`SelectItem`,[JP,YP]=lP(qP),XP=v.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=pP(qP,n),c=kP(qP,n),l=s.value===r,[u,d]=v.useState(a??``),[f,p]=v.useState(!1),m=vc(t,e=>c.itemRefCallback?.(e,r,i)),h=$k(),g=v.useRef(`touch`),_=()=>{i||(s.onValueChange(r),s.onOpenChange(!1))};if(r===``)throw Error(`A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return(0,T.jsx)(JP,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:v.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,T.jsx)(oP.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,T.jsx)(Ac.div,{role:`option`,"aria-labelledby":h,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:hc(o.onFocus,()=>p(!0)),onBlur:hc(o.onBlur,()=>p(!1)),onClick:hc(o.onClick,()=>{g.current!==`mouse`&&_()}),onPointerUp:hc(o.onPointerUp,()=>{g.current===`mouse`&&_()}),onPointerDown:hc(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:hc(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:hc(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:hc(o.onKeyDown,e=>{c.searchRef?.current!==``&&e.key===` `||(iP.includes(e.key)&&_(),e.key===` `&&e.preventDefault())})})})})});XP.displayName=qP;var ZP=`SelectItemText`,QP=v.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,...a}=e,o=pP(ZP,n),s=kP(ZP,n),c=YP(ZP,n),l=hP(ZP,n),[u,d]=v.useState(null),f=vc(t,e=>d(e),c.onItemTextChange,e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=u?.textContent,m=v.useMemo(()=>(0,T.jsx)(`option`,{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:h,onNativeOptionRemove:g}=l;return Yc(()=>(h(m),()=>g(m)),[h,g,m]),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Ac.span,{id:c.textId,...a,ref:f}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?kc.createPortal(a.children,o.valueNode):null]})});QP.displayName=ZP;var $P=`SelectItemIndicator`,eF=v.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return YP($P,n).isSelected?(0,T.jsx)(Ac.span,{"aria-hidden":!0,...r,ref:t}):null});eF.displayName=$P;var tF=`SelectScrollUpButton`,nF=v.forwardRef((e,t)=>{let n=kP(tF,e.__scopeSelect),r=RP(tF,e.__scopeSelect),[i,a]=v.useState(!1),o=vc(t,r.onScrollButtonChange);return Yc(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,T.jsx)(aF,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});nF.displayName=tF;var rF=`SelectScrollDownButton`,iF=v.forwardRef((e,t)=>{let n=kP(rF,e.__scopeSelect),r=RP(rF,e.__scopeSelect),[i,a]=v.useState(!1),o=vc(t,r.onScrollButtonChange);return Yc(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,T.jsx)(aF,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});iF.displayName=rF;var aF=v.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=kP(`SelectScrollButton`,n),o=v.useRef(null),s=sP(n),c=v.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return v.useEffect(()=>()=>c(),[c]),Yc(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,T.jsx)(Ac.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:hc(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:hc(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:hc(i.onPointerLeave,()=>{c()})})}),oF=`SelectSeparator`,sF=v.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,T.jsx)(Ac.div,{"aria-hidden":!0,...r,ref:t})});sF.displayName=oF;var cF=`SelectArrow`,lF=v.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=dP(n),a=pP(cF,n),o=kP(cF,n);return a.open&&o.position===`popper`?(0,T.jsx)(LM,{...i,...r,ref:t}):null});lF.displayName=cF;var uF=`SelectBubbleInput`,dF=v.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{let i=v.useRef(null),a=vc(r,i),o=RM(t);return v.useEffect(()=>{let e=i.current;if(!e)return;let n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(o!==t&&r){let n=new Event(`change`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[o,t]),(0,T.jsx)(Ac.select,{...n,style:{...sl,...n.style},ref:a,defaultValue:t})});dF.displayName=uF;function fF(e){return e===``||e===void 0}function pF(e){let t=Mc(e),n=v.useRef(``),r=v.useRef(0),i=v.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),a=v.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function mF(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=hF(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function hF(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var gF=gP,_F=vP,vF=bP,yF=SP,bF=wP,xF=EP,SF=BP,CF=WP,wF=KP,TF=XP,EF=QP,DF=eF,OF=nF,kF=iF,AF=sF,jF=gF,MF=CF,NF=vF,PF=({validationStyleEnabled:e=!1,className:t,children:n,...r})=>(0,T.jsxs)(_F,{suppressHydrationWarning:!0,className:l(`flex w-full cursor-pointer items-center justify-between whitespace-nowrap`,`select-text text-base shadow-none outline-none md:text-sm`,`rounded-xl [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-2xl`,`px-2 py-3 md:py-2`,`bg-neutral-50 dark:bg-neutral-950`,`text-text`,`ring-0`,`focus-visible:outline-none`,`focus-visible:ring-3`,`focus-visible:ring-neutral-200`,`dark:focus-visible:ring-neutral-500`,`focus-visible:ring-offset-white`,`dark:focus-visible:ring-offset-neutral-500`,`[box-shadow:none] focus:[box-shadow:none]`,`disabled:cursor-not-allowed disabled:opacity-50`,`aria-invalid:border-error`,`[&>span]:line-clamp-1`,e&&`valid:border-success invalid:border-error`,t),...r,children:[n,(0,T.jsx)(yF,{asChild:!0,children:(0,T.jsx)(wu,{className:`size-4 opacity-50`})})]}),FF=({className:e,...t})=>(0,T.jsx)(OF,{className:l(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,T.jsx)(Cu,{})}),IF=({className:e,...t})=>(0,T.jsx)(kF,{className:l(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,T.jsx)(bu,{})}),LF=({className:e,children:t,position:n=`popper`,...r})=>(0,T.jsx)(bF,{children:(0,T.jsxs)(xF,{className:l(`relative z-50 max-h-96 min-w-32 overflow-hidden`,`rounded-xl shadow-md`,`bg-white dark:bg-neutral-950`,`text-text`,`border border-neutral-200 dark:border-neutral-800`,`data-[state=closed]:animate-out data-[state=open]:animate-in`,`data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,`data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95`,`data-[side=bottom]:slide-in-from-top-2`,`data-[side=left]:slide-in-from-right-2`,`data-[side=right]:slide-in-from-left-2`,`data-[side=top]:slide-in-from-bottom-2`,n===`popper`&&`data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1`,e),position:n,...r,children:[(0,T.jsx)(FF,{}),(0,T.jsx)(SF,{className:l(`p-1`,n===`popper`&&`h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)`),children:t}),(0,T.jsx)(IF,{})]})}),RF=({className:e,...t})=>(0,T.jsx)(wF,{className:l(`px-1 py-0.5 font-semibold text-sm`,e),...t}),zF=({className:e,children:t,...n})=>(0,T.jsxs)(TF,{className:l(`relative flex w-full cursor-pointer select-none items-center rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-neutral/10 data-disabled:pointer-events-none data-disabled:opacity-50`,e),...n,children:[(0,T.jsx)(`span`,{className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,T.jsx)(DF,{children:(0,T.jsx)(yu,{className:`size-4`})})}),(0,T.jsx)(EF,{children:t})]}),BF=({className:e,...t})=>(0,T.jsx)(AF,{className:l(`-mx-1 my-1 h-px`,`bg-neutral-200 dark:bg-neutral-800`,e),...t}),J=jF;J.Group=MF,J.Value=NF,J.Trigger=PF,J.ScrollUpButton=FF,J.ScrollDownButton=IF,J.Content=LF,J.Label=RF,J.Item=zF,J.Separator=BF;var VF=()=>{let e=(0,b.c)(8),{codeFormat:t,setCodeFormat:n,setContentDeclarationFormat:r}=Sk(),i=xr(Ok),a;e[0]!==n||e[1]!==r?(a=e=>{n(e),r(e)},e[0]=n,e[1]=r,e[2]=a):a=e[2];let o;return e[3]!==t||e[4]!==i.codeFormat.label.value||e[5]!==i.codeFormat.placeholder.value||e[6]!==a?(o=(0,T.jsxs)(J,{value:t,onValueChange:a,children:[(0,T.jsx)(J.Trigger,{className:`py-1!`,"aria-label":i.codeFormat.label.value,children:(0,T.jsx)(J.Value,{placeholder:i.codeFormat.placeholder.value})}),(0,T.jsxs)(J.Content,{children:[(0,T.jsx)(J.Item,{value:`typescript`,children:`TypeScript`}),(0,T.jsx)(J.Item,{value:`esm`,children:`ESM`}),(0,T.jsx)(J.Item,{value:`commonjs`,children:`CommonJS`})]})]}),e[3]=t,e[4]=i.codeFormat.label.value,e[5]=i.codeFormat.placeholder.value,e[6]=a,e[7]=o):o=e[7],o},HF=()=>{let e=(0,b.c)(5),{contentDeclarationFormat:t,setContentDeclarationFormat:n}=Sk(),r=xr(Ok),i;return e[0]!==r.contentDeclarationFormat.label.value||e[1]!==r.contentDeclarationFormat.placeholder.value||e[2]!==t||e[3]!==n?(i=(0,T.jsxs)(J,{value:t,onValueChange:n,children:[(0,T.jsx)(J.Trigger,{className:`py-1!`,"aria-label":r.contentDeclarationFormat.label.value,children:(0,T.jsx)(J.Value,{placeholder:r.contentDeclarationFormat.placeholder.value})}),(0,T.jsxs)(J.Content,{children:[(0,T.jsx)(J.Item,{value:`typescript`,children:`TypeScript`}),(0,T.jsx)(J.Item,{value:`commonjs`,children:`CommonJS`}),(0,T.jsx)(J.Item,{value:`esm`,children:`ESM`}),(0,T.jsx)(J.Item,{value:`json`,children:`JSON`})]})]}),e[0]=r.contentDeclarationFormat.label.value,e[1]=r.contentDeclarationFormat.placeholder.value,e[2]=t,e[3]=n,e[4]=i):i=e[4],i},UF={key:`code`,content:{nodeType:`translation`,translation:{en:{title:`Copy code`,description:`Copy the code to the clipboard`},"en-GB":{title:`Copy code`,description:`Copy the code to the clipboard`},fr:{title:`Copier le code`,description:`Copier le code dans le presse-papiers`},es:{title:`Copiar código`,description:`Copiar el código al portapapeles`},de:{title:`Code kopieren`,description:`Kopieren Sie den Code in die Zwischenablage`},ja:{title:`コードをコピー`,description:`コードをクリップボードにコピー`},ko:{title:`코드 복사`,description:`코드를 클립보드에 복사`},zh:{title:`复制代码`,description:`复制代码到剪贴板`},it:{title:`Copiare il codice`,description:`Copiare il codice nella clipboard`},pt:{title:`Copiar código`,description:`Copiar o código para a área de transferência`},hi:{title:`कोड कॉपी करें`,description:`कोड को क्लिपबोर्ड पर कॉपी करें`},ar:{title:`نسخ الكود`,description:`نسخ الكود إلى الحافظة`},ru:{title:`Копировать код`,description:`Копировать код в буфер обмена`}}},localIds:[`code::local::../@intlayer/design-system/dist/esm/components/IDE/code.content.mjs`,`code::local::../@intlayer/design-system/dist/esm/components/IDE/copyCode.content.mjs`]},WF=({children:e,className:t,identifier:n,...r})=>(0,T.jsx)(`div`,{className:l(`group/popover relative flex cursor-pointer`,t),id:`unrollable-panel-button-${n}`,"aria-haspopup":!0,...r,children:e}),GF=({children:e,isHidden:t=void 0,isOverable:n=!0,isFocusable:r=!1,xAlign:i=`start`,yAlign:a=`bellow`,identifier:o,className:s,displayArrow:c=!0,...u})=>(0,T.jsx)(tS,{transparency:`xs`,role:`group`,"aria-hidden":t,"aria-labelledby":`unrollable-panel-button-${o}`,id:`unrollable-panel-${o}`,className:l(`absolute z-50 min-w-full rounded-md ring-1 ring-neutral`,i===`start`&&`left-0`,i===`center`&&`left-1/2 -translate-x-1/2`,i===`end`&&`right-0`,a===`bellow`&&`top-[calc(100%+1rem)]`,a===`above`&&`bottom-[calc(100%+1rem)]`,c&&`before:absolute before:z-[999] before:h-0 before:w-0 before:content-[""]`,c&&i===`start`&&`before:left-2`,c&&i===`center`&&`before:left-1/2 before:-translate-x-1/2`,c&&i===`end`&&`before:right-2`,c&&a===`bellow`&&`before:-top-[10px] before:border-r-[10px] before:border-r-transparent before:border-b-[10px] before:border-b-neutral before:border-l-[10px] before:border-l-transparent`,c&&a===`above`&&`before:-bottom-[10px] before:border-t-[10px] before:border-t-neutral before:border-r-[10px] before:border-r-transparent before:border-l-[10px] before:border-l-transparent`,`overflow-x-visible opacity-0 transition-all duration-400 ease-in-out`,t===!1?`visible opacity-100 delay-800`:`invisible`,n&&`group-hover/popover:visible group-hover/popover:opacity-100 group-hover/popover:delay-800`,r&&`group-focus-within/popover:visible group-focus-within/popover:opacity-100 group-focus-within/popover:delay-800`,s),...u,children:e});WF.Detail=GF;var KF=e=>(0,T.jsx)(WF,{...e}),qF=({xAlign:e=`start`,yAlign:t=`bellow`,...n})=>{let r=(0,v.useRef)(null),[i,a]=(0,v.useState)(e),[o,s]=(0,v.useState)(t),[c,l]=(0,v.useState)(void 0);return(0,v.useEffect)(()=>{let i=()=>{if(!r.current)return;let i=r.current,o=document.getElementById(`unrollable-panel-button-${n.identifier}`);if(!o)return;let c=o.getBoundingClientRect(),u=window.innerWidth,d=window.innerHeight,f=u-c.left-16,p=c.right-16;l(Math.max(f,p));let m=i.classList.contains(`invisible`);m&&(i.style.visibility=`hidden`,i.classList.remove(`invisible`)),requestAnimationFrame(()=>{let n=i.getBoundingClientRect();m&&(i.style.visibility=``,i.classList.add(`invisible`));let r=t,o=d-c.bottom-16,l=c.top-16;t===`bellow`&&o<n.height?l>=n.height&&(r=`above`):t===`above`&&l<n.height&&o>=n.height&&(r=`bellow`);let f=e,p=u-c.left-16,h=c.right-16;e===`start`&&p<n.width?h>=n.width&&(f=`end`):e===`end`&&h<n.width&&p>=n.width&&(f=`start`),s(r),a(f)})},o=setTimeout(i,0),c=document.getElementById(`unrollable-panel-button-${n.identifier}`);c&&(c.addEventListener(`mouseenter`,i),c.addEventListener(`focusin`,i));let u=new ResizeObserver(()=>{i()});return r.current&&u.observe(r.current),window.addEventListener(`resize`,i),window.addEventListener(`scroll`,i,!0),()=>{clearTimeout(o),c&&(c.removeEventListener(`mouseenter`,i),c.removeEventListener(`focusin`,i)),u.disconnect(),window.removeEventListener(`resize`,i),window.removeEventListener(`scroll`,i,!0)}},[n.identifier,e,t]),(0,T.jsx)(GF,{...n,xAlign:i,yAlign:o,ref:r,style:{...n.style,maxWidth:c?`${c}px`:void 0}})},JF=KF;JF.Detail=qF;var YF={key:`copy-button`,content:{nodeType:`translation`,translation:{en:{label:`Copy content`},"en-GB":{label:`Copy content`},fr:{label:`Copier le contenu`},es:{label:`Copiar contenido`},de:{label:`Inhalt kopieren`},ja:{label:`コンテンツをコピー`},ko:{label:`콘텐츠 복사`},zh:{label:`复制内容`},it:{label:`Copia contenuto`},pt:{label:`Copiar conteúdo`},hi:{label:`सामग्री कॉपी करें`},ar:{label:`نسخ المحتوى`},ru:{label:`Копировать содержимое`}}},localIds:[`copy-button::local::../@intlayer/design-system/dist/esm/components/CopyButton/CopyButton.content.mjs`]},XF=e=>{let t=(0,b.c)(6),{content:n,...r}=e,[i,a]=(0,v.useState)(!1),[o,s]=(0,v.useState)(!1),{label:c}=xr(YF),l;t[0]===n?l=t[1]:(l=async()=>{try{s(!1),await navigator.clipboard.writeText(n),a(!0)}catch(e){console.error(`Failed to copy text: `,e),s(!0)}},t[0]=n,t[1]=l);let u=l,d,f;t[2]!==i||t[3]!==o?(d=()=>{if(i||o){let e=setTimeout(()=>{a(!1),s(!1)},1e3);return()=>clearTimeout(e)}},f=[i,o],t[2]=i,t[3]=o,t[4]=d,t[5]=f):(d=t[4],f=t[5]),(0,v.useEffect)(d,f);let p=()=>i?`Content copied to clipboard`:o?`Failed to copy content`:r.label??c.value;return(0,T.jsx)(oS,{Icon:i?Tu:Eu,onClick:u,variant:`hoverable`,color:`text`,size:`icon-sm`,tabIndex:0,title:p(),...r,label:p(),"aria-describedby":i?`copy-success`:o?`copy-error`:void 0})},ZF=e=>{let{code:t,...n}=e,{title:r,description:i}=xr(UF);return(0,T.jsxs)(JF,{identifier:`copy`,children:[(0,T.jsx)(XF,{content:t,...n}),(0,T.jsxs)(JF.Detail,{identifier:`copy`,className:`flex min-w-64 flex-col gap-3 p-3 text-sm`,xAlign:`end`,children:[(0,T.jsx)(`strong`,{children:r}),(0,T.jsx)(`p`,{className:`text-neutral`,children:i})]})]})},QF=()=>{let e=(0,b.c)(5),{packageManager:t,setPackageManager:n}=Sk(),r=xr(Ok);xr(Ok);let i;return e[0]!==r.packageManager.label.value||e[1]!==r.packageManager.placeholder.value||e[2]!==t||e[3]!==n?(i=(0,T.jsxs)(J,{value:t,onValueChange:n,children:[(0,T.jsx)(J.Trigger,{className:`py-1!`,"aria-label":r.packageManager.label.value,children:(0,T.jsx)(J.Value,{placeholder:r.packageManager.placeholder.value})}),(0,T.jsxs)(J.Content,{children:[(0,T.jsx)(J.Item,{value:`npm`,children:`npm`}),(0,T.jsx)(J.Item,{value:`pnpm`,children:`pnpm`}),(0,T.jsx)(J.Item,{value:`yarn`,children:`yarn`}),(0,T.jsx)(J.Item,{value:`bun`,children:`bun`})]})]}),e[0]=r.packageManager.label.value,e[1]=r.packageManager.placeholder.value,e[2]=t,e[3]=n,e[4]=i):i=e[4],i},$F=700,eI=({children:e,language:t,isDarkMode:n,showHeader:r=!0,showLineNumbers:i=!0,className:a,fileName:o,packageManager:s,codeFormat:c,contentDeclarationFormat:d,isRollable:f=!0,...p})=>{let m=e?.endsWith(`
|
|
159
|
-
`)?e.slice(0,-1):e,h=s||c||d;return(0,T.jsx)(Dk,{packageManager:s,codeFormat:c,contentDeclarationFormat:d,children:(0,T.jsxs)(tS,{className:l(`relative min-w-0 max-w-full text-sm leading-6`,i&&`with-line-number ml-0`,a),transparency:`lg`,...p,children:[r&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(`div`,{className:`grid w-full grid-cols-[1fr_auto] items-center justify-between rounded-t-xl bg-card/50 py-1.5 pr-12 pl-4 text-neutral text-xs`,children:[(0,T.jsx)(`span`,{className:`truncate`,children:o??t}),(0,T.jsxs)(`div`,{className:`flex items-center gap-2`,children:[s&&(0,T.jsx)(QF,{}),c&&(0,T.jsx)(VF,{}),d&&(0,T.jsx)(HF,{})]})]}),(0,T.jsx)(`div`,{className:`sticky top-46 z-20`,children:(0,T.jsx)(`div`,{className:l(`absolute right-2 bottom-0 flex h-7 items-center`,h&&`h-11`),children:(0,T.jsx)(ZF,{code:m})})})]}),(0,T.jsx)(Ek,{minHeight:$F,isRollable:f,className:`min-w-0 max-w-full overflow-x-auto p-2`,children:(0,T.jsx)(u,{lang:t,isDarkMode:n,children:m})})]})})},tI=(0,v.createContext)({tabsValues:{},setTabsValues:()=>{}}),nI=()=>(0,v.useContext)(tI),rI=e=>{let t=(0,b.c)(4),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={},t[0]=r):r=t[0];let[i,a]=(0,v.useState)(r),o;return t[1]!==n||t[2]!==i?(o=(0,T.jsx)(tI,{value:{tabsValues:i,setTabsValues:a},children:n}),t[1]=n,t[2]=i,t[3]=o):o=t[3],o},iI=e=>{let t=(0,b.c)(38),{enable:n,onSwipeLeft:r,onSwipeRight:i,itemIndex:a,itemCount:o,thresholdPct:s,touchAction:c,disableWhenSelectingText:l}=e,u=n===void 0?!0:n,d=s===void 0?20:s,f=c===void 0?`pan-y`:c,p=l===void 0?!0:l,m=(0,v.useRef)(null),[h,g]=(0,v.useState)(!1),[_,y]=(0,v.useState)(0),x;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(x={pointerId:null,startX:0,startY:0,lastX:0,axisLocked:!1,isHorizontal:!1},t[0]=x):x=t[0];let S=(0,v.useRef)(x),C=(0,v.useRef)(!1),w;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(w=()=>{let e=m.current;return e?e.clientWidth:0},t[1]=w):w=t[1];let T=w,E;t[2]!==o||t[3]!==a?(E=e=>{let t=a<=0,n=a>=o-1;return t&&e>0||n&&e<0?e/(1+Math.abs(e)/30):e},t[2]=o,t[3]=a,t[4]=E):E=t[4];let D=E,O;t[5]===u?O=t[6]:(O=e=>{u&&S.current.pointerId===null&&(S.current.pointerId=e.pointerId,S.current.startX=e.clientX,S.current.startY=e.clientY,S.current.lastX=e.clientX,S.current.axisLocked=!1,S.current.isHorizontal=!1,C.current=!1,g(!1),y(0))},t[5]=u,t[6]=O);let k=O,A;t[7]!==D||t[8]!==p||t[9]!==u||t[10]!==h?(A=e=>{if(!u||S.current.pointerId!==e.pointerId)return;let t=T();if(!t)return;let n=e.clientX-S.current.startX,r=e.clientY-S.current.startY;if(p){let e=typeof window<`u`?window.getSelection?.():null;if(e&&e.rangeCount>0&&!e.isCollapsed){C.current=!0;return}}if(!S.current.axisLocked){let e=Math.abs(n),t=Math.abs(r);(e>6||t>6)&&(S.current.axisLocked=!0,S.current.isHorizontal=e>t)}if(S.current.isHorizontal){try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}e.preventDefault(),h||g(!0),y(D(n/t*100)),S.current.lastX=e.clientX}},t[7]=D,t[8]=p,t[9]=u,t[10]=h,t[11]=A):A=t[11];let j=A,M;t[12]!==_||t[13]!==r||t[14]!==i||t[15]!==d?(M=e=>{try{e.currentTarget.releasePointerCapture(e.pointerId)}catch{}let t=S.current.isHorizontal,n=_;if(g(!1),y(0),S.current.pointerId=null,S.current.axisLocked=!1,S.current.isHorizontal=!1,C.current){C.current=!1;return}t&&(n>d?i?.():n<-d&&r?.())},t[12]=_,t[13]=r,t[14]=i,t[15]=d,t[16]=M):M=t[16];let N=M,P;t[17]!==u||t[18]!==N?(P=e=>{u&&S.current.pointerId===e.pointerId&&N(e)},t[17]=u,t[18]=N,t[19]=P):P=t[19];let F=P,I;t[20]!==u||t[21]!==N?(I=e=>{u&&S.current.pointerId===e.pointerId&&N(e)},t[20]=u,t[21]=N,t[22]=I):I=t[22];let L=I,R;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(R=()=>{y(0),g(!1)},t[23]=R):R=t[23];let ee;t[24]===a?ee=t[25]:(ee=[a],t[24]=a,t[25]=ee),(0,v.useEffect)(R,ee);let te;t[26]===f?te=t[27]:(te={touchAction:f},t[26]=f,t[27]=te);let ne;t[28]!==L||t[29]!==k||t[30]!==j||t[31]!==F||t[32]!==te?(ne={ref:m,onPointerDown:k,onPointerMove:j,onPointerUp:F,onPointerCancel:L,style:te},t[28]=L,t[29]=k,t[30]=j,t[31]=F,t[32]=te,t[33]=ne):ne=t[33];let z;return t[34]!==_||t[35]!==h||t[36]!==ne?(z={containerRef:m,isDragging:h,dragDeltaPct:_,containerProps:ne},t[34]=_,t[35]=h,t[36]=ne,t[37]=z):z=t[37],z},aI=ou(`relative z-0 flex size-full flex-row items-center gap-2`,{variants:{color:{primary:`border-primary text-primary`,secondary:`border-secondary text-secondary`,destructive:`border-destructive bg-destructive text-destructive`,neutral:`border-neutral text-neutral`,light:`border-white text-white`,dark:`border-neutral-800 text-neutral-800`,text:`border-text text-text`}},defaultVariants:{color:`primary`}}),oI=ou(`absolute -z-1 rounded-lg duration-300 ease-in-out motion-reduce:transition-none`,{variants:{color:{primary:`bg-primary/10 aria-selected:text-text`,secondary:`bg-secondary/10 aria-selected:text-text`,destructive:`bg-destructive/10 aria-selected:text-text`,neutral:`bg-neutral/10 aria-selected:text-white/10`,light:`bg-white/10 aria-selected:text-black`,dark:`bg-neutral-800/10 aria-selected:text-white`,text:`bg-text/10 aria-selected:text-text-opposite`},orientation:{horizontal:`top-0 h-full w-auto transition-[left,width]`,vertical:`left-0 h-auto w-full transition-[top,height]`}},defaultVariants:{orientation:`horizontal`}}),sI=({tabs:e,selectedChoice:t,onTabClick:n,color:r=`primary`,hoverable:i=!1,orientation:a=`horizontal`,className:o})=>{let s=(0,v.useRef)([]),c=(0,v.useRef)(null),{choiceIndicatorPosition:u,calculatePosition:d}=fS(s,{isHoverable:i,orientation:a});return(0,v.useEffect)(()=>{d()},[t]),(0,T.jsxs)(`div`,{className:l(aI({color:r}),o),"aria-orientation":a,"aria-multiselectable":`false`,role:`tablist`,children:[e.map((e,r)=>{let i=e.key,a=t===i;return(0,v.cloneElement)(e,{key:i??r,role:`tab`,onClick:t=>{e.props?.onClick?.(t),n?.(i)},"aria-selected":a,"data-active":a,tabIndex:a?0:-1,ref:e=>{s.current[r]=e}})}),u&&(0,T.jsx)(`div`,{className:l(oI({color:r,orientation:a})),style:u,ref:c},`${t}${JSON.stringify(e.map(e=>e.key))}`)]})},cI=(0,v.createContext)(void 0),lI=ou(`relative w-full rounded-lg`,{variants:{background:{with:`border border-neutral/20 bg-background/2 shadow-[0_0_10px_-15px_rgba(0,0,0,0.3)] backdrop-blur`,without:``},variant:{default:``,bordered:`border-2`,ghost:`border-0 bg-transparent shadow-none`}},defaultVariants:{variant:`default`}}),uI=({children:e,...t})=>(0,T.jsx)(`div`,{...t,children:e});uI.displayName=`TabItem`;var dI=Object.assign(e=>{let t=(0,b.c)(5),{defaultTab:n,group:r,variant:i,children:a,className:o,headerClassName:s,fullHeight:c,...u}=e,d=v.Children.toArray(a).filter(fI),f=d[0]?.props?.value,{tabsValues:p,setTabsValues:m}=nI(),[h,g]=(0,v.useState)(n??f??``),_=(r&&typeof p==`object`?p?.[r]:h)??n??f,y;t[0]===_?y=t[1]:(y=e=>e.props.value===_,t[0]=_,t[1]=y);let x=d.findIndex(y),S=d.length,{containerProps:C,dragDeltaPct:w,isDragging:E}=iI({itemIndex:x,itemCount:S,onSwipeLeft:()=>{let e=d[Math.min(S-1,x+1)]?.props?.value;e&&D(e)},onSwipeRight:()=>{let e=d[Math.max(0,x-1)]?.props?.value;e&&D(e)}}),D=e=>{g(e),typeof m==`function`&&m(t=>({...t,[r]:e}))},O={activeTab:h??f??``,setActiveTab:D},k;return t[2]!==x||t[3]!==c?(k=(e,t)=>{let{props:n}=e,{value:r,children:i,className:a}=n,o=t===x;return(0,T.jsx)(`div`,{role:`tabpanel`,"aria-labelledby":`tab-${r}`,id:`tabpanel-${r}`,"aria-hidden":!o,tabIndex:o?0:-1,"data-active":o,className:l(`w-full min-w-0 p-6 opacity-100 transition-opacity duration-300 ease-in-out`,c&&`h-full overflow-y-auto`,!o&&`pointer-events-none opacity-0`,a),children:(0,T.jsx)(`div`,{className:l(`flex w-full min-w-0 flex-col items-stretch gap-6`,c&&`min-h-full`),children:i})},r)},t[2]=x,t[3]=c,t[4]=k):k=t[4],(0,T.jsx)(cI.Provider,{value:O,children:(0,T.jsxs)(`div`,{className:l(lI({variant:i}),c&&`flex h-full flex-col overflow-hidden`,o),...u,children:[(0,T.jsx)(`div`,{className:l(`flex shrink-0 gap-3 p-3`,s),children:(0,T.jsx)(sI,{selectedChoice:_,tabs:d.map(e=>{let{label:t,value:n,disabled:r}=e.props,i=_===n;return(0,T.jsx)(`button`,{className:l(`cursor-pointer whitespace-nowrap rounded-md px-4 py-1 font-medium text-sm transition-colors focus:outline-none`,!i&&`text-neutral/70`),"data-active":i,disabled:r,onClick:()=>!r&&D(n),role:`tab`,"aria-selected":i,"aria-controls":`tabpanel-${n}`,id:`tab-${n}`,type:`button`,children:t??n},n)}),hoverable:!0,color:`text`})}),(0,T.jsx)(`div`,{className:l(`relative w-full min-w-0 overflow-x-clip [-webkit-clip-path:inset(0)] [clip-path:inset(0)]`,c&&`min-h-0 flex-1`),...C,children:(0,T.jsx)(`div`,{role:`tablist`,"aria-orientation":`horizontal`,className:l(`grid w-full min-w-0`,c&&`h-full`,E?`transition-none`:`transition-transform duration-300 ease-in-out`),style:{gridTemplateColumns:`repeat(${d.length}, 100%)`,transform:`translateX(-${x*100-(E?w:0)}%)`},children:d.map(k)})})]})})},{Item:uI});function fI(e){return(0,v.isValidElement)(e)&&e.type===uI}var pI=e=>{let t=(0,b.c)(3),[n,r]=(0,v.useState)(e),i,a;return t[0]===e?(i=t[1],a=t[2]):(i=()=>{r(e??window.document.body)},a=[e],t[0]=e,t[1]=i,t[2]=a),(0,v.useEffect)(i,a),n},mI=new class{listeners=new Set;scrollBlockers=[];subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.scrollBlockers;addBlockage=(e,t)=>{let n=this.scrollBlockers.find(e=>e.element===t);if(n){if(n.blockers.includes(e))return;this.scrollBlockers=this.scrollBlockers.map(n=>n.element===t?{...n,blockers:[...n.blockers,e]}:n)}else t.style.overflowY=`hidden`,t.style.overflowX=`hidden`,this.scrollBlockers=[...this.scrollBlockers,{element:t,blockers:[e]}];this.emit()};removeBlockage=(e,t)=>{let n=this.scrollBlockers.find(e=>e.element===t);n&&(n.blockers.length>1?this.scrollBlockers=this.scrollBlockers.map(n=>n.element===t?{...n,blockers:n.blockers.filter(t=>t!==e)}:n):(t.style.overflowY=``,t.style.overflowX=``,this.scrollBlockers=this.scrollBlockers.filter(e=>e.element!==t)),this.emit())};isElementScrollBlocked=e=>this.scrollBlockers.some(t=>t.element===e);emit=()=>{this.listeners.forEach(e=>{e()})}},hI=[],gI=()=>{let e=(0,b.c)(2),t=(0,v.useSyncExternalStore)(mI.subscribe,mI.getSnapshot,_I),n;return e[0]===t?n=e[1]:(n={scrollBlockers:t,addBlockage:mI.addBlockage,removeBlockage:mI.removeBlockage,isElementScrollBlocked:mI.isElementScrollBlocked},e[0]=t,e[1]=n),n};function _I(){return hI}var vI=e=>{let t=(0,b.c)(14),n;t[0]===e?n=t[1]:(n=e??{},t[0]=e,t[1]=n);let{disableScroll:r,element:i,key:a}=n,o=r===void 0?!1:r,s=a===void 0?`unnamed_blocker`:a,{isElementScrollBlocked:c,addBlockage:l,removeBlockage:u}=gI(),d=pI(i),f,p;t[2]!==l||t[3]!==o||t[4]!==i||t[5]!==s||t[6]!==u?(f=()=>{let e=i??window.document.body;return o?l(s,e):u(s,e),()=>{u(s,e)}},p=[l,o,i,s,u],t[2]=l,t[3]=o,t[4]=i,t[5]=s,t[6]=u,t[7]=f,t[8]=p):(f=t[7],p=t[8]),(0,v.useEffect)(f,p);let m;t[9]!==d||t[10]!==c?(m=d?c(d):!1,t[9]=d,t[10]=c,t[11]=m):m=t[11];let h;return t[12]===m?h=t[13]:(h={isScrollBlocked:m},t[12]=m,t[13]=h),h},yI=ou(`flex cursor-default flex-col overflow-hidden shadow-sm`,{variants:{size:{sm:`h-auto max-h-[30vh] w-[95vw] max-w-xl`,md:`h-auto max-h-[50vh] w-[95vw] max-w-xl`,lg:`h-auto max-h-[70vh] w-[95vw] max-w-4xl`,xl:`h-auto max-h-[95vh] w-[95vw] max-w-6xl`,unset:`h-auto max-h-[95vh] w-[95vw]`}},defaultVariants:{size:`unset`}}),bI={none:`p-0`,sm:`px-2 py-4`,md:`px-4 py-6`,lg:`px-6 py-8`,xl:`px-8 py-10`,"2xl":`px-10 py-12`},xI=Jx.create(tS),SI=e=>{let t=(0,b.c)(9),{children:n,isOpen:r,container:i,onClose:a,hasCloseButton:o,title:s,size:c,className:u,isScrollable:d,disableScroll:f,padding:p,...m}=e,h=o===void 0?!1:o,g=c===void 0?`md`:c,_=d===void 0?!1:d,y=f===void 0?!0:f,x=p===void 0?`none`:p,S=pI(i),C=r&&y,w;t[0]===C?w=t[1]:(w={key:`modal`,disableScroll:C},t[0]=C,t[1]=w),vI(w);let E,D;if(t[2]!==r||t[3]!==a?(E=()=>{let e=e=>{e.key===`Escape`&&r&&a&&a()};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},D=[r,a],t[2]=r,t[3]=a,t[4]=E,t[5]=D):(E=t[4],D=t[5]),(0,v.useEffect)(E,D),!S){let e;return t[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,T.jsx)(T.Fragment,{}),t[6]=e):e=t[6],e}let O=!!s,k=bI[x||`none`],A;return t[7]===a?A=t[8]:(A=e=>{e.stopPropagation(),a?.()},t[7]=a,t[8]=A),(0,kc.createPortal)((0,T.jsx)(Jx.div,{className:`invisible fixed top-0 left-0 z-50 flex size-full cursor-pointer items-center justify-center overflow-hidden bg-background/40 backdrop-blur`,animate:r?`visible`:`invisible`,variants:{visible:{opacity:1,visibility:`visible`,transition:{duration:.1,when:`beforeChildren`}},invisible:{opacity:0,visibility:`hidden`,transition:{duration:.1,when:`afterChildren`}}},onClick:A,"aria-hidden":!r,children:(0,T.jsxs)(xI,{onClick:CI,initial:{scale:r?.5:1},animate:{scale:r?1:.5},transition:{duration:.3},className:yI({size:g,className:u}),role:`dialog`,"aria-modal":!0,roundedSize:`4xl`,padding:`none`,...m,children:[(0,T.jsxs)(`div`,{className:l(`relative flex-none px-4 pt-4`,h&&O?`flex items-start`:h?`flex justify-end`:O?`items-center`:`hidden`),children:[O&&(0,T.jsx)(_k,{className:`mb-2 ml-1 flex items-center justify-center font-bold text-lg`,children:s}),h&&(0,T.jsx)(oS,{variant:`hoverable`,color:`text`,label:`Close modal`,className:`ml-auto`,onClick:e=>{e.stopPropagation(),a?.()},Icon:Wu,size:`icon-md`})]}),(0,T.jsx)(`div`,{className:l(`flex min-h-0 w-full flex-1 flex-col`,_===!0&&`overflow-auto`,_===`y`&&`overflow-y-auto overflow-x-hidden`,_===`x`&&`overflow-x-auto overflow-y-hidden`,!_&&`overflow-visible`),children:(0,T.jsx)(`div`,{className:l(`flex h-full w-full flex-1 flex-col`,k),children:n})})]})}),S)};function CI(e){return e.stopPropagation()}var wI={key:`table`,content:{nodeType:`translation`,translation:{en:{modal:{title:`Show all table content`,description:`Open the table in a modal to view all data content clearly`}},"en-GB":{modal:{title:`Show all table content`,description:`Open the table in a modal to view all data content clearly`}},fr:{modal:{title:`Afficher tout le contenu du tableau`,description:`Ouvrir le tableau dans une fenêtre modale pour voir tout le contenu clairement`}},es:{modal:{title:`Mostrar todo el contenido de la tabla`,description:`Abrir la tabla en una ventana flotante para ver todo el contenido claramente`}},de:{modal:{title:`Alle Tabellendaten anzeigen`,description:`Tabelle in einem Modal öffnen, um alle Daten übersichtlich anzuzeigen`}},ja:{modal:{title:`テーブルのすべての内容を表示`,description:`テーブルをモーダルで開き、すべてのデータを明確に表示`}},ko:{modal:{title:`테이블의 모든 내용 표시`,description:`테이블을 모달로 열어 모든 데이터를 명확하게 확인`}},zh:{modal:{title:`显示表格的所有内容`,description:`在弹窗中打开表格以清晰地查看所有数据`}},it:{modal:{title:`Mostra tutto il contenuto della tabella`,description:`Apri la tabella in una finestra modale per visualizzare tutti i dati in modo chiaro`}},pt:{modal:{title:`Mostrar todo o conteúdo da tabela`,description:`Abrir a tabela em um modal para ver todo o conteúdo claramente`}},hi:{modal:{title:`सभी तालिका सामग्री दिखाएं`,description:`सभी डेटा सामग्री को स्पष्ट रूप से देखने के लिए तालिका को मोडल में खोलें`}},ar:{modal:{title:`اظهار جميع محتويات الجدول`,description:`افتح الجدول في نافذة منبثقة لعرض جميع محتويات البيانات بوضوح`}},ru:{modal:{title:`Показать все данные таблицы`,description:`Открыть таблицу в модальном окне для четкого просмотра всех данных`}}}},localIds:[`table::local::../@intlayer/design-system/dist/esm/components/Table/table.content.mjs`]},TI=e=>{let t=(0,b.c)(6),{setIsModalOpen:n}=e,{modal:r}=xr(wI),i;if(t[0]!==r.description||t[1]!==r.title||t[2]!==n){let e;t[4]===n?e=t[5]:(e=()=>{n(!0)},t[4]=n,t[5]=e),i=(0,T.jsx)(`div`,{className:`pointer-events-none absolute inset-y-0 right-4 z-10`,children:(0,T.jsx)(`div`,{className:`pointer-events-auto sticky top-48 pt-4`,children:(0,T.jsxs)(JF,{identifier:`expand`,children:[(0,T.jsx)(oS,{variant:`hoverable`,size:`icon-md`,onClick:e,label:r.title,Icon:Nu}),(0,T.jsxs)(JF.Detail,{identifier:`expand`,className:`flex min-w-64 flex-col gap-3 p-3 text-sm`,xAlign:`end`,children:[(0,T.jsx)(`strong`,{children:r.title}),(0,T.jsx)(`p`,{className:`text-neutral`,children:r.description})]})]})})}),t[0]=r.description,t[1]=r.title,t[2]=n,t[3]=i}else i=t[3];return i},EI=(0,v.forwardRef)(({className:e,isInteractive:t,...n},r)=>(0,T.jsx)(`table`,{ref:r,className:l(`w-full table-auto overflow-hidden text-left`,t&&`[&_tbody_tr:hover]:bg-neutral/40 [&_tbody_tr:hover]:dark:bg-neutral-dark/40 [&_tbody_tr]:cursor-pointer [&_tbody_tr]:transition-colors`,e),...n})),DI=.55,OI=5,kI=30,AI=(e,t,n)=>{let r=(0,b.c)(3),i;r[0]!==t||r[1]!==e?(i=()=>{if(!e.current)return;let n=[];Array.from(e.current.querySelectorAll(`tr`)).forEach(e=>{Array.from(e.children).forEach((e,t)=>{let r=e.textContent?.trim().length??0;(n[t]===void 0||r>n[t])&&(n[t]=r)})});let r=e=>{let t=Array.from(e.querySelectorAll(`tr`));if(t.length===0)return;let r=(e,t)=>{let r=Math.min(kI,Math.max(OI,(n[t]??0)*DI));e.style.minWidth=`${r}rem`,e.style.maxWidth=`${kI}rem`};e.querySelectorAll(`th`).forEach((e,t)=>{r(e,t)}),t.forEach(e=>{e.querySelectorAll(`td`).forEach((e,t)=>{r(e,t)})})};r(e.current),t.current&&r(t.current)},r[0]=t,r[1]=e,r[2]=i):i=r[2],(0,v.useEffect)(i,n)},jI=({className:e,isRollable:t=!1,displayModal:n,isInteractive:r,onClick:i,...a})=>{let[o,s]=(0,v.useState)(!1),[c,u]=(0,v.useState)(null),d=(0,v.useRef)(null),f=(0,v.useRef)(null);AI(d,f,[a.children,o]),(0,v.useEffect)(()=>{if(o&&c!==null&&f.current){let e=f.current.rows[c];e&&(e.scrollIntoView({behavior:`smooth`,block:`center`}),e.classList.add(`bg-neutral/40`,`dark:bg-neutral-dark/40`),e.style.transition=`background-color 0.3s ease-in-out`)}},[o,c]),(0,v.useEffect)(()=>{o||u(null)},[o]);let p=e=>{if(n){let t=e.target.closest(`tr`);t?.closest(`tbody`)&&(u(t.rowIndex),s(!0))}i?.(e)};return(0,T.jsxs)(`div`,{className:`group relative`,children:[n&&(0,T.jsx)(TI,{setIsModalOpen:s}),(0,T.jsx)(Ek,{isRollable:t,className:`max-w-full overflow-x-auto rounded-2xl bg-background text-left [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-3xl`,children:(0,T.jsx)(EI,{ref:d,className:e,isInteractive:r??n,onClick:p,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&p(e)},...a})}),(0,T.jsx)(SI,{isOpen:o,onClose:()=>s(!1),size:`xl`,hasCloseButton:!0,isScrollable:!0,children:o?(0,T.jsx)(`div`,{className:`grid`,children:(0,T.jsx)(EI,{ref:f,className:l(`min-w-full max-w-full text-left`,e),isInteractive:r,...a})}):(0,T.jsx)(T.Fragment,{})})]})},MI=e=>(0,T.jsx)(hk,{isClickable:!0,className:`text-text`,...e}),NI=e=>(0,T.jsx)(gk,{isClickable:!0,className:`mt-16 text-text`,...e}),PI=e=>(0,T.jsx)(_k,{isClickable:!0,className:`mt-5 text-text`,...e}),FI=e=>(0,T.jsx)(vk,{isClickable:!0,className:`mt-3 text-text`,...e}),II=e=>(0,T.jsx)(yk,{isClickable:!0,className:`mt-3 text-text`,...e}),LI=e=>(0,T.jsx)(bk,{isClickable:!0,className:`mt-3 text-text`,...e}),RI=e=>(0,T.jsx)(`strong`,{className:`text-text`,...e}),zI=(0,v.memo)(({className:e,children:t,isDarkMode:n,...r})=>{let i=String(t??``).replace(/\n$/,``);if(!e)return(0,T.jsx)(`code`,{className:`rounded-md border border-neutral/30 bg-card/60 box-decoration-clone px-1.5 py-0.5 font-mono text-sm`,children:i.replace(/&(?:amp;)?#(\d+);/g,(e,t)=>String.fromCharCode(parseInt(t,10)))});let a=e?.replace(/lang(?:uage)?-/,``)||`plaintext`;return(0,T.jsx)(eI,{...r,language:a,showHeader:!0,isDarkMode:n,children:i})},(e,t)=>e.children===t.children&&e.className===t.className&&e.isDarkMode===t.isDarkMode),BI=e=>function(t){return(0,T.jsx)(zI,{...t,isDarkMode:e})},VI=({className:e,...t})=>(0,T.jsx)(`blockquote`,{className:l(`mt-5 gap-3 border-card border-l-4 pl-5 text-neutral [&_strong]:text-neutral`,e),...t}),HI=({className:e,...t})=>(0,T.jsx)(`ul`,{className:l(`mt-5 flex list-disc flex-col gap-3 pl-5 marker:text-neutral/80`,e),...t}),UI=({className:e,...t})=>(0,T.jsx)(`ol`,{className:l(`mt-5 flex list-decimal flex-col gap-3 pl-5 marker:text-neutral/80`,e),...t}),WI=({className:e,alt:t,src:n,...r})=>(0,T.jsx)(`img`,{...r,alt:t??``,loading:`lazy`,className:l(`max-h-[80vh] max-w-full rounded-md`,e),src:n?.includes(`github.com`)?n?.replace(`github.com`,`raw.githubusercontent.com`).replace(`/blob/`,`/`):n}),GI=e=>t=>(0,T.jsx)(nk,{isExternalLink:t.href?.startsWith(`http`),underlined:!0,locale:e,label:``,color:`text`,...t}),KI={h1:MI,h2:NI,h3:PI,h4:FI,h5:II,h6:LI,strong:RI,blockquote:VI,ul:HI,ol:UI,img:WI,pre:e=>(0,T.jsx)(T.Fragment,{children:e.children}),table:e=>(0,T.jsx)(jI,{isRollable:!0,displayModal:!0,...e}),th:({className:e,...t})=>(0,T.jsx)(`th`,{className:l(`border-neutral border-b bg-neutral/10 p-4`,e),...t}),tr:({className:e,...t})=>(0,T.jsx)(`tr`,{className:l(`hover:/10 hover:bg-neutral/10`,e),...t}),td:({className:e,...t})=>(0,T.jsx)(`td`,{className:l(`border-neutral-500/50 border-b p-4`,e),...t}),hr:({className:e,...t})=>(0,T.jsx)(`hr`,{className:l(`mx-6 mt-16 text-neutral`,e),...t}),Tabs:e=>(0,T.jsx)(dI,{...e,className:`rounded-xl border border-card`,headerClassName:`sticky rounded-xl top-24 z-5 bg-background/70 backdrop-blur overflow-x-auto`}),Tab:dI.Item,Columns:({className:e,...t})=>(0,T.jsx)(`div`,{className:l(`flex gap-4 max-md:flex-col`,e),...t}),Column:({className:e,...t})=>(0,T.jsx)(`div`,{className:l(`flex-1`,e),...t})},qI=(e,t)=>({...KI,code:BI(e),a:GI(t)}),JI=({children:e,isDarkMode:t=!1,locale:n,forceBlock:r,preserveFrontmatter:i,tagfilter:a,components:o,wrapper:s})=>(0,T.jsx)(Ck,{children:(0,T.jsx)(rI,{children:Tr(e,{components:{...qI(t,n),...o},wrapper:s,forceBlock:r,preserveFrontmatter:i,tagfilter:a})})}),YI=e=>{let t,n;if(typeof e==`number`||!Number.isNaN(Number(e)))t=`=`,n=e.toString();else if(typeof e==`string`){let r=[`<=`,`>=`,`<`,`>`,`=`].find(t=>e.startsWith(t));r&&(t=r,n=e.slice(r.length))}return{comparator:t,numberValue:n}},XI=e=>{let t=(0,b.c)(13),{value:n,onChange:r}=e,i;t[0]===n?i=t[1]:(i=YI(n),t[0]=n,t[1]=i);let{comparator:a,numberValue:o}=i,[s,c]=(0,v.useState)(a??null),[l,u]=(0,v.useState)(o??null),d,f;t[2]!==s||t[3]!==a||t[4]!==o||t[5]!==l||t[6]!==r?(d=()=>{s&&l&&(s!==a||l!==o)&&r(`${s}${l}`)},f=[s,a,o,l,r],t[2]=s,t[3]=a,t[4]=o,t[5]=l,t[6]=r,t[7]=d,t[8]=f):(d=t[7],f=t[8]),(0,v.useEffect)(d,f);let p;if(t[9]!==a||t[10]!==l){let e;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(e=e=>u(e.target.value),t[12]=e):e=t[12],p=(0,T.jsxs)(`div`,{className:`flex gap-1`,children:[(0,T.jsxs)(J,{onValueChange:c,defaultValue:a,children:[(0,T.jsx)(J.Trigger,{className:`w-20`,children:(0,T.jsx)(J.Value,{placeholder:`Select a comparator`})}),(0,T.jsxs)(J.Content,{children:[(0,T.jsx)(J.Item,{value:`<`,children:`<`}),(0,T.jsx)(J.Item,{value:`<=`,children:`<=`}),(0,T.jsx)(J.Item,{value:`=`,children:`=`}),(0,T.jsx)(J.Item,{value:`>=`,children:`>=`}),(0,T.jsx)(J.Item,{value:`>`,children:`>`})]})]}),(0,T.jsx)(Zw,{type:`number`,"aria-label":`Quantity`,defaultValue:l??void 0,onChange:e,className:`min-w-4`})]}),t[9]=a,t[10]=l,t[11]=p}else p=t[11];return p},ZI=e=>{let t=(0,b.c)(14),{keyPath:n,dictionary:r,...i}=e,{editedContent:a,addEditedContent:o}=Bw(),s=Rw(),{mutate:c,isPending:l}=OO(),u;t[0]!==o||t[1]!==r||t[2]!==n?(u=e=>o(r.localId,e,n),t[0]=o,t[1]=r,t[2]=n,t[3]=u):u=t[3];let d;return t[4]!==o||t[5]!==c||t[6]!==s?.ai?.apiKey||t[7]!==s?.ai?.model||t[8]!==s?.ai?.temperature||t[9]!==s?.internationalization||t[10]!==r||t[11]!==a||t[12]!==n?(d=()=>{c({fileContent:JSON.stringify({...r,...a?.[r.localId]??{}}),keyPath:n,locales:s?.internationalization.locales??[],aiOptions:{apiKey:s?.ai?.apiKey,model:s?.ai?.model,temperature:s?.ai?.temperature}},{onSuccess:e=>{if(e?.data)try{let t=e.data.fileContent;o(r.localId,t,n)}catch(e){console.error(e)}}})},t[4]=o,t[5]=c,t[6]=s?.ai?.apiKey,t[7]=s?.ai?.model,t[8]=s?.ai?.temperature,t[9]=s?.internationalization,t[10]=r,t[11]=a,t[12]=n,t[13]=d):d=t[13],(0,T.jsx)(JO,{variant:`default`,onContentChange:u,additionalButtons:(0,T.jsx)(oS,{Icon:Uu,label:`Audit`,variant:`hoverable`,size:`icon-sm`,color:`text`,className:`cursor-pointer hover:scale-110`,isLoading:l,onClick:d}),...i})},QI=e=>{let t=(0,b.c)(4),{keyPath:n,dictionary:r,...i}=e,{addEditedContent:a}=Bw(),o;return t[0]!==a||t[1]!==r||t[2]!==n?(o=e=>a(r.localId,e,n),t[0]=a,t[1]=r,t[2]=n,t[3]=o):o=t[3],(0,T.jsx)(CT,{variant:`default`,onContentChange:o,...i})},$I=[{content:`False`,value:!1},{content:`True`,value:!0}],eL=e=>{let t=(0,b.c)(4),{dictionary:n,keyPath:r,...i}=e,{addEditedContent:a}=Bw(),o;return t[0]!==a||t[1]!==n||t[2]!==r?(o=e=>a(n.localId,e,r),t[0]=a,t[1]=n,t[2]=r,t[3]=o):o=t[3],(0,T.jsx)(yS,{choices:$I,value:!0,onChange:o,color:`text`,size:`sm`,...i})},tL=e=>{let t=(0,b.c)(17),{section:n,keyPath:r,dictionary:i,renderSection:a}=e,{locale:o,defaultLocale:s}=Sr(),{selectedLocales:c,availableLocales:l}=xT(),u=n[k],d;if(t[0]!==l||t[1]!==s||t[2]!==i||t[3]!==r||t[4]!==o||t[5]!==a||t[6]!==n||t[7]!==u||t[8]!==c){let e=Object.keys(u),f=l.length>c.length?c:[...new Set([...l,...e])],p=n[k],m;t[10]!==p||t[11]!==s||t[12]!==i||t[13]!==r||t[14]!==o||t[15]!==a?(m=e=>{let t=`${JSON.stringify(r)}-translation-${e}`;return(0,T.jsxs)(v.Fragment,{children:[(0,T.jsx)(`tr`,{className:`mt-2 w-full p-2 text-xs`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:dr(e,o)})}),(0,T.jsx)(`tr`,{className:`flex`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:(0,T.jsx)(pL,{section:p[e]??pw(p[s]),keyPath:[...r,{type:k,key:e}],dictionary:i,renderSection:a})})})]},t)},t[10]=p,t[11]=s,t[12]=i,t[13]=r,t[14]=o,t[15]=a,t[16]=m):m=t[16],d=(0,T.jsx)(`table`,{className:`w-full`,children:(0,T.jsx)(`tbody`,{className:`flex w-full flex-col gap-2`,children:f.map(m)})}),t[0]=l,t[1]=s,t[2]=i,t[3]=r,t[4]=o,t[5]=a,t[6]=n,t[7]=u,t[8]=c,t[9]=d}else d=t[9];return d},nL=e=>{let t=(0,b.c)(19),{section:n,keyPath:r,dictionary:i,renderSection:a}=e,{addEditedContent:o}=Bw(),{addNewEnumeration:s,removeEnumeration:c}=xr(vT),l=n[A],u;t[0]===l?u=t[1]:(u=Object.keys(l),t[0]=l,t[1]=u);let d=u[0],f;if(t[2]!==o||t[3]!==s.label.value||t[4]!==s.text||t[5]!==l||t[6]!==i||t[7]!==d||t[8]!==r||t[9]!==c||t[10]!==a||t[11]!==n){let e;t[13]!==o||t[14]!==l||t[15]!==i||t[16]!==d||t[17]!==r?(e=()=>o(i.localId,pw(l[d])??``,[...r,{type:A,key:`unknown`}]),t[13]=o,t[14]=l,t[15]=i,t[16]=d,t[17]=r,t[18]=e):e=t[18],f=(0,T.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,T.jsx)(`table`,{className:`w-full`,children:(0,T.jsx)(`tbody`,{className:`flex w-full flex-col gap-2`,children:Object.keys(n[A]).map(e=>{let t=[...r,{type:A,key:e}],s=`${JSON.stringify(r)}-enumeration-${e}`;return(0,T.jsxs)(v.Fragment,{children:[(0,T.jsx)(`tr`,{className:`mt-2 w-full`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:(0,T.jsx)(`div`,{className:`flex flex-1`,children:(0,T.jsx)(oS,{label:c.label.value,variant:`hoverable`,size:`sm`,color:`error`,className:`ml-auto text-neutral hover:text-error`,Icon:Hu,onClick:()=>o(i.localId,void 0,t),children:c.text})})})}),(0,T.jsx)(`tr`,{className:`w-full p-2`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:(0,T.jsx)(XI,{value:e,onChange:t=>{let a=n[A],s=ZO(a,e,t),c={...n,[A]:s};console.log(`newValue`,c),o(i.localId,c,r)}})})}),(0,T.jsx)(`tr`,{className:`block w-full`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:(0,T.jsx)(fL,{section:l[e]??pw(l[d]),keyPath:t,dictionary:i,renderSection:a})})})]},s)})})}),(0,T.jsx)(oS,{label:s.label.value,variant:`hoverable`,color:`neutral`,textAlign:`left`,isFullWidth:!0,onClick:e,Icon:Ru,className:`m-2`,children:s.text})]}),t[2]=o,t[3]=s.label.value,t[4]=s.text,t[5]=l,t[6]=i,t[7]=d,t[8]=r,t[9]=c,t[10]=a,t[11]=n,t[12]=f}else f=t[12];return f},rL=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{let i=e[j];return(0,T.jsx)(`table`,{className:`w-full`,children:(0,T.jsx)(`tbody`,{className:`flex w-full flex-col gap-2`,children:[`true`,`false`,`fallback`].map(e=>{let a=`${JSON.stringify(t)}-condition-${e}`;return(0,T.jsxs)(v.Fragment,{children:[(0,T.jsx)(`tr`,{className:`mt-2 block w-full p-2 text-xs`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:String(e)})}),(0,T.jsx)(`tr`,{className:`block w-full`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:(0,T.jsx)(pL,{section:i[e]??pw(i.true),keyPath:[...t,{type:j,key:e}],dictionary:n,renderSection:r})})})]},a)})})})},iL=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{let i=e[B];return(0,T.jsx)(`table`,{className:`w-full`,children:(0,T.jsx)(`tbody`,{className:`flex w-full flex-col gap-2`,children:[`male`,`female`,`fallback`].map(e=>{let a=`${JSON.stringify(t)}-gender-${e}`;return(0,T.jsxs)(v.Fragment,{children:[(0,T.jsx)(`tr`,{className:`mt-2 block w-full p-2 text-xs`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:String(e)})}),(0,T.jsx)(`tr`,{className:`block w-full`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:(0,T.jsx)(pL,{section:i[e]??pw(i.male),keyPath:[...t,{type:B,key:e}],dictionary:n,renderSection:r})})})]},a)})})})},aL=e=>{let t=(0,b.c)(22),{section:n,keyPath:r,dictionary:i,renderSection:a}=e,{addEditedContent:o}=Bw(),{addNewElement:s,removeElement:c}=xr(vT),l;if(t[0]!==o||t[1]!==s.label.value||t[2]!==s.text||t[3]!==i||t[4]!==r||t[5]!==c||t[6]!==a||t[7]!==n){let e;t[9]!==o||t[10]!==i||t[11]!==r||t[12]!==c||t[13]!==a||t[14]!==n[0]?(e=(e,t)=>{let s=`${JSON.stringify(r)}-array-${t}`;return(0,T.jsxs)(v.Fragment,{children:[(0,T.jsx)(`tr`,{className:`mt-2 w-full p-2`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:(0,T.jsxs)(`div`,{className:`flex w-full items-center justify-between gap-2`,children:[(0,T.jsx)(`span`,{className:`text-xs`,children:String(t)}),(0,T.jsx)(oS,{label:c.label.value,variant:`hoverable`,size:`sm`,color:`error`,className:`ml-auto text-neutral hover:text-error`,onClick:()=>{let e=[...r,{type:F,key:t}];o(i.localId,void 0,e)},Icon:Hu,children:c.text})]})})}),(0,T.jsx)(`tr`,{className:`block w-full`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:(0,T.jsx)(pL,{section:e??pw(n[0]),keyPath:[...r,{type:F,key:t}],dictionary:i,renderSection:a})})})]},s)},t[9]=o,t[10]=i,t[11]=r,t[12]=c,t[13]=a,t[14]=n[0],t[15]=e):e=t[15];let u;t[16]!==o||t[17]!==i||t[18]!==r||t[19]!==n[0]||t[20]!==n.length?(u=()=>{let e=[...r,{type:F,key:n.length}];o(i.localId,pw(n[0])??``,e,!1)},t[16]=o,t[17]=i,t[18]=r,t[19]=n[0],t[20]=n.length,t[21]=u):u=t[21],l=(0,T.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,T.jsx)(`table`,{className:`w-full`,children:(0,T.jsx)(`tbody`,{className:`flex w-full flex-col gap-2`,children:n.map(e)})}),(0,T.jsx)(oS,{label:s.label.value,variant:`hoverable`,color:`neutral`,textAlign:`left`,isFullWidth:!0,onClick:u,Icon:Ru,children:s.text})]}),t[0]=o,t[1]=s.label.value,t[2]=s.text,t[3]=i,t[4]=r,t[5]=c,t[6]=a,t[7]=n,t[8]=l}else l=t[8];return l},oL=({section:e,keyPath:t,dictionary:n,renderSection:r})=>(0,T.jsx)(T.Fragment,{children:(0,T.jsx)(`table`,{className:`w-full`,children:(0,T.jsx)(`tbody`,{className:`flex flex-col gap-2`,children:Object.keys(e).map(i=>{let a=[...t,{type:P,key:i}],o=e,s=Object.keys(o)[0],c=o[i]??pw(o[s]),l=`${JSON.stringify(t)}-object-${i}`;return(0,T.jsxs)(v.Fragment,{children:[(0,T.jsx)(`tr`,{className:`mt-2 p-2 text-xs`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:String(i)})}),(0,T.jsx)(`tr`,{className:`block w-full`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:(0,T.jsx)(fL,{section:c,keyPath:a,dictionary:n,renderSection:r})})})]},l)})})})}),sL=e=>{let t=(0,b.c)(5),{section:n,keyPath:r,dictionary:i}=e,[a,o]=(0,v.useState)(0),s;if(t[0]!==i||t[1]!==r||t[2]!==a||t[3]!==n){let e=[{content:`Edit`,value:0},{content:`Preview`,value:1}],c=[...r,{type:ee}],l=n[ee];s=(0,T.jsxs)(`div`,{className:`flex w-full flex-col justify-center gap-6 p-2`,children:[(0,T.jsx)(yS,{choices:e,value:a,onChange:o,color:`text`,size:`sm`,className:`ml-auto`}),(0,T.jsx)(pL,{section:l,keyPath:c,dictionary:i,renderSection:a===1?mL:void 0})]}),t[0]=i,t[1]=r,t[2]=a,t[3]=n,t[4]=s}else s=t[4];return s},cL=e=>{let t=(0,b.c)(9),{section:n,keyPath:r,dictionary:i,isDarkMode:a}=e,[o,s]=(0,v.useState)(0),c;if(t[0]!==i||t[1]!==a||t[2]!==r||t[3]!==o||t[4]!==n){let e=[{content:`Edit`,value:0},{content:`Preview`,value:1}],l=[...r,{type:R}],u=n[R],d;t[6]!==a||t[7]!==o?(d=o===1?e=>(0,T.jsx)(JI,{isDarkMode:a,children:e}):void 0,t[6]=a,t[7]=o,t[8]=d):d=t[8],c=(0,T.jsxs)(`div`,{className:`flex w-full flex-col justify-center gap-6 p-2`,children:[(0,T.jsx)(yS,{choices:e,value:o,onChange:s,color:`text`,size:`sm`,className:`ml-auto`}),(0,T.jsx)(pL,{section:u,keyPath:l,dictionary:i,renderSection:d})]}),t[0]=i,t[1]=a,t[2]=r,t[3]=o,t[4]=n,t[5]=c}else c=t[5];return c},lL=({section:e,keyPath:t,...n})=>{let r=[...t,{type:M}],i=e[M];return(0,T.jsx)(`div`,{className:`flex w-full flex-col justify-center gap-6 p-2`,children:(0,T.jsx)(pL,{section:i,keyPath:r,...n})})},uL=({section:e,keyPath:t,...n})=>{let r=[...t,{type:N}],i=e[N],{content:a}=e;return(0,T.jsxs)(`div`,{className:`flex w-full flex-col justify-center gap-6 p-2`,children:[(0,T.jsxs)(`span`,{className:`text-neutral text-sm`,children:[i,` `]}),(0,T.jsx)(pL,{section:a,keyPath:r,...n})]})},dL=e=>{let{keyPath:t,dictionary:n,renderSection:r,section:i,...a}=e,{addEditedContent:o}=Bw(),s=i[I],c=[...t,{type:I}];return(0,T.jsxs)(`div`,{className:`flex w-full flex-col gap-4 p-2`,children:[(0,T.jsx)(QO,{children:`Dictionary key`}),(0,T.jsx)(CT,{"aria-label":`Edit field`,type:`text`,variant:`default`,...a,onContentChange:e=>{o(n.localId,{...s,dictionaryKey:String(e)},c)},children:s.dictionaryKey??``}),(0,T.jsx)(QO,{children:`Path (optional)`}),(0,T.jsx)(CT,{"aria-label":`Edit field`,type:`text`,variant:`default`,...a,onContentChange:e=>{o(n.localId,{...s,path:e===``?void 0:e},c)},children:s.path??``})]})},fL=e=>{let t=(0,b.c)(77),{section:n,keyPath:r,dictionary:i,renderSection:a,isDarkMode:o}=e,{tsxNotEditable:s}=xr(vT),c,l;if(t[0]!==i||t[1]!==o||t[2]!==r||t[3]!==a||t[4]!==n||t[5]!==s){l=Symbol.for(`react.early_return_sentinel`);bb0:{let e=_w(n);if(e===`reactNode`){let e;t[8]===s?e=t[9]:(e=(0,T.jsxs)(`div`,{className:`flex w-full flex-col gap-2`,children:[(0,T.jsx)(`span`,{children:`(React Node)`}),(0,T.jsx)(`span`,{className:`flex text-neutral text-xs`,children:s})]}),t[8]=s,t[9]=e),l=e;break bb0}if(e===`nested`){let e;t[10]!==i||t[11]!==r||t[12]!==a||t[13]!==n?(e=(0,T.jsx)(dL,{dictionary:i,renderSection:a,keyPath:r,section:n}),t[10]=i,t[11]=r,t[12]=a,t[13]=n,t[14]=e):e=t[14],l=e;break bb0}if(e===`translation`){let e;t[15]!==i||t[16]!==r||t[17]!==a||t[18]!==n?(e=(0,T.jsx)(tL,{dictionary:i,renderSection:a,keyPath:r,section:n}),t[15]=i,t[16]=r,t[17]=a,t[18]=n,t[19]=e):e=t[19],l=e;break bb0}if(e===`enumeration`){let e;t[20]!==i||t[21]!==r||t[22]!==a||t[23]!==n?(e=(0,T.jsx)(nL,{dictionary:i,renderSection:a,keyPath:r,section:n}),t[20]=i,t[21]=r,t[22]=a,t[23]=n,t[24]=e):e=t[24],l=e;break bb0}if(e===`condition`){let e;t[25]!==i||t[26]!==r||t[27]!==a||t[28]!==n?(e=(0,T.jsx)(rL,{dictionary:i,renderSection:a,keyPath:r,section:n}),t[25]=i,t[26]=r,t[27]=a,t[28]=n,t[29]=e):e=t[29],l=e;break bb0}if(e===`gender`){let e;t[30]!==i||t[31]!==r||t[32]!==a||t[33]!==n?(e=(0,T.jsx)(iL,{dictionary:i,renderSection:a,keyPath:r,section:n}),t[30]=i,t[31]=r,t[32]=a,t[33]=n,t[34]=e):e=t[34],l=e;break bb0}if(e===`insertion`){let e;t[35]!==i||t[36]!==r||t[37]!==a||t[38]!==n?(e=(0,T.jsx)(lL,{dictionary:i,renderSection:a,keyPath:r,section:n}),t[35]=i,t[36]=r,t[37]=a,t[38]=n,t[39]=e):e=t[39],l=e;break bb0}if(e===`markdown`){let e;t[40]!==i||t[41]!==o||t[42]!==r||t[43]!==n?(e=(0,T.jsx)(cL,{dictionary:i,keyPath:r,section:n,isDarkMode:o}),t[40]=i,t[41]=o,t[42]=r,t[43]=n,t[44]=e):e=t[44],l=e;break bb0}if(e===`html`){let e;t[45]!==i||t[46]!==r||t[47]!==n?(e=(0,T.jsx)(sL,{dictionary:i,keyPath:r,section:n}),t[45]=i,t[46]=r,t[47]=n,t[48]=e):e=t[48],l=e;break bb0}if(e===`file`){let e;t[49]!==i||t[50]!==r||t[51]!==a||t[52]!==n?(e=(0,T.jsx)(uL,{dictionary:i,renderSection:a,keyPath:r,section:n}),t[49]=i,t[50]=r,t[51]=a,t[52]=n,t[53]=e):e=t[53],l=e;break bb0}if(e===`array`){let e;t[54]!==i||t[55]!==r||t[56]!==a||t[57]!==n?(e=(0,T.jsx)(aL,{dictionary:i,renderSection:a,keyPath:r,section:n}),t[54]=i,t[55]=r,t[56]=a,t[57]=n,t[58]=e):e=t[58],l=e;break bb0}if(e===`object`){let e;t[59]!==i||t[60]!==r||t[61]!==a||t[62]!==n?(e=(0,T.jsx)(oL,{dictionary:i,renderSection:a,keyPath:r,section:n}),t[59]=i,t[60]=r,t[61]=a,t[62]=n,t[63]=e):e=t[63],l=e;break bb0}if(e===`number`){let e;t[64]!==i||t[65]!==r||t[66]!==n?(e=(0,T.jsx)(`div`,{className:`w-full p-2`,children:(0,T.jsx)(QI,{dictionary:i,keyPath:r,type:`number`,"aria-label":`Edit field`,children:n})}),t[64]=i,t[65]=r,t[66]=n,t[67]=e):e=t[67],l=e;break bb0}if(e===`text`){let e;t[68]!==i||t[69]!==r||t[70]!==a||t[71]!==n?(e=(0,T.jsx)(`div`,{className:`w-full p-2`,children:typeof a==`function`?a(n):(0,T.jsx)(ZI,{variant:`default`,"aria-label":`Edit field`,keyPath:r,dictionary:i,children:n})}),t[68]=i,t[69]=r,t[70]=a,t[71]=n,t[72]=e):e=t[72],l=e;break bb0}if(e===`boolean`){let e;t[73]!==i||t[74]!==r||t[75]!==n?(e=(0,T.jsx)(`div`,{className:`w-full p-2`,children:(0,T.jsx)(eL,{dictionary:i,keyPath:r,value:n})}),t[73]=i,t[74]=r,t[75]=n,t[76]=e):e=t[76],l=e;break bb0}c=(0,T.jsxs)(`div`,{className:`w-full p-2`,children:[`Error. Format not supported.`,JSON.stringify(n,null,2),JSON.stringify(r,null,2),`NodeType : `,e]})}t[0]=i,t[1]=o,t[2]=r,t[3]=a,t[4]=n,t[5]=s,t[6]=c,t[7]=l}else c=t[6],l=t[7];return l===Symbol.for(`react.early_return_sentinel`)?c:l},pL=e=>(0,T.jsx)(tS,{border:!0,background:`none`,className:`top-6 flex h-full flex-1 flex-col gap-6 overflow-hidden p-2 md:sticky`,roundedSize:`xl`,children:(0,T.jsx)(fL,{...e})});function mL(e){return(0,T.jsx)(`div`,{dangerouslySetInnerHTML:{__html:e}})}var hL={key:`breadcrumb`,content:{nodeType:`translation`,translation:{en:{linkLabel:`Go to`},"en-GB":{linkLabel:`Go to`},fr:{linkLabel:`Aller à`},es:{linkLabel:`Ir a`},de:{linkLabel:`Gehe zu`},ja:{linkLabel:`に移動`},ko:{linkLabel:`로 이동`},zh:{linkLabel:`转到`},it:{linkLabel:`Vai a`},pt:{linkLabel:`Ir para`},hi:{linkLabel:`कर जाएं`},ar:{linkLabel:`اذهب إلى`},ru:{linkLabel:`Перейти на`}}},localIds:[`breadcrumb::local::../@intlayer/design-system/dist/esm/components/Breadcrumb/breadcrumb.content.mjs`]},gL=e=>e&&{primary:`text-primary`,secondary:`text-secondary`,destructive:`text-destructive`,neutral:`text-neutral`,light:`text-white`,dark:`text-neutral-800`,text:`text-text`,"text-inverse":`text-text-opposite`,error:`text-error`,success:`text-success`,custom:``}[e]||``,_L=ou(`flex flex-row flex-wrap items-center text-sm`,{variants:{size:{small:`gap-1 text-xs`,medium:`gap-2 text-sm`,large:`gap-3 text-base`},spacing:{compact:`gap-1`,normal:`gap-2`,loose:`gap-4`}},defaultVariants:{size:`medium`,spacing:`normal`}}),vL=({href:e,lang:t,children:n,onClick:r,color:i,position:a,locale:o,className:s,...c})=>{let l=Ce(hL).linkLabel;return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(nk,{href:e,locale:o,color:i,onClick:r,itemProp:`item`,isExternalLink:!1,itemScope:!0,itemType:`https://schema.org/WebPage`,...c,label:`${l} ${n}`,itemID:e,size:`sm`,children:(0,T.jsx)(`span`,{itemProp:`name`,children:n})}),(0,T.jsx)(`meta`,{itemProp:`position`,content:a.toString()})]})},yL=e=>{let{children:t,onClick:n,color:r,position:i,className:a,...o}=e,{linkLabel:s}=xr(hL);return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(oS,{onClick:n,variant:`link`,label:`${s} ${t}`,color:r,itemProp:`item`,...o,children:(0,T.jsx)(`span`,{itemProp:`name`,children:t})}),(0,T.jsx)(`meta`,{itemProp:`position`,content:i.toString()})]})},bL=({children:e,position:t,className:n,...r})=>(0,T.jsxs)(`span`,{itemProp:`item`,className:l(`inline-flex items-center`,`font-medium text-neutral-700`,`transition-colors duration-200`,n),children:[(0,T.jsx)(`span`,{itemProp:`name`,...r,children:e}),(0,T.jsx)(`meta`,{itemProp:`position`,content:t.toString()})]}),xL=({links:e,className:t,color:n=`text`,locale:r,elementType:i=`page`,separator:a=(0,T.jsx)(Su,{size:10}),ariaLabel:o=`breadcrumb`,includeStructuredData:s=!0,maxItems:c,size:u,spacing:d,...f})=>{let p=c&&e.length>c?[...e.slice(0,1),`...`,...e.slice(-(c-2))]:e;return(0,T.jsx)(`nav`,{"aria-label":o,children:(0,T.jsx)(`ol`,{className:l(_L({size:u,spacing:d}),t),...s&&{itemScope:!0,itemType:`http://schema.org/BreadcrumbList`},...f,children:p.map((e,t)=>{let o=t===p.length-1,c=typeof e==`object`&&typeof e.href==`string`,u=typeof e==`object`&&typeof e.onClick==`function`,d=t===p.length-1,f=d?i:void 0,m=e===`...`,h=e.text??e,g=gL(n);if(m)return(0,T.jsxs)(v.Fragment,{children:[(0,T.jsx)(`li`,{className:`flex items-center`,"aria-hidden":`true`,children:(0,T.jsx)(`span`,{className:`text-neutral-500`,children:`…`})}),!o&&(0,T.jsx)(`li`,{"aria-hidden":`true`,className:`flex items-center`,children:(0,T.jsx)(`span`,{className:l(g),children:a})})]},`truncated-${h}`);let _=(0,T.jsx)(bL,{position:t+1,"aria-current":f,className:l(`transition-colors duration-200`,d&&`text-neutral-900`),children:h},h);c?_=(0,T.jsx)(vL,{href:e.href,color:n,position:t+1,locale:r,"aria-current":f,className:l(d&&`cursor-default text-neutral-900`),children:h},h):u&&(_=(0,T.jsx)(yL,{onClick:e.onClick,color:n,position:t+1,"aria-current":f,className:l(d&&`cursor-default text-neutral-900`),children:h},h));let y=(0,v.createElement)(`li`,{...s&&{itemProp:`itemListElement`,itemScope:!0,itemType:`https://schema.org/ListItem`},key:h,className:`flex items-center`},_);return o?y:(0,T.jsxs)(v.Fragment,{children:[y,(0,T.jsx)(`li`,{"aria-hidden":`true`,className:`flex items-center`,children:(0,T.jsx)(`span`,{className:l(g),children:a})})]},h)})})})},SL=({keyPath:e,dictionaryKey:t,onClickKeyPath:n,locale:r,color:i,showDictionaryKey:a=!0})=>(0,T.jsx)(xL,{links:[...a?[{text:_r(t),onClick:n?()=>n([]):void 0}]:[],...e.map((t,r)=>({onClick:n?()=>n?.(e.slice(0,r+1)):void 0,text:t.key?.toString()??``}))],locale:r,elementType:`location`,color:i}),CL={key:`locale-switcher-content`,content:{nodeType:`translation`,translation:{en:{localeSwitcherLabel:`Language switcher`,languageListLabel:`Language list`,switchTo:`Switch to`,searchInput:{text:`Search Locale`,placeholder:`Search a locale`,ariaLabel:`Language search`},seeAllLocalesSwitch:{true:`See all locales`,false:`See only selected locales`}},"en-GB":{localeSwitcherLabel:`Language switcher`,languageListLabel:`Language list`,switchTo:`Switch to`,searchInput:{text:`Search Locale`,placeholder:`Search a locale`,ariaLabel:`Language search`},seeAllLocalesSwitch:{true:`See all locales`,false:`See only selected locales`}},fr:{localeSwitcherLabel:`Changer de langue`,languageListLabel:`Liste des langues`,switchTo:`Passer à`,searchInput:{text:`Rechercher la locale`,placeholder:`Rechercher une locale`,ariaLabel:`Recherche de langue`},seeAllLocalesSwitch:{true:`Voir toutes les langues`,false:`Voir seulement les langues sélectionnées`}},es:{localeSwitcherLabel:`Cambiar idioma`,languageListLabel:`Lista de idiomas`,switchTo:`Cambiar a`,searchInput:{text:`Buscar idioma`,placeholder:`Buscar un idioma`,ariaLabel:`Búsqueda de idioma`},seeAllLocalesSwitch:{true:`Ver todos los idiomas`,false:`Ver solo los idiomas seleccionados`}},de:{localeSwitcherLabel:`Sprachwechsler`,languageListLabel:`Sprachliste`,switchTo:`Wechseln Sie zu`,searchInput:{text:`Sprache durchsuchen`,placeholder:`Sprache suchen`,ariaLabel:`Sprachsuche`},seeAllLocalesSwitch:{true:`Alle Sprachen anzeigen`,false:`Nur ausgewählte Sprachen anzeigen`}},ja:{localeSwitcherLabel:`言語スイッチャー`,languageListLabel:`言語リスト`,switchTo:`に切り替える`,searchInput:{text:`ロケールを検索`,placeholder:`ロケールを検索`,ariaLabel:`言語検索`},seeAllLocalesSwitch:{true:`すべての言語を表示`,false:`選択された言語のみを表示`}},ko:{localeSwitcherLabel:`언어 스위치`,languageListLabel:`언어 목록`,switchTo:`전환`,searchInput:{text:`언어 검색`,placeholder:`언어 검색`,ariaLabel:`언어 검색`},seeAllLocalesSwitch:{true:`모든 언어 보기`,false:`선택한 언어만 보기`}},zh:{localeSwitcherLabel:`语言切换器`,languageListLabel:`语言列表`,switchTo:`切换到`,searchInput:{text:`搜索语言`,placeholder:`搜索语言`,ariaLabel:`语言搜索`},seeAllLocalesSwitch:{true:`查看所有语言`,false:`仅查看选定的语言`}},it:{localeSwitcherLabel:`Cambia lingua`,languageListLabel:`Elenco lingue`,switchTo:`Passa a`,searchInput:{text:`Cerca lingua`,placeholder:`Cerca una lingua`,ariaLabel:`Ricerca lingua`},seeAllLocalesSwitch:{true:`Vedi tutte le lingue`,false:`Vedi solo le lingue selezionate`}},pt:{localeSwitcherLabel:`Mudar idioma`,languageListLabel:`Lista de idiomas`,switchTo:`Mudar para`,searchInput:{text:`Pesquisar idioma`,placeholder:`Pesquisar um idioma`,ariaLabel:`Pesquisa de idioma`},seeAllLocalesSwitch:{true:`Ver todos os idiomas`,false:`Ver apenas os idiomas selecionados`}},hi:{localeSwitcherLabel:`भाषा स्विचर`,languageListLabel:`भाषा सूची`,switchTo:`स्विच करें`,searchInput:{text:`भाषा खोजें`,placeholder:`भाषा खोजें`,ariaLabel:`भाषा खोजें`},seeAllLocalesSwitch:{true:`सभी भाषाओं को देखें`,false:`केवल चुने गए भाषाओं को देखें`}},ar:{localeSwitcherLabel:`مبدل اللغة`,languageListLabel:`قائمة اللغات`,switchTo:`التبديل إلى`,searchInput:{text:`بحث اللغة`,placeholder:`بحث اللغة`,ariaLabel:`بحث اللغة`},seeAllLocalesSwitch:{true:`عرض جميع اللغات`,false:`عرض اللغات المحددة فقط`}},ru:{localeSwitcherLabel:`Переключатель языка`,languageListLabel:`Список языков`,switchTo:`Переключиться на`,searchInput:{text:`Поиск языка`,placeholder:`Поиск языка`,ariaLabel:`Поиск языка`},seeAllLocalesSwitch:{true:`Показать все языки`,false:`Показать только выбранные языки`}}}},localIds:[`locale-switcher-content::local::../@intlayer/design-system/dist/esm/components/LocaleSwitcherContentDropDown/localeSwitcher.content.mjs`]},wL=({children:e,className:t,identifier:n,...r})=>(0,T.jsx)(`div`,{className:l(`group/dropdown relative flex`,t),"aria-label":`DropDown ${n}`,id:`dropdown-container-${n}`,...r,children:e});wL.Trigger=({children:e,identifier:t,className:n,label:r,...i})=>(0,T.jsx)(oS,{className:l([`w-full cursor-pointer`,`group-focus-within/dropdown:bg-current/20 group-focus-within/dropdown:ring-4`,n]),label:r??`Open panel ${t}`,"aria-haspopup":`true`,"aria-controls":`dropdown-panel-${t}`,id:`dropdown-trigger-${t}`,onClick:e=>{e.currentTarget.focus()},variant:`none`,...i,children:e}),wL.Panel=({children:e,isHidden:t=void 0,isOverable:n=!1,isFocusable:r=!1,align:i=`start`,yAlign:a=`below`,identifier:o,className:s,...c})=>(0,T.jsx)(`div`,{className:l(`absolute z-100 min-w-full`,i===`start`&&`left-0`,i===`end`&&`right-0`,a===`below`&&`top-[calc(100%+0.5rem)]`,a===`above`&&`bottom-[calc(100%+0.5rem)]`,s),"aria-hidden":t,role:`region`,"aria-labelledby":`dropdown-trigger-${o}`,id:`dropdown-panel-${o}`,children:(0,T.jsx)(sS,{isHidden:t,className:l(`overflow-x-visible`,t===!1&&`invisible`,t===!0&&`visible`,n&&`group-hover/dropdown:visible group-hover/dropdown:grid-rows-[1fr]`,r&&`group-focus-within/dropdown:visible group-focus-within/dropdown:grid-rows-[1fr]`),...c,children:e})});function TL(e){return Array.isArray?Array.isArray(e):FL(e)===`[object Array]`}function EL(e){if(typeof e==`string`)return e;if(typeof e==`bigint`)return e.toString();let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function DL(e){return e==null?``:EL(e)}function OL(e){return typeof e==`string`}function kL(e){return typeof e==`number`}function AL(e){return e===!0||e===!1||ML(e)&&FL(e)==`[object Boolean]`}function jL(e){return typeof e==`object`}function ML(e){return jL(e)&&e!==null}function NL(e){return e!=null}function PL(e){return!e.trim().length}function FL(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var IL=`Incorrect 'index' type`,LL=e=>`Invalid value for key ${e}`,RL=e=>`Pattern length exceeds max of ${e}.`,zL=e=>`Missing ${e} property in key`,BL=e=>`Property 'weight' in key '${e}' must be a positive integer`,VL=Object.prototype.hasOwnProperty,HL=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=UL(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function UL(e){let t=null,n=null,r=null,i=1,a=null;if(OL(e)||TL(e))r=e,t=WL(e),n=GL(e);else{if(!VL.call(e,`name`))throw Error(zL(`name`));let o=e.name;if(r=o,VL.call(e,`weight`)&&(i=e.weight,i<=0))throw Error(BL(o));t=WL(o),n=GL(o),a=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:a}}function WL(e){return TL(e)?e:e.split(`.`)}function GL(e){return TL(e)?e.join(`.`):e}function KL(e,t){let n=[],r=!1,i=(e,t,a,o)=>{if(NL(e))if(!t[a])n.push(o===void 0?e:{v:e,i:o});else{let s=e[t[a]];if(!NL(s))return;if(a===t.length-1&&(OL(s)||kL(s)||AL(s)||typeof s==`bigint`))n.push(o===void 0?DL(s):{v:DL(s),i:o});else if(TL(s)){r=!0;for(let e=0,n=s.length;e<n;e+=1)i(s[e],t,a+1,e)}else t.length&&i(s,t,a+1,o)}};return i(e,OL(t)?t.split(`.`):t,0),r?n:n[0]}var qL={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},JL={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},YL={location:0,threshold:.6,distance:100},XL={useExtendedSearch:!1,useTokenSearch:!1,getFn:KL,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},Y=Object.freeze({...JL,...qL,...YL,...XL}),ZL=/[^ ]+/g;function QL(e=1,t=3){let n=new Map,r=10**t;return{get(t){let i=t.match(ZL).length;if(n.has(i))return n.get(i);let a=1/i**(.5*e),o=parseFloat(Math.round(a*r)/r);return n.set(i,o),o},clear(){n.clear()}}}var $L=class{constructor({getFn:e=Y.getFn,fieldNormWeight:t=Y.fieldNormWeight}={}){this.norm=QL(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,OL(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();OL(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)--this.records[t].i}removeAll(e){for(let t=e.length-1;t>=0;--t)this.records.splice(e[t],1);for(let e=0,t=this.records.length;e<t;e+=1)this.records[e].i=e}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!NL(e)||PL(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach((t,r)=>{let i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(NL(i)){if(TL(i)){let e=[];for(let t=0,n=i.length;t<n;t+=1){let n=i[t];if(NL(n)){if(OL(n)){if(!PL(n)){let r={v:n,i:t,n:this.norm.get(n)};e.push(r)}}else if(NL(n.v)){let t=OL(n.v)?n.v:DL(n.v);if(!PL(t)){let r={v:t,i:n.i,n:this.norm.get(t)};e.push(r)}}}}n.$[r]=e}else if(OL(i)&&!PL(i)){let e={v:i,n:this.norm.get(i)};n.$[r]=e}}}),this.records.push(n)}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function eR(e,t,{getFn:n=Y.getFn,fieldNormWeight:r=Y.fieldNormWeight}={}){let i=new $L({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(UL)),i.setSources(t),i.create(),i}function tR(e,{getFn:t=Y.getFn,fieldNormWeight:n=Y.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new $L({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function nR(e=[],t=Y.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a<o;a+=1){let o=e[a];o&&r===-1?r=a:!o&&r!==-1&&(i=a-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}var rR=32;function iR(e,t,n,{location:r=Y.location,distance:i=Y.distance,threshold:a=Y.threshold,findAllMatches:o=Y.findAllMatches,minMatchCharLength:s=Y.minMatchCharLength,includeMatches:c=Y.includeMatches,ignoreLocation:l=Y.ignoreLocation}={}){if(t.length>rR)throw Error(RL(rR));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),p=a,m=f,h=(e,t)=>{let n=e/u;if(l)return n;let r=Math.abs(f-t);return i?n+r/i:r?1:n},g=s>1||c,_=g?Array(d):[],v;for(;(v=e.indexOf(t,m))>-1;){let e=h(0,v);if(p=Math.min(e,p),m=v+u,g){let e=0;for(;e<u;)_[v+e]=1,e+=1}}m=-1;let y=[],b=1,x=u+d,S=1<<u-1;for(let t=0;t<u;t+=1){let r=0,i=x;for(;r<i;)h(t,f+i)<=p?r=i:x=i,i=Math.floor((x-r)/2+r);x=i;let a=Math.max(1,f-i+1),s=o?d:Math.min(f+i,d)+u,c=Array(s+2);c[s+1]=(1<<t)-1;for(let r=s;r>=a;--r){let i=r-1,o=n[e[i]];if(g&&(_[i]=+!!o),c[r]=(c[r+1]<<1|1)&o,t&&(c[r]|=(y[r+1]|y[r])<<1|1|y[r+1]),c[r]&S&&(b=h(t,i),b<=p)){if(p=b,m=i,m<=f)break;a=Math.max(1,2*f-m)}}if(h(t+1,f)>p)break;y=c}let C={isMatch:m>=0,score:Math.max(.001,b)};if(g){let e=nR(_,s);e.length?c&&(C.indices=e):C.isMatch=!1}return C}function aR(e){let t={};for(let n=0,r=e.length;n<r;n+=1){let i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}function oR(e){if(e.length<=1)return e;e.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);let t=[e[0]];for(let n=1,r=e.length;n<r;n+=1){let r=t[t.length-1],i=e[n];i[0]<=r[1]+1?r[1]=Math.max(r[1],i[1]):t.push(i)}return t}var sR={ł:`l`,Ł:`L`,đ:`d`,Đ:`D`,ø:`o`,Ø:`O`,ħ:`h`,Ħ:`H`,ŧ:`t`,Ŧ:`T`,ı:`i`,ß:`ss`},cR=RegExp(`[`+Object.keys(sR).join(``)+`]`,`g`),lR=String.prototype.normalize?e=>e.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``).replace(cR,e=>sR[e]):e=>e,uR=class{constructor(e,{location:t=Y.location,threshold:n=Y.threshold,distance:r=Y.distance,includeMatches:i=Y.includeMatches,findAllMatches:a=Y.findAllMatches,minMatchCharLength:o=Y.minMatchCharLength,isCaseSensitive:s=Y.isCaseSensitive,ignoreDiacritics:c=Y.ignoreDiacritics,ignoreLocation:l=Y.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?lR(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:aR(e),startIndex:t})},d=this.pattern.length;if(d>rR){let e=0,t=d%rR,n=d-t;for(;e<n;)u(this.pattern.substr(e,rR),e),e+=rR;if(t){let e=d-rR;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?lR(e):e,this.pattern===e){let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,ignoreLocation:l}=this.options,u=[],d=0,f=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:p})=>{let{isMatch:m,score:h,indices:g}=iR(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&u.push(...g)});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=oR(u)),p}},dR=class{constructor(e){this.pattern=e}static isMultiMatch(e){return fR(e,this.multiRegex)}static isSingleMatch(e){return fR(e,this.singleRegex)}search(e){return{isMatch:!1,score:1}}};function fR(e,t){let n=e.match(t);return n?n[1]:null}var pR=class extends dR{constructor(e){super(e)}static get type(){return`exact`}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},mR=class extends dR{constructor(e){super(e)}static get type(){return`inverse-exact`}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=e.indexOf(this.pattern)===-1;return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},hR=class extends dR{constructor(e){super(e)}static get type(){return`prefix-exact`}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},gR=class extends dR{constructor(e){super(e)}static get type(){return`inverse-prefix-exact`}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},_R=class extends dR{constructor(e){super(e)}static get type(){return`suffix-exact`}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[e.length-this.pattern.length,e.length-1]}}},vR=class extends dR{constructor(e){super(e)}static get type(){return`inverse-suffix-exact`}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},yR=class extends dR{constructor(e,{location:t=Y.location,threshold:n=Y.threshold,distance:r=Y.distance,includeMatches:i=Y.includeMatches,findAllMatches:a=Y.findAllMatches,minMatchCharLength:o=Y.minMatchCharLength,isCaseSensitive:s=Y.isCaseSensitive,ignoreDiacritics:c=Y.ignoreDiacritics,ignoreLocation:l=Y.ignoreLocation}={}){super(e),this._bitapSearch=new uR(e,{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l})}static get type(){return`fuzzy`}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}},bR=class extends dR{constructor(e){super(e)}static get type(){return`include`}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t=0,n,r=[],i=this.pattern.length;for(;(n=e.indexOf(this.pattern,t))>-1;)t=n+i,r.push([n,t-1]);let a=!!r.length;return{isMatch:a,score:+!a,indices:r}}},xR=[pR,bR,hR,gR,vR,_R,mR,yR],SR=xR.length,CR=`\0`,wR=`|`;function TR(e){let t=[],n=e.length,r=0;for(;r<n;){for(;r<n&&e[r]===` `;)r++;if(r>=n)break;let i=r;for(;i<n&&e[i]!==` `&&e[i]!==`"`;)i++;if(i<n&&e[i]===`"`){for(i++;i<n;){if(e[i]===`"`){let t=i+1;if(t>=n||e[t]===` `){i++;break}if(e[t]===`$`&&(t+1>=n||e[t+1]===` `)){i+=2;break}}i++}t.push(e.substring(r,i)),r=i}else{for(;i<n&&e[i]!==` `;)i++;t.push(e.substring(r,i)),r=i}}return t}function ER(e,t={}){return e.replace(/\\\|/g,CR).split(wR).map(e=>{let n=TR(e.replace(/\u0000/g,`|`).trim()).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e<i;e+=1){let i=n[e],a=!1,o=-1;for(;!a&&++o<SR;){let e=xR[o],n=e.isMultiMatch(i);n&&(r.push(new e(n,t)),a=!0)}if(!a)for(o=-1;++o<SR;){let e=xR[o],n=e.isSingleMatch(i);if(n){r.push(new e(n,t));break}}}return r})}var DR=new Set([yR.type,bR.type]),OR=class{constructor(e,{isCaseSensitive:t=Y.isCaseSensitive,ignoreDiacritics:n=Y.ignoreDiacritics,includeMatches:r=Y.includeMatches,minMatchCharLength:i=Y.minMatchCharLength,ignoreLocation:a=Y.ignoreLocation,findAllMatches:o=Y.findAllMatches,location:s=Y.location,threshold:c=Y.threshold,distance:l=Y.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:i,findAllMatches:o,ignoreLocation:a,location:s,threshold:c,distance:l},e=t?e:e.toLowerCase(),e=n?lR(e):e,this.pattern=e,this.query=ER(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:i}=this.options;e=r?e:e.toLowerCase(),e=i?lR(e):e;let a=0,o=[],s=0,c=!1;for(let r=0,i=t.length;r<i;r+=1){let i=t[r];o.length=0,a=0,c=!1;for(let t=0,r=i.length;t<r;t+=1){let r=i[t],{isMatch:l,indices:u,score:d}=r.search(e);if(l){a+=1,s+=d;let e=r.constructor.type;e.startsWith(`inverse`)&&(c=!0),n&&(DR.has(e)?o.push(...u):o.push(u))}else{s=0,a=0,o.length=0,c=!1;break}}if(a){let e={isMatch:!0,score:s/a};return c&&(e.hasInverse=!0),n&&(e.indices=oR(o)),e}}return{isMatch:!1,score:1}}},kR=[];function AR(...e){kR.push(...e)}function jR(e,t){for(let n=0,r=kR.length;n<r;n+=1){let r=kR[n];if(r.condition(e,t))return new r(e,t)}return new uR(e,t)}var MR={AND:`$and`,OR:`$or`},NR={PATH:`$path`,PATTERN:`$val`},PR=e=>!!(e[MR.AND]||e[MR.OR]),FR=e=>!!e[NR.PATH],IR=e=>!TL(e)&&jL(e)&&!PR(e),LR=e=>({[MR.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function RR(e,t,{auto:n=!0}={}){let r=e=>{if(OL(e)){let r={keyId:null,pattern:e};return n&&(r.searcher=jR(e,t)),r}let i=Object.keys(e),a=FR(e);if(!a&&i.length>1&&!PR(e))return r(LR(e));if(IR(e)){let r=a?e[NR.PATH]:i[0],o=a?e[NR.PATTERN]:e[r];if(!OL(o))throw Error(LL(r));let s={keyId:GL(r),pattern:o};return n&&(s.searcher=jR(o,t)),s}let o={children:[],operator:i[0]};return i.forEach(t=>{let n=e[t];TL(n)&&n.forEach(e=>{o.children.push(r(e))})}),o};return PR(e)||(e=LR(e)),r(e)}function zR(e,{ignoreFieldNorm:t=Y.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**+((a||1)*(t?1:r))}),n}function BR(e,{ignoreFieldNorm:t=Y.ignoreFieldNorm}){e.forEach(e=>{e.score=zR(e.matches,{ignoreFieldNorm:t})})}var VR=class{constructor(e){this.limit=e,this.heap=[]}get size(){return this.heap.length}shouldInsert(e){return this.size<this.limit||e<this.heap[0].score}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):e.score<this.heap[0].score&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(e){return this.heap.sort(e)}_bubbleUp(e){let t=this.heap;for(;e>0;){let n=e-1>>1;if(t[e].score<=t[n].score)break;let r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){let t=this.heap,n=t.length,r=e;do{e=r;let i=2*e+1,a=2*e+2;if(i<n&&t[i].score>t[r].score&&(r=i),a<n&&t[a].score>t[r].score&&(r=a),r!==e){let n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}};function HR(e,t){let n=e.matches;t.matches=[],NL(n)&&n.forEach(e=>{if(!NL(e.indices)||!e.indices.length)return;let{indices:n,value:r}=e,i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)})}function UR(e,t){t.score=e.score}function WR(e,t,{includeMatches:n=Y.includeMatches,includeScore:r=Y.includeScore}={}){let i=[];return n&&i.push(HR),r&&i.push(UR),e.map(e=>{let{idx:n}=e,r={item:t[n],refIndex:n};return i.length&&i.forEach(t=>{t(e,r)}),r})}var GR=/\b\w+\b/g;function KR({isCaseSensitive:e=!1,ignoreDiacritics:t=!1}={}){return{tokenize(n){return e||(n=n.toLowerCase()),t&&(n=lR(n)),n.match(GR)||[]}}}function qR(e,t,n){let r=new Map,i=new Map,a=0;function o(e,t,o,s){let c=n.tokenize(e);if(!c.length)return;a++;let l=new Map;for(let e of c)l.set(e,(l.get(e)||0)+1);for(let[e,n]of l){let a={docIdx:t,keyIdx:o,subIdx:s,tf:n},c=r.get(e);c||(c=[],r.set(e,c)),c.push(a),i.set(e,(i.get(e)||0)+1)}}for(let n of e){let{i:e,v:r,$:i}=n;if(r!==void 0){o(r,e,-1,-1);continue}if(i)for(let n=0;n<t;n++){let t=i[n];if(t)if(Array.isArray(t))for(let r of t)o(r.v,e,n,r.i??-1);else o(t.v,e,n,-1)}}return{terms:r,fieldCount:a,df:i}}function JR(e,t,n,r){let{i,v:a,$:o}=t;function s(t,n,a){let o=r.tokenize(t);if(!o.length)return;e.fieldCount++;let s=new Map;for(let e of o)s.set(e,(s.get(e)||0)+1);for(let[t,r]of s){let o={docIdx:i,keyIdx:n,subIdx:a,tf:r},s=e.terms.get(t);s||(s=[],e.terms.set(t,s)),s.push(o),e.df.set(t,(e.df.get(t)||0)+1)}}if(a!==void 0){s(a,-1,-1);return}if(o)for(let e=0;e<n;e++){let t=o[e];if(t)if(Array.isArray(t))for(let n of t)s(n.v,e,n.i??-1);else s(t.v,e,-1)}}function YR(e,t){for(let[n,r]of e.terms){let i=r.filter(e=>e.docIdx!==t),a=r.length-i.length;a>0&&(e.fieldCount-=a,e.df.set(n,(e.df.get(n)||0)-a),i.length===0?(e.terms.delete(n),e.df.delete(n)):e.terms.set(n,i))}}var XR=class{constructor(e,t,n){this.options={...Y,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new HL(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;let t=jR(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof $L))throw Error(IL);if(this._myIndex=t||eR(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=KR({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics});this._invertedIndex=qR(this._myIndex.records,this._myIndex.keys.length,e)}}add(e){if(NL(e)&&(this._docs.push(e),this._myIndex.add(e),this._invertedIndex)){let e=this._myIndex.records[this._myIndex.records.length-1],t=KR({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics});JR(this._invertedIndex,e,this._myIndex.keys.length,t)}}remove(e=()=>!1){let t=[],n=[];for(let r=0,i=this._docs.length;r<i;r+=1)e(this._docs[r],r)&&(t.push(this._docs[r]),n.push(r));if(n.length){if(this._invertedIndex)for(let e of n)YR(this._invertedIndex,e);for(let e=n.length-1;e>=0;--e)this._docs.splice(n[e],1);this._myIndex.removeAll(n)}return t}removeAt(e){this._invertedIndex&&YR(this._invertedIndex,e);let t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),t}getIndex(){return this._myIndex}search(e,t){let{limit:n=-1}=t||{},{includeMatches:r,includeScore:i,shouldSort:a,sortFn:o,ignoreFieldNorm:s}=this.options;if(OL(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return kL(n)&&n>-1&&(e=e.slice(0,n)),e}let c=kL(n)&&n>0&&OL(e),l;if(c){let t=new VR(n);OL(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),l=t.extractSorted(o)}else l=OL(e)?OL(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),BR(l,{ignoreFieldNorm:s}),a&&l.sort(o),kL(n)&&n>-1&&(l=l.slice(0,n));return WR(l,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),{records:i}=this._myIndex,a=t?null:[];return i.forEach(({v:e,i,n:o})=>{if(!NL(e))return;let{isMatch:s,score:c,indices:l}=r.searchIn(e);if(s){let r={item:e,idx:i,matches:[{score:c,value:e,norm:o,indices:l}]};t?(r.score=zR(r.matches,{ignoreFieldNorm:n}),t.shouldInsert(r.score)&&t.insert(r)):a.push(r)}}),a}_searchLogical(e){let t=RR(e,this.options),n=(e,t,r)=>{if(!(`children`in e)){let{keyId:n,searcher:i}=e,a;return n===null?(a=[],this._myIndex.keys.forEach((e,n)=>{a.push(...this._findMatches({key:e,value:t[n],searcher:i}))})):a=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i}),a&&a.length?[{idx:r,item:t,matches:a}]:[]}let{children:i,operator:a}=e,o=[];for(let e=0,s=i.length;e<s;e+=1){let s=i[e],c=n(s,t,r);if(c.length)o.push(...c);else if(a===MR.AND)return[]}return o},r=this._myIndex.records,i=new Map,a=[];return r.forEach(({$:e,i:r})=>{if(NL(e)){let o=n(t,e,r);o.length&&(i.has(r)||(i.set(r,{idx:r,item:e,matches:[]}),a.push(i.get(r))),o.forEach(({matches:e})=>{i.get(r).matches.push(...e)}))}}),a}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),{keys:i,records:a}=this._myIndex,o=t?null:[];return a.forEach(({$:e,i:a})=>{if(!NL(e))return;let s=[],c=!1,l=!1;if(i.forEach((t,n)=>{let i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(s.push(...i),i[0].hasInverse&&(l=!0)):c=!0}),!(l&&c)&&s.length){let r={idx:a,item:e,matches:s};t?(r.score=zR(r.matches,{ignoreFieldNorm:n}),t.shouldInsert(r.score)&&t.insert(r)):o.push(r)}}),o}_findMatches({key:e,value:t,searcher:n}){if(!NL(t))return[];let r=[];if(TL(t))t.forEach(({v:t,i,n:a})=>{if(!NL(t))return;let{isMatch:o,score:s,indices:c,hasInverse:l}=n.searchIn(t);o&&r.push({score:s,key:e,value:t,idx:i,norm:a,indices:c,hasInverse:l})});else{let{v:i,n:a}=t,{isMatch:o,score:s,indices:c,hasInverse:l}=n.searchIn(i);o&&r.push({score:s,key:e,value:i,norm:a,indices:c,hasInverse:l})}return r}},ZR=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=KR({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics});let n=this.analyzer.tokenize(e),{df:r,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(let e of n){this.termSearchers.push(new uR(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));let n=r.get(e)||0,a=Math.log(1+(i-n+.5)/(n+.5));this.idfWeights.push(a)}}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};let t=[],n=0,r=0,i=0;for(let a=0;a<this.termSearchers.length;a++){let o=this.termSearchers[a].searchIn(e),s=this.idfWeights[a];r+=s,o.isMatch&&(i++,n+=s*(1-o.score),o.indices&&t.push(...o.indices))}if(i===0)return{isMatch:!1,score:1};let a=r>0?1-n/r:0,o={isMatch:!0,score:Math.max(.001,a)};return this.options.includeMatches&&t.length&&(o.indices=oR(t)),o}};XR.version=`7.3.0`,XR.createIndex=eR,XR.parseIndex=tR,XR.config=Y,XR.match=function(e,t,n){return jR(e,{...Y,...n}).searchIn(t)},XR.parseQuery=RR,AR(OR),AR(ZR),XR.use=function(...e){e.forEach(e=>AR(e))};var QR=`locale-switcher-content`,$R=({panelProps:e,isMultilingual:t=!0})=>{let{switchTo:n,searchInput:r,localeSwitcherLabel:i,languageListLabel:a,seeAllLocalesSwitch:o}=xr(CL),s=(0,v.useRef)(null),{locale:c}=Sr(),{availableLocales:l,selectedLocales:u,setSelectedLocales:d}=xT(),f=(0,v.useMemo)(()=>l.map(e=>({locale:e,englishName:dr(e,`en`),currentLocaleName:dr(e,c),ownLocaleName:dr(e)})),[l,c]),[p,m]=(0,v.useState)(``),[h,g]=yT(`locale-content-selector-see-all-locales`,!1),_=(0,v.useMemo)(()=>new XR(f,{keys:[{name:`ownLocaleName`,weight:.4},{name:`englishName`,weight:.2},{name:`currentLocaleName`,weight:.2},{name:`locale`,weight:.2}],threshold:.02}),[f]),y=(0,v.useMemo)(()=>p?_.search(p).map(e=>e.item):f,[p,f,_]),b=e=>{t?u.includes(e)?u.length>1&&d(t=>t.filter(t=>t!==e)):d(t=>[...t,e]):d([e])},x=e=>{g(e),d(e?l:[c])};return(0,T.jsx)(`div`,{className:`rounded-xl border border-text text-text transition-colors`,children:(0,T.jsxs)(wL,{identifier:QR,children:[(0,T.jsx)(wL.Trigger,{identifier:QR,label:i.value,className:`p-0!`,roundedSize:`3xl`,color:`text`,children:(0,T.jsxs)(`div`,{className:`flex w-full items-center justify-between text-text`,children:[(0,T.jsx)(`div`,{className:`px-2 py-1`,children:(0,T.jsx)(ju,{size:16})}),(0,T.jsx)(Fu,{className:`self-center`,size:16})]})}),(0,T.jsx)(wL.Panel,{identifier:QR,isOverable:!0,isFocusable:!0,align:`end`,...e,children:(0,T.jsxs)(tS,{className:`max-h-[60vh] min-w-28`,separator:`y`,role:`listbox`,transparency:`xs`,border:!0,roundedSize:`3xl`,borderColor:`text`,"aria-label":a.value,children:[t&&(0,T.jsx)(`div`,{className:`m-auto p-2`,children:(0,T.jsx)(yS,{defaultValue:h,onChange:x,color:`text`,size:`sm`,className:`!w-60`,choices:[{content:o.true.value,value:!0},{content:o.false.value,value:!1}]})}),!(t&&h)&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`div`,{className:`p-3`,children:(0,T.jsx)(Zw,{type:`search`,"aria-label":r.ariaLabel.value,placeholder:r.placeholder.value,onChange:e=>m(e.target.value),ref:s})}),(0,T.jsx)(`ol`,{className:`divide-y divide-dashed divide-text/20 overflow-y-auto p-1`,children:y.map(({locale:e,currentLocaleName:r,ownLocaleName:i})=>(0,T.jsx)(`li`,{className:`px-1.5 py-1`,children:(0,T.jsx)(oS,{onClick:()=>b(e),label:`${n} ${r}`,disabled:!(l??l).includes(e),isActive:u.includes(e),variant:`hoverable`,color:`text`,isFullWidth:!0,textAlign:`left`,size:`sm`,children:(0,T.jsxs)(`div`,{className:`flex flex-row items-center justify-between gap-3 px-2 py-1`,children:[t&&(0,T.jsx)(`div`,{className:`w-4`,children:u.includes(e)&&(0,T.jsx)(yu,{className:`size-full`})}),(0,T.jsxs)(`div`,{className:`flex flex-1 flex-row items-center justify-between gap-3 px-2 py-1`,children:[(0,T.jsxs)(`div`,{className:`flex flex-col text-nowrap`,children:[(0,T.jsx)(`span`,{dir:or(e),lang:e,children:i}),(0,T.jsx)(`span`,{className:`text-neutral text-xs`,children:r})]}),(0,T.jsx)(`span`,{className:`text-neutral text-sm`,children:e.toUpperCase()})]})]})})},e))})]})]})})]})})},ez=e=>{let t=mw(e),n=_w(e);return t&&(n===`reactNode`||n===`file`)?!0:t&&typeof t.nodeType==`string`?ez(t[t.nodeType]):typeof t==`string`||typeof t==`number`||typeof t==`boolean`||t===void 0},tz=e=>{let t=(0,b.c)(16),{section:n,keyPath:r,dictionary:i}=e,{locales:a}=x,o=dw(n,r,Nw()),{addEditedContent:s}=zw(),{setFocusedContentKeyPath:c,focusedContent:l}=Fw(),{addNewElement:u,goToField:d}=xr(vT),f=_w(o),p;t[0]===l?.keyPath?p=t[1]:(p=e=>(l?.keyPath?.length??0)>0&&pr(e,l?.keyPath??[]),t[0]=l?.keyPath,t[1]=p);let m=p,h=ez(o);if(!o)return(0,T.jsx)(T.Fragment,{});if(h){let e;return t[2]!==r||t[3]!==c?(e=()=>c(r),t[2]=r,t[3]=c,t[4]=e):e=t[4],(0,T.jsx)(oS,{label:d.label.value,variant:`hoverable`,color:`text`,className:`w-full`,onClick:e,IconRight:Su,children:_r(r[r.length-1].key)})}if(typeof o==`object`){if(f===`reactNode`)return(0,T.jsx)(T.Fragment,{children:`React Node`});if(f===`translation`){let e;return t[5]!==i||t[6]!==r||t[7]!==n?(e=e=>(0,T.jsx)(tz,{keyPath:[...r,{type:k,key:e}],section:n,dictionary:i},e),t[5]=i,t[6]=r,t[7]=n,t[8]=e):e=t[8],(0,T.jsx)(`div`,{className:`flex flex-col justify-between gap-2`,children:a.map(e)})}if(f===`enumeration`||f===`condition`)return(0,T.jsx)(`div`,{className:`flex flex-col justify-between gap-2`,children:Object.keys(o[f]).map(e=>(0,T.jsx)(tz,{keyPath:[...r,{type:f,key:e}],section:n,dictionary:i},e))});if(f===`array`){let e;return t[9]!==i||t[10]!==m||t[11]!==d||t[12]!==r||t[13]!==n||t[14]!==c?(e=(e,t)=>{let a=[...r,{type:F,key:t}];return ez(e)?(0,T.jsxs)(oS,{label:`${d.label.value} ${t}`,variant:`hoverable`,color:`text`,className:`w-full`,onClick:()=>c(a),IconRight:Su,isActive:m(a),children:[`Item `,t]},JSON.stringify(a)):(0,T.jsx)(cS,{label:`${d.label.value} ${t}`,header:`Item ${t}`,isActive:m(a),onClick:()=>c(a),children:(0,T.jsx)(`div`,{className:`mt-2 flex w-full max-w-full`,children:(0,T.jsx)(`div`,{className:`flex-1 pl-10`,children:(0,T.jsx)(tz,{keyPath:a,section:n,dictionary:i})})})},JSON.stringify(a))},t[9]=i,t[10]=m,t[11]=d,t[12]=r,t[13]=n,t[14]=c,t[15]=e):e=t[15],(0,T.jsxs)(`div`,{className:`flex flex-col justify-between gap-2`,children:[o.map(e),(0,T.jsx)(oS,{label:u.label.value,variant:`hoverable`,color:`neutral`,textAlign:`left`,onClick:()=>{let e=[...r,{type:F,key:o.length}],t=o,n=pw(t[t.length-1])??``;s(i.localId,n,e,!1),c(e)},Icon:Ru,children:u.text})]})}return typeof o.nodeType==`string`?(0,T.jsx)(tz,{keyPath:[...r,{type:o.nodeType}],section:n,dictionary:i}):(0,T.jsx)(`div`,{className:`flex w-full max-w-full flex-col justify-between gap-2`,children:Object.keys(o).map(e=>{let t=[...r,{type:P,key:e}];return ez(dw(n,t))?(0,T.jsx)(oS,{label:`${d.label.value} ${e}`,isActive:m(t),variant:`hoverable`,color:`text`,className:`w-full`,onClick:()=>c(t),IconRight:Su,children:_r(e)},e):(0,T.jsx)(cS,{label:`${d.label.value} ${e}`,isActive:m(t),onClick:()=>c(t),header:_r(e),children:(0,T.jsx)(`div`,{className:`mt-2 flex w-full max-w-full`,children:(0,T.jsx)(`div`,{className:`flex-1 pl-10`,children:(0,T.jsx)(tz,{keyPath:t,section:n,dictionary:i})})})},e)})})}return(0,T.jsxs)(T.Fragment,{children:[`Error loading section --`,f,`--`,JSON.stringify(o),`--`,JSON.stringify(r)]})},nz=e=>{let t=(0,b.c)(3),{dictionary:n,isDarkMode:r}=e,{content:i,key:a,localId:o}=n,{editedContent:s}=Bw(),{focusedContent:c,setFocusedContentKeyPath:l}=Fw(),u=c?.keyPath,d=s?.[o]?.content===void 0?i:s?.[o]?.content,f=Nw(),p=dw(d,u??[],f),m;t[0]===d?m=t[1]:(m=ez(d),t[0]=d,t[1]=m);let h=m,g=ez(p),_;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(_=[],t[2]=_):_=t[2],(0,v.useEffect)(()=>{p===void 0&&l(c?.keyPath?.slice(0,-1)??[])},_),(0,T.jsxs)(`div`,{children:[(0,T.jsxs)(`div`,{className:`mb-6 flex items-center justify-between gap-2`,children:[(0,T.jsx)(SL,{dictionaryKey:a,keyPath:u??[],onClickKeyPath:l}),(0,T.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,T.jsx)($R,{})})]}),(0,T.jsxs)(`div`,{className:`flex flex-1 gap-2 overflow-visible max-md:flex-col`,children:[typeof d==`object`&&d&&!h&&Object.keys(d).length>0&&(0,T.jsx)(tS,{border:!0,background:`none`,className:`top-10 flex h-full flex-col items-start gap-0.5 overflow-auto p-2 md:sticky md:max-w-[50%]`,roundedSize:`xl`,transparency:`xs`,children:(0,T.jsx)(tz,{keyPath:[],section:d,dictionary:n})}),(g||(u??[]).length>0)&&(0,T.jsx)(pL,{keyPath:u??[],section:p,dictionary:n,isDarkMode:r})]})]})},rz=ou(`inline-flex items-center rounded-md border px-2.5 py-0.5 font-semibold text-xs transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2`,{variants:{color:{primary:`border-primary bg-primary text-primary hover:bg-primary-500`,secondary:`border-secondary bg-secondary text-secondary hover:bg-secondary-300`,destructive:`border-destructive bg-destructive text-destructive hover:bg-destructive-500`,success:`border-success bg-success text-success hover:bg-success-500`,error:`border-error bg-error text-error hover:bg-error-500`,neutral:`border-neutral bg-neutral text-neutral hover:bg-neutral-600`,light:`border-white bg-white text-white hover:bg-neutral-500`,dark:`border-neutral-800 bg-neutral-800 text-neutral-800 hover:bg-neutral-900`,text:`border-text bg-text text-text hover:opacity-80`,custom:``},variant:{default:`rounded-lg text-text-opposite`,none:`border-none bg-opacity-0 text-inherit hover:bg-opacity-0`,outline:`rounded-lg border-[1.3px] bg-opacity-0 hover:bg-opacity-30`,hoverable:`rounded-lg border-none bg-opacity-0 transition hover:bg-opacity-10`},size:{sm:`px-2 py-0.5 text-xs`,md:`px-2.5 py-0.5 text-xs`,lg:`px-3 py-1 text-sm`}},defaultVariants:{variant:`default`,color:`primary`,size:`md`}}),iz=({className:e,variant:t=`default`,color:n=`primary`,size:r=`md`,children:i,clickable:a=!1,dismissible:o=!1,onClick:s,onDismiss:c,role:u,tabIndex:d,"aria-label":f,...p})=>{let m=a?`button`:`span`,h=e=>{a&&s&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),s(e))},g=e=>{e.stopPropagation(),c?.()};return(0,T.jsxs)(m,{className:l(rz({variant:t,color:n,size:r}),a&&`cursor-pointer hover:opacity-80 focus-visible:ring-2 focus-visible:ring-offset-2`,o&&`pr-1`,e),onClick:a?s:void 0,onKeyDown:a?h:void 0,role:u||(a?`button`:`status`),tabIndex:a?d??0:d,"aria-label":f||(a?`${i} button`:void 0),...p,children:[i,o&&(0,T.jsx)(`button`,{type:`button`,className:`ml-1 inline-flex h-4 w-4 items-center justify-center rounded-full hover:bg-black/10 focus:outline-none focus:ring-1 focus:ring-offset-1`,onClick:g,"aria-label":`Remove ${i} badge`,children:(0,T.jsxs)(`svg`,{className:`size-3`,viewBox:`0 0 20 20`,fill:`currentColor`,"aria-label":`Remove badge`,children:[(0,T.jsx)(`title`,{children:`Remove badge`}),(0,T.jsx)(`path`,{fillRule:`evenodd`,d:`M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z`,clipRule:`evenodd`})]})})]})},az=`Dialog`,[oz,sz]=bc(az),[cz,lz]=oz(az),uz=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=v.useRef(null),c=v.useRef(null),[l,u]=il({prop:r,defaultProp:i??!1,onChange:a,caller:az});return(0,T.jsx)(cz,{scope:t,triggerRef:s,contentRef:c,contentId:$k(),titleId:$k(),descriptionId:$k(),open:l,onOpenChange:u,onOpenToggle:v.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})};uz.displayName=az;var dz=`DialogTrigger`,fz=v.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=lz(dz,n),a=vc(t,i.triggerRef);return(0,T.jsx)(Ac.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Mz(i.open),...r,ref:a,onClick:hc(e.onClick,i.onOpenToggle)})});fz.displayName=dz;var pz=`DialogPortal`,[mz,hz]=oz(pz,{forceMount:void 0}),gz=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=lz(pz,t);return(0,T.jsx)(mz,{scope:t,forceMount:n,children:v.Children.map(r,e=>(0,T.jsx)($c,{present:n||a.open,children:(0,T.jsx)(Zc,{asChild:!0,container:i,children:e})}))})};gz.displayName=pz;var _z=`DialogOverlay`,vz=v.forwardRef((e,t)=>{let n=hz(_z,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=lz(_z,e.__scopeDialog);return a.modal?(0,T.jsx)($c,{present:r||a.open,children:(0,T.jsx)(bz,{...i,ref:t})}):null});vz.displayName=_z;var yz=Sc(`DialogOverlay.RemoveScroll`),bz=v.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=lz(_z,n);return(0,T.jsx)(nP,{as:yz,allowPinchZoom:!0,shards:[i.contentRef],children:(0,T.jsx)(Ac.div,{"data-state":Mz(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),xz=`DialogContent`,Sz=v.forwardRef((e,t)=>{let n=hz(xz,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=lz(xz,e.__scopeDialog);return(0,T.jsx)($c,{present:r||a.open,children:a.modal?(0,T.jsx)(Cz,{...i,ref:t}):(0,T.jsx)(wz,{...i,ref:t})})});Sz.displayName=xz;var Cz=v.forwardRef((e,t)=>{let n=lz(xz,e.__scopeDialog),r=v.useRef(null),i=vc(t,n.contentRef,r);return v.useEffect(()=>{let e=r.current;if(e)return qM(e)},[]),(0,T.jsx)(Tz,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:hc(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:hc(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:hc(e.onFocusOutside,e=>e.preventDefault())})}),wz=v.forwardRef((e,t)=>{let n=lz(xz,e.__scopeDialog),r=v.useRef(!1),i=v.useRef(!1);return(0,T.jsx)(Tz,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),Tz=v.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=lz(xz,n),c=v.useRef(null),l=vc(t,c);return Nk(),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(zk,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,T.jsx)(Bc,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Mz(s.open),...o,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Iz,{titleId:s.titleId}),(0,T.jsx)(Rz,{contentRef:c,descriptionId:s.descriptionId})]})]})}),Ez=`DialogTitle`,Dz=v.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=lz(Ez,n);return(0,T.jsx)(Ac.h2,{id:i.titleId,...r,ref:t})});Dz.displayName=Ez;var Oz=`DialogDescription`,kz=v.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=lz(Oz,n);return(0,T.jsx)(Ac.p,{id:i.descriptionId,...r,ref:t})});kz.displayName=Oz;var Az=`DialogClose`,jz=v.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=lz(Az,n);return(0,T.jsx)(Ac.button,{type:`button`,...r,ref:t,onClick:hc(e.onClick,()=>i.onOpenChange(!1))})});jz.displayName=Az;function Mz(e){return e?`open`:`closed`}var Nz=`DialogTitleWarning`,[Pz,Fz]=yc(Nz,{contentName:xz,titleName:Ez,docsSlug:`dialog`}),Iz=({titleId:e})=>{let t=Fz(Nz),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
159
|
+
`)?e.slice(0,-1):e,h=s||c||d;return(0,T.jsx)(Dk,{packageManager:s,codeFormat:c,contentDeclarationFormat:d,children:(0,T.jsxs)(tS,{className:l(`relative min-w-0 max-w-full text-sm leading-6`,i&&`with-line-number ml-0`,a),transparency:`lg`,...p,children:[r&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(`div`,{className:`grid w-full grid-cols-[1fr_auto] items-center justify-between rounded-t-xl bg-card/50 py-1.5 pr-12 pl-4 text-neutral text-xs`,children:[(0,T.jsx)(`span`,{className:`truncate`,children:o??t}),(0,T.jsxs)(`div`,{className:`flex items-center gap-2`,children:[s&&(0,T.jsx)(QF,{}),c&&(0,T.jsx)(VF,{}),d&&(0,T.jsx)(HF,{})]})]}),(0,T.jsx)(`div`,{className:`sticky top-46 z-20`,children:(0,T.jsx)(`div`,{className:l(`absolute right-2 bottom-0 flex h-7 items-center`,h&&`h-11`),children:(0,T.jsx)(ZF,{code:m})})})]}),(0,T.jsx)(Ek,{minHeight:$F,isRollable:f,className:`min-w-0 max-w-full overflow-x-auto p-2`,children:(0,T.jsx)(u,{lang:t,isDarkMode:n,children:m})})]})})},tI=(0,v.createContext)({tabsValues:{},setTabsValues:()=>{}}),nI=()=>(0,v.useContext)(tI),rI=e=>{let t=(0,b.c)(4),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={},t[0]=r):r=t[0];let[i,a]=(0,v.useState)(r),o;return t[1]!==n||t[2]!==i?(o=(0,T.jsx)(tI,{value:{tabsValues:i,setTabsValues:a},children:n}),t[1]=n,t[2]=i,t[3]=o):o=t[3],o},iI=e=>{let t=(0,b.c)(38),{enable:n,onSwipeLeft:r,onSwipeRight:i,itemIndex:a,itemCount:o,thresholdPct:s,touchAction:c,disableWhenSelectingText:l}=e,u=n===void 0?!0:n,d=s===void 0?20:s,f=c===void 0?`pan-y`:c,p=l===void 0?!0:l,m=(0,v.useRef)(null),[h,g]=(0,v.useState)(!1),[_,y]=(0,v.useState)(0),x;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(x={pointerId:null,startX:0,startY:0,lastX:0,axisLocked:!1,isHorizontal:!1},t[0]=x):x=t[0];let S=(0,v.useRef)(x),C=(0,v.useRef)(!1),w;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(w=()=>{let e=m.current;return e?e.clientWidth:0},t[1]=w):w=t[1];let T=w,E;t[2]!==o||t[3]!==a?(E=e=>{let t=a<=0,n=a>=o-1;return t&&e>0||n&&e<0?e/(1+Math.abs(e)/30):e},t[2]=o,t[3]=a,t[4]=E):E=t[4];let D=E,O;t[5]===u?O=t[6]:(O=e=>{u&&S.current.pointerId===null&&(S.current.pointerId=e.pointerId,S.current.startX=e.clientX,S.current.startY=e.clientY,S.current.lastX=e.clientX,S.current.axisLocked=!1,S.current.isHorizontal=!1,C.current=!1,g(!1),y(0))},t[5]=u,t[6]=O);let k=O,A;t[7]!==D||t[8]!==p||t[9]!==u||t[10]!==h?(A=e=>{if(!u||S.current.pointerId!==e.pointerId)return;let t=T();if(!t)return;let n=e.clientX-S.current.startX,r=e.clientY-S.current.startY;if(p){let e=typeof window<`u`?window.getSelection?.():null;if(e&&e.rangeCount>0&&!e.isCollapsed){C.current=!0;return}}if(!S.current.axisLocked){let e=Math.abs(n),t=Math.abs(r);(e>6||t>6)&&(S.current.axisLocked=!0,S.current.isHorizontal=e>t)}if(S.current.isHorizontal){try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}e.preventDefault(),h||g(!0),y(D(n/t*100)),S.current.lastX=e.clientX}},t[7]=D,t[8]=p,t[9]=u,t[10]=h,t[11]=A):A=t[11];let j=A,M;t[12]!==_||t[13]!==r||t[14]!==i||t[15]!==d?(M=e=>{try{e.currentTarget.releasePointerCapture(e.pointerId)}catch{}let t=S.current.isHorizontal,n=_;if(g(!1),y(0),S.current.pointerId=null,S.current.axisLocked=!1,S.current.isHorizontal=!1,C.current){C.current=!1;return}t&&(n>d?i?.():n<-d&&r?.())},t[12]=_,t[13]=r,t[14]=i,t[15]=d,t[16]=M):M=t[16];let N=M,P;t[17]!==u||t[18]!==N?(P=e=>{u&&S.current.pointerId===e.pointerId&&N(e)},t[17]=u,t[18]=N,t[19]=P):P=t[19];let F=P,I;t[20]!==u||t[21]!==N?(I=e=>{u&&S.current.pointerId===e.pointerId&&N(e)},t[20]=u,t[21]=N,t[22]=I):I=t[22];let L=I,R;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(R=()=>{y(0),g(!1)},t[23]=R):R=t[23];let ee;t[24]===a?ee=t[25]:(ee=[a],t[24]=a,t[25]=ee),(0,v.useEffect)(R,ee);let te;t[26]===f?te=t[27]:(te={touchAction:f},t[26]=f,t[27]=te);let ne;t[28]!==L||t[29]!==k||t[30]!==j||t[31]!==F||t[32]!==te?(ne={ref:m,onPointerDown:k,onPointerMove:j,onPointerUp:F,onPointerCancel:L,style:te},t[28]=L,t[29]=k,t[30]=j,t[31]=F,t[32]=te,t[33]=ne):ne=t[33];let z;return t[34]!==_||t[35]!==h||t[36]!==ne?(z={containerRef:m,isDragging:h,dragDeltaPct:_,containerProps:ne},t[34]=_,t[35]=h,t[36]=ne,t[37]=z):z=t[37],z},aI=ou(`relative z-0 flex size-full flex-row items-center gap-2`,{variants:{color:{primary:`border-primary text-primary`,secondary:`border-secondary text-secondary`,destructive:`border-destructive bg-destructive text-destructive`,neutral:`border-neutral text-neutral`,light:`border-white text-white`,dark:`border-neutral-800 text-neutral-800`,text:`border-text text-text`}},defaultVariants:{color:`primary`}}),oI=ou(`absolute -z-1 rounded-lg duration-300 ease-in-out motion-reduce:transition-none`,{variants:{color:{primary:`bg-primary/10 aria-selected:text-text`,secondary:`bg-secondary/10 aria-selected:text-text`,destructive:`bg-destructive/10 aria-selected:text-text`,neutral:`bg-neutral/10 aria-selected:text-white/10`,light:`bg-white/10 aria-selected:text-black`,dark:`bg-neutral-800/10 aria-selected:text-white`,text:`bg-text/10 aria-selected:text-text-opposite`},orientation:{horizontal:`top-0 h-full w-auto transition-[left,width]`,vertical:`left-0 h-auto w-full transition-[top,height]`}},defaultVariants:{orientation:`horizontal`}}),sI=({tabs:e,selectedChoice:t,onTabClick:n,color:r=`primary`,hoverable:i=!1,orientation:a=`horizontal`,className:o})=>{let s=(0,v.useRef)([]),c=(0,v.useRef)(null),{choiceIndicatorPosition:u,calculatePosition:d}=fS(s,{isHoverable:i,orientation:a});return(0,v.useEffect)(()=>{d()},[t]),(0,T.jsxs)(`div`,{className:l(aI({color:r}),o),"aria-orientation":a,"aria-multiselectable":`false`,role:`tablist`,children:[e.map((e,r)=>{let i=e.key,a=t===i;return(0,v.cloneElement)(e,{key:i??r,role:`tab`,onClick:t=>{e.props?.onClick?.(t),n?.(i)},"aria-selected":a,"data-active":a,tabIndex:a?0:-1,ref:e=>{s.current[r]=e}})}),u&&(0,T.jsx)(`div`,{className:l(oI({color:r,orientation:a})),style:u,ref:c},`${t}${JSON.stringify(e.map(e=>e.key))}`)]})},cI=(0,v.createContext)(void 0),lI=ou(`relative w-full rounded-lg`,{variants:{background:{with:`border border-neutral/20 bg-background/2 shadow-[0_0_10px_-15px_rgba(0,0,0,0.3)] backdrop-blur`,without:``},variant:{default:``,bordered:`border-2`,ghost:`border-0 bg-transparent shadow-none`}},defaultVariants:{variant:`default`}}),uI=({children:e,...t})=>(0,T.jsx)(`div`,{...t,children:e});uI.displayName=`TabItem`;var dI=Object.assign(e=>{let t=(0,b.c)(5),{defaultTab:n,group:r,variant:i,children:a,className:o,headerClassName:s,fullHeight:c,...u}=e,d=v.Children.toArray(a).filter(fI),f=d[0]?.props?.value,{tabsValues:p,setTabsValues:m}=nI(),[h,g]=(0,v.useState)(n??f??``),_=(r&&typeof p==`object`?p?.[r]:h)??n??f,y;t[0]===_?y=t[1]:(y=e=>e.props.value===_,t[0]=_,t[1]=y);let x=d.findIndex(y),S=d.length,{containerProps:C,dragDeltaPct:w,isDragging:E}=iI({itemIndex:x,itemCount:S,onSwipeLeft:()=>{let e=d[Math.min(S-1,x+1)]?.props?.value;e&&D(e)},onSwipeRight:()=>{let e=d[Math.max(0,x-1)]?.props?.value;e&&D(e)}}),D=e=>{g(e),typeof m==`function`&&m(t=>({...t,[r]:e}))},O={activeTab:h??f??``,setActiveTab:D},k;return t[2]!==x||t[3]!==c?(k=(e,t)=>{let{props:n}=e,{value:r,children:i,className:a}=n,o=t===x;return(0,T.jsx)(`div`,{role:`tabpanel`,"aria-labelledby":`tab-${r}`,id:`tabpanel-${r}`,"aria-hidden":!o,tabIndex:o?0:-1,"data-active":o,className:l(`w-full min-w-0 p-6 opacity-100 transition-opacity duration-300 ease-in-out`,c&&`h-full overflow-y-auto`,!o&&`pointer-events-none opacity-0`,a),children:(0,T.jsx)(`div`,{className:l(`flex w-full min-w-0 flex-col items-stretch gap-6`,c&&`min-h-full`),children:i})},r)},t[2]=x,t[3]=c,t[4]=k):k=t[4],(0,T.jsx)(cI.Provider,{value:O,children:(0,T.jsxs)(`div`,{className:l(lI({variant:i}),c&&`flex h-full flex-col overflow-hidden`,o),...u,children:[(0,T.jsx)(`div`,{className:l(`flex shrink-0 gap-3 p-3`,s),children:(0,T.jsx)(sI,{selectedChoice:_,tabs:d.map(e=>{let{label:t,value:n,disabled:r}=e.props,i=_===n;return(0,T.jsx)(`button`,{className:l(`cursor-pointer whitespace-nowrap rounded-md px-4 py-1 font-medium text-sm transition-colors focus:outline-none`,!i&&`text-neutral/70`),"data-active":i,disabled:r,onClick:()=>!r&&D(n),role:`tab`,"aria-selected":i,"aria-controls":`tabpanel-${n}`,id:`tab-${n}`,type:`button`,children:t??n},n)}),hoverable:!0,color:`text`})}),(0,T.jsx)(`div`,{className:l(`relative w-full min-w-0 overflow-x-clip [-webkit-clip-path:inset(0)] [clip-path:inset(0)]`,c&&`min-h-0 flex-1`),...C,children:(0,T.jsx)(`div`,{role:`tablist`,"aria-orientation":`horizontal`,className:l(`grid w-full min-w-0`,c&&`h-full`,E?`transition-none`:`transition-transform duration-300 ease-in-out`),style:{gridTemplateColumns:`repeat(${d.length}, 100%)`,transform:`translateX(-${x*100-(E?w:0)}%)`},children:d.map(k)})})]})})},{Item:uI});function fI(e){return(0,v.isValidElement)(e)&&e.type===uI}var pI=e=>{let t=(0,b.c)(3),[n,r]=(0,v.useState)(e),i,a;return t[0]===e?(i=t[1],a=t[2]):(i=()=>{r(e??window.document.body)},a=[e],t[0]=e,t[1]=i,t[2]=a),(0,v.useEffect)(i,a),n},mI=new class{listeners=new Set;scrollBlockers=[];subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.scrollBlockers;addBlockage=(e,t)=>{let n=this.scrollBlockers.find(e=>e.element===t);if(n){if(n.blockers.includes(e))return;this.scrollBlockers=this.scrollBlockers.map(n=>n.element===t?{...n,blockers:[...n.blockers,e]}:n)}else t.style.overflowY=`hidden`,t.style.overflowX=`hidden`,this.scrollBlockers=[...this.scrollBlockers,{element:t,blockers:[e]}];this.emit()};removeBlockage=(e,t)=>{let n=this.scrollBlockers.find(e=>e.element===t);n&&(n.blockers.length>1?this.scrollBlockers=this.scrollBlockers.map(n=>n.element===t?{...n,blockers:n.blockers.filter(t=>t!==e)}:n):(t.style.overflowY=``,t.style.overflowX=``,this.scrollBlockers=this.scrollBlockers.filter(e=>e.element!==t)),this.emit())};isElementScrollBlocked=e=>this.scrollBlockers.some(t=>t.element===e);emit=()=>{this.listeners.forEach(e=>{e()})}},hI=[],gI=()=>{let e=(0,b.c)(2),t=(0,v.useSyncExternalStore)(mI.subscribe,mI.getSnapshot,_I),n;return e[0]===t?n=e[1]:(n={scrollBlockers:t,addBlockage:mI.addBlockage,removeBlockage:mI.removeBlockage,isElementScrollBlocked:mI.isElementScrollBlocked},e[0]=t,e[1]=n),n};function _I(){return hI}var vI=e=>{let t=(0,b.c)(14),n;t[0]===e?n=t[1]:(n=e??{},t[0]=e,t[1]=n);let{disableScroll:r,element:i,key:a}=n,o=r===void 0?!1:r,s=a===void 0?`unnamed_blocker`:a,{isElementScrollBlocked:c,addBlockage:l,removeBlockage:u}=gI(),d=pI(i),f,p;t[2]!==l||t[3]!==o||t[4]!==i||t[5]!==s||t[6]!==u?(f=()=>{let e=i??window.document.body;return o?l(s,e):u(s,e),()=>{u(s,e)}},p=[l,o,i,s,u],t[2]=l,t[3]=o,t[4]=i,t[5]=s,t[6]=u,t[7]=f,t[8]=p):(f=t[7],p=t[8]),(0,v.useEffect)(f,p);let m;t[9]!==d||t[10]!==c?(m=d?c(d):!1,t[9]=d,t[10]=c,t[11]=m):m=t[11];let h;return t[12]===m?h=t[13]:(h={isScrollBlocked:m},t[12]=m,t[13]=h),h},yI=ou(`flex cursor-default flex-col overflow-hidden shadow-sm`,{variants:{size:{sm:`h-auto max-h-[30vh] w-[95vw] max-w-xl`,md:`h-auto max-h-[50vh] w-[95vw] max-w-xl`,lg:`h-auto max-h-[70vh] w-[95vw] max-w-4xl`,xl:`h-auto max-h-[95vh] w-[95vw] max-w-6xl`,unset:`h-auto max-h-[95vh] w-[95vw]`}},defaultVariants:{size:`unset`}}),bI={none:`p-0`,sm:`px-2 py-4`,md:`px-4 py-6`,lg:`px-6 py-8`,xl:`px-8 py-10`,"2xl":`px-10 py-12`},xI=Jx.create(tS),SI=e=>{let t=(0,b.c)(9),{children:n,isOpen:r,container:i,onClose:a,hasCloseButton:o,title:s,size:c,className:u,isScrollable:d,disableScroll:f,padding:p,...m}=e,h=o===void 0?!1:o,g=c===void 0?`md`:c,_=d===void 0?!1:d,y=f===void 0?!0:f,x=p===void 0?`none`:p,S=pI(i),C=r&&y,w;t[0]===C?w=t[1]:(w={key:`modal`,disableScroll:C},t[0]=C,t[1]=w),vI(w);let E,D;if(t[2]!==r||t[3]!==a?(E=()=>{let e=e=>{e.key===`Escape`&&r&&a&&a()};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},D=[r,a],t[2]=r,t[3]=a,t[4]=E,t[5]=D):(E=t[4],D=t[5]),(0,v.useEffect)(E,D),!S){let e;return t[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,T.jsx)(T.Fragment,{}),t[6]=e):e=t[6],e}let O=!!s,k=bI[x||`none`],A;return t[7]===a?A=t[8]:(A=e=>{e.stopPropagation(),a?.()},t[7]=a,t[8]=A),(0,kc.createPortal)((0,T.jsx)(Jx.div,{className:`invisible fixed top-0 left-0 z-50 flex size-full cursor-pointer items-center justify-center overflow-hidden bg-background/40 backdrop-blur`,animate:r?`visible`:`invisible`,variants:{visible:{opacity:1,visibility:`visible`,transition:{duration:.1,when:`beforeChildren`}},invisible:{opacity:0,visibility:`hidden`,transition:{duration:.1,when:`afterChildren`}}},onClick:A,"aria-hidden":!r,children:(0,T.jsxs)(xI,{onClick:CI,initial:{scale:r?.5:1},animate:{scale:r?1:.5},transition:{duration:.3},className:yI({size:g,className:u}),role:`dialog`,"aria-modal":!0,roundedSize:`4xl`,padding:`none`,...m,children:[(0,T.jsxs)(`div`,{className:l(`relative flex-none px-4 pt-4`,h&&O?`flex items-start`:h?`flex justify-end`:O?`items-center`:`hidden`),children:[O&&(0,T.jsx)(_k,{className:`mb-2 ml-1 flex items-center justify-center font-bold text-lg`,children:s}),h&&(0,T.jsx)(oS,{variant:`hoverable`,color:`text`,label:`Close modal`,className:`ml-auto`,onClick:e=>{e.stopPropagation(),a?.()},Icon:Wu,size:`icon-md`})]}),(0,T.jsx)(`div`,{className:l(`flex min-h-0 w-full flex-1 flex-col`,_===!0&&`overflow-auto`,_===`y`&&`overflow-y-auto overflow-x-hidden`,_===`x`&&`overflow-x-auto overflow-y-hidden`,!_&&`overflow-visible`),children:(0,T.jsx)(`div`,{className:l(`flex h-full w-full flex-1 flex-col`,k),children:n})})]})}),S)};function CI(e){return e.stopPropagation()}var wI={key:`table`,content:{nodeType:`translation`,translation:{en:{modal:{title:`Show all table content`,description:`Open the table in a modal to view all data content clearly`}},"en-GB":{modal:{title:`Show all table content`,description:`Open the table in a modal to view all data content clearly`}},fr:{modal:{title:`Afficher tout le contenu du tableau`,description:`Ouvrir le tableau dans une fenêtre modale pour voir tout le contenu clairement`}},es:{modal:{title:`Mostrar todo el contenido de la tabla`,description:`Abrir la tabla en una ventana flotante para ver todo el contenido claramente`}},de:{modal:{title:`Alle Tabellendaten anzeigen`,description:`Tabelle in einem Modal öffnen, um alle Daten übersichtlich anzuzeigen`}},ja:{modal:{title:`テーブルのすべての内容を表示`,description:`テーブルをモーダルで開き、すべてのデータを明確に表示`}},ko:{modal:{title:`테이블의 모든 내용 표시`,description:`테이블을 모달로 열어 모든 데이터를 명확하게 확인`}},zh:{modal:{title:`显示表格的所有内容`,description:`在弹窗中打开表格以清晰地查看所有数据`}},it:{modal:{title:`Mostra tutto il contenuto della tabella`,description:`Apri la tabella in una finestra modale per visualizzare tutti i dati in modo chiaro`}},pt:{modal:{title:`Mostrar todo o conteúdo da tabela`,description:`Abrir a tabela em um modal para ver todo o conteúdo claramente`}},hi:{modal:{title:`सभी तालिका सामग्री दिखाएं`,description:`सभी डेटा सामग्री को स्पष्ट रूप से देखने के लिए तालिका को मोडल में खोलें`}},ar:{modal:{title:`اظهار جميع محتويات الجدول`,description:`افتح الجدول في نافذة منبثقة لعرض جميع محتويات البيانات بوضوح`}},ru:{modal:{title:`Показать все данные таблицы`,description:`Открыть таблицу в модальном окне для четкого просмотра всех данных`}}}},localIds:[`table::local::../@intlayer/design-system/dist/esm/components/Table/table.content.mjs`]},TI=e=>{let t=(0,b.c)(6),{setIsModalOpen:n}=e,{modal:r}=xr(wI),i;if(t[0]!==r.description||t[1]!==r.title||t[2]!==n){let e;t[4]===n?e=t[5]:(e=()=>{n(!0)},t[4]=n,t[5]=e),i=(0,T.jsx)(`div`,{className:`pointer-events-none absolute inset-y-0 right-4 z-10`,children:(0,T.jsx)(`div`,{className:`pointer-events-auto sticky top-48 pt-4`,children:(0,T.jsxs)(JF,{identifier:`expand`,children:[(0,T.jsx)(oS,{variant:`hoverable`,size:`icon-md`,onClick:e,label:r.title,Icon:Nu}),(0,T.jsxs)(JF.Detail,{identifier:`expand`,className:`flex min-w-64 flex-col gap-3 p-3 text-sm`,xAlign:`end`,children:[(0,T.jsx)(`strong`,{children:r.title}),(0,T.jsx)(`p`,{className:`text-neutral`,children:r.description})]})]})})}),t[0]=r.description,t[1]=r.title,t[2]=n,t[3]=i}else i=t[3];return i},EI=(0,v.forwardRef)(({className:e,isInteractive:t,...n},r)=>(0,T.jsx)(`table`,{ref:r,className:l(`w-full table-auto overflow-hidden text-left`,t&&`[&_tbody_tr:hover]:bg-neutral/40 [&_tbody_tr:hover]:dark:bg-neutral-dark/40 [&_tbody_tr]:cursor-pointer [&_tbody_tr]:transition-colors`,e),...n})),DI=.55,OI=5,kI=30,AI=(e,t,n)=>{let r=(0,b.c)(3),i;r[0]!==t||r[1]!==e?(i=()=>{if(!e.current)return;let n=[];Array.from(e.current.querySelectorAll(`tr`)).forEach(e=>{Array.from(e.children).forEach((e,t)=>{let r=e.textContent?.trim().length??0;(n[t]===void 0||r>n[t])&&(n[t]=r)})});let r=e=>{let t=Array.from(e.querySelectorAll(`tr`));if(t.length===0)return;let r=(e,t)=>{let r=Math.min(kI,Math.max(OI,(n[t]??0)*DI));e.style.minWidth=`${r}rem`,e.style.maxWidth=`${kI}rem`};e.querySelectorAll(`th`).forEach((e,t)=>{r(e,t)}),t.forEach(e=>{e.querySelectorAll(`td`).forEach((e,t)=>{r(e,t)})})};r(e.current),t.current&&r(t.current)},r[0]=t,r[1]=e,r[2]=i):i=r[2],(0,v.useEffect)(i,n)},jI=({className:e,isRollable:t=!1,displayModal:n,isInteractive:r,onClick:i,...a})=>{let[o,s]=(0,v.useState)(!1),[c,u]=(0,v.useState)(null),d=(0,v.useRef)(null),f=(0,v.useRef)(null);AI(d,f,[a.children,o]),(0,v.useEffect)(()=>{if(o&&c!==null&&f.current){let e=f.current.rows[c];e&&(e.scrollIntoView({behavior:`smooth`,block:`center`}),e.classList.add(`bg-neutral/40`,`dark:bg-neutral-dark/40`),e.style.transition=`background-color 0.3s ease-in-out`)}},[o,c]),(0,v.useEffect)(()=>{o||u(null)},[o]);let p=e=>{if(n){let t=e.target.closest(`tr`);t?.closest(`tbody`)&&(u(t.rowIndex),s(!0))}i?.(e)};return(0,T.jsxs)(`div`,{className:`group relative`,children:[n&&(0,T.jsx)(TI,{setIsModalOpen:s}),(0,T.jsx)(Ek,{isRollable:t,className:`max-w-full overflow-x-auto rounded-2xl bg-background text-left [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-3xl`,children:(0,T.jsx)(EI,{ref:d,className:e,isInteractive:r??n,onClick:p,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&p(e)},...a})}),(0,T.jsx)(SI,{isOpen:o,onClose:()=>s(!1),size:`xl`,hasCloseButton:!0,isScrollable:!0,children:o?(0,T.jsx)(`div`,{className:`grid`,children:(0,T.jsx)(EI,{ref:f,className:l(`min-w-full max-w-full text-left`,e),isInteractive:r,...a})}):(0,T.jsx)(T.Fragment,{})})]})},MI=e=>(0,T.jsx)(hk,{isClickable:!0,className:`text-text`,...e}),NI=e=>(0,T.jsx)(gk,{isClickable:!0,className:`mt-16 text-text`,...e}),PI=e=>(0,T.jsx)(_k,{isClickable:!0,className:`mt-5 text-text`,...e}),FI=e=>(0,T.jsx)(vk,{isClickable:!0,className:`mt-3 text-text`,...e}),II=e=>(0,T.jsx)(yk,{isClickable:!0,className:`mt-3 text-text`,...e}),LI=e=>(0,T.jsx)(bk,{isClickable:!0,className:`mt-3 text-text`,...e}),RI=e=>(0,T.jsx)(`strong`,{className:`text-text`,...e}),zI=(0,v.memo)(({className:e,children:t,isDarkMode:n,...r})=>{let i=String(t??``).replace(/\n$/,``);if(!e)return(0,T.jsx)(`code`,{className:`rounded-md border border-neutral/30 bg-card/60 box-decoration-clone px-1.5 py-0.5 font-mono text-sm`,children:i.replace(/&(?:amp;)?#(\d+);/g,(e,t)=>String.fromCharCode(parseInt(t,10)))});let a=e?.replace(/lang(?:uage)?-/,``)||`plaintext`;return(0,T.jsx)(eI,{...r,language:a,showHeader:!0,isDarkMode:n,children:i})},(e,t)=>e.children===t.children&&e.className===t.className&&e.isDarkMode===t.isDarkMode),BI=e=>function(t){return(0,T.jsx)(zI,{...t,isDarkMode:e})},VI=({className:e,...t})=>(0,T.jsx)(`blockquote`,{className:l(`mt-5 gap-3 border-card border-l-4 pl-5 text-neutral [&_strong]:text-neutral`,e),...t}),HI=({className:e,...t})=>(0,T.jsx)(`ul`,{className:l(`mt-5 flex list-disc flex-col gap-3 pl-5 marker:text-neutral/80`,e),...t}),UI=({className:e,...t})=>(0,T.jsx)(`ol`,{className:l(`mt-5 flex list-decimal flex-col gap-3 pl-5 marker:text-neutral/80`,e),...t}),WI=({className:e,alt:t,src:n,...r})=>(0,T.jsx)(`img`,{...r,alt:t??``,loading:`lazy`,className:l(`max-h-[80vh] max-w-full rounded-md`,e),src:n?.includes(`github.com`)?n?.replace(`github.com`,`raw.githubusercontent.com`).replace(`/blob/`,`/`):n}),GI=e=>t=>(0,T.jsx)(nk,{isExternalLink:t.href?.startsWith(`http`),underlined:!0,locale:e,label:``,color:`text`,...t}),KI={h1:MI,h2:NI,h3:PI,h4:FI,h5:II,h6:LI,strong:RI,blockquote:VI,ul:HI,ol:UI,img:WI,pre:e=>(0,T.jsx)(T.Fragment,{children:e.children}),table:e=>(0,T.jsx)(jI,{isRollable:!0,displayModal:!0,...e}),th:({className:e,...t})=>(0,T.jsx)(`th`,{className:l(`border-neutral border-b bg-neutral/10 p-4`,e),...t}),tr:({className:e,...t})=>(0,T.jsx)(`tr`,{className:l(`hover:/10 hover:bg-neutral/10`,e),...t}),td:({className:e,...t})=>(0,T.jsx)(`td`,{className:l(`border-neutral-500/50 border-b p-4`,e),...t}),hr:({className:e,...t})=>(0,T.jsx)(`hr`,{className:l(`mx-6 mt-16 text-neutral`,e),...t}),Tabs:e=>(0,T.jsx)(dI,{...e,className:`rounded-xl border border-card`,headerClassName:`sticky rounded-xl top-24 z-5 bg-background/70 backdrop-blur overflow-x-auto`}),Tab:dI.Item,Columns:({className:e,...t})=>(0,T.jsx)(`div`,{className:l(`flex gap-4 max-md:flex-col`,e),...t}),Column:({className:e,...t})=>(0,T.jsx)(`div`,{className:l(`flex-1`,e),...t}),iframe:e=>(0,T.jsx)(tS,{roundedSize:`2xl`,border:!0,background:`none`,borderColor:`neutral`,className:`overflow-hidden`,children:(0,T.jsx)(`iframe`,{...e})})},qI=(e,t)=>({...KI,code:BI(e),a:GI(t)}),JI=({children:e,isDarkMode:t=!1,locale:n,forceBlock:r,preserveFrontmatter:i,tagfilter:a,components:o,wrapper:s})=>(0,T.jsx)(Ck,{children:(0,T.jsx)(rI,{children:Tr(e,{components:{...qI(t,n),...o},wrapper:s,forceBlock:r,preserveFrontmatter:i,tagfilter:a})})}),YI=e=>{let t,n;if(typeof e==`number`||!Number.isNaN(Number(e)))t=`=`,n=e.toString();else if(typeof e==`string`){let r=[`<=`,`>=`,`<`,`>`,`=`].find(t=>e.startsWith(t));r&&(t=r,n=e.slice(r.length))}return{comparator:t,numberValue:n}},XI=e=>{let t=(0,b.c)(13),{value:n,onChange:r}=e,i;t[0]===n?i=t[1]:(i=YI(n),t[0]=n,t[1]=i);let{comparator:a,numberValue:o}=i,[s,c]=(0,v.useState)(a??null),[l,u]=(0,v.useState)(o??null),d,f;t[2]!==s||t[3]!==a||t[4]!==o||t[5]!==l||t[6]!==r?(d=()=>{s&&l&&(s!==a||l!==o)&&r(`${s}${l}`)},f=[s,a,o,l,r],t[2]=s,t[3]=a,t[4]=o,t[5]=l,t[6]=r,t[7]=d,t[8]=f):(d=t[7],f=t[8]),(0,v.useEffect)(d,f);let p;if(t[9]!==a||t[10]!==l){let e;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(e=e=>u(e.target.value),t[12]=e):e=t[12],p=(0,T.jsxs)(`div`,{className:`flex gap-1`,children:[(0,T.jsxs)(J,{onValueChange:c,defaultValue:a,children:[(0,T.jsx)(J.Trigger,{className:`w-20`,children:(0,T.jsx)(J.Value,{placeholder:`Select a comparator`})}),(0,T.jsxs)(J.Content,{children:[(0,T.jsx)(J.Item,{value:`<`,children:`<`}),(0,T.jsx)(J.Item,{value:`<=`,children:`<=`}),(0,T.jsx)(J.Item,{value:`=`,children:`=`}),(0,T.jsx)(J.Item,{value:`>=`,children:`>=`}),(0,T.jsx)(J.Item,{value:`>`,children:`>`})]})]}),(0,T.jsx)(Zw,{type:`number`,"aria-label":`Quantity`,defaultValue:l??void 0,onChange:e,className:`min-w-4`})]}),t[9]=a,t[10]=l,t[11]=p}else p=t[11];return p},ZI=e=>{let t=(0,b.c)(14),{keyPath:n,dictionary:r,...i}=e,{editedContent:a,addEditedContent:o}=Bw(),s=Rw(),{mutate:c,isPending:l}=OO(),u;t[0]!==o||t[1]!==r||t[2]!==n?(u=e=>o(r.localId,e,n),t[0]=o,t[1]=r,t[2]=n,t[3]=u):u=t[3];let d;return t[4]!==o||t[5]!==c||t[6]!==s?.ai?.apiKey||t[7]!==s?.ai?.model||t[8]!==s?.ai?.temperature||t[9]!==s?.internationalization||t[10]!==r||t[11]!==a||t[12]!==n?(d=()=>{c({fileContent:JSON.stringify({...r,...a?.[r.localId]??{}}),keyPath:n,locales:s?.internationalization.locales??[],aiOptions:{apiKey:s?.ai?.apiKey,model:s?.ai?.model,temperature:s?.ai?.temperature}},{onSuccess:e=>{if(e?.data)try{let t=e.data.fileContent;o(r.localId,t,n)}catch(e){console.error(e)}}})},t[4]=o,t[5]=c,t[6]=s?.ai?.apiKey,t[7]=s?.ai?.model,t[8]=s?.ai?.temperature,t[9]=s?.internationalization,t[10]=r,t[11]=a,t[12]=n,t[13]=d):d=t[13],(0,T.jsx)(JO,{variant:`default`,onContentChange:u,additionalButtons:(0,T.jsx)(oS,{Icon:Uu,label:`Audit`,variant:`hoverable`,size:`icon-sm`,color:`text`,className:`cursor-pointer hover:scale-110`,isLoading:l,onClick:d}),...i})},QI=e=>{let t=(0,b.c)(4),{keyPath:n,dictionary:r,...i}=e,{addEditedContent:a}=Bw(),o;return t[0]!==a||t[1]!==r||t[2]!==n?(o=e=>a(r.localId,e,n),t[0]=a,t[1]=r,t[2]=n,t[3]=o):o=t[3],(0,T.jsx)(CT,{variant:`default`,onContentChange:o,...i})},$I=[{content:`False`,value:!1},{content:`True`,value:!0}],eL=e=>{let t=(0,b.c)(4),{dictionary:n,keyPath:r,...i}=e,{addEditedContent:a}=Bw(),o;return t[0]!==a||t[1]!==n||t[2]!==r?(o=e=>a(n.localId,e,r),t[0]=a,t[1]=n,t[2]=r,t[3]=o):o=t[3],(0,T.jsx)(yS,{choices:$I,value:!0,onChange:o,color:`text`,size:`sm`,...i})},tL=e=>{let t=(0,b.c)(17),{section:n,keyPath:r,dictionary:i,renderSection:a}=e,{locale:o,defaultLocale:s}=Sr(),{selectedLocales:c,availableLocales:l}=xT(),u=n[k],d;if(t[0]!==l||t[1]!==s||t[2]!==i||t[3]!==r||t[4]!==o||t[5]!==a||t[6]!==n||t[7]!==u||t[8]!==c){let e=Object.keys(u),f=l.length>c.length?c:[...new Set([...l,...e])],p=n[k],m;t[10]!==p||t[11]!==s||t[12]!==i||t[13]!==r||t[14]!==o||t[15]!==a?(m=e=>{let t=`${JSON.stringify(r)}-translation-${e}`;return(0,T.jsxs)(v.Fragment,{children:[(0,T.jsx)(`tr`,{className:`mt-2 w-full p-2 text-xs`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:dr(e,o)})}),(0,T.jsx)(`tr`,{className:`flex`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:(0,T.jsx)(pL,{section:p[e]??pw(p[s]),keyPath:[...r,{type:k,key:e}],dictionary:i,renderSection:a})})})]},t)},t[10]=p,t[11]=s,t[12]=i,t[13]=r,t[14]=o,t[15]=a,t[16]=m):m=t[16],d=(0,T.jsx)(`table`,{className:`w-full`,children:(0,T.jsx)(`tbody`,{className:`flex w-full flex-col gap-2`,children:f.map(m)})}),t[0]=l,t[1]=s,t[2]=i,t[3]=r,t[4]=o,t[5]=a,t[6]=n,t[7]=u,t[8]=c,t[9]=d}else d=t[9];return d},nL=e=>{let t=(0,b.c)(19),{section:n,keyPath:r,dictionary:i,renderSection:a}=e,{addEditedContent:o}=Bw(),{addNewEnumeration:s,removeEnumeration:c}=xr(vT),l=n[A],u;t[0]===l?u=t[1]:(u=Object.keys(l),t[0]=l,t[1]=u);let d=u[0],f;if(t[2]!==o||t[3]!==s.label.value||t[4]!==s.text||t[5]!==l||t[6]!==i||t[7]!==d||t[8]!==r||t[9]!==c||t[10]!==a||t[11]!==n){let e;t[13]!==o||t[14]!==l||t[15]!==i||t[16]!==d||t[17]!==r?(e=()=>o(i.localId,pw(l[d])??``,[...r,{type:A,key:`unknown`}]),t[13]=o,t[14]=l,t[15]=i,t[16]=d,t[17]=r,t[18]=e):e=t[18],f=(0,T.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,T.jsx)(`table`,{className:`w-full`,children:(0,T.jsx)(`tbody`,{className:`flex w-full flex-col gap-2`,children:Object.keys(n[A]).map(e=>{let t=[...r,{type:A,key:e}],s=`${JSON.stringify(r)}-enumeration-${e}`;return(0,T.jsxs)(v.Fragment,{children:[(0,T.jsx)(`tr`,{className:`mt-2 w-full`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:(0,T.jsx)(`div`,{className:`flex flex-1`,children:(0,T.jsx)(oS,{label:c.label.value,variant:`hoverable`,size:`sm`,color:`error`,className:`ml-auto text-neutral hover:text-error`,Icon:Hu,onClick:()=>o(i.localId,void 0,t),children:c.text})})})}),(0,T.jsx)(`tr`,{className:`w-full p-2`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:(0,T.jsx)(XI,{value:e,onChange:t=>{let a=n[A],s=ZO(a,e,t),c={...n,[A]:s};console.log(`newValue`,c),o(i.localId,c,r)}})})}),(0,T.jsx)(`tr`,{className:`block w-full`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:(0,T.jsx)(fL,{section:l[e]??pw(l[d]),keyPath:t,dictionary:i,renderSection:a})})})]},s)})})}),(0,T.jsx)(oS,{label:s.label.value,variant:`hoverable`,color:`neutral`,textAlign:`left`,isFullWidth:!0,onClick:e,Icon:Ru,className:`m-2`,children:s.text})]}),t[2]=o,t[3]=s.label.value,t[4]=s.text,t[5]=l,t[6]=i,t[7]=d,t[8]=r,t[9]=c,t[10]=a,t[11]=n,t[12]=f}else f=t[12];return f},rL=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{let i=e[j];return(0,T.jsx)(`table`,{className:`w-full`,children:(0,T.jsx)(`tbody`,{className:`flex w-full flex-col gap-2`,children:[`true`,`false`,`fallback`].map(e=>{let a=`${JSON.stringify(t)}-condition-${e}`;return(0,T.jsxs)(v.Fragment,{children:[(0,T.jsx)(`tr`,{className:`mt-2 block w-full p-2 text-xs`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:String(e)})}),(0,T.jsx)(`tr`,{className:`block w-full`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:(0,T.jsx)(pL,{section:i[e]??pw(i.true),keyPath:[...t,{type:j,key:e}],dictionary:n,renderSection:r})})})]},a)})})})},iL=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{let i=e[B];return(0,T.jsx)(`table`,{className:`w-full`,children:(0,T.jsx)(`tbody`,{className:`flex w-full flex-col gap-2`,children:[`male`,`female`,`fallback`].map(e=>{let a=`${JSON.stringify(t)}-gender-${e}`;return(0,T.jsxs)(v.Fragment,{children:[(0,T.jsx)(`tr`,{className:`mt-2 block w-full p-2 text-xs`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:String(e)})}),(0,T.jsx)(`tr`,{className:`block w-full`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:(0,T.jsx)(pL,{section:i[e]??pw(i.male),keyPath:[...t,{type:B,key:e}],dictionary:n,renderSection:r})})})]},a)})})})},aL=e=>{let t=(0,b.c)(22),{section:n,keyPath:r,dictionary:i,renderSection:a}=e,{addEditedContent:o}=Bw(),{addNewElement:s,removeElement:c}=xr(vT),l;if(t[0]!==o||t[1]!==s.label.value||t[2]!==s.text||t[3]!==i||t[4]!==r||t[5]!==c||t[6]!==a||t[7]!==n){let e;t[9]!==o||t[10]!==i||t[11]!==r||t[12]!==c||t[13]!==a||t[14]!==n[0]?(e=(e,t)=>{let s=`${JSON.stringify(r)}-array-${t}`;return(0,T.jsxs)(v.Fragment,{children:[(0,T.jsx)(`tr`,{className:`mt-2 w-full p-2`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:(0,T.jsxs)(`div`,{className:`flex w-full items-center justify-between gap-2`,children:[(0,T.jsx)(`span`,{className:`text-xs`,children:String(t)}),(0,T.jsx)(oS,{label:c.label.value,variant:`hoverable`,size:`sm`,color:`error`,className:`ml-auto text-neutral hover:text-error`,onClick:()=>{let e=[...r,{type:F,key:t}];o(i.localId,void 0,e)},Icon:Hu,children:c.text})]})})}),(0,T.jsx)(`tr`,{className:`block w-full`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:(0,T.jsx)(pL,{section:e??pw(n[0]),keyPath:[...r,{type:F,key:t}],dictionary:i,renderSection:a})})})]},s)},t[9]=o,t[10]=i,t[11]=r,t[12]=c,t[13]=a,t[14]=n[0],t[15]=e):e=t[15];let u;t[16]!==o||t[17]!==i||t[18]!==r||t[19]!==n[0]||t[20]!==n.length?(u=()=>{let e=[...r,{type:F,key:n.length}];o(i.localId,pw(n[0])??``,e,!1)},t[16]=o,t[17]=i,t[18]=r,t[19]=n[0],t[20]=n.length,t[21]=u):u=t[21],l=(0,T.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,T.jsx)(`table`,{className:`w-full`,children:(0,T.jsx)(`tbody`,{className:`flex w-full flex-col gap-2`,children:n.map(e)})}),(0,T.jsx)(oS,{label:s.label.value,variant:`hoverable`,color:`neutral`,textAlign:`left`,isFullWidth:!0,onClick:u,Icon:Ru,children:s.text})]}),t[0]=o,t[1]=s.label.value,t[2]=s.text,t[3]=i,t[4]=r,t[5]=c,t[6]=a,t[7]=n,t[8]=l}else l=t[8];return l},oL=({section:e,keyPath:t,dictionary:n,renderSection:r})=>(0,T.jsx)(T.Fragment,{children:(0,T.jsx)(`table`,{className:`w-full`,children:(0,T.jsx)(`tbody`,{className:`flex flex-col gap-2`,children:Object.keys(e).map(i=>{let a=[...t,{type:P,key:i}],o=e,s=Object.keys(o)[0],c=o[i]??pw(o[s]),l=`${JSON.stringify(t)}-object-${i}`;return(0,T.jsxs)(v.Fragment,{children:[(0,T.jsx)(`tr`,{className:`mt-2 p-2 text-xs`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:String(i)})}),(0,T.jsx)(`tr`,{className:`block w-full`,children:(0,T.jsx)(`td`,{className:`flex w-full`,children:(0,T.jsx)(fL,{section:c,keyPath:a,dictionary:n,renderSection:r})})})]},l)})})})}),sL=e=>{let t=(0,b.c)(5),{section:n,keyPath:r,dictionary:i}=e,[a,o]=(0,v.useState)(0),s;if(t[0]!==i||t[1]!==r||t[2]!==a||t[3]!==n){let e=[{content:`Edit`,value:0},{content:`Preview`,value:1}],c=[...r,{type:ee}],l=n[ee];s=(0,T.jsxs)(`div`,{className:`flex w-full flex-col justify-center gap-6 p-2`,children:[(0,T.jsx)(yS,{choices:e,value:a,onChange:o,color:`text`,size:`sm`,className:`ml-auto`}),(0,T.jsx)(pL,{section:l,keyPath:c,dictionary:i,renderSection:a===1?mL:void 0})]}),t[0]=i,t[1]=r,t[2]=a,t[3]=n,t[4]=s}else s=t[4];return s},cL=e=>{let t=(0,b.c)(9),{section:n,keyPath:r,dictionary:i,isDarkMode:a}=e,[o,s]=(0,v.useState)(0),c;if(t[0]!==i||t[1]!==a||t[2]!==r||t[3]!==o||t[4]!==n){let e=[{content:`Edit`,value:0},{content:`Preview`,value:1}],l=[...r,{type:R}],u=n[R],d;t[6]!==a||t[7]!==o?(d=o===1?e=>(0,T.jsx)(JI,{isDarkMode:a,children:e}):void 0,t[6]=a,t[7]=o,t[8]=d):d=t[8],c=(0,T.jsxs)(`div`,{className:`flex w-full flex-col justify-center gap-6 p-2`,children:[(0,T.jsx)(yS,{choices:e,value:o,onChange:s,color:`text`,size:`sm`,className:`ml-auto`}),(0,T.jsx)(pL,{section:u,keyPath:l,dictionary:i,renderSection:d})]}),t[0]=i,t[1]=a,t[2]=r,t[3]=o,t[4]=n,t[5]=c}else c=t[5];return c},lL=({section:e,keyPath:t,...n})=>{let r=[...t,{type:M}],i=e[M];return(0,T.jsx)(`div`,{className:`flex w-full flex-col justify-center gap-6 p-2`,children:(0,T.jsx)(pL,{section:i,keyPath:r,...n})})},uL=({section:e,keyPath:t,...n})=>{let r=[...t,{type:N}],i=e[N],{content:a}=e;return(0,T.jsxs)(`div`,{className:`flex w-full flex-col justify-center gap-6 p-2`,children:[(0,T.jsxs)(`span`,{className:`text-neutral text-sm`,children:[i,` `]}),(0,T.jsx)(pL,{section:a,keyPath:r,...n})]})},dL=e=>{let{keyPath:t,dictionary:n,renderSection:r,section:i,...a}=e,{addEditedContent:o}=Bw(),s=i[I],c=[...t,{type:I}];return(0,T.jsxs)(`div`,{className:`flex w-full flex-col gap-4 p-2`,children:[(0,T.jsx)(QO,{children:`Dictionary key`}),(0,T.jsx)(CT,{"aria-label":`Edit field`,type:`text`,variant:`default`,...a,onContentChange:e=>{o(n.localId,{...s,dictionaryKey:String(e)},c)},children:s.dictionaryKey??``}),(0,T.jsx)(QO,{children:`Path (optional)`}),(0,T.jsx)(CT,{"aria-label":`Edit field`,type:`text`,variant:`default`,...a,onContentChange:e=>{o(n.localId,{...s,path:e===``?void 0:e},c)},children:s.path??``})]})},fL=e=>{let t=(0,b.c)(77),{section:n,keyPath:r,dictionary:i,renderSection:a,isDarkMode:o}=e,{tsxNotEditable:s}=xr(vT),c,l;if(t[0]!==i||t[1]!==o||t[2]!==r||t[3]!==a||t[4]!==n||t[5]!==s){l=Symbol.for(`react.early_return_sentinel`);bb0:{let e=_w(n);if(e===`reactNode`){let e;t[8]===s?e=t[9]:(e=(0,T.jsxs)(`div`,{className:`flex w-full flex-col gap-2`,children:[(0,T.jsx)(`span`,{children:`(React Node)`}),(0,T.jsx)(`span`,{className:`flex text-neutral text-xs`,children:s})]}),t[8]=s,t[9]=e),l=e;break bb0}if(e===`nested`){let e;t[10]!==i||t[11]!==r||t[12]!==a||t[13]!==n?(e=(0,T.jsx)(dL,{dictionary:i,renderSection:a,keyPath:r,section:n}),t[10]=i,t[11]=r,t[12]=a,t[13]=n,t[14]=e):e=t[14],l=e;break bb0}if(e===`translation`){let e;t[15]!==i||t[16]!==r||t[17]!==a||t[18]!==n?(e=(0,T.jsx)(tL,{dictionary:i,renderSection:a,keyPath:r,section:n}),t[15]=i,t[16]=r,t[17]=a,t[18]=n,t[19]=e):e=t[19],l=e;break bb0}if(e===`enumeration`){let e;t[20]!==i||t[21]!==r||t[22]!==a||t[23]!==n?(e=(0,T.jsx)(nL,{dictionary:i,renderSection:a,keyPath:r,section:n}),t[20]=i,t[21]=r,t[22]=a,t[23]=n,t[24]=e):e=t[24],l=e;break bb0}if(e===`condition`){let e;t[25]!==i||t[26]!==r||t[27]!==a||t[28]!==n?(e=(0,T.jsx)(rL,{dictionary:i,renderSection:a,keyPath:r,section:n}),t[25]=i,t[26]=r,t[27]=a,t[28]=n,t[29]=e):e=t[29],l=e;break bb0}if(e===`gender`){let e;t[30]!==i||t[31]!==r||t[32]!==a||t[33]!==n?(e=(0,T.jsx)(iL,{dictionary:i,renderSection:a,keyPath:r,section:n}),t[30]=i,t[31]=r,t[32]=a,t[33]=n,t[34]=e):e=t[34],l=e;break bb0}if(e===`insertion`){let e;t[35]!==i||t[36]!==r||t[37]!==a||t[38]!==n?(e=(0,T.jsx)(lL,{dictionary:i,renderSection:a,keyPath:r,section:n}),t[35]=i,t[36]=r,t[37]=a,t[38]=n,t[39]=e):e=t[39],l=e;break bb0}if(e===`markdown`){let e;t[40]!==i||t[41]!==o||t[42]!==r||t[43]!==n?(e=(0,T.jsx)(cL,{dictionary:i,keyPath:r,section:n,isDarkMode:o}),t[40]=i,t[41]=o,t[42]=r,t[43]=n,t[44]=e):e=t[44],l=e;break bb0}if(e===`html`){let e;t[45]!==i||t[46]!==r||t[47]!==n?(e=(0,T.jsx)(sL,{dictionary:i,keyPath:r,section:n}),t[45]=i,t[46]=r,t[47]=n,t[48]=e):e=t[48],l=e;break bb0}if(e===`file`){let e;t[49]!==i||t[50]!==r||t[51]!==a||t[52]!==n?(e=(0,T.jsx)(uL,{dictionary:i,renderSection:a,keyPath:r,section:n}),t[49]=i,t[50]=r,t[51]=a,t[52]=n,t[53]=e):e=t[53],l=e;break bb0}if(e===`array`){let e;t[54]!==i||t[55]!==r||t[56]!==a||t[57]!==n?(e=(0,T.jsx)(aL,{dictionary:i,renderSection:a,keyPath:r,section:n}),t[54]=i,t[55]=r,t[56]=a,t[57]=n,t[58]=e):e=t[58],l=e;break bb0}if(e===`object`){let e;t[59]!==i||t[60]!==r||t[61]!==a||t[62]!==n?(e=(0,T.jsx)(oL,{dictionary:i,renderSection:a,keyPath:r,section:n}),t[59]=i,t[60]=r,t[61]=a,t[62]=n,t[63]=e):e=t[63],l=e;break bb0}if(e===`number`){let e;t[64]!==i||t[65]!==r||t[66]!==n?(e=(0,T.jsx)(`div`,{className:`w-full p-2`,children:(0,T.jsx)(QI,{dictionary:i,keyPath:r,type:`number`,"aria-label":`Edit field`,children:n})}),t[64]=i,t[65]=r,t[66]=n,t[67]=e):e=t[67],l=e;break bb0}if(e===`text`){let e;t[68]!==i||t[69]!==r||t[70]!==a||t[71]!==n?(e=(0,T.jsx)(`div`,{className:`w-full p-2`,children:typeof a==`function`?a(n):(0,T.jsx)(ZI,{variant:`default`,"aria-label":`Edit field`,keyPath:r,dictionary:i,children:n})}),t[68]=i,t[69]=r,t[70]=a,t[71]=n,t[72]=e):e=t[72],l=e;break bb0}if(e===`boolean`){let e;t[73]!==i||t[74]!==r||t[75]!==n?(e=(0,T.jsx)(`div`,{className:`w-full p-2`,children:(0,T.jsx)(eL,{dictionary:i,keyPath:r,value:n})}),t[73]=i,t[74]=r,t[75]=n,t[76]=e):e=t[76],l=e;break bb0}c=(0,T.jsxs)(`div`,{className:`w-full p-2`,children:[`Error. Format not supported.`,JSON.stringify(n,null,2),JSON.stringify(r,null,2),`NodeType : `,e]})}t[0]=i,t[1]=o,t[2]=r,t[3]=a,t[4]=n,t[5]=s,t[6]=c,t[7]=l}else c=t[6],l=t[7];return l===Symbol.for(`react.early_return_sentinel`)?c:l},pL=e=>(0,T.jsx)(tS,{border:!0,background:`none`,className:`top-6 flex h-full flex-1 flex-col gap-6 overflow-hidden p-2 md:sticky`,roundedSize:`xl`,children:(0,T.jsx)(fL,{...e})});function mL(e){return(0,T.jsx)(`div`,{dangerouslySetInnerHTML:{__html:e}})}var hL={key:`breadcrumb`,content:{nodeType:`translation`,translation:{en:{linkLabel:`Go to`},"en-GB":{linkLabel:`Go to`},fr:{linkLabel:`Aller à`},es:{linkLabel:`Ir a`},de:{linkLabel:`Gehe zu`},ja:{linkLabel:`に移動`},ko:{linkLabel:`로 이동`},zh:{linkLabel:`转到`},it:{linkLabel:`Vai a`},pt:{linkLabel:`Ir para`},hi:{linkLabel:`कर जाएं`},ar:{linkLabel:`اذهب إلى`},ru:{linkLabel:`Перейти на`}}},localIds:[`breadcrumb::local::../@intlayer/design-system/dist/esm/components/Breadcrumb/breadcrumb.content.mjs`]},gL=e=>e&&{primary:`text-primary`,secondary:`text-secondary`,destructive:`text-destructive`,neutral:`text-neutral`,light:`text-white`,dark:`text-neutral-800`,text:`text-text`,"text-inverse":`text-text-opposite`,error:`text-error`,success:`text-success`,custom:``}[e]||``,_L=ou(`flex flex-row flex-wrap items-center text-sm`,{variants:{size:{small:`gap-1 text-xs`,medium:`gap-2 text-sm`,large:`gap-3 text-base`},spacing:{compact:`gap-1`,normal:`gap-2`,loose:`gap-4`}},defaultVariants:{size:`medium`,spacing:`normal`}}),vL=({href:e,lang:t,children:n,onClick:r,color:i,position:a,locale:o,className:s,...c})=>{let l=Ce(hL).linkLabel;return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(nk,{href:e,locale:o,color:i,onClick:r,itemProp:`item`,isExternalLink:!1,itemScope:!0,itemType:`https://schema.org/WebPage`,...c,label:`${l} ${n}`,itemID:e,size:`sm`,children:(0,T.jsx)(`span`,{itemProp:`name`,children:n})}),(0,T.jsx)(`meta`,{itemProp:`position`,content:a.toString()})]})},yL=e=>{let{children:t,onClick:n,color:r,position:i,className:a,...o}=e,{linkLabel:s}=xr(hL);return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(oS,{onClick:n,variant:`link`,label:`${s} ${t}`,color:r,itemProp:`item`,...o,children:(0,T.jsx)(`span`,{itemProp:`name`,children:t})}),(0,T.jsx)(`meta`,{itemProp:`position`,content:i.toString()})]})},bL=({children:e,position:t,className:n,...r})=>(0,T.jsxs)(`span`,{itemProp:`item`,className:l(`inline-flex items-center`,`font-medium text-neutral-700`,`transition-colors duration-200`,n),children:[(0,T.jsx)(`span`,{itemProp:`name`,...r,children:e}),(0,T.jsx)(`meta`,{itemProp:`position`,content:t.toString()})]}),xL=({links:e,className:t,color:n=`text`,locale:r,elementType:i=`page`,separator:a=(0,T.jsx)(Su,{size:10}),ariaLabel:o=`breadcrumb`,includeStructuredData:s=!0,maxItems:c,size:u,spacing:d,...f})=>{let p=c&&e.length>c?[...e.slice(0,1),`...`,...e.slice(-(c-2))]:e;return(0,T.jsx)(`nav`,{"aria-label":o,children:(0,T.jsx)(`ol`,{className:l(_L({size:u,spacing:d}),t),...s&&{itemScope:!0,itemType:`http://schema.org/BreadcrumbList`},...f,children:p.map((e,t)=>{let o=t===p.length-1,c=typeof e==`object`&&typeof e.href==`string`,u=typeof e==`object`&&typeof e.onClick==`function`,d=t===p.length-1,f=d?i:void 0,m=e===`...`,h=e.text??e,g=gL(n);if(m)return(0,T.jsxs)(v.Fragment,{children:[(0,T.jsx)(`li`,{className:`flex items-center`,"aria-hidden":`true`,children:(0,T.jsx)(`span`,{className:`text-neutral-500`,children:`…`})}),!o&&(0,T.jsx)(`li`,{"aria-hidden":`true`,className:`flex items-center`,children:(0,T.jsx)(`span`,{className:l(g),children:a})})]},`truncated-${h}`);let _=(0,T.jsx)(bL,{position:t+1,"aria-current":f,className:l(`transition-colors duration-200`,d&&`text-neutral-900`),children:h},h);c?_=(0,T.jsx)(vL,{href:e.href,color:n,position:t+1,locale:r,"aria-current":f,className:l(d&&`cursor-default text-neutral-900`),children:h},h):u&&(_=(0,T.jsx)(yL,{onClick:e.onClick,color:n,position:t+1,"aria-current":f,className:l(d&&`cursor-default text-neutral-900`),children:h},h));let y=(0,v.createElement)(`li`,{...s&&{itemProp:`itemListElement`,itemScope:!0,itemType:`https://schema.org/ListItem`},key:h,className:`flex items-center`},_);return o?y:(0,T.jsxs)(v.Fragment,{children:[y,(0,T.jsx)(`li`,{"aria-hidden":`true`,className:`flex items-center`,children:(0,T.jsx)(`span`,{className:l(g),children:a})})]},h)})})})},SL=({keyPath:e,dictionaryKey:t,onClickKeyPath:n,locale:r,color:i,showDictionaryKey:a=!0})=>(0,T.jsx)(xL,{links:[...a?[{text:_r(t),onClick:n?()=>n([]):void 0}]:[],...e.map((t,r)=>({onClick:n?()=>n?.(e.slice(0,r+1)):void 0,text:t.key?.toString()??``}))],locale:r,elementType:`location`,color:i}),CL={key:`locale-switcher-content`,content:{nodeType:`translation`,translation:{en:{localeSwitcherLabel:`Language switcher`,languageListLabel:`Language list`,switchTo:`Switch to`,searchInput:{text:`Search Locale`,placeholder:`Search a locale`,ariaLabel:`Language search`},seeAllLocalesSwitch:{true:`See all locales`,false:`See only selected locales`}},"en-GB":{localeSwitcherLabel:`Language switcher`,languageListLabel:`Language list`,switchTo:`Switch to`,searchInput:{text:`Search Locale`,placeholder:`Search a locale`,ariaLabel:`Language search`},seeAllLocalesSwitch:{true:`See all locales`,false:`See only selected locales`}},fr:{localeSwitcherLabel:`Changer de langue`,languageListLabel:`Liste des langues`,switchTo:`Passer à`,searchInput:{text:`Rechercher la locale`,placeholder:`Rechercher une locale`,ariaLabel:`Recherche de langue`},seeAllLocalesSwitch:{true:`Voir toutes les langues`,false:`Voir seulement les langues sélectionnées`}},es:{localeSwitcherLabel:`Cambiar idioma`,languageListLabel:`Lista de idiomas`,switchTo:`Cambiar a`,searchInput:{text:`Buscar idioma`,placeholder:`Buscar un idioma`,ariaLabel:`Búsqueda de idioma`},seeAllLocalesSwitch:{true:`Ver todos los idiomas`,false:`Ver solo los idiomas seleccionados`}},de:{localeSwitcherLabel:`Sprachwechsler`,languageListLabel:`Sprachliste`,switchTo:`Wechseln Sie zu`,searchInput:{text:`Sprache durchsuchen`,placeholder:`Sprache suchen`,ariaLabel:`Sprachsuche`},seeAllLocalesSwitch:{true:`Alle Sprachen anzeigen`,false:`Nur ausgewählte Sprachen anzeigen`}},ja:{localeSwitcherLabel:`言語スイッチャー`,languageListLabel:`言語リスト`,switchTo:`に切り替える`,searchInput:{text:`ロケールを検索`,placeholder:`ロケールを検索`,ariaLabel:`言語検索`},seeAllLocalesSwitch:{true:`すべての言語を表示`,false:`選択された言語のみを表示`}},ko:{localeSwitcherLabel:`언어 스위치`,languageListLabel:`언어 목록`,switchTo:`전환`,searchInput:{text:`언어 검색`,placeholder:`언어 검색`,ariaLabel:`언어 검색`},seeAllLocalesSwitch:{true:`모든 언어 보기`,false:`선택한 언어만 보기`}},zh:{localeSwitcherLabel:`语言切换器`,languageListLabel:`语言列表`,switchTo:`切换到`,searchInput:{text:`搜索语言`,placeholder:`搜索语言`,ariaLabel:`语言搜索`},seeAllLocalesSwitch:{true:`查看所有语言`,false:`仅查看选定的语言`}},it:{localeSwitcherLabel:`Cambia lingua`,languageListLabel:`Elenco lingue`,switchTo:`Passa a`,searchInput:{text:`Cerca lingua`,placeholder:`Cerca una lingua`,ariaLabel:`Ricerca lingua`},seeAllLocalesSwitch:{true:`Vedi tutte le lingue`,false:`Vedi solo le lingue selezionate`}},pt:{localeSwitcherLabel:`Mudar idioma`,languageListLabel:`Lista de idiomas`,switchTo:`Mudar para`,searchInput:{text:`Pesquisar idioma`,placeholder:`Pesquisar um idioma`,ariaLabel:`Pesquisa de idioma`},seeAllLocalesSwitch:{true:`Ver todos os idiomas`,false:`Ver apenas os idiomas selecionados`}},hi:{localeSwitcherLabel:`भाषा स्विचर`,languageListLabel:`भाषा सूची`,switchTo:`स्विच करें`,searchInput:{text:`भाषा खोजें`,placeholder:`भाषा खोजें`,ariaLabel:`भाषा खोजें`},seeAllLocalesSwitch:{true:`सभी भाषाओं को देखें`,false:`केवल चुने गए भाषाओं को देखें`}},ar:{localeSwitcherLabel:`مبدل اللغة`,languageListLabel:`قائمة اللغات`,switchTo:`التبديل إلى`,searchInput:{text:`بحث اللغة`,placeholder:`بحث اللغة`,ariaLabel:`بحث اللغة`},seeAllLocalesSwitch:{true:`عرض جميع اللغات`,false:`عرض اللغات المحددة فقط`}},ru:{localeSwitcherLabel:`Переключатель языка`,languageListLabel:`Список языков`,switchTo:`Переключиться на`,searchInput:{text:`Поиск языка`,placeholder:`Поиск языка`,ariaLabel:`Поиск языка`},seeAllLocalesSwitch:{true:`Показать все языки`,false:`Показать только выбранные языки`}}}},localIds:[`locale-switcher-content::local::../@intlayer/design-system/dist/esm/components/LocaleSwitcherContentDropDown/localeSwitcher.content.mjs`]},wL=({children:e,className:t,identifier:n,...r})=>(0,T.jsx)(`div`,{className:l(`group/dropdown relative flex`,t),"aria-label":`DropDown ${n}`,id:`dropdown-container-${n}`,...r,children:e});wL.Trigger=({children:e,identifier:t,className:n,label:r,...i})=>(0,T.jsx)(oS,{className:l([`w-full cursor-pointer`,`group-focus-within/dropdown:bg-current/20 group-focus-within/dropdown:ring-4`,n]),label:r??`Open panel ${t}`,"aria-haspopup":`true`,"aria-controls":`dropdown-panel-${t}`,id:`dropdown-trigger-${t}`,onClick:e=>{e.currentTarget.focus()},variant:`none`,...i,children:e}),wL.Panel=({children:e,isHidden:t=void 0,isOverable:n=!1,isFocusable:r=!1,align:i=`start`,yAlign:a=`below`,identifier:o,className:s,...c})=>(0,T.jsx)(`div`,{className:l(`absolute z-100 min-w-full`,i===`start`&&`left-0`,i===`end`&&`right-0`,a===`below`&&`top-[calc(100%+0.5rem)]`,a===`above`&&`bottom-[calc(100%+0.5rem)]`,s),"aria-hidden":t,role:`region`,"aria-labelledby":`dropdown-trigger-${o}`,id:`dropdown-panel-${o}`,children:(0,T.jsx)(sS,{isHidden:t,className:l(`overflow-x-visible`,t===!1&&`invisible`,t===!0&&`visible`,n&&`group-hover/dropdown:visible group-hover/dropdown:grid-rows-[1fr]`,r&&`group-focus-within/dropdown:visible group-focus-within/dropdown:grid-rows-[1fr]`),...c,children:e})});function TL(e){return Array.isArray?Array.isArray(e):FL(e)===`[object Array]`}function EL(e){if(typeof e==`string`)return e;if(typeof e==`bigint`)return e.toString();let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function DL(e){return e==null?``:EL(e)}function OL(e){return typeof e==`string`}function kL(e){return typeof e==`number`}function AL(e){return e===!0||e===!1||ML(e)&&FL(e)==`[object Boolean]`}function jL(e){return typeof e==`object`}function ML(e){return jL(e)&&e!==null}function NL(e){return e!=null}function PL(e){return!e.trim().length}function FL(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var IL=`Incorrect 'index' type`,LL=e=>`Invalid value for key ${e}`,RL=e=>`Pattern length exceeds max of ${e}.`,zL=e=>`Missing ${e} property in key`,BL=e=>`Property 'weight' in key '${e}' must be a positive integer`,VL=Object.prototype.hasOwnProperty,HL=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=UL(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function UL(e){let t=null,n=null,r=null,i=1,a=null;if(OL(e)||TL(e))r=e,t=WL(e),n=GL(e);else{if(!VL.call(e,`name`))throw Error(zL(`name`));let o=e.name;if(r=o,VL.call(e,`weight`)&&(i=e.weight,i<=0))throw Error(BL(o));t=WL(o),n=GL(o),a=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:a}}function WL(e){return TL(e)?e:e.split(`.`)}function GL(e){return TL(e)?e.join(`.`):e}function KL(e,t){let n=[],r=!1,i=(e,t,a,o)=>{if(NL(e))if(!t[a])n.push(o===void 0?e:{v:e,i:o});else{let s=e[t[a]];if(!NL(s))return;if(a===t.length-1&&(OL(s)||kL(s)||AL(s)||typeof s==`bigint`))n.push(o===void 0?DL(s):{v:DL(s),i:o});else if(TL(s)){r=!0;for(let e=0,n=s.length;e<n;e+=1)i(s[e],t,a+1,e)}else t.length&&i(s,t,a+1,o)}};return i(e,OL(t)?t.split(`.`):t,0),r?n:n[0]}var qL={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},JL={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},YL={location:0,threshold:.6,distance:100},XL={useExtendedSearch:!1,useTokenSearch:!1,getFn:KL,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},Y=Object.freeze({...JL,...qL,...YL,...XL}),ZL=/[^ ]+/g;function QL(e=1,t=3){let n=new Map,r=10**t;return{get(t){let i=t.match(ZL).length;if(n.has(i))return n.get(i);let a=1/i**(.5*e),o=parseFloat(Math.round(a*r)/r);return n.set(i,o),o},clear(){n.clear()}}}var $L=class{constructor({getFn:e=Y.getFn,fieldNormWeight:t=Y.fieldNormWeight}={}){this.norm=QL(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,OL(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();OL(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)--this.records[t].i}removeAll(e){for(let t=e.length-1;t>=0;--t)this.records.splice(e[t],1);for(let e=0,t=this.records.length;e<t;e+=1)this.records[e].i=e}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!NL(e)||PL(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach((t,r)=>{let i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(NL(i)){if(TL(i)){let e=[];for(let t=0,n=i.length;t<n;t+=1){let n=i[t];if(NL(n)){if(OL(n)){if(!PL(n)){let r={v:n,i:t,n:this.norm.get(n)};e.push(r)}}else if(NL(n.v)){let t=OL(n.v)?n.v:DL(n.v);if(!PL(t)){let r={v:t,i:n.i,n:this.norm.get(t)};e.push(r)}}}}n.$[r]=e}else if(OL(i)&&!PL(i)){let e={v:i,n:this.norm.get(i)};n.$[r]=e}}}),this.records.push(n)}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function eR(e,t,{getFn:n=Y.getFn,fieldNormWeight:r=Y.fieldNormWeight}={}){let i=new $L({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(UL)),i.setSources(t),i.create(),i}function tR(e,{getFn:t=Y.getFn,fieldNormWeight:n=Y.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new $L({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function nR(e=[],t=Y.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a<o;a+=1){let o=e[a];o&&r===-1?r=a:!o&&r!==-1&&(i=a-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}var rR=32;function iR(e,t,n,{location:r=Y.location,distance:i=Y.distance,threshold:a=Y.threshold,findAllMatches:o=Y.findAllMatches,minMatchCharLength:s=Y.minMatchCharLength,includeMatches:c=Y.includeMatches,ignoreLocation:l=Y.ignoreLocation}={}){if(t.length>rR)throw Error(RL(rR));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),p=a,m=f,h=(e,t)=>{let n=e/u;if(l)return n;let r=Math.abs(f-t);return i?n+r/i:r?1:n},g=s>1||c,_=g?Array(d):[],v;for(;(v=e.indexOf(t,m))>-1;){let e=h(0,v);if(p=Math.min(e,p),m=v+u,g){let e=0;for(;e<u;)_[v+e]=1,e+=1}}m=-1;let y=[],b=1,x=u+d,S=1<<u-1;for(let t=0;t<u;t+=1){let r=0,i=x;for(;r<i;)h(t,f+i)<=p?r=i:x=i,i=Math.floor((x-r)/2+r);x=i;let a=Math.max(1,f-i+1),s=o?d:Math.min(f+i,d)+u,c=Array(s+2);c[s+1]=(1<<t)-1;for(let r=s;r>=a;--r){let i=r-1,o=n[e[i]];if(g&&(_[i]=+!!o),c[r]=(c[r+1]<<1|1)&o,t&&(c[r]|=(y[r+1]|y[r])<<1|1|y[r+1]),c[r]&S&&(b=h(t,i),b<=p)){if(p=b,m=i,m<=f)break;a=Math.max(1,2*f-m)}}if(h(t+1,f)>p)break;y=c}let C={isMatch:m>=0,score:Math.max(.001,b)};if(g){let e=nR(_,s);e.length?c&&(C.indices=e):C.isMatch=!1}return C}function aR(e){let t={};for(let n=0,r=e.length;n<r;n+=1){let i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}function oR(e){if(e.length<=1)return e;e.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);let t=[e[0]];for(let n=1,r=e.length;n<r;n+=1){let r=t[t.length-1],i=e[n];i[0]<=r[1]+1?r[1]=Math.max(r[1],i[1]):t.push(i)}return t}var sR={ł:`l`,Ł:`L`,đ:`d`,Đ:`D`,ø:`o`,Ø:`O`,ħ:`h`,Ħ:`H`,ŧ:`t`,Ŧ:`T`,ı:`i`,ß:`ss`},cR=RegExp(`[`+Object.keys(sR).join(``)+`]`,`g`),lR=String.prototype.normalize?e=>e.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``).replace(cR,e=>sR[e]):e=>e,uR=class{constructor(e,{location:t=Y.location,threshold:n=Y.threshold,distance:r=Y.distance,includeMatches:i=Y.includeMatches,findAllMatches:a=Y.findAllMatches,minMatchCharLength:o=Y.minMatchCharLength,isCaseSensitive:s=Y.isCaseSensitive,ignoreDiacritics:c=Y.ignoreDiacritics,ignoreLocation:l=Y.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?lR(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:aR(e),startIndex:t})},d=this.pattern.length;if(d>rR){let e=0,t=d%rR,n=d-t;for(;e<n;)u(this.pattern.substr(e,rR),e),e+=rR;if(t){let e=d-rR;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?lR(e):e,this.pattern===e){let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,ignoreLocation:l}=this.options,u=[],d=0,f=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:p})=>{let{isMatch:m,score:h,indices:g}=iR(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&u.push(...g)});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=oR(u)),p}},dR=class{constructor(e){this.pattern=e}static isMultiMatch(e){return fR(e,this.multiRegex)}static isSingleMatch(e){return fR(e,this.singleRegex)}search(e){return{isMatch:!1,score:1}}};function fR(e,t){let n=e.match(t);return n?n[1]:null}var pR=class extends dR{constructor(e){super(e)}static get type(){return`exact`}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},mR=class extends dR{constructor(e){super(e)}static get type(){return`inverse-exact`}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=e.indexOf(this.pattern)===-1;return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},hR=class extends dR{constructor(e){super(e)}static get type(){return`prefix-exact`}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},gR=class extends dR{constructor(e){super(e)}static get type(){return`inverse-prefix-exact`}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},_R=class extends dR{constructor(e){super(e)}static get type(){return`suffix-exact`}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[e.length-this.pattern.length,e.length-1]}}},vR=class extends dR{constructor(e){super(e)}static get type(){return`inverse-suffix-exact`}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},yR=class extends dR{constructor(e,{location:t=Y.location,threshold:n=Y.threshold,distance:r=Y.distance,includeMatches:i=Y.includeMatches,findAllMatches:a=Y.findAllMatches,minMatchCharLength:o=Y.minMatchCharLength,isCaseSensitive:s=Y.isCaseSensitive,ignoreDiacritics:c=Y.ignoreDiacritics,ignoreLocation:l=Y.ignoreLocation}={}){super(e),this._bitapSearch=new uR(e,{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l})}static get type(){return`fuzzy`}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}},bR=class extends dR{constructor(e){super(e)}static get type(){return`include`}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t=0,n,r=[],i=this.pattern.length;for(;(n=e.indexOf(this.pattern,t))>-1;)t=n+i,r.push([n,t-1]);let a=!!r.length;return{isMatch:a,score:+!a,indices:r}}},xR=[pR,bR,hR,gR,vR,_R,mR,yR],SR=xR.length,CR=`\0`,wR=`|`;function TR(e){let t=[],n=e.length,r=0;for(;r<n;){for(;r<n&&e[r]===` `;)r++;if(r>=n)break;let i=r;for(;i<n&&e[i]!==` `&&e[i]!==`"`;)i++;if(i<n&&e[i]===`"`){for(i++;i<n;){if(e[i]===`"`){let t=i+1;if(t>=n||e[t]===` `){i++;break}if(e[t]===`$`&&(t+1>=n||e[t+1]===` `)){i+=2;break}}i++}t.push(e.substring(r,i)),r=i}else{for(;i<n&&e[i]!==` `;)i++;t.push(e.substring(r,i)),r=i}}return t}function ER(e,t={}){return e.replace(/\\\|/g,CR).split(wR).map(e=>{let n=TR(e.replace(/\u0000/g,`|`).trim()).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e<i;e+=1){let i=n[e],a=!1,o=-1;for(;!a&&++o<SR;){let e=xR[o],n=e.isMultiMatch(i);n&&(r.push(new e(n,t)),a=!0)}if(!a)for(o=-1;++o<SR;){let e=xR[o],n=e.isSingleMatch(i);if(n){r.push(new e(n,t));break}}}return r})}var DR=new Set([yR.type,bR.type]),OR=class{constructor(e,{isCaseSensitive:t=Y.isCaseSensitive,ignoreDiacritics:n=Y.ignoreDiacritics,includeMatches:r=Y.includeMatches,minMatchCharLength:i=Y.minMatchCharLength,ignoreLocation:a=Y.ignoreLocation,findAllMatches:o=Y.findAllMatches,location:s=Y.location,threshold:c=Y.threshold,distance:l=Y.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:i,findAllMatches:o,ignoreLocation:a,location:s,threshold:c,distance:l},e=t?e:e.toLowerCase(),e=n?lR(e):e,this.pattern=e,this.query=ER(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:i}=this.options;e=r?e:e.toLowerCase(),e=i?lR(e):e;let a=0,o=[],s=0,c=!1;for(let r=0,i=t.length;r<i;r+=1){let i=t[r];o.length=0,a=0,c=!1;for(let t=0,r=i.length;t<r;t+=1){let r=i[t],{isMatch:l,indices:u,score:d}=r.search(e);if(l){a+=1,s+=d;let e=r.constructor.type;e.startsWith(`inverse`)&&(c=!0),n&&(DR.has(e)?o.push(...u):o.push(u))}else{s=0,a=0,o.length=0,c=!1;break}}if(a){let e={isMatch:!0,score:s/a};return c&&(e.hasInverse=!0),n&&(e.indices=oR(o)),e}}return{isMatch:!1,score:1}}},kR=[];function AR(...e){kR.push(...e)}function jR(e,t){for(let n=0,r=kR.length;n<r;n+=1){let r=kR[n];if(r.condition(e,t))return new r(e,t)}return new uR(e,t)}var MR={AND:`$and`,OR:`$or`},NR={PATH:`$path`,PATTERN:`$val`},PR=e=>!!(e[MR.AND]||e[MR.OR]),FR=e=>!!e[NR.PATH],IR=e=>!TL(e)&&jL(e)&&!PR(e),LR=e=>({[MR.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function RR(e,t,{auto:n=!0}={}){let r=e=>{if(OL(e)){let r={keyId:null,pattern:e};return n&&(r.searcher=jR(e,t)),r}let i=Object.keys(e),a=FR(e);if(!a&&i.length>1&&!PR(e))return r(LR(e));if(IR(e)){let r=a?e[NR.PATH]:i[0],o=a?e[NR.PATTERN]:e[r];if(!OL(o))throw Error(LL(r));let s={keyId:GL(r),pattern:o};return n&&(s.searcher=jR(o,t)),s}let o={children:[],operator:i[0]};return i.forEach(t=>{let n=e[t];TL(n)&&n.forEach(e=>{o.children.push(r(e))})}),o};return PR(e)||(e=LR(e)),r(e)}function zR(e,{ignoreFieldNorm:t=Y.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**+((a||1)*(t?1:r))}),n}function BR(e,{ignoreFieldNorm:t=Y.ignoreFieldNorm}){e.forEach(e=>{e.score=zR(e.matches,{ignoreFieldNorm:t})})}var VR=class{constructor(e){this.limit=e,this.heap=[]}get size(){return this.heap.length}shouldInsert(e){return this.size<this.limit||e<this.heap[0].score}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):e.score<this.heap[0].score&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(e){return this.heap.sort(e)}_bubbleUp(e){let t=this.heap;for(;e>0;){let n=e-1>>1;if(t[e].score<=t[n].score)break;let r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){let t=this.heap,n=t.length,r=e;do{e=r;let i=2*e+1,a=2*e+2;if(i<n&&t[i].score>t[r].score&&(r=i),a<n&&t[a].score>t[r].score&&(r=a),r!==e){let n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}};function HR(e,t){let n=e.matches;t.matches=[],NL(n)&&n.forEach(e=>{if(!NL(e.indices)||!e.indices.length)return;let{indices:n,value:r}=e,i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)})}function UR(e,t){t.score=e.score}function WR(e,t,{includeMatches:n=Y.includeMatches,includeScore:r=Y.includeScore}={}){let i=[];return n&&i.push(HR),r&&i.push(UR),e.map(e=>{let{idx:n}=e,r={item:t[n],refIndex:n};return i.length&&i.forEach(t=>{t(e,r)}),r})}var GR=/\b\w+\b/g;function KR({isCaseSensitive:e=!1,ignoreDiacritics:t=!1}={}){return{tokenize(n){return e||(n=n.toLowerCase()),t&&(n=lR(n)),n.match(GR)||[]}}}function qR(e,t,n){let r=new Map,i=new Map,a=0;function o(e,t,o,s){let c=n.tokenize(e);if(!c.length)return;a++;let l=new Map;for(let e of c)l.set(e,(l.get(e)||0)+1);for(let[e,n]of l){let a={docIdx:t,keyIdx:o,subIdx:s,tf:n},c=r.get(e);c||(c=[],r.set(e,c)),c.push(a),i.set(e,(i.get(e)||0)+1)}}for(let n of e){let{i:e,v:r,$:i}=n;if(r!==void 0){o(r,e,-1,-1);continue}if(i)for(let n=0;n<t;n++){let t=i[n];if(t)if(Array.isArray(t))for(let r of t)o(r.v,e,n,r.i??-1);else o(t.v,e,n,-1)}}return{terms:r,fieldCount:a,df:i}}function JR(e,t,n,r){let{i,v:a,$:o}=t;function s(t,n,a){let o=r.tokenize(t);if(!o.length)return;e.fieldCount++;let s=new Map;for(let e of o)s.set(e,(s.get(e)||0)+1);for(let[t,r]of s){let o={docIdx:i,keyIdx:n,subIdx:a,tf:r},s=e.terms.get(t);s||(s=[],e.terms.set(t,s)),s.push(o),e.df.set(t,(e.df.get(t)||0)+1)}}if(a!==void 0){s(a,-1,-1);return}if(o)for(let e=0;e<n;e++){let t=o[e];if(t)if(Array.isArray(t))for(let n of t)s(n.v,e,n.i??-1);else s(t.v,e,-1)}}function YR(e,t){for(let[n,r]of e.terms){let i=r.filter(e=>e.docIdx!==t),a=r.length-i.length;a>0&&(e.fieldCount-=a,e.df.set(n,(e.df.get(n)||0)-a),i.length===0?(e.terms.delete(n),e.df.delete(n)):e.terms.set(n,i))}}var XR=class{constructor(e,t,n){this.options={...Y,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new HL(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;let t=jR(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof $L))throw Error(IL);if(this._myIndex=t||eR(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=KR({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics});this._invertedIndex=qR(this._myIndex.records,this._myIndex.keys.length,e)}}add(e){if(NL(e)&&(this._docs.push(e),this._myIndex.add(e),this._invertedIndex)){let e=this._myIndex.records[this._myIndex.records.length-1],t=KR({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics});JR(this._invertedIndex,e,this._myIndex.keys.length,t)}}remove(e=()=>!1){let t=[],n=[];for(let r=0,i=this._docs.length;r<i;r+=1)e(this._docs[r],r)&&(t.push(this._docs[r]),n.push(r));if(n.length){if(this._invertedIndex)for(let e of n)YR(this._invertedIndex,e);for(let e=n.length-1;e>=0;--e)this._docs.splice(n[e],1);this._myIndex.removeAll(n)}return t}removeAt(e){this._invertedIndex&&YR(this._invertedIndex,e);let t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),t}getIndex(){return this._myIndex}search(e,t){let{limit:n=-1}=t||{},{includeMatches:r,includeScore:i,shouldSort:a,sortFn:o,ignoreFieldNorm:s}=this.options;if(OL(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return kL(n)&&n>-1&&(e=e.slice(0,n)),e}let c=kL(n)&&n>0&&OL(e),l;if(c){let t=new VR(n);OL(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),l=t.extractSorted(o)}else l=OL(e)?OL(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),BR(l,{ignoreFieldNorm:s}),a&&l.sort(o),kL(n)&&n>-1&&(l=l.slice(0,n));return WR(l,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),{records:i}=this._myIndex,a=t?null:[];return i.forEach(({v:e,i,n:o})=>{if(!NL(e))return;let{isMatch:s,score:c,indices:l}=r.searchIn(e);if(s){let r={item:e,idx:i,matches:[{score:c,value:e,norm:o,indices:l}]};t?(r.score=zR(r.matches,{ignoreFieldNorm:n}),t.shouldInsert(r.score)&&t.insert(r)):a.push(r)}}),a}_searchLogical(e){let t=RR(e,this.options),n=(e,t,r)=>{if(!(`children`in e)){let{keyId:n,searcher:i}=e,a;return n===null?(a=[],this._myIndex.keys.forEach((e,n)=>{a.push(...this._findMatches({key:e,value:t[n],searcher:i}))})):a=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i}),a&&a.length?[{idx:r,item:t,matches:a}]:[]}let{children:i,operator:a}=e,o=[];for(let e=0,s=i.length;e<s;e+=1){let s=i[e],c=n(s,t,r);if(c.length)o.push(...c);else if(a===MR.AND)return[]}return o},r=this._myIndex.records,i=new Map,a=[];return r.forEach(({$:e,i:r})=>{if(NL(e)){let o=n(t,e,r);o.length&&(i.has(r)||(i.set(r,{idx:r,item:e,matches:[]}),a.push(i.get(r))),o.forEach(({matches:e})=>{i.get(r).matches.push(...e)}))}}),a}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),{keys:i,records:a}=this._myIndex,o=t?null:[];return a.forEach(({$:e,i:a})=>{if(!NL(e))return;let s=[],c=!1,l=!1;if(i.forEach((t,n)=>{let i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(s.push(...i),i[0].hasInverse&&(l=!0)):c=!0}),!(l&&c)&&s.length){let r={idx:a,item:e,matches:s};t?(r.score=zR(r.matches,{ignoreFieldNorm:n}),t.shouldInsert(r.score)&&t.insert(r)):o.push(r)}}),o}_findMatches({key:e,value:t,searcher:n}){if(!NL(t))return[];let r=[];if(TL(t))t.forEach(({v:t,i,n:a})=>{if(!NL(t))return;let{isMatch:o,score:s,indices:c,hasInverse:l}=n.searchIn(t);o&&r.push({score:s,key:e,value:t,idx:i,norm:a,indices:c,hasInverse:l})});else{let{v:i,n:a}=t,{isMatch:o,score:s,indices:c,hasInverse:l}=n.searchIn(i);o&&r.push({score:s,key:e,value:i,norm:a,indices:c,hasInverse:l})}return r}},ZR=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=KR({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics});let n=this.analyzer.tokenize(e),{df:r,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(let e of n){this.termSearchers.push(new uR(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));let n=r.get(e)||0,a=Math.log(1+(i-n+.5)/(n+.5));this.idfWeights.push(a)}}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};let t=[],n=0,r=0,i=0;for(let a=0;a<this.termSearchers.length;a++){let o=this.termSearchers[a].searchIn(e),s=this.idfWeights[a];r+=s,o.isMatch&&(i++,n+=s*(1-o.score),o.indices&&t.push(...o.indices))}if(i===0)return{isMatch:!1,score:1};let a=r>0?1-n/r:0,o={isMatch:!0,score:Math.max(.001,a)};return this.options.includeMatches&&t.length&&(o.indices=oR(t)),o}};XR.version=`7.3.0`,XR.createIndex=eR,XR.parseIndex=tR,XR.config=Y,XR.match=function(e,t,n){return jR(e,{...Y,...n}).searchIn(t)},XR.parseQuery=RR,AR(OR),AR(ZR),XR.use=function(...e){e.forEach(e=>AR(e))};var QR=`locale-switcher-content`,$R=({panelProps:e,isMultilingual:t=!0})=>{let{switchTo:n,searchInput:r,localeSwitcherLabel:i,languageListLabel:a,seeAllLocalesSwitch:o}=xr(CL),s=(0,v.useRef)(null),{locale:c}=Sr(),{availableLocales:l,selectedLocales:u,setSelectedLocales:d}=xT(),f=(0,v.useMemo)(()=>l.map(e=>({locale:e,englishName:dr(e,`en`),currentLocaleName:dr(e,c),ownLocaleName:dr(e)})),[l,c]),[p,m]=(0,v.useState)(``),[h,g]=yT(`locale-content-selector-see-all-locales`,!1),_=(0,v.useMemo)(()=>new XR(f,{keys:[{name:`ownLocaleName`,weight:.4},{name:`englishName`,weight:.2},{name:`currentLocaleName`,weight:.2},{name:`locale`,weight:.2}],threshold:.02}),[f]),y=(0,v.useMemo)(()=>p?_.search(p).map(e=>e.item):f,[p,f,_]),b=e=>{t?u.includes(e)?u.length>1&&d(t=>t.filter(t=>t!==e)):d(t=>[...t,e]):d([e])},x=e=>{g(e),d(e?l:[c])};return(0,T.jsx)(`div`,{className:`rounded-xl border border-text text-text transition-colors`,children:(0,T.jsxs)(wL,{identifier:QR,children:[(0,T.jsx)(wL.Trigger,{identifier:QR,label:i.value,className:`p-0!`,roundedSize:`3xl`,color:`text`,children:(0,T.jsxs)(`div`,{className:`flex w-full items-center justify-between text-text`,children:[(0,T.jsx)(`div`,{className:`px-2 py-1`,children:(0,T.jsx)(ju,{size:16})}),(0,T.jsx)(Fu,{className:`self-center`,size:16})]})}),(0,T.jsx)(wL.Panel,{identifier:QR,isOverable:!0,isFocusable:!0,align:`end`,...e,children:(0,T.jsxs)(tS,{className:`max-h-[60vh] min-w-28`,separator:`y`,role:`listbox`,transparency:`xs`,border:!0,roundedSize:`3xl`,borderColor:`text`,"aria-label":a.value,children:[t&&(0,T.jsx)(`div`,{className:`m-auto p-2`,children:(0,T.jsx)(yS,{defaultValue:h,onChange:x,color:`text`,size:`sm`,className:`!w-60`,choices:[{content:o.true.value,value:!0},{content:o.false.value,value:!1}]})}),!(t&&h)&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(`div`,{className:`p-3`,children:(0,T.jsx)(Zw,{type:`search`,"aria-label":r.ariaLabel.value,placeholder:r.placeholder.value,onChange:e=>m(e.target.value),ref:s})}),(0,T.jsx)(`ol`,{className:`divide-y divide-dashed divide-text/20 overflow-y-auto p-1`,children:y.map(({locale:e,currentLocaleName:r,ownLocaleName:i})=>(0,T.jsx)(`li`,{className:`px-1.5 py-1`,children:(0,T.jsx)(oS,{onClick:()=>b(e),label:`${n} ${r}`,disabled:!(l??l).includes(e),isActive:u.includes(e),variant:`hoverable`,color:`text`,isFullWidth:!0,textAlign:`left`,size:`sm`,children:(0,T.jsxs)(`div`,{className:`flex flex-row items-center justify-between gap-3 px-2 py-1`,children:[t&&(0,T.jsx)(`div`,{className:`w-4`,children:u.includes(e)&&(0,T.jsx)(yu,{className:`size-full`})}),(0,T.jsxs)(`div`,{className:`flex flex-1 flex-row items-center justify-between gap-3 px-2 py-1`,children:[(0,T.jsxs)(`div`,{className:`flex flex-col text-nowrap`,children:[(0,T.jsx)(`span`,{dir:or(e),lang:e,children:i}),(0,T.jsx)(`span`,{className:`text-neutral text-xs`,children:r})]}),(0,T.jsx)(`span`,{className:`text-neutral text-sm`,children:e.toUpperCase()})]})]})})},e))})]})]})})]})})},ez=e=>{let t=mw(e),n=_w(e);return t&&(n===`reactNode`||n===`file`)?!0:t&&typeof t.nodeType==`string`?ez(t[t.nodeType]):typeof t==`string`||typeof t==`number`||typeof t==`boolean`||t===void 0},tz=e=>{let t=(0,b.c)(16),{section:n,keyPath:r,dictionary:i}=e,{locales:a}=x,o=dw(n,r,Nw()),{addEditedContent:s}=zw(),{setFocusedContentKeyPath:c,focusedContent:l}=Fw(),{addNewElement:u,goToField:d}=xr(vT),f=_w(o),p;t[0]===l?.keyPath?p=t[1]:(p=e=>(l?.keyPath?.length??0)>0&&pr(e,l?.keyPath??[]),t[0]=l?.keyPath,t[1]=p);let m=p,h=ez(o);if(!o)return(0,T.jsx)(T.Fragment,{});if(h){let e;return t[2]!==r||t[3]!==c?(e=()=>c(r),t[2]=r,t[3]=c,t[4]=e):e=t[4],(0,T.jsx)(oS,{label:d.label.value,variant:`hoverable`,color:`text`,className:`w-full`,onClick:e,IconRight:Su,children:_r(r[r.length-1].key)})}if(typeof o==`object`){if(f===`reactNode`)return(0,T.jsx)(T.Fragment,{children:`React Node`});if(f===`translation`){let e;return t[5]!==i||t[6]!==r||t[7]!==n?(e=e=>(0,T.jsx)(tz,{keyPath:[...r,{type:k,key:e}],section:n,dictionary:i},e),t[5]=i,t[6]=r,t[7]=n,t[8]=e):e=t[8],(0,T.jsx)(`div`,{className:`flex flex-col justify-between gap-2`,children:a.map(e)})}if(f===`enumeration`||f===`condition`)return(0,T.jsx)(`div`,{className:`flex flex-col justify-between gap-2`,children:Object.keys(o[f]).map(e=>(0,T.jsx)(tz,{keyPath:[...r,{type:f,key:e}],section:n,dictionary:i},e))});if(f===`array`){let e;return t[9]!==i||t[10]!==m||t[11]!==d||t[12]!==r||t[13]!==n||t[14]!==c?(e=(e,t)=>{let a=[...r,{type:F,key:t}];return ez(e)?(0,T.jsxs)(oS,{label:`${d.label.value} ${t}`,variant:`hoverable`,color:`text`,className:`w-full`,onClick:()=>c(a),IconRight:Su,isActive:m(a),children:[`Item `,t]},JSON.stringify(a)):(0,T.jsx)(cS,{label:`${d.label.value} ${t}`,header:`Item ${t}`,isActive:m(a),onClick:()=>c(a),children:(0,T.jsx)(`div`,{className:`mt-2 flex w-full max-w-full`,children:(0,T.jsx)(`div`,{className:`flex-1 pl-10`,children:(0,T.jsx)(tz,{keyPath:a,section:n,dictionary:i})})})},JSON.stringify(a))},t[9]=i,t[10]=m,t[11]=d,t[12]=r,t[13]=n,t[14]=c,t[15]=e):e=t[15],(0,T.jsxs)(`div`,{className:`flex flex-col justify-between gap-2`,children:[o.map(e),(0,T.jsx)(oS,{label:u.label.value,variant:`hoverable`,color:`neutral`,textAlign:`left`,onClick:()=>{let e=[...r,{type:F,key:o.length}],t=o,n=pw(t[t.length-1])??``;s(i.localId,n,e,!1),c(e)},Icon:Ru,children:u.text})]})}return typeof o.nodeType==`string`?(0,T.jsx)(tz,{keyPath:[...r,{type:o.nodeType}],section:n,dictionary:i}):(0,T.jsx)(`div`,{className:`flex w-full max-w-full flex-col justify-between gap-2`,children:Object.keys(o).map(e=>{let t=[...r,{type:P,key:e}];return ez(dw(n,t))?(0,T.jsx)(oS,{label:`${d.label.value} ${e}`,isActive:m(t),variant:`hoverable`,color:`text`,className:`w-full`,onClick:()=>c(t),IconRight:Su,children:_r(e)},e):(0,T.jsx)(cS,{label:`${d.label.value} ${e}`,isActive:m(t),onClick:()=>c(t),header:_r(e),children:(0,T.jsx)(`div`,{className:`mt-2 flex w-full max-w-full`,children:(0,T.jsx)(`div`,{className:`flex-1 pl-10`,children:(0,T.jsx)(tz,{keyPath:t,section:n,dictionary:i})})})},e)})})}return(0,T.jsxs)(T.Fragment,{children:[`Error loading section --`,f,`--`,JSON.stringify(o),`--`,JSON.stringify(r)]})},nz=e=>{let t=(0,b.c)(3),{dictionary:n,isDarkMode:r}=e,{content:i,key:a,localId:o}=n,{editedContent:s}=Bw(),{focusedContent:c,setFocusedContentKeyPath:l}=Fw(),u=c?.keyPath,d=s?.[o]?.content===void 0?i:s?.[o]?.content,f=Nw(),p=dw(d,u??[],f),m;t[0]===d?m=t[1]:(m=ez(d),t[0]=d,t[1]=m);let h=m,g=ez(p),_;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(_=[],t[2]=_):_=t[2],(0,v.useEffect)(()=>{p===void 0&&l(c?.keyPath?.slice(0,-1)??[])},_),(0,T.jsxs)(`div`,{children:[(0,T.jsxs)(`div`,{className:`mb-6 flex items-center justify-between gap-2`,children:[(0,T.jsx)(SL,{dictionaryKey:a,keyPath:u??[],onClickKeyPath:l}),(0,T.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,T.jsx)($R,{})})]}),(0,T.jsxs)(`div`,{className:`flex flex-1 gap-2 overflow-visible max-md:flex-col`,children:[typeof d==`object`&&d&&!h&&Object.keys(d).length>0&&(0,T.jsx)(tS,{border:!0,background:`none`,className:`top-10 flex h-full flex-col items-start gap-0.5 overflow-auto p-2 md:sticky md:max-w-[50%]`,roundedSize:`xl`,transparency:`xs`,children:(0,T.jsx)(tz,{keyPath:[],section:d,dictionary:n})}),(g||(u??[]).length>0)&&(0,T.jsx)(pL,{keyPath:u??[],section:p,dictionary:n,isDarkMode:r})]})]})},rz=ou(`inline-flex items-center rounded-md border px-2.5 py-0.5 font-semibold text-xs transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2`,{variants:{color:{primary:`border-primary bg-primary text-primary hover:bg-primary-500`,secondary:`border-secondary bg-secondary text-secondary hover:bg-secondary-300`,destructive:`border-destructive bg-destructive text-destructive hover:bg-destructive-500`,success:`border-success bg-success text-success hover:bg-success-500`,error:`border-error bg-error text-error hover:bg-error-500`,neutral:`border-neutral bg-neutral text-neutral hover:bg-neutral-600`,light:`border-white bg-white text-white hover:bg-neutral-500`,dark:`border-neutral-800 bg-neutral-800 text-neutral-800 hover:bg-neutral-900`,text:`border-text bg-text text-text hover:opacity-80`,custom:``},variant:{default:`rounded-lg text-text-opposite`,none:`border-none bg-opacity-0 text-inherit hover:bg-opacity-0`,outline:`rounded-lg border-[1.3px] bg-opacity-0 hover:bg-opacity-30`,hoverable:`rounded-lg border-none bg-opacity-0 transition hover:bg-opacity-10`},size:{sm:`px-2 py-0.5 text-xs`,md:`px-2.5 py-0.5 text-xs`,lg:`px-3 py-1 text-sm`}},defaultVariants:{variant:`default`,color:`primary`,size:`md`}}),iz=({className:e,variant:t=`default`,color:n=`primary`,size:r=`md`,children:i,clickable:a=!1,dismissible:o=!1,onClick:s,onDismiss:c,role:u,tabIndex:d,"aria-label":f,...p})=>{let m=a?`button`:`span`,h=e=>{a&&s&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),s(e))},g=e=>{e.stopPropagation(),c?.()};return(0,T.jsxs)(m,{className:l(rz({variant:t,color:n,size:r}),a&&`cursor-pointer hover:opacity-80 focus-visible:ring-2 focus-visible:ring-offset-2`,o&&`pr-1`,e),onClick:a?s:void 0,onKeyDown:a?h:void 0,role:u||(a?`button`:`status`),tabIndex:a?d??0:d,"aria-label":f||(a?`${i} button`:void 0),...p,children:[i,o&&(0,T.jsx)(`button`,{type:`button`,className:`ml-1 inline-flex h-4 w-4 items-center justify-center rounded-full hover:bg-black/10 focus:outline-none focus:ring-1 focus:ring-offset-1`,onClick:g,"aria-label":`Remove ${i} badge`,children:(0,T.jsxs)(`svg`,{className:`size-3`,viewBox:`0 0 20 20`,fill:`currentColor`,"aria-label":`Remove badge`,children:[(0,T.jsx)(`title`,{children:`Remove badge`}),(0,T.jsx)(`path`,{fillRule:`evenodd`,d:`M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z`,clipRule:`evenodd`})]})})]})},az=`Dialog`,[oz,sz]=bc(az),[cz,lz]=oz(az),uz=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=v.useRef(null),c=v.useRef(null),[l,u]=il({prop:r,defaultProp:i??!1,onChange:a,caller:az});return(0,T.jsx)(cz,{scope:t,triggerRef:s,contentRef:c,contentId:$k(),titleId:$k(),descriptionId:$k(),open:l,onOpenChange:u,onOpenToggle:v.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})};uz.displayName=az;var dz=`DialogTrigger`,fz=v.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=lz(dz,n),a=vc(t,i.triggerRef);return(0,T.jsx)(Ac.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Mz(i.open),...r,ref:a,onClick:hc(e.onClick,i.onOpenToggle)})});fz.displayName=dz;var pz=`DialogPortal`,[mz,hz]=oz(pz,{forceMount:void 0}),gz=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=lz(pz,t);return(0,T.jsx)(mz,{scope:t,forceMount:n,children:v.Children.map(r,e=>(0,T.jsx)($c,{present:n||a.open,children:(0,T.jsx)(Zc,{asChild:!0,container:i,children:e})}))})};gz.displayName=pz;var _z=`DialogOverlay`,vz=v.forwardRef((e,t)=>{let n=hz(_z,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=lz(_z,e.__scopeDialog);return a.modal?(0,T.jsx)($c,{present:r||a.open,children:(0,T.jsx)(bz,{...i,ref:t})}):null});vz.displayName=_z;var yz=Sc(`DialogOverlay.RemoveScroll`),bz=v.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=lz(_z,n);return(0,T.jsx)(nP,{as:yz,allowPinchZoom:!0,shards:[i.contentRef],children:(0,T.jsx)(Ac.div,{"data-state":Mz(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),xz=`DialogContent`,Sz=v.forwardRef((e,t)=>{let n=hz(xz,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=lz(xz,e.__scopeDialog);return(0,T.jsx)($c,{present:r||a.open,children:a.modal?(0,T.jsx)(Cz,{...i,ref:t}):(0,T.jsx)(wz,{...i,ref:t})})});Sz.displayName=xz;var Cz=v.forwardRef((e,t)=>{let n=lz(xz,e.__scopeDialog),r=v.useRef(null),i=vc(t,n.contentRef,r);return v.useEffect(()=>{let e=r.current;if(e)return qM(e)},[]),(0,T.jsx)(Tz,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:hc(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:hc(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:hc(e.onFocusOutside,e=>e.preventDefault())})}),wz=v.forwardRef((e,t)=>{let n=lz(xz,e.__scopeDialog),r=v.useRef(!1),i=v.useRef(!1);return(0,T.jsx)(Tz,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),Tz=v.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=lz(xz,n),c=v.useRef(null),l=vc(t,c);return Nk(),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(zk,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,T.jsx)(Bc,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Mz(s.open),...o,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(Iz,{titleId:s.titleId}),(0,T.jsx)(Rz,{contentRef:c,descriptionId:s.descriptionId})]})]})}),Ez=`DialogTitle`,Dz=v.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=lz(Ez,n);return(0,T.jsx)(Ac.h2,{id:i.titleId,...r,ref:t})});Dz.displayName=Ez;var Oz=`DialogDescription`,kz=v.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=lz(Oz,n);return(0,T.jsx)(Ac.p,{id:i.descriptionId,...r,ref:t})});kz.displayName=Oz;var Az=`DialogClose`,jz=v.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=lz(Az,n);return(0,T.jsx)(Ac.button,{type:`button`,...r,ref:t,onClick:hc(e.onClick,()=>i.onOpenChange(!1))})});jz.displayName=Az;function Mz(e){return e?`open`:`closed`}var Nz=`DialogTitleWarning`,[Pz,Fz]=yc(Nz,{contentName:xz,titleName:Ez,docsSlug:`dialog`}),Iz=({titleId:e})=>{let t=Fz(Nz),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
160
160
|
|
|
161
161
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
162
162
|
|
package/client/dist/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Intlayer Editor</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-RwIfMSBH.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="/assets/chunk-BEqpzyXh.js">
|
|
10
10
|
<link rel="modulepreload" crossorigin href="/assets/preload-helper-Bll5m_3I.js">
|
|
11
11
|
<link rel="modulepreload" crossorigin href="/assets/react-Dd6JzN7O.js">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intlayer-editor",
|
|
3
|
-
"version": "8.7.5
|
|
3
|
+
"version": "8.7.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Integrate the Intlayer visual editor into your Intlayer projects, enabling CMS-like content management with multilingual support.",
|
|
6
6
|
"keywords": [
|
|
@@ -93,17 +93,17 @@
|
|
|
93
93
|
"@fastify/formbody": "8.0.2",
|
|
94
94
|
"@fastify/helmet": "13.0.2",
|
|
95
95
|
"@fastify/static": "9.1.1",
|
|
96
|
-
"@intlayer/chokidar": "8.7.5
|
|
97
|
-
"@intlayer/config": "8.7.5
|
|
98
|
-
"@intlayer/unmerged-dictionaries-entry": "8.7.5
|
|
96
|
+
"@intlayer/chokidar": "8.7.5",
|
|
97
|
+
"@intlayer/config": "8.7.5",
|
|
98
|
+
"@intlayer/unmerged-dictionaries-entry": "8.7.5",
|
|
99
99
|
"fastify": "5.8.5",
|
|
100
|
-
"fastify-intlayer": "8.7.5
|
|
100
|
+
"fastify-intlayer": "8.7.5",
|
|
101
101
|
"mime": "4.1.0"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
|
-
"@intlayer/design-system": "8.7.5
|
|
105
|
-
"@intlayer/editor-react": "8.7.5
|
|
106
|
-
"@intlayer/types": "8.7.5
|
|
104
|
+
"@intlayer/design-system": "8.7.5",
|
|
105
|
+
"@intlayer/editor-react": "8.7.5",
|
|
106
|
+
"@intlayer/types": "8.7.5",
|
|
107
107
|
"@rolldown/plugin-babel": "^0.2.2",
|
|
108
108
|
"@tailwindcss/vite": "4.2.2",
|
|
109
109
|
"@tanstack/react-query": "5.99.0",
|
|
@@ -117,17 +117,17 @@
|
|
|
117
117
|
"framer-motion": "12.38.0",
|
|
118
118
|
"fuse.js": "7.3.0",
|
|
119
119
|
"globals": "17.5.0",
|
|
120
|
-
"intlayer": "8.7.5
|
|
120
|
+
"intlayer": "8.7.5",
|
|
121
121
|
"lucide-react": "1.8.0",
|
|
122
122
|
"react": "19.2.5",
|
|
123
123
|
"react-dom": "19.2.5",
|
|
124
|
-
"react-intlayer": "8.7.5
|
|
124
|
+
"react-intlayer": "8.7.5",
|
|
125
125
|
"react-router-dom": "7.14.1",
|
|
126
126
|
"tailwindcss": "4.2.2",
|
|
127
127
|
"tsdown": "0.21.9",
|
|
128
128
|
"typescript": "6.0.3",
|
|
129
129
|
"vite": "8.0.8",
|
|
130
|
-
"vite-intlayer": "8.7.5
|
|
130
|
+
"vite-intlayer": "8.7.5",
|
|
131
131
|
"vitest": "4.1.4"
|
|
132
132
|
},
|
|
133
133
|
"engines": {
|