@syngrisi/syngrisi
Version:
Syngrisi - Visual Testing Tool
11 lines (10 loc) • 37.3 kB
JavaScript
var dr=Object.defineProperty;var o=(e,t)=>dr(e,"name",{value:t,configurable:!0});import{aj as it,ac as be,a6 as ce,j as _,U as je,B as pe,aC as Pt,ae as jt,a1 as st,a7 as Ge,ad as He,ag as Mt,ai as Ft,az as Ot,au as lt,R as De,r as Z,ar as fr,aN as Vt,aD as vr,as as Lt,ah as mr,ak as gr,bH as hr,u as pr,aE as br,aF as yr,c as Sr}from"./http-CC8JzV-G.js";import{bG as kt,_ as Nr,ay as $t,ae as Ue,ar as xr}from"./LogicalGroup-qEd2Ojyr.js";function Ze(e,t){return r=>{if(typeof r!="string"||r.trim().length===0)throw new Error(t);return`${e}-${r}`}}o(Ze,"getSafeId");const[wr,ut]=it("Accordion component was not found in the tree"),[Ir,Kt]=it("Accordion.Item component was not found in the tree");var Fe={root:"m_9bdbb667",panel:"m_df78851f",content:"m_4ba554d4",itemTitle:"m_8fa820a0",control:"m_4ba585b8","control--default":"m_6939a5e9","control--contained":"m_4271d21b",label:"m_df3ffa0f",chevron:"m_3f35ae96",icon:"m_9bd771fe",item:"m_9bd7b098","item--default":"m_fe19b709","item--contained":"m_1f921b3b","item--filled":"m_2cdf939a","item--separated":"m_9f59b069"};const ct=be(e=>{const{classNames:t,className:r,style:a,styles:n,vars:i,chevron:s,icon:b,onClick:m,onKeyDown:g,children:h,disabled:f,mod:S,...x}=ce("AccordionControl",null,e),{value:d}=Kt(),v=ut(),C=v.isItemActive(d),N=typeof v.order=="number",M=`h${v.order}`,P=_.jsxs(je,{...v.getStyles("control",{className:r,classNames:t,style:a,styles:n,variant:v.variant}),unstyled:v.unstyled,mod:["accordion-control",{active:C,"chevron-position":v.chevronPosition,disabled:f},S],onClick:o(V=>{m?.(V),v.onChange(d)},"onClick"),type:"button",disabled:f,"aria-expanded":C,"aria-controls":v.getRegionId(d),id:v.getControlId(d),onKeyDown:kt({siblingSelector:"[data-accordion-control]",parentSelector:"[data-accordion]",activateOnFocus:!1,loop:v.loop,orientation:"vertical",onKeyDown:g}),...x,children:[_.jsx(pe,{component:"span",mod:{rotate:!v.disableChevronRotation&&C,position:v.chevronPosition},...v.getStyles("chevron",{classNames:t,styles:n}),children:s||v.chevron}),_.jsx("span",{...v.getStyles("label",{classNames:t,styles:n}),children:h}),b&&_.jsx(pe,{component:"span",mod:{"chevron-position":v.chevronPosition},...v.getStyles("icon",{classNames:t,styles:n}),children:b})]});return N?_.jsx(M,{...v.getStyles("itemTitle",{classNames:t,styles:n}),children:P}):P});ct.displayName="@mantine/core/AccordionControl";ct.classes=Fe;const dt=be(e=>{const{classNames:t,className:r,style:a,styles:n,vars:i,value:s,mod:b,...m}=ce("AccordionItem",null,e),g=ut();return _.jsx(Ir,{value:{value:s},children:_.jsx(pe,{mod:[{active:g.isItemActive(s)},b],...g.getStyles("item",{className:r,classNames:t,styles:n,style:a,variant:g.variant}),...m})})});dt.displayName="@mantine/core/AccordionItem";dt.classes=Fe;const ft=be(e=>{const{classNames:t,className:r,style:a,styles:n,vars:i,children:s,keepMounted:b,...m}=ce("AccordionPanel",null,e),{value:g}=Kt(),h=ut();return _.jsx(Nr,{...h.getStyles("panel",{className:r,classNames:t,style:a,styles:n}),expanded:h.isItemActive(g),transitionDuration:h.transitionDuration??200,role:"region",id:h.getRegionId(g),"aria-labelledby":h.getControlId(g),keepMounted:b??h.keepMounted,...m,children:_.jsx("div",{...h.getStyles("content",{classNames:t,styles:n}),children:s})})});ft.displayName="@mantine/core/AccordionPanel";ft.classes=Fe;const Vr={multiple:!1,disableChevronRotation:!1,chevronPosition:"right",variant:"default",chevronSize:"auto",chevronIconSize:16},zt=He((e,{transitionDuration:t,chevronSize:r,radius:a})=>({root:{"--accordion-transition-duration":t===void 0?void 0:`${t}ms`,"--accordion-chevron-size":r===void 0?void 0:Ft(r),"--accordion-radius":a===void 0?void 0:Mt(a)}})),xe=Pt(e=>{const t=ce("Accordion",Vr,e),{classNames:r,className:a,style:n,styles:i,unstyled:s,vars:b,children:m,multiple:g,value:h,defaultValue:f,onChange:S,id:x,loop:d,transitionDuration:v,disableChevronRotation:C,chevronPosition:N,chevronSize:M,order:P,chevron:V,variant:O,radius:te,chevronIconSize:H,attributes:T,keepMounted:z,...re}=t,$=jt(x),[L,Y]=st({value:h,defaultValue:f,finalValue:g?[]:null,onChange:S}),ae=o(y=>Array.isArray(L)?L.includes(y):y===L,"isItemActive"),oe=o(y=>{Y(Array.isArray(L)?L.includes(y)?L.filter(B=>B!==y):[...L,y]:y===L?null:y)},"handleItemChange"),I=Ge({name:"Accordion",classes:Fe,props:t,className:a,style:n,classNames:r,styles:i,unstyled:s,attributes:T,vars:b,varsResolver:zt});return _.jsx(wr,{value:{isItemActive:ae,onChange:oe,getControlId:Ze(`${$}-control`,"Accordion.Item component was rendered with invalid value or without value"),getRegionId:Ze(`${$}-panel`,"Accordion.Item component was rendered with invalid value or without value"),chevron:V===null?null:V||_.jsx($t,{size:H}),transitionDuration:v,disableChevronRotation:C,chevronPosition:N,order:P,loop:d,getStyles:I,variant:O,unstyled:s,keepMounted:z},children:_.jsx(pe,{...I("root"),id:$,...re,variant:O,"data-accordion":!0,children:m})})});xe.classes=Fe;xe.varsResolver=zt;xe.displayName="@mantine/core/Accordion";xe.Item=dt;xe.Panel=ft;xe.Control=ct;xe.Chevron=$t;var Ut={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const Wt=He((e,{color:t,size:r,lineSize:a,transitionDuration:n,transitionTimingFunction:i})=>({root:{"--burger-color":t?lt(t,e):void 0,"--burger-size":Ot(r,"burger-size"),"--burger-line-size":a?Ft(a):void 0,"--burger-transition-duration":n===void 0?void 0:`${n}ms`,"--burger-transition-timing-function":i}})),vt=be(e=>{const t=ce("Burger",null,e),{classNames:r,className:a,style:n,styles:i,unstyled:s,vars:b,opened:m,children:g,transitionDuration:h,transitionTimingFunction:f,lineSize:S,attributes:x,...d}=t,v=Ge({name:"Burger",classes:Ut,props:t,className:a,style:n,classNames:r,styles:i,unstyled:s,attributes:x,vars:b,varsResolver:Wt});return _.jsxs(je,{...v("root"),...d,children:[_.jsx(pe,{mod:["reduce-motion",{opened:m}],...v("burger")}),g]})});vt.classes=Ut;vt.varsResolver=Wt;vt.displayName="@mantine/core/Burger";function Zt(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]]);return r}o(Zt,"__rest");var Te;(function(e){e.event="event",e.props="prop"})(Te||(Te={}));function ge(){}o(ge,"noop");function Cr(e){var t,r=void 0;return function(){for(var a=[],n=arguments.length;n--;)a[n]=arguments[n];return t&&a.length===t.length&&a.every(function(i,s){return i===t[s]})||(t=a,r=e.apply(void 0,a)),r}}o(Cr,"memoizeOnce");function Me(e){return!!(e||"").match(/\d/)}o(Me,"charIsNumber");function he(e){return e==null}o(he,"isNil");function Dr(e){return typeof e=="number"&&isNaN(e)}o(Dr,"isNanValue");function Gt(e){return he(e)||Dr(e)||typeof e=="number"&&!isFinite(e)}o(Gt,"isNotValidValue");function Ht(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}o(Ht,"escapeRegExp");function Tr(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}o(Tr,"getThousandsGroupRegex");function Ar(e,t,r){var a=Tr(r),n=e.search(/[1-9]/);return n=n===-1?e.length:n,e.substring(0,n)+e.substring(n,e.length).replace(a,"$1"+t)}o(Ar,"applyThousandSeparator");function Ct(e){var t=Z.useRef(e);t.current=e;var r=Z.useRef(function(){for(var a=[],n=arguments.length;n--;)a[n]=arguments[n];return t.current.apply(t,a)});return r.current}o(Ct,"usePersistentCallback");function mt(e,t){t===void 0&&(t=!0);var r=e[0]==="-",a=r&&t;e=e.replace("-","");var n=e.split("."),i=n[0],s=n[1]||"";return{beforeDecimal:i,afterDecimal:s,hasNegation:r,addNegation:a}}o(mt,"splitDecimal");function Rr(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var r=e.split("."),a=r[0].replace(/^0+/,"")||"0",n=r[1]||"";return(t?"-":"")+a+(n?"."+n:"")}o(Rr,"fixLeadingZero");function Xt(e,t,r){for(var a="",n=r?"0":"",i=0;i<=t-1;i++)a+=e[i]||n;return a}o(Xt,"limitToScale");function Dt(e,t){return Array(t+1).join(e)}o(Dt,"repeat");function qt(e){var t=e+"",r=t[0]==="-"?"-":"";r&&(t=t.substring(1));var a=t.split(/[eE]/g),n=a[0],i=a[1];if(i=Number(i),!i)return r+n;n=n.replace(".","");var s=1+i,b=n.length;return s<0?n="0."+Dt("0",Math.abs(s))+n:s>=b?n=n+Dt("0",s-b):n=(n.substring(0,s)||"0")+"."+n.substring(s),r+n}o(qt,"toNumericString");function Tt(e,t,r){if(["","-"].indexOf(e)!==-1)return e;var a=(e.indexOf(".")!==-1||r)&&t,n=mt(e),i=n.beforeDecimal,s=n.afterDecimal,b=n.hasNegation,m=parseFloat("0."+(s||"0")),g=s.length<=t?"0."+s:m.toFixed(t),h=g.split("."),f=i;i&&Number(h[0])&&(f=i.split("").reverse().reduce(function(v,C,N){return v.length>N?(Number(v[0])+Number(C)).toString()+v.substring(1,v.length):C+v},h[0]));var S=Xt(h[1]||"",t,r),x=b?"-":"",d=a?".":"";return""+x+f+d+S}o(Tt,"roundToPrecision");function Ne(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}o(Ne,"setCaretPosition");var Jt=Cr(function(e,t){for(var r=0,a=0,n=e.length,i=t.length;e[r]===t[r]&&r<n;)r++;for(;e[n-1-a]===t[i-1-a]&&i-a>r&&n-a>r;)a++;return{from:{start:r,end:n-a},to:{start:r,end:i-a}}}),_r=o(function(e,t){var r=Math.min(e.selectionStart,t);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:t}}},"findChangedRangeFromCaretPositions");function Br(e,t,r){return Math.min(Math.max(e,t),r)}o(Br,"clamp");function Ye(e){return Math.max(e.selectionStart,e.selectionEnd)}o(Ye,"geInputCaretPosition");function Er(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}o(Er,"addInputMode");function Pr(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}o(Pr,"getDefaultChangeMeta");function jr(e){var t=e.currentValue,r=e.formattedValue,a=e.currentValueIndex,n=e.formattedValueIndex;return t[a]===r[n]}o(jr,"defaultIsCharacterSame");function Mr(e,t,r,a,n,i,s){s===void 0&&(s=jr);var b=n.findIndex(function(V){return V}),m=e.slice(0,b);!t&&!r.startsWith(m)&&(t=m,r=m+r,a=a+m.length);for(var g=r.length,h=e.length,f={},S=new Array(g),x=0;x<g;x++){S[x]=-1;for(var d=0,v=h;d<v;d++){var C=s({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:x,formattedValueIndex:d});if(C&&f[d]!==!0){S[x]=d,f[d]=!0;break}}}for(var N=a;N<g&&(S[N]===-1||!i(r[N]));)N++;var M=N===g||S[N]===-1?h:S[N];for(N=a-1;N>0&&S[N]===-1;)N--;var P=N===-1||S[N]===-1?0:S[N]+1;return P>M?M:a-P<M-a?P:M}o(Mr,"getCaretPosition");function At(e,t,r,a){var n=e.length;if(t=Br(t,0,n),a==="left"){for(;t>=0&&!r[t];)t--;t===-1&&(t=r.indexOf(!0))}else{for(;t<=n&&!r[t];)t++;t>n&&(t=r.lastIndexOf(!0))}return t===-1&&(t=n),t}o(At,"getCaretPosInBoundary");function Fr(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,a=t.length;r<a;r++)t[r]=!!(Me(e[r])||Me(e[r-1]));return t}o(Fr,"caretUnknownFormatBoundary");function Qt(e,t,r,a,n,i){i===void 0&&(i=ge);var s=Ct(function(d,v){var C,N;return Gt(d)?(N="",C=""):typeof d=="number"||v?(N=typeof d=="number"?qt(d):d,C=a(N)):(N=n(d,void 0),C=a(N)),{formattedValue:C,numAsString:N}}),b=Z.useState(function(){return s(he(e)?t:e,r)}),m=b[0],g=b[1],h=Ct(function(d,v){d.formattedValue!==m.formattedValue&&g({formattedValue:d.formattedValue,numAsString:d.value}),i(d,v)}),f=e,S=r;he(e)&&(f=m.numAsString,S=!0);var x=s(f,S);return Z.useMemo(function(){g(x)},[x.formattedValue]),Z.useEffect(function(){if(!he(t)&&he(e)&&m.formattedValue!==""){var d=parseFloat(m.numAsString);h({formattedValue:m.formattedValue,value:m.numAsString,floatValue:isNaN(d)?void 0:d},{event:void 0,source:Te.props})}},[]),[m,h]}o(Qt,"useInternalValues");function Or(e){return e.replace(/[^0-9]/g,"")}o(Or,"defaultRemoveFormatting");function Lr(e){return e}o(Lr,"defaultFormat");function kr(e){var t=e.type;t===void 0&&(t="text");var r=e.displayType;r===void 0&&(r="input");var a=e.customInput,n=e.renderText,i=e.getInputRef,s=e.format;s===void 0&&(s=Lr);var b=e.removeFormatting;b===void 0&&(b=Or);var m=e.defaultValue,g=e.valueIsNumericString,h=e.onValueChange,f=e.isAllowed,S=e.onChange;S===void 0&&(S=ge);var x=e.onKeyDown;x===void 0&&(x=ge);var d=e.onMouseUp;d===void 0&&(d=ge);var v=e.onFocus;v===void 0&&(v=ge);var C=e.onBlur;C===void 0&&(C=ge);var N=e.value,M=e.getCaretBoundary;M===void 0&&(M=Fr);var P=e.isValidInputCharacter;P===void 0&&(P=Me);var V=e.isCharacterSame,O=Zt(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),te=Qt(N,m,!!g,s,b,h),H=te[0],T=H.formattedValue,z=H.numAsString,re=te[1],$=Z.useRef(),L=Z.useRef({formattedValue:T,numAsString:z}),Y=o(function(c,u){L.current={formattedValue:c.formattedValue,numAsString:c.value},re(c,u)},"_onValueChange"),ae=Z.useState(!1),oe=ae[0],I=ae[1],y=Z.useRef(null),B=Z.useRef({setCaretTimeout:null,focusTimeout:null});Z.useEffect(function(){return I(!0),function(){clearTimeout(B.current.setCaretTimeout),clearTimeout(B.current.focusTimeout)}},[]);var K=s,U=o(function(c,u){var w=parseFloat(u);return{formattedValue:c,value:u,floatValue:isNaN(w)?void 0:w}},"getValueObject"),F=o(function(c,u,w){c.selectionStart===0&&c.selectionEnd===c.value.length||(Ne(c,u),B.current.setCaretTimeout=setTimeout(function(){c.value===w&&c.selectionStart!==u&&Ne(c,u)},0))},"setPatchedCaretPosition"),W=o(function(c,u,w){return At(c,u,M(c),w)},"correctCaretPosition"),se=o(function(c,u,w){var E=M(u),k=Mr(u,T,c,w,E,P,V);return k=At(u,k,E),k},"getNewCaretPosition"),Re=o(function(c){var u=c.formattedValue;u===void 0&&(u="");var w=c.input,E=c.source,k=c.event,D=c.numAsString,R;if(w){var ie=c.inputValue||w.value,X=Ye(w);w.value=u,R=se(ie,u,X),R!==void 0&&F(w,R,u)}u!==T&&Y(U(u,D),{event:k,source:E})},"updateValueAndCaretPosition");Z.useEffect(function(){var c=L.current,u=c.formattedValue,w=c.numAsString;(T!==u||z!==w)&&Y(U(T,z),{event:void 0,source:Te.props})},[T,z]);var fe=y.current?Ye(y.current):void 0,we=typeof window<"u"?Z.useLayoutEffect:Z.useEffect;we(function(){var c=y.current;if(T!==L.current.formattedValue&&c){var u=se(L.current.formattedValue,T,fe);c.value=T,F(c,u,T)}},[T]);var ye=o(function(c,u,w){var E=u.target,k=$.current?_r($.current,E.selectionEnd):Jt(T,c),D=Object.assign(Object.assign({},k),{lastValue:T}),R=b(c,D),ie=K(R);if(R=b(ie,void 0),f&&!f(U(ie,R))){var X=u.target,j=Ye(X),ve=se(c,T,j);return X.value=T,F(X,ve,T),!1}return Re({formattedValue:ie,numAsString:R,inputValue:c,event:u,source:w,input:u.target}),!0},"formatInputValue"),le=o(function(c,u){u===void 0&&(u=0);var w=c.selectionStart,E=c.selectionEnd;$.current={selectionStart:w,selectionEnd:E+u}},"setCaretPositionInfoBeforeChange"),Le=o(function(c){var u=c.target,w=u.value,E=ye(w,c,Te.event);E&&S(c),$.current=void 0},"_onChange"),_e=o(function(c){var u=c.target,w=c.key,E=u.selectionStart,k=u.selectionEnd,D=u.value;D===void 0&&(D="");var R;w==="ArrowLeft"||w==="Backspace"?R=Math.max(E-1,0):w==="ArrowRight"?R=Math.min(E+1,D.length):w==="Delete"&&(R=E);var ie=0;w==="Delete"&&E===k&&(ie=1);var X=w==="ArrowLeft"||w==="ArrowRight";if(R===void 0||E!==k&&!X){x(c),le(u,ie);return}var j=R;if(X){var ve=w==="ArrowLeft"?"left":"right";j=W(D,R,ve),j!==R&&c.preventDefault()}else w==="Delete"&&!P(D[R])?j=W(D,R,"right"):w==="Backspace"&&!P(D[R])&&(j=W(D,R,"left"));j!==R&&F(u,j,D),x(c),le(u,ie)},"_onKeyDown"),qe=o(function(c){var u=c.target,w=o(function(){var E=u.selectionStart,k=u.selectionEnd,D=u.value;if(D===void 0&&(D=""),E===k){var R=W(D,E);R!==E&&F(u,R,D)}},"correctCaretPositionIfRequired");w(),requestAnimationFrame(function(){w()}),d(c),le(u)},"_onMouseUp"),Je=o(function(c){c.persist&&c.persist();var u=c.target,w=c.currentTarget;y.current=u,B.current.focusTimeout=setTimeout(function(){var E=u.selectionStart,k=u.selectionEnd,D=u.value;D===void 0&&(D="");var R=W(D,E);R!==E&&!(E===0&&k===D.length)&&F(u,R,D),v(Object.assign(Object.assign({},c),{currentTarget:w}))},0)},"_onFocus"),Be=o(function(c){y.current=null,clearTimeout(B.current.focusTimeout),clearTimeout(B.current.setCaretTimeout),C(c)},"_onBlur"),ue=oe&&Er()?"numeric":void 0,A=Object.assign({inputMode:ue},O,{type:t,value:T,onChange:Le,onKeyDown:_e,onMouseUp:qe,onFocus:Je,onBlur:Be});if(r==="text")return n?De.createElement(De.Fragment,null,n(T,O)||null):De.createElement("span",Object.assign({},O,{ref:i}),T);if(a){var de=a;return De.createElement(de,Object.assign({},A,{ref:i}))}return De.createElement("input",Object.assign({},A,{ref:i}))}o(kr,"NumberFormatBase");function Rt(e,t){var r=t.decimalScale,a=t.fixedDecimalScale,n=t.prefix;n===void 0&&(n="");var i=t.suffix;i===void 0&&(i="");var s=t.allowNegative,b=t.thousandsGroupStyle;if(b===void 0&&(b="thousand"),e===""||e==="-")return e;var m=Xe(t),g=m.thousandSeparator,h=m.decimalSeparator,f=r!==0&&e.indexOf(".")!==-1||r&&a,S=mt(e,s),x=S.beforeDecimal,d=S.afterDecimal,v=S.addNegation;return r!==void 0&&(d=Xt(d,r,!!a)),g&&(x=Ar(x,g,b)),n&&(x=n+x),i&&(d=d+i),v&&(x="-"+x),e=x+(f&&h||"")+d,e}o(Rt,"format");function Xe(e){var t=e.decimalSeparator;t===void 0&&(t=".");var r=e.thousandSeparator,a=e.allowedDecimalSeparators;return r===!0&&(r=","),a||(a=[t,"."]),{decimalSeparator:t,thousandSeparator:r,allowedDecimalSeparators:a}}o(Xe,"getSeparators");function $r(e,t){e===void 0&&(e="");var r=new RegExp("(-)"),a=new RegExp("(-)(.)*(-)"),n=r.test(e),i=a.test(e);return e=e.replace(/-/g,""),n&&!i&&t&&(e="-"+e),e}o($r,"handleNegation");function Kr(e,t){return new RegExp("(^-)|[0-9]|"+Ht(e),"g")}o(Kr,"getNumberRegex");function zr(e,t,r){return e===""?!0:!t?.match(/\d/)&&!r?.match(/\d/)&&typeof e=="string"&&!isNaN(Number(e))}o(zr,"isNumericString");function Ur(e,t,r){var a;t===void 0&&(t=Pr(e));var n=r.allowNegative,i=r.prefix;i===void 0&&(i="");var s=r.suffix;s===void 0&&(s="");var b=r.decimalScale,m=t.from,g=t.to,h=g.start,f=g.end,S=Xe(r),x=S.allowedDecimalSeparators,d=S.decimalSeparator,v=e[f]===d;if(Me(e)&&(e===i||e===s)&&t.lastValue==="")return e;if(f-h===1&&x.indexOf(e[h])!==-1){var C=b===0?"":d;e=e.substring(0,h)+C+e.substring(h+1,e.length)}var N=o(function(y,B,K){var U=!1,F=!1;i.startsWith("-")?U=!1:y.startsWith("--")?(U=!1,F=!0):s.startsWith("-")&&y.length===s.length?U=!1:y[0]==="-"&&(U=!0);var W=U?1:0;return F&&(W=2),W&&(y=y.substring(W),B-=W,K-=W),{value:y,start:B,end:K,hasNegation:U}},"stripNegation"),M=N(e,h,f),P=M.hasNegation;a=M,e=a.value,h=a.start,f=a.end;var V=N(t.lastValue,m.start,m.end),O=V.start,te=V.end,H=V.value,T=e.substring(h,f);e.length&&H.length&&(O>H.length-s.length||te<i.length)&&!(T&&s.startsWith(T))&&(e=H);var z=0;e.startsWith(i)?z+=i.length:h<i.length&&(z=h),e=e.substring(z),f-=z;var re=e.length,$=e.length-s.length;e.endsWith(s)?re=$:(f>$||f>e.length-s.length)&&(re=f),e=e.substring(0,re),e=$r(P?"-"+e:e,n),e=(e.match(Kr(d))||[]).join("");var L=e.indexOf(d);e=e.replace(new RegExp(Ht(d),"g"),function(y,B){return B===L?".":""});var Y=mt(e,n),ae=Y.beforeDecimal,oe=Y.afterDecimal,I=Y.addNegation;return g.end-g.start<m.end-m.start&&ae===""&&v&&!parseFloat(oe)&&(e=I?"-":""),e}o(Ur,"removeFormatting");function Wr(e,t){var r=t.prefix;r===void 0&&(r="");var a=t.suffix;a===void 0&&(a="");var n=Array.from({length:e.length+1}).map(function(){return!0}),i=e[0]==="-";n.fill(!1,0,Math.min(r.length+(i?1:0),e.length));var s=e.length;return n.fill(!1,s-a.length+1,s+1),n}o(Wr,"getCaretBoundary");function Zr(e){var t=Xe(e),r=t.thousandSeparator,a=t.decimalSeparator,n=e.prefix;n===void 0&&(n="");var i=e.allowNegative;if(i===void 0&&(i=!0),r===a)throw new Error(`
Decimal separator can't be same as thousand separator.
thousandSeparator: `+r+` (thousandSeparator = {true} is same as thousandSeparator = ",")
decimalSeparator: `+a+` (default value for decimalSeparator is .)
`);return n.startsWith("-")&&i&&(console.error(`
Prefix can't start with '-' when allowNegative is true.
prefix: `+n+`
allowNegative: `+i+`
`),i=!1),Object.assign(Object.assign({},e),{allowNegative:i})}o(Zr,"validateAndUpdateProps");function Gr(e){e=Zr(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,r=e.allowNegative,a=e.allowLeadingZeros,n=e.onKeyDown;n===void 0&&(n=ge);var i=e.onBlur;i===void 0&&(i=ge);var s=e.thousandSeparator,b=e.decimalScale,m=e.fixedDecimalScale,g=e.prefix;g===void 0&&(g="");var h=e.defaultValue,f=e.value,S=e.valueIsNumericString,x=e.onValueChange,d=Zt(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),v=Xe(e),C=v.decimalSeparator,N=v.allowedDecimalSeparators,M=o(function(I){return Rt(I,e)},"_format"),P=o(function(I,y){return Ur(I,y,e)},"_removeFormatting"),V=he(f)?h:f,O=S??zr(V,g,t);he(f)?he(h)||(O=O||typeof h=="number"):O=O||typeof f=="number";var te=o(function(I){return Gt(I)?I:(typeof I=="number"&&(I=qt(I)),O&&typeof b=="number"?Tt(I,b,!!m):I)},"roundIncomingValueToPrecision"),H=Qt(te(f),te(h),!!O,M,P,x),T=H[0],z=T.numAsString,re=T.formattedValue,$=H[1],L=o(function(I){var y=I.target,B=I.key,K=y.selectionStart,U=y.selectionEnd,F=y.value;if(F===void 0&&(F=""),(B==="Backspace"||B==="Delete")&&U<g.length&&F!=="-"){I.preventDefault();return}if(K!==U){n(I);return}B==="Backspace"&&F[0]==="-"&&K===g.length+1&&r&&Ne(y,1),b&&m&&(B==="Backspace"&&F[K-1]===C?(Ne(y,K-1),I.preventDefault()):B==="Delete"&&F[K]===C&&I.preventDefault()),N?.includes(B)&&F[K]===C&&Ne(y,K+1);var W=s===!0?",":s;B==="Backspace"&&F[K-1]===W&&Ne(y,K-1),B==="Delete"&&F[K]===W&&Ne(y,K+1),n(I)},"_onKeyDown"),Y=o(function(I){var y=z;if(y.match(/\d/g)||(y=""),a||(y=Rr(y)),m&&b&&(y=Tt(y,b,m)),y!==z){var B=Rt(y,e);$({formattedValue:B,value:y,floatValue:parseFloat(y)},{event:I,source:Te.event})}i(I)},"_onBlur"),ae=o(function(I){return I===C?!0:Me(I)},"isValidInputCharacter"),oe=o(function(I){var y=I.currentValue,B=I.lastValue,K=I.formattedValue,U=I.currentValueIndex,F=I.formattedValueIndex,W=y[U],se=K[F],Re=Jt(B,y),fe=Re.to,we=o(function(ye){return P(ye).indexOf(".")+g.length},"getDecimalSeparatorIndex");return f===0&&m&&b&&y[fe.start]===C&&we(y)<U&&we(K)>F?!1:U>=fe.start&&U<fe.end&&N&&N.includes(W)&&se===C?!0:W===se},"isCharacterSame");return Object.assign(Object.assign({},d),{value:re,valueIsNumericString:!1,isValidInputCharacter:ae,isCharacterSame:oe,onValueChange:$,format:M,removeFormatting:P,getCaretBoundary:o(function(I){return Wr(I,e)},"getCaretBoundary"),onKeyDown:L,onBlur:Y})}o(Gr,"useNumericFormat");function Hr(e){var t=Gr(e);return De.createElement(kr,Object.assign({},t))}o(Hr,"NumericFormat");function _t({direction:e,style:t,...r}){return _.jsx("svg",{style:{width:"var(--ni-chevron-size)",height:"var(--ni-chevron-size)",transform:e==="up"?"rotate(180deg)":void 0,...t},viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:_.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}o(_t,"NumberInputChevron");var at={root:"m_e2f5cd4e",controls:"m_95e17d22",control:"m_80b4b171"};const Xr=/^(0\.0*|-0(\.0*)?)$/,Bt=/^-?0\d+(\.\d+)?\.?$/,qr=/\.\d*0$/,Yt=/^-?\d+\.$/;function ot(e){return typeof e=="string"&&e!==""&&!Number.isNaN(Number(e))}o(ot,"isNumberString");function et(e){return typeof e=="bigint"}o(et,"isBigIntValue");function tt(e){return typeof e=="number"?e<Number.MAX_SAFE_INTEGER:e===""||ot(e)&&Number(e)<Number.MAX_SAFE_INTEGER}o(tt,"canStep");function er(e,t){return e===""||e==="-"||!t&&e.startsWith("-")?!1:/^-?\d+$/.test(e)}o(er,"isValidBigIntString");function rt(e,t){return typeof e=="bigint"?!0:e===""||er(e,t)}o(rt,"canStepBigInt");function Pe(e){if(!/^-?\d+$/.test(e))return null;try{return BigInt(e)}catch{return null}}o(Pe,"parseBigIntFromString");function ze(e){if(typeof e=="bigint")return e;if(typeof e=="number"&&Number.isFinite(e)&&Number.isInteger(e))return BigInt(e)}o(ze,"toBigIntOrUndefined");function We(e,t,r){return t!==void 0&&e<t?t:r!==void 0&&e>r?r:e}o(We,"clampBigInt");function Jr(e){return e.toString().replace(".","").length}o(Jr,"getTotalDigits");function Qr(e,t){return(typeof e=="number"?e<Number.MAX_SAFE_INTEGER:!Number.isNaN(Number(e)))&&!Number.isNaN(e)&&Jr(t)<14&&t!==""}o(Qr,"isValidNumber");function Yr(e,t,r){return e===void 0?!0:(t===void 0||e>=t)&&(r===void 0||e<=r)}o(Yr,"isInRange");const nt={size:"sm",step:1,clampBehavior:"blur",allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0,allowedDecimalSeparators:[".",","]},tr=He((e,{size:t})=>({controls:{"--ni-chevron-size":Ot(t,"ni-chevron-size")}}));function en(e,t,r){const a=e.toString(),n=Yt.test(a),i=a.replace(/^0+(?=\d)/,""),s=parseFloat(i);if(Number.isNaN(s))return i;if(s>Number.MAX_SAFE_INTEGER)return t!==void 0?t:i;const b=Ue(s,r,t);return n?`${b.toString().replace(/^0+(?=\d)/,"")}.`:b}o(en,"clampAndSanitizeInput");function tn(e,t){if(e===""||e==="-")return e;const r=Pe(e);return r===null?e:t.clampBehavior==="blur"?We(r,t.min,t.max):r}o(tn,"clampAndSanitizeBigIntInput");const gt=Pt(e=>{const t=ce("NumberInput",nt,e),{className:r,classNames:a,styles:n,unstyled:i,vars:s,onChange:b,onValueChange:m,value:g,defaultValue:h,max:f,min:S,step:x,hideControls:d,rightSection:v,isAllowed:C,clampBehavior:N,onBlur:M,allowDecimal:P,decimalScale:V,onKeyDown:O,onKeyDownCapture:te,handlersRef:H,startValue:T,disabled:z,rightSectionPointerEvents:re,allowNegative:$,readOnly:L,size:Y,rightSectionWidth:ae,stepHoldInterval:oe,stepHoldDelay:I,allowLeadingZeros:y,withKeyboardEvents:B,trimLeadingZeroesOnBlur:K,allowedDecimalSeparators:U,selectAllOnFocus:F,onMinReached:W,onMaxReached:se,onFocus:Re,attributes:fe,ref:we,...ye}=t,le=$??!0,Le=y??!0,_e=Ge({name:"NumberInput",classes:at,props:t,classNames:a,styles:n,unstyled:i,attributes:fe,vars:s,varsResolver:tr}),{resolvedClassNames:qe,resolvedStyles:Je}=fr({classNames:a,styles:n,props:t}),Be=Z.useRef(et(g)||et(h)?"bigint":"number");et(g)?Be.current="bigint":typeof g=="number"&&(Be.current="number");const ue=Be.current==="bigint",[A,de]=st({value:g,defaultValue:h,finalValue:"",onChange:b}),c=I!==void 0&&oe!==void 0,u=Z.useRef(null),w=Z.useRef(null),E=Z.useRef(0),k=typeof S=="number"?S:void 0,D=typeof f=="number"?f:void 0,R=typeof x=="number"?x:nt.step,ie=typeof T=="number"?T:nt.startValue,X=ze(S),j=ze(f),ve=ze(x)??BigInt(1),St=ze(T)??BigInt(0),nr=o(l=>!er(l,le)||Le&&Bt.test(l)?l:Pe(l)??l,"parseBigIntOrString"),Nt=o(l=>{const p=Number(l);return Number.isSafeInteger(p)?p:void 0},"getBigIntFloatValue"),ar=o((l,p)=>{p.source==="event"&&de(ue?nr(l.value):Qr(l.floatValue,l.value)&&!Xr.test(l.value)&&!(Le&&Bt.test(l.value))&&!qr.test(l.value)&&!Yt.test(l.value)?l.floatValue:l.value),m?.(l,p)},"handleValueChange"),Ee=o(l=>{const p=String(l).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return p?Math.max(0,(p[1]?p[1].length:0)-(p[2]?+p[2]:0)):0},"getDecimalPlaces"),Ie=o(l=>{u.current&&typeof l<"u"&&u.current.setSelectionRange(l,l)},"adjustCursor"),ke=Z.useRef(Vt);ke.current=()=>{if(ue){if(!rt(A,le))return;let G;const J=A;if(typeof J=="bigint"){const ne=J+ve;j!==void 0&&ne>j&&se?.(),G=j!==void 0&&ne>j?j:ne}else if(typeof J=="string"&&J!==""){const ne=Pe(J);if(ne===null)return;const me=ne+ve;j!==void 0&&me>j&&se?.(),G=j!==void 0&&me>j?j:me}else G=We(St,X,j);const Q=G.toString();de(G),m?.({floatValue:Nt(G),formattedValue:Q,value:Q},{source:"increment"}),setTimeout(()=>Ie(u.current?.value.length),0);return}if(!tt(A))return;let l;const p=Ee(A),Ve=Ee(R),Se=Math.max(p,Ve),q=10**Se;if(!ot(A)&&(typeof A!="number"||Number.isNaN(A)))l=Ue(ie,k,D);else if(D!==void 0){const G=(Math.round(Number(A)*q)+Math.round(R*q))/q;G>D&&se?.(),l=G<=D?G:D}else l=(Math.round(Number(A)*q)+Math.round(R*q))/q;const ee=l.toFixed(Se);de(parseFloat(ee)),m?.({floatValue:parseFloat(ee),formattedValue:ee,value:ee},{source:"increment"}),setTimeout(()=>Ie(u.current?.value.length),0)};const $e=Z.useRef(Vt);$e.current=()=>{if(ue){if(!rt(A,le))return;let J;const Q=X!==void 0?X:le?void 0:BigInt(0),ne=A;if(typeof ne=="bigint"){const Ce=ne-ve;Q!==void 0&&Ce<Q&&W?.(),J=Q!==void 0&&Ce<Q?Q:Ce}else if(typeof ne=="string"&&ne!==""){const Ce=Pe(ne);if(Ce===null)return;const Qe=Ce-ve;Q!==void 0&&Qe<Q&&W?.(),J=Q!==void 0&&Qe<Q?Q:Qe}else J=We(St,Q,j);const me=J.toString();de(J),m?.({floatValue:Nt(J),formattedValue:me,value:me},{source:"decrement"}),setTimeout(()=>Ie(u.current?.value.length),0);return}if(!tt(A))return;let l;const p=k!==void 0?k:le?Number.MIN_SAFE_INTEGER:0,Ve=Ee(A),Se=Ee(R),q=Math.max(Ve,Se),ee=10**q;if(!ot(A)&&typeof A!="number"||Number.isNaN(A))l=Ue(ie,p,D);else{const J=(Math.round(Number(A)*ee)-Math.round(R*ee))/ee;p!==void 0&&J<p&&W?.(),l=p!==void 0&&J<p?p:J}const G=l.toFixed(q);de(parseFloat(G)),m?.({floatValue:parseFloat(G),formattedValue:G,value:G},{source:"decrement"}),setTimeout(()=>Ie(u.current?.value.length),0)};const or=o(l=>{const p=l.clipboardData.getData("text"),Ve=ye.decimalSeparator||".",Se=(U||[".",","]).filter(q=>q!==Ve);if(Se.some(q=>p.includes(q))){l.preventDefault();let q=p;Se.forEach(G=>{q=q.split(G).join(Ve)});const ee=u.current;if(ee){const G=ee.selectionStart??0,J=ee.selectionEnd??0,Q=ee.value,ne=Q.substring(0,G)+q+Q.substring(J);Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value")?.set?.call(ee,ne),ee.dispatchEvent(new Event("change",{bubbles:!0}));const me=G+q.length;setTimeout(()=>Ie(me),0)}}ye.onPaste?.(l)},"handlePaste"),ir=o(l=>{O?.(l),!(L||!B)&&(l.key==="ArrowUp"&&(l.preventDefault(),ke.current?.()),l.key==="ArrowDown"&&(l.preventDefault(),$e.current?.()))},"handleKeyDown"),sr=o(l=>{if(te?.(l),l.key==="Backspace"){const p=u.current;p&&p.selectionStart===0&&p.selectionStart===p.selectionEnd&&(l.preventDefault(),window.setTimeout(()=>Ie(0),0))}},"handleKeyDownCapture"),lr=o(l=>{F&&setTimeout(()=>l.currentTarget.select(),0),Re?.(l)},"handleFocus"),ur=o(l=>{let p=A;ue?(N==="blur"&&typeof p=="bigint"&&(p=We(p,X,j)),K&&typeof p=="string"&&(p=tn(p,{min:X,max:j,clampBehavior:N}))):(N==="blur"&&typeof p=="number"&&(p=Ue(p,k,D)),K&&typeof p=="string"&&Ee(p)<15&&(p=en(p,D,k))),A!==p&&de(p),M?.(l)},"handleBlur");vr(H,{increment:ke.current,decrement:$e.current});const xt=o(l=>{l?ke.current?.():$e.current?.(),E.current+=1},"onStepHandleChange"),wt=o(l=>{if(xt(l),c){const p=typeof oe=="number"?oe:oe(E.current);w.current=window.setTimeout(()=>wt(l),p)}},"onStepLoop"),It=o((l,p)=>{l.preventDefault(),u.current?.focus(),xt(p),c&&(w.current=window.setTimeout(()=>wt(p),I))},"onStep"),Ke=o(()=>{w.current&&window.clearTimeout(w.current),w.current=null,E.current=0},"onStepDone"),cr=_.jsxs("div",{..._e("controls"),children:[_.jsx(je,{..._e("control"),tabIndex:-1,"aria-hidden":!0,disabled:z||typeof A=="number"&&D!==void 0&&A>=D||typeof A=="bigint"&&j!==void 0&&A>=j,mod:{direction:"up"},onMouseDown:o(l=>l.preventDefault(),"onMouseDown"),onPointerDown:o(l=>{It(l,!0)},"onPointerDown"),onPointerUp:Ke,onPointerLeave:Ke,children:_.jsx(_t,{direction:"up"})}),_.jsx(je,{..._e("control"),tabIndex:-1,"aria-hidden":!0,disabled:z||typeof A=="number"&&k!==void 0&&A<=k||typeof A=="bigint"&&X!==void 0&&A<=X,mod:{direction:"down"},onMouseDown:o(l=>l.preventDefault(),"onMouseDown"),onPointerDown:o(l=>{It(l,!1)},"onPointerDown"),onPointerUp:Ke,onPointerLeave:Ke,children:_.jsx(_t,{direction:"down"})})]});return _.jsx(Lt,{component:Hr,allowNegative:$,className:gr(at.root,r),size:Y,...ye,inputMode:ue?"numeric":"decimal",readOnly:L,disabled:z,value:typeof A=="bigint"?A.toString():A,getInputRef:mr(we,u),onValueChange:ar,rightSection:d||L||!(ue?rt(A,le):tt(A))?v:v||cr,classNames:qe,styles:Je,unstyled:i,__staticSelector:"NumberInput",decimalScale:ue?0:P?V:0,onPaste:or,onFocus:lr,onKeyDown:ir,onKeyDownCapture:sr,rightSectionPointerEvents:re??(z?"none":void 0),rightSectionWidth:ae??`var(--ni-right-section-width-${Y||"sm"})`,allowLeadingZeros:y,allowedDecimalSeparators:U,onBlur:ur,attributes:fe,isAllowed:o(l=>{if(!(!C||C(l)))return!1;if(N!=="strict")return!0;if(!ue)return Yr(l.floatValue,k,D);if(l.value===""||l.value==="-")return!0;const p=Pe(l.value);return p===null?!0:(X===void 0||p>=X)&&(j===void 0||p<=j)},"isAllowed")})});gt.classes={...Lt.classes,...at};gt.varsResolver=tr;gt.displayName="@mantine/core/NumberInput";const[rn,ht]=it("Tabs component was not found in the tree");var Oe={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const pt=be(e=>{const t=ce("TabsList",null,e),{children:r,className:a,grow:n,justify:i,classNames:s,styles:b,style:m,mod:g,...h}=t,f=ht();return _.jsx(pe,{...f.getStyles("list",{className:a,style:m,classNames:s,styles:b,props:t,variant:f.variant}),role:"tablist",variant:f.variant,mod:[{grow:n,orientation:f.orientation,placement:f.orientation==="vertical"&&f.placement,inverted:f.inverted},g],"aria-orientation":f.orientation,__vars:{"--tabs-justify":i},...h,children:r})});pt.classes=Oe;pt.displayName="@mantine/core/TabsList";const bt=be(e=>{const t=ce("TabsPanel",null,e),{children:r,className:a,value:n,classNames:i,styles:s,style:b,mod:m,keepMounted:g,...h}=t,f=hr(),S=ht(),x=S.value===n,d=S.keepMounted||g,v=d&&f!=="test"?_.jsx(Z.Activity,{mode:x?"visible":"hidden",children:r}):d||x?r:null;return _.jsx(pe,{...S.getStyles("panel",{className:a,classNames:i,styles:s,style:[b,x?void 0:{display:"none"}],props:t}),mod:[{orientation:S.orientation},m],role:"tabpanel",id:S.getPanelId(n),"aria-labelledby":S.getTabId(n),...h,children:v})});bt.classes=Oe;bt.displayName="@mantine/core/TabsPanel";const yt=be(e=>{const t=ce("TabsTab",null,e),{className:r,children:a,rightSection:n,leftSection:i,value:s,onClick:b,onKeyDown:m,disabled:g,color:h,style:f,classNames:S,styles:x,vars:d,mod:v,tabIndex:C,...N}=t,M=pr(),{dir:P}=xr(),V=ht(),O=s===V.value,te=o(T=>{V.onChange(V.allowTabDeactivation&&s===V.value?null:s),b?.(T)},"activateTab"),H={classNames:S,styles:x,props:t};return _.jsxs(je,{...V.getStyles("tab",{className:r,style:f,variant:V.variant,...H}),disabled:g,unstyled:V.unstyled,variant:V.variant,mod:[{active:O,disabled:g,orientation:V.orientation,inverted:V.inverted,placement:V.orientation==="vertical"&&V.placement},v],role:"tab",id:V.getTabId(s),"aria-selected":O,tabIndex:C!==void 0?C:O||V.value===null?0:-1,"aria-controls":V.getPanelId(s),onClick:te,__vars:{"--tabs-color":h?lt(h,M):void 0},onKeyDown:kt({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:V.activateTabWithKeyboard,loop:V.loop,orientation:V.orientation||"horizontal",dir:P,onKeyDown:m}),...N,children:[i&&_.jsx("span",{...V.getStyles("tabSection",H),"data-position":"left",children:i}),a&&_.jsx("span",{...V.getStyles("tabLabel",H),children:a}),n&&_.jsx("span",{...V.getStyles("tabSection",H),"data-position":"right",children:n})]})});yt.classes=Oe;yt.displayName="@mantine/core/TabsTab";const Et="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",nn={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},rr=He((e,{radius:t,color:r,autoContrast:a})=>({root:{"--tabs-radius":Mt(t),"--tabs-color":lt(r,e),"--tabs-text-color":yr(a,e)?br({color:r,theme:e,autoContrast:a}):void 0}})),Ae=be(e=>{const t=ce("Tabs",nn,e),{defaultValue:r,value:a,onChange:n,orientation:i,children:s,loop:b,id:m,activateTabWithKeyboard:g,allowTabDeactivation:h,variant:f,color:S,radius:x,inverted:d,placement:v,keepMounted:C,classNames:N,styles:M,unstyled:P,className:V,style:O,vars:te,autoContrast:H,mod:T,attributes:z,...re}=t,$=jt(m),[L,Y]=st({value:a,defaultValue:r,finalValue:null,onChange:n}),ae=Ge({name:"Tabs",props:t,classes:Oe,className:V,style:O,classNames:N,styles:M,unstyled:P,attributes:z,vars:te,varsResolver:rr});return _.jsx(rn,{value:{placement:v,value:L,orientation:i,id:$,loop:b,activateTabWithKeyboard:g,getTabId:Ze(`${$}-tab`,Et),getPanelId:Ze(`${$}-panel`,Et),onChange:Y,allowTabDeactivation:h,variant:f,color:S,radius:x,inverted:d,keepMounted:C,unstyled:P,getStyles:ae},children:_.jsx(pe,{id:$,variant:f,mod:[{orientation:i,inverted:i==="horizontal"&&d,placement:i==="vertical"&&v},T],...ae("root"),...re,children:s})})});Ae.classes=Oe;Ae.varsResolver=rr;Ae.displayName="@mantine/core/Tabs";Ae.Tab=yt;Ae.Panel=bt;Ae.List=pt;const an=[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],un=Sr("outline","alert-triangle","AlertTriangle",an);export{xe as A,vt as B,un as I,Hr as N,Ae as T,ct as a,dt as b,ft as c,gt as d,pt as e,bt as f,yt as g,Ze as h,Kt as i,ht as j,ut as u};
//# sourceMappingURL=IconAlertTriangle-1gFtSaOu.js.map