@kwantis-id3/frontend-library 1.0.0-rc.23 → 1.0.0-rc.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import{jsx as e,jsxs as t,Fragment as n}from"@emotion/react/jsx-runtime";import*as i from"react";import r,{useState as o,useEffect as a,createContext as l,useMemo as c,useContext as s,useRef as u,forwardRef as d,useCallback as g,useLayoutEffect as p,Component as b,Fragment as h}from"react";import{ThemeProvider as m,keyframes as f,jsx as v,css as I,createElement as C}from"@emotion/react";import x from"@emotion/styled";import{createPortal as y}from"react-dom";import{Icon as A}from"@iconify/react";import{useReactTable as G,getCoreRowModel as w,getFilteredRowModel as B,getSortedRowModel as V,getFacetedRowModel as R,getFacetedUniqueValues as X,getFacetedMinMaxValues as M,flexRender as T}from"@tanstack/react-table";function Z(){const e=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",[t,n]=o(e);return a((()=>{if(window.matchMedia){const t=window.matchMedia("(prefers-color-scheme: dark)"),i=()=>n(e);return t.addEventListener("change",i),()=>t.removeEventListener("change",i)}}),[]),t}const W={red:{50:"#FEEBF2",100:"#FED7E5",200:"#FDABC9",300:"#FB83AF",400:"#FA5692",500:"#F92C76",600:"#E40658",700:"#AE0543",800:"#72032C",900:"#3C0217",950:"#1E010B"},orange:{50:"#FEF4EB",100:"#FEE9D7",200:"#FDD0AB",300:"#FBB983",400:"#FAA056",500:"#F9882C",600:"#E46A06",700:"#AE5105",800:"#723503",900:"#3C1C02",950:"#1E0E01"},yellow:{50:"#FEFBEB",100:"#FEF7D7",200:"#FDEFAB",300:"#FBE783",400:"#FADF56",500:"#F9D82C",600:"#F9D82C",700:"#E4BF06",800:"#726003",900:"#3C3202",950:"#1E1901"},green:{50:"#EDF7EF",100:"#E0F1E4",200:"#C6E9C5",300:"#9CD4A9",400:"#79C58A",500:"#55B86A",600:"#439655",700:"#337241",800:"#224C2A",900:"#122817",950:"#08120A"},blue:{50:"#E8F6FC",100:"#D6EEFA",200:"#ADDDF5",300:"#85CCF0",400:"#57B9EA",500:"#30A9E5",600:"#30A9E5",700:"#2488c3",800:"#0D4764",900:"#062332",950:"#031017"},darkBlue:{50:"#EAEEF1",100:"#D4DDE3",200:"#A9BCC6",300:"#7E9AAA",400:"#7E9AAA",500:"#3D515C",600:"#31414A",700:"#152733",800:"#182025",900:"#0C1012",950:"#060809"},purple:{50:"#F4F0FB",100:"#E5DBF5",200:"#CCB7EB",300:"#B293E1",400:"#996FD7",500:"#804BCD",600:"#6431B0",700:"#4B2584",800:"#321858",900:"#190C2C",950:"#0B0614"},gray:{50:"#fbfbfb",100:"#f6f6f6",200:"#f2f2f2",300:"#e8e8e8",400:"#c6c6c6",500:"#a8a8a8",600:"#7e7e7e",700:"#6a6a6a",800:"#4a4a4a",900:"#282828",950:"#121212"}},F={background:{main:"#EEF5F8",radialGradient:"#DBF3FF"},primary:{main:W.blue[700],variant:W.blue[500],contrast:"#000"},surface:{main:"#fff",variant:W.gray[200],contrast:"#000"},border:{main:W.gray[500],variant:W.blue[400]},tag:{default:{main:"#d1d1d1",text:"#1c1c1c"},paper:{main:W.gray[300],text:"#000"},warm:{main:W.orange[200],text:W.orange[800]},cold:{main:W.purple[200],text:W.purple[700]}},indicator:{main:W.blue[600],mainFill:W.blue[200],success:W.green[500],successFill:W.green[200],warning:W.yellow[500],warningFill:W.yellow[100],error:W.red[500],errorFill:W.red[200],neutral:W.gray[600],netrualFill:W.gray[200]},success:{main:W.green[500],variant:W.green[400],contrast:"#000"},warning:{main:W.yellow[500],variant:W.yellow[400],contrast:"#000"},error:{main:W.red[500],variant:W.red[400],contrast:"#fff"}},k={background:{main:"#052130",radialGradient:"#E0E0E029"},primary:{main:W.blue[500],variant:W.blue[700],contrast:"#000"},surface:{main:W.darkBlue[600],variant:W.darkBlue[500],contrast:"#fff"},border:{main:W.gray[100],variant:W.darkBlue[400]},tag:{default:{main:W.darkBlue[500],text:"#fff"},paper:{main:"#fff",text:"#000"},warm:{main:W.orange[200],text:W.orange[800]},cold:{main:W.purple[200],text:W.purple[700]}},indicator:{main:W.blue[600],mainFill:W.blue[200],success:W.green[500],successFill:W.green[200],warning:W.yellow[500],warningFill:W.yellow[100],error:W.red[500],errorFill:W.red[200],neutral:W.gray[600],netrualFill:W.gray[200]},success:{main:W.green[500],variant:W.green[400],contrast:"#000"},warning:{main:W.yellow[500],variant:W.yellow[400],contrast:"#000"},error:{main:W.red[500],variant:W.red[400],contrast:"#fff"}},P=l(null),H=({palettes:t={light:F,dark:k},defaultMode:n="system",children:i})=>{const[r,a]=o(n),l=Z(),s=c((()=>({light:{...F,...t?.light},dark:{...k,...t?.dark}})),[t]),u=c((()=>"system"===r?"dark"===l?"dark":"light":r),[r,l]),d=c((()=>{switch(r){case"light":return s.light;case"dark":return s.dark;default:return"dark"===l?s.dark:s.light}}),[s,r,l]);return e(P.Provider,{value:{activePalette:d,commonColors:W,mode:r,displayedMode:u,setMode:a},children:e(m,{theme:{activePalette:d,commonColors:W,mode:r,displayedMode:u},children:i})})},N=()=>{const e=s(P);if(null===e)throw new Error("useThemeContext must be used within a ThemeContextProvider");return e};function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}var S=/^\s+/,D=/\s+$/;function E(e,t){if(t=t||{},(e=e||"")instanceof E)return e;if(!(this instanceof E))return new E(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,i=null,r=null,o=null,a=!1,l=!1;"string"==typeof e&&(e=function(e){e=e.replace(S,"").replace(D,"").toLowerCase();var t,n=!1;if(oe[e])e=oe[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=ve.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=ve.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=ve.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=ve.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=ve.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=ve.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=ve.hex8.exec(e))return{r:ue(t[1]),g:ue(t[2]),b:ue(t[3]),a:be(t[4]),format:n?"name":"hex8"};if(t=ve.hex6.exec(e))return{r:ue(t[1]),g:ue(t[2]),b:ue(t[3]),format:n?"name":"hex"};if(t=ve.hex4.exec(e))return{r:ue(t[1]+""+t[1]),g:ue(t[2]+""+t[2]),b:ue(t[3]+""+t[3]),a:be(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=ve.hex3.exec(e))return{r:ue(t[1]+""+t[1]),g:ue(t[2]+""+t[2]),b:ue(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==O(e)&&(Ie(e.r)&&Ie(e.g)&&Ie(e.b)?(c=e.r,s=e.g,u=e.b,t={r:255*ce(c,255),g:255*ce(s,255),b:255*ce(u,255)},a=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):Ie(e.h)&&Ie(e.s)&&Ie(e.v)?(i=ge(e.s),r=ge(e.v),t=function(e,t,n){e=6*ce(e,360),t=ce(t,100),n=ce(n,100);var i=Math.floor(e),r=e-i,o=n*(1-t),a=n*(1-r*t),l=n*(1-(1-r)*t),c=i%6,s=[n,a,o,o,l,n][c],u=[l,n,n,a,o,o][c],d=[o,o,l,n,n,a][c];return{r:255*s,g:255*u,b:255*d}}(e.h,i,r),a=!0,l="hsv"):Ie(e.h)&&Ie(e.s)&&Ie(e.l)&&(i=ge(e.s),o=ge(e.l),t=function(e,t,n){var i,r,o;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=ce(e,360),t=ce(t,100),n=ce(n,100),0===t)i=r=o=n;else{var l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=a(c,l,e+1/3),r=a(c,l,e),o=a(c,l,e-1/3)}return{r:255*i,g:255*r,b:255*o}}(e.h,i,o),a=!0,l="hsl"),e.hasOwnProperty("a")&&(n=e.a));var c,s,u;return n=le(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function Y(e,t,n){e=ce(e,255),t=ce(t,255),n=ce(n,255);var i,r,o=Math.max(e,t,n),a=Math.min(e,t,n),l=(o+a)/2;if(o==a)i=r=0;else{var c=o-a;switch(r=l>.5?c/(2-o-a):c/(o+a),o){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:r,l:l}}function L(e,t,n){e=ce(e,255),t=ce(t,255),n=ce(n,255);var i,r,o=Math.max(e,t,n),a=Math.min(e,t,n),l=o,c=o-a;if(r=0===o?0:c/o,o==a)i=0;else{switch(o){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:r,v:l}}function J(e,t,n,i){var r=[de(Math.round(e).toString(16)),de(Math.round(t).toString(16)),de(Math.round(n).toString(16))];return i&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function z(e,t,n,i){return[de(pe(i)),de(Math.round(e).toString(16)),de(Math.round(t).toString(16)),de(Math.round(n).toString(16))].join("")}function j(e,t){t=0===t?0:t||10;var n=E(e).toHsl();return n.s-=t/100,n.s=se(n.s),E(n)}function $(e,t){t=0===t?0:t||10;var n=E(e).toHsl();return n.s+=t/100,n.s=se(n.s),E(n)}function U(e){return E(e).desaturate(100)}function Q(e,t){t=0===t?0:t||10;var n=E(e).toHsl();return n.l+=t/100,n.l=se(n.l),E(n)}function _(e,t){t=0===t?0:t||10;var n=E(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),E(n)}function K(e,t){t=0===t?0:t||10;var n=E(e).toHsl();return n.l-=t/100,n.l=se(n.l),E(n)}function q(e,t){var n=E(e).toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,E(n)}function ee(e){var t=E(e).toHsl();return t.h=(t.h+180)%360,E(t)}function te(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=E(e).toHsl(),i=[E(e)],r=360/t,o=1;o<t;o++)i.push(E({h:(n.h+o*r)%360,s:n.s,l:n.l}));return i}function ne(e){var t=E(e).toHsl(),n=t.h;return[E(e),E({h:(n+72)%360,s:t.s,l:t.l}),E({h:(n+216)%360,s:t.s,l:t.l})]}function ie(e,t,n){t=t||6,n=n||30;var i=E(e).toHsl(),r=360/n,o=[E(e)];for(i.h=(i.h-(r*t>>1)+720)%360;--t;)i.h=(i.h+r)%360,o.push(E(i));return o}function re(e,t){t=t||6;for(var n=E(e).toHsv(),i=n.h,r=n.s,o=n.v,a=[],l=1/t;t--;)a.push(E({h:i,s:r,v:o})),o=(o+l)%1;return a}E.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,i=this.toRgb();return e=i.r/255,t=i.g/255,n=i.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=le(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=L(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=L(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+i+"%)":"hsva("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=Y(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Y(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+i+"%)":"hsla("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return J(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,i,r){var o=[de(Math.round(e).toString(16)),de(Math.round(t).toString(16)),de(Math.round(n).toString(16)),de(pe(i))];if(r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*ce(this._r,255))+"%",g:Math.round(100*ce(this._g,255))+"%",b:Math.round(100*ce(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*ce(this._r,255))+"%, "+Math.round(100*ce(this._g,255))+"%, "+Math.round(100*ce(this._b,255))+"%)":"rgba("+Math.round(100*ce(this._r,255))+"%, "+Math.round(100*ce(this._g,255))+"%, "+Math.round(100*ce(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(ae[J(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+z(this._r,this._g,this._b,this._a),n=t,i=this._gradientType?"GradientType = 1, ":"";if(e){var r=E(e);n="#"+z(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,i=this._a<1&&this._a>=0;return t||!i||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return E(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Q,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(K,arguments)},desaturate:function(){return this._applyModification(j,arguments)},saturate:function(){return this._applyModification($,arguments)},greyscale:function(){return this._applyModification(U,arguments)},spin:function(){return this._applyModification(q,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(ie,arguments)},complement:function(){return this._applyCombination(ee,arguments)},monochromatic:function(){return this._applyCombination(re,arguments)},splitcomplement:function(){return this._applyCombination(ne,arguments)},triad:function(){return this._applyCombination(te,[3])},tetrad:function(){return this._applyCombination(te,[4])}},E.fromRatio=function(e,t){if("object"==O(e)){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]="a"===i?e[i]:ge(e[i]));e=n}return E(e,t)},E.equals=function(e,t){return!(!e||!t)&&E(e).toRgbString()==E(t).toRgbString()},E.random=function(){return E.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},E.mix=function(e,t,n){n=0===n?0:n||50;var i=E(e).toRgb(),r=E(t).toRgb(),o=n/100;return E({r:(r.r-i.r)*o+i.r,g:(r.g-i.g)*o+i.g,b:(r.b-i.b)*o+i.b,a:(r.a-i.a)*o+i.a})},E.readability=function(e,t){var n=E(e),i=E(t);return(Math.max(n.getLuminance(),i.getLuminance())+.05)/(Math.min(n.getLuminance(),i.getLuminance())+.05)},E.isReadable=function(e,t,n){var i,r,o=E.readability(e,t);switch(r=!1,(i=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+i.size){case"AAsmall":case"AAAlarge":r=o>=4.5;break;case"AAlarge":r=o>=3;break;case"AAAsmall":r=o>=7}return r},E.mostReadable=function(e,t,n){var i,r,o,a,l=null,c=0;r=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var s=0;s<t.length;s++)(i=E.readability(e,t[s]))>c&&(c=i,l=E(t[s]));return E.isReadable(e,l,{level:o,size:a})||!r?l:(n.includeFallbackColors=!1,E.mostReadable(e,["#fff","#000"],n))};var oe=E.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ae=E.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(oe);function le(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ce(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function se(e){return Math.min(1,Math.max(0,e))}function ue(e){return parseInt(e,16)}function de(e){return 1==e.length?"0"+e:""+e}function ge(e){return e<=1&&(e=100*e+"%"),e}function pe(e){return Math.round(255*parseFloat(e)).toString(16)}function be(e){return ue(e)/255}var he,me,fe,ve=(me="[\\s|\\(]+("+(he="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+he+")[,|\\s]+("+he+")\\s*\\)?",fe="[\\s|\\(]+("+he+")[,|\\s]+("+he+")[,|\\s]+("+he+")[,|\\s]+("+he+")\\s*\\)?",{CSS_UNIT:new RegExp(he),rgb:new RegExp("rgb"+me),rgba:new RegExp("rgba"+fe),hsl:new RegExp("hsl"+me),hsla:new RegExp("hsla"+fe),hsv:new RegExp("hsv"+me),hsva:new RegExp("hsva"+fe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Ie(e){return!!ve.CSS_UNIT.exec(e)}const Ce=e=>E.mostReadable(e,["#000","#fff"]).toHexString(),xe=(e,t=20)=>E(e).darken(t).toHexString(),ye=(e,t=20)=>E(e).lighten(t).toHexString(),Ae=e=>E(e).isDark()?ye(e,10):xe(e,10),Ge=e=>E(e).isDark()?ye(e,15):xe(e,15),we={shouldForwardProp:e=>!e.startsWith("$")},Be=e=>{const[t,n]=o(window.matchMedia(`(max-width: ${e??768}px)`).matches);return a((()=>{const t=()=>{n(window.matchMedia(`(max-width: ${e??768}px)`).matches)};return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)}),[e]),t},Ve=x("button",we)`
1
+ import{jsx as e,jsxs as t,Fragment as n}from"@emotion/react/jsx-runtime";import*as i from"react";import r,{useState as o,useEffect as a,createContext as l,useMemo as c,useContext as s,useRef as u,forwardRef as d,useCallback as g,useLayoutEffect as p,Component as b,Fragment as h}from"react";import{ThemeProvider as m,keyframes as f,jsx as v,css as I,createElement as C}from"@emotion/react";import x from"@emotion/styled";import{createPortal as y}from"react-dom";import{Icon as A}from"@iconify/react";import{useReactTable as G,getCoreRowModel as w,getFilteredRowModel as B,getSortedRowModel as V,getFacetedRowModel as R,getFacetedUniqueValues as X,getFacetedMinMaxValues as M,flexRender as T}from"@tanstack/react-table";function Z(){const e=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",[t,n]=o(e);return a((()=>{if(window.matchMedia){const t=window.matchMedia("(prefers-color-scheme: dark)"),i=()=>n(e);return t.addEventListener("change",i),()=>t.removeEventListener("change",i)}}),[]),t}const W={red:{50:"#FEEBF2",100:"#FED7E5",200:"#FDABC9",300:"#FB83AF",400:"#FA5692",500:"#F92C76",600:"#E40658",700:"#AE0543",800:"#72032C",900:"#3C0217",950:"#1E010B"},orange:{50:"#FEF4EB",100:"#FEE9D7",200:"#FDD0AB",300:"#FBB983",400:"#FAA056",500:"#F9882C",600:"#E46A06",700:"#AE5105",800:"#723503",900:"#3C1C02",950:"#1E0E01"},yellow:{50:"#FEFBEB",100:"#FEF7D7",200:"#FDEFAB",300:"#FBE783",400:"#FADF56",500:"#F9D82C",600:"#F9D82C",700:"#E4BF06",800:"#726003",900:"#3C3202",950:"#1E1901"},green:{50:"#EDF7EF",100:"#E0F1E4",200:"#C6E9C5",300:"#9CD4A9",400:"#79C58A",500:"#55B86A",600:"#439655",700:"#337241",800:"#224C2A",900:"#122817",950:"#08120A"},blue:{50:"#E8F6FC",100:"#D6EEFA",200:"#ADDDF5",300:"#85CCF0",400:"#57B9EA",500:"#30A9E5",600:"#30A9E5",700:"#2488c3",800:"#0D4764",900:"#062332",950:"#031017"},darkBlue:{50:"#EAEEF1",100:"#D4DDE3",200:"#A9BCC6",300:"#7E9AAA",400:"#7E9AAA",500:"#3D515C",600:"#31414A",700:"#152733",800:"#182025",900:"#0C1012",950:"#060809"},purple:{50:"#F4F0FB",100:"#E5DBF5",200:"#CCB7EB",300:"#B293E1",400:"#996FD7",500:"#804BCD",600:"#6431B0",700:"#4B2584",800:"#321858",900:"#190C2C",950:"#0B0614"},gray:{50:"#fbfbfb",100:"#f6f6f6",200:"#f2f2f2",300:"#e8e8e8",400:"#c6c6c6",500:"#a8a8a8",600:"#7e7e7e",700:"#6a6a6a",800:"#4a4a4a",900:"#282828",950:"#121212"}},F={background:{main:"#EEF5F8",radialGradient:"#DBF3FF"},primary:{main:W.blue[700],variant:W.blue[500],contrast:"#000"},surface:{main:"#fff",variant:W.gray[200],contrast:"#000"},border:{main:W.gray[500],variant:W.blue[400]},tag:{default:{main:"#d1d1d1",text:"#1c1c1c"},paper:{main:W.gray[300],text:"#000"},warm:{main:W.orange[200],text:W.orange[800]},cold:{main:W.purple[200],text:W.purple[700]}},indicator:{main:W.blue[600],mainFill:W.blue[200],success:W.green[500],successFill:W.green[200],warning:W.yellow[500],warningFill:W.yellow[100],error:W.red[500],errorFill:W.red[200],neutral:W.gray[600],neutralFill:W.gray[200]},success:{main:W.green[500],variant:W.green[400],contrast:"#000"},warning:{main:W.yellow[500],variant:W.yellow[400],contrast:"#000"},error:{main:W.red[500],variant:W.red[400],contrast:"#fff"}},k={background:{main:"#052130",radialGradient:"#E0E0E029"},primary:{main:W.blue[500],variant:W.blue[700],contrast:"#000"},surface:{main:W.darkBlue[600],variant:W.darkBlue[500],contrast:"#fff"},border:{main:W.gray[100],variant:W.darkBlue[400]},tag:{default:{main:W.darkBlue[500],text:"#fff"},paper:{main:"#fff",text:"#000"},warm:{main:W.orange[200],text:W.orange[800]},cold:{main:W.purple[200],text:W.purple[700]}},indicator:{main:W.blue[600],mainFill:W.blue[200],success:W.green[500],successFill:W.green[200],warning:W.yellow[500],warningFill:W.yellow[100],error:W.red[500],errorFill:W.red[200],neutral:W.gray[600],neutralFill:W.gray[200]},success:{main:W.green[500],variant:W.green[400],contrast:"#000"},warning:{main:W.yellow[500],variant:W.yellow[400],contrast:"#000"},error:{main:W.red[500],variant:W.red[400],contrast:"#fff"}},P=l(null),H=({palettes:t={light:F,dark:k},defaultMode:n="system",children:i})=>{const[r,a]=o(n),l=Z(),s=c((()=>({light:{...F,...t?.light},dark:{...k,...t?.dark}})),[t]),u=c((()=>"system"===r?"dark"===l?"dark":"light":r),[r,l]),d=c((()=>{switch(r){case"light":return s.light;case"dark":return s.dark;default:return"dark"===l?s.dark:s.light}}),[s,r,l]);return e(P.Provider,{value:{activePalette:d,commonColors:W,mode:r,displayedMode:u,setMode:a},children:e(m,{theme:{activePalette:d,commonColors:W,mode:r,displayedMode:u},children:i})})},N=()=>{const e=s(P);if(null===e)throw new Error("useThemeContext must be used within a ThemeContextProvider");return e};function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}var S=/^\s+/,D=/\s+$/;function E(e,t){if(t=t||{},(e=e||"")instanceof E)return e;if(!(this instanceof E))return new E(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,i=null,r=null,o=null,a=!1,l=!1;"string"==typeof e&&(e=function(e){e=e.replace(S,"").replace(D,"").toLowerCase();var t,n=!1;if(oe[e])e=oe[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=ve.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=ve.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=ve.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=ve.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=ve.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=ve.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=ve.hex8.exec(e))return{r:ue(t[1]),g:ue(t[2]),b:ue(t[3]),a:be(t[4]),format:n?"name":"hex8"};if(t=ve.hex6.exec(e))return{r:ue(t[1]),g:ue(t[2]),b:ue(t[3]),format:n?"name":"hex"};if(t=ve.hex4.exec(e))return{r:ue(t[1]+""+t[1]),g:ue(t[2]+""+t[2]),b:ue(t[3]+""+t[3]),a:be(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=ve.hex3.exec(e))return{r:ue(t[1]+""+t[1]),g:ue(t[2]+""+t[2]),b:ue(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==O(e)&&(Ie(e.r)&&Ie(e.g)&&Ie(e.b)?(c=e.r,s=e.g,u=e.b,t={r:255*ce(c,255),g:255*ce(s,255),b:255*ce(u,255)},a=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):Ie(e.h)&&Ie(e.s)&&Ie(e.v)?(i=ge(e.s),r=ge(e.v),t=function(e,t,n){e=6*ce(e,360),t=ce(t,100),n=ce(n,100);var i=Math.floor(e),r=e-i,o=n*(1-t),a=n*(1-r*t),l=n*(1-(1-r)*t),c=i%6,s=[n,a,o,o,l,n][c],u=[l,n,n,a,o,o][c],d=[o,o,l,n,n,a][c];return{r:255*s,g:255*u,b:255*d}}(e.h,i,r),a=!0,l="hsv"):Ie(e.h)&&Ie(e.s)&&Ie(e.l)&&(i=ge(e.s),o=ge(e.l),t=function(e,t,n){var i,r,o;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=ce(e,360),t=ce(t,100),n=ce(n,100),0===t)i=r=o=n;else{var l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=a(c,l,e+1/3),r=a(c,l,e),o=a(c,l,e-1/3)}return{r:255*i,g:255*r,b:255*o}}(e.h,i,o),a=!0,l="hsl"),e.hasOwnProperty("a")&&(n=e.a));var c,s,u;return n=le(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function Y(e,t,n){e=ce(e,255),t=ce(t,255),n=ce(n,255);var i,r,o=Math.max(e,t,n),a=Math.min(e,t,n),l=(o+a)/2;if(o==a)i=r=0;else{var c=o-a;switch(r=l>.5?c/(2-o-a):c/(o+a),o){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:r,l:l}}function L(e,t,n){e=ce(e,255),t=ce(t,255),n=ce(n,255);var i,r,o=Math.max(e,t,n),a=Math.min(e,t,n),l=o,c=o-a;if(r=0===o?0:c/o,o==a)i=0;else{switch(o){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:r,v:l}}function J(e,t,n,i){var r=[de(Math.round(e).toString(16)),de(Math.round(t).toString(16)),de(Math.round(n).toString(16))];return i&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function z(e,t,n,i){return[de(pe(i)),de(Math.round(e).toString(16)),de(Math.round(t).toString(16)),de(Math.round(n).toString(16))].join("")}function j(e,t){t=0===t?0:t||10;var n=E(e).toHsl();return n.s-=t/100,n.s=se(n.s),E(n)}function $(e,t){t=0===t?0:t||10;var n=E(e).toHsl();return n.s+=t/100,n.s=se(n.s),E(n)}function U(e){return E(e).desaturate(100)}function Q(e,t){t=0===t?0:t||10;var n=E(e).toHsl();return n.l+=t/100,n.l=se(n.l),E(n)}function _(e,t){t=0===t?0:t||10;var n=E(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),E(n)}function K(e,t){t=0===t?0:t||10;var n=E(e).toHsl();return n.l-=t/100,n.l=se(n.l),E(n)}function q(e,t){var n=E(e).toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,E(n)}function ee(e){var t=E(e).toHsl();return t.h=(t.h+180)%360,E(t)}function te(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=E(e).toHsl(),i=[E(e)],r=360/t,o=1;o<t;o++)i.push(E({h:(n.h+o*r)%360,s:n.s,l:n.l}));return i}function ne(e){var t=E(e).toHsl(),n=t.h;return[E(e),E({h:(n+72)%360,s:t.s,l:t.l}),E({h:(n+216)%360,s:t.s,l:t.l})]}function ie(e,t,n){t=t||6,n=n||30;var i=E(e).toHsl(),r=360/n,o=[E(e)];for(i.h=(i.h-(r*t>>1)+720)%360;--t;)i.h=(i.h+r)%360,o.push(E(i));return o}function re(e,t){t=t||6;for(var n=E(e).toHsv(),i=n.h,r=n.s,o=n.v,a=[],l=1/t;t--;)a.push(E({h:i,s:r,v:o})),o=(o+l)%1;return a}E.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,i=this.toRgb();return e=i.r/255,t=i.g/255,n=i.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=le(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=L(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=L(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+i+"%)":"hsva("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=Y(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Y(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+i+"%)":"hsla("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return J(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,i,r){var o=[de(Math.round(e).toString(16)),de(Math.round(t).toString(16)),de(Math.round(n).toString(16)),de(pe(i))];if(r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*ce(this._r,255))+"%",g:Math.round(100*ce(this._g,255))+"%",b:Math.round(100*ce(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*ce(this._r,255))+"%, "+Math.round(100*ce(this._g,255))+"%, "+Math.round(100*ce(this._b,255))+"%)":"rgba("+Math.round(100*ce(this._r,255))+"%, "+Math.round(100*ce(this._g,255))+"%, "+Math.round(100*ce(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(ae[J(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+z(this._r,this._g,this._b,this._a),n=t,i=this._gradientType?"GradientType = 1, ":"";if(e){var r=E(e);n="#"+z(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,i=this._a<1&&this._a>=0;return t||!i||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return E(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Q,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(K,arguments)},desaturate:function(){return this._applyModification(j,arguments)},saturate:function(){return this._applyModification($,arguments)},greyscale:function(){return this._applyModification(U,arguments)},spin:function(){return this._applyModification(q,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(ie,arguments)},complement:function(){return this._applyCombination(ee,arguments)},monochromatic:function(){return this._applyCombination(re,arguments)},splitcomplement:function(){return this._applyCombination(ne,arguments)},triad:function(){return this._applyCombination(te,[3])},tetrad:function(){return this._applyCombination(te,[4])}},E.fromRatio=function(e,t){if("object"==O(e)){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]="a"===i?e[i]:ge(e[i]));e=n}return E(e,t)},E.equals=function(e,t){return!(!e||!t)&&E(e).toRgbString()==E(t).toRgbString()},E.random=function(){return E.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},E.mix=function(e,t,n){n=0===n?0:n||50;var i=E(e).toRgb(),r=E(t).toRgb(),o=n/100;return E({r:(r.r-i.r)*o+i.r,g:(r.g-i.g)*o+i.g,b:(r.b-i.b)*o+i.b,a:(r.a-i.a)*o+i.a})},E.readability=function(e,t){var n=E(e),i=E(t);return(Math.max(n.getLuminance(),i.getLuminance())+.05)/(Math.min(n.getLuminance(),i.getLuminance())+.05)},E.isReadable=function(e,t,n){var i,r,o=E.readability(e,t);switch(r=!1,(i=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+i.size){case"AAsmall":case"AAAlarge":r=o>=4.5;break;case"AAlarge":r=o>=3;break;case"AAAsmall":r=o>=7}return r},E.mostReadable=function(e,t,n){var i,r,o,a,l=null,c=0;r=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var s=0;s<t.length;s++)(i=E.readability(e,t[s]))>c&&(c=i,l=E(t[s]));return E.isReadable(e,l,{level:o,size:a})||!r?l:(n.includeFallbackColors=!1,E.mostReadable(e,["#fff","#000"],n))};var oe=E.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ae=E.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(oe);function le(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ce(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function se(e){return Math.min(1,Math.max(0,e))}function ue(e){return parseInt(e,16)}function de(e){return 1==e.length?"0"+e:""+e}function ge(e){return e<=1&&(e=100*e+"%"),e}function pe(e){return Math.round(255*parseFloat(e)).toString(16)}function be(e){return ue(e)/255}var he,me,fe,ve=(me="[\\s|\\(]+("+(he="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+he+")[,|\\s]+("+he+")\\s*\\)?",fe="[\\s|\\(]+("+he+")[,|\\s]+("+he+")[,|\\s]+("+he+")[,|\\s]+("+he+")\\s*\\)?",{CSS_UNIT:new RegExp(he),rgb:new RegExp("rgb"+me),rgba:new RegExp("rgba"+fe),hsl:new RegExp("hsl"+me),hsla:new RegExp("hsla"+fe),hsv:new RegExp("hsv"+me),hsva:new RegExp("hsva"+fe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Ie(e){return!!ve.CSS_UNIT.exec(e)}const Ce=e=>E.mostReadable(e,["#000","#fff"]).toHexString(),xe=(e,t=20)=>E(e).darken(t).toHexString(),ye=(e,t=20)=>E(e).lighten(t).toHexString(),Ae=e=>E(e).isDark()?ye(e,10):xe(e,10),Ge=e=>E(e).isDark()?ye(e,15):xe(e,15),we={shouldForwardProp:e=>!e.startsWith("$")},Be=e=>{const[t,n]=o(window.matchMedia(`(max-width: ${e??768}px)`).matches);return a((()=>{const t=()=>{n(window.matchMedia(`(max-width: ${e??768}px)`).matches)};return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)}),[e]),t},Ve=x("button",we)`
2
2
  padding: 6px 8px;
3
3
  transition: all 0.15s ease-out;
4
4
  border-radius: 5px;
@@ -321,7 +321,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"@emotion/react/jsx-runtime";import*
321
321
  label: DialogExitButtonContainer;
322
322
  display: flex;
323
323
  justify-content: flex-end;
324
- `,Ir=({children:n,isOpen:i,onOpen:r,onClose:o,width:l,height:c,sx:s})=>{const d=N(),g=u(!0),p=u(null);return a((()=>{const e=p.current;e&&(i?(e.showModal(),r&&r()):e.close()),g.current=!1}),[i,o,r]),t(fr,{ref:p,onCancel:e=>{e.preventDefault(),o()},$height:c,$width:l,$bgColor:d.activePalette.surface.main,$textColor:d.activePalette.surface.contrast,style:s,children:[e(vr,{children:e(Te,{"data-testid":"close-modal",onClick:o,sx:{padding:"0px",boxShadow:"none"},variant:"text",children:e(A,{icon:"material-symbols:close-rounded",width:20,height:20})})}),n]})},Cr={live:n=>{const i=N();return t("svg",{width:n.size??24,height:n.size??24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n.onClick,children:[e("title",{children:n.title}),e("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:n.outerColor??i.activePalette.indicator.main}),e("path",{d:"M12.6953 5L5.69531 13.4H11.9953L11.2953 19L18.2953 10.6H11.9953L12.6953 5Z",fill:n.innerColor??i.activePalette.indicator.mainFill})]})},success:n=>{const i=N();return t("svg",{width:n.size??24,height:n.size??24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n.onClick,children:[e("title",{children:n.title}),e("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:n.outerColor??i.activePalette.indicator.success}),e("path",{d:"M16 9.25L10.5 14.75L8 12.25",stroke:n.innerColor??i.activePalette.indicator.successFill,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},warning:n=>{const i=N();return t("svg",{width:n.size??24,height:n.size??24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n.onClick,children:[e("title",{children:n.title}),e("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:n.outerColor??i.activePalette.indicator.warning}),t("g",{stroke:n.innerColor??i.activePalette.indicator.warningFill,strokeWidth:"1",transform:"scale(0.8) translate(3, 3)",children:[e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M13.253 5.98L12 13.5l-1.253-7.52a1.27 1.27 0 1 1 2.506 0"}),e("circle",{cx:"12",cy:"19",r:"1",strokeWidth:"2"})]})]})},error:n=>{const i=N();return t("svg",{width:n.size??24,height:n.size??24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n.onClick,children:[e("title",{children:n.title}),e("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:n.outerColor??i.activePalette.indicator.error}),e("path",{fill:n.innerColor??i.activePalette.indicator.errorFill,transform:"scale(0.9) translate(5.8, 5.8)",d:"M3.64 2.27L7.5 6.13l3.84-3.84A.92.92 0 0 1 12 2a1 1 0 0 1 1 1a.9.9 0 0 1-.27.66L8.84 7.5l3.89 3.89A.9.9 0 0 1 13 12a1 1 0 0 1-1 1a.92.92 0 0 1-.69-.27L7.5 8.87l-3.85 3.85A.92.92 0 0 1 3 13a1 1 0 0 1-1-1a.9.9 0 0 1 .27-.66L6.16 7.5L2.27 3.61A.9.9 0 0 1 2 3a1 1 0 0 1 1-1c.24.003.47.1.64.27"})]})},neutral:n=>{const i=N();return t("svg",{width:n.size??24,height:n.size??24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n.onClick,children:[e("title",{children:n.title}),e("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:n.outerColor??i.activePalette.indicator.neutral}),e("path",{fill:n.innerColor??i.activePalette.indicator.netrualFill,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M6 12h12"})]})}},xr=t=>{const n=c((()=>Cr[t.variant]),[t.variant]);return e(n,{...t})},yr=x("span",we)`
324
+ `,Ir=({children:n,isOpen:i,onOpen:r,onClose:o,width:l,height:c,sx:s})=>{const d=N(),g=u(!0),p=u(null);return a((()=>{const e=p.current;e&&(i?(e.showModal(),r&&r()):e.close()),g.current=!1}),[i,o,r]),t(fr,{ref:p,onCancel:e=>{e.preventDefault(),o()},$height:c,$width:l,$bgColor:d.activePalette.surface.main,$textColor:d.activePalette.surface.contrast,style:s,children:[e(vr,{children:e(Te,{"data-testid":"close-modal",onClick:o,sx:{padding:"0px",boxShadow:"none"},variant:"text",children:e(A,{icon:"material-symbols:close-rounded",width:20,height:20})})}),n]})},Cr={live:n=>{const i=N();return t("svg",{width:n.size??24,height:n.size??24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n.onClick,children:[e("title",{children:n.title}),e("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:n.outerColor??i.activePalette.indicator.main}),e("path",{d:"M12.6953 5L5.69531 13.4H11.9953L11.2953 19L18.2953 10.6H11.9953L12.6953 5Z",fill:n.innerColor??i.activePalette.indicator.mainFill})]})},success:n=>{const i=N();return t("svg",{width:n.size??24,height:n.size??24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n.onClick,children:[e("title",{children:n.title}),e("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:n.outerColor??i.activePalette.indicator.success}),e("path",{d:"M16 9.25L10.5 14.75L8 12.25",stroke:n.innerColor??i.activePalette.indicator.successFill,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},warning:n=>{const i=N();return t("svg",{width:n.size??24,height:n.size??24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n.onClick,children:[e("title",{children:n.title}),e("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:n.outerColor??i.activePalette.indicator.warning}),t("g",{stroke:n.innerColor??i.activePalette.indicator.warningFill,strokeWidth:"1",transform:"scale(0.8) translate(3, 3)",children:[e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M13.253 5.98L12 13.5l-1.253-7.52a1.27 1.27 0 1 1 2.506 0"}),e("circle",{cx:"12",cy:"19",r:"1",strokeWidth:"2"})]})]})},error:n=>{const i=N();return t("svg",{width:n.size??24,height:n.size??24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n.onClick,children:[e("title",{children:n.title}),e("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:n.outerColor??i.activePalette.indicator.error}),e("path",{fill:n.innerColor??i.activePalette.indicator.errorFill,transform:"scale(0.9) translate(5.8, 5.8)",d:"M3.64 2.27L7.5 6.13l3.84-3.84A.92.92 0 0 1 12 2a1 1 0 0 1 1 1a.9.9 0 0 1-.27.66L8.84 7.5l3.89 3.89A.9.9 0 0 1 13 12a1 1 0 0 1-1 1a.92.92 0 0 1-.69-.27L7.5 8.87l-3.85 3.85A.92.92 0 0 1 3 13a1 1 0 0 1-1-1a.9.9 0 0 1 .27-.66L6.16 7.5L2.27 3.61A.9.9 0 0 1 2 3a1 1 0 0 1 1-1c.24.003.47.1.64.27"})]})},neutral:n=>{const i=N();return t("svg",{width:n.size??24,height:n.size??24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n.onClick,children:[e("title",{children:n.title}),e("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:n.outerColor??i.activePalette.indicator.neutral}),e("path",{fill:n.innerColor??i.activePalette.indicator.neutralFill,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M6 12h12"})]})}},xr=t=>{const n=c((()=>Cr[t.variant]),[t.variant]);return e(n,{...t})},yr=x("span",we)`
325
325
  padding: 5px 6px 5px 6px;
326
326
  border-radius: 5px;
327
327
  font-size: 11px;