@andreyfedkovich/cozy-ui 0.1.0 → 0.1.2

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.
@@ -1,48 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react"),u=require("react/jsx-runtime"),hn=require("react-dom");function Uo(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const a=Uo(_),Go=Uo(hn),Si=e=>a.createElement("svg",{width:17,height:17,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M0.5 8.50634L8.5 0.5L16.5 8.49975",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M2.5 6.58643V16.4994H14.5V6.56641",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),a.createElement("path",{d:"M6.5 16.4998V10.5H10.5",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),Ri=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.09237 4.75028C8.31363 4.75028 8.49345 4.92792 8.49345 5.1465V8.80763C8.49345 9.02622 8.31363 9.2032 8.09237 9.2032H5.6565C5.43524 9.2032 5.2561 9.02622 5.2561 8.80763C5.2561 8.58839 5.43524 8.41141 5.6565 8.41141H7.6913V5.1465C7.6913 4.92792 7.87111 4.75028 8.09237 4.75028ZM1 8C1 11.8599 4.17853 15 8.08502 15C11.4053 15 14.2442 12.7712 14.9895 9.58028C15.0397 9.36763 14.9047 9.155 14.6887 9.10547C14.4775 9.05859 14.2582 9.18933 14.2074 9.40264C13.547 12.2317 11.0296 14.2075 8.08502 14.2075C4.62038 14.2075 1.80149 11.4227 1.80149 8C1.80149 4.5766 4.62038 1.79245 8.08502 1.79245C10.5296 1.79245 12.7502 3.20962 13.7756 5.36839H11.3912C11.17 5.36839 10.9901 5.54537 10.9901 5.76396C10.9901 5.98254 11.17 6.16019 11.3912 6.16019H14.424C14.6453 6.16019 14.8244 5.98254 14.8244 5.76396V2.76849C14.8244 2.54991 14.6453 2.37226 14.424 2.37226C14.2028 2.37226 14.023 2.54991 14.023 2.76849V4.18236C12.7335 2.23226 10.5062 1 8.08502 1C4.17853 1 1 4.14009 1 8Z",fill:"currentColor"})),Li=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("g",{clipPath:"url(#clip0_27648_5774)"},a.createElement("path",{d:"M8.24567 14.0242H0.666672V0.666992H6.60323L10.5609 4.6247V9.57183",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),a.createElement("path",{d:"M6.60417 0.666992V4.6247H10.5619",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),a.createElement("path",{d:"M12.638 12.54L13.8254 13.7405L15.0127 12.54",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M9.07781 12.5403L7.89047 11.3398L6.70312 12.5403",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M12.2564 15.1521C11.7 15.4559 11.0599 15.5703 10.4328 15.4781C9.80562 15.3859 9.22551 15.092 8.78019 14.6409C8.38611 14.2414 8.11251 13.7391 7.99061 13.1914C7.8687 12.6437 7.90348 12.0728 8.09094 11.5439",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M9.45833 9.9274C10.0147 9.62358 10.6548 9.50915 11.2819 9.60138C11.9091 9.69361 12.4892 9.9875 12.9345 10.4386C13.3288 10.8379 13.6028 11.34 13.7252 11.8877C13.8477 12.4353 13.8138 13.0063 13.6272 13.5355",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_27648_5774"},a.createElement("rect",{width:16,height:16,fill:"white"})))),Ni=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("g",{clipPath:"url(#clip0_27648_5680)"},a.createElement("path",{d:"M13.9999 6.31067V3.52381H5.79479V2H0.666595V12.2264C0.666595 12.3432 0.713287 12.4551 0.796637 12.5377C0.879986 12.6202 0.993098 12.6666 1.11097 12.6666H8.35888",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),a.createElement("path",{d:"M14.2521 6L9.0879 11.1766L8 14L10.8358 12.9333L16 7.75667L14.2521 6Z",stroke:"currentColor",strokeLinejoin:"round"}),a.createElement("path",{d:"M9.33339 11.333L10.6667 12.6663",stroke:"currentColor",strokeLinejoin:"round"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_27648_5680"},a.createElement("rect",{width:16,height:16,fill:"white"})))),ji=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M5.05584 2.58008V5.33656C4.3465 5.33656 4.28125 6.22012 4.28125 6.4379C4.28125 6.65568 4.44608 7.68235 5.15853 7.68235C5.39614 8.66258 5.9937 9.51765 6.83242 10.0779",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M9.6302 10.0628C10.4691 9.50283 11.0666 8.64767 11.3039 7.66731C12.0102 7.66731 12.1751 6.65932 12.1751 6.43843C12.1751 6.21754 12.2964 5.34953 11.5933 5.33709V2.62109",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M6.37643 9.79102V10.4669C6.37643 10.9336 6.60665 11.6118 4.04309 12.1003C1.33332 12.6167 1.33333 14.6669 1.33333 14.6669H15.3333C15.3333 14.6669 15.3334 12.6603 12.4338 12.1003C9.94494 11.618 10.1005 10.9336 10.1005 10.4669V9.79102",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M4.59114 11.9824L8.32766 14.6673L12.061 12.0228",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M8.3282 3.00033L1.79167 1.60033L8.3282 0.666992L14.8615 1.60033L8.3282 3.00033Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M5.05725 3.93359L8.32711 4.40026L11.5938 3.93359",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M2.25781 1.69336V7.20001",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),Pi=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M6.9329 14H2V9.06713H6.9329V14Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M6.9329 6.60059H2V1.66765H6.9329V6.60059Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M14.3343 14H9.40144V9.06713H14.3343V14Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M14.3343 6.60059H9.40144V1.66765H14.3343V6.60059Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),Ai=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("g",{clipPath:"url(#clip0_27648_5733)"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.2984 6.64286C15.2984 10.7453 8.14844 15 8.14844 15C8.14844 15 0.998444 10.7453 0.998444 6.64286C0.998444 6.53654 0.998444 6.2315 0.998444 6.17857C0.998444 3.87061 2.7989 2 5.02032 2C6.28408 2 7.4111 2.60682 8.14755 3.55396C8.88489 2.60682 10.0124 2 11.2766 2C13.498 2 15.2984 3.87061 15.2984 6.17857C15.2984 6.23104 15.2984 6.53607 15.2984 6.64286Z",stroke:"currentColor"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_27648_5733"},a.createElement("rect",{width:16,height:16,fill:"white"})))),Mi=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("g",{clipPath:"url(#clip0_27648_5852)"},a.createElement("path",{d:"M4.81389 5.81154C4.79445 6.087 5.00199 6.32606 5.27745 6.3455C5.55291 6.36494 5.79197 6.1574 5.81141 5.88194L5.31265 5.84674L4.81389 5.81154ZM10.6346 4.74381L11.1154 4.6067V4.6067L10.6346 4.74381ZM8.27563 9.0822L7.96537 8.69011L8.27563 9.0822ZM7.09347 11.3614C7.09347 11.6376 7.31733 11.8614 7.59347 11.8614C7.86961 11.8614 8.09347 11.6376 8.09347 11.3614H7.59347H7.09347ZM5.31265 5.84674L5.81141 5.88194C5.90808 4.51228 6.8506 3.80991 7.87427 3.67837C8.94608 3.54065 9.91206 4.03342 10.1537 4.88092L10.6346 4.74381L11.1154 4.6067C10.6897 3.114 9.11102 2.51123 7.74682 2.68653C6.33448 2.868 4.94971 3.88719 4.81389 5.81154L5.31265 5.84674ZM10.6346 4.74381L10.1537 4.88092C10.2697 5.28772 10.347 5.69413 10.1318 6.24186C9.9049 6.81911 9.32895 7.61111 7.96537 8.69011L8.27563 9.0822L8.58589 9.47429C10.01 8.34742 10.7424 7.42216 11.0625 6.60764C11.3942 5.76361 11.2571 5.10376 11.1154 4.6067L10.6346 4.74381ZM8.27563 9.0822L7.96537 8.69011C7.0119 9.44458 7.09347 10.6137 7.09347 11.3614H7.59347H8.09347C8.09347 10.4547 8.08561 9.87017 8.58589 9.47429L8.27563 9.0822Z",fill:"currentColor"}),a.createElement("circle",{cx:7.66097,cy:13.1607,r:.431202,fill:"currentColor"}),a.createElement("path",{d:"M8.17085 15.3418C12.1312 15.3418 15.3418 12.1313 15.3418 8.17095C15.3418 4.21057 12.1312 1 8.17085 1C4.21047 1 1 4.21057 1 8.17095C1 12.1313 4.21047 15.3418 8.17085 15.3418Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_27648_5852"},a.createElement("rect",{width:16,height:16,fill:"white"})))),Oi=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},a.createElement("path",{fill:"none",d:"m38.46 11.54l-5.85-5.9a3.9 3.9 0 0 0-2.76-1.14h-19.5a2 2 0 0 0-1.95 2v35.1a2 2 0 0 0 1.95 2h27.3a2 2 0 0 0 2-2V14.3a3.9 3.9 0 0 0-1.19-2.76m-25.08 3.15H29.7m-16.32 7.03h21.24m-21.24 7.03h19.5m-19.5 7.03h12.68"})),Ti=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M5.26562 6.60009V3.33337C5.26562 2.71452 5.51145 2.12104 5.94904 1.68345C6.38663 1.24586 6.98015 1 7.599 1C8.21784 1 8.81132 1.24586 9.24891 1.68345C9.68651 2.12104 9.93237 2.71452 9.93237 3.33337V6.60009",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M13.2002 5.66699H2V15.0005H13.2002V5.66699Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),Ii=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("g",{clipPath:"url(#clip0_27648_5666)"},a.createElement("path",{d:"M12.3924 13.6144L11.0069 7.30241L13.701 4.60825C14.8557 3.45361 15.2406 1.91409 14.8557 1.14433C14.0859 0.75945 12.5464 1.14433 11.3918 2.29897L8.69759 4.99313L2.38557 3.60756C2.00069 3.53058 1.69278 3.68454 1.53883 3.99244L1.3079 4.37732C1.15395 4.7622 1.23093 5.14708 1.53883 5.37801L5.61856 8.07217L4.07904 10.3814H1.76976L1 11.1512L3.30928 12.6907L4.8488 15L5.61856 14.2302V11.921L7.92784 10.3814L10.622 14.4612C10.8529 14.7691 11.2378 14.846 11.6227 14.6921L12.0076 14.5381C12.3155 14.3072 12.4694 13.9993 12.3924 13.6144Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_27648_5666"},a.createElement("rect",{width:16,height:16,fill:"white"})))),Di=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("g",{clipPath:"url(#clip0_27648_5649)"},a.createElement("path",{d:"M11.7265 12.0262C9.54829 11.6097 9.54246 10.9341 9.54246 10.4973V9.8042C9.97361 9.38644 10.3133 8.88369 10.5399 8.32776C10.7665 7.77182 10.875 7.17487 10.8587 6.57475V4.478C10.8587 2.20657 9.24835 1.33301 7.80104 1.33301C6.35374 1.33301 4.74336 2.20657 4.74336 4.478V6.57475C4.72731 7.17345 4.83548 7.76895 5.06102 8.32378C5.28656 8.8786 5.62458 9.38067 6.0538 9.79837V10.4973C6.0538 10.9341 6.0538 11.6301 3.86974 12.0262C3.25845 12.135 2.69243 12.4205 2.24165 12.8475C1.79087 13.2744 1.4751 13.8241 1.33333 14.4286H14.2601C14.1154 13.826 13.7992 13.2783 13.3495 12.8519C12.8998 12.4254 12.336 12.1386 11.7265 12.0262V12.0262Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_27648_5649"},a.createElement("rect",{width:16,height:16,fill:"white"})))),$i=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("g",{clipPath:"url(#clip0_27648_5794)"},a.createElement("path",{d:"M9.12936 11.9944H1.33333C1.33333 11.9944 1.33335 10.4405 3.42691 10.0372C5.22691 9.69028 5.22975 9.14763 5.22975 8.79178V8.43298C4.77582 8.01292 4.45171 7.47165 4.29568 6.87318V6.87318C3.74708 6.87318 3.6166 5.7463 3.6166 5.58024C3.6166 5.41417 3.59592 4.73811 4.15045 4.73811C3.79164 3.31472 3.85386 2.00989 4.83837 2.00989C7.21069 0.370026 10.3629 1.8765 9.20046 4.73811C9.75795 4.73811 9.74011 5.41121 9.74011 5.58024C9.74011 5.74926 9.61273 6.87318 9.06116 6.87318C8.90437 7.4744 8.57795 8.0179 8.12101 8.43892V8.79475C8.12101 9.03791 8.05281 9.51827 9.01063 9.86522",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),a.createElement("path",{d:"M11.1147 13.3319C12.343 13.3319 13.3387 12.3361 13.3387 11.1078C13.3387 9.87953 12.343 8.88379 11.1147 8.88379C9.88636 8.88379 8.89062 9.87953 8.89062 11.1078C8.89062 12.3361 9.88636 13.3319 11.1147 13.3319Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),a.createElement("path",{d:"M12.6849 12.6797L14.6718 14.6666",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_27648_5794"},a.createElement("rect",{width:16,height:16,fill:"white"})))),Fi=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("g",{clipPath:"url(#clip0_27648_5697)"},a.createElement("path",{d:"M11.4479 1.33301H13.3353V3.22339",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M2.66681 7.55537L6.66986 3.99973L9.33659 5.3331L13.3367 1.33301",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M12.4479 14.6664V5.77734H14.2257V14.6664",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),a.createElement("path",{d:"M8.89062 14.6662V10.2246H10.6684V14.6662",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),a.createElement("path",{d:"M5.33333 14.6665V8.8916H7.11411V14.6665",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),a.createElement("path",{d:"M1.77864 14.6667V12.0029H3.55646V14.6667",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),a.createElement("path",{d:"M14.6699 14.667H1.33333",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_27648_5697"},a.createElement("rect",{width:16,height:16,fill:"white"})))),Bi=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M4.93759 11.5H1.65C1.47761 11.5 1.31233 11.4285 1.19043 11.3012C1.06853 11.1739 1 11.0014 1 10.8214V2.67857C1 2.4986 1.06853 2.32598 1.19043 2.19873C1.31233 2.07147 1.47761 2 1.65 2H13.35C13.5224 2 13.6877 2.07147 13.8096 2.19873C13.9315 2.32598 14 2.4986 14 2.67857",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),a.createElement("path",{d:"M13.9996 10.5448C14.0057 10.7866 13.9466 11.0252 13.8291 11.2326C13.7117 11.44 13.5407 11.6076 13.3365 11.7156L5.60035 14.9065C4.93136 15.2187 4.71622 14.6817 4.71622 14.2821V6.32045C4.70283 6.07729 4.75896 5.83551 4.87725 5.62665C4.99553 5.41778 5.17049 5.25154 5.37932 5.14963L12.8827 2.05555C13.3748 1.86822 13.9967 2.18353 13.9967 2.57068L13.9996 10.5448Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),a.createElement("path",{d:"M7.5 10.5C8.01283 10.5 8.42857 10.0523 8.42857 9.5C8.42857 8.94772 8.01283 8.5 7.5 8.5C6.98716 8.5 6.57143 8.94772 6.57143 9.5C6.57143 10.0523 6.98716 10.5 7.5 10.5Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),a.createElement("path",{d:"M3.32143 4.5H7.96428",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M3.32143 7H4.71428",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),zi=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},a.createElement("path",{d:"M472 96h-88V40h-32v56H160V40h-32v56H40a24.03 24.03 0 0 0-24 24v336a24.03 24.03 0 0 0 24 24h432a24.03 24.03 0 0 0 24-24V120a24.03 24.03 0 0 0-24-24m-8 352H48V128h80v40h32v-40h192v40h32v-40h80Z"}),a.createElement("path",{d:"M112 224h32v32h-32zm88 0h32v32h-32zm80 0h32v32h-32zm88 0h32v32h-32zm-256 72h32v32h-32zm88 0h32v32h-32zm80 0h32v32h-32zm88 0h32v32h-32zm-256 72h32v32h-32zm88 0h32v32h-32zm80 0h32v32h-32zm88 0h32v32h-32z"})),Wi=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},a.createElement("path",{d:"M8 7.5A1.5 1.5 0 0 1 9.5 6h12A1.5 1.5 0 0 1 23 7.5v3a1.5 1.5 0 0 1-1.5 1.5h-12A1.5 1.5 0 0 1 8 10.5zm2 .5v2h11V8zM4 5.25A3.25 3.25 0 0 1 7.25 2h16.5A3.25 3.25 0 0 1 27 5.25v21.5A3.25 3.25 0 0 1 23.75 30H7.25A3.25 3.25 0 0 1 4 26.75zM7.25 4C6.56 4 6 4.56 6 5.25v21.5c0 .69.56 1.25 1.25 1.25h16.5c.69 0 1.25-.56 1.25-1.25V5.25C25 4.56 24.44 4 23.75 4zm22 4H28v4h1.25a.75.75 0 0 0 .75-.75v-2.5a.75.75 0 0 0-.75-.75M28 14h1.25a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-.75.75H28zm1.25 6H28v4h1.25a.75.75 0 0 0 .75-.75v-2.5a.75.75 0 0 0-.75-.75"})),Hi=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},a.createElement("path",{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8M305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 0 0-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 0 0-11.3 0L266.3 586.7a8.03 8.03 0 0 0 0 11.3z"})),Vi=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},a.createElement("path",{d:"M9.5 1A1.5 1.5 0 0 0 8 2.5v2a1.5 1.5 0 0 0 1 1.414V7a.5.5 0 0 0 .82.384L11.48 6h2.02A1.5 1.5 0 0 0 15 4.5v-2A1.5 1.5 0 0 0 13.5 1zM9 2.5a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5h-2.2a.5.5 0 0 0-.32.116l-.98.816V5.5a.5.5 0 0 0-.5-.5a.5.5 0 0 1-.5-.5zM3 6a2 2 0 1 1 4 0a2 2 0 0 1-4 0m2-1a1 1 0 1 0 0 2a1 1 0 0 0 0-2M2.5 9h5A1.5 1.5 0 0 1 9 10.5c0 1.116-.459 2.01-1.212 2.615C7.047 13.71 6.053 14 5 14s-2.047-.29-2.788-.885C1.46 12.51 1 11.616 1 10.5A1.5 1.5 0 0 1 2.5 9m5 1h-5a.5.5 0 0 0-.5.5c0 .817.325 1.423.838 1.835C3.364 12.757 4.12 13 5 13s1.636-.243 2.162-.665C7.675 11.923 8 11.317 8 10.5a.5.5 0 0 0-.5-.5"})),qi=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},a.createElement("path",{d:"M1536 640h-512V512h512zm-512 384h512v128h-512zm131 896l128 128H256V0h1536v1283l-128 128V128H384v1792zM941 429L704 666L531 493l90-90l83 83l147-147zm0 512l-237 237l-173-173l90-90l83 83l147-147zm-237 569l147-147l90 90l-237 237l-173-173l90-90zm1325-57l-557 558l-269-270l90-90l179 178l467-466z"})),Ui=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},a.createElement("path",{d:"M20.039 4.751a1 1 0 0 0 1.922.551l.827-2.884a1 1 0 1 0-1.922-.55zm8.668-1.458a1 1 0 0 1 0 1.414l-3 3a1 1 0 1 1-1.414-1.414l3-3a1 1 0 0 1 1.414 0M26 11.002a1 1 0 0 1 1-1h3a1 1 0 0 1 0 2h-3a1 1 0 0 1-1-1M11.956 5.659a3 3 0 0 1 4.805-.78l10.36 10.36a3 3 0 0 1-.78 4.804l-4.749 2.375a5.5 5.5 0 0 1-9.813 4.906l-2.717 1.359A3 3 0 0 1 5.6 28.12L3.88 26.4a3 3 0 0 1-.562-3.463zm1.62 20.767a3.5 3.5 0 0 0 6.218-3.109zm1.77-20.133a1 1 0 0 0-1.6.26l-8.64 17.279a1 1 0 0 0 .187 1.154l1.72 1.72a1 1 0 0 0 1.155.188l17.279-8.64a1 1 0 0 0 .26-1.601z"})),Gi=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:19,height:19,fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},a.createElement("path",{fill:"none",d:"M17 17a2.5 2.5 0 1 1 0-5a2.5 2.5 0 0 1 0 5m0 0a4.5 4.5 0 0 1 4.5 4.5M17 17a4.5 4.5 0 0 0-4.5 4.5M7 7.5a2.5 2.5 0 1 1 0-5a2.5 2.5 0 0 1 0 5m0 0a4.5 4.5 0 0 1 4.5 4.5M7 7.5A4.5 4.5 0 0 0 2.5 12m1 3.5c0 2.764 2.236 5 5 5l-.5-2m10.5-10c0-2.764-2.236-5-5-5l.5 2"})),Yi=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},a.createElement("path",{d:"M296 256c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm192 200v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8m-48 396H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8m104.1-115.6c1.8-34.5 16.2-66.8 40.8-91.4c26.2-26.2 62-41 99.1-41c37.4 0 72.6 14.6 99.1 41c3.2 3.2 6.3 6.6 9.2 10.1L769.2 673a8 8 0 0 0 3 14.1l93.3 22.5c5 1.2 9.8-2.6 9.9-7.7l.6-95.4a8 8 0 0 0-12.9-6.4l-20.3 15.8C805.4 569.6 748.1 540 684 540c-109.9 0-199.6 86.9-204 195.7c-.2 4.5 3.5 8.3 8 8.3h48.1c4.3 0 7.8-3.3 8-7.6M880 744h-48.1c-4.3 0-7.8 3.3-8 7.6c-1.8 34.5-16.2 66.8-40.8 91.4c-26.2 26.2-62 41-99.1 41c-37.4 0-72.6-14.6-99.1-41c-3.2-3.2-6.3-6.6-9.2-10.1l23.1-17.9a8 8 0 0 0-3-14.1l-93.3-22.5c-5-1.2-9.8 2.6-9.9 7.7l-.6 95.4a8 8 0 0 0 12.9 6.4l20.3-15.8C562.6 918.4 619.9 948 684 948c109.9 0 199.6-86.9 204-195.7c.2-4.5-3.5-8.3-8-8.3"})),Zi=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},a.createElement("path",{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40m-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40"}),a.createElement("path",{d:"M894 345c-48.1-66-115.3-110.1-189-130v.1c-17.1-19-36.4-36.5-58-52.1c-163.7-119-393.5-82.7-513 81c-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4c5.3 16.9 23.3 26.2 40.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6c17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408M323 735l-12-5l-99 31l-1-104l-8-9c-84.6-103.2-90.2-251.9-11-361c96.4-132.2 281.2-161.4 413-66c132.2 96.1 161.5 280.6 66 412c-80.1 109.9-223.5 150.5-348 102m505-17l-8 10l1 104l-98-33l-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1C613.7 788.2 680.7 742.2 729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62c72.6 99.6 68.5 235.2-8 330"}),a.createElement("path",{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40"})),gn=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M6.5433 12.0867C9.6048 12.0867 12.0867 9.60488 12.0867 6.54338C12.0867 3.48188 9.6048 1 6.5433 1C3.4818 1 1 3.48188 1 6.54338C1 9.60488 3.4818 12.0867 6.5433 12.0867Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M10.4727 10.4707L15.9994 16.0007",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),Ki=e=>a.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M19 12.5H6M19 12.5L14.3333 8M19 12.5L14.3333 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),vn=e=>a.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M17.2929 9.29289C17.6834 8.90237 18.3166 8.90237 18.7071 9.29289C19.0976 9.68342 19.0976 10.3166 18.7071 10.7071L12.7071 16.7071C12.3285 17.0857 11.7189 17.0989 11.3243 16.7372L5.32428 11.2372C4.91716 10.864 4.88965 10.2314 5.26285 9.82427C5.63604 9.41715 6.26861 9.38965 6.67573 9.76284L11.9699 14.6159L17.2929 9.29289Z",fill:"currentColor"})),Xi=e=>a.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M17.2929 9.29289C17.6834 8.90237 18.3166 8.90237 18.7071 9.29289C19.0976 9.68342 19.0976 10.3166 18.7071 10.7071L12.7071 16.7071C12.3285 17.0857 11.7189 17.0989 11.3243 16.7372L5.32428 11.2372C4.91716 10.864 4.88965 10.2314 5.26285 9.82427C5.63604 9.41715 6.26861 9.38965 6.67573 9.76284L11.9699 14.6159L17.2929 9.29289Z",fill:"rgba(0, 109, 240, 0.8)"})),et=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M13 3L8 8M3 13L8 8M8 8L3 3L13 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),Ji=e=>a.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("rect",{width:24,height:24,rx:12,fill:"#FFEEEE"}),a.createElement("path",{d:"M7.5 7.5L16.5 16.5M7.5 16.5L16.5 7.5",stroke:"#D72D40",strokeWidth:1.4,strokeLinecap:"round"})),Qi=e=>a.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("rect",{width:24,height:24,rx:12,fill:"#E0F4F0"}),a.createElement("path",{d:"M9.89997 17C9.7143 17 9.53632 16.9248 9.40507 16.7909L5.20502 12.505C4.93166 12.226 4.93166 11.7739 5.20502 11.495C5.47837 11.216 5.92165 11.216 6.19483 11.495L9.89997 15.2757L17.8052 7.2092C18.0785 6.93027 18.5218 6.93027 18.795 7.2092C19.0683 7.48813 19.0683 7.94045 18.795 8.21939L10.3949 16.7909C10.2636 16.9248 10.0857 17 9.89997 17Z",fill:"#00A582"})),el=e=>a.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("rect",{width:24,height:24,rx:12,fill:"#E0F1FF"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.1056 8.28604C12.3584 8.28604 12.5639 8.48905 12.5639 8.73886V12.923C12.5639 13.1728 12.3584 13.3751 12.1056 13.3751H9.32172C9.06885 13.3751 8.86411 13.1728 8.86411 12.923C8.86411 12.6724 9.06885 12.4702 9.32172 12.4702H11.6472V8.73886C11.6472 8.48905 11.8527 8.28604 12.1056 8.28604ZM4 12C4 16.4113 7.63261 20 12.0972 20C15.8917 20 19.1362 17.4528 19.988 13.806C20.0453 13.563 19.891 13.32 19.6443 13.2634C19.4029 13.2098 19.1523 13.3592 19.0942 13.603C18.3394 16.8362 15.4624 19.0943 12.0972 19.0943C8.13758 19.0943 4.91599 15.9117 4.91599 12C4.91599 8.08754 8.13758 4.90566 12.0972 4.90566C14.8909 4.90566 17.4288 6.52528 18.6007 8.99245H15.8757C15.6228 8.99245 15.4173 9.19471 15.4173 9.44452C15.4173 9.69433 15.6228 9.89736 15.8757 9.89736H19.3418C19.5946 9.89736 19.7994 9.69433 19.7994 9.44452V6.02113C19.7994 5.77132 19.5946 5.5683 19.3418 5.5683C19.0889 5.5683 18.8834 5.77132 18.8834 6.02113V7.63698C17.4097 5.4083 14.8642 4 12.0972 4C7.63261 4 4 7.58867 4 12Z",fill:"#4573D9"})),hr=e=>a.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M21.9006 11.9999C21.9006 6.53258 17.4684 2.10042 12.0011 2.10042C6.53372 2.10042 2.10156 6.53258 2.10156 11.9999C2.10156 17.4673 6.53372 21.8994 12.0011 21.8994C17.4684 21.8994 21.9006 17.4673 21.9006 11.9999Z",fill:"#00A582",stroke:"#00A582",strokeMiterlimit:10,strokeLinejoin:"round"}),a.createElement("path",{d:"M8 11.6226L10.8813 15L16 9",stroke:"white",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),tl=e=>a.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("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:"#D72D40",stroke:"#D72D40",strokeMiterlimit:10,strokeLinejoin:"round"}),a.createElement("path",{d:"M15.6912 8.31348L8.30859 15.6917",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M15.6947 15.6917L8.31641 8.31348",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Yo=e=>a.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M11.8617 21.7234C17.3082 21.7234 21.7234 17.3082 21.7234 11.8617C21.7234 6.41523 17.3082 2 11.8617 2C6.41523 2 2 6.41523 2 11.8617C2 17.3082 6.41523 21.7234 11.8617 21.7234Z",fill:"#FFA300",stroke:"#FFA300",strokeWidth:1.5,strokeMiterlimit:10,strokeLinejoin:"round"}),a.createElement("path",{d:"M11.3004 13.9799L11.0046 6.75096C11.0001 6.63834 11.0178 6.52593 11.0567 6.42017C11.0957 6.3144 11.155 6.21731 11.2315 6.1345C11.3079 6.05168 11.3999 5.98475 11.5022 5.93749C11.6046 5.89023 11.7152 5.86359 11.8278 5.85908C11.9404 5.85458 12.0528 5.87228 12.1586 5.91122C12.2644 5.95015 12.3614 6.00959 12.4442 6.08603C12.527 6.16248 12.594 6.25442 12.6413 6.35673C12.6885 6.45905 12.7152 6.56967 12.7197 6.68229C12.7197 6.70373 12.7197 6.72952 12.7197 6.75096L12.4238 13.9799C12.4238 14.1295 12.3644 14.2729 12.2587 14.3787C12.1529 14.4844 12.0095 14.5438 11.86 14.5438C11.7104 14.5438 11.567 14.4844 11.4613 14.3787C11.3555 14.2729 11.2961 14.1295 11.2961 13.9799H11.3004Z",fill:"white"}),a.createElement("circle",{cx:11.8605,cy:16.7795,r:1,fill:"white",stroke:"white",strokeWidth:.572616})),nl=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M15 3H1V13H15V3Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M1 3L8 10.3433L15 3",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M10.3359 7.89648L15.0026 12.9998",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),a.createElement("path",{d:"M1 12.9998L5.66667 7.89648",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),rl=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M1.61422 14.1333L5.99625 12.4418C6.61289 12.5773 7.2432 12.6457 7.87554 12.6458C11.6739 12.6458 14.7511 10.2623 14.7511 7.32292C14.7511 4.38348 11.6739 2 7.87554 2C4.07718 2 1 4.38348 1 7.32292C1 8.81925 1.79758 10.1707 3.08101 11.1347L1.61422 14.1333Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),a.createElement("circle",{cx:4.98438,cy:7.66211,r:.75,fill:"currentColor"}),a.createElement("circle",{cx:7.875,cy:7.66211,r:.75,fill:"currentColor"}),a.createElement("circle",{cx:10.7656,cy:7.66211,r:.75,fill:"currentColor"})),ol=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M11.5195 9.99817C11.3265 9.87759 11.0947 9.83572 10.8717 9.88121C10.6488 9.92671 10.4519 10.0561 10.3216 10.2426C9.89136 10.7756 9.35845 11.663 7.34409 9.64859C5.32972 7.63423 6.2171 7.1013 6.74759 6.67105C6.93413 6.54079 7.0635 6.34385 7.109 6.12093C7.15449 5.89801 7.11263 5.66612 6.99205 5.47319C6.84537 5.25073 5.90909 3.80596 5.74285 3.56639C5.57662 3.32681 5.35414 2.93568 4.84077 3.00901C4.31202 3.17497 3.84929 3.50384 3.51868 3.9486C3.18807 4.39337 3.00653 4.93127 3 5.48541C3 7.13308 4.29808 9.15233 6.07287 10.9271C7.84766 12.7019 9.86692 14 11.5146 14C12.0687 13.9935 12.6066 13.8119 13.0514 13.4813C13.4962 13.1507 13.825 12.688 13.991 12.1592C14.0643 11.6434 13.6732 11.4258 13.4336 11.2571C13.194 11.0885 11.7419 10.1448 11.5195 9.99817Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),sl=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},a.createElement("path",{d:"M29 26H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h6.46l1.71-2.55A1 1 0 0 1 12 4h8a1 1 0 0 1 .83.45L22.54 7H29a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1M4 24h24V9h-6a1 1 0 0 1-.83-.45L19.46 6h-6.92l-1.71 2.55A1 1 0 0 1 10 9H4Z"}),a.createElement("path",{d:"M16 22a6 6 0 1 1 6-6a6 6 0 0 1-6 6m0-10a4 4 0 1 0 4 4a4 4 0 0 0-4-4"})),Zo=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"#000000",style:{opacity:1},...e},a.createElement("path",{d:"M7 6V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3v3c0 .552-.45 1-1.007 1H4.007A1 1 0 0 1 3 21l.003-14c0-.552.45-1 1.006-1zM5.002 8L5 20h10V8zM9 6h8v10h2V4H9z"})),Ko=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},a.createElement("path",{fill:"none",d:"M12 11v5m0 5a9 9 0 1 1 0-18a9 9 0 0 1 0 18m.05-13v.1h-.1V8z"})),al=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},a.createElement("path",{d:"M18 28h-4a2 2 0 0 1-2-2v-7.59L4.59 11A2 2 0 0 1 4 9.59V6a2 2 0 0 1 2-2h20a2 2 0 0 1 2 2v3.59a2 2 0 0 1-.59 1.41L20 18.41V26a2 2 0 0 1-2 2M6 6v3.59l8 8V26h4v-8.41l8-8V6Z"})),il=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},a.createElement("path",{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9m67.4-174.4L687.8 215l73.3 73.3l-362.7 362.6l-88.9 15.7zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32"})),ll=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},a.createElement("path",{d:"M20.3 13.43a1 1 0 0 0-1.25.65A7.14 7.14 0 0 1 12.18 19A7.1 7.1 0 0 1 5 12a7.1 7.1 0 0 1 7.18-7a7.26 7.26 0 0 1 4.65 1.67l-2.17-.36a1 1 0 0 0-1.15.83a1 1 0 0 0 .83 1.15l4.24.7h.17a1 1 0 0 0 .34-.06a.3.3 0 0 0 .1-.06a.8.8 0 0 0 .2-.11l.09-.11c0-.05.09-.09.13-.15s0-.1.05-.14a1.3 1.3 0 0 0 .07-.18l.75-4a1 1 0 0 0-2-.38l-.27 1.45A9.2 9.2 0 0 0 12.18 3A9.1 9.1 0 0 0 3 12a9.1 9.1 0 0 0 9.18 9A9.12 9.12 0 0 0 21 14.68a1 1 0 0 0-.7-1.25"})),cl=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},a.createElement("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448s448-200.6 448-448S759.4 64 512 64m176.5 585.7l-28.6 39a7.99 7.99 0 0 1-11.2 1.7L483.3 569.8a7.92 7.92 0 0 1-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1"})),Xo=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},a.createElement("path",{fill:"none",d:"M4.5 11.5a3 3 0 0 1 3-3h8.718a4 4 0 0 1 2.325.745l4.914 3.51a4 4 0 0 0 2.325.745H40.5a3 3 0 0 1 3 3v20a3 3 0 0 1-3 3h-33a3 3 0 0 1-3-3z"}),a.createElement("circle",{cx:25.435,cy:25.065,r:5.565}),a.createElement("path",{d:"M21.5 29L17 33.5"})),ul=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},a.createElement("path",{d:"M19 3v4m0 14V11m-7-8v12m0 6v-2M5 3v2m0 16V9"}),a.createElement("circle",{cx:19,cy:9,r:2,transform:"rotate(90 19 9)"}),a.createElement("circle",{cx:12,cy:17,r:2,transform:"rotate(90 12 17)"}),a.createElement("circle",{cx:5,cy:7,r:2,transform:"rotate(90 5 7)"})),dl=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:24,height:24,fill:"#000000",style:{opacity:1},...e},a.createElement("path",{d:"M6.84 2.189a1.96 1.96 0 0 0-1.68 0L.286 4.498A.5.5 0 0 0 0 4.976v3.026a.5.5 0 1 0 1 0V5.756l1 .496v2.75a.5.5 0 0 0 .147.354l.025.024l.06.055q.075.072.217.188c.187.153.457.355.794.558c.67.401 1.634.82 2.757.82s2.088-.419 2.757-.82a6.7 6.7 0 0 0 1.012-.746l.06-.055l.023-.024h.002A.5.5 0 0 0 10 9.001v-2.75l1.722-.854a.5.5 0 0 0-.008-.9zm.032 5.615L9 6.748V8.78l-.082.07a6 6 0 0 1-.675.473c-.58.348-1.366.679-2.243.679s-1.662-.33-2.243-.679A6 6 0 0 1 3 8.78V6.748l2.128 1.056c.55.272 1.194.272 1.744 0m-.46-4.711l3.942 1.867l-3.927 1.948a.96.96 0 0 1-.854 0L1.646 4.96l3.942-1.867a.96.96 0 0 1 .824 0M2.149 9.358"})),fl=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},a.createElement("path",{d:"M1728 1664q26 0 45 19t19 45t-19 45t-45 19H960q-26 0-45-19t-19-45t19-45t45-19zm-128 256q26 0 45 19t19 45t-19 45t-45 19h-512q-26 0-45-19t-19-45t19-45t45-19zm238-512h210v128H537q-10 64-14 128t-7 127t-3 128t-1 129H128v-193q0-81 6-160t17-159H0v-128h172q50-245 151-471t250-427q-146-5-268-61T82 289l-45-46l47-44q104-97 228-147T579 1q156 0 286 58t239 168q77 2 149 24t134 60t113 90t87 115t57 135t20 150v64h-64q-132 0-247-56t-199-159q-76 138-191 227t-269 125q-43 99-76 200t-57 206h289q22-84 69-154t112-122t146-79t167-29q87 0 167 28t145 80t113 121t69 155M1238 380q-6 65-26 132q51 88 134 146t185 74q-10-61-35-115t-63-101t-88-80t-107-56m-126 7q-102 8-192 50T759 547T642 704t-61 189q85-7 161-36t139-78t112-112t81-144q14-33 23-67t15-69M224 247q80 66 177 101t201 35q97 0 187-30t168-88q-80-66-177-101t-201-35q-97 0-187 30t-168 88m318 775q-8 2-16 2t-16 0h-32q-16 0-32-2v-47q-53 118-89 232t-59 230t-32 235t-10 248h128q0-121 8-234t27-223t49-219t74-222m442 386h720q-20-57-56-104t-83-81t-104-52t-117-19q-61 0-117 18t-103 52t-84 81t-56 105"})),pl=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},a.createElement("path",{fill:"none",d:"M12 15V3m0 12l-4-4m4 4l4-4M2 17l.621 2.485A2 2 0 0 0 4.561 21h14.877a2 2 0 0 0 1.94-1.515L22 17"}));var Jo=(e=>(e.BLUE_01="#D3E8FA",e.BLUE_02="#4573D9",e.BLUE_03="#4573D9",e.BLUE_04="#4573D9",e.BLUE_05="#001A3D",e.GRAY_01="#F4F7FA",e.GRAY_02="#c8c7cc",e.GRAY_03="#808080",e.GRAY_04="#525252",e.GRAY_05="#2A2A2A",e.GRAY_06="#AEBFDE",e.GRAY_07="#DDE5F5",e.WHITE_01="#FFFFFF",e.BLACK_01="#000000",e.GREEN_01="#C4F2E8",e.GREEN_02="#00A582",e.ORANGE_01="#F9E1D7",e.ORANGE_02="#FF6B2C",e.RED_01="#FFEEEE",e.RED_02="#D72D40",e.YELLOW_01="#FFF1D8",e.YELLOW_02="#FFA300",e))(Jo||{});function ml(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fn={exports:{}};var Xr;function hl(){return Xr||(Xr=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",i=0;i<arguments.length;i++){var l=arguments[i];l&&(s=o(s,r(l)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var i="";for(var l in s)t.call(s,l)&&s[l]&&(i=o(i,l));return i}function o(s,i){return i?s?s+" "+i:s+i:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Fn)),Fn.exports}var gl=hl();const A=ml(gl),vl="_block_rajx_1",wl="_subtitle_rajx_6",bl="_title_rajx_13",Bn={block:vl,subtitle:wl,title:bl},xl=({id:e,title:t,subtitle:n,children:r,className:o})=>u.jsxs("div",{className:A(Bn.block,o),id:e,children:[t&&typeof t=="string"?u.jsx("div",{className:Bn.title,children:t}):t,n&&u.jsx("div",{className:Bn.subtitle,children:n}),r]});function Jr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ot(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Jr(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Jr(e[o],null)}}}}function Ce(...e){return a.useCallback(Ot(...e),e)}var yl=Symbol.for("react.lazy"),sn=a[" use ".trim().toString()];function _l(e){return typeof e=="object"&&e!==null&&"then"in e}function Qo(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===yl&&"_payload"in e&&_l(e._payload)}function es(e){const t=El(e),n=a.forwardRef((r,o)=>{let{children:s,...i}=r;Qo(s)&&typeof sn=="function"&&(s=sn(s._payload));const l=a.Children.toArray(s),c=l.find(Sl);if(c){const d=c.props.children,f=l.map(p=>p===c?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:p);return u.jsx(t,{...i,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,f):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var Cl=es("Slot");function El(e){const t=a.forwardRef((n,r)=>{let{children:o,...s}=n;if(Qo(o)&&typeof sn=="function"&&(o=sn(o._payload)),a.isValidElement(o)){const i=Ll(o),l=Rl(s,o.props);return o.type!==a.Fragment&&(l.ref=r?Ot(r,i):i),a.cloneElement(o,l)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kl=Symbol("radix.slottable");function Sl(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kl}function Rl(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const c=s(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ll(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ts(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ts(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ns(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ts(e))&&(r&&(r+=" "),r+=t);return r}const Qr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,eo=ns,rs=(e,t)=>n=>{var r;if(t?.variants==null)return eo(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(d=>{const f=n?.[d],p=s?.[d];if(f===null)return null;const h=Qr(f)||Qr(p);return o[d][h]}),l=n&&Object.entries(n).reduce((d,f)=>{let[p,h]=f;return h===void 0||(d[p]=h),d},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:p,className:h,...m}=f;return Object.entries(m).every(w=>{let[g,v]=w;return Array.isArray(v)?v.includes({...s,...l}[g]):{...s,...l}[g]===v})?[...d,p,h]:d},[]);return eo(e,i,c,n?.class,n?.className)},Nl=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},jl=(e,t)=>({classGroupId:e,validator:t}),os=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),an="-",to=[],Pl="arbitrary..",Al=e=>{const t=Ol(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Ml(i);const l=i.split(an),c=l[0]===""&&l.length>1?1:0;return ss(l,c,t)},getConflictingClassGroupIds:(i,l)=>{if(l){const c=r[i],d=n[i];return c?d?Nl(d,c):c:d||to}return n[i]||to}}},ss=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const d=ss(e,t+1,s);if(d)return d}const i=n.validators;if(i===null)return;const l=t===0?e.join(an):e.slice(t).join(an),c=i.length;for(let d=0;d<c;d++){const f=i[d];if(f.validator(l))return f.classGroupId}},Ml=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Pl+r:void 0})(),Ol=e=>{const{theme:t,classGroups:n}=e;return Tl(n,t)},Tl=(e,t)=>{const n=os();for(const r in e){const o=e[r];gr(o,n,r,t)}return n},gr=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const i=e[s];Il(i,t,n,r)}},Il=(e,t,n,r)=>{if(typeof e=="string"){Dl(e,t,n);return}if(typeof e=="function"){$l(e,t,n,r);return}Fl(e,t,n,r)},Dl=(e,t,n)=>{const r=e===""?t:as(t,e);r.classGroupId=n},$l=(e,t,n,r)=>{if(Bl(e)){gr(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(jl(n,e))},Fl=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let i=0;i<s;i++){const[l,c]=o[i];gr(c,as(t,l),n,r)}},as=(e,t)=>{let n=e;const r=t.split(an),o=r.length;for(let s=0;s<o;s++){const i=r[s];let l=n.nextPart.get(i);l||(l=os(),n.nextPart.set(i,l)),n=l}return n},Bl=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,zl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(s,i)=>{n[s]=i,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let i=n[s];if(i!==void 0)return i;if((i=r[s])!==void 0)return o(s,i),i},set(s,i){s in n?n[s]=i:o(s,i)}}},or="!",no=":",Wl=[],ro=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Hl=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let i=0,l=0,c=0,d;const f=o.length;for(let g=0;g<f;g++){const v=o[g];if(i===0&&l===0){if(v===no){s.push(o.slice(c,g)),c=g+1;continue}if(v==="/"){d=g;continue}}v==="["?i++:v==="]"?i--:v==="("?l++:v===")"&&l--}const p=s.length===0?o:o.slice(c);let h=p,m=!1;p.endsWith(or)?(h=p.slice(0,-1),m=!0):p.startsWith(or)&&(h=p.slice(1),m=!0);const w=d&&d>c?d-c:void 0;return ro(s,m,h,w)};if(t){const o=t+no,s=r;r=i=>i.startsWith(o)?s(i.slice(o.length)):ro(Wl,!1,i,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Vl=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let s=0;s<n.length;s++){const i=n[s],l=i[0]==="[",c=t.has(i);l||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(i)):o.push(i)}return o.length>0&&(o.sort(),r.push(...o)),r}},ql=e=>({cache:zl(e.cacheSize),parseClassName:Hl(e),sortModifiers:Vl(e),...Al(e)}),Ul=/\s+/,Gl=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],l=e.trim().split(Ul);let c="";for(let d=l.length-1;d>=0;d-=1){const f=l[d],{isExternal:p,modifiers:h,hasImportantModifier:m,baseClassName:w,maybePostfixModifierPosition:g}=n(f);if(p){c=f+(c.length>0?" "+c:c);continue}let v=!!g,b=r(v?w.substring(0,g):w);if(!b){if(!v){c=f+(c.length>0?" "+c:c);continue}if(b=r(w),!b){c=f+(c.length>0?" "+c:c);continue}v=!1}const y=h.length===0?"":h.length===1?h[0]:s(h).join(":"),x=m?y+or:y,C=x+b;if(i.indexOf(C)>-1)continue;i.push(C);const k=o(b,v);for(let E=0;E<k.length;++E){const R=k[E];i.push(x+R)}c=f+(c.length>0?" "+c:c)}return c},Yl=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=is(n))&&(o&&(o+=" "),o+=r);return o},is=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=is(e[r]))&&(n&&(n+=" "),n+=t);return n},Zl=(e,...t)=>{let n,r,o,s;const i=c=>{const d=t.reduce((f,p)=>p(f),e());return n=ql(d),r=n.cache.get,o=n.cache.set,s=l,l(c)},l=c=>{const d=r(c);if(d)return d;const f=Gl(c,n);return o(c,f),f};return s=i,(...c)=>s(Yl(...c))},Kl=[],oe=e=>{const t=n=>n[e]||Kl;return t.isThemeGetter=!0,t},ls=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,cs=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Xl=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Jl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ql=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ec=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,tc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ze=e=>Xl.test(e),H=e=>!!e&&!Number.isNaN(Number(e)),Ke=e=>!!e&&Number.isInteger(Number(e)),zn=e=>e.endsWith("%")&&H(e.slice(0,-1)),Be=e=>Jl.test(e),us=()=>!0,rc=e=>Ql.test(e)&&!ec.test(e),vr=()=>!1,oc=e=>tc.test(e),sc=e=>nc.test(e),ac=e=>!N(e)&&!j(e),ic=e=>st(e,ps,vr),N=e=>ls.test(e),ut=e=>st(e,ms,rc),oo=e=>st(e,hc,H),lc=e=>st(e,gs,us),cc=e=>st(e,hs,vr),so=e=>st(e,ds,vr),uc=e=>st(e,fs,sc),Bt=e=>st(e,vs,oc),j=e=>cs.test(e),Nt=e=>ht(e,ms),dc=e=>ht(e,hs),ao=e=>ht(e,ds),fc=e=>ht(e,ps),pc=e=>ht(e,fs),zt=e=>ht(e,vs,!0),mc=e=>ht(e,gs,!0),st=(e,t,n)=>{const r=ls.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ht=(e,t,n=!1)=>{const r=cs.exec(e);return r?r[1]?t(r[1]):n:!1},ds=e=>e==="position"||e==="percentage",fs=e=>e==="image"||e==="url",ps=e=>e==="length"||e==="size"||e==="bg-size",ms=e=>e==="length",hc=e=>e==="number",hs=e=>e==="family-name",gs=e=>e==="number"||e==="weight",vs=e=>e==="shadow",gc=()=>{const e=oe("color"),t=oe("font"),n=oe("text"),r=oe("font-weight"),o=oe("tracking"),s=oe("leading"),i=oe("breakpoint"),l=oe("container"),c=oe("spacing"),d=oe("radius"),f=oe("shadow"),p=oe("inset-shadow"),h=oe("text-shadow"),m=oe("drop-shadow"),w=oe("blur"),g=oe("perspective"),v=oe("aspect"),b=oe("ease"),y=oe("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...C(),j,N],E=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],S=()=>[j,N,c],M=()=>[Ze,"full","auto",...S()],I=()=>[Ke,"none","subgrid",j,N],B=()=>["auto",{span:["full",Ke,j,N]},Ke,j,N],V=()=>[Ke,"auto",j,N],$=()=>["auto","min","max","fr",j,N],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...S()],q=()=>[Ze,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],P=()=>[Ze,"screen","full","dvw","lvw","svw","min","max","fit",...S()],K=()=>[Ze,"screen","full","lh","dvh","lvh","svh","min","max","fit",...S()],L=()=>[e,j,N],de=()=>[...C(),ao,so,{position:[j,N]}],fe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ne=()=>["auto","cover","contain",fc,ic,{size:[j,N]}],ae=()=>[zn,Nt,ut],U=()=>["","none","full",d,j,N],Q=()=>["",H,Nt,ut],pe=()=>["solid","dashed","dotted","double"],D=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>[H,zn,ao,so],be=()=>["","none",w,j,N],ke=()=>["none",H,j,N],Ee=()=>["none",H,j,N],G=()=>[H,j,N],re=()=>[Ze,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Be],breakpoint:[Be],color:[us],container:[Be],"drop-shadow":[Be],ease:["in","out","in-out"],font:[ac],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Be],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Be],shadow:[Be],spacing:["px",H],text:[Be],"text-shadow":[Be],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ze,N,j,v]}],container:["container"],columns:[{columns:[H,N,j,l]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{"inset-s":M(),start:M()}],end:[{"inset-e":M(),end:M()}],"inset-bs":[{"inset-bs":M()}],"inset-be":[{"inset-be":M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[Ke,"auto",j,N]}],basis:[{basis:[Ze,"full","auto",l,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[H,Ze,"auto","initial","none",N]}],grow:[{grow:["",H,j,N]}],shrink:[{shrink:["",H,j,N]}],order:[{order:[Ke,"first","last","none",j,N]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":$()}],"auto-rows":[{"auto-rows":$()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mbs:[{mbs:F()}],mbe:[{mbe:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],"inline-size":[{inline:["auto",...P()]}],"min-inline-size":[{"min-inline":["auto",...P()]}],"max-inline-size":[{"max-inline":["none",...P()]}],"block-size":[{block:["auto",...K()]}],"min-block-size":[{"min-block":["auto",...K()]}],"max-block-size":[{"max-block":["none",...K()]}],w:[{w:[l,"screen",...q()]}],"min-w":[{"min-w":[l,"screen","none",...q()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",n,Nt,ut]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,mc,lc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",zn,N]}],"font-family":[{font:[dc,cc,t]}],"font-features":[{"font-features":[N]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,j,N]}],"line-clamp":[{"line-clamp":[H,"none",j,oo]}],leading:[{leading:[s,...S()]}],"list-image":[{"list-image":["none",j,N]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",j,N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:[H,"from-font","auto",j,ut]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[H,"auto",j,N]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j,N]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",j,N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:fe()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ke,j,N],radial:["",j,N],conic:[Ke,j,N]},pc,uc]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:ae()}],"gradient-via-pos":[{via:ae()}],"gradient-to-pos":[{to:ae()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-bs":[{"border-bs":Q()}],"border-w-be":[{"border-be":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...pe(),"hidden","none"]}],"divide-style":[{divide:[...pe(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-bs":[{"border-bs":L()}],"border-color-be":[{"border-be":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...pe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[H,j,N]}],"outline-w":[{outline:["",H,Nt,ut]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",f,zt,Bt]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",p,zt,Bt]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[H,ut]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",h,zt,Bt]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[H,j,N]}],"mix-blend":[{"mix-blend":[...D(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":D()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[H]}],"mask-image-linear-from-pos":[{"mask-linear-from":Z()}],"mask-image-linear-to-pos":[{"mask-linear-to":Z()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":Z()}],"mask-image-t-to-pos":[{"mask-t-to":Z()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":Z()}],"mask-image-r-to-pos":[{"mask-r-to":Z()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":Z()}],"mask-image-b-to-pos":[{"mask-b-to":Z()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":Z()}],"mask-image-l-to-pos":[{"mask-l-to":Z()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":Z()}],"mask-image-x-to-pos":[{"mask-x-to":Z()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":Z()}],"mask-image-y-to-pos":[{"mask-y-to":Z()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[j,N]}],"mask-image-radial-from-pos":[{"mask-radial-from":Z()}],"mask-image-radial-to-pos":[{"mask-radial-to":Z()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[H]}],"mask-image-conic-from-pos":[{"mask-conic-from":Z()}],"mask-image-conic-to-pos":[{"mask-conic-to":Z()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:fe()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",j,N]}],filter:[{filter:["","none",j,N]}],blur:[{blur:be()}],brightness:[{brightness:[H,j,N]}],contrast:[{contrast:[H,j,N]}],"drop-shadow":[{"drop-shadow":["","none",m,zt,Bt]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",H,j,N]}],"hue-rotate":[{"hue-rotate":[H,j,N]}],invert:[{invert:["",H,j,N]}],saturate:[{saturate:[H,j,N]}],sepia:[{sepia:["",H,j,N]}],"backdrop-filter":[{"backdrop-filter":["","none",j,N]}],"backdrop-blur":[{"backdrop-blur":be()}],"backdrop-brightness":[{"backdrop-brightness":[H,j,N]}],"backdrop-contrast":[{"backdrop-contrast":[H,j,N]}],"backdrop-grayscale":[{"backdrop-grayscale":["",H,j,N]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[H,j,N]}],"backdrop-invert":[{"backdrop-invert":["",H,j,N]}],"backdrop-opacity":[{"backdrop-opacity":[H,j,N]}],"backdrop-saturate":[{"backdrop-saturate":[H,j,N]}],"backdrop-sepia":[{"backdrop-sepia":["",H,j,N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",j,N]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[H,"initial",j,N]}],ease:[{ease:["linear","initial",b,j,N]}],delay:[{delay:[H,j,N]}],animate:[{animate:["none",y,j,N]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,j,N]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:ke()}],"rotate-x":[{"rotate-x":ke()}],"rotate-y":[{"rotate-y":ke()}],"rotate-z":[{"rotate-z":ke()}],scale:[{scale:Ee()}],"scale-x":[{"scale-x":Ee()}],"scale-y":[{"scale-y":Ee()}],"scale-z":[{"scale-z":Ee()}],"scale-3d":["scale-3d"],skew:[{skew:G()}],"skew-x":[{"skew-x":G()}],"skew-y":[{"skew-y":G()}],transform:[{transform:[j,N,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:re()}],"translate-x":[{"translate-x":re()}],"translate-y":[{"translate-y":re()}],"translate-z":[{"translate-z":re()}],"translate-none":["translate-none"],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",j,N]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",j,N]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[H,Nt,ut,oo]}],stroke:[{stroke:["none",...L()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},vc=Zl(gc);function Te(...e){return vc(ns(e))}const wc=rs("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),wr=a.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?Cl:"button";return u.jsx(i,{className:Te(wc({variant:t,size:n,className:e})),ref:s,...o})});wr.displayName="Button";const bc="_cssloadSpeedingWheel_akex8_6",xc="_bigSize_akex8_20",yc="_smallSize_akex8_26",_c="_extraSmallSize_akex8_32",Wt={cssloadSpeedingWheel:bc,bigSize:xc,smallSize:yc,extraSmallSize:_c},ft=({marginTop:e,marginBottom:t,marginLeft:n,className:r,size:o="big"})=>{const s=_.useMemo(()=>({marginTop:e,marginBottom:t,marginLeft:n}),[t,n,e]);return u.jsx("div",{className:r,style:s,children:u.jsx("div",{className:A(Wt.cssloadSpeedingWheel,{[Wt.bigSize]:o==="big",[Wt.smallSize]:o==="small",[Wt.extraSmallSize]:o==="extraSmall"})})})},Cc="_button_14x56_1",Ec="_button__loader_14x56_186",kc="_button__content_14x56_193",gt={button:Cc,"button--variant-primary":"_button--variant-primary_14x56_26","button--variant-primary--disabled":"_button--variant-primary--disabled_14x56_37","button--variant-default":"_button--variant-default_14x56_45","button--variant-default--disabled":"_button--variant-default--disabled_14x56_58","button--variant-secondary":"_button--variant-secondary_14x56_66","button--variant-secondary--disabled":"_button--variant-secondary--disabled_14x56_81","button--variant-text":"_button--variant-text_14x56_89","button--variant-text--disabled":"_button--variant-text--disabled_14x56_105","button--variant-link":"_button--variant-link_14x56_113","button--variant-link--disabled":"_button--variant-link--disabled_14x56_129","button--variant-danger":"_button--variant-danger_14x56_137","button--variant-danger--disabled":"_button--variant-danger--disabled_14x56_147","button--size-small":"_button--size-small_14x56_155","button--size-medium":"_button--size-medium_14x56_163","button--size-large":"_button--size-large_14x56_171","button--loading":"_button--loading_14x56_182",button__loader:Ec,button__content:kc},ce=_.forwardRef(({variant:e="default",size:t="medium",className:n="",loading:r=!1,disabled:o=!1,children:s,type:i="button",...l},c)=>{const d=A(gt.button,gt[`button--variant-${e}`],gt[`button--size-${t}`],{[gt["button--loading"]]:r,[gt["button--disabled"]]:o},n);return u.jsxs(wr,{ref:c,variant:null,size:null,className:d,disabled:o||r,type:i,...l,children:[s&&s,r&&u.jsx("span",{className:gt.button__loader,children:u.jsx(ft,{size:"extraSmall"})})]})});ce.displayName="Button";const ws=e=>{const[t,n]=_.useState(0),[r,o]=_.useState(0),s=_.useRef(null);return _.useEffect(()=>{if(!e)return;const l=new ResizeObserver(d=>{s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{for(const f of d)if(f.borderBoxSize){const p=Array.isArray(f.borderBoxSize)?f.borderBoxSize[0]:f.borderBoxSize;n(p.blockSize),o(p.inlineSize)}else n(f.contentRect.height),o(f.contentRect.width)})});l.observe(e);const c=e.getBoundingClientRect().height;return n(c),()=>{l.disconnect()}},[e,n]),_.useMemo(()=>({height:t,width:r}),[t,r])},io={capture:!0,passive:!0},Sc=({triggerRef:e,dropdownHeight:t,offset:n=8,enabled:r=!0,onAnchorFrame:o})=>{const[s,i]=_.useState("bottom"),l=_.useRef(null),c=_.useCallback(()=>{if(!e.current)return"bottom";const f=e.current.getBoundingClientRect(),p=window.innerHeight,h=f.top-n;return p-f.bottom-n>=t?"bottom":h>=t?"top":"bottom"},[e,t,n]),d=_.useCallback(()=>{l.current&&cancelAnimationFrame(l.current),l.current=requestAnimationFrame(()=>{const f=c();i(f),o?.(f)})},[c,o]);return _.useEffect(()=>{if(!r)return;const f=e.current;if(!f)return;d();const p=new ResizeObserver(()=>{d()});p.observe(f);const h=new MutationObserver(()=>{d()});h.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]});const m=[];let w=f.parentElement;for(;w;){const g=window.getComputedStyle(w),v=g.overflow+g.overflowY+g.overflowX;/(auto|scroll)/.test(v)&&(m.push(w),w.addEventListener("scroll",d)),w=w.parentElement}return window.addEventListener("scroll",d,io),window.addEventListener("resize",d),window.addEventListener("transitionend",d),window.addEventListener("animationend",d),()=>{l.current&&cancelAnimationFrame(l.current),p.disconnect(),h.disconnect(),window.removeEventListener("scroll",d,io),window.removeEventListener("resize",d),window.removeEventListener("transitionend",d),window.removeEventListener("animationend",d),m.forEach(g=>{g.removeEventListener("scroll",d)})}},[r,e,d]),s},Rc="_container_db1u5_1",Lc="_activeButton_db1u5_16",Nc="_slider_db1u5_22",Wn={container:Rc,activeButton:Lc,slider:Nc},jc=({data:e,activeButton:t,defaultActiveButton:n,onChange:r})=>{const[o,s]=_.useState(n||e[0]?.id),[i,l]=_.useState({transform:"translateX(0)",width:0}),c=_.useRef(new Map),d=t||o,{width:f}=ws(c.current.get(d)),p=m=>{m.id!==d&&(r?.(m.id),s(m.id))},h=_.useCallback((m,w)=>{c.current.set(w,m)},[]);return _.useEffect(()=>{const m=e.findIndex(w=>w.id===d);if(m>=0){const g=e.slice(0,m).reduce((v,b)=>{const y=c.current.get(b.id);if(y){const x=y.getBoundingClientRect().width;v+=x}return v},0);l({transform:`translateX(${g}px)`,width:f})}},[d,f,e]),u.jsxs("div",{className:Wn.container,children:[e.map(m=>u.jsx("div",{ref:w=>h(w,m.id),children:u.jsxs(ce,{size:"small",onClick:()=>p(m),className:A({[Wn.activeButton]:m.id===d}),children:[m.label,m.additionalComponent]})},m.id)),u.jsx("div",{className:Wn.slider,style:i})]})};function ue(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function We(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function sr({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function br(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function bs(e,t,n="/"){return Pc(e,t,n,!1)}function Pc(e,t,n,r){let o=typeof t=="string"?br(t):t,s=tt(o.pathname||"/",n);if(s==null)return null;let i=xs(e);Ac(i);let l=null;for(let c=0;l==null&&c<i.length;++c){let d=Hc(s);l=zc(i[c],d,r)}return l}function xs(e,t=[],n=[],r="",o=!1){let s=(i,l,c=o,d)=>{let f={relativePath:d===void 0?i.path||"":d,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&c)return;ue(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length)}let p=Se([r,f.relativePath]),h=n.concat(f);i.children&&i.children.length>0&&(ue(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),xs(i.children,t,h,p,c)),!(i.path==null&&!i.index)&&t.push({path:p,score:Fc(p,i.index),routesMeta:h})};return e.forEach((i,l)=>{if(i.path===""||!i.path?.includes("?"))s(i,l);else for(let c of ys(i.path))s(i,l,!0,c)}),t}function ys(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=ys(r.join("/")),l=[];return l.push(...i.map(c=>c===""?s:[s,c].join("/"))),o&&l.push(...i),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function Ac(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Bc(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Mc=/^:[\w-]+$/,Oc=3,Tc=2,Ic=1,Dc=10,$c=-2,lo=e=>e==="*";function Fc(e,t){let n=e.split("/"),r=n.length;return n.some(lo)&&(r+=$c),t&&(r+=Tc),n.filter(o=>!lo(o)).reduce((o,s)=>o+(Mc.test(s)?Oc:s===""?Ic:Dc),r)}function Bc(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function zc(e,t,n=!1){let{routesMeta:r}=e,o={},s="/",i=[];for(let l=0;l<r.length;++l){let c=r[l],d=l===r.length-1,f=s==="/"?t:t.slice(s.length)||"/",p=ln({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},f),h=c.route;if(!p&&d&&n&&!r[r.length-1].route.index&&(p=ln({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},f)),!p)return null;Object.assign(o,p.params),i.push({params:o,pathname:Se([s,p.pathname]),pathnameBase:Gc(Se([s,p.pathnameBase])),route:h}),p.pathnameBase!=="/"&&(s=Se([s,p.pathnameBase]))}return i}function ln(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Wc(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],i=s.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((d,{paramName:f,isOptional:p},h)=>{if(f==="*"){let w=l[h]||"";i=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const m=l[h];return p&&!m?d[f]=void 0:d[f]=(m||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:i,pattern:e}}function Wc(e,t=!1,n=!0){We(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,c,d,f)=>{if(r.push({paramName:l,isOptional:c!=null}),c){let p=f.charAt(d+i.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Hc(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return We(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function tt(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var Vc=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function qc(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?br(e):e,s;return n?(n=Cs(n),n.startsWith("/")?s=co(n.substring(1),"/"):s=co(n,t)):s=t,{pathname:s,search:Yc(r),hash:Zc(o)}}function co(e,t){let n=cn(t).split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Hn(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Uc(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function _s(e){let t=Uc(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function xr(e,t,n,r=!1){let o;typeof e=="string"?o=br(e):(o={...e},ue(!o.pathname||!o.pathname.includes("?"),Hn("?","pathname","search",o)),ue(!o.pathname||!o.pathname.includes("#"),Hn("#","pathname","hash",o)),ue(!o.search||!o.search.includes("#"),Hn("#","search","hash",o)));let s=e===""||o.pathname==="",i=s?"/":o.pathname,l;if(i==null)l=n;else{let p=t.length-1;if(!r&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),p-=1;o.pathname=h.join("/")}l=p>=0?t[p]:"/"}let c=qc(o,l),d=i&&i!=="/"&&i.endsWith("/"),f=(s||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||f)&&(c.pathname+="/"),c}var Cs=e=>e.replace(/\/\/+/g,"/"),Se=e=>Cs(e.join("/")),cn=e=>e.replace(/\/+$/,""),Gc=e=>cn(e).replace(/^\/*/,"/"),Yc=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Zc=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Kc=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Xc(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Jc(e){let t=e.map(n=>n.route.path).filter(Boolean);return Se(t)||"/"}var Es=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ks(e,t){let n=e;if(typeof n!="string"||!Vc.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(Es)try{let s=new URL(window.location.href),i=n.startsWith("//")?new URL(s.protocol+n):new URL(n),l=tt(i.pathname,t);i.origin===s.origin&&l!=null?n=l+i.search+i.hash:o=!0}catch{We(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Ss=["POST","PUT","PATCH","DELETE"];new Set(Ss);var Qc=["GET",...Ss];new Set(Qc);var St=a.createContext(null);St.displayName="DataRouter";var wn=a.createContext(null);wn.displayName="DataRouterState";var Rs=a.createContext(!1);function eu(){return a.useContext(Rs)}var Ls=a.createContext({isTransitioning:!1});Ls.displayName="ViewTransition";var tu=a.createContext(new Map);tu.displayName="Fetchers";var nu=a.createContext(null);nu.displayName="Await";var Le=a.createContext(null);Le.displayName="Navigation";var yr=a.createContext(null);yr.displayName="Location";var qe=a.createContext({outlet:null,matches:[],isDataRoute:!1});qe.displayName="Route";var _r=a.createContext(null);_r.displayName="RouteError";var Ns="REACT_ROUTER_ERROR",ru="REDIRECT",ou="ROUTE_ERROR_RESPONSE";function su(e){if(e.startsWith(`${Ns}:${ru}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function au(e){if(e.startsWith(`${Ns}:${ou}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Kc(t.status,t.statusText,t.data)}catch{}}function iu(e,{relative:t}={}){ue(bn(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=a.useContext(Le),{hash:o,pathname:s,search:i}=Tt(e,{relative:t}),l=s;return n!=="/"&&(l=s==="/"?n:Se([n,s])),r.createHref({pathname:l,search:i,hash:o})}function bn(){return a.useContext(yr)!=null}function Ue(){return ue(bn(),"useLocation() may be used only in the context of a <Router> component."),a.useContext(yr).location}var js="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ps(e){a.useContext(Le).static||a.useLayoutEffect(e)}function lu(){let{isDataRoute:e}=a.useContext(qe);return e?yu():cu()}function cu(){ue(bn(),"useNavigate() may be used only in the context of a <Router> component.");let e=a.useContext(St),{basename:t,navigator:n}=a.useContext(Le),{matches:r}=a.useContext(qe),{pathname:o}=Ue(),s=JSON.stringify(_s(r)),i=a.useRef(!1);return Ps(()=>{i.current=!0}),a.useCallback((c,d={})=>{if(We(i.current,js),!i.current)return;if(typeof c=="number"){n.go(c);return}let f=xr(c,JSON.parse(s),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Se([t,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[t,n,s,o,e])}a.createContext(null);function Tt(e,{relative:t}={}){let{matches:n}=a.useContext(qe),{pathname:r}=Ue(),o=JSON.stringify(_s(n));return a.useMemo(()=>xr(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function uu(e,t,n){ue(bn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=a.useContext(Le),{matches:o}=a.useContext(qe),s=o[o.length-1],i=s?s.params:{},l=s?s.pathname:"/",c=s?s.pathnameBase:"/",d=s&&s.route;{let v=d&&d.path||"";Ms(l,!d||v.endsWith("*")||v.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${v}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
2
-
3
- Please change the parent <Route path="${v}"> to <Route path="${v==="/"?"*":`${v}/*`}">.`)}let f=Ue(),p;p=f;let h=p.pathname||"/",m=h;if(c!=="/"){let v=c.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(v.length).join("/")}let w=bs(e,{pathname:m});return We(d||w!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),We(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),hu(w&&w.map(v=>Object.assign({},v,{params:Object.assign({},i,v.params),pathname:Se([c,r.encodeLocation?r.encodeLocation(v.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?c:Se([c,r.encodeLocation?r.encodeLocation(v.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathnameBase])})),o,n)}function du(){let e=xu(),t=Xc(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=a.createElement(a.Fragment,null,a.createElement("p",null,"💿 Hey developer 👋"),a.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",a.createElement("code",{style:s},"ErrorBoundary")," or"," ",a.createElement("code",{style:s},"errorElement")," prop on your route.")),a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),n?a.createElement("pre",{style:o},n):null,i)}var fu=a.createElement(du,null),As=class extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=au(e.digest);n&&(e=n)}let t=e!==void 0?a.createElement(qe.Provider,{value:this.props.routeContext},a.createElement(_r.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?a.createElement(pu,{error:e},t):t}};As.contextType=Rs;var Vn=new WeakMap;function pu({children:e,error:t}){let{basename:n}=a.useContext(Le);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=su(t.digest);if(r){let o=Vn.get(t);if(o)throw o;let s=ks(r.location,n);if(Es&&!Vn.get(t))if(s.isExternal||r.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const i=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw Vn.set(t,i),i}return a.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return e}function mu({routeContext:e,match:t,children:n}){let r=a.useContext(St);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),a.createElement(qe.Provider,{value:e},n)}function hu(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,s=r?.errors;if(s!=null){let f=o.findIndex(p=>p.route.id&&s?.[p.route.id]!==void 0);ue(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,f+1))}let i=!1,l=-1;if(n&&r){i=r.renderFallback;for(let f=0;f<o.length;f++){let p=o[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(l=f),p.route.id){let{loaderData:h,errors:m}=r,w=p.route.loader&&!h.hasOwnProperty(p.route.id)&&(!m||m[p.route.id]===void 0);if(p.route.lazy||w){n.isStatic&&(i=!0),l>=0?o=o.slice(0,l+1):o=[o[0]];break}}}}let c=n?.onError,d=r&&c?(f,p)=>{c(f,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:Jc(r.matches),errorInfo:p})}:void 0;return o.reduceRight((f,p,h)=>{let m,w=!1,g=null,v=null;r&&(m=s&&p.route.id?s[p.route.id]:void 0,g=p.route.errorElement||fu,i&&(l<0&&h===0?(Ms("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,v=null):l===h&&(w=!0,v=p.route.hydrateFallbackElement||null)));let b=t.concat(o.slice(0,h+1)),y=()=>{let x;return m?x=g:w?x=v:p.route.Component?x=a.createElement(p.route.Component,null):p.route.element?x=p.route.element:x=f,a.createElement(mu,{match:p,routeContext:{outlet:f,matches:b,isDataRoute:r!=null},children:x})};return r&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?a.createElement(As,{location:r.location,revalidation:r.revalidation,component:g,error:m,children:y(),routeContext:{outlet:null,matches:b,isDataRoute:!0},onError:d}):y()},null)}function Cr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function gu(e){let t=a.useContext(St);return ue(t,Cr(e)),t}function vu(e){let t=a.useContext(wn);return ue(t,Cr(e)),t}function wu(e){let t=a.useContext(qe);return ue(t,Cr(e)),t}function Er(e){let t=wu(e),n=t.matches[t.matches.length-1];return ue(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function bu(){return Er("useRouteId")}function xu(){let e=a.useContext(_r),t=vu("useRouteError"),n=Er("useRouteError");return e!==void 0?e:t.errors?.[n]}function yu(){let{router:e}=gu("useNavigate"),t=Er("useNavigate"),n=a.useRef(!1);return Ps(()=>{n.current=!0}),a.useCallback(async(o,s={})=>{We(n.current,js),n.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...s}))},[e,t])}var uo={};function Ms(e,t,n){!t&&!uo[e]&&(uo[e]=!0,We(!1,n))}a.memo(_u);function _u({routes:e,future:t,state:n,isStatic:r,onError:o}){return uu(e,void 0,{state:n,isStatic:r,onError:o})}var en="get",tn="application/x-www-form-urlencoded";function xn(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Cu(e){return xn(e)&&e.tagName.toLowerCase()==="button"}function Eu(e){return xn(e)&&e.tagName.toLowerCase()==="form"}function ku(e){return xn(e)&&e.tagName.toLowerCase()==="input"}function Su(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ru(e,t){return e.button===0&&(!t||t==="_self")&&!Su(e)}var Ht=null;function Lu(){if(Ht===null)try{new FormData(document.createElement("form"),0),Ht=!1}catch{Ht=!0}return Ht}var Nu=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qn(e){return e!=null&&!Nu.has(e)?(We(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${tn}"`),null):e}function ju(e,t){let n,r,o,s,i;if(Eu(e)){let l=e.getAttribute("action");r=l?tt(l,t):null,n=e.getAttribute("method")||en,o=qn(e.getAttribute("enctype"))||tn,s=new FormData(e)}else if(Cu(e)||ku(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||l.getAttribute("action");if(r=c?tt(c,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||en,o=qn(e.getAttribute("formenctype"))||qn(l.getAttribute("enctype"))||tn,s=new FormData(l,e),!Lu()){let{name:d,type:f,value:p}=e;if(f==="image"){let h=d?`${d}.`:"";s.append(`${h}x`,"0"),s.append(`${h}y`,"0")}else d&&s.append(d,p)}}else{if(xn(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=en,r=null,o=tn,i=e}return s&&o==="text/plain"&&(i=s,s=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:s,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function kr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Os(e,t,n,r){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:t&&tt(o.pathname,t)==="/"?o.pathname=`${cn(t)}/_root.${r}`:o.pathname=`${cn(o.pathname)}.${r}`,o}async function Pu(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Au(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Mu(e,t,n){let r=await Promise.all(e.map(async o=>{let s=t.routes[o.route.id];if(s){let i=await Pu(s,n);return i.links?i.links():[]}return[]}));return Du(r.flat(1).filter(Au).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function fo(e,t,n,r,o,s){let i=(c,d)=>n[d]?c.route.id!==n[d].route.id:!0,l=(c,d)=>n[d].pathname!==c.pathname||n[d].route.path?.endsWith("*")&&n[d].params["*"]!==c.params["*"];return s==="assets"?t.filter((c,d)=>i(c,d)||l(c,d)):s==="data"?t.filter((c,d)=>{let f=r.routes[c.route.id];if(!f||!f.hasLoader)return!1;if(i(c,d)||l(c,d))return!0;if(c.route.shouldRevalidate){let p=c.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function Ou(e,t,{includeHydrateFallback:n}={}){return Tu(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let s=[o.module];return o.clientActionModule&&(s=s.concat(o.clientActionModule)),o.clientLoaderModule&&(s=s.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(s=s.concat(o.hydrateFallbackModule)),o.imports&&(s=s.concat(o.imports)),s}).flat(1))}function Tu(e){return[...new Set(e)]}function Iu(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Du(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let s=JSON.stringify(Iu(o));return n.has(s)||(n.add(s),r.push({key:s,link:o})),r},[])}function Sr(){let e=a.useContext(St);return kr(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function $u(){let e=a.useContext(wn);return kr(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Rr=a.createContext(void 0);Rr.displayName="FrameworkContext";function Lr(){let e=a.useContext(Rr);return kr(e,"You must render this element inside a <HydratedRouter> element"),e}function Fu(e,t){let n=a.useContext(Rr),[r,o]=a.useState(!1),[s,i]=a.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:d,onMouseLeave:f,onTouchStart:p}=t,h=a.useRef(null);a.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let g=b=>{b.forEach(y=>{i(y.isIntersecting)})},v=new IntersectionObserver(g,{threshold:.5});return h.current&&v.observe(h.current),()=>{v.disconnect()}}},[e]),a.useEffect(()=>{if(r){let g=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(g)}}},[r]);let m=()=>{o(!0)},w=()=>{o(!1),i(!1)};return n?e!=="intent"?[s,h,{}]:[s,h,{onFocus:jt(l,m),onBlur:jt(c,w),onMouseEnter:jt(d,m),onMouseLeave:jt(f,w),onTouchStart:jt(p,m)}]:[!1,h,{}]}function jt(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Bu({page:e,...t}){let n=eu(),{router:r}=Sr(),o=a.useMemo(()=>bs(r.routes,e,r.basename),[r.routes,e,r.basename]);return o?n?a.createElement(Wu,{page:e,matches:o,...t}):a.createElement(Hu,{page:e,matches:o,...t}):null}function zu(e){let{manifest:t,routeModules:n}=Lr(),[r,o]=a.useState([]);return a.useEffect(()=>{let s=!1;return Mu(e,t,n).then(i=>{s||o(i)}),()=>{s=!0}},[e,t,n]),r}function Wu({page:e,matches:t,...n}){let r=Ue(),{future:o}=Lr(),{basename:s}=Sr(),i=a.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let l=Os(e,s,o.unstable_trailingSlashAwareDataRequests,"rsc"),c=!1,d=[];for(let f of t)typeof f.route.shouldRevalidate=="function"?c=!0:d.push(f.route.id);return c&&d.length>0&&l.searchParams.set("_routes",d.join(",")),[l.pathname+l.search]},[s,o.unstable_trailingSlashAwareDataRequests,e,r,t]);return a.createElement(a.Fragment,null,i.map(l=>a.createElement("link",{key:l,rel:"prefetch",as:"fetch",href:l,...n})))}function Hu({page:e,matches:t,...n}){let r=Ue(),{future:o,manifest:s,routeModules:i}=Lr(),{basename:l}=Sr(),{loaderData:c,matches:d}=$u(),f=a.useMemo(()=>fo(e,t,d,s,r,"data"),[e,t,d,s,r]),p=a.useMemo(()=>fo(e,t,d,s,r,"assets"),[e,t,d,s,r]),h=a.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let g=new Set,v=!1;if(t.forEach(y=>{let x=s.routes[y.route.id];!x||!x.hasLoader||(!f.some(C=>C.route.id===y.route.id)&&y.route.id in c&&i[y.route.id]?.shouldRevalidate||x.hasClientLoader?v=!0:g.add(y.route.id))}),g.size===0)return[];let b=Os(e,l,o.unstable_trailingSlashAwareDataRequests,"data");return v&&g.size>0&&b.searchParams.set("_routes",t.filter(y=>g.has(y.route.id)).map(y=>y.route.id).join(",")),[b.pathname+b.search]},[l,o.unstable_trailingSlashAwareDataRequests,c,r,s,f,t,e,i]),m=a.useMemo(()=>Ou(p,s),[p,s]),w=zu(p);return a.createElement(a.Fragment,null,h.map(g=>a.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),m.map(g=>a.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),w.map(({key:g,link:v})=>a.createElement("link",{key:g,nonce:n.nonce,...v,crossOrigin:v.crossOrigin??n.crossOrigin})))}function Vu(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var qu=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{qu&&(window.__reactRouterVersion="7.14.2")}catch{}var Ts=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Nr=a.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:s,replace:i,unstable_mask:l,state:c,target:d,to:f,preventScrollReset:p,viewTransition:h,unstable_defaultShouldRevalidate:m,...w},g){let{basename:v,navigator:b,unstable_useTransitions:y}=a.useContext(Le),x=typeof f=="string"&&Ts.test(f),C=ks(f,v);f=C.to;let k=iu(f,{relative:o}),E=Ue(),R=null;if(l){let W=xr(l,[],E.unstable_mask?E.unstable_mask.pathname:"/",!0);v!=="/"&&(W.pathname=W.pathname==="/"?v:Se([v,W.pathname])),R=b.createHref(W)}let[S,M,I]=Fu(r,w),B=Zu(f,{replace:i,unstable_mask:l,state:c,target:d,preventScrollReset:p,relative:o,viewTransition:h,unstable_defaultShouldRevalidate:m,unstable_useTransitions:y});function V(W){t&&t(W),W.defaultPrevented||B(W)}let $=!(C.isExternal||s),z=a.createElement("a",{...w,...I,href:($?R:void 0)||C.absoluteURL||k,onClick:$?V:t,ref:Vu(g,M),target:d,"data-discover":!x&&n==="render"?"true":void 0});return S&&!x?a.createElement(a.Fragment,null,z,a.createElement(Bu,{page:k})):z});Nr.displayName="Link";var Uu=a.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:s,to:i,viewTransition:l,children:c,...d},f){let p=Tt(i,{relative:d.relative}),h=Ue(),m=a.useContext(wn),{navigator:w,basename:g}=a.useContext(Le),v=m!=null&&ed(p)&&l===!0,b=w.encodeLocation?w.encodeLocation(p).pathname:p.pathname,y=h.pathname,x=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;n||(y=y.toLowerCase(),x=x?x.toLowerCase():null,b=b.toLowerCase()),x&&g&&(x=tt(x,g)||x);const C=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let k=y===b||!o&&y.startsWith(b)&&y.charAt(C)==="/",E=x!=null&&(x===b||!o&&x.startsWith(b)&&x.charAt(b.length)==="/"),R={isActive:k,isPending:E,isTransitioning:v},S=k?t:void 0,M;typeof r=="function"?M=r(R):M=[r,k?"active":null,E?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let I=typeof s=="function"?s(R):s;return a.createElement(Nr,{...d,"aria-current":S,className:M,ref:f,style:I,to:i,viewTransition:l},typeof c=="function"?c(R):c)});Uu.displayName="NavLink";var Gu=a.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:s,method:i=en,action:l,onSubmit:c,relative:d,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:h,...m},w)=>{let{unstable_useTransitions:g}=a.useContext(Le),v=Ju(),b=Qu(l,{relative:d}),y=i.toLowerCase()==="get"?"get":"post",x=typeof l=="string"&&Ts.test(l),C=k=>{if(c&&c(k),k.defaultPrevented)return;k.preventDefault();let E=k.nativeEvent.submitter,R=E?.getAttribute("formmethod")||i,S=()=>v(E||k.currentTarget,{fetcherKey:t,method:R,navigate:n,replace:o,state:s,relative:d,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:h});g&&n!==!1?a.startTransition(()=>S()):S()};return a.createElement("form",{ref:w,method:y,action:b,onSubmit:r?c:C,...m,"data-discover":!x&&e==="render"?"true":void 0})});Gu.displayName="Form";function Yu(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Is(e){let t=a.useContext(St);return ue(t,Yu(e)),t}function Zu(e,{target:t,replace:n,unstable_mask:r,state:o,preventScrollReset:s,relative:i,viewTransition:l,unstable_defaultShouldRevalidate:c,unstable_useTransitions:d}={}){let f=lu(),p=Ue(),h=Tt(e,{relative:i});return a.useCallback(m=>{if(Ru(m,t)){m.preventDefault();let w=n!==void 0?n:sr(p)===sr(h),g=()=>f(e,{replace:w,unstable_mask:r,state:o,preventScrollReset:s,relative:i,viewTransition:l,unstable_defaultShouldRevalidate:c});d?a.startTransition(()=>g()):g()}},[p,f,h,n,r,o,t,e,s,i,l,c,d])}var Ku=0,Xu=()=>`__${String(++Ku)}__`;function Ju(){let{router:e}=Is("useSubmit"),{basename:t}=a.useContext(Le),n=bu(),r=e.fetch,o=e.navigate;return a.useCallback(async(s,i={})=>{let{action:l,method:c,encType:d,formData:f,body:p}=ju(s,t);if(i.navigate===!1){let h=i.fetcherKey||Xu();await r(h,n,i.action||l,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:f,body:p,formMethod:i.method||c,formEncType:i.encType||d,flushSync:i.flushSync})}else await o(i.action||l,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:f,body:p,formMethod:i.method||c,formEncType:i.encType||d,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[r,o,t,n])}function Qu(e,{relative:t}={}){let{basename:n}=a.useContext(Le),r=a.useContext(qe);ue(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),s={...Tt(e||".",{relative:t})},i=Ue();if(e==null){s.search=i.search;let l=new URLSearchParams(s.search),c=l.getAll("index");if(c.some(f=>f==="")){l.delete("index"),c.filter(p=>p).forEach(p=>l.append("index",p));let f=l.toString();s.search=f?`?${f}`:""}}return(!e||e===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:Se([n,s.pathname])),sr(s)}function ed(e,{relative:t}={}){let n=a.useContext(Ls);ue(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Is("useViewTransitionState"),o=Tt(e,{relative:t});if(!n.isTransitioning)return!1;let s=tt(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=tt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ln(o.pathname,i)!=null||ln(o.pathname,s)!=null}const td="_card_o236w_1",nd="_link_o236w_17",po={card:td,link:nd},rd=_.memo(({text:e,width:t,height:n,className:r,backgroundColor:o,imageUrl:s,textColor:i,link:l})=>{const c=A(po.card,{[po.link]:l},r),d=_.useMemo(()=>({backgroundColor:o,...i&&{color:i},...t&&{width:t},...n&&{height:`${n}px`},...s&&{backgroundImage:`url(${s})`}}),[o,n,s,i,t]);return l?u.jsx(Nr,{className:c,style:d,to:l,children:u.jsx("span",{children:e})}):u.jsx("div",{className:c,style:d,children:u.jsx("span",{children:e})})}),od="_carouselWrapper_hjngo_1",sd="_carousel_hjngo_1",ad="_viewport_hjngo_13",id="_slide_hjngo_19",ld="_activeSlide_hjngo_24",cd="_itemContent_hjngo_28",ud="_controls_hjngo_36",dd="_carouselControl_hjngo_48",fd="_prevIcon_hjngo_71",pd="_nextIcon_hjngo_72",md="_indicators_hjngo_90",hd="_activeIndicator_hjngo_115",we={carouselWrapper:od,carousel:sd,viewport:ad,slide:id,activeSlide:ld,itemContent:cd,controls:ud,carouselControl:dd,prevIcon:fd,nextIcon:pd,indicators:md,activeIndicator:hd},gd=e=>"items"in e&&Array.isArray(e.items)&&"renderItem"in e&&typeof e.renderItem=="function",vd=e=>gd(e)?e.items.map((t,n)=>({key:`${t.id}-${n}`,content:e.renderItem(t),caption:t.caption})):_.Children.toArray(e.children).map((t,n)=>({key:_.isValidElement(t)&&t.key!==null&&t.key!==void 0&&t.key!=="."?String(t.key):`slide-${n}`,content:t})),wd=e=>{const t={...e};return delete t.items,delete t.renderItem,delete t.children,t},bd=e=>{const t=vd(e),n=t.length,r=wd(e),{className:o,dark:s,enableTouch:i,fade:l,interval:c,keyboard:d=!0,pause:f,ride:p,slide:h,...m}=r,[w,g]=_.useState(0),v=()=>{g(E=>E===n-1?0:E+1)},b=()=>{g(E=>E===0?n-1:E-1)},y=E=>{g(E)},x=n>1,C=_.useMemo(()=>t.map(E=>({key:E.key})),[t]),k=E=>{m.onKeyDown?.(E),!(E.defaultPrevented||!d||!x)&&(E.key==="ArrowLeft"&&b(),E.key==="ArrowRight"&&v())};return n?x?u.jsx("div",{className:we.carouselWrapper,children:u.jsxs("div",{...m,className:[we.carousel,o].filter(Boolean).join(" "),onKeyDown:k,role:"region","aria-roledescription":"carousel",children:[u.jsx("div",{className:we.viewport,children:t.map((E,R)=>u.jsx("div",{className:[we.slide,R===w?we.activeSlide:""].filter(Boolean).join(" "),"aria-hidden":R!==w,children:u.jsx("div",{className:we.itemContent,children:E.content})},E.key))}),u.jsxs("div",{className:we.controls,children:[u.jsx("button",{className:we.carouselControl,type:"button",onClick:b,"aria-label":"Previous slide",children:u.jsx("span",{className:we.prevIcon,"aria-hidden":"true"})}),u.jsx("div",{className:we.indicators,children:C.map((E,R)=>u.jsx("button",{className:R===w?we.activeIndicator:void 0,type:"button",onClick:()=>y(R),"aria-label":`Go to slide ${R+1}`,"aria-current":R===w},E.key))}),u.jsx("button",{className:we.carouselControl,type:"button",onClick:v,"aria-label":"Next slide",children:u.jsx("span",{className:we.nextIcon,"aria-hidden":"true"})})]})]})}):u.jsx("div",{className:we.carouselWrapper,children:t[0].content}):null},xe=8;function xd(e,t="top"){const{left:n,right:r,top:o,bottom:s,width:i,height:l}=e,c=n+i/2,d=o+l/2;switch(t){case"top":return{left:c,top:o-xe,transform:"translate(-50%, -100%)"};case"topLeft":return{left:n,top:o-xe,transform:"translateY(-100%)"};case"topRight":return{left:r,top:o-xe,transform:"translate(-100%, -100%)"};case"bottom":return{left:c,top:s+xe,transform:"translate(-50%, 0)"};case"bottomLeft":return{left:n,top:s+xe,transform:"translateY(0)"};case"bottomRight":return{left:r,top:s+xe,transform:"translate(-100%, 0)"};case"left":return{left:n-xe,top:d,transform:"translate(-100%, -50%)"};case"leftTop":return{left:n-xe,top:o,transform:"translate(-100%, 0)"};case"leftBottom":return{left:n-xe,top:s,transform:"translate(-100%, -100%)"};case"right":return{left:r+xe,top:d,transform:"translate(0, -50%)"};case"rightTop":return{left:r+xe,top:o,transform:"translate(0, 0)"};case"rightBottom":return{left:r+xe,top:s,transform:"translate(0, -100%)"};default:return{left:c,top:o-xe,transform:"translate(-50%, -100%)"}}}const yd="_overlay_1xs4r_1",_d="_fadeIn_1xs4r_1",Cd="_arrow_1xs4r_16",Ed="_top_1xs4r_22",kd="_bottom_1xs4r_28",Sd="_left_1xs4r_34",Rd="_right_1xs4r_40",Un={overlay:yd,fadeIn:_d,arrow:Cd,top:Ed,bottom:kd,left:Sd,right:Rd};function Ld(e){return e.startsWith("top")?"bottom":e.startsWith("bottom")?"top":e.startsWith("left")?"right":e.startsWith("right")?"left":"top"}const jr=_.memo(({title:e,open:t,defaultOpen:n=!1,trigger:r="hover",mouseEnterDelay:o=100,mouseLeaveDelay:s=100,onOpenChange:i,placement:l="top",arrow:c=!0,children:d,overlayClassName:f,getPopupContainer:p=()=>document.body})=>{const h=t!==void 0,[m,w]=_.useState(n),g=h?t:m,v=_.useCallback(P=>{h||w(P),i?.(P)},[h,i]),b=_.useRef(null),[y,x]=_.useState(null),C=_.useRef(null),k=_.useRef(null),E=Array.isArray(r)?r:[r],R=E.includes("hover"),S=E.includes("click"),M=_.useCallback(()=>{C.current&&(clearTimeout(C.current),C.current=null)},[]),I=_.useCallback(()=>{k.current&&(clearTimeout(k.current),k.current=null)},[]),B=_.useCallback(()=>{R&&(I(),C.current=setTimeout(()=>v(!0),o))},[R,o,v,I]),V=_.useCallback(()=>{R&&(M(),k.current=setTimeout(()=>v(!1),s))},[R,s,v,M]),$=_.useCallback(P=>{S&&(P.preventDefault(),v(!g))},[S,g,v]);_.useEffect(()=>{if(!S||!g||h)return;const P=K=>{const L=b.current;L&&!L.contains(K.target)&&v(!1)};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[S,g,h,v]),_.useLayoutEffect(()=>{if(!g||!b.current){x(null);return}const P=b.current.getBoundingClientRect();x(xd(P,l))},[g,l]),_.useEffect(()=>()=>{M(),I()},[M,I]);const z=typeof document<"u"?p():null,W=Ld(l),F=g&&e!=null&&e!==""&&y&&z&&hn.createPortal(u.jsxs("span",{className:A(Un.overlay,f),style:{left:y.left,top:y.top,transform:y.transform},role:"tooltip",children:[e,c&&u.jsx("span",{className:A(Un.arrow,Un[W])})]}),z),q=!h&&(R||S)?{onMouseEnter:B,onMouseLeave:V,onClick:S?$:void 0}:{};return u.jsxs(u.Fragment,{children:[u.jsx("span",{ref:b,...q,children:d}),F]})});jr.displayName="TooltipDark";const Nd="_wrapper_cybwv_1",jd="_trigger_cybwv_5",Pd="_icon_cybwv_27",Gn={wrapper:Nd,trigger:jd,icon:Pd},Ds=_.memo(({children:e,onClick:t,copied:n,tooltipText:r="Скопировано",ariaLabel:o,showIcon:s=!0,className:i})=>{const l=_.useCallback(()=>{t()},[t]);return u.jsx("span",{className:Gn.wrapper,children:u.jsx(jr,{open:n,title:r,placement:"top",children:u.jsxs(wr,{type:"button",variant:null,size:null,className:A(Gn.trigger,i),onClick:l,"aria-label":o,"aria-live":"polite",children:[e,s&&u.jsx(Zo,{className:Gn.icon,"aria-hidden":!0})]})})})});Ds.displayName="CopyTextTrigger";function se(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function Ad(e,t){const n=a.createContext(t),r=s=>{const{children:i,...l}=s,c=a.useMemo(()=>l,Object.values(l));return u.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(s){const i=a.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function yn(e,t=[]){let n=[];function r(s,i){const l=a.createContext(i),c=n.length;n=[...n,i];const d=p=>{const{scope:h,children:m,...w}=p,g=h?.[e]?.[c]||l,v=a.useMemo(()=>w,Object.values(w));return u.jsx(g.Provider,{value:v,children:m})};d.displayName=s+"Provider";function f(p,h){const m=h?.[e]?.[c]||l,w=a.useContext(m);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(i=>a.createContext(i));return function(l){const c=l?.[e]||s;return a.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,Md(o,...t)]}function Md(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((l,{useScope:c,scopeName:d})=>{const p=c(s)[`__scope${d}`];return{...l,...p}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Od(e){const t=Td(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,l=a.Children.toArray(s),c=l.find(Dd);if(c){const d=c.props.children,f=l.map(p=>p===c?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:p);return u.jsx(t,{...i,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,f):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Td(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=Fd(o),l=$d(s,o.props);return o.type!==a.Fragment&&(l.ref=r?Ot(r,i):i),a.cloneElement(o,l)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Id=Symbol("radix.slottable");function Dd(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Id}function $d(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const c=s(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Fd(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Bd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],he=Bd.reduce((e,t)=>{const n=Od(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...l}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function zd(e,t){e&&Go.flushSync(()=>e.dispatchEvent(t))}function _t(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>t.current?.(...n),[])}function Wd(e,t=globalThis?.document){const n=_t(e);a.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Hd="DismissableLayer",ar="dismissableLayer.update",Vd="dismissableLayer.pointerDownOutside",qd="dismissableLayer.focusOutside",mo,$s=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_n=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...c}=e,d=a.useContext($s),[f,p]=a.useState(null),h=f?.ownerDocument??globalThis?.document,[,m]=a.useState({}),w=Ce(t,R=>p(R)),g=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(v),y=f?g.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,C=y>=b,k=Yd(R=>{const S=R.target,M=[...d.branches].some(I=>I.contains(S));!C||M||(o?.(R),i?.(R),R.defaultPrevented||l?.())},h),E=Zd(R=>{const S=R.target;[...d.branches].some(I=>I.contains(S))||(s?.(R),i?.(R),R.defaultPrevented||l?.())},h);return Wd(R=>{y===d.layers.size-1&&(r?.(R),!R.defaultPrevented&&l&&(R.preventDefault(),l()))},h),a.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(mo=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),ho(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=mo)}},[f,h,n,d]),a.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),ho())},[f,d]),a.useEffect(()=>{const R=()=>m({});return document.addEventListener(ar,R),()=>document.removeEventListener(ar,R)},[]),u.jsx(he.div,{...c,ref:w,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:se(e.onFocusCapture,E.onFocusCapture),onBlurCapture:se(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:se(e.onPointerDownCapture,k.onPointerDownCapture)})});_n.displayName=Hd;var Ud="DismissableLayerBranch",Gd=a.forwardRef((e,t)=>{const n=a.useContext($s),r=a.useRef(null),o=Ce(t,r);return a.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),u.jsx(he.div,{...e,ref:o})});Gd.displayName=Ud;function Yd(e,t=globalThis?.document){const n=_t(e),r=a.useRef(!1),o=a.useRef(()=>{});return a.useEffect(()=>{const s=l=>{if(l.target&&!r.current){let c=function(){Fs(Vd,n,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Zd(e,t=globalThis?.document){const n=_t(e),r=a.useRef(!1);return a.useEffect(()=>{const o=s=>{s.target&&!r.current&&Fs(qd,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ho(){const e=new CustomEvent(ar);document.dispatchEvent(e)}function Fs(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?zd(o,s):o.dispatchEvent(s)}var nt=globalThis?.document?a.useLayoutEffect:()=>{},Kd=a[" useId ".trim().toString()]||(()=>{}),Xd=0;function Pt(e){const[t,n]=a.useState(Kd());return nt(()=>{n(r=>r??String(Xd++))},[e]),e||(t?`radix-${t}`:"")}const Jd=["top","right","bottom","left"],rt=Math.min,ye=Math.max,un=Math.round,Vt=Math.floor,Oe=e=>({x:e,y:e}),Qd={left:"right",right:"left",bottom:"top",top:"bottom"};function ir(e,t,n){return ye(e,rt(t,n))}function He(e,t){return typeof e=="function"?e(t):e}function Ve(e){return e.split("-")[0]}function Rt(e){return e.split("-")[1]}function Pr(e){return e==="x"?"y":"x"}function Ar(e){return e==="y"?"height":"width"}function Me(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Mr(e){return Pr(Me(e))}function ef(e,t,n){n===void 0&&(n=!1);const r=Rt(e),o=Mr(e),s=Ar(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=dn(i)),[i,dn(i)]}function tf(e){const t=dn(e);return[lr(e),t,lr(t)]}function lr(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const go=["left","right"],vo=["right","left"],nf=["top","bottom"],rf=["bottom","top"];function of(e,t,n){switch(e){case"top":case"bottom":return n?t?vo:go:t?go:vo;case"left":case"right":return t?nf:rf;default:return[]}}function sf(e,t,n,r){const o=Rt(e);let s=of(Ve(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(lr)))),s}function dn(e){const t=Ve(e);return Qd[t]+e.slice(t.length)}function af(e){return{top:0,right:0,bottom:0,left:0,...e}}function Bs(e){return typeof e!="number"?af(e):{top:e,right:e,bottom:e,left:e}}function fn(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function wo(e,t,n){let{reference:r,floating:o}=e;const s=Me(t),i=Mr(t),l=Ar(i),c=Ve(t),d=s==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,h=r[l]/2-o[l]/2;let m;switch(c){case"top":m={x:f,y:r.y-o.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:p};break;case"left":m={x:r.x-o.width,y:p};break;default:m={x:r.x,y:r.y}}switch(Rt(t)){case"start":m[i]-=h*(n&&d?-1:1);break;case"end":m[i]+=h*(n&&d?-1:1);break}return m}async function lf(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:m=0}=He(t,e),w=Bs(m),v=l[h?p==="floating"?"reference":"floating":p],b=fn(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:d,rootBoundary:f,strategy:c})),y=p==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),C=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},k=fn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:x,strategy:c}):y);return{top:(b.top-k.top+w.top)/C.y,bottom:(k.bottom-b.bottom+w.bottom)/C.y,left:(b.left-k.left+w.left)/C.x,right:(k.right-b.right+w.right)/C.x}}const cf=50,uf=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,l=i.detectOverflow?i:{...i,detectOverflow:lf},c=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=wo(d,r,c),h=r,m=0;const w={};for(let g=0;g<s.length;g++){const v=s[g];if(!v)continue;const{name:b,fn:y}=v,{x,y:C,data:k,reset:E}=await y({x:f,y:p,initialPlacement:r,placement:h,strategy:o,middlewareData:w,rects:d,platform:l,elements:{reference:e,floating:t}});f=x??f,p=C??p,w[b]={...w[b],...k},E&&m<cf&&(m++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(d=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:p}=wo(d,h,c)),g=-1)}return{x:f,y:p,placement:h,strategy:o,middlewareData:w}},df=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:l,middlewareData:c}=t,{element:d,padding:f=0}=He(e,t)||{};if(d==null)return{};const p=Bs(f),h={x:n,y:r},m=Mr(o),w=Ar(m),g=await i.getDimensions(d),v=m==="y",b=v?"top":"left",y=v?"bottom":"right",x=v?"clientHeight":"clientWidth",C=s.reference[w]+s.reference[m]-h[m]-s.floating[w],k=h[m]-s.reference[m],E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let R=E?E[x]:0;(!R||!await(i.isElement==null?void 0:i.isElement(E)))&&(R=l.floating[x]||s.floating[w]);const S=C/2-k/2,M=R/2-g[w]/2-1,I=rt(p[b],M),B=rt(p[y],M),V=I,$=R-g[w]-B,z=R/2-g[w]/2+S,W=ir(V,z,$),F=!c.arrow&&Rt(o)!=null&&z!==W&&s.reference[w]/2-(z<V?I:B)-g[w]/2<0,q=F?z<V?z-V:z-$:0;return{[m]:h[m]+q,data:{[m]:W,centerOffset:z-W-q,...F&&{alignmentOffset:q}},reset:F}}}),ff=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:g=!0,...v}=He(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=Ve(o),y=Me(l),x=Ve(l)===l,C=await(c.isRTL==null?void 0:c.isRTL(d.floating)),k=h||(x||!g?[dn(l)]:tf(l)),E=w!=="none";!h&&E&&k.push(...sf(l,g,w,C));const R=[l,...k],S=await c.detectOverflow(t,v),M=[];let I=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&M.push(S[b]),p){const z=ef(o,i,C);M.push(S[z[0]],S[z[1]])}if(I=[...I,{placement:o,overflows:M}],!M.every(z=>z<=0)){var B,V;const z=(((B=s.flip)==null?void 0:B.index)||0)+1,W=R[z];if(W&&(!(p==="alignment"?y!==Me(W):!1)||I.every(P=>Me(P.placement)===y?P.overflows[0]>0:!0)))return{data:{index:z,overflows:I},reset:{placement:W}};let F=(V=I.filter(q=>q.overflows[0]<=0).sort((q,P)=>q.overflows[1]-P.overflows[1])[0])==null?void 0:V.placement;if(!F)switch(m){case"bestFit":{var $;const q=($=I.filter(P=>{if(E){const K=Me(P.placement);return K===y||K==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(K=>K>0).reduce((K,L)=>K+L,0)]).sort((P,K)=>P[1]-K[1])[0])==null?void 0:$[0];q&&(F=q);break}case"initialPlacement":F=l;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function bo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xo(e){return Jd.some(t=>e[t]>=0)}const pf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=He(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),l=bo(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:xo(l)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),l=bo(i,n.floating);return{data:{escapedOffsets:l,escaped:xo(l)}}}default:return{}}}}},zs=new Set(["left","top"]);async function mf(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Ve(n),l=Rt(n),c=Me(n)==="y",d=zs.has(i)?-1:1,f=s&&c?-1:1,p=He(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof w=="number"&&(m=l==="end"?w*-1:w),c?{x:m*f,y:h*d}:{x:h*d,y:m*f}}const hf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:l}=t,c=await mf(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},gf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:c={fn:b=>{let{x:y,y:x}=b;return{x:y,y:x}}},...d}=He(e,t),f={x:n,y:r},p=await s.detectOverflow(t,d),h=Me(Ve(o)),m=Pr(h);let w=f[m],g=f[h];if(i){const b=m==="y"?"top":"left",y=m==="y"?"bottom":"right",x=w+p[b],C=w-p[y];w=ir(x,w,C)}if(l){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",x=g+p[b],C=g-p[y];g=ir(x,g,C)}const v=c.fn({...t,[m]:w,[h]:g});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[m]:i,[h]:l}}}}}},vf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=He(e,t),f={x:n,y:r},p=Me(o),h=Pr(p);let m=f[h],w=f[p];const g=He(l,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const x=h==="y"?"height":"width",C=s.reference[h]-s.floating[x]+v.mainAxis,k=s.reference[h]+s.reference[x]-v.mainAxis;m<C?m=C:m>k&&(m=k)}if(d){var b,y;const x=h==="y"?"width":"height",C=zs.has(Ve(o)),k=s.reference[p]-s.floating[x]+(C&&((b=i.offset)==null?void 0:b[p])||0)+(C?0:v.crossAxis),E=s.reference[p]+s.reference[x]+(C?0:((y=i.offset)==null?void 0:y[p])||0)-(C?v.crossAxis:0);w<k?w=k:w>E&&(w=E)}return{[h]:m,[p]:w}}}},wf=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:l}=t,{apply:c=()=>{},...d}=He(e,t),f=await i.detectOverflow(t,d),p=Ve(o),h=Rt(o),m=Me(o)==="y",{width:w,height:g}=s.floating;let v,b;p==="top"||p==="bottom"?(v=p,b=h===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(b=p,v=h==="end"?"top":"bottom");const y=g-f.top-f.bottom,x=w-f.left-f.right,C=rt(g-f[v],y),k=rt(w-f[b],x),E=!t.middlewareData.shift;let R=C,S=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=y),E&&!h){const I=ye(f.left,0),B=ye(f.right,0),V=ye(f.top,0),$=ye(f.bottom,0);m?S=w-2*(I!==0||B!==0?I+B:ye(f.left,f.right)):R=g-2*(V!==0||$!==0?V+$:ye(f.top,f.bottom))}await c({...t,availableWidth:S,availableHeight:R});const M=await i.getDimensions(l.floating);return w!==M.width||g!==M.height?{reset:{rects:!0}}:{}}}};function Cn(){return typeof window<"u"}function Lt(e){return Ws(e)?(e.nodeName||"").toLowerCase():"#document"}function _e(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(e){var t;return(t=(Ws(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ws(e){return Cn()?e instanceof Node||e instanceof _e(e).Node:!1}function me(e){return Cn()?e instanceof Element||e instanceof _e(e).Element:!1}function Ge(e){return Cn()?e instanceof HTMLElement||e instanceof _e(e).HTMLElement:!1}function yo(e){return!Cn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _e(e).ShadowRoot}function It(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Re(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function bf(e){return/^(table|td|th)$/.test(Lt(e))}function En(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const xf=/transform|translate|scale|rotate|perspective|filter/,yf=/paint|layout|strict|content/,dt=e=>!!e&&e!=="none";let Yn;function Or(e){const t=me(e)?Re(e):e;return dt(t.transform)||dt(t.translate)||dt(t.scale)||dt(t.rotate)||dt(t.perspective)||!Tr()&&(dt(t.backdropFilter)||dt(t.filter))||xf.test(t.willChange||"")||yf.test(t.contain||"")}function _f(e){let t=ot(e);for(;Ge(t)&&!Ct(t);){if(Or(t))return t;if(En(t))return null;t=ot(t)}return null}function Tr(){return Yn==null&&(Yn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Yn}function Ct(e){return/^(html|body|#document)$/.test(Lt(e))}function Re(e){return _e(e).getComputedStyle(e)}function kn(e){return me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ot(e){if(Lt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||yo(e)&&e.host||Ie(e);return yo(t)?t.host:t}function Hs(e){const t=ot(e);return Ct(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ge(t)&&It(t)?t:Hs(t)}function At(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Hs(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=_e(o);if(s){const l=cr(i);return t.concat(i,i.visualViewport||[],It(o)?o:[],l&&n?At(l):[])}else return t.concat(o,At(o,[],n))}function cr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Vs(e){const t=Re(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ge(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=un(n)!==s||un(r)!==i;return l&&(n=s,r=i),{width:n,height:r,$:l}}function Ir(e){return me(e)?e:e.contextElement}function xt(e){const t=Ir(e);if(!Ge(t))return Oe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Vs(t);let i=(s?un(n.width):n.width)/r,l=(s?un(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Cf=Oe(0);function qs(e){const t=_e(e);return!Tr()||!t.visualViewport?Cf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ef(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==_e(e)?!1:t}function pt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Ir(e);let i=Oe(1);t&&(r?me(r)&&(i=xt(r)):i=xt(e));const l=Ef(s,n,r)?qs(s):Oe(0);let c=(o.left+l.x)/i.x,d=(o.top+l.y)/i.y,f=o.width/i.x,p=o.height/i.y;if(s){const h=_e(s),m=r&&me(r)?_e(r):r;let w=h,g=cr(w);for(;g&&r&&m!==w;){const v=xt(g),b=g.getBoundingClientRect(),y=Re(g),x=b.left+(g.clientLeft+parseFloat(y.paddingLeft))*v.x,C=b.top+(g.clientTop+parseFloat(y.paddingTop))*v.y;c*=v.x,d*=v.y,f*=v.x,p*=v.y,c+=x,d+=C,w=_e(g),g=cr(w)}}return fn({width:f,height:p,x:c,y:d})}function Sn(e,t){const n=kn(e).scrollLeft;return t?t.left+n:pt(Ie(e)).left+n}function Us(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Sn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function kf(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Ie(r),l=t?En(t.floating):!1;if(r===i||l&&s)return n;let c={scrollLeft:0,scrollTop:0},d=Oe(1);const f=Oe(0),p=Ge(r);if((p||!p&&!s)&&((Lt(r)!=="body"||It(i))&&(c=kn(r)),p)){const m=pt(r);d=xt(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}const h=i&&!p&&!s?Us(i,c):Oe(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+h.x,y:n.y*d.y-c.scrollTop*d.y+f.y+h.y}}function Sf(e){return Array.from(e.getClientRects())}function Rf(e){const t=Ie(e),n=kn(e),r=e.ownerDocument.body,o=ye(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ye(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Sn(e);const l=-n.scrollTop;return Re(r).direction==="rtl"&&(i+=ye(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:l}}const _o=25;function Lf(e,t){const n=_e(e),r=Ie(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,l=0,c=0;if(o){s=o.width,i=o.height;const f=Tr();(!f||f&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}const d=Sn(r);if(d<=0){const f=r.ownerDocument,p=f.body,h=getComputedStyle(p),m=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,w=Math.abs(r.clientWidth-p.clientWidth-m);w<=_o&&(s-=w)}else d<=_o&&(s+=d);return{width:s,height:i,x:l,y:c}}function Nf(e,t){const n=pt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Ge(e)?xt(e):Oe(1),i=e.clientWidth*s.x,l=e.clientHeight*s.y,c=o*s.x,d=r*s.y;return{width:i,height:l,x:c,y:d}}function Co(e,t,n){let r;if(t==="viewport")r=Lf(e,n);else if(t==="document")r=Rf(Ie(e));else if(me(t))r=Nf(t,n);else{const o=qs(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return fn(r)}function Gs(e,t){const n=ot(e);return n===t||!me(n)||Ct(n)?!1:Re(n).position==="fixed"||Gs(n,t)}function jf(e,t){const n=t.get(e);if(n)return n;let r=At(e,[],!1).filter(l=>me(l)&&Lt(l)!=="body"),o=null;const s=Re(e).position==="fixed";let i=s?ot(e):e;for(;me(i)&&!Ct(i);){const l=Re(i),c=Or(i);!c&&l.position==="fixed"&&(o=null),(s?!c&&!o:!c&&l.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||It(i)&&!c&&Gs(e,i))?r=r.filter(f=>f!==i):o=l,i=ot(i)}return t.set(e,r),r}function Pf(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?En(t)?[]:jf(t,this._c):[].concat(n),r],l=Co(t,i[0],o);let c=l.top,d=l.right,f=l.bottom,p=l.left;for(let h=1;h<i.length;h++){const m=Co(t,i[h],o);c=ye(m.top,c),d=rt(m.right,d),f=rt(m.bottom,f),p=ye(m.left,p)}return{width:d-p,height:f-c,x:p,y:c}}function Af(e){const{width:t,height:n}=Vs(e);return{width:t,height:n}}function Mf(e,t,n){const r=Ge(t),o=Ie(t),s=n==="fixed",i=pt(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const c=Oe(0);function d(){c.x=Sn(o)}if(r||!r&&!s)if((Lt(t)!=="body"||It(o))&&(l=kn(t)),r){const m=pt(t,!0,s,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&d();s&&!r&&o&&d();const f=o&&!r&&!s?Us(o,l):Oe(0),p=i.left+l.scrollLeft-c.x-f.x,h=i.top+l.scrollTop-c.y-f.y;return{x:p,y:h,width:i.width,height:i.height}}function Zn(e){return Re(e).position==="static"}function Eo(e,t){if(!Ge(e)||Re(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ie(e)===n&&(n=n.ownerDocument.body),n}function Ys(e,t){const n=_e(e);if(En(e))return n;if(!Ge(e)){let o=ot(e);for(;o&&!Ct(o);){if(me(o)&&!Zn(o))return o;o=ot(o)}return n}let r=Eo(e,t);for(;r&&bf(r)&&Zn(r);)r=Eo(r,t);return r&&Ct(r)&&Zn(r)&&!Or(r)?n:r||_f(e)||n}const Of=async function(e){const t=this.getOffsetParent||Ys,n=this.getDimensions,r=await n(e.floating);return{reference:Mf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Tf(e){return Re(e).direction==="rtl"}const If={convertOffsetParentRelativeRectToViewportRelativeRect:kf,getDocumentElement:Ie,getClippingRect:Pf,getOffsetParent:Ys,getElementRects:Of,getClientRects:Sf,getDimensions:Af,getScale:xt,isElement:me,isRTL:Tf};function Zs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Df(e,t){let n=null,r;const o=Ie(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const d=e.getBoundingClientRect(),{left:f,top:p,width:h,height:m}=d;if(l||t(),!h||!m)return;const w=Vt(p),g=Vt(o.clientWidth-(f+h)),v=Vt(o.clientHeight-(p+m)),b=Vt(f),x={rootMargin:-w+"px "+-g+"px "+-v+"px "+-b+"px",threshold:ye(0,rt(1,c))||1};let C=!0;function k(E){const R=E[0].intersectionRatio;if(R!==c){if(!C)return i();R?i(!1,R):r=setTimeout(()=>{i(!1,1e-7)},1e3)}R===1&&!Zs(d,e.getBoundingClientRect())&&i(),C=!1}try{n=new IntersectionObserver(k,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,x)}n.observe(e)}return i(!0),s}function Ks(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=Ir(e),f=o||s?[...d?At(d):[],...t?At(t):[]]:[];f.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const p=d&&l?Df(d,n):null;let h=-1,m=null;i&&(m=new ResizeObserver(b=>{let[y]=b;y&&y.target===d&&m&&t&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),n()}),d&&!c&&m.observe(d),t&&m.observe(t));let w,g=c?pt(e):null;c&&v();function v(){const b=pt(e);g&&!Zs(g,b)&&n(),g=b,w=requestAnimationFrame(v)}return n(),()=>{var b;f.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),p?.(),(b=m)==null||b.disconnect(),m=null,c&&cancelAnimationFrame(w)}}const $f=hf,Ff=gf,Bf=ff,zf=wf,Wf=pf,ko=df,Hf=vf,Vf=(e,t,n)=>{const r=new Map,o={platform:If,...n},s={...o.platform,_c:r};return uf(e,t,{...o,platform:s})};var qf=typeof document<"u",Uf=function(){},nn=qf?_.useLayoutEffect:Uf;function pn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!pn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!pn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Xs(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function So(e,t){const n=Xs(e);return Math.round(t*n)/n}function Kn(e){const t=a.useRef(e);return nn(()=>{t.current=e}),t}function Js(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[f,p]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=a.useState(r);pn(h,r)||m(r);const[w,g]=a.useState(null),[v,b]=a.useState(null),y=a.useCallback(P=>{P!==E.current&&(E.current=P,g(P))},[]),x=a.useCallback(P=>{P!==R.current&&(R.current=P,b(P))},[]),C=s||w,k=i||v,E=a.useRef(null),R=a.useRef(null),S=a.useRef(f),M=c!=null,I=Kn(c),B=Kn(o),V=Kn(d),$=a.useCallback(()=>{if(!E.current||!R.current)return;const P={placement:t,strategy:n,middleware:h};B.current&&(P.platform=B.current),Vf(E.current,R.current,P).then(K=>{const L={...K,isPositioned:V.current!==!1};z.current&&!pn(S.current,L)&&(S.current=L,Go.flushSync(()=>{p(L)}))})},[h,t,n,B,V]);nn(()=>{d===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,p(P=>({...P,isPositioned:!1})))},[d]);const z=a.useRef(!1);nn(()=>(z.current=!0,()=>{z.current=!1}),[]),nn(()=>{if(C&&(E.current=C),k&&(R.current=k),C&&k){if(I.current)return I.current(C,k,$);$()}},[C,k,$,I,M]);const W=a.useMemo(()=>({reference:E,floating:R,setReference:y,setFloating:x}),[y,x]),F=a.useMemo(()=>({reference:C,floating:k}),[C,k]),q=a.useMemo(()=>{const P={position:n,left:0,top:0};if(!F.floating)return P;const K=So(F.floating,f.x),L=So(F.floating,f.y);return l?{...P,transform:"translate("+K+"px, "+L+"px)",...Xs(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:L}},[n,l,F.floating,f.x,f.y]);return a.useMemo(()=>({...f,update:$,refs:W,elements:F,floatingStyles:q}),[f,$,W,F,q])}const Gf=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ko({element:r.current,padding:o}).fn(n):{}:r?ko({element:r,padding:o}).fn(n):{}}}},Qs=(e,t)=>{const n=$f(e);return{name:n.name,fn:n.fn,options:[e,t]}},Yf=(e,t)=>{const n=Ff(e);return{name:n.name,fn:n.fn,options:[e,t]}},Zf=(e,t)=>({fn:Hf(e).fn,options:[e,t]}),ea=(e,t)=>{const n=Bf(e);return{name:n.name,fn:n.fn,options:[e,t]}},ta=(e,t)=>{const n=zf(e);return{name:n.name,fn:n.fn,options:[e,t]}},Kf=(e,t)=>{const n=Wf(e);return{name:n.name,fn:n.fn,options:[e,t]}},Xf=(e,t)=>{const n=Gf(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Jf="Arrow",na=a.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return u.jsx(he.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});na.displayName=Jf;var Qf=na;function e1(e){const[t,n]=a.useState(void 0);return nt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,l;if("borderBoxSize"in s){const c=s.borderBoxSize,d=Array.isArray(c)?c[0]:c;i=d.inlineSize,l=d.blockSize}else i=e.offsetWidth,l=e.offsetHeight;n({width:i,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Dr="Popper",[ra,Rn]=yn(Dr),[t1,oa]=ra(Dr),sa=e=>{const{__scopePopper:t,children:n}=e,[r,o]=a.useState(null);return u.jsx(t1,{scope:t,anchor:r,onAnchorChange:o,children:n})};sa.displayName=Dr;var aa="PopperAnchor",ia=a.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=oa(aa,n),i=a.useRef(null),l=Ce(t,i),c=a.useRef(null);return a.useEffect(()=>{const d=c.current;c.current=r?.current||i.current,d!==c.current&&s.onAnchorChange(c.current)}),r?null:u.jsx(he.div,{...o,ref:l})});ia.displayName=aa;var $r="PopperContent",[n1,r1]=ra($r),la=a.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:w,...g}=e,v=oa($r,n),[b,y]=a.useState(null),x=Ce(t,pe=>y(pe)),[C,k]=a.useState(null),E=e1(C),R=E?.width??0,S=E?.height??0,M=r+(s!=="center"?"-"+s:""),I=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},B=Array.isArray(d)?d:[d],V=B.length>0,$={padding:I,boundary:B.filter(s1),altBoundary:V},{refs:z,floatingStyles:W,placement:F,isPositioned:q,middlewareData:P}=Js({strategy:"fixed",placement:M,whileElementsMounted:(...pe)=>Ks(...pe,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[Qs({mainAxis:o+S,alignmentAxis:i}),c&&Yf({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Zf():void 0,...$}),c&&ea({...$}),ta({...$,apply:({elements:pe,rects:D,availableWidth:Z,availableHeight:be})=>{const{width:ke,height:Ee}=D.reference,G=pe.floating.style;G.setProperty("--radix-popper-available-width",`${Z}px`),G.setProperty("--radix-popper-available-height",`${be}px`),G.setProperty("--radix-popper-anchor-width",`${ke}px`),G.setProperty("--radix-popper-anchor-height",`${Ee}px`)}}),C&&Xf({element:C,padding:l}),a1({arrowWidth:R,arrowHeight:S}),h&&Kf({strategy:"referenceHidden",...$})]}),[K,L]=da(F),de=_t(w);nt(()=>{q&&de?.()},[q,de]);const fe=P.arrow?.x,ne=P.arrow?.y,ae=P.arrow?.centerOffset!==0,[U,Q]=a.useState();return nt(()=>{b&&Q(window.getComputedStyle(b).zIndex)},[b]),u.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:q?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(" "),...P.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(n1,{scope:n,placedSide:K,onArrowChange:k,arrowX:fe,arrowY:ne,shouldHideArrow:ae,children:u.jsx(he.div,{"data-side":K,"data-align":L,...g,ref:x,style:{...g.style,animation:q?void 0:"none"}})})})});la.displayName=$r;var ca="PopperArrow",o1={top:"bottom",right:"left",bottom:"top",left:"right"},ua=a.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=r1(ca,r),i=o1[s.placedSide];return u.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:u.jsx(Qf,{...o,ref:n,style:{...o.style,display:"block"}})})});ua.displayName=ca;function s1(e){return e!==null}var a1=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[d,f]=da(n),p={start:"0%",center:"50%",end:"100%"}[f],h=(o.arrow?.x??0)+l/2,m=(o.arrow?.y??0)+c/2;let w="",g="";return d==="bottom"?(w=i?p:`${h}px`,g=`${-c}px`):d==="top"?(w=i?p:`${h}px`,g=`${r.floating.height+c}px`):d==="right"?(w=`${-c}px`,g=i?p:`${m}px`):d==="left"&&(w=`${r.floating.width+c}px`,g=i?p:`${m}px`),{data:{x:w,y:g}}}});function da(e){const[t,n="center"]=e.split("-");return[t,n]}var fa=sa,Fr=ia,pa=la,ma=ua,i1="Portal",Ln=a.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=a.useState(!1);nt(()=>s(!0),[]);const i=n||o&&globalThis?.document?.body;return i?hn.createPortal(u.jsx(he.div,{...r,ref:t}),i):null});Ln.displayName=i1;function l1(e,t){return a.useReducer((n,r)=>t[n][r]??n,e)}var at=e=>{const{present:t,children:n}=e,r=c1(t),o=typeof n=="function"?n({present:r.isPresent}):a.Children.only(n),s=Ce(r.ref,u1(o));return typeof n=="function"||r.isPresent?a.cloneElement(o,{ref:s}):null};at.displayName="Presence";function c1(e){const[t,n]=a.useState(),r=a.useRef(null),o=a.useRef(e),s=a.useRef("none"),i=e?"mounted":"unmounted",[l,c]=l1(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const d=qt(r.current);s.current=l==="mounted"?d:"none"},[l]),nt(()=>{const d=r.current,f=o.current;if(f!==e){const h=s.current,m=qt(d);e?c("MOUNT"):m==="none"||d?.display==="none"?c("UNMOUNT"):c(f&&h!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),nt(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=m=>{const g=qt(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&g&&(c("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=m=>{m.target===t&&(s.current=qt(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:a.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function qt(e){return e?.animationName||"none"}function u1(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var d1=Symbol("radix.slottable");function f1(e){const t=({children:n})=>u.jsx(u.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=d1,t}var p1=a[" useInsertionEffect ".trim().toString()]||nt;function Br({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=m1({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:o;{const f=a.useRef(e!==void 0);a.useEffect(()=>{const p=f.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=l},[l,r])}const d=a.useCallback(f=>{if(l){const p=h1(f)?f(e):f;p!==e&&i.current?.(p)}else s(f)},[l,e,s,i]);return[c,d]}function m1({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),s=a.useRef(t);return p1(()=>{s.current=t},[t]),a.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function h1(e){return typeof e=="function"}var g1=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),v1="VisuallyHidden",ha=a.forwardRef((e,t)=>u.jsx(he.span,{...e,ref:t,style:{...g1,...e.style}}));ha.displayName=v1;var w1=ha,[Nn]=yn("Tooltip",[Rn]),jn=Rn(),ga="TooltipProvider",b1=700,ur="tooltip.open",[x1,zr]=Nn(ga),va=e=>{const{__scopeTooltip:t,delayDuration:n=b1,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=a.useRef(!0),l=a.useRef(!1),c=a.useRef(0);return a.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),u.jsx(x1,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:a.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:a.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:a.useCallback(d=>{l.current=d},[]),disableHoverableContent:o,children:s})};va.displayName=ga;var Mt="Tooltip",[y1,Dt]=Nn(Mt),wa=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:l}=e,c=zr(Mt,e.__scopeTooltip),d=jn(t),[f,p]=a.useState(null),h=Pt(),m=a.useRef(0),w=i??c.disableHoverableContent,g=l??c.delayDuration,v=a.useRef(!1),[b,y]=Br({prop:r,defaultProp:o??!1,onChange:R=>{R?(c.onOpen(),document.dispatchEvent(new CustomEvent(ur))):c.onClose(),s?.(R)},caller:Mt}),x=a.useMemo(()=>b?v.current?"delayed-open":"instant-open":"closed",[b]),C=a.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,y(!0)},[y]),k=a.useCallback(()=>{window.clearTimeout(m.current),m.current=0,y(!1)},[y]),E=a.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,y(!0),m.current=0},g)},[g,y]);return a.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),u.jsx(fa,{...d,children:u.jsx(y1,{scope:t,contentId:h,open:b,stateAttribute:x,trigger:f,onTriggerChange:p,onTriggerEnter:a.useCallback(()=>{c.isOpenDelayedRef.current?E():C()},[c.isOpenDelayedRef,E,C]),onTriggerLeave:a.useCallback(()=>{w?k():(window.clearTimeout(m.current),m.current=0)},[k,w]),onOpen:C,onClose:k,disableHoverableContent:w,children:n})})};wa.displayName=Mt;var dr="TooltipTrigger",ba=a.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Dt(dr,n),s=zr(dr,n),i=jn(n),l=a.useRef(null),c=Ce(t,l,o.onTriggerChange),d=a.useRef(!1),f=a.useRef(!1),p=a.useCallback(()=>d.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),u.jsx(Fr,{asChild:!0,...i,children:u.jsx(he.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:se(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:se(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:se(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:se(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:se(e.onBlur,o.onClose),onClick:se(e.onClick,o.onClose)})})});ba.displayName=dr;var Wr="TooltipPortal",[_1,C1]=Nn(Wr,{forceMount:void 0}),xa=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Dt(Wr,t);return u.jsx(_1,{scope:t,forceMount:n,children:u.jsx(at,{present:n||s.open,children:u.jsx(Ln,{asChild:!0,container:o,children:r})})})};xa.displayName=Wr;var Et="TooltipContent",ya=a.forwardRef((e,t)=>{const n=C1(Et,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Dt(Et,e.__scopeTooltip);return u.jsx(at,{present:r||i.open,children:i.disableHoverableContent?u.jsx(_a,{side:o,...s,ref:t}):u.jsx(E1,{side:o,...s,ref:t})})}),E1=a.forwardRef((e,t)=>{const n=Dt(Et,e.__scopeTooltip),r=zr(Et,e.__scopeTooltip),o=a.useRef(null),s=Ce(t,o),[i,l]=a.useState(null),{trigger:c,onClose:d}=n,f=o.current,{onPointerInTransitChange:p}=r,h=a.useCallback(()=>{l(null),p(!1)},[p]),m=a.useCallback((w,g)=>{const v=w.currentTarget,b={x:w.clientX,y:w.clientY},y=N1(b,v.getBoundingClientRect()),x=j1(b,y),C=P1(g.getBoundingClientRect()),k=M1([...x,...C]);l(k),p(!0)},[p]);return a.useEffect(()=>()=>h(),[h]),a.useEffect(()=>{if(c&&f){const w=v=>m(v,f),g=v=>m(v,c);return c.addEventListener("pointerleave",w),f.addEventListener("pointerleave",g),()=>{c.removeEventListener("pointerleave",w),f.removeEventListener("pointerleave",g)}}},[c,f,m,h]),a.useEffect(()=>{if(i){const w=g=>{const v=g.target,b={x:g.clientX,y:g.clientY},y=c?.contains(v)||f?.contains(v),x=!A1(b,i);y?h():x&&(h(),d())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,f,i,d,h]),u.jsx(_a,{...e,ref:s})}),[k1,S1]=Nn(Mt,{isInside:!1}),R1=f1("TooltipContent"),_a=a.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...l}=e,c=Dt(Et,n),d=jn(n),{onClose:f}=c;return a.useEffect(()=>(document.addEventListener(ur,f),()=>document.removeEventListener(ur,f)),[f]),a.useEffect(()=>{if(c.trigger){const p=h=>{h.target?.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),u.jsx(_n,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:u.jsxs(pa,{"data-state":c.stateAttribute,...d,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(R1,{children:r}),u.jsx(k1,{scope:n,isInside:!0,children:u.jsx(w1,{id:c.contentId,role:"tooltip",children:o||r})})]})})});ya.displayName=Et;var Ca="TooltipArrow",L1=a.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=jn(n);return S1(Ca,n).isInside?null:u.jsx(ma,{...o,...r,ref:t})});L1.displayName=Ca;function N1(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function j1(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function P1(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function A1(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const l=t[s],c=t[i],d=l.x,f=l.y,p=c.x,h=c.y;f>r!=h>r&&n<(p-d)*(r-f)/(h-f)+d&&(o=!o)}return o}function M1(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),O1(t)}function O1(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var T1=va,I1=wa,D1=ba,$1=xa,Ea=ya;const F1=T1,B1=I1,z1=D1,ka=a.forwardRef(({className:e,sideOffset:t=4,...n},r)=>u.jsx($1,{children:u.jsx(Ea,{ref:r,sideOffset:t,className:Te("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 origin-(--radix-tooltip-content-transform-origin)",e),...n})}));ka.displayName=Ea.displayName;const W1="_anchor_twryn_1",H1="_tooltip_twryn_6",Ro={anchor:W1,tooltip:H1},Lo=e=>typeof e=="string"?document.getElementById(e):"current"in e?e.current:e,V1=(e="top")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},No=(e,t)=>typeof e=="number"?e:e?.[t]??0,Sa=({children:e,target:t,placement:n="top",popperClassName:r,isOpen:o,toggle:s,delay:i,autohide:l=!0})=>{const[c,d]=_.useState(!1),[f,p]=_.useState(null),h=o??c,{side:m,align:w}=_.useMemo(()=>V1(n),[n]),g=_.useCallback(()=>{const b=Lo(t);p(b?.getBoundingClientRect()??null)},[t]),v=_.useCallback(b=>{o===void 0&&d(b),s?.()},[o,s]);return _.useEffect(()=>{const b=Lo(t);if(!b)return;let y=null,x=null;const C=()=>{y&&clearTimeout(y),x&&clearTimeout(x)},k=()=>{C(),g(),y=setTimeout(()=>v(!0),No(i,"show"))},E=()=>{l&&(C(),x=setTimeout(()=>v(!1),No(i,"hide")))};return b.addEventListener("mouseenter",k),b.addEventListener("mouseleave",E),b.addEventListener("focus",k),b.addEventListener("blur",E),window.addEventListener("scroll",g,!0),window.addEventListener("resize",g),()=>{C(),b.removeEventListener("mouseenter",k),b.removeEventListener("mouseleave",E),b.removeEventListener("focus",k),b.removeEventListener("blur",E),window.removeEventListener("scroll",g,!0),window.removeEventListener("resize",g)}},[l,i,v,t,g]),f?u.jsx(F1,{delayDuration:0,children:u.jsxs(B1,{open:h,onOpenChange:v,children:[u.jsx(z1,{asChild:!0,children:u.jsx("span",{className:Ro.anchor,style:{left:f.left,top:f.top,width:f.width,height:f.height}})}),u.jsx(ka,{side:m,align:w,className:A(Ro.tooltip,r),children:e})]})}):null};var Xn=0;function Ra(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??jo()),document.body.insertAdjacentElement("beforeend",e[1]??jo()),Xn++,()=>{Xn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Xn--}},[])}function jo(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Jn="focusScope.autoFocusOnMount",Qn="focusScope.autoFocusOnUnmount",Po={bubbles:!1,cancelable:!0},q1="FocusScope",Hr=a.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[l,c]=a.useState(null),d=_t(o),f=_t(s),p=a.useRef(null),h=Ce(t,g=>c(g)),m=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let g=function(x){if(m.paused||!l)return;const C=x.target;l.contains(C)?p.current=C:Qe(p.current,{select:!0})},v=function(x){if(m.paused||!l)return;const C=x.relatedTarget;C!==null&&(l.contains(C)||Qe(p.current,{select:!0}))},b=function(x){if(document.activeElement===document.body)for(const k of x)k.removedNodes.length>0&&Qe(l)};document.addEventListener("focusin",g),document.addEventListener("focusout",v);const y=new MutationObserver(b);return l&&y.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",v),y.disconnect()}}},[r,l,m.paused]),a.useEffect(()=>{if(l){Mo.add(m);const g=document.activeElement;if(!l.contains(g)){const b=new CustomEvent(Jn,Po);l.addEventListener(Jn,d),l.dispatchEvent(b),b.defaultPrevented||(U1(X1(La(l)),{select:!0}),document.activeElement===g&&Qe(l))}return()=>{l.removeEventListener(Jn,d),setTimeout(()=>{const b=new CustomEvent(Qn,Po);l.addEventListener(Qn,f),l.dispatchEvent(b),b.defaultPrevented||Qe(g??document.body,{select:!0}),l.removeEventListener(Qn,f),Mo.remove(m)},0)}}},[l,d,f,m]);const w=a.useCallback(g=>{if(!n&&!r||m.paused)return;const v=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,b=document.activeElement;if(v&&b){const y=g.currentTarget,[x,C]=G1(y);x&&C?!g.shiftKey&&b===C?(g.preventDefault(),n&&Qe(x,{select:!0})):g.shiftKey&&b===x&&(g.preventDefault(),n&&Qe(C,{select:!0})):b===y&&g.preventDefault()}},[n,r,m.paused]);return u.jsx(he.div,{tabIndex:-1,...i,ref:h,onKeyDown:w})});Hr.displayName=q1;function U1(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Qe(r,{select:t}),document.activeElement!==n)return}function G1(e){const t=La(e),n=Ao(t,e),r=Ao(t.reverse(),e);return[n,r]}function La(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ao(e,t){for(const n of e)if(!Y1(n,{upTo:t}))return n}function Y1(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Z1(e){return e instanceof HTMLInputElement&&"select"in e}function Qe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Z1(e)&&t&&e.select()}}var Mo=K1();function K1(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Oo(e,t),e.unshift(t)},remove(t){e=Oo(e,t),e[0]?.resume()}}}function Oo(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function X1(e){return e.filter(t=>t.tagName!=="A")}function J1(e){const t=Q1(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,l=a.Children.toArray(s),c=l.find(tp);if(c){const d=c.props.children,f=l.map(p=>p===c?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:p);return u.jsx(t,{...i,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,f):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Q1(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=rp(o),l=np(s,o.props);return o.type!==a.Fragment&&(l.ref=r?Ot(r,i):i),a.cloneElement(o,l)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ep=Symbol("radix.slottable");function tp(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ep}function np(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const c=s(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function rp(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var op=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},vt=new WeakMap,Ut=new WeakMap,Gt={},er=0,Na=function(e){return e&&(e.host||Na(e.parentNode))},sp=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Na(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ap=function(e,t,n,r){var o=sp(t,Array.isArray(e)?e:[e]);Gt[n]||(Gt[n]=new WeakMap);var s=Gt[n],i=[],l=new Set,c=new Set(o),d=function(p){!p||l.has(p)||(l.add(p),d(p.parentNode))};o.forEach(d);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(h){if(l.has(h))f(h);else try{var m=h.getAttribute(r),w=m!==null&&m!=="false",g=(vt.get(h)||0)+1,v=(s.get(h)||0)+1;vt.set(h,g),s.set(h,v),i.push(h),g===1&&w&&Ut.set(h,!0),v===1&&h.setAttribute(n,"true"),w||h.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return f(t),l.clear(),er++,function(){i.forEach(function(p){var h=vt.get(p)-1,m=s.get(p)-1;vt.set(p,h),s.set(p,m),h||(Ut.has(p)||p.removeAttribute(r),Ut.delete(p)),m||p.removeAttribute(n)}),er--,er||(vt=new WeakMap,vt=new WeakMap,Ut=new WeakMap,Gt={})}},ja=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=op(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),ap(r,o,n,"aria-hidden")):function(){return null}},Ae=function(){return Ae=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Ae.apply(this,arguments)};function Pa(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ip(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var rn="right-scroll-bar-position",on="width-before-scroll-bar",lp="with-scroll-bars-hidden",cp="--removed-body-scroll-bar-size";function tr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function up(e,t){var n=_.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var dp=typeof window<"u"?a.useLayoutEffect:a.useEffect,To=new WeakMap;function fp(e,t){var n=up(null,function(r){return e.forEach(function(o){return tr(o,r)})});return dp(function(){var r=To.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(l){s.has(l)||tr(l,null)}),s.forEach(function(l){o.has(l)||tr(l,i)})}To.set(n,e)},[e]),n}function pp(e){return e}function mp(e,t){t===void 0&&(t=pp);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(l){return l!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(l){return s(l)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var l=n;n=[],l.forEach(s),i=n}var c=function(){var f=i;i=[],f.forEach(s)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(f){i.push(f),d()},filter:function(f){return i=i.filter(f),n}}}};return o}function hp(e){e===void 0&&(e={});var t=mp(null);return t.options=Ae({async:!0,ssr:!1},e),t}var Aa=function(e){var t=e.sideCar,n=Pa(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return a.createElement(r,Ae({},n))};Aa.isSideCarExport=!0;function gp(e,t){return e.useMedium(t),Aa}var Ma=hp(),nr=function(){},Pn=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:nr,onWheelCapture:nr,onTouchMoveCapture:nr}),o=r[0],s=r[1],i=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,h=e.sideCar,m=e.noRelative,w=e.noIsolation,g=e.inert,v=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,x=e.gapMode,C=Pa(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=h,E=fp([n,t]),R=Ae(Ae({},C),o);return a.createElement(a.Fragment,null,f&&a.createElement(k,{sideCar:Ma,removeScrollBar:d,shards:p,noRelative:m,noIsolation:w,inert:g,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:x}),i?a.cloneElement(a.Children.only(l),Ae(Ae({},R),{ref:E})):a.createElement(y,Ae({},R,{className:c,ref:E}),l))});Pn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Pn.classNames={fullWidth:on,zeroRight:rn};var vp=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function wp(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=vp();return t&&e.setAttribute("nonce",t),e}function bp(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function xp(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var yp=function(){var e=0,t=null;return{add:function(n){e==0&&(t=wp())&&(bp(t,n),xp(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},_p=function(){var e=yp();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Oa=function(){var e=_p(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Cp={left:0,top:0,right:0,gap:0},rr=function(e){return parseInt(e||"",10)||0},Ep=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[rr(n),rr(r),rr(o)]},kp=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Cp;var t=Ep(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Sp=Oa(),yt="data-scroll-locked",Rp=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,l=e.gap;return n===void 0&&(n="margin"),`
4
- .`.concat(lp,` {
5
- overflow: hidden `).concat(r,`;
6
- padding-right: `).concat(l,"px ").concat(r,`;
7
- }
8
- body[`).concat(yt,`] {
9
- overflow: hidden `).concat(r,`;
10
- overscroll-behavior: contain;
11
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
12
- padding-left: `.concat(o,`px;
13
- padding-top: `).concat(s,`px;
14
- padding-right: `).concat(i,`px;
15
- margin-left:0;
16
- margin-top:0;
17
- margin-right: `).concat(l,"px ").concat(r,`;
18
- `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
19
- }
20
-
21
- .`).concat(rn,` {
22
- right: `).concat(l,"px ").concat(r,`;
23
- }
24
-
25
- .`).concat(on,` {
26
- margin-right: `).concat(l,"px ").concat(r,`;
27
- }
28
-
29
- .`).concat(rn," .").concat(rn,` {
30
- right: 0 `).concat(r,`;
31
- }
32
-
33
- .`).concat(on," .").concat(on,` {
34
- margin-right: 0 `).concat(r,`;
35
- }
36
-
37
- body[`).concat(yt,`] {
38
- `).concat(cp,": ").concat(l,`px;
39
- }
40
- `)},Io=function(){var e=parseInt(document.body.getAttribute(yt)||"0",10);return isFinite(e)?e:0},Lp=function(){a.useEffect(function(){return document.body.setAttribute(yt,(Io()+1).toString()),function(){var e=Io()-1;e<=0?document.body.removeAttribute(yt):document.body.setAttribute(yt,e.toString())}},[])},Np=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Lp();var s=a.useMemo(function(){return kp(o)},[o]);return a.createElement(Sp,{styles:Rp(s,!t,o,n?"":"!important")})},fr=!1;if(typeof window<"u")try{var Yt=Object.defineProperty({},"passive",{get:function(){return fr=!0,!0}});window.addEventListener("test",Yt,Yt),window.removeEventListener("test",Yt,Yt)}catch{fr=!1}var wt=fr?{passive:!1}:!1,jp=function(e){return e.tagName==="TEXTAREA"},Ta=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!jp(e)&&n[t]==="visible")},Pp=function(e){return Ta(e,"overflowY")},Ap=function(e){return Ta(e,"overflowX")},Do=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ia(e,r);if(o){var s=Da(e,r),i=s[1],l=s[2];if(i>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Mp=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Op=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ia=function(e,t){return e==="v"?Pp(t):Ap(t)},Da=function(e,t){return e==="v"?Mp(t):Op(t)},Tp=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ip=function(e,t,n,r,o){var s=Tp(e,window.getComputedStyle(t).direction),i=s*r,l=n.target,c=t.contains(l),d=!1,f=i>0,p=0,h=0;do{if(!l)break;var m=Da(e,l),w=m[0],g=m[1],v=m[2],b=g-v-s*w;(w||b)&&Ia(e,l)&&(p+=b,h+=w);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(f&&Math.abs(p)<1||!f&&Math.abs(h)<1)&&(d=!0),d},Zt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$o=function(e){return[e.deltaX,e.deltaY]},Fo=function(e){return e&&"current"in e?e.current:e},Dp=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$p=function(e){return`
41
- .block-interactivity-`.concat(e,` {pointer-events: none;}
42
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
43
- `)},Fp=0,bt=[];function Bp(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(Fp++)[0],s=a.useState(Oa)[0],i=a.useRef(e);a.useEffect(function(){i.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=ip([e.lockRef.current],(e.shards||[]).map(Fo),!0).filter(Boolean);return g.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=a.useCallback(function(g,v){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var b=Zt(g),y=n.current,x="deltaX"in g?g.deltaX:y[0]-b[0],C="deltaY"in g?g.deltaY:y[1]-b[1],k,E=g.target,R=Math.abs(x)>Math.abs(C)?"h":"v";if("touches"in g&&R==="h"&&E.type==="range")return!1;var S=window.getSelection(),M=S&&S.anchorNode,I=M?M===E||M.contains(E):!1;if(I)return!1;var B=Do(R,E);if(!B)return!0;if(B?k=R:(k=R==="v"?"h":"v",B=Do(R,E)),!B)return!1;if(!r.current&&"changedTouches"in g&&(x||C)&&(r.current=k),!k)return!0;var V=r.current||k;return Ip(V,v,g,V==="h"?x:C)},[]),c=a.useCallback(function(g){var v=g;if(!(!bt.length||bt[bt.length-1]!==s)){var b="deltaY"in v?$o(v):Zt(v),y=t.current.filter(function(k){return k.name===v.type&&(k.target===v.target||v.target===k.shadowParent)&&Dp(k.delta,b)})[0];if(y&&y.should){v.cancelable&&v.preventDefault();return}if(!y){var x=(i.current.shards||[]).map(Fo).filter(Boolean).filter(function(k){return k.contains(v.target)}),C=x.length>0?l(v,x[0]):!i.current.noIsolation;C&&v.cancelable&&v.preventDefault()}}},[]),d=a.useCallback(function(g,v,b,y){var x={name:g,delta:v,target:b,should:y,shadowParent:zp(b)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(C){return C!==x})},1)},[]),f=a.useCallback(function(g){n.current=Zt(g),r.current=void 0},[]),p=a.useCallback(function(g){d(g.type,$o(g),g.target,l(g,e.lockRef.current))},[]),h=a.useCallback(function(g){d(g.type,Zt(g),g.target,l(g,e.lockRef.current))},[]);a.useEffect(function(){return bt.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",c,wt),document.addEventListener("touchmove",c,wt),document.addEventListener("touchstart",f,wt),function(){bt=bt.filter(function(g){return g!==s}),document.removeEventListener("wheel",c,wt),document.removeEventListener("touchmove",c,wt),document.removeEventListener("touchstart",f,wt)}},[]);var m=e.removeScrollBar,w=e.inert;return a.createElement(a.Fragment,null,w?a.createElement(s,{styles:$p(o)}):null,m?a.createElement(Np,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function zp(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Wp=gp(Ma,Bp);var Vr=a.forwardRef(function(e,t){return a.createElement(Pn,Ae({},e,{ref:t,sideCar:Wp}))});Vr.classNames=Pn.classNames;var An="Popover",[$a]=yn(An,[Rn]),$t=Rn(),[Hp,it]=$a(An),Fa=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!1}=e,l=$t(t),c=a.useRef(null),[d,f]=a.useState(!1),[p,h]=Br({prop:r,defaultProp:o??!1,onChange:s,caller:An});return u.jsx(fa,{...l,children:u.jsx(Hp,{scope:t,contentId:Pt(),triggerRef:c,open:p,onOpenChange:h,onOpenToggle:a.useCallback(()=>h(m=>!m),[h]),hasCustomAnchor:d,onCustomAnchorAdd:a.useCallback(()=>f(!0),[]),onCustomAnchorRemove:a.useCallback(()=>f(!1),[]),modal:i,children:n})})};Fa.displayName=An;var Ba="PopoverAnchor",Vp=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=it(Ba,n),s=$t(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:l}=o;return a.useEffect(()=>(i(),()=>l()),[i,l]),u.jsx(Fr,{...s,...r,ref:t})});Vp.displayName=Ba;var za="PopoverTrigger",Wa=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=it(za,n),s=$t(n),i=Ce(t,o.triggerRef),l=u.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ga(o.open),...r,ref:i,onClick:se(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:u.jsx(Fr,{asChild:!0,...s,children:l})});Wa.displayName=za;var qr="PopoverPortal",[qp,Up]=$a(qr,{forceMount:void 0}),Ha=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=it(qr,t);return u.jsx(qp,{scope:t,forceMount:n,children:u.jsx(at,{present:n||s.open,children:u.jsx(Ln,{asChild:!0,container:o,children:r})})})};Ha.displayName=qr;var kt="PopoverContent",Va=a.forwardRef((e,t)=>{const n=Up(kt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=it(kt,e.__scopePopover);return u.jsx(at,{present:r||s.open,children:s.modal?u.jsx(Yp,{...o,ref:t}):u.jsx(Zp,{...o,ref:t})})});Va.displayName=kt;var Gp=J1("PopoverContent.RemoveScroll"),Yp=a.forwardRef((e,t)=>{const n=it(kt,e.__scopePopover),r=a.useRef(null),o=Ce(t,r),s=a.useRef(!1);return a.useEffect(()=>{const i=r.current;if(i)return ja(i)},[]),u.jsx(Vr,{as:Gp,allowPinchZoom:!0,children:u.jsx(qa,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:se(e.onCloseAutoFocus,i=>{i.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:se(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,d=l.button===2||c;s.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:se(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),Zp=a.forwardRef((e,t)=>{const n=it(kt,e.__scopePopover),r=a.useRef(!1),o=a.useRef(!1);return u.jsx(qa,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;n.triggerRef.current?.contains(i)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),qa=a.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,...p}=e,h=it(kt,n),m=$t(n);return Ra(),u.jsx(Hr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:u.jsx(_n,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>h.onOpenChange(!1),children:u.jsx(pa,{"data-state":Ga(h.open),role:"dialog",id:h.contentId,...m,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Ua="PopoverClose",Kp=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=it(Ua,n);return u.jsx(he.button,{type:"button",...r,ref:t,onClick:se(e.onClick,()=>o.onOpenChange(!1))})});Kp.displayName=Ua;var Xp="PopoverArrow",Jp=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=$t(n);return u.jsx(ma,{...o,...r,ref:t})});Jp.displayName=Xp;function Ga(e){return e?"open":"closed"}var Qp=Fa,em=Wa,tm=Ha,Ya=Va;const nm=Qp,rm=em,Za=a.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>u.jsx(tm,{children:u.jsx(Ya,{ref:o,align:t,sideOffset:n,className:Te("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out 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 origin-(--radix-popover-content-transform-origin)",e),...r})}));Za.displayName=Ya.displayName;const om="_anchor_1ppsi_1",sm="_popover_1ppsi_6",Bo={anchor:om,popover:sm},am=(e="bottom")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},im=({children:e,placement:t="bottom",target:n,className:r,isOpen:o,toggle:s,onOpenChange:i})=>{const[l,c]=_.useState(!1),[d,f]=_.useState(null),p=o??l,{side:h,align:m}=_.useMemo(()=>am(t),[t]),w=_.useCallback(()=>{f(n.current?.getBoundingClientRect()??null)},[n]),g=_.useCallback(v=>{o===void 0&&c(v),i?.(v)},[o,i]);return _.useEffect(()=>{const v=n.current;if(!v)return;const b=()=>{w(),g(!p),s?.()};return v.addEventListener("click",b),window.addEventListener("scroll",w,!0),window.addEventListener("resize",w),()=>{v.removeEventListener("click",b),window.removeEventListener("scroll",w,!0),window.removeEventListener("resize",w)}},[p,g,n,s,w]),u.jsxs(nm,{open:p,onOpenChange:g,children:[u.jsx(rm,{asChild:!0,children:u.jsx("span",{className:Bo.anchor,style:d?{left:d.left,top:d.top,width:d.width,height:d.height}:void 0})}),u.jsx(Za,{side:h,align:m,className:A(Bo.popover,r),children:e})]})},lm="_emptyComponent_1hfbh_1",cm="_svgWrapper_1hfbh_11",um="_title_1hfbh_23",dm="_subtitle_1hfbh_28",Kt={emptyComponent:lm,svgWrapper:cm,title:um,subtitle:dm},Ft=({svg:e=u.jsx(Xo,{}),title:t="Нет данных для отображения",subtitle:n,content:r,className:o})=>u.jsxs("div",{className:A(Kt.emptyComponent,o),children:[u.jsx("div",{className:Kt.svgWrapper,children:e}),t&&u.jsx("span",{className:Kt.title,children:t}),n&&u.jsx("span",{className:Kt.subtitle,children:n}),r&&r]}),fm="_container_2igm5_1",pm="_header_2igm5_6",mm="_header_icon_2igm5_14",hm="_iconTransition_2igm5_20",gm="_rotateIcon_2igm5_23",vm="_content_2igm5_26",wm="_padding_2igm5_31",je={container:fm,header:pm,header_icon:mm,iconTransition:hm,rotateIcon:gm,content:vm,padding:wm},Ka=({header:e,className:t,content:n,onToggle:r,isOpen:o,defaultOpen:s=!1,id:i,headerClassName:l,contentClassName:c,iconClassName:d})=>{const[f,p]=_.useState(s),h=_.useRef(!1),m=typeof o=="boolean"?o:f,w=_.useRef(null),g=typeof e=="string"?u.jsx("div",{className:je.header_text,children:u.jsx("span",{children:e})}):e,v=typeof n=="string"?u.jsx("span",{className:je.content_text,children:n}):n;_.useEffect(()=>{const y=w.current;if(y){if(!h.current){y.style.height=s?"auto":"0px",h.current=!0;return}if(m){y.style.height=`${y.scrollHeight}px`;const x=()=>{y.style.height="auto"};y.addEventListener("transitionend",x,{once:!0})}else y.style.height=`${y.scrollHeight}px`,requestAnimationFrame(()=>{y.style.height="0px"})}},[m,s]);const b=_.useCallback(y=>{y.stopPropagation(),r?r():p(x=>!x)},[r]);return u.jsxs("div",{className:A(je.container,t),id:i,children:[u.jsxs("div",{className:A(je.header,l),children:[g,u.jsx("div",{className:A(je.header_icon,d),onClick:b,children:u.jsx(vn,{className:A(je.iconArrow,je.iconTransition,{[je.rotateIcon]:m})})})]}),u.jsx("div",{className:A(je.content,c,{[je.padding]:m}),ref:w,children:v})]})},bm="_collapsableBlock_osra3_1",xm="_header_osra3_6",ym="_headerWithInfoTooltip_osra3_12",_m="_infoIcon_osra3_20",Xt={collapsableBlock:bm,header:xm,headerWithInfoTooltip:ym,infoIcon:_m},Cm=a.memo(e=>{const{id:t,header:n,content:r,className:o,infoTooltipContent:s,...i}=e,[l,c]=_.useState(!1),d=()=>c(!l);return u.jsx(Ka,{id:t,className:A(Xt.collapsableBlock,o),header:s?u.jsxs("div",{className:Xt.headerWithInfoTooltip,children:[u.jsx("span",{children:n}),u.jsx(Ko,{className:Xt.infoIcon,id:"CollapsableBlockNewInfoTooltipIcon"}),u.jsx(Sa,{autohide:!1,delay:{show:0,hide:500},isOpen:l,placement:"left-start",target:"CollapsableBlockNewInfoTooltipIcon",toggle:d,children:s})]}):n,content:r,headerClassName:Xt.header,...i})});var Em=typeof document<"u",km=function(){},pr=Em?_.useLayoutEffect:km;const Sm={...a},Rm=Sm.useInsertionEffect,Lm=Rm||(e=>e());function Nm(e){const t=a.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Lm(()=>{t.current=e}),a.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}const jm={...a};let zo=!1,Pm=0;const Wo=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Pm++;function Am(){const[e,t]=a.useState(()=>zo?Wo():void 0);return pr(()=>{e==null&&t(Wo())},[]),a.useEffect(()=>{zo=!0},[]),e}const Mm=jm.useId,Om=Mm||Am;let mr;process.env.NODE_ENV!=="production"&&(mr=new Set);function Tm(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=mr)!=null&&e.has(o))){var s;(s=mr)==null||s.add(o),console.error(o)}}function Im(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const Dm=a.createContext(null),$m=a.createContext(null),Fm=()=>{var e;return((e=a.useContext(Dm))==null?void 0:e.id)||null},Bm=()=>a.useContext($m);function zm(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Om(),s=a.useRef({}),[i]=a.useState(()=>Im()),l=Fm()!=null;if(process.env.NODE_ENV!=="production"){const m=r.reference;m&&!me(m)&&Tm("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,d]=a.useState(r.reference),f=Nm((m,w,g)=>{s.current.openEvent=m?w:void 0,i.emit("openchange",{open:m,event:w,reason:g,nested:l}),n?.(m,w,g)}),p=a.useMemo(()=>({setPositionReference:d}),[]),h=a.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return a.useMemo(()=>({dataRef:s,open:t,onOpenChange:f,elements:h,events:i,floatingId:o,refs:p}),[t,f,h,i,o,p])}function Wm(e){e===void 0&&(e={});const{nodeId:t}=e,n=zm({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[s,i]=a.useState(null),[l,c]=a.useState(null),f=o?.domReference||s,p=a.useRef(null),h=Bm();pr(()=>{f&&(p.current=f)},[f]);const m=Js({...e,elements:{...o,...l&&{reference:l}}}),w=a.useCallback(x=>{const C=me(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),getClientRects:()=>x.getClientRects(),contextElement:x}:x;c(C),m.refs.setReference(C)},[m.refs]),g=a.useCallback(x=>{(me(x)||x===null)&&(p.current=x,i(x)),(me(m.refs.reference.current)||m.refs.reference.current===null||x!==null&&!me(x))&&m.refs.setReference(x)},[m.refs]),v=a.useMemo(()=>({...m.refs,setReference:g,setPositionReference:w,domReference:p}),[m.refs,g,w]),b=a.useMemo(()=>({...m.elements,domReference:f}),[m.elements,f]),y=a.useMemo(()=>({...m,...r,refs:v,elements:b,nodeId:t}),[m,v,b,t,r]);return pr(()=>{r.dataRef.current.floatingContext=y;const x=h?.nodesRef.current.find(C=>C.id===t);x&&(x.context=y)}),a.useMemo(()=>({...m,context:y,refs:v,elements:b}),[m,v,b,y])}const Hm="_errorCaption_17ftc_1",Vm="_fullWidth_17ftc_27",Ho={errorCaption:Hm,fullWidth:Vm},Mn=({children:e,isFullWidth:t})=>u.jsx("p",{className:A(Ho.errorCaption,{[Ho.fullWidth]:t}),children:e});var qm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Um=qm.reduce((e,t)=>{const n=es(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...l}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Gm="Label",Xa=a.forwardRef((e,t)=>u.jsx(Um.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Xa.displayName=Gm;var Ja=Xa;const Ym=rs("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Qa=a.forwardRef(({className:e,...t},n)=>u.jsx(Ja,{ref:n,className:Te(Ym(),e),...t}));Qa.displayName=Ja.displayName;const Zm="_label_1e3cu_1",Km="_label__text_1e3cu_11",Vo={label:Zm,label__text:Km},On=({htmlFor:e,children:t,className:n})=>u.jsx(Qa,{htmlFor:e,className:A(Vo.label,n),children:typeof t=="string"?u.jsx("div",{className:Vo.label__text,children:t}):t}),Xm="_wrapper_1yed1_1",Jm="_wrapper_small_1yed1_14",Qm="_iconCross_1yed1_17",eh="_iconCross_small_1yed1_25",Jt={wrapper:Xm,wrapper_small:Jm,iconCross:Qm,iconCross_small:eh},ei=_.memo(({className:e,children:t,onClick:n,isSmall:r})=>u.jsxs("div",{className:A(Jt.wrapper,e,r&&Jt.wrapper_small),children:[u.jsx("span",{children:t}),n&&u.jsx(et,{className:A(Jt.iconCross,{[Jt.iconCross_small]:r}),onClick:o=>{o.stopPropagation(),n()}})]})),th="_wrapper_18b7f_1",nh="_container_18b7f_5",rh="_input_18b7f_5",oh="_error_18b7f_17",sh="_disabled_18b7f_20",ah="_tagContainer_18b7f_33",ih="_selectedOptionContainer_18b7f_38",lh="_selectedOption_18b7f_38",ch="_placeHolder_18b7f_49",uh="_iconContainer_18b7f_53",dh="_deleteIcon_18b7f_59",fh="_divider_18b7f_79",ph="_arrowIcon_18b7f_88",mh="_arrowIconExpanded_18b7f_103",hh="_dropdown_18b7f_107",gh="_dropdown_visible_18b7f_118",vh="_withSearch_18b7f_133",wh="_search_18b7f_136",bh="_search__icon_18b7f_149",xh="_search__input_18b7f_154",yh="_option_18b7f_184",_h="_option_active_18b7f_192",Ch="_option_active_next_active_18b7f_198",Eh="_option_active_prev_active_18b7f_202",kh="_tableTemplate_18b7f_229",Sh="_tableContainer_18b7f_236",Rh="_table_18b7f_229",Lh="_activeRow_18b7f_278",Nh="_checkboxCell_18b7f_285",jh="_checkbox_18b7f_285",Ph="_footerTotal_18b7f_300",Y={wrapper:th,container:nh,input:rh,error:oh,disabled:sh,tagContainer:ah,selectedOptionContainer:ih,selectedOption:lh,placeHolder:ch,iconContainer:uh,deleteIcon:dh,divider:fh,arrowIcon:ph,arrowIconExpanded:mh,dropdown:hh,dropdown_visible:gh,withSearch:vh,search:wh,search__icon:bh,search__input:xh,option:yh,option_active:_h,option_active_next_active:Ch,option_active_prev_active:Eh,tableTemplate:kh,tableContainer:Sh,table:Rh,activeRow:Lh,checkboxCell:Nh,checkbox:jh,footerTotal:Ph},Ah=6,Mh=({value:e,selectedOptionRender:t,tagRender:n,onDelete:r})=>e?Array.isArray(e)?u.jsx("div",{className:Y.tagContainer,children:e.map((o,s)=>n?u.jsx(_.Fragment,{children:n(o)},s):u.jsx(ei,{isSmall:!0,...r&&{onClick:()=>r?.(o)},children:o.label},s))}):u.jsx("span",{className:Y.selectedOption,children:t?t(e):e.label}):null,ti=({onSearch:e,searchClassName:t,searchValue:n,isLoading:r,placeholder:o})=>u.jsxs("div",{className:A(Y.search,t),children:[u.jsx(gn,{className:Y.search__icon}),u.jsx("input",{className:Y.search__input,value:n,onChange:s=>e?.(s.target.value),placeholder:o}),r&&u.jsx(ft,{size:"extraSmall",className:Y.search__spinner})]}),Oh=({value:e,options:t,optionClassName:n,optionRender:r,onChange:o,onSearch:s,searchClassName:i,isLoading:l,searchValue:c,searchPlaceholder:d})=>{const f=p=>Array.isArray(e)?e.some(h=>h.value===p.value):e?.value===p.value;return u.jsxs(u.Fragment,{children:[s&&u.jsx(ti,{onSearch:s,searchValue:c,searchClassName:i,isLoading:l,placeholder:d}),t&&t.length?u.jsx("ul",{className:A({[Y.withSearch]:s}),children:t.map((p,h)=>{const m=f(p),w=t[h-1]&&f(t[h-1]),g=t[h+1]&&f(t[h+1]);return u.jsx("li",{className:A(Y.option,{[Y.option_active]:m,[Y.option_active_prev_active]:w,[Y.option_active_next_active]:g},n),onClick:()=>o(p),children:r?r(p):p.label},`${p.value}${h}`)})}):!l&&u.jsx(Ft,{})]})},Th=({value:e,options:t,onChange:n,onDelete:r,onSearch:o,searchClassName:s,isLoading:i,searchValue:l,searchPlaceholder:c,columns:d,total:f,mode:p})=>{const h=v=>Array.isArray(e)?e.some(b=>b.value===v.value):e?.value===v.value,m=(v,b)=>{if(p==="multiple"&&b&&r){r(v);return}n(v)},w=f??t?.length??0,g=d??[];return u.jsxs("div",{className:Y.tableTemplate,children:[o&&u.jsx(ti,{onSearch:o,searchValue:l,searchClassName:s,isLoading:i,placeholder:c}),u.jsx("div",{className:Y.tableContainer,children:t&&t.length?u.jsxs("table",{className:Y.table,children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{className:Y.checkboxCell,"aria-label":""}),g.map(v=>u.jsx("th",{className:v.className,children:v.title},v.key))]})}),u.jsx("tbody",{children:t.map((v,b)=>{const y=h(v);return u.jsxs("tr",{className:A({[Y.activeRow]:y}),onClick:()=>m(v,y),children:[u.jsx("td",{className:Y.checkboxCell,children:u.jsx("input",{type:"checkbox",className:Y.checkbox,checked:y,readOnly:!0,tabIndex:-1,onClick:x=>x.stopPropagation(),onChange:()=>m(v,y)})}),g.map(x=>u.jsx("td",{className:x.className,children:x.render(v)},x.key))]},`${String(v.value)}${b}`)})})]}):!i&&u.jsx(Ft,{})}),u.jsxs("div",{className:Y.footerTotal,children:["Всего ",w]})]})},Ih=({options:e,value:t,mode:n,placeholder:r,onChange:o,dropdownRender:s,optionRender:i,selectedOptionRender:l,dropdownIcon:c,tagRender:d,dropDownClassName:f,optionClassName:p,inputClassName:h,deleteIconClassName:m,onDelete:w,onClear:g,label:v,onSearch:b,searchClassName:y,searchPlaceholder:x,isLoading:C,disabled:k,onClose:E,portalTarget:R,error:S,fixedHeight:M=!0,template:I="list",columns:B,total:V})=>{const[$,z]=_.useState(!1),[W,F]=_.useState(!1),q=_.useRef(null),P=_.useRef(null),K=_.useRef(null),[L,de]=_.useState(""),fe=R??(W&&typeof document<"u"?document.body:void 0);_.useEffect(()=>{F(!0)},[]);const ne=_.useCallback(G=>{de(G),b?.(G)},[b]);_.useEffect(()=>{if(!$)return;const G=re=>{q.current&&!q.current.contains(re.target)&&(!P.current||!P.current.contains(re.target))&&(ne(""),z(!1),E?.())};return document.addEventListener("mousedown",G,!0),()=>{document.removeEventListener("mousedown",G,!0)}},[ne,$,E]);const{refs:ae,floatingStyles:U,update:Q}=Wm({strategy:"absolute",placement:"bottom-start",open:$,whileElementsMounted:(G,re,De)=>Ks(G,re,De,{ancestorScroll:!1,elementResize:!0,ancestorResize:!0,layoutShift:!0}),middleware:[Qs(Ah),ea({fallbackPlacements:["top-start","bottom-start"]}),ta({apply({rects:G,elements:re}){const De=`${Math.round(G.reference.width)}px`;re.floating.style.width!==De&&(re.floating.style.width=De)}})]}),pe=_.useCallback(G=>{K.current=G,ae.setReference(G)},[ae]),D=_.useCallback(G=>{P.current=G,ae.setFloating(G)},[ae]);_.useEffect(()=>{$&&Q()},[$,Q]);const Z=_.useCallback(G=>{o?.(G),ne(""),E?.(),n==="single"&&z(!1)},[ne,n,o,E]),be=_.useCallback(()=>{const G=u.jsx("div",{ref:D,className:A(Y.dropdown,{[Y.dropdown_visible]:$},f),style:U,onClick:re=>re.stopPropagation(),children:u.jsx("div",{className:Y.dropdownContent,style:{height:M?"300px":"none"},children:(()=>{const re=I==="table"?u.jsx(Th,{value:t,options:e,onChange:Z,onDelete:w,...b&&{onSearch:ne},searchClassName:y,isLoading:C,searchValue:L,searchPlaceholder:x,columns:B,total:V,mode:n}):u.jsx(Oh,{value:t,options:e,optionClassName:p,optionRender:i,onChange:Z,...b&&{onSearch:ne},searchClassName:y,isLoading:C,searchValue:L,searchPlaceholder:x});return s?s(re):re})()})});return fe?hn.createPortal(G,fe):G},[f,s,M,U,Z,ne,C,$,b,p,i,e,fe,I,B,V,n,w,y,x,L,D,t]),ke=_.useMemo(()=>W?be():null,[W,be]),Ee=Array.isArray(t)?!!t.length:!!t;return u.jsxs("div",{className:Y.wrapper,children:[v&&u.jsx(On,{htmlFor:"CustomSelectInput",children:v}),u.jsxs("div",{className:Y.container,ref:q,children:[u.jsxs("div",{role:"button",id:"CustomSelectInput",tabIndex:0,ref:pe,className:A(Y.input,{[Y.input_fixedHeight]:n==="single",[Y.disabled]:k},S&&Y.error,h),onClick:()=>{t&&(ne(""),E?.()),z(G=>!G)},children:[u.jsx("div",{className:Y.selectedOptionContainer,children:Ee?u.jsx(Mh,{value:t,selectedOptionRender:l,tagRender:d,onDelete:w}):u.jsx("span",{className:Y.placeHolder,children:r})}),u.jsxs("div",{className:Y.iconContainer,children:[g&&Ee&&u.jsxs(u.Fragment,{children:[u.jsx(ce,{variant:"text",className:A(Y.deleteIcon,m),onClick:G=>{G.stopPropagation(),g()},children:u.jsx("span",{children:u.jsx(et,{})})}),u.jsx("div",{className:Y.divider,children:u.jsx("div",{})})]}),c||u.jsx(ce,{variant:"text",className:A(Y.arrowIcon,{[Y.arrowIconExpanded]:$}),children:u.jsx(vn,{})})]})]}),ke]}),S&&u.jsx(Mn,{children:S})]})};function Dh(e){const t=$h(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,l=a.Children.toArray(s),c=l.find(Bh);if(c){const d=c.props.children,f=l.map(p=>p===c?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:p);return u.jsx(t,{...i,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,f):null})}return u.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function $h(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=Wh(o),l=zh(s,o.props);return o.type!==a.Fragment&&(l.ref=r?Ot(r,i):i),a.cloneElement(o,l)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Fh=Symbol("radix.slottable");function Bh(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fh}function zh(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const c=s(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Wh(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Tn="Dialog",[ni]=yn(Tn),[Hh,Ne]=ni(Tn),ri=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,l=a.useRef(null),c=a.useRef(null),[d,f]=Br({prop:r,defaultProp:o??!1,onChange:s,caller:Tn});return u.jsx(Hh,{scope:t,triggerRef:l,contentRef:c,contentId:Pt(),titleId:Pt(),descriptionId:Pt(),open:d,onOpenChange:f,onOpenToggle:a.useCallback(()=>f(p=>!p),[f]),modal:i,children:n})};ri.displayName=Tn;var oi="DialogTrigger",Vh=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ne(oi,n),s=Ce(t,o.triggerRef);return u.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Yr(o.open),...r,ref:s,onClick:se(e.onClick,o.onOpenToggle)})});Vh.displayName=oi;var Ur="DialogPortal",[qh,si]=ni(Ur,{forceMount:void 0}),ai=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Ne(Ur,t);return u.jsx(qh,{scope:t,forceMount:n,children:a.Children.map(r,i=>u.jsx(at,{present:n||s.open,children:u.jsx(Ln,{asChild:!0,container:o,children:i})}))})};ai.displayName=Ur;var mn="DialogOverlay",ii=a.forwardRef((e,t)=>{const n=si(mn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Ne(mn,e.__scopeDialog);return s.modal?u.jsx(at,{present:r||s.open,children:u.jsx(Gh,{...o,ref:t})}):null});ii.displayName=mn;var Uh=Dh("DialogOverlay.RemoveScroll"),Gh=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ne(mn,n);return u.jsx(Vr,{as:Uh,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(he.div,{"data-state":Yr(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),mt="DialogContent",li=a.forwardRef((e,t)=>{const n=si(mt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Ne(mt,e.__scopeDialog);return u.jsx(at,{present:r||s.open,children:s.modal?u.jsx(Yh,{...o,ref:t}):u.jsx(Zh,{...o,ref:t})})});li.displayName=mt;var Yh=a.forwardRef((e,t)=>{const n=Ne(mt,e.__scopeDialog),r=a.useRef(null),o=Ce(t,n.contentRef,r);return a.useEffect(()=>{const s=r.current;if(s)return ja(s)},[]),u.jsx(ci,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:se(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:se(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&s.preventDefault()}),onFocusOutside:se(e.onFocusOutside,s=>s.preventDefault())})}),Zh=a.forwardRef((e,t)=>{const n=Ne(mt,e.__scopeDialog),r=a.useRef(!1),o=a.useRef(!1);return u.jsx(ci,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;n.triggerRef.current?.contains(i)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),ci=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,l=Ne(mt,n),c=a.useRef(null),d=Ce(t,c);return Ra(),u.jsxs(u.Fragment,{children:[u.jsx(Hr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:u.jsx(_n,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Yr(l.open),...i,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(Xh,{titleId:l.titleId}),u.jsx(Qh,{contentRef:c,descriptionId:l.descriptionId})]})]})}),Gr="DialogTitle",ui=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ne(Gr,n);return u.jsx(he.h2,{id:o.titleId,...r,ref:t})});ui.displayName=Gr;var di="DialogDescription",fi=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ne(di,n);return u.jsx(he.p,{id:o.descriptionId,...r,ref:t})});fi.displayName=di;var pi="DialogClose",Kh=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ne(pi,n);return u.jsx(he.button,{type:"button",...r,ref:t,onClick:se(e.onClick,()=>o.onOpenChange(!1))})});Kh.displayName=pi;function Yr(e){return e?"open":"closed"}var mi="DialogTitleWarning",[C2,hi]=Ad(mi,{contentName:mt,titleName:Gr,docsSlug:"dialog"}),Xh=({titleId:e})=>{const t=hi(mi),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
44
-
45
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
46
-
47
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return a.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Jh="DialogDescriptionWarning",Qh=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${hi(Jh).contentName}}.`;return a.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},e0=ri,t0=ai,gi=ii,vi=li,wi=ui,bi=fi;const Zr=e0,n0=t0,xi=a.forwardRef(({className:e,...t},n)=>u.jsx(gi,{ref:n,className:Te("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));xi.displayName=gi.displayName;const In=a.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(n0,{children:[u.jsx(xi,{}),u.jsx(vi,{ref:r,className:Te("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:t})]}));In.displayName=vi.displayName;const Dn=({className:e,...t})=>u.jsx("div",{className:Te("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Dn.displayName="DialogHeader";const Kr=({className:e,...t})=>u.jsx("div",{className:Te("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Kr.displayName="DialogFooter";const $n=a.forwardRef(({className:e,...t},n)=>u.jsx(wi,{ref:n,className:Te("text-lg font-semibold leading-none tracking-tight",e),...t}));$n.displayName=wi.displayName;const r0=a.forwardRef(({className:e,...t},n)=>u.jsx(bi,{ref:n,className:Te("text-sm text-muted-foreground",e),...t}));r0.displayName=bi.displayName;const o0="_wrapper_5m37o_1",s0="_input_5m37o_5",a0="_error_5m37o_25",i0="_disabled_5m37o_33",l0="_selectedOption_5m37o_39",c0="_placeholder_5m37o_50",u0="_actions_5m37o_54",d0="_clearButton_5m37o_61",f0="_selectButton_5m37o_70",p0="_dialogContent_5m37o_77",m0="_dialogHeader_5m37o_92",h0="_dialogTitle_5m37o_97",g0="_search_5m37o_104",v0="_searchIcon_5m37o_120",w0="_searchInput_5m37o_131",b0="_searchSpinner_5m37o_162",x0="_tableContainer_5m37o_166",y0="_table_5m37o_166",_0="_activeRow_5m37o_209",C0="_emptyState_5m37o_216",E0="_dialogFooter_5m37o_223",k0="_pagination_5m37o_231",S0="_footerActions_5m37o_232",R0="_pageInfo_5m37o_251",ee={wrapper:o0,input:s0,error:a0,disabled:i0,selectedOption:l0,placeholder:c0,actions:u0,clearButton:d0,selectButton:f0,dialogContent:p0,dialogHeader:m0,dialogTitle:h0,search:g0,searchIcon:v0,searchInput:w0,searchSpinner:b0,tableContainer:x0,table:y0,activeRow:_0,emptyState:C0,dialogFooter:E0,pagination:k0,footerActions:S0,pageInfo:R0},L0=8,N0=350,yi=({value:e,placeholder:t,loadOptions:n,onChange:r,onClear:o,columns:s,label:i,title:l="Поиск сотрудника",searchPlaceholder:c="Введите запрос",selectButtonText:d="Выбрать",closeButtonText:f="Закрыть",manualButtonText:p="Добавить вручную",onManualAdd:h,pageSize:m=L0,debounceMs:w=N0,disabled:g,error:v,className:b,inputClassName:y,selectedOptionRender:x})=>{const[C,k]=_.useState(!1),[E,R]=_.useState(""),[S,M]=_.useState(""),[I,B]=_.useState(1),[V,$]=_.useState([]),[z,W]=_.useState(),[F,q]=_.useState(!1),[P,K]=_.useState(!1),L=_.useRef(0),de=_.useMemo(()=>s??[{key:"label",title:"ФИО сотрудника",render:D=>D.label},{key:"birthDate",title:"День рождения",render:D=>D.meta?.birthDate??"—"}],[s]),fe=z?Math.max(1,Math.ceil(z/m)):void 0,ne=I>1,ae=fe?I<fe:F;_.useEffect(()=>{const D=window.setTimeout(()=>{M(E.trim()),B(1)},w);return()=>window.clearTimeout(D)},[w,E]),_.useEffect(()=>{if(!C)return;const D=L.current+1;L.current=D,K(!0),n({search:S,page:I,pageSize:m}).then(Z=>{L.current===D&&($(Z.options),W(Z.total),q(Z.hasNextPage??!1))}).finally(()=>{L.current===D&&K(!1)})},[S,C,n,I,m]);const U=_.useCallback(D=>{k(D),D||(R(""),M(""),B(1))},[]),Q=_.useCallback(D=>{r?.(D),U(!1)},[U,r]),pe=e?x?x(e):e.label:t;return u.jsxs("div",{className:A(ee.wrapper,b),children:[i&&u.jsx(On,{htmlFor:"DialogSelectInput",children:i}),u.jsxs("div",{id:"DialogSelectInput",role:"button",tabIndex:g?-1:0,className:A(ee.input,{[ee.disabled]:g,[ee.error]:v},y),onClick:()=>!g&&U(!0),onKeyDown:D=>{!g&&(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),U(!0))},children:[u.jsx("span",{className:A(ee.selectedOption,{[ee.placeholder]:!e}),children:pe}),u.jsxs("span",{className:ee.actions,children:[o&&e&&u.jsx(ce,{variant:"text",className:ee.clearButton,"aria-label":"Очистить выбранное значение",onClick:D=>{D.stopPropagation(),o()},children:u.jsx(et,{})}),u.jsx(ce,{variant:"link",className:ee.selectButton,disabled:g,onClick:D=>{D.stopPropagation(),U(!0)},children:d})]})]}),u.jsx(Zr,{open:C,onOpenChange:U,children:u.jsxs(In,{className:ee.dialogContent,children:[u.jsx(Dn,{className:ee.dialogHeader,children:u.jsx($n,{className:ee.dialogTitle,children:l})}),u.jsxs("div",{className:ee.search,children:[u.jsx(gn,{className:ee.searchIcon}),u.jsx("input",{className:ee.searchInput,value:E,onChange:D=>R(D.target.value),placeholder:c,autoFocus:!0}),P&&u.jsx(ft,{size:"extraSmall",className:ee.searchSpinner})]}),u.jsxs("div",{className:ee.tableContainer,children:[u.jsxs("table",{className:ee.table,children:[u.jsx("thead",{children:u.jsx("tr",{children:de.map(D=>u.jsx("th",{className:D.className,children:D.title},D.key))})}),u.jsx("tbody",{children:V.map(D=>{const Z=e?.value===D.value;return u.jsx("tr",{className:A({[ee.activeRow]:Z}),onClick:()=>Q(D),children:de.map(be=>u.jsx("td",{className:be.className,children:be.render(D)},be.key))},String(D.value))})})]}),!P&&!V.length&&u.jsx("div",{className:ee.emptyState,children:u.jsx(Ft,{title:"Ничего не найдено",subtitle:"Попробуйте изменить поисковый запрос"})})]}),u.jsxs(Kr,{className:ee.dialogFooter,children:[u.jsxs("div",{className:ee.pagination,children:[u.jsx(ce,{variant:"secondary",size:"small",disabled:!ne||P,onClick:()=>B(D=>Math.max(1,D-1)),children:"Назад"}),u.jsxs("span",{className:ee.pageInfo,children:["Страница ",I,fe?` из ${fe}`:""]}),u.jsx(ce,{variant:"secondary",size:"small",disabled:!ae||P,onClick:()=>B(D=>D+1),children:"Вперёд"})]}),u.jsxs("div",{className:ee.footerActions,children:[h&&u.jsx(ce,{variant:"primary",onClick:h,children:p}),u.jsx(ce,{variant:"secondary",onClick:()=>U(!1),children:f})]})]})]})}),v&&u.jsx(Mn,{children:v})]})},j0="_wrapper_1bg9l_1",P0="_input_1bg9l_5",A0="_error_1bg9l_25",M0="_disabled_1bg9l_33",O0="_selectedOption_1bg9l_39",T0="_placeholder_1bg9l_50",I0="_actions_1bg9l_54",D0="_clearButton_1bg9l_61",$0="_selectButton_1bg9l_70",F0="_dialogContent_1bg9l_77",B0="_dialogHeader_1bg9l_92",z0="_dialogTitle_1bg9l_97",W0="_search_1bg9l_104",H0="_searchIcon_1bg9l_120",V0="_searchInput_1bg9l_131",q0="_searchSpinner_1bg9l_162",U0="_treeContainer_1bg9l_166",G0="_row_1bg9l_176",Y0="_row_active_1bg9l_191",Z0="_nodeLabel_1bg9l_194",K0="_row_match_1bg9l_198",X0="_chevron_1bg9l_202",J0="_chevronExpanded_1bg9l_227",Q0="_chevronPlaceholder_1bg9l_231",eg="_nodeSpinner_1bg9l_237",tg="_emptyState_1bg9l_249",ng="_loadingState_1bg9l_256",rg="_dialogFooter_1bg9l_263",X={wrapper:j0,input:P0,error:A0,disabled:M0,selectedOption:O0,placeholder:T0,actions:I0,clearButton:D0,selectButton:$0,dialogContent:F0,dialogHeader:B0,dialogTitle:z0,search:W0,searchIcon:H0,searchInput:V0,searchSpinner:q0,treeContainer:U0,row:G0,row_active:Y0,nodeLabel:Z0,row_match:K0,chevron:X0,chevronExpanded:J0,chevronPlaceholder:Q0,nodeSpinner:eg,emptyState:tg,loadingState:ng,dialogFooter:rg},og=350,ze="__root__",sg=({value:e,placeholder:t,loadChildren:n,searchNodes:r,onChange:o,onClear:s,label:i,title:l="Выбор элемента",searchPlaceholder:c="Введите запрос",selectButtonText:d="Выбрать",closeButtonText:f="Закрыть",confirmButtonText:p="Выбрать",debounceMs:h=og,disabled:m,error:w,className:g,inputClassName:v,selectedOptionRender:b,nodeRender:y})=>{const[x,C]=_.useState(!1),[k,E]=_.useState(""),[R,S]=_.useState(""),[M,I]=_.useState(()=>new Map),[B,V]=_.useState(()=>new Set),[$,z]=_.useState(()=>new Set),[W,F]=_.useState(()=>new Set),[q,P]=_.useState(()=>new Set),[K,L]=_.useState(!1),[de,fe]=_.useState(null),ne=_.useRef(0),ae=_.useRef(0);_.useEffect(()=>{if(!x||M.has(ze))return;const T=ne.current+1;ne.current=T,V(te=>{const J=new Set(te);return J.add(ze),J}),n({parentId:null,search:""}).then(te=>{ne.current===T&&I(J=>{const ie=new Map(J);return ie.set(ze,te.nodes),ie})}).finally(()=>{ne.current===T&&V(te=>{const J=new Set(te);return J.delete(ze),J})})},[x,n,M]),_.useEffect(()=>{const T=window.setTimeout(()=>S(k.trim()),h);return()=>window.clearTimeout(T)},[k,h]),_.useEffect(()=>{if(!x||!r)return;if(!R){P(new Set),F(new Set);return}const T=ae.current+1;ae.current=T,L(!0),r(R).then(te=>{if(ae.current!==T)return;const J=new Set,ie=new Set,ge=new Map;for(const $e of te.matches){J.add($e.node.value);const ve=[...$e.path,$e.node];for(let le=0;le<ve.length-1;le++){const lt=ve[le],ct=ve[le+1];ie.add(lt.value);const Fe=lt.value;ge.has(Fe)||ge.set(Fe,new Map),ge.get(Fe).set(ct.value,ct)}if(ve.length>0){const le=ve[0];ge.has(ze)||ge.set(ze,new Map),ge.get(ze).set(le.value,le)}}P(J),F(ie),I($e=>{const ve=new Map($e);return ge.forEach((le,lt)=>{const ct=ve.get(lt)??[],Fe=new Map;ct.forEach(Ye=>Fe.set(Ye.value,Ye)),le.forEach((Ye,ki)=>Fe.set(ki,Ye)),ve.set(lt,Array.from(Fe.values()))}),ve})}).finally(()=>{ae.current===T&&L(!1)})},[R,x,r]);const U=_.useCallback(T=>{C(T),T||(E(""),S(""),fe(null),P(new Set),F(new Set))},[]),Q=_.useCallback(T=>{const te=T.value;M.has(te)||B.has(te)||(V(J=>{const ie=new Set(J);return ie.add(te),ie}),n({parentId:T.value,search:""}).then(J=>{I(ie=>{const ge=new Map(ie),$e=ge.get(te)??[],ve=new Map;return $e.forEach(le=>ve.set(le.value,le)),J.nodes.forEach(le=>ve.set(le.value,le)),ge.set(te,Array.from(ve.values())),ge})}).finally(()=>{V(J=>{const ie=new Set(J);return ie.delete(te),ie})}))},[M,n,B]),pe=_.useCallback(T=>{z(te=>{const J=new Set(te);return J.has(T.value)?J.delete(T.value):(J.add(T.value),Q(T)),J})},[Q]),D=_.useCallback(T=>{fe(T)},[]),Z=_.useCallback(()=>{de&&o?.(de),U(!1)},[U,o,de]),be=_.useCallback(T=>$.has(T)||W.has(T),[$,W]),ke=_.useCallback(T=>{if(!R||r)return T;const te=R.toLowerCase();return T.filter(J=>J.label.toLowerCase().includes(te))},[R,r]),Ee=(T,te)=>{const J=T.value,ie=M.get(J),ge=be(T.value),$e=B.has(J),ve=de?.value===T.value,le=e?.value===T.value,lt=q.has(T.value),ct=ge&&ie&&ie.length>0,Fe=ct?ke(ie):[];return u.jsxs(_.Fragment,{children:[u.jsxs("div",{className:A(X.row,{[X.row_active]:ve||le,[X.row_match]:lt}),style:{paddingLeft:16+te*20},onClick:()=>D(T),children:[T.hasChildren?u.jsx("button",{type:"button",className:A(X.chevron,{[X.chevronExpanded]:ge}),onClick:Ye=>{Ye.stopPropagation(),pe(T)},"aria-label":ge?"Свернуть":"Раскрыть",children:u.jsx(vn,{})}):u.jsx("span",{className:X.chevronPlaceholder}),u.jsx("span",{className:X.nodeLabel,children:y?y(T):T.label}),$e&&u.jsx(ft,{size:"extraSmall",className:X.nodeSpinner})]}),ct&&Fe.map(Ye=>Ee(Ye,te+1))]},String(T.value))},G=M.get(ze)??[],re=ke(G),De=B.has(ze),_i=e?b?b(e):e.label:t,Ci=!De&&!K&&re.length===0,Ei=_.useMemo(()=>K||De&&!!R,[K,De,R]);return u.jsxs("div",{className:A(X.wrapper,g),children:[i&&u.jsx(On,{htmlFor:"TreeDialogSelectInput",children:i}),u.jsxs("div",{id:"TreeDialogSelectInput",role:"button",tabIndex:m?-1:0,className:A(X.input,{[X.disabled]:m,[X.error]:w},v),onClick:()=>!m&&U(!0),onKeyDown:T=>{!m&&(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),U(!0))},children:[u.jsx("span",{className:A(X.selectedOption,{[X.placeholder]:!e}),children:_i}),u.jsxs("span",{className:X.actions,children:[s&&e&&u.jsx(ce,{variant:"text",className:X.clearButton,"aria-label":"Очистить выбранное значение",onClick:T=>{T.stopPropagation(),s()},children:u.jsx(et,{})}),u.jsx(ce,{variant:"link",className:X.selectButton,disabled:m,onClick:T=>{T.stopPropagation(),U(!0)},children:d})]})]}),u.jsx(Zr,{open:x,onOpenChange:U,children:u.jsxs(In,{className:X.dialogContent,children:[u.jsx(Dn,{className:X.dialogHeader,children:u.jsx($n,{className:X.dialogTitle,children:l})}),u.jsxs("div",{className:X.search,children:[u.jsx(gn,{className:X.searchIcon}),u.jsx("input",{className:X.searchInput,value:k,onChange:T=>E(T.target.value),placeholder:c,autoFocus:!0}),Ei&&u.jsx(ft,{size:"extraSmall",className:X.searchSpinner})]}),u.jsx("div",{className:X.treeContainer,children:De&&G.length===0?u.jsx("div",{className:X.loadingState,children:u.jsx(ft,{size:"small"})}):Ci?u.jsx("div",{className:X.emptyState,children:u.jsx(Ft,{title:"Ничего не найдено",subtitle:"Попробуйте изменить поисковый запрос"})}):re.map(T=>Ee(T,0))}),u.jsxs(Kr,{className:X.dialogFooter,children:[u.jsx(ce,{variant:"secondary",onClick:()=>U(!1),children:f}),u.jsx(ce,{variant:"primary",disabled:!de,onClick:Z,children:p})]})]})}),w&&u.jsx(Mn,{children:w})]})},ag="_tabs_z157r_1",ig="_tabItem_z157r_9",lg="_active_z157r_40",cg="_before_z157r_55",ug="_after_z157r_56",Xe={tabs:ag,tabItem:ig,active:lg,before:cg,after:ug},dg=a.memo(({className:e,items:t=[],activeTab:n,onClick:r,tabsClassName:o})=>u.jsx("div",{className:A(Xe.wrapper,e),children:u.jsx("div",{className:A(Xe.tabs,o),children:t.map((s,i)=>s.title&&u.jsxs("div",{className:A(Xe.tabItem,s.className,{[Xe.active]:n===i,[Xe.first]:i===0,[Xe.last]:i===t.length-1}),style:{zIndex:n===i?t.length:i===0?0:t.length-i},onClick:l=>{l.stopPropagation(),r?.(i)},children:[n===i&&i!==0&&u.jsx("span",{className:Xe.before}),s.title,n===i&&i!==t.length-1&&u.jsx("span",{className:Xe.after})]},i))})})),fg="_wrapper_1xj0t_1",pg="_itemBlock_1xj0t_8",mg="_step_1xj0t_16",hg="_clickable_1xj0t_39",gg="_step_inactive_1xj0t_46",vg="_step_current_1xj0t_51",wg="_connector_1xj0t_55",bg="_connector_active_1xj0t_62",xg="_label_1xj0t_66",yg="_label_active_1xj0t_74",Pe={wrapper:fg,itemBlock:pg,step:mg,clickable:hg,step_inactive:gg,step_current:vg,connector:wg,connector_active:bg,label:xg,label_active:yg},_g=({items:e,current:t,onChange:n,showCheckOnCompleted:r=!1,className:o})=>{const s=!!n;return u.jsx("div",{className:A(Pe.wrapper,o),role:"list",children:e.map((i,l)=>{const c=l<t,d=l===t,f=l<=t,p=l===e.length-1,h=r&&c,m=i.content??(h?u.jsx(hr,{}):l+1),w=u.jsx("button",{type:"button",className:A(Pe.step,{[Pe.step_inactive]:!f,[Pe.step_current]:d,[Pe.clickable]:s}),disabled:!s,onClick:()=>n?.(l),"aria-current":d?"step":void 0,"aria-label":typeof i.label=="string"?i.label:`Шаг ${l+1}`,children:m});return u.jsxs(_.Fragment,{children:[i.label?u.jsxs("div",{className:Pe.itemBlock,role:"listitem",children:[w,u.jsx("span",{className:A(Pe.label,{[Pe.label_active]:f}),children:i.label})]}):u.jsx("div",{role:"listitem",children:w}),!p&&u.jsx("span",{className:A(Pe.connector,{[Pe.connector_active]:l<t})})]},l)})})},Cg="_container_j5wpc_1",Eg="_tabs_j5wpc_4",kg="_line_j5wpc_11",Sg="_tabItem_j5wpc_21",Rg="_header_j5wpc_34",Lg="_notificationChanges_j5wpc_42",Ng="_tabs_hasAnimatedIndicator_j5wpc_61",jg="_active_j5wpc_64",Je={container:Cg,tabs:Eg,line:kg,tabItem:Sg,header:Rg,notificationChanges:Lg,tabs_hasAnimatedIndicator:Ng,active:jg},Pg=a.memo(({items:e=[],activeTab:t,className:n,tabsClassName:r,changesIndex:o,badgeValue:s,sliderClassName:i,onClick:l})=>{const c=_.useRef(null),d=_.useRef(null),[f,p]=_.useState({left:0,width:0});return _.useEffect(()=>{const h=c.current;if(!h)return;const m=()=>{const v={left:h.offsetLeft||0,width:h.clientWidth||0};p(b=>b.left===v.left&&b.width===v.width?b:v)},w=()=>{d.current&&cancelAnimationFrame(d.current),d.current=requestAnimationFrame(()=>{d.current=null,m()})};w();const g=new ResizeObserver(()=>{w()});return g.observe(h),()=>{g.disconnect(),d.current!==null&&(cancelAnimationFrame(d.current),d.current=null)}},[t]),u.jsx("div",{className:A(Je.container,n),children:u.jsxs("div",{className:A(Je.tabs,Je.tabs_hasAnimatedIndicator,r),children:[e.map((h,m)=>h.title&&u.jsxs("div",{ref:t===m?c:void 0,className:A(Je.tabItem,h.className,{[Je.active]:t===m}),onClick:w=>{w.stopPropagation(),l?.(m)},children:[h.header&&u.jsx("div",{className:Je.header,children:h.header}),h.title,o===m&&u.jsx("div",{className:Je.notificationChanges,children:s!=null?s>99?"99+":String(s):null})]},m)),u.jsx("div",{className:A(Je.line,i),style:{left:f.left,width:f.width}})]})})}),Ag="_root_1q8sg_1",Mg="_header_1q8sg_11",Og="_headerText_1q8sg_21",Tg="_eyebrow_1q8sg_27",Ig="_title_1q8sg_35",Dg="_timeline_1q8sg_42",$g="_level_1q8sg_47",Fg="_rail_1q8sg_58",Bg="_railLine_1q8sg_65",zg="_railLine_completed_1q8sg_74",Wg="_railLine_toCurrent_1q8sg_78",Hg="_marker_1q8sg_82",Vg="_marker_completed_1q8sg_101",qg="_marker_current_1q8sg_107",Ug="_body_1q8sg_120",Gg="_levelHeader_1q8sg_125",Yg="_levelName_1q8sg_132",Zg="_levelName_current_1q8sg_141",Kg="_levelName_completed_1q8sg_147",Xg="_iconButton_1q8sg_152",Jg="_iconButton_danger_1q8sg_176",Qg="_stages_1q8sg_182",e2="_stage_1q8sg_182",t2="_stage_current_1q8sg_199",n2="_stageHeader_1q8sg_204",r2="_stageName_1q8sg_212",o2="_stageActions_1q8sg_220",s2="_approvers_1q8sg_227",a2="_approver_1q8sg_227",i2="_approverMain_1q8sg_242",l2="_approverName_1q8sg_249",c2="_approverName_pending_1q8sg_255",u2="_approverName_rejected_1q8sg_259",d2="_approverName_approved_1q8sg_264",f2="_approverDate_1q8sg_268",p2="_rejectReason_1q8sg_273",m2="_empty_1q8sg_283",h2="_addStage_1q8sg_300",g2="_addLevel_1q8sg_323",v2="_dialogContent_1q8sg_327",w2="_dialogInput_1q8sg_333",b2="_dialogActions_1q8sg_348",x2="_approverPickerWrap_1q8sg_354",y2="_approverPickerInput_1q8sg_361",O={root:Ag,header:Mg,headerText:Og,eyebrow:Tg,title:Ig,timeline:Dg,level:$g,rail:Fg,railLine:Bg,railLine_completed:zg,railLine_toCurrent:Wg,marker:Hg,marker_completed:Vg,marker_current:qg,body:Ug,levelHeader:Gg,levelName:Yg,levelName_current:Zg,levelName_completed:Kg,iconButton:Xg,iconButton_danger:Jg,stages:Qg,stage:e2,stage_current:t2,stageHeader:n2,stageName:r2,stageActions:o2,approvers:s2,approver:a2,approverMain:i2,approverName:l2,approverName_pending:c2,approverName_rejected:u2,approverName_approved:d2,approverDate:f2,rejectReason:p2,empty:m2,addStage:h2,addLevel:g2,dialogContent:v2,dialogInput:w2,dialogActions:b2,approverPickerWrap:x2,approverPickerInput:y2},Qt=({className:e})=>u.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",className:e,"aria-hidden":"true",children:u.jsx("path",{d:"M12 5v14M5 12h14"})});function qo({open:e,title:t,placeholder:n,onSubmit:r,onClose:o}){const[s,i]=_.useState("");_.useEffect(()=>{e||i("")},[e]);const l=()=>{const c=s.trim();c&&(r(c),o())};return u.jsx(Zr,{open:e,onOpenChange:c=>!c&&o(),children:u.jsxs(In,{className:"sm:rounded-2xl",children:[u.jsx(Dn,{children:u.jsx($n,{children:t})}),u.jsxs("div",{className:O.dialogContent,children:[u.jsx("input",{autoFocus:!0,className:O.dialogInput,placeholder:n,value:s,onChange:c=>i(c.target.value),onKeyDown:c=>{c.key==="Enter"&&l(),c.key==="Escape"&&o()}}),u.jsxs("div",{className:O.dialogActions,children:[u.jsx(ce,{variant:"secondary",onClick:o,children:"Отмена"}),u.jsx(ce,{variant:"primary",onClick:l,disabled:!s.trim(),children:"Добавить"})]})]})]})})}const _2=({levels:e,editable:t=!1,title:n="Маршрут согласования",eyebrow:r="Workflow",className:o,loadApprovers:s,onAddLevel:i,onRemoveLevel:l,onAddStage:c,onRemoveStage:d,onAddApprover:f,onRemoveApprover:p})=>{const[h,m]=_.useState(!1),[w,g]=_.useState(null);return u.jsxs("div",{className:A(O.root,o),children:[u.jsx("div",{className:O.header,children:u.jsxs("div",{className:O.headerText,children:[u.jsx("span",{className:O.eyebrow,children:r}),u.jsx("span",{className:O.title,children:n})]})}),u.jsxs("div",{className:O.timeline,children:[e.map((v,b)=>{const y=e[b+1],x=A(O.railLine,{[O.railLine_completed]:v.status==="completed"&&y?.status==="completed",[O.railLine_toCurrent]:v.status==="completed"&&y?.status==="current"});return u.jsxs("div",{className:O.level,children:[u.jsxs("div",{className:O.rail,children:[b<e.length-1&&u.jsx("span",{className:x}),u.jsx("span",{className:A(O.marker,{[O.marker_completed]:v.status==="completed",[O.marker_current]:v.status==="current"}),children:v.status==="completed"&&u.jsx(hr,{})})]}),u.jsxs("div",{className:O.body,children:[u.jsxs("div",{className:O.levelHeader,children:[u.jsx("span",{className:A(O.levelName,{[O.levelName_current]:v.status==="current",[O.levelName_completed]:v.status==="completed"}),children:v.name}),t&&u.jsxs(u.Fragment,{children:[u.jsx("button",{type:"button",className:O.iconButton,onClick:()=>g(v.id),"aria-label":"Добавить этап",title:"Добавить этап",children:u.jsx(Qt,{})}),u.jsx("button",{type:"button",className:A(O.iconButton,O.iconButton_danger),onClick:()=>l?.(v.id),"aria-label":"Удалить уровень",title:"Удалить уровень",children:u.jsx(et,{})})]})]}),v.stages.length>0&&u.jsx("div",{className:O.stages,children:v.stages.map(C=>u.jsxs("div",{className:A(O.stage,{[O.stage_current]:v.status==="current"}),children:[u.jsxs("div",{className:O.stageHeader,children:[u.jsx("span",{className:O.stageName,children:C.name}),u.jsx("div",{className:O.stageActions,children:t&&u.jsxs(u.Fragment,{children:[s?u.jsx(yi,{value:null,placeholder:"",title:"Добавить согласующего",searchPlaceholder:"Поиск сотрудника",loadOptions:s,onChange:k=>f?.(v.id,C.id,k),className:O.approverPickerWrap,inputClassName:O.approverPickerInput,selectedOptionRender:()=>u.jsx(Qt,{})}):null,u.jsx("button",{type:"button",className:A(O.iconButton,O.iconButton_danger),onClick:()=>d?.(v.id,C.id),"aria-label":"Удалить этап",title:"Удалить этап",children:u.jsx(et,{})})]})})]}),C.approvers.length===0?u.jsxs("span",{className:O.empty,children:[u.jsx(Yo,{}),"Согласующий не назначен"]}):u.jsx("div",{className:O.approvers,children:C.approvers.map(k=>{const E=k.status??"pending";return u.jsxs("div",{className:O.approver,children:[u.jsxs("div",{className:O.approverMain,children:[u.jsx("span",{className:A(O.approverName,{[O.approverName_pending]:E==="pending",[O.approverName_approved]:E==="approved",[O.approverName_rejected]:E==="rejected"}),children:k.fullName}),k.actedAt&&E!=="pending"&&u.jsx("span",{className:O.approverDate,children:k.actedAt}),E==="rejected"&&k.rejectReason&&u.jsxs("span",{className:O.rejectReason,children:["Причина: ",k.rejectReason]})]}),t&&u.jsx("button",{type:"button",className:A(O.iconButton,O.iconButton_danger),onClick:()=>p?.(v.id,C.id,k.id),"aria-label":"Удалить согласующего",title:"Удалить согласующего",children:u.jsx(et,{})})]},k.id)})})]},C.id))}),t&&u.jsxs("button",{type:"button",className:O.addStage,onClick:()=>g(v.id),children:[u.jsx(Qt,{})," Добавить этап"]})]})]},v.id)}),t&&u.jsxs("div",{className:O.level,children:[u.jsx("div",{className:O.rail,children:u.jsx("span",{className:A(O.marker),"aria-hidden":!0})}),u.jsx("div",{className:O.body,children:u.jsxs("button",{type:"button",className:A(O.addStage,O.addLevel),onClick:()=>m(!0),children:[u.jsx(Qt,{})," Добавить уровень"]})})]})]}),u.jsx(qo,{open:h,title:"Новый уровень",placeholder:"Название уровня",onClose:()=>m(!1),onSubmit:v=>i?.(v)}),u.jsx(qo,{open:w!==null,title:"Новый этап",placeholder:"Название этапа",onClose:()=>g(null),onSubmit:v=>w&&c?.(w,v)})]})};exports.ApprovalRoute=_2;exports.ArrowDownBlueIcon=Xi;exports.ArrowDownIcon=vn;exports.ArrowRightIcon=Ki;exports.BaseBlock=xl;exports.Button=ce;exports.CameraIcon=sl;exports.CancelIcon=tl;exports.Card=rd;exports.Carousel=bd;exports.ChartIcon=Hi;exports.ChatIcon=Zi;exports.CheckGreen=Qi;exports.ClockFilledIcon=cl;exports.ClockIcon=Ri;exports.CloseRed=Ji;exports.CollapsableBlock=Cm;exports.Collapse=Ka;exports.Colors=Jo;exports.CopyIcon=Zo;exports.CopyTextTrigger=Ds;exports.CrossIcon=et;exports.DialogSelect=yi;exports.DoneIcon=hr;exports.DownloadIcon=pl;exports.EditIcon=il;exports.EmptyComponent=Ft;exports.EmptyIcon=Xo;exports.EnvelopIcon=nl;exports.FeedbackIcon=Vi;exports.FileReloadIcon=Li;exports.FileSync=Yi;exports.FilterIcon=al;exports.FolderEditIcon=Ni;exports.GraduateIcon=ji;exports.GridIcon=Pi;exports.HeartIcon=Ai;exports.HelpIcon=Mi;exports.HistoryBlue=el;exports.HomeIcon=Si;exports.InfoIcon=Ko;exports.InputCaption=Mn;exports.IslandIcon=fl;exports.Label=On;exports.ListIcon=Oi;exports.MarketIcon=Ti;exports.MegaphoneIcon=Ui;exports.MessageIcon=rl;exports.NotebookIcon=Wi;exports.PhoneIcon=ol;exports.PlaneIcon=Ii;exports.Popover=im;exports.ProfileIcon=Di;exports.ProfileSearchIcon=$i;exports.RadioGroupButton=jc;exports.ReloadIcon=ll;exports.SchoolIcon=dl;exports.SearchIcon=gn;exports.Select=Ih;exports.SettingsIcon=ul;exports.Spinner=ft;exports.Stepper=_g;exports.Tabs=Pg;exports.TabsRounded=dg;exports.Tag=ei;exports.TaskListIcon=qi;exports.TimesheetIcon=zi;exports.TooltipDark=jr;exports.TooltipLight=Sa;exports.TreeDialogSelect=sg;exports.TrendUpIcon=Fi;exports.UserSwitchIcon=Gi;exports.WalletIcon=Bi;exports.WarnIcon=Yo;exports.useDropdownPosition=Sc;exports.useMeasureElement=ws;
48
- //# sourceMappingURL=ui-library.cjs.js.map