@andreyfedkovich/cozy-ui 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -27
- package/dist-lib/styles.css +1 -1
- package/dist-lib/ui-library.cjs.js +10 -10
- package/dist-lib/ui-library.cjs.js.map +1 -1
- package/dist-lib/ui-library.es.js +3216 -3126
- package/dist-lib/ui-library.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),l=require("react/jsx-runtime"),Et=require("react-dom");function co(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=co(y),lo=co(Et),Sa=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"})),ja=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"})),Ra=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"})))),Na=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"})))),La=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"})),Aa=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"})),Pa=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"})))),Ma=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"})))),Oa=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"})),Ia=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"})),Ta=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"})))),Da=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"})))),$a=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"})))),Fa=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"})))),Ba=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"})),za=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"})),Ha=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"})),Va=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"})),Wa=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"})),qa=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"})),Ga=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"})),Ua=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"})),Za=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"})),Ya=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"})),en=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"})),Xa=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"})),tn=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"})),Ka=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)"})),Ze=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"})),Qa=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"})),Ja=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"})),ei=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"})),Un=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"})),ti=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"})),uo=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})),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("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"})),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",{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"})),oi=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"})),si=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"})),fo=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"})),po=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"})),ai=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"})),ii=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"})),ci=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"})),li=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"})),mo=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"})),ui=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)"})),di=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"})),fi=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"})),pi=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 ho=(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))(ho||{});function mi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _n={exports:{}};var wr;function hi(){return wr||(wr=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",i=0;i<arguments.length;i++){var c=arguments[i];c&&(s=o(s,r(c)))}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 c in s)t.call(s,c)&&s[c]&&(i=o(i,c));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})()})(_n)),_n.exports}var gi=hi();const P=mi(gi),vi="_block_tkxaf_1",wi="_subtitle_tkxaf_6",xi="_title_tkxaf_13",yn={block:vi,subtitle:wi,title:xi},bi=({id:e,title:t,subtitle:n,children:r,className:o})=>l.jsxs("div",{className:P(yn.block,o),id:e,children:[t&&typeof t=="string"?l.jsx("div",{className:yn.title,children:t}):t,n&&l.jsx("div",{className:yn.subtitle,children:n}),r]});function xr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function St(...e){return t=>{let n=!1;const r=e.map(o=>{const s=xr(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():xr(e[o],null)}}}}function ye(...e){return a.useCallback(St(...e),e)}var _i=Symbol.for("react.lazy"),Ut=a[" use ".trim().toString()];function yi(e){return typeof e=="object"&&e!==null&&"then"in e}function go(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===_i&&"_payload"in e&&yi(e._payload)}function vo(e){const t=ki(e),n=a.forwardRef((r,o)=>{let{children:s,...i}=r;go(s)&&typeof Ut=="function"&&(s=Ut(s._payload));const c=a.Children.toArray(s),u=c.find(Si);if(u){const d=u.props.children,f=c.map(m=>m===u?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:m);return l.jsx(t,{...i,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,f):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var Ci=vo("Slot");function ki(e){const t=a.forwardRef((n,r)=>{let{children:o,...s}=n;if(go(o)&&typeof Ut=="function"&&(o=Ut(o._payload)),a.isValidElement(o)){const i=Ri(o),c=ji(s,o.props);return o.type!==a.Fragment&&(c.ref=r?St(r,i):i),a.cloneElement(o,c)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ei=Symbol("radix.slottable");function Si(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ei}function ji(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]=(...c)=>{const u=s(...c);return o(...c),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ri(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 wo(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=wo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function xo(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=wo(e))&&(r&&(r+=" "),r+=t);return r}const br=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,_r=xo,bo=(e,t)=>n=>{var r;if(t?.variants==null)return _r(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(d=>{const f=n?.[d],m=s?.[d];if(f===null)return null;const h=br(f)||br(m);return o[d][h]}),c=n&&Object.entries(n).reduce((d,f)=>{let[m,h]=f;return h===void 0||(d[m]=h),d},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:m,className:h,...p}=f;return Object.entries(p).every(w=>{let[g,v]=w;return Array.isArray(v)?v.includes({...s,...c}[g]):{...s,...c}[g]===v})?[...d,m,h]:d},[]);return _r(e,i,u,n?.class,n?.className)},Ni=(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},Li=(e,t)=>({classGroupId:e,validator:t}),_o=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Zt="-",yr=[],Ai="arbitrary..",Pi=e=>{const t=Oi(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Mi(i);const c=i.split(Zt),u=c[0]===""&&c.length>1?1:0;return yo(c,u,t)},getConflictingClassGroupIds:(i,c)=>{if(c){const u=r[i],d=n[i];return u?d?Ni(d,u):u:d||yr}return n[i]||yr}}},yo=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const d=yo(e,t+1,s);if(d)return d}const i=n.validators;if(i===null)return;const c=t===0?e.join(Zt):e.slice(t).join(Zt),u=i.length;for(let d=0;d<u;d++){const f=i[d];if(f.validator(c))return f.classGroupId}},Mi=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?Ai+r:void 0})(),Oi=e=>{const{theme:t,classGroups:n}=e;return Ii(n,t)},Ii=(e,t)=>{const n=_o();for(const r in e){const o=e[r];Zn(o,n,r,t)}return n},Zn=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const i=e[s];Ti(i,t,n,r)}},Ti=(e,t,n,r)=>{if(typeof e=="string"){Di(e,t,n);return}if(typeof e=="function"){$i(e,t,n,r);return}Fi(e,t,n,r)},Di=(e,t,n)=>{const r=e===""?t:Co(t,e);r.classGroupId=n},$i=(e,t,n,r)=>{if(Bi(e)){Zn(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Li(n,e))},Fi=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let i=0;i<s;i++){const[c,u]=o[i];Zn(u,Co(t,c),n,r)}},Co=(e,t)=>{let n=e;const r=t.split(Zt),o=r.length;for(let s=0;s<o;s++){const i=r[s];let c=n.nextPart.get(i);c||(c=_o(),n.nextPart.set(i,c)),n=c}return n},Bi=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,zi=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)}}},Dn="!",Cr=":",Hi=[],kr=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Vi=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let i=0,c=0,u=0,d;const f=o.length;for(let g=0;g<f;g++){const v=o[g];if(i===0&&c===0){if(v===Cr){s.push(o.slice(u,g)),u=g+1;continue}if(v==="/"){d=g;continue}}v==="["?i++:v==="]"?i--:v==="("?c++:v===")"&&c--}const m=s.length===0?o:o.slice(u);let h=m,p=!1;m.endsWith(Dn)?(h=m.slice(0,-1),p=!0):m.startsWith(Dn)&&(h=m.slice(1),p=!0);const w=d&&d>u?d-u:void 0;return kr(s,p,h,w)};if(t){const o=t+Cr,s=r;r=i=>i.startsWith(o)?s(i.slice(o.length)):kr(Hi,!1,i,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Wi=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],c=i[0]==="[",u=t.has(i);c||u?(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}},qi=e=>({cache:zi(e.cacheSize),parseClassName:Vi(e),sortModifiers:Wi(e),...Pi(e)}),Gi=/\s+/,Ui=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],c=e.trim().split(Gi);let u="";for(let d=c.length-1;d>=0;d-=1){const f=c[d],{isExternal:m,modifiers:h,hasImportantModifier:p,baseClassName:w,maybePostfixModifierPosition:g}=n(f);if(m){u=f+(u.length>0?" "+u:u);continue}let v=!!g,x=r(v?w.substring(0,g):w);if(!x){if(!v){u=f+(u.length>0?" "+u:u);continue}if(x=r(w),!x){u=f+(u.length>0?" "+u:u);continue}v=!1}const _=h.length===0?"":h.length===1?h[0]:s(h).join(":"),b=p?_+Dn:_,C=b+x;if(i.indexOf(C)>-1)continue;i.push(C);const E=o(x,v);for(let k=0;k<E.length;++k){const j=E[k];i.push(b+j)}u=f+(u.length>0?" "+u:u)}return u},Zi=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=ko(n))&&(o&&(o+=" "),o+=r);return o},ko=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ko(e[r]))&&(n&&(n+=" "),n+=t);return n},Yi=(e,...t)=>{let n,r,o,s;const i=u=>{const d=t.reduce((f,m)=>m(f),e());return n=qi(d),r=n.cache.get,o=n.cache.set,s=c,c(u)},c=u=>{const d=r(u);if(d)return d;const f=Ui(u,n);return o(u,f),f};return s=i,(...u)=>s(Zi(...u))},Xi=[],oe=e=>{const t=n=>n[e]||Xi;return t.isThemeGetter=!0,t},Eo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,So=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ki=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Qi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ji=/\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)\(.+\)$/,Ve=e=>Ki.test(e),F=e=>!!e&&!Number.isNaN(Number(e)),We=e=>!!e&&Number.isInteger(Number(e)),Cn=e=>e.endsWith("%")&&F(e.slice(0,-1)),De=e=>Qi.test(e),jo=()=>!0,rc=e=>Ji.test(e)&&!ec.test(e),Yn=()=>!1,oc=e=>tc.test(e),sc=e=>nc.test(e),ac=e=>!N(e)&&!L(e),ic=e=>Qe(e,Lo,Yn),N=e=>Eo.test(e),rt=e=>Qe(e,Ao,rc),Er=e=>Qe(e,hc,F),cc=e=>Qe(e,Mo,jo),lc=e=>Qe(e,Po,Yn),Sr=e=>Qe(e,Ro,Yn),uc=e=>Qe(e,No,sc),At=e=>Qe(e,Oo,oc),L=e=>So.test(e),_t=e=>ct(e,Ao),dc=e=>ct(e,Po),jr=e=>ct(e,Ro),fc=e=>ct(e,Lo),pc=e=>ct(e,No),Pt=e=>ct(e,Oo,!0),mc=e=>ct(e,Mo,!0),Qe=(e,t,n)=>{const r=Eo.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ct=(e,t,n=!1)=>{const r=So.exec(e);return r?r[1]?t(r[1]):n:!1},Ro=e=>e==="position"||e==="percentage",No=e=>e==="image"||e==="url",Lo=e=>e==="length"||e==="size"||e==="bg-size",Ao=e=>e==="length",hc=e=>e==="number",Po=e=>e==="family-name",Mo=e=>e==="number"||e==="weight",Oo=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"),c=oe("container"),u=oe("spacing"),d=oe("radius"),f=oe("shadow"),m=oe("inset-shadow"),h=oe("text-shadow"),p=oe("drop-shadow"),w=oe("blur"),g=oe("perspective"),v=oe("aspect"),x=oe("ease"),_=oe("animate"),b=()=>["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"],E=()=>[...C(),L,N],k=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],S=()=>[L,N,u],O=()=>[Ve,"full","auto",...S()],D=()=>[We,"none","subgrid",L,N],B=()=>["auto",{span:["full",We,L,N]},We,L,N],W=()=>[We,"auto",L,N],z=()=>["auto","min","max","fr",L,N],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...S()],V=()=>[Ve,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],A=()=>[Ve,"screen","full","dvw","lvw","svw","min","max","fit",...S()],X=()=>[Ve,"screen","full","lh","dvh","lvh","svh","min","max","fit",...S()],R=()=>[e,L,N],ue=()=>[...C(),jr,Sr,{position:[L,N]}],de=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ne=()=>["auto","cover","contain",fc,ic,{size:[L,N]}],ae=()=>[Cn,_t,rt],q=()=>["","none","full",d,L,N],J=()=>["",F,_t,rt],fe=()=>["solid","dashed","dotted","double"],T=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>[F,Cn,jr,Sr],we=()=>["","none",w,L,N],ke=()=>["none",F,L,N],Ce=()=>["none",F,L,N],G=()=>[F,L,N],re=()=>[Ve,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[De],breakpoint:[De],color:[jo],container:[De],"drop-shadow":[De],ease:["in","out","in-out"],font:[ac],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[De],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[De],shadow:[De],spacing:["px",F],text:[De],"text-shadow":[De],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ve,N,L,v]}],container:["container"],columns:[{columns:[F,N,L,c]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"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:E()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{"inset-s":O(),start:O()}],end:[{"inset-e":O(),end:O()}],"inset-bs":[{"inset-bs":O()}],"inset-be":[{"inset-be":O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[We,"auto",L,N]}],basis:[{basis:[Ve,"full","auto",c,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[F,Ve,"auto","initial","none",N]}],grow:[{grow:["",F,L,N]}],shrink:[{shrink:["",F,L,N]}],order:[{order:[We,"first","last","none",L,N]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":z()}],"auto-rows":[{"auto-rows":z()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],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:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mbs:[{mbs:$()}],mbe:[{mbe:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],"inline-size":[{inline:["auto",...A()]}],"min-inline-size":[{"min-inline":["auto",...A()]}],"max-inline-size":[{"max-inline":["none",...A()]}],"block-size":[{block:["auto",...X()]}],"min-block-size":[{"min-block":["auto",...X()]}],"max-block-size":[{"max-block":["none",...X()]}],w:[{w:[c,"screen",...V()]}],"min-w":[{"min-w":[c,"screen","none",...V()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[i]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",n,_t,rt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,mc,cc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Cn,N]}],"font-family":[{font:[dc,lc,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,L,N]}],"line-clamp":[{"line-clamp":[F,"none",L,Er]}],leading:[{leading:[s,...S()]}],"list-image":[{"list-image":["none",L,N]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",L,N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[F,"from-font","auto",L,rt]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[F,"auto",L,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",L,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",L,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:ue()}],"bg-repeat":[{bg:de()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},We,L,N],radial:["",L,N],conic:[We,L,N]},pc,uc]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:ae()}],"gradient-via-pos":[{via:ae()}],"gradient-to-pos":[{to:ae()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:q()}],"rounded-s":[{"rounded-s":q()}],"rounded-e":[{"rounded-e":q()}],"rounded-t":[{"rounded-t":q()}],"rounded-r":[{"rounded-r":q()}],"rounded-b":[{"rounded-b":q()}],"rounded-l":[{"rounded-l":q()}],"rounded-ss":[{"rounded-ss":q()}],"rounded-se":[{"rounded-se":q()}],"rounded-ee":[{"rounded-ee":q()}],"rounded-es":[{"rounded-es":q()}],"rounded-tl":[{"rounded-tl":q()}],"rounded-tr":[{"rounded-tr":q()}],"rounded-br":[{"rounded-br":q()}],"rounded-bl":[{"rounded-bl":q()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-bs":[{"border-bs":J()}],"border-w-be":[{"border-be":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-bs":[{"border-bs":R()}],"border-color-be":[{"border-be":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[F,L,N]}],"outline-w":[{outline:["",F,_t,rt]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",f,Pt,At]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",m,Pt,At]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[F,rt]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",h,Pt,At]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[F,L,N]}],"mix-blend":[{"mix-blend":[...T(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":T()}],"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":[F]}],"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":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"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":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"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":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"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":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"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":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"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":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"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":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[L,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":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"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":[F]}],"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":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ue()}],"mask-repeat":[{mask:de()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",L,N]}],filter:[{filter:["","none",L,N]}],blur:[{blur:we()}],brightness:[{brightness:[F,L,N]}],contrast:[{contrast:[F,L,N]}],"drop-shadow":[{"drop-shadow":["","none",p,Pt,At]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",F,L,N]}],"hue-rotate":[{"hue-rotate":[F,L,N]}],invert:[{invert:["",F,L,N]}],saturate:[{saturate:[F,L,N]}],sepia:[{sepia:["",F,L,N]}],"backdrop-filter":[{"backdrop-filter":["","none",L,N]}],"backdrop-blur":[{"backdrop-blur":we()}],"backdrop-brightness":[{"backdrop-brightness":[F,L,N]}],"backdrop-contrast":[{"backdrop-contrast":[F,L,N]}],"backdrop-grayscale":[{"backdrop-grayscale":["",F,L,N]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[F,L,N]}],"backdrop-invert":[{"backdrop-invert":["",F,L,N]}],"backdrop-opacity":[{"backdrop-opacity":[F,L,N]}],"backdrop-saturate":[{"backdrop-saturate":[F,L,N]}],"backdrop-sepia":[{"backdrop-sepia":["",F,L,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",L,N]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[F,"initial",L,N]}],ease:[{ease:["linear","initial",x,L,N]}],delay:[{delay:[F,L,N]}],animate:[{animate:["none",_,L,N]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,L,N]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:ke()}],"rotate-x":[{"rotate-x":ke()}],"rotate-y":[{"rotate-y":ke()}],"rotate-z":[{"rotate-z":ke()}],scale:[{scale:Ce()}],"scale-x":[{"scale-x":Ce()}],"scale-y":[{"scale-y":Ce()}],"scale-z":[{"scale-z":Ce()}],"scale-3d":["scale-3d"],skew:[{skew:G()}],"skew-x":[{"skew-x":G()}],"skew-y":[{"skew-y":G()}],transform:[{transform:[L,N,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"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:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"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",L,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",L,N]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[F,_t,rt,Er]}],stroke:[{stroke:["none",...R()]}],"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=Yi(gc);function Pe(...e){return vc(xo(e))}const wc=bo("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"}}),Xn=a.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?Ci:"button";return l.jsx(i,{className:Pe(wc({variant:t,size:n,className:e})),ref:s,...o})});Xn.displayName="Button";const xc="_cssloadSpeedingWheel_akex8_6",bc="_bigSize_akex8_20",_c="_smallSize_akex8_26",yc="_extraSmallSize_akex8_32",Mt={cssloadSpeedingWheel:xc,bigSize:bc,smallSize:_c,extraSmallSize:yc},st=({marginTop:e,marginBottom:t,marginLeft:n,className:r,size:o="big"})=>{const s=y.useMemo(()=>({marginTop:e,marginBottom:t,marginLeft:n}),[t,n,e]);return l.jsx("div",{className:r,style:s,children:l.jsx("div",{className:P(Mt.cssloadSpeedingWheel,{[Mt.bigSize]:o==="big",[Mt.smallSize]:o==="small",[Mt.extraSmallSize]:o==="extraSmall"})})})},Cc="_button_fafaj_1",kc="_button__loader_fafaj_186",Ec="_button__content_fafaj_193",lt={button:Cc,"button--variant-primary":"_button--variant-primary_fafaj_26","button--variant-primary--disabled":"_button--variant-primary--disabled_fafaj_37","button--variant-default":"_button--variant-default_fafaj_45","button--variant-default--disabled":"_button--variant-default--disabled_fafaj_58","button--variant-secondary":"_button--variant-secondary_fafaj_66","button--variant-secondary--disabled":"_button--variant-secondary--disabled_fafaj_81","button--variant-text":"_button--variant-text_fafaj_89","button--variant-text--disabled":"_button--variant-text--disabled_fafaj_105","button--variant-link":"_button--variant-link_fafaj_113","button--variant-link--disabled":"_button--variant-link--disabled_fafaj_129","button--variant-danger":"_button--variant-danger_fafaj_137","button--variant-danger--disabled":"_button--variant-danger--disabled_fafaj_147","button--size-small":"_button--size-small_fafaj_155","button--size-medium":"_button--size-medium_fafaj_163","button--size-large":"_button--size-large_fafaj_171","button--loading":"_button--loading_fafaj_182",button__loader:kc,button__content:Ec},le=y.forwardRef(({variant:e="default",size:t="medium",className:n="",loading:r=!1,disabled:o=!1,children:s,type:i="button",...c},u)=>{const d=P(lt.button,lt[`button--variant-${e}`],lt[`button--size-${t}`],{[lt["button--loading"]]:r,[lt["button--disabled"]]:o},n);return l.jsxs(Xn,{ref:u,variant:null,size:null,className:d,disabled:o||r,type:i,...c,children:[s&&s,r&&l.jsx("span",{className:lt.button__loader,children:l.jsx(st,{size:"extraSmall"})})]})});le.displayName="Button";const Io=e=>{const[t,n]=y.useState(0),[r,o]=y.useState(0),s=y.useRef(null);return y.useEffect(()=>{if(!e)return;const c=new ResizeObserver(d=>{s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{for(const f of d)if(f.borderBoxSize){const m=Array.isArray(f.borderBoxSize)?f.borderBoxSize[0]:f.borderBoxSize;n(m.blockSize),o(m.inlineSize)}else n(f.contentRect.height),o(f.contentRect.width)})});c.observe(e);const u=e.getBoundingClientRect().height;return n(u),()=>{c.disconnect()}},[e,n]),y.useMemo(()=>({height:t,width:r}),[t,r])},Rr={capture:!0,passive:!0},Sc=({triggerRef:e,dropdownHeight:t,offset:n=8,enabled:r=!0,onAnchorFrame:o})=>{const[s,i]=y.useState("bottom"),c=y.useRef(null),u=y.useCallback(()=>{if(!e.current)return"bottom";const f=e.current.getBoundingClientRect(),m=window.innerHeight,h=f.top-n;return m-f.bottom-n>=t?"bottom":h>=t?"top":"bottom"},[e,t,n]),d=y.useCallback(()=>{c.current&&cancelAnimationFrame(c.current),c.current=requestAnimationFrame(()=>{const f=u();i(f),o?.(f)})},[u,o]);return y.useEffect(()=>{if(!r)return;const f=e.current;if(!f)return;d();const m=new ResizeObserver(()=>{d()});m.observe(f);const h=new MutationObserver(()=>{d()});h.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]});const p=[];let w=f.parentElement;for(;w;){const g=window.getComputedStyle(w),v=g.overflow+g.overflowY+g.overflowX;/(auto|scroll)/.test(v)&&(p.push(w),w.addEventListener("scroll",d)),w=w.parentElement}return window.addEventListener("scroll",d,Rr),window.addEventListener("resize",d),window.addEventListener("transitionend",d),window.addEventListener("animationend",d),()=>{c.current&&cancelAnimationFrame(c.current),m.disconnect(),h.disconnect(),window.removeEventListener("scroll",d,Rr),window.removeEventListener("resize",d),window.removeEventListener("transitionend",d),window.removeEventListener("animationend",d),p.forEach(g=>{g.removeEventListener("scroll",d)})}},[r,e,d]),s},jc="_container_1dkro_1",Rc="_activeButton_1dkro_16",Nc="_slider_1dkro_22",kn={container:jc,activeButton:Rc,slider:Nc},Lc=({data:e,activeButton:t,defaultActiveButton:n,onChange:r})=>{const[o,s]=y.useState(n||e[0]?.id),[i,c]=y.useState({transform:"translateX(0)",width:0}),u=y.useRef(new Map),d=t||o,{width:f}=Io(u.current.get(d)),m=p=>{p.id!==d&&(r?.(p.id),s(p.id))},h=y.useCallback((p,w)=>{u.current.set(w,p)},[]);return y.useEffect(()=>{const p=e.findIndex(w=>w.id===d);if(p>=0){const g=e.slice(0,p).reduce((v,x)=>{const _=u.current.get(x.id);if(_){const b=_.getBoundingClientRect().width;v+=b}return v},0);c({transform:`translateX(${g}px)`,width:f})}},[d,f,e]),l.jsxs("div",{className:kn.container,children:[e.map(p=>l.jsx("div",{ref:w=>h(w,p.id),children:l.jsxs(le,{size:"small",onClick:()=>m(p),className:P({[kn.activeButton]:p.id===d}),children:[p.label,p.additionalComponent]})},p.id)),l.jsx("div",{className:kn.slider,style:i})]})},Ac="_card_1cqzz_1",Pc="_link_1cqzz_17",Nr={card:Ac,link:Pc},Mc=y.memo(({text:e,width:t,height:n,className:r,backgroundColor:o,imageUrl:s,textColor:i,link:c})=>{const u=P(Nr.card,{[Nr.link]:c},r),d=y.useMemo(()=>({backgroundColor:o,...i&&{color:i},...t&&{width:t},...n&&{height:`${n}px`},...s&&{backgroundImage:`url(${s})`}}),[o,n,s,i,t]);return c?l.jsx("a",{className:u,style:d,href:c,children:l.jsx("span",{children:e})}):l.jsx("div",{className:u,style:d,children:l.jsx("span",{children:e})})}),Oc="_carouselWrapper_12142_1",Ic="_carousel_12142_1",Tc="_viewport_12142_13",Dc="_slide_12142_19",$c="_activeSlide_12142_24",Fc="_itemContent_12142_28",Bc="_controls_12142_36",zc="_carouselControl_12142_48",Hc="_prevIcon_12142_71",Vc="_nextIcon_12142_72",Wc="_indicators_12142_90",qc="_activeIndicator_12142_115",ve={carouselWrapper:Oc,carousel:Ic,viewport:Tc,slide:Dc,activeSlide:$c,itemContent:Fc,controls:Bc,carouselControl:zc,prevIcon:Hc,nextIcon:Vc,indicators:Wc,activeIndicator:qc},Gc=e=>"items"in e&&Array.isArray(e.items)&&"renderItem"in e&&typeof e.renderItem=="function",Uc=e=>Gc(e)?e.items.map((t,n)=>({key:`${t.id}-${n}`,content:e.renderItem(t),caption:t.caption})):y.Children.toArray(e.children).map((t,n)=>({key:y.isValidElement(t)&&t.key!==null&&t.key!==void 0&&t.key!=="."?String(t.key):`slide-${n}`,content:t})),Zc=e=>{const t={...e};return delete t.items,delete t.renderItem,delete t.children,t},Yc=e=>{const t=Uc(e),n=t.length,r=Zc(e),{className:o,dark:s,enableTouch:i,fade:c,interval:u,keyboard:d=!0,pause:f,ride:m,slide:h,...p}=r,[w,g]=y.useState(0),v=()=>{g(k=>k===n-1?0:k+1)},x=()=>{g(k=>k===0?n-1:k-1)},_=k=>{g(k)},b=n>1,C=y.useMemo(()=>t.map(k=>({key:k.key})),[t]),E=k=>{p.onKeyDown?.(k),!(k.defaultPrevented||!d||!b)&&(k.key==="ArrowLeft"&&x(),k.key==="ArrowRight"&&v())};return n?b?l.jsx("div",{className:ve.carouselWrapper,children:l.jsxs("div",{...p,className:[ve.carousel,o].filter(Boolean).join(" "),onKeyDown:E,role:"region","aria-roledescription":"carousel",children:[l.jsx("div",{className:ve.viewport,children:t.map((k,j)=>l.jsx("div",{className:[ve.slide,j===w?ve.activeSlide:""].filter(Boolean).join(" "),"aria-hidden":j!==w,children:l.jsx("div",{className:ve.itemContent,children:k.content})},k.key))}),l.jsxs("div",{className:ve.controls,children:[l.jsx("button",{className:ve.carouselControl,type:"button",onClick:x,"aria-label":"Previous slide",children:l.jsx("span",{className:ve.prevIcon,"aria-hidden":"true"})}),l.jsx("div",{className:ve.indicators,children:C.map((k,j)=>l.jsx("button",{className:j===w?ve.activeIndicator:void 0,type:"button",onClick:()=>_(j),"aria-label":`Go to slide ${j+1}`,"aria-current":j===w},k.key))}),l.jsx("button",{className:ve.carouselControl,type:"button",onClick:v,"aria-label":"Next slide",children:l.jsx("span",{className:ve.nextIcon,"aria-hidden":"true"})})]})]})}):l.jsx("div",{className:ve.carouselWrapper,children:t[0].content}):null},xe=8;function Xc(e,t="top"){const{left:n,right:r,top:o,bottom:s,width:i,height:c}=e,u=n+i/2,d=o+c/2;switch(t){case"top":return{left:u,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:u,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:u,top:o-xe,transform:"translate(-50%, -100%)"}}}const Kc="_overlay_1pnex_1",Qc="_fadeIn_1pnex_1",Jc="_arrow_1pnex_16",el="_top_1pnex_22",tl="_bottom_1pnex_28",nl="_left_1pnex_34",rl="_right_1pnex_40",En={overlay:Kc,fadeIn:Qc,arrow:Jc,top:el,bottom:tl,left:nl,right:rl};function ol(e){return e.startsWith("top")?"bottom":e.startsWith("bottom")?"top":e.startsWith("left")?"right":e.startsWith("right")?"left":"top"}const Kn=y.memo(({title:e,open:t,defaultOpen:n=!1,trigger:r="hover",mouseEnterDelay:o=100,mouseLeaveDelay:s=100,onOpenChange:i,placement:c="top",arrow:u=!0,children:d,overlayClassName:f,getPopupContainer:m=()=>document.body})=>{const h=t!==void 0,[p,w]=y.useState(n),g=h?t:p,v=y.useCallback(A=>{h||w(A),i?.(A)},[h,i]),x=y.useRef(null),[_,b]=y.useState(null),C=y.useRef(null),E=y.useRef(null),k=Array.isArray(r)?r:[r],j=k.includes("hover"),S=k.includes("click"),O=y.useCallback(()=>{C.current&&(clearTimeout(C.current),C.current=null)},[]),D=y.useCallback(()=>{E.current&&(clearTimeout(E.current),E.current=null)},[]),B=y.useCallback(()=>{j&&(D(),C.current=setTimeout(()=>v(!0),o))},[j,o,v,D]),W=y.useCallback(()=>{j&&(O(),E.current=setTimeout(()=>v(!1),s))},[j,s,v,O]),z=y.useCallback(A=>{S&&(A.preventDefault(),v(!g))},[S,g,v]);y.useEffect(()=>{if(!S||!g||h)return;const A=X=>{const R=x.current;R&&!R.contains(X.target)&&v(!1)};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[S,g,h,v]),y.useLayoutEffect(()=>{if(!g||!x.current){b(null);return}const A=x.current.getBoundingClientRect();b(Xc(A,c))},[g,c]),y.useEffect(()=>()=>{O(),D()},[O,D]);const H=typeof document<"u"?m():null,Y=ol(c),$=g&&e!=null&&e!==""&&_&&H&&Et.createPortal(l.jsxs("span",{className:P(En.overlay,f),style:{left:_.left,top:_.top,transform:_.transform},role:"tooltip",children:[e,u&&l.jsx("span",{className:P(En.arrow,En[Y])})]}),H),V=!h&&(j||S)?{onMouseEnter:B,onMouseLeave:W,onClick:S?z:void 0}:{};return l.jsxs(l.Fragment,{children:[l.jsx("span",{ref:x,...V,children:d}),$]})});Kn.displayName="TooltipDark";const sl="_wrapper_15jb4_1",al="_trigger_15jb4_5",il="_icon_15jb4_27",Sn={wrapper:sl,trigger:al,icon:il},To=y.memo(({children:e,onClick:t,copied:n,tooltipText:r="Скопировано",ariaLabel:o,showIcon:s=!0,className:i})=>{const c=y.useCallback(()=>{t()},[t]);return l.jsx("span",{className:Sn.wrapper,children:l.jsx(Kn,{open:n,title:r,placement:"top",children:l.jsxs(Xn,{type:"button",variant:null,size:null,className:P(Sn.trigger,i),onClick:c,"aria-label":o,"aria-live":"polite",children:[e,s&&l.jsx(fo,{className:Sn.icon,"aria-hidden":!0})]})})})});To.displayName="CopyTextTrigger";function Do(e){return typeof document>"u"?null:Et.createPortal(e,document.body)}function se(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function cl(e,t){const n=a.createContext(t),r=s=>{const{children:i,...c}=s,u=a.useMemo(()=>c,Object.values(c));return l.jsx(n.Provider,{value:u,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 nn(e,t=[]){let n=[];function r(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];const d=m=>{const{scope:h,children:p,...w}=m,g=h?.[e]?.[u]||c,v=a.useMemo(()=>w,Object.values(w));return l.jsx(g.Provider,{value:v,children:p})};d.displayName=s+"Provider";function f(m,h){const p=h?.[e]?.[u]||c,w=a.useContext(p);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(i=>a.createContext(i));return function(c){const u=c?.[e]||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return o.scopeName=e,[r,ll(o,...t)]}function ll(...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((c,{useScope:u,scopeName:d})=>{const m=u(s)[`__scope${d}`];return{...c,...m}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function ul(e){const t=dl(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,c=a.Children.toArray(s),u=c.find(pl);if(u){const d=u.props.children,f=c.map(m=>m===u?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:m);return l.jsx(t,{...i,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,f):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function dl(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=hl(o),c=ml(s,o.props);return o.type!==a.Fragment&&(c.ref=r?St(r,i):i),a.cloneElement(o,c)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fl=Symbol("radix.slottable");function pl(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fl}function ml(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]=(...c)=>{const u=s(...c);return o(...c),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function hl(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 gl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],me=gl.reduce((e,t)=>{const n=ul(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...c}=o,u=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function vl(e,t){e&&lo.flushSync(()=>e.dispatchEvent(t))}function ht(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>t.current?.(...n),[])}function wl(e,t=globalThis?.document){const n=ht(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 xl="DismissableLayer",$n="dismissableLayer.update",bl="dismissableLayer.pointerDownOutside",_l="dismissableLayer.focusOutside",Lr,$o=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rn=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:c,...u}=e,d=a.useContext($o),[f,m]=a.useState(null),h=f?.ownerDocument??globalThis?.document,[,p]=a.useState({}),w=ye(t,j=>m(j)),g=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(v),_=f?g.indexOf(f):-1,b=d.layersWithOutsidePointerEventsDisabled.size>0,C=_>=x,E=kl(j=>{const S=j.target,O=[...d.branches].some(D=>D.contains(S));!C||O||(o?.(j),i?.(j),j.defaultPrevented||c?.())},h),k=El(j=>{const S=j.target;[...d.branches].some(D=>D.contains(S))||(s?.(j),i?.(j),j.defaultPrevented||c?.())},h);return wl(j=>{_===d.layers.size-1&&(r?.(j),!j.defaultPrevented&&c&&(j.preventDefault(),c()))},h),a.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Lr=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Ar(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Lr)}},[f,h,n,d]),a.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Ar())},[f,d]),a.useEffect(()=>{const j=()=>p({});return document.addEventListener($n,j),()=>document.removeEventListener($n,j)},[]),l.jsx(me.div,{...u,ref:w,style:{pointerEvents:b?C?"auto":"none":void 0,...e.style},onFocusCapture:se(e.onFocusCapture,k.onFocusCapture),onBlurCapture:se(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:se(e.onPointerDownCapture,E.onPointerDownCapture)})});rn.displayName=xl;var yl="DismissableLayerBranch",Cl=a.forwardRef((e,t)=>{const n=a.useContext($o),r=a.useRef(null),o=ye(t,r);return a.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsx(me.div,{...e,ref:o})});Cl.displayName=yl;function kl(e,t=globalThis?.document){const n=ht(e),r=a.useRef(!1),o=a.useRef(()=>{});return a.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let u=function(){Fo(bl,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}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 El(e,t=globalThis?.document){const n=ht(e),r=a.useRef(!1);return a.useEffect(()=>{const o=s=>{s.target&&!r.current&&Fo(_l,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 Ar(){const e=new CustomEvent($n);document.dispatchEvent(e)}function Fo(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?vl(o,s):o.dispatchEvent(s)}var Ye=globalThis?.document?a.useLayoutEffect:()=>{},Sl=a[" useId ".trim().toString()]||(()=>{}),jl=0;function yt(e){const[t,n]=a.useState(Sl());return Ye(()=>{n(r=>r??String(jl++))},[e]),e||(t?`radix-${t}`:"")}const Rl=["top","right","bottom","left"],Xe=Math.min,be=Math.max,Yt=Math.round,Ot=Math.floor,Ae=e=>({x:e,y:e}),Nl={left:"right",right:"left",bottom:"top",top:"bottom"};function Fn(e,t,n){return be(e,Xe(t,n))}function Fe(e,t){return typeof e=="function"?e(t):e}function Be(e){return e.split("-")[0]}function xt(e){return e.split("-")[1]}function Qn(e){return e==="x"?"y":"x"}function Jn(e){return e==="y"?"height":"width"}function Le(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function er(e){return Qn(Le(e))}function Ll(e,t,n){n===void 0&&(n=!1);const r=xt(e),o=er(e),s=Jn(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Xt(i)),[i,Xt(i)]}function Al(e){const t=Xt(e);return[Bn(e),t,Bn(t)]}function Bn(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Pr=["left","right"],Mr=["right","left"],Pl=["top","bottom"],Ml=["bottom","top"];function Ol(e,t,n){switch(e){case"top":case"bottom":return n?t?Mr:Pr:t?Pr:Mr;case"left":case"right":return t?Pl:Ml;default:return[]}}function Il(e,t,n,r){const o=xt(e);let s=Ol(Be(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Bn)))),s}function Xt(e){const t=Be(e);return Nl[t]+e.slice(t.length)}function Tl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Bo(e){return typeof e!="number"?Tl(e):{top:e,right:e,bottom:e,left:e}}function Kt(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 Or(e,t,n){let{reference:r,floating:o}=e;const s=Le(t),i=er(t),c=Jn(i),u=Be(t),d=s==="y",f=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,h=r[c]/2-o[c]/2;let p;switch(u){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:m};break;case"left":p={x:r.x-o.width,y:m};break;default:p={x:r.x,y:r.y}}switch(xt(t)){case"start":p[i]-=h*(n&&d?-1:1);break;case"end":p[i]+=h*(n&&d?-1:1);break}return p}async function Dl(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:h=!1,padding:p=0}=Fe(t,e),w=Bo(p),v=c[h?m==="floating"?"reference":"floating":m],x=Kt(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(c.floating)),boundary:d,rootBoundary:f,strategy:u})),_=m==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),C=await(s.isElement==null?void 0:s.isElement(b))?await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1}:{x:1,y:1},E=Kt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:_,offsetParent:b,strategy:u}):_);return{top:(x.top-E.top+w.top)/C.y,bottom:(E.bottom-x.bottom+w.bottom)/C.y,left:(x.left-E.left+w.left)/C.x,right:(E.right-x.right+w.right)/C.x}}const $l=50,Fl=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,c=i.detectOverflow?i:{...i,detectOverflow:Dl},u=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:m}=Or(d,r,u),h=r,p=0;const w={};for(let g=0;g<s.length;g++){const v=s[g];if(!v)continue;const{name:x,fn:_}=v,{x:b,y:C,data:E,reset:k}=await _({x:f,y:m,initialPlacement:r,placement:h,strategy:o,middlewareData:w,rects:d,platform:c,elements:{reference:e,floating:t}});f=b??f,m=C??m,w[x]={...w[x],...E},k&&p<$l&&(p++,typeof k=="object"&&(k.placement&&(h=k.placement),k.rects&&(d=k.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:f,y:m}=Or(d,h,u)),g=-1)}return{x:f,y:m,placement:h,strategy:o,middlewareData:w}},Bl=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:c,middlewareData:u}=t,{element:d,padding:f=0}=Fe(e,t)||{};if(d==null)return{};const m=Bo(f),h={x:n,y:r},p=er(o),w=Jn(p),g=await i.getDimensions(d),v=p==="y",x=v?"top":"left",_=v?"bottom":"right",b=v?"clientHeight":"clientWidth",C=s.reference[w]+s.reference[p]-h[p]-s.floating[w],E=h[p]-s.reference[p],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let j=k?k[b]:0;(!j||!await(i.isElement==null?void 0:i.isElement(k)))&&(j=c.floating[b]||s.floating[w]);const S=C/2-E/2,O=j/2-g[w]/2-1,D=Xe(m[x],O),B=Xe(m[_],O),W=D,z=j-g[w]-B,H=j/2-g[w]/2+S,Y=Fn(W,H,z),$=!u.arrow&&xt(o)!=null&&H!==Y&&s.reference[w]/2-(H<W?D:B)-g[w]/2<0,V=$?H<W?H-W:H-z:0;return{[p]:h[p]+V,data:{[p]:Y,centerOffset:H-Y-V,...$&&{alignmentOffset:V}},reset:$}}}),zl=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:c,platform:u,elements:d}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:g=!0,...v}=Fe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=Be(o),_=Le(c),b=Be(c)===c,C=await(u.isRTL==null?void 0:u.isRTL(d.floating)),E=h||(b||!g?[Xt(c)]:Al(c)),k=w!=="none";!h&&k&&E.push(...Il(c,g,w,C));const j=[c,...E],S=await u.detectOverflow(t,v),O=[];let D=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&O.push(S[x]),m){const H=Ll(o,i,C);O.push(S[H[0]],S[H[1]])}if(D=[...D,{placement:o,overflows:O}],!O.every(H=>H<=0)){var B,W;const H=(((B=s.flip)==null?void 0:B.index)||0)+1,Y=j[H];if(Y&&(!(m==="alignment"?_!==Le(Y):!1)||D.every(A=>Le(A.placement)===_?A.overflows[0]>0:!0)))return{data:{index:H,overflows:D},reset:{placement:Y}};let $=(W=D.filter(V=>V.overflows[0]<=0).sort((V,A)=>V.overflows[1]-A.overflows[1])[0])==null?void 0:W.placement;if(!$)switch(p){case"bestFit":{var z;const V=(z=D.filter(A=>{if(k){const X=Le(A.placement);return X===_||X==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(X=>X>0).reduce((X,R)=>X+R,0)]).sort((A,X)=>A[1]-X[1])[0])==null?void 0:z[0];V&&($=V);break}case"initialPlacement":$=c;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Ir(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Tr(e){return Rl.some(t=>e[t]>=0)}const Hl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=Fe(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),c=Ir(i,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Tr(c)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),c=Ir(i,n.floating);return{data:{escapedOffsets:c,escaped:Tr(c)}}}default:return{}}}}},zo=new Set(["left","top"]);async function Vl(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Be(n),c=xt(n),u=Le(n)==="y",d=zo.has(i)?-1:1,f=s&&u?-1:1,m=Fe(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:w}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof w=="number"&&(p=c==="end"?w*-1:w),u?{x:p*f,y:h*d}:{x:h*d,y:p*f}}const Wl=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:c}=t,u=await Vl(t,e);return i===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:i}}}}},ql=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:c=!1,limiter:u={fn:x=>{let{x:_,y:b}=x;return{x:_,y:b}}},...d}=Fe(e,t),f={x:n,y:r},m=await s.detectOverflow(t,d),h=Le(Be(o)),p=Qn(h);let w=f[p],g=f[h];if(i){const x=p==="y"?"top":"left",_=p==="y"?"bottom":"right",b=w+m[x],C=w-m[_];w=Fn(b,w,C)}if(c){const x=h==="y"?"top":"left",_=h==="y"?"bottom":"right",b=g+m[x],C=g-m[_];g=Fn(b,g,C)}const v=u.fn({...t,[p]:w,[h]:g});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[p]:i,[h]:c}}}}}},Gl=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=Fe(e,t),f={x:n,y:r},m=Le(o),h=Qn(m);let p=f[h],w=f[m];const g=Fe(c,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const b=h==="y"?"height":"width",C=s.reference[h]-s.floating[b]+v.mainAxis,E=s.reference[h]+s.reference[b]-v.mainAxis;p<C?p=C:p>E&&(p=E)}if(d){var x,_;const b=h==="y"?"width":"height",C=zo.has(Be(o)),E=s.reference[m]-s.floating[b]+(C&&((x=i.offset)==null?void 0:x[m])||0)+(C?0:v.crossAxis),k=s.reference[m]+s.reference[b]+(C?0:((_=i.offset)==null?void 0:_[m])||0)-(C?v.crossAxis:0);w<E?w=E:w>k&&(w=k)}return{[h]:p,[m]:w}}}},Ul=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:c}=t,{apply:u=()=>{},...d}=Fe(e,t),f=await i.detectOverflow(t,d),m=Be(o),h=xt(o),p=Le(o)==="y",{width:w,height:g}=s.floating;let v,x;m==="top"||m==="bottom"?(v=m,x=h===(await(i.isRTL==null?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(x=m,v=h==="end"?"top":"bottom");const _=g-f.top-f.bottom,b=w-f.left-f.right,C=Xe(g-f[v],_),E=Xe(w-f[x],b),k=!t.middlewareData.shift;let j=C,S=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=_),k&&!h){const D=be(f.left,0),B=be(f.right,0),W=be(f.top,0),z=be(f.bottom,0);p?S=w-2*(D!==0||B!==0?D+B:be(f.left,f.right)):j=g-2*(W!==0||z!==0?W+z:be(f.top,f.bottom))}await u({...t,availableWidth:S,availableHeight:j});const O=await i.getDimensions(c.floating);return w!==O.width||g!==O.height?{reset:{rects:!0}}:{}}}};function on(){return typeof window<"u"}function bt(e){return Ho(e)?(e.nodeName||"").toLowerCase():"#document"}function _e(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Me(e){var t;return(t=(Ho(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ho(e){return on()?e instanceof Node||e instanceof _e(e).Node:!1}function pe(e){return on()?e instanceof Element||e instanceof _e(e).Element:!1}function ze(e){return on()?e instanceof HTMLElement||e instanceof _e(e).HTMLElement:!1}function Dr(e){return!on()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _e(e).ShadowRoot}function jt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function Zl(e){return/^(table|td|th)$/.test(bt(e))}function sn(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Yl=/transform|translate|scale|rotate|perspective|filter/,Xl=/paint|layout|strict|content/,ot=e=>!!e&&e!=="none";let jn;function tr(e){const t=pe(e)?Ee(e):e;return ot(t.transform)||ot(t.translate)||ot(t.scale)||ot(t.rotate)||ot(t.perspective)||!nr()&&(ot(t.backdropFilter)||ot(t.filter))||Yl.test(t.willChange||"")||Xl.test(t.contain||"")}function Kl(e){let t=Ke(e);for(;ze(t)&&!gt(t);){if(tr(t))return t;if(sn(t))return null;t=Ke(t)}return null}function nr(){return jn==null&&(jn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),jn}function gt(e){return/^(html|body|#document)$/.test(bt(e))}function Ee(e){return _e(e).getComputedStyle(e)}function an(e){return pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ke(e){if(bt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Dr(e)&&e.host||Me(e);return Dr(t)?t.host:t}function Vo(e){const t=Ke(e);return gt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ze(t)&&jt(t)?t:Vo(t)}function Ct(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Vo(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=_e(o);if(s){const c=zn(i);return t.concat(i,i.visualViewport||[],jt(o)?o:[],c&&n?Ct(c):[])}else return t.concat(o,Ct(o,[],n))}function zn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wo(e){const t=Ee(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ze(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,c=Yt(n)!==s||Yt(r)!==i;return c&&(n=s,r=i),{width:n,height:r,$:c}}function rr(e){return pe(e)?e:e.contextElement}function pt(e){const t=rr(e);if(!ze(t))return Ae(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Wo(t);let i=(s?Yt(n.width):n.width)/r,c=(s?Yt(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const Ql=Ae(0);function qo(e){const t=_e(e);return!nr()||!t.visualViewport?Ql:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Jl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==_e(e)?!1:t}function at(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=rr(e);let i=Ae(1);t&&(r?pe(r)&&(i=pt(r)):i=pt(e));const c=Jl(s,n,r)?qo(s):Ae(0);let u=(o.left+c.x)/i.x,d=(o.top+c.y)/i.y,f=o.width/i.x,m=o.height/i.y;if(s){const h=_e(s),p=r&&pe(r)?_e(r):r;let w=h,g=zn(w);for(;g&&r&&p!==w;){const v=pt(g),x=g.getBoundingClientRect(),_=Ee(g),b=x.left+(g.clientLeft+parseFloat(_.paddingLeft))*v.x,C=x.top+(g.clientTop+parseFloat(_.paddingTop))*v.y;u*=v.x,d*=v.y,f*=v.x,m*=v.y,u+=b,d+=C,w=_e(g),g=zn(w)}}return Kt({width:f,height:m,x:u,y:d})}function cn(e,t){const n=an(e).scrollLeft;return t?t.left+n:at(Me(e)).left+n}function Go(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-cn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function eu(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Me(r),c=t?sn(t.floating):!1;if(r===i||c&&s)return n;let u={scrollLeft:0,scrollTop:0},d=Ae(1);const f=Ae(0),m=ze(r);if((m||!m&&!s)&&((bt(r)!=="body"||jt(i))&&(u=an(r)),m)){const p=at(r);d=pt(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}const h=i&&!m&&!s?Go(i,u):Ae(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+f.x+h.x,y:n.y*d.y-u.scrollTop*d.y+f.y+h.y}}function tu(e){return Array.from(e.getClientRects())}function nu(e){const t=Me(e),n=an(e),r=e.ownerDocument.body,o=be(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=be(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+cn(e);const c=-n.scrollTop;return Ee(r).direction==="rtl"&&(i+=be(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:c}}const $r=25;function ru(e,t){const n=_e(e),r=Me(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,c=0,u=0;if(o){s=o.width,i=o.height;const f=nr();(!f||f&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}const d=cn(r);if(d<=0){const f=r.ownerDocument,m=f.body,h=getComputedStyle(m),p=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,w=Math.abs(r.clientWidth-m.clientWidth-p);w<=$r&&(s-=w)}else d<=$r&&(s+=d);return{width:s,height:i,x:c,y:u}}function ou(e,t){const n=at(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ze(e)?pt(e):Ae(1),i=e.clientWidth*s.x,c=e.clientHeight*s.y,u=o*s.x,d=r*s.y;return{width:i,height:c,x:u,y:d}}function Fr(e,t,n){let r;if(t==="viewport")r=ru(e,n);else if(t==="document")r=nu(Me(e));else if(pe(t))r=ou(t,n);else{const o=qo(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Kt(r)}function Uo(e,t){const n=Ke(e);return n===t||!pe(n)||gt(n)?!1:Ee(n).position==="fixed"||Uo(n,t)}function su(e,t){const n=t.get(e);if(n)return n;let r=Ct(e,[],!1).filter(c=>pe(c)&&bt(c)!=="body"),o=null;const s=Ee(e).position==="fixed";let i=s?Ke(e):e;for(;pe(i)&&!gt(i);){const c=Ee(i),u=tr(i);!u&&c.position==="fixed"&&(o=null),(s?!u&&!o:!u&&c.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||jt(i)&&!u&&Uo(e,i))?r=r.filter(f=>f!==i):o=c,i=Ke(i)}return t.set(e,r),r}function au(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?sn(t)?[]:su(t,this._c):[].concat(n),r],c=Fr(t,i[0],o);let u=c.top,d=c.right,f=c.bottom,m=c.left;for(let h=1;h<i.length;h++){const p=Fr(t,i[h],o);u=be(p.top,u),d=Xe(p.right,d),f=Xe(p.bottom,f),m=be(p.left,m)}return{width:d-m,height:f-u,x:m,y:u}}function iu(e){const{width:t,height:n}=Wo(e);return{width:t,height:n}}function cu(e,t,n){const r=ze(t),o=Me(t),s=n==="fixed",i=at(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const u=Ae(0);function d(){u.x=cn(o)}if(r||!r&&!s)if((bt(t)!=="body"||jt(o))&&(c=an(t)),r){const p=at(t,!0,s,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else o&&d();s&&!r&&o&&d();const f=o&&!r&&!s?Go(o,c):Ae(0),m=i.left+c.scrollLeft-u.x-f.x,h=i.top+c.scrollTop-u.y-f.y;return{x:m,y:h,width:i.width,height:i.height}}function Rn(e){return Ee(e).position==="static"}function Br(e,t){if(!ze(e)||Ee(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Me(e)===n&&(n=n.ownerDocument.body),n}function Zo(e,t){const n=_e(e);if(sn(e))return n;if(!ze(e)){let o=Ke(e);for(;o&&!gt(o);){if(pe(o)&&!Rn(o))return o;o=Ke(o)}return n}let r=Br(e,t);for(;r&&Zl(r)&&Rn(r);)r=Br(r,t);return r&>(r)&&Rn(r)&&!tr(r)?n:r||Kl(e)||n}const lu=async function(e){const t=this.getOffsetParent||Zo,n=this.getDimensions,r=await n(e.floating);return{reference:cu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function uu(e){return Ee(e).direction==="rtl"}const du={convertOffsetParentRelativeRectToViewportRelativeRect:eu,getDocumentElement:Me,getClippingRect:au,getOffsetParent:Zo,getElementRects:lu,getClientRects:tu,getDimensions:iu,getScale:pt,isElement:pe,isRTL:uu};function Yo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fu(e,t){let n=null,r;const o=Me(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function i(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),s();const d=e.getBoundingClientRect(),{left:f,top:m,width:h,height:p}=d;if(c||t(),!h||!p)return;const w=Ot(m),g=Ot(o.clientWidth-(f+h)),v=Ot(o.clientHeight-(m+p)),x=Ot(f),b={rootMargin:-w+"px "+-g+"px "+-v+"px "+-x+"px",threshold:be(0,Xe(1,u))||1};let C=!0;function E(k){const j=k[0].intersectionRatio;if(j!==u){if(!C)return i();j?i(!1,j):r=setTimeout(()=>{i(!1,1e-7)},1e3)}j===1&&!Yo(d,e.getBoundingClientRect())&&i(),C=!1}try{n=new IntersectionObserver(E,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,b)}n.observe(e)}return i(!0),s}function Xo(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=rr(e),f=o||s?[...d?Ct(d):[],...t?Ct(t):[]]:[];f.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const m=d&&c?fu(d,n):null;let h=-1,p=null;i&&(p=new ResizeObserver(x=>{let[_]=x;_&&_.target===d&&p&&t&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(t)})),n()}),d&&!u&&p.observe(d),t&&p.observe(t));let w,g=u?at(e):null;u&&v();function v(){const x=at(e);g&&!Yo(g,x)&&n(),g=x,w=requestAnimationFrame(v)}return n(),()=>{var x;f.forEach(_=>{o&&_.removeEventListener("scroll",n),s&&_.removeEventListener("resize",n)}),m?.(),(x=p)==null||x.disconnect(),p=null,u&&cancelAnimationFrame(w)}}const pu=Wl,mu=ql,hu=zl,gu=Ul,vu=Hl,zr=Bl,wu=Gl,xu=(e,t,n)=>{const r=new Map,o={platform:du,...n},s={...o.platform,_c:r};return Fl(e,t,{...o,platform:s})};var bu=typeof document<"u",_u=function(){},Wt=bu?y.useLayoutEffect:_u;function Qt(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(!Qt(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)&&!Qt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Ko(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Hr(e,t){const n=Ko(e);return Math.round(t*n)/n}function Nn(e){const t=a.useRef(e);return Wt(()=>{t.current=e}),t}function Qo(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[f,m]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=a.useState(r);Qt(h,r)||p(r);const[w,g]=a.useState(null),[v,x]=a.useState(null),_=a.useCallback(A=>{A!==k.current&&(k.current=A,g(A))},[]),b=a.useCallback(A=>{A!==j.current&&(j.current=A,x(A))},[]),C=s||w,E=i||v,k=a.useRef(null),j=a.useRef(null),S=a.useRef(f),O=u!=null,D=Nn(u),B=Nn(o),W=Nn(d),z=a.useCallback(()=>{if(!k.current||!j.current)return;const A={placement:t,strategy:n,middleware:h};B.current&&(A.platform=B.current),xu(k.current,j.current,A).then(X=>{const R={...X,isPositioned:W.current!==!1};H.current&&!Qt(S.current,R)&&(S.current=R,lo.flushSync(()=>{m(R)}))})},[h,t,n,B,W]);Wt(()=>{d===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,m(A=>({...A,isPositioned:!1})))},[d]);const H=a.useRef(!1);Wt(()=>(H.current=!0,()=>{H.current=!1}),[]),Wt(()=>{if(C&&(k.current=C),E&&(j.current=E),C&&E){if(D.current)return D.current(C,E,z);z()}},[C,E,z,D,O]);const Y=a.useMemo(()=>({reference:k,floating:j,setReference:_,setFloating:b}),[_,b]),$=a.useMemo(()=>({reference:C,floating:E}),[C,E]),V=a.useMemo(()=>{const A={position:n,left:0,top:0};if(!$.floating)return A;const X=Hr($.floating,f.x),R=Hr($.floating,f.y);return c?{...A,transform:"translate("+X+"px, "+R+"px)",...Ko($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:X,top:R}},[n,c,$.floating,f.x,f.y]);return a.useMemo(()=>({...f,update:z,refs:Y,elements:$,floatingStyles:V}),[f,z,Y,$,V])}const yu=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?zr({element:r.current,padding:o}).fn(n):{}:r?zr({element:r,padding:o}).fn(n):{}}}},Jo=(e,t)=>{const n=pu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Cu=(e,t)=>{const n=mu(e);return{name:n.name,fn:n.fn,options:[e,t]}},ku=(e,t)=>({fn:wu(e).fn,options:[e,t]}),es=(e,t)=>{const n=hu(e);return{name:n.name,fn:n.fn,options:[e,t]}},ts=(e,t)=>{const n=gu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Eu=(e,t)=>{const n=vu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Su=(e,t)=>{const n=yu(e);return{name:n.name,fn:n.fn,options:[e,t]}};var ju="Arrow",ns=a.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsx(me.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});ns.displayName=ju;var Ru=ns;function Nu(e){const[t,n]=a.useState(void 0);return Ye(()=>{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,c;if("borderBoxSize"in s){const u=s.borderBoxSize,d=Array.isArray(u)?u[0]:u;i=d.inlineSize,c=d.blockSize}else i=e.offsetWidth,c=e.offsetHeight;n({width:i,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var or="Popper",[rs,ln]=nn(or),[Lu,os]=rs(or),ss=e=>{const{__scopePopper:t,children:n}=e,[r,o]=a.useState(null);return l.jsx(Lu,{scope:t,anchor:r,onAnchorChange:o,children:n})};ss.displayName=or;var as="PopperAnchor",is=a.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=os(as,n),i=a.useRef(null),c=ye(t,i),u=a.useRef(null);return a.useEffect(()=>{const d=u.current;u.current=r?.current||i.current,d!==u.current&&s.onAnchorChange(u.current)}),r?null:l.jsx(me.div,{...o,ref:c})});is.displayName=as;var sr="PopperContent",[Au,Pu]=rs(sr),cs=a.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:w,...g}=e,v=os(sr,n),[x,_]=a.useState(null),b=ye(t,fe=>_(fe)),[C,E]=a.useState(null),k=Nu(C),j=k?.width??0,S=k?.height??0,O=r+(s!=="center"?"-"+s:""),D=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},B=Array.isArray(d)?d:[d],W=B.length>0,z={padding:D,boundary:B.filter(Ou),altBoundary:W},{refs:H,floatingStyles:Y,placement:$,isPositioned:V,middlewareData:A}=Qo({strategy:"fixed",placement:O,whileElementsMounted:(...fe)=>Xo(...fe,{animationFrame:p==="always"}),elements:{reference:v.anchor},middleware:[Jo({mainAxis:o+S,alignmentAxis:i}),u&&Cu({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?ku():void 0,...z}),u&&es({...z}),ts({...z,apply:({elements:fe,rects:T,availableWidth:Z,availableHeight:we})=>{const{width:ke,height:Ce}=T.reference,G=fe.floating.style;G.setProperty("--radix-popper-available-width",`${Z}px`),G.setProperty("--radix-popper-available-height",`${we}px`),G.setProperty("--radix-popper-anchor-width",`${ke}px`),G.setProperty("--radix-popper-anchor-height",`${Ce}px`)}}),C&&Su({element:C,padding:c}),Iu({arrowWidth:j,arrowHeight:S}),h&&Eu({strategy:"referenceHidden",...z})]}),[X,R]=ds($),ue=ht(w);Ye(()=>{V&&ue?.()},[V,ue]);const de=A.arrow?.x,ne=A.arrow?.y,ae=A.arrow?.centerOffset!==0,[q,J]=a.useState();return Ye(()=>{x&&J(window.getComputedStyle(x).zIndex)},[x]),l.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:V?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:q,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(Au,{scope:n,placedSide:X,onArrowChange:E,arrowX:de,arrowY:ne,shouldHideArrow:ae,children:l.jsx(me.div,{"data-side":X,"data-align":R,...g,ref:b,style:{...g.style,animation:V?void 0:"none"}})})})});cs.displayName=sr;var ls="PopperArrow",Mu={top:"bottom",right:"left",bottom:"top",left:"right"},us=a.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Pu(ls,r),i=Mu[s.placedSide];return l.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:l.jsx(Ru,{...o,ref:n,style:{...o.style,display:"block"}})})});us.displayName=ls;function Ou(e){return e!==null}var Iu=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,c=i?0:e.arrowWidth,u=i?0:e.arrowHeight,[d,f]=ds(n),m={start:"0%",center:"50%",end:"100%"}[f],h=(o.arrow?.x??0)+c/2,p=(o.arrow?.y??0)+u/2;let w="",g="";return d==="bottom"?(w=i?m:`${h}px`,g=`${-u}px`):d==="top"?(w=i?m:`${h}px`,g=`${r.floating.height+u}px`):d==="right"?(w=`${-u}px`,g=i?m:`${p}px`):d==="left"&&(w=`${r.floating.width+u}px`,g=i?m:`${p}px`),{data:{x:w,y:g}}}});function ds(e){const[t,n="center"]=e.split("-");return[t,n]}var fs=ss,ar=is,ps=cs,ms=us,Tu="Portal",un=a.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=a.useState(!1);Ye(()=>s(!0),[]);const i=n||o&&globalThis?.document?.body;return i?Et.createPortal(l.jsx(me.div,{...r,ref:t}),i):null});un.displayName=Tu;function Du(e,t){return a.useReducer((n,r)=>t[n][r]??n,e)}var Je=e=>{const{present:t,children:n}=e,r=$u(t),o=typeof n=="function"?n({present:r.isPresent}):a.Children.only(n),s=ye(r.ref,Fu(o));return typeof n=="function"||r.isPresent?a.cloneElement(o,{ref:s}):null};Je.displayName="Presence";function $u(e){const[t,n]=a.useState(),r=a.useRef(null),o=a.useRef(e),s=a.useRef("none"),i=e?"mounted":"unmounted",[c,u]=Du(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const d=It(r.current);s.current=c==="mounted"?d:"none"},[c]),Ye(()=>{const d=r.current,f=o.current;if(f!==e){const h=s.current,p=It(d);e?u("MOUNT"):p==="none"||d?.display==="none"?u("UNMOUNT"):u(f&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),Ye(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,m=p=>{const g=It(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&g&&(u("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=p=>{p.target===t&&(s.current=It(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:a.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function It(e){return e?.animationName||"none"}function Fu(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 Bu=Symbol("radix.slottable");function zu(e){const t=({children:n})=>l.jsx(l.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Bu,t}var Hu=a[" useInsertionEffect ".trim().toString()]||Ye;function ir({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=Vu({defaultProp:t,onChange:n}),c=e!==void 0,u=c?e:o;{const f=a.useRef(e!==void 0);a.useEffect(()=>{const m=f.current;m!==c&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${c?"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=c},[c,r])}const d=a.useCallback(f=>{if(c){const m=Wu(f)?f(e):f;m!==e&&i.current?.(m)}else s(f)},[c,e,s,i]);return[u,d]}function Vu({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),s=a.useRef(t);return Hu(()=>{s.current=t},[t]),a.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function Wu(e){return typeof e=="function"}var qu=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"}),Gu="VisuallyHidden",hs=a.forwardRef((e,t)=>l.jsx(me.span,{...e,ref:t,style:{...qu,...e.style}}));hs.displayName=Gu;var Uu=hs,[dn]=nn("Tooltip",[ln]),fn=ln(),gs="TooltipProvider",Zu=700,Hn="tooltip.open",[Yu,cr]=dn(gs),vs=e=>{const{__scopeTooltip:t,delayDuration:n=Zu,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=a.useRef(!0),c=a.useRef(!1),u=a.useRef(0);return a.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),l.jsx(Yu,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:a.useCallback(()=>{window.clearTimeout(u.current),i.current=!1},[]),onClose:a.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:a.useCallback(d=>{c.current=d},[]),disableHoverableContent:o,children:s})};vs.displayName=gs;var kt="Tooltip",[Xu,Rt]=dn(kt),ws=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:c}=e,u=cr(kt,e.__scopeTooltip),d=fn(t),[f,m]=a.useState(null),h=yt(),p=a.useRef(0),w=i??u.disableHoverableContent,g=c??u.delayDuration,v=a.useRef(!1),[x,_]=ir({prop:r,defaultProp:o??!1,onChange:j=>{j?(u.onOpen(),document.dispatchEvent(new CustomEvent(Hn))):u.onClose(),s?.(j)},caller:kt}),b=a.useMemo(()=>x?v.current?"delayed-open":"instant-open":"closed",[x]),C=a.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v.current=!1,_(!0)},[_]),E=a.useCallback(()=>{window.clearTimeout(p.current),p.current=0,_(!1)},[_]),k=a.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{v.current=!0,_(!0),p.current=0},g)},[g,_]);return a.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),l.jsx(fs,{...d,children:l.jsx(Xu,{scope:t,contentId:h,open:x,stateAttribute:b,trigger:f,onTriggerChange:m,onTriggerEnter:a.useCallback(()=>{u.isOpenDelayedRef.current?k():C()},[u.isOpenDelayedRef,k,C]),onTriggerLeave:a.useCallback(()=>{w?E():(window.clearTimeout(p.current),p.current=0)},[E,w]),onOpen:C,onClose:E,disableHoverableContent:w,children:n})})};ws.displayName=kt;var Vn="TooltipTrigger",xs=a.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Rt(Vn,n),s=cr(Vn,n),i=fn(n),c=a.useRef(null),u=ye(t,c,o.onTriggerChange),d=a.useRef(!1),f=a.useRef(!1),m=a.useCallback(()=>d.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),l.jsx(ar,{asChild:!0,...i,children:l.jsx(me.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:u,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",m,{once:!0})}),onFocus:se(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:se(e.onBlur,o.onClose),onClick:se(e.onClick,o.onClose)})})});xs.displayName=Vn;var lr="TooltipPortal",[Ku,Qu]=dn(lr,{forceMount:void 0}),bs=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Rt(lr,t);return l.jsx(Ku,{scope:t,forceMount:n,children:l.jsx(Je,{present:n||s.open,children:l.jsx(un,{asChild:!0,container:o,children:r})})})};bs.displayName=lr;var vt="TooltipContent",_s=a.forwardRef((e,t)=>{const n=Qu(vt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Rt(vt,e.__scopeTooltip);return l.jsx(Je,{present:r||i.open,children:i.disableHoverableContent?l.jsx(ys,{side:o,...s,ref:t}):l.jsx(Ju,{side:o,...s,ref:t})})}),Ju=a.forwardRef((e,t)=>{const n=Rt(vt,e.__scopeTooltip),r=cr(vt,e.__scopeTooltip),o=a.useRef(null),s=ye(t,o),[i,c]=a.useState(null),{trigger:u,onClose:d}=n,f=o.current,{onPointerInTransitChange:m}=r,h=a.useCallback(()=>{c(null),m(!1)},[m]),p=a.useCallback((w,g)=>{const v=w.currentTarget,x={x:w.clientX,y:w.clientY},_=od(x,v.getBoundingClientRect()),b=sd(x,_),C=ad(g.getBoundingClientRect()),E=cd([...b,...C]);c(E),m(!0)},[m]);return a.useEffect(()=>()=>h(),[h]),a.useEffect(()=>{if(u&&f){const w=v=>p(v,f),g=v=>p(v,u);return u.addEventListener("pointerleave",w),f.addEventListener("pointerleave",g),()=>{u.removeEventListener("pointerleave",w),f.removeEventListener("pointerleave",g)}}},[u,f,p,h]),a.useEffect(()=>{if(i){const w=g=>{const v=g.target,x={x:g.clientX,y:g.clientY},_=u?.contains(v)||f?.contains(v),b=!id(x,i);_?h():b&&(h(),d())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[u,f,i,d,h]),l.jsx(ys,{...e,ref:s})}),[ed,td]=dn(kt,{isInside:!1}),nd=zu("TooltipContent"),ys=a.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...c}=e,u=Rt(vt,n),d=fn(n),{onClose:f}=u;return a.useEffect(()=>(document.addEventListener(Hn,f),()=>document.removeEventListener(Hn,f)),[f]),a.useEffect(()=>{if(u.trigger){const m=h=>{h.target?.contains(u.trigger)&&f()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[u.trigger,f]),l.jsx(rn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:m=>m.preventDefault(),onDismiss:f,children:l.jsxs(ps,{"data-state":u.stateAttribute,...d,...c,ref:t,style:{...c.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:[l.jsx(nd,{children:r}),l.jsx(ed,{scope:n,isInside:!0,children:l.jsx(Uu,{id:u.contentId,role:"tooltip",children:o||r})})]})})});_s.displayName=vt;var Cs="TooltipArrow",rd=a.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=fn(n);return td(Cs,n).isInside?null:l.jsx(ms,{...o,...r,ref:t})});rd.displayName=Cs;function od(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 sd(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 ad(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 id(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 c=t[s],u=t[i],d=c.x,f=c.y,m=u.x,h=u.y;f>r!=h>r&&n<(m-d)*(r-f)/(h-f)+d&&(o=!o)}return o}function cd(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),ld(t)}function ld(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 ud=vs,dd=ws,fd=xs,pd=bs,ks=_s;const md=ud,hd=dd,gd=fd,Es=a.forwardRef(({className:e,sideOffset:t=4,...n},r)=>l.jsx(pd,{children:l.jsx(ks,{ref:r,sideOffset:t,className:Pe("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})}));Es.displayName=ks.displayName;const vd="_anchor_rpda1_1",wd="_tooltip_rpda1_6",Vr={anchor:vd,tooltip:wd},Wr=e=>typeof e=="string"?document.getElementById(e):"current"in e?e.current:e,xd=(e="top")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},qr=(e,t)=>typeof e=="number"?e:e?.[t]??0,Ss=({children:e,target:t,placement:n="top",popperClassName:r,isOpen:o,toggle:s,delay:i,autohide:c=!0})=>{const[u,d]=y.useState(!1),[f,m]=y.useState(null),h=o??u,{side:p,align:w}=y.useMemo(()=>xd(n),[n]),g=y.useCallback(()=>{const x=Wr(t);m(x?.getBoundingClientRect()??null)},[t]),v=y.useCallback(x=>{o===void 0&&d(x),s?.()},[o,s]);return y.useEffect(()=>{const x=Wr(t);if(!x)return;let _=null,b=null;const C=()=>{_&&clearTimeout(_),b&&clearTimeout(b)},E=()=>{C(),g(),_=setTimeout(()=>v(!0),qr(i,"show"))},k=()=>{c&&(C(),b=setTimeout(()=>v(!1),qr(i,"hide")))};return x.addEventListener("mouseenter",E),x.addEventListener("mouseleave",k),x.addEventListener("focus",E),x.addEventListener("blur",k),window.addEventListener("scroll",g,!0),window.addEventListener("resize",g),()=>{C(),x.removeEventListener("mouseenter",E),x.removeEventListener("mouseleave",k),x.removeEventListener("focus",E),x.removeEventListener("blur",k),window.removeEventListener("scroll",g,!0),window.removeEventListener("resize",g)}},[c,i,v,t,g]),f?l.jsx(md,{delayDuration:0,children:l.jsxs(hd,{open:h,onOpenChange:v,children:[Do(l.jsx(gd,{asChild:!0,children:l.jsx("span",{className:Vr.anchor,style:{left:f.left,top:f.top,width:f.width,height:f.height}})})),l.jsx(Es,{side:p,align:w,className:P(Vr.tooltip,r),children:e})]})}):null};var Ln=0;function js(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Gr()),document.body.insertAdjacentElement("beforeend",e[1]??Gr()),Ln++,()=>{Ln===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ln--}},[])}function Gr(){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 An="focusScope.autoFocusOnMount",Pn="focusScope.autoFocusOnUnmount",Ur={bubbles:!1,cancelable:!0},bd="FocusScope",ur=a.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[c,u]=a.useState(null),d=ht(o),f=ht(s),m=a.useRef(null),h=ye(t,g=>u(g)),p=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let g=function(b){if(p.paused||!c)return;const C=b.target;c.contains(C)?m.current=C:Ue(m.current,{select:!0})},v=function(b){if(p.paused||!c)return;const C=b.relatedTarget;C!==null&&(c.contains(C)||Ue(m.current,{select:!0}))},x=function(b){if(document.activeElement===document.body)for(const E of b)E.removedNodes.length>0&&Ue(c)};document.addEventListener("focusin",g),document.addEventListener("focusout",v);const _=new MutationObserver(x);return c&&_.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",v),_.disconnect()}}},[r,c,p.paused]),a.useEffect(()=>{if(c){Yr.add(p);const g=document.activeElement;if(!c.contains(g)){const x=new CustomEvent(An,Ur);c.addEventListener(An,d),c.dispatchEvent(x),x.defaultPrevented||(_d(Sd(Rs(c)),{select:!0}),document.activeElement===g&&Ue(c))}return()=>{c.removeEventListener(An,d),setTimeout(()=>{const x=new CustomEvent(Pn,Ur);c.addEventListener(Pn,f),c.dispatchEvent(x),x.defaultPrevented||Ue(g??document.body,{select:!0}),c.removeEventListener(Pn,f),Yr.remove(p)},0)}}},[c,d,f,p]);const w=a.useCallback(g=>{if(!n&&!r||p.paused)return;const v=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,x=document.activeElement;if(v&&x){const _=g.currentTarget,[b,C]=yd(_);b&&C?!g.shiftKey&&x===C?(g.preventDefault(),n&&Ue(b,{select:!0})):g.shiftKey&&x===b&&(g.preventDefault(),n&&Ue(C,{select:!0})):x===_&&g.preventDefault()}},[n,r,p.paused]);return l.jsx(me.div,{tabIndex:-1,...i,ref:h,onKeyDown:w})});ur.displayName=bd;function _d(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ue(r,{select:t}),document.activeElement!==n)return}function yd(e){const t=Rs(e),n=Zr(t,e),r=Zr(t.reverse(),e);return[n,r]}function Rs(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 Zr(e,t){for(const n of e)if(!Cd(n,{upTo:t}))return n}function Cd(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 kd(e){return e instanceof HTMLInputElement&&"select"in e}function Ue(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&kd(e)&&t&&e.select()}}var Yr=Ed();function Ed(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Xr(e,t),e.unshift(t)},remove(t){e=Xr(e,t),e[0]?.resume()}}}function Xr(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Sd(e){return e.filter(t=>t.tagName!=="A")}function jd(e){const t=Rd(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,c=a.Children.toArray(s),u=c.find(Ld);if(u){const d=u.props.children,f=c.map(m=>m===u?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:m);return l.jsx(t,{...i,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,f):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Rd(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=Pd(o),c=Ad(s,o.props);return o.type!==a.Fragment&&(c.ref=r?St(r,i):i),a.cloneElement(o,c)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Nd=Symbol("radix.slottable");function Ld(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Nd}function Ad(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]=(...c)=>{const u=s(...c);return o(...c),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Pd(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 Md=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ut=new WeakMap,Tt=new WeakMap,Dt={},Mn=0,Ns=function(e){return e&&(e.host||Ns(e.parentNode))},Od=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ns(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})},Id=function(e,t,n,r){var o=Od(t,Array.isArray(e)?e:[e]);Dt[n]||(Dt[n]=new WeakMap);var s=Dt[n],i=[],c=new Set,u=new Set(o),d=function(m){!m||c.has(m)||(c.add(m),d(m.parentNode))};o.forEach(d);var f=function(m){!m||u.has(m)||Array.prototype.forEach.call(m.children,function(h){if(c.has(h))f(h);else try{var p=h.getAttribute(r),w=p!==null&&p!=="false",g=(ut.get(h)||0)+1,v=(s.get(h)||0)+1;ut.set(h,g),s.set(h,v),i.push(h),g===1&&w&&Tt.set(h,!0),v===1&&h.setAttribute(n,"true"),w||h.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",h,x)}})};return f(t),c.clear(),Mn++,function(){i.forEach(function(m){var h=ut.get(m)-1,p=s.get(m)-1;ut.set(m,h),s.set(m,p),h||(Tt.has(m)||m.removeAttribute(r),Tt.delete(m)),p||m.removeAttribute(n)}),Mn--,Mn||(ut=new WeakMap,ut=new WeakMap,Tt=new WeakMap,Dt={})}},Ls=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Md(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Id(r,o,n,"aria-hidden")):function(){return null}},Ne=function(){return Ne=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},Ne.apply(this,arguments)};function As(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 Td(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 qt="right-scroll-bar-position",Gt="width-before-scroll-bar",Dd="with-scroll-bars-hidden",$d="--removed-body-scroll-bar-size";function On(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Fd(e,t){var n=y.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 Bd=typeof window<"u"?a.useLayoutEffect:a.useEffect,Kr=new WeakMap;function zd(e,t){var n=Fd(null,function(r){return e.forEach(function(o){return On(o,r)})});return Bd(function(){var r=Kr.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(c){s.has(c)||On(c,null)}),s.forEach(function(c){o.has(c)||On(c,i)})}Kr.set(n,e)},[e]),n}function Hd(e){return e}function Vd(e,t){t===void 0&&(t=Hd);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(c){return c!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var c=n;n=[],c.forEach(s),i=n}var u=function(){var f=i;i=[],f.forEach(s)},d=function(){return Promise.resolve().then(u)};d(),n={push:function(f){i.push(f),d()},filter:function(f){return i=i.filter(f),n}}}};return o}function Wd(e){e===void 0&&(e={});var t=Vd(null);return t.options=Ne({async:!0,ssr:!1},e),t}var Ps=function(e){var t=e.sideCar,n=As(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,Ne({},n))};Ps.isSideCarExport=!0;function qd(e,t){return e.useMedium(t),Ps}var Ms=Wd(),In=function(){},pn=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:In,onWheelCapture:In,onTouchMoveCapture:In}),o=r[0],s=r[1],i=e.forwardProps,c=e.children,u=e.className,d=e.removeScrollBar,f=e.enabled,m=e.shards,h=e.sideCar,p=e.noRelative,w=e.noIsolation,g=e.inert,v=e.allowPinchZoom,x=e.as,_=x===void 0?"div":x,b=e.gapMode,C=As(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,k=zd([n,t]),j=Ne(Ne({},C),o);return a.createElement(a.Fragment,null,f&&a.createElement(E,{sideCar:Ms,removeScrollBar:d,shards:m,noRelative:p,noIsolation:w,inert:g,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:b}),i?a.cloneElement(a.Children.only(c),Ne(Ne({},j),{ref:k})):a.createElement(_,Ne({},j,{className:u,ref:k}),c))});pn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};pn.classNames={fullWidth:Gt,zeroRight:qt};var Gd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ud(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Gd();return t&&e.setAttribute("nonce",t),e}function Zd(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Yd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Xd=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ud())&&(Zd(t,n),Yd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Kd=function(){var e=Xd();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Os=function(){var e=Kd(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Qd={left:0,top:0,right:0,gap:0},Tn=function(e){return parseInt(e||"",10)||0},Jd=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[Tn(n),Tn(r),Tn(o)]},e1=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Qd;var t=Jd(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])}},t1=Os(),mt="data-scroll-locked",n1=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
2
|
-
.`.concat(
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),l=require("react/jsx-runtime"),Et=require("react-dom");function po(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=po(y),mo=po(Et),La=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"})),Aa=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"})),Pa=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"})))),Ma=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"})))),Oa=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"})),Ia=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"})),Ta=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"})))),Da=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"})))),$a=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"})),Fa=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"})),Ba=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"})))),za=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"})))),Ha=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"})))),Wa=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"})))),Va=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"})),qa=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"})),Ga=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"})),Ua=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"})),Za=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"})),Ya=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"})),Xa=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"})),Ka=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"})),Qa=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"})),Ja=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"})),tn=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"})),ei=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"})),nn=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"})),ti=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)"})),Ue=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"})),ni=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"})),ri=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"})),oi=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"})),Xn=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"})),si=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"})),ho=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})),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("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"})),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("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"})),ci=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"})),li=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"})),go=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"})),vo=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"})),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:"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"})),di=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"})),fi=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"})),pi=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"})),mi=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)"})),hi=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"})),gi=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"})),vi=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 wo=(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))(wo||{});function xi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yn={exports:{}};var yr;function wi(){return yr||(yr=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",i=0;i<arguments.length;i++){var c=arguments[i];c&&(s=o(s,r(c)))}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 c in s)t.call(s,c)&&s[c]&&(i=o(i,c));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})()})(yn)),yn.exports}var bi=wi();const A=xi(bi),_i="_block_tkxaf_1",yi="_subtitle_tkxaf_6",Ci="_title_tkxaf_13",Cn={block:_i,subtitle:yi,title:Ci},ki=({id:e,title:t,subtitle:n,children:r,className:o})=>l.jsxs("div",{className:A(Cn.block,o),id:e,children:[t&&typeof t=="string"?l.jsx("div",{className:Cn.title,children:t}):t,n&&l.jsx("div",{className:Cn.subtitle,children:n}),r]});function Cr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function St(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Cr(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():Cr(e[o],null)}}}}function ye(...e){return a.useCallback(St(...e),e)}var Ei=Symbol.for("react.lazy"),Zt=a[" use ".trim().toString()];function Si(e){return typeof e=="object"&&e!==null&&"then"in e}function bo(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ei&&"_payload"in e&&Si(e._payload)}function _o(e){const t=Ni(e),n=a.forwardRef((r,o)=>{let{children:s,...i}=r;bo(s)&&typeof Zt=="function"&&(s=Zt(s._payload));const c=a.Children.toArray(s),u=c.find(Li);if(u){const d=u.props.children,f=c.map(p=>p===u?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:p);return l.jsx(t,{...i,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,f):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var ji=_o("Slot");function Ni(e){const t=a.forwardRef((n,r)=>{let{children:o,...s}=n;if(bo(o)&&typeof Zt=="function"&&(o=Zt(o._payload)),a.isValidElement(o)){const i=Pi(o),c=Ai(s,o.props);return o.type!==a.Fragment&&(c.ref=r?St(r,i):i),a.cloneElement(o,c)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ri=Symbol("radix.slottable");function Li(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ri}function Ai(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]=(...c)=>{const u=s(...c);return o(...c),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Pi(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 yo(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=yo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Co(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=yo(e))&&(r&&(r+=" "),r+=t);return r}const kr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Er=Co,ko=(e,t)=>n=>{var r;if(t?.variants==null)return Er(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 v=kr(f)||kr(p);return o[d][v]}),c=n&&Object.entries(n).reduce((d,f)=>{let[p,v]=f;return v===void 0||(d[p]=v),d},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:p,className:v,...m}=f;return Object.entries(m).every(w=>{let[h,g]=w;return Array.isArray(g)?g.includes({...s,...c}[h]):{...s,...c}[h]===g})?[...d,p,v]:d},[]);return Er(e,i,u,n?.class,n?.className)},Mi=(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},Oi=(e,t)=>({classGroupId:e,validator:t}),Eo=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Yt="-",Sr=[],Ii="arbitrary..",Ti=e=>{const t=$i(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Di(i);const c=i.split(Yt),u=c[0]===""&&c.length>1?1:0;return So(c,u,t)},getConflictingClassGroupIds:(i,c)=>{if(c){const u=r[i],d=n[i];return u?d?Mi(d,u):u:d||Sr}return n[i]||Sr}}},So=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const d=So(e,t+1,s);if(d)return d}const i=n.validators;if(i===null)return;const c=t===0?e.join(Yt):e.slice(t).join(Yt),u=i.length;for(let d=0;d<u;d++){const f=i[d];if(f.validator(c))return f.classGroupId}},Di=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?Ii+r:void 0})(),$i=e=>{const{theme:t,classGroups:n}=e;return Fi(n,t)},Fi=(e,t)=>{const n=Eo();for(const r in e){const o=e[r];Kn(o,n,r,t)}return n},Kn=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const i=e[s];Bi(i,t,n,r)}},Bi=(e,t,n,r)=>{if(typeof e=="string"){zi(e,t,n);return}if(typeof e=="function"){Hi(e,t,n,r);return}Wi(e,t,n,r)},zi=(e,t,n)=>{const r=e===""?t:jo(t,e);r.classGroupId=n},Hi=(e,t,n,r)=>{if(Vi(e)){Kn(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Oi(n,e))},Wi=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let i=0;i<s;i++){const[c,u]=o[i];Kn(u,jo(t,c),n,r)}},jo=(e,t)=>{let n=e;const r=t.split(Yt),o=r.length;for(let s=0;s<o;s++){const i=r[s];let c=n.nextPart.get(i);c||(c=Eo(),n.nextPart.set(i,c)),n=c}return n},Vi=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,qi=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)}}},Bn="!",jr=":",Gi=[],Nr=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Ui=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let i=0,c=0,u=0,d;const f=o.length;for(let h=0;h<f;h++){const g=o[h];if(i===0&&c===0){if(g===jr){s.push(o.slice(u,h)),u=h+1;continue}if(g==="/"){d=h;continue}}g==="["?i++:g==="]"?i--:g==="("?c++:g===")"&&c--}const p=s.length===0?o:o.slice(u);let v=p,m=!1;p.endsWith(Bn)?(v=p.slice(0,-1),m=!0):p.startsWith(Bn)&&(v=p.slice(1),m=!0);const w=d&&d>u?d-u:void 0;return Nr(s,m,v,w)};if(t){const o=t+jr,s=r;r=i=>i.startsWith(o)?s(i.slice(o.length)):Nr(Gi,!1,i,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Zi=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],c=i[0]==="[",u=t.has(i);c||u?(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}},Yi=e=>({cache:qi(e.cacheSize),parseClassName:Ui(e),sortModifiers:Zi(e),...Ti(e)}),Xi=/\s+/,Ki=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],c=e.trim().split(Xi);let u="";for(let d=c.length-1;d>=0;d-=1){const f=c[d],{isExternal:p,modifiers:v,hasImportantModifier:m,baseClassName:w,maybePostfixModifierPosition:h}=n(f);if(p){u=f+(u.length>0?" "+u:u);continue}let g=!!h,x=r(g?w.substring(0,h):w);if(!x){if(!g){u=f+(u.length>0?" "+u:u);continue}if(x=r(w),!x){u=f+(u.length>0?" "+u:u);continue}g=!1}const b=v.length===0?"":v.length===1?v[0]:s(v).join(":"),_=m?b+Bn:b,C=_+x;if(i.indexOf(C)>-1)continue;i.push(C);const k=o(x,g);for(let E=0;E<k.length;++E){const j=k[E];i.push(_+j)}u=f+(u.length>0?" "+u:u)}return u},Qi=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=No(n))&&(o&&(o+=" "),o+=r);return o},No=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=No(e[r]))&&(n&&(n+=" "),n+=t);return n},Ji=(e,...t)=>{let n,r,o,s;const i=u=>{const d=t.reduce((f,p)=>p(f),e());return n=Yi(d),r=n.cache.get,o=n.cache.set,s=c,c(u)},c=u=>{const d=r(u);if(d)return d;const f=Ki(u,n);return o(u,f),f};return s=i,(...u)=>s(Qi(...u))},ec=[],ae=e=>{const t=n=>n[e]||ec;return t.isThemeGetter=!0,t},Ro=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Lo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,tc=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,nc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rc=/\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$/,oc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,sc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ac=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,He=e=>tc.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),We=e=>!!e&&Number.isInteger(Number(e)),kn=e=>e.endsWith("%")&&W(e.slice(0,-1)),Te=e=>nc.test(e),Ao=()=>!0,ic=e=>rc.test(e)&&!oc.test(e),Qn=()=>!1,cc=e=>sc.test(e),lc=e=>ac.test(e),uc=e=>!R(e)&&!L(e),dc=e=>Ke(e,Oo,Qn),R=e=>Ro.test(e),rt=e=>Ke(e,Io,ic),Rr=e=>Ke(e,wc,W),fc=e=>Ke(e,Do,Ao),pc=e=>Ke(e,To,Qn),Lr=e=>Ke(e,Po,Qn),mc=e=>Ke(e,Mo,lc),Pt=e=>Ke(e,$o,cc),L=e=>Lo.test(e),_t=e=>ct(e,Io),hc=e=>ct(e,To),Ar=e=>ct(e,Po),gc=e=>ct(e,Oo),vc=e=>ct(e,Mo),Mt=e=>ct(e,$o,!0),xc=e=>ct(e,Do,!0),Ke=(e,t,n)=>{const r=Ro.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ct=(e,t,n=!1)=>{const r=Lo.exec(e);return r?r[1]?t(r[1]):n:!1},Po=e=>e==="position"||e==="percentage",Mo=e=>e==="image"||e==="url",Oo=e=>e==="length"||e==="size"||e==="bg-size",Io=e=>e==="length",wc=e=>e==="number",To=e=>e==="family-name",Do=e=>e==="number"||e==="weight",$o=e=>e==="shadow",bc=()=>{const e=ae("color"),t=ae("font"),n=ae("text"),r=ae("font-weight"),o=ae("tracking"),s=ae("leading"),i=ae("breakpoint"),c=ae("container"),u=ae("spacing"),d=ae("radius"),f=ae("shadow"),p=ae("inset-shadow"),v=ae("text-shadow"),m=ae("drop-shadow"),w=ae("blur"),h=ae("perspective"),g=ae("aspect"),x=ae("ease"),b=ae("animate"),_=()=>["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(),L,R],E=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],S=()=>[L,R,u],P=()=>[He,"full","auto",...S()],D=()=>[We,"none","subgrid",L,R],$=()=>["auto",{span:["full",We,L,R]},We,L,R],q=()=>[We,"auto",L,R],F=()=>["auto","min","max","fr",L,R],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...S()],B=()=>[He,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],O=()=>[He,"screen","full","dvw","lvw","svw","min","max","fit",...S()],X=()=>[He,"screen","full","lh","dvh","lvh","svh","min","max","fit",...S()],N=()=>[e,L,R],de=()=>[...C(),Ar,Lr,{position:[L,R]}],se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ne=()=>["auto","cover","contain",gc,dc,{size:[L,R]}],me=()=>[kn,_t,rt],U=()=>["","none","full",d,L,R],Q=()=>["",W,_t,rt],te=()=>["solid","dashed","dotted","double"],T=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>[W,kn,Ar,Lr],xe=()=>["","none",w,L,R],Se=()=>["none",W,L,R],Ce=()=>["none",W,L,R],V=()=>[W,L,R],oe=()=>[He,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Te],breakpoint:[Te],color:[Ao],container:[Te],"drop-shadow":[Te],ease:["in","out","in-out"],font:[uc],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Te],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Te],shadow:[Te],spacing:["px",W],text:[Te],"text-shadow":[Te],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",He,R,L,g]}],container:["container"],columns:[{columns:[W,R,L,c]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"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:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{"inset-s":P(),start:P()}],end:[{"inset-e":P(),end:P()}],"inset-bs":[{"inset-bs":P()}],"inset-be":[{"inset-be":P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[We,"auto",L,R]}],basis:[{basis:[He,"full","auto",c,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[W,He,"auto","initial","none",R]}],grow:[{grow:["",W,L,R]}],shrink:[{shrink:["",W,L,R]}],order:[{order:[We,"first","last","none",L,R]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],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:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mbs:[{mbs:H()}],mbe:[{mbe:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],"inline-size":[{inline:["auto",...O()]}],"min-inline-size":[{"min-inline":["auto",...O()]}],"max-inline-size":[{"max-inline":["none",...O()]}],"block-size":[{block:["auto",...X()]}],"min-block-size":[{"min-block":["auto",...X()]}],"max-block-size":[{"max-block":["none",...X()]}],w:[{w:[c,"screen",...B()]}],"min-w":[{"min-w":[c,"screen","none",...B()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[i]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",n,_t,rt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,xc,fc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",kn,R]}],"font-family":[{font:[hc,pc,t]}],"font-features":[{"font-features":[R]}],"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,L,R]}],"line-clamp":[{"line-clamp":[W,"none",L,Rr]}],leading:[{leading:[s,...S()]}],"list-image":[{"list-image":["none",L,R]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",L,R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[W,"from-font","auto",L,rt]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[W,"auto",L,R]}],"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",L,R]}],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",L,R]}],"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:se()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},We,L,R],radial:["",L,R],conic:[We,L,R]},vc,mc]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:me()}],"gradient-via-pos":[{via:me()}],"gradient-to-pos":[{to:me()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],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:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-bs":[{"border-bs":N()}],"border-color-be":[{"border-be":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[W,L,R]}],"outline-w":[{outline:["",W,_t,rt]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",f,Mt,Pt]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",p,Mt,Pt]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[W,rt]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",v,Mt,Pt]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[W,L,R]}],"mix-blend":[{"mix-blend":[...T(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":T()}],"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":[W]}],"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":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"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":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"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":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"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":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"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":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"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":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"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":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[L,R]}],"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":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"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":[W]}],"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":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",L,R]}],filter:[{filter:["","none",L,R]}],blur:[{blur:xe()}],brightness:[{brightness:[W,L,R]}],contrast:[{contrast:[W,L,R]}],"drop-shadow":[{"drop-shadow":["","none",m,Mt,Pt]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",W,L,R]}],"hue-rotate":[{"hue-rotate":[W,L,R]}],invert:[{invert:["",W,L,R]}],saturate:[{saturate:[W,L,R]}],sepia:[{sepia:["",W,L,R]}],"backdrop-filter":[{"backdrop-filter":["","none",L,R]}],"backdrop-blur":[{"backdrop-blur":xe()}],"backdrop-brightness":[{"backdrop-brightness":[W,L,R]}],"backdrop-contrast":[{"backdrop-contrast":[W,L,R]}],"backdrop-grayscale":[{"backdrop-grayscale":["",W,L,R]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,L,R]}],"backdrop-invert":[{"backdrop-invert":["",W,L,R]}],"backdrop-opacity":[{"backdrop-opacity":[W,L,R]}],"backdrop-saturate":[{"backdrop-saturate":[W,L,R]}],"backdrop-sepia":[{"backdrop-sepia":["",W,L,R]}],"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",L,R]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[W,"initial",L,R]}],ease:[{ease:["linear","initial",x,L,R]}],delay:[{delay:[W,L,R]}],animate:[{animate:["none",b,L,R]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,L,R]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:Se()}],"rotate-x":[{"rotate-x":Se()}],"rotate-y":[{"rotate-y":Se()}],"rotate-z":[{"rotate-z":Se()}],scale:[{scale:Ce()}],"scale-x":[{"scale-x":Ce()}],"scale-y":[{"scale-y":Ce()}],"scale-z":[{"scale-z":Ce()}],"scale-3d":["scale-3d"],skew:[{skew:V()}],"skew-x":[{"skew-x":V()}],"skew-y":[{"skew-y":V()}],transform:[{transform:[L,R,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"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",L,R]}],"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",L,R]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[W,_t,rt,Rr]}],stroke:[{stroke:["none",...N()]}],"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"]}},_c=Ji(bc);function Pe(...e){return _c(Co(e))}const yc=ko("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"}}),Jn=a.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?ji:"button";return l.jsx(i,{className:Pe(yc({variant:t,size:n,className:e})),ref:s,...o})});Jn.displayName="Button";const Cc="_cssloadSpeedingWheel_akex8_6",kc="_bigSize_akex8_20",Ec="_smallSize_akex8_26",Sc="_extraSmallSize_akex8_32",Ot={cssloadSpeedingWheel:Cc,bigSize:kc,smallSize:Ec,extraSmallSize:Sc};function jc(e){return e==="medium"?"small":e==="large"?"big":e}const st=({marginTop:e,marginBottom:t,marginLeft:n,className:r,size:o="big"})=>{const s=y.useMemo(()=>({marginTop:e,marginBottom:t,marginLeft:n}),[t,n,e]),i=jc(o);return l.jsx("div",{className:r,style:s,children:l.jsx("div",{className:A(Ot.cssloadSpeedingWheel,{[Ot.bigSize]:i==="big",[Ot.smallSize]:i==="small",[Ot.extraSmallSize]:i==="extraSmall"})})})},Nc="_button_fafaj_1",Rc="_button__loader_fafaj_186",Lc="_button__content_fafaj_193",lt={button:Nc,"button--variant-primary":"_button--variant-primary_fafaj_26","button--variant-primary--disabled":"_button--variant-primary--disabled_fafaj_37","button--variant-default":"_button--variant-default_fafaj_45","button--variant-default--disabled":"_button--variant-default--disabled_fafaj_58","button--variant-secondary":"_button--variant-secondary_fafaj_66","button--variant-secondary--disabled":"_button--variant-secondary--disabled_fafaj_81","button--variant-text":"_button--variant-text_fafaj_89","button--variant-text--disabled":"_button--variant-text--disabled_fafaj_105","button--variant-link":"_button--variant-link_fafaj_113","button--variant-link--disabled":"_button--variant-link--disabled_fafaj_129","button--variant-danger":"_button--variant-danger_fafaj_137","button--variant-danger--disabled":"_button--variant-danger--disabled_fafaj_147","button--size-small":"_button--size-small_fafaj_155","button--size-medium":"_button--size-medium_fafaj_163","button--size-large":"_button--size-large_fafaj_171","button--loading":"_button--loading_fafaj_182",button__loader:Rc,button__content:Lc},ue=y.forwardRef(({variant:e="default",size:t="medium",className:n="",loading:r=!1,disabled:o=!1,children:s,type:i="button",...c},u)=>{const d=A(lt.button,lt[`button--variant-${e}`],lt[`button--size-${t}`],{[lt["button--loading"]]:r,[lt["button--disabled"]]:o},n);return l.jsxs(Jn,{ref:u,variant:null,size:null,className:d,disabled:o||r,type:i,...c,children:[s&&s,r&&l.jsx("span",{className:lt.button__loader,children:l.jsx(st,{size:"extraSmall"})})]})});ue.displayName="Button";const Fo=e=>{const[t,n]=y.useState(0),[r,o]=y.useState(0),s=y.useRef(null);return y.useEffect(()=>{if(!e)return;const c=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)})});c.observe(e);const u=e.getBoundingClientRect().height;return n(u),()=>{c.disconnect()}},[e,n]),y.useMemo(()=>({height:t,width:r}),[t,r])},Pr={capture:!0,passive:!0},Ac=({triggerRef:e,dropdownHeight:t,offset:n=8,enabled:r=!0,onAnchorFrame:o})=>{const[s,i]=y.useState("bottom"),c=y.useRef(null),u=y.useCallback(()=>{if(!e.current)return"bottom";const f=e.current.getBoundingClientRect(),p=window.innerHeight,v=f.top-n;return p-f.bottom-n>=t?"bottom":v>=t?"top":"bottom"},[e,t,n]),d=y.useCallback(()=>{c.current&&cancelAnimationFrame(c.current),c.current=requestAnimationFrame(()=>{const f=u();i(f),o?.(f)})},[u,o]);return y.useEffect(()=>{if(!r)return;const f=e.current;if(!f)return;d();const p=new ResizeObserver(()=>{d()});p.observe(f);const v=new MutationObserver(()=>{d()});v.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]});const m=[];let w=f.parentElement;for(;w;){const h=window.getComputedStyle(w),g=h.overflow+h.overflowY+h.overflowX;/(auto|scroll)/.test(g)&&(m.push(w),w.addEventListener("scroll",d)),w=w.parentElement}return window.addEventListener("scroll",d,Pr),window.addEventListener("resize",d),window.addEventListener("transitionend",d),window.addEventListener("animationend",d),()=>{c.current&&cancelAnimationFrame(c.current),p.disconnect(),v.disconnect(),window.removeEventListener("scroll",d,Pr),window.removeEventListener("resize",d),window.removeEventListener("transitionend",d),window.removeEventListener("animationend",d),m.forEach(h=>{h.removeEventListener("scroll",d)})}},[r,e,d]),s},Pc="_container_1dkro_1",Mc="_activeButton_1dkro_16",Oc="_slider_1dkro_22",En={container:Pc,activeButton:Mc,slider:Oc},Ic=({options:e,value:t,defaultValue:n,data:r,activeButton:o,defaultActiveButton:s,onChange:i})=>{const c=y.useMemo(()=>e?.length?e.map(x=>({id:x.value,label:x.label,additionalComponent:x.additionalComponent})):r??[],[e,r]),[u,d]=y.useState(()=>n??s??c[0]?.id),[f,p]=y.useState({transform:"translateX(0)",width:0}),v=y.useRef(new Map),m=t??o??u,{width:w}=Fo(v.current.get(m)),h=x=>{x.id!==m&&(i?.(x.id),d(x.id))},g=y.useCallback((x,b)=>{v.current.set(b,x)},[]);return y.useEffect(()=>{const x=c.findIndex(b=>b.id===m);if(x>=0){const _=c.slice(0,x).reduce((C,k)=>{const E=v.current.get(k.id);if(E){const j=E.getBoundingClientRect().width;C+=j}return C},0);p({transform:`translateX(${_}px)`,width:w})}},[m,w,c]),l.jsxs("div",{className:En.container,children:[c.map(x=>l.jsx("div",{ref:b=>g(b,x.id),children:l.jsxs(ue,{size:"small",onClick:()=>h(x),className:A({[En.activeButton]:x.id===m}),children:[x.label,x.additionalComponent]})},x.id)),l.jsx("div",{className:En.slider,style:f})]})},Tc="_card_1cqzz_1",Dc="_link_1cqzz_17",Mr={card:Tc,link:Dc},$c=y.memo(({text:e,width:t,height:n,className:r,backgroundColor:o,imageUrl:s,textColor:i,link:c})=>{const u=A(Mr.card,{[Mr.link]:c},r),d=y.useMemo(()=>({backgroundColor:o,...i&&{color:i},...t&&{width:t},...n&&{height:`${n}px`},...s&&{backgroundImage:`url(${s})`}}),[o,n,s,i,t]);return c?l.jsx("a",{className:u,style:d,href:c,children:l.jsx("span",{children:e})}):l.jsx("div",{className:u,style:d,children:l.jsx("span",{children:e})})}),Fc="_carouselWrapper_12142_1",Bc="_carousel_12142_1",zc="_viewport_12142_13",Hc="_slide_12142_19",Wc="_activeSlide_12142_24",Vc="_itemContent_12142_28",qc="_controls_12142_36",Gc="_carouselControl_12142_48",Uc="_prevIcon_12142_71",Zc="_nextIcon_12142_72",Yc="_indicators_12142_90",Xc="_activeIndicator_12142_115",ve={carouselWrapper:Fc,carousel:Bc,viewport:zc,slide:Hc,activeSlide:Wc,itemContent:Vc,controls:qc,carouselControl:Gc,prevIcon:Uc,nextIcon:Zc,indicators:Yc,activeIndicator:Xc},Kc=e=>"items"in e&&Array.isArray(e.items)&&"renderItem"in e&&typeof e.renderItem=="function",Qc=e=>Kc(e)?e.items.map((t,n)=>({key:`${t.id}-${n}`,content:e.renderItem(t),caption:t.caption})):y.Children.toArray(e.children).map((t,n)=>({key:y.isValidElement(t)&&t.key!==null&&t.key!==void 0&&t.key!=="."?String(t.key):`slide-${n}`,content:t})),Jc=e=>{const t={...e};return delete t.items,delete t.renderItem,delete t.children,t},el=e=>{const t=Qc(e),n=t.length,r=Jc(e),{className:o,dark:s,enableTouch:i,fade:c,interval:u,keyboard:d=!0,pause:f,ride:p,slide:v,...m}=r,[w,h]=y.useState(0),g=()=>{h(E=>E===n-1?0:E+1)},x=()=>{h(E=>E===0?n-1:E-1)},b=E=>{h(E)},_=n>1,C=y.useMemo(()=>t.map(E=>({key:E.key})),[t]),k=E=>{m.onKeyDown?.(E),!(E.defaultPrevented||!d||!_)&&(E.key==="ArrowLeft"&&x(),E.key==="ArrowRight"&&g())};return n?_?l.jsx("div",{className:ve.carouselWrapper,children:l.jsxs("div",{...m,className:[ve.carousel,o].filter(Boolean).join(" "),onKeyDown:k,role:"region","aria-roledescription":"carousel",children:[l.jsx("div",{className:ve.viewport,children:t.map((E,j)=>l.jsx("div",{className:[ve.slide,j===w?ve.activeSlide:""].filter(Boolean).join(" "),"aria-hidden":j!==w,children:l.jsx("div",{className:ve.itemContent,children:E.content})},E.key))}),l.jsxs("div",{className:ve.controls,children:[l.jsx("button",{className:ve.carouselControl,type:"button",onClick:x,"aria-label":"Previous slide",children:l.jsx("span",{className:ve.prevIcon,"aria-hidden":"true"})}),l.jsx("div",{className:ve.indicators,children:C.map((E,j)=>l.jsx("button",{className:j===w?ve.activeIndicator:void 0,type:"button",onClick:()=>b(j),"aria-label":`Go to slide ${j+1}`,"aria-current":j===w},E.key))}),l.jsx("button",{className:ve.carouselControl,type:"button",onClick:g,"aria-label":"Next slide",children:l.jsx("span",{className:ve.nextIcon,"aria-hidden":"true"})})]})]})}):l.jsx("div",{className:ve.carouselWrapper,children:t[0].content}):null},we=8;function tl(e,t="top"){const{left:n,right:r,top:o,bottom:s,width:i,height:c}=e,u=n+i/2,d=o+c/2;switch(t){case"top":return{left:u,top:o-we,transform:"translate(-50%, -100%)"};case"topLeft":return{left:n,top:o-we,transform:"translateY(-100%)"};case"topRight":return{left:r,top:o-we,transform:"translate(-100%, -100%)"};case"bottom":return{left:u,top:s+we,transform:"translate(-50%, 0)"};case"bottomLeft":return{left:n,top:s+we,transform:"translateY(0)"};case"bottomRight":return{left:r,top:s+we,transform:"translate(-100%, 0)"};case"left":return{left:n-we,top:d,transform:"translate(-100%, -50%)"};case"leftTop":return{left:n-we,top:o,transform:"translate(-100%, 0)"};case"leftBottom":return{left:n-we,top:s,transform:"translate(-100%, -100%)"};case"right":return{left:r+we,top:d,transform:"translate(0, -50%)"};case"rightTop":return{left:r+we,top:o,transform:"translate(0, 0)"};case"rightBottom":return{left:r+we,top:s,transform:"translate(0, -100%)"};default:return{left:u,top:o-we,transform:"translate(-50%, -100%)"}}}const nl="_overlay_1pnex_1",rl="_fadeIn_1pnex_1",ol="_arrow_1pnex_16",sl="_top_1pnex_22",al="_bottom_1pnex_28",il="_left_1pnex_34",cl="_right_1pnex_40",Sn={overlay:nl,fadeIn:rl,arrow:ol,top:sl,bottom:al,left:il,right:cl};function ll(e){return e.startsWith("top")?"bottom":e.startsWith("bottom")?"top":e.startsWith("left")?"right":e.startsWith("right")?"left":"top"}const er=y.memo(({title:e,content:t,open:n,defaultOpen:r=!1,trigger:o="hover",mouseEnterDelay:s=100,mouseLeaveDelay:i=100,onOpenChange:c,placement:u="top",arrow:d=!0,children:f,overlayClassName:p,getPopupContainer:v=()=>document.body})=>{const m=n!==void 0,[w,h]=y.useState(r),g=m?n:w,x=y.useCallback(N=>{m||h(N),c?.(N)},[m,c]),b=y.useRef(null),[_,C]=y.useState(null),k=y.useRef(null),E=y.useRef(null),j=Array.isArray(o)?o:[o],S=j.includes("hover"),P=j.includes("click"),D=y.useCallback(()=>{k.current&&(clearTimeout(k.current),k.current=null)},[]),$=y.useCallback(()=>{E.current&&(clearTimeout(E.current),E.current=null)},[]),q=y.useCallback(()=>{S&&($(),k.current=setTimeout(()=>x(!0),s))},[S,s,x,$]),F=y.useCallback(()=>{S&&(D(),E.current=setTimeout(()=>x(!1),i))},[S,i,x,D]),z=y.useCallback(N=>{P&&(N.preventDefault(),x(!g))},[P,g,x]);y.useEffect(()=>{if(!P||!g||m)return;const N=de=>{const se=b.current;se&&!se.contains(de.target)&&x(!1)};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[P,g,m,x]),y.useLayoutEffect(()=>{if(!g||!b.current){C(null);return}const N=b.current.getBoundingClientRect();C(tl(N,u))},[g,u]),y.useEffect(()=>()=>{D(),$()},[D,$]);const Y=typeof document<"u"?v():null,H=ll(u),B=e??t,O=g&&B!=null&&B!==""&&_&&Y&&Et.createPortal(l.jsxs("span",{className:A(Sn.overlay,p),style:{left:_.left,top:_.top,transform:_.transform},role:"tooltip",children:[B,d&&l.jsx("span",{className:A(Sn.arrow,Sn[H])})]}),Y),X=!m&&(S||P)?{onMouseEnter:q,onMouseLeave:F,onClick:P?z:void 0}:{};return l.jsxs(l.Fragment,{children:[l.jsx("span",{ref:b,...X,children:f}),O]})});er.displayName="TooltipDark";const ul="_wrapper_15jb4_1",dl="_trigger_15jb4_5",fl="_icon_15jb4_27",jn={wrapper:ul,trigger:dl,icon:fl},Bo=y.memo(({children:e,onClick:t,copied:n,tooltipText:r="Скопировано",ariaLabel:o,showIcon:s=!0,className:i})=>{const c=y.useCallback(()=>{t()},[t]);return l.jsx("span",{className:jn.wrapper,children:l.jsx(er,{open:n,title:r,placement:"top",children:l.jsxs(Jn,{type:"button",variant:null,size:null,className:A(jn.trigger,i),onClick:c,"aria-label":o,"aria-live":"polite",children:[e,s&&l.jsx(go,{className:jn.icon,"aria-hidden":!0})]})})})});Bo.displayName="CopyTextTrigger";function zo(e){return typeof document>"u"?null:Et.createPortal(e,document.body)}function ie(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function pl(e,t){const n=a.createContext(t),r=s=>{const{children:i,...c}=s,u=a.useMemo(()=>c,Object.values(c));return l.jsx(n.Provider,{value:u,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 rn(e,t=[]){let n=[];function r(s,i){const c=a.createContext(i),u=n.length;n=[...n,i];const d=p=>{const{scope:v,children:m,...w}=p,h=v?.[e]?.[u]||c,g=a.useMemo(()=>w,Object.values(w));return l.jsx(h.Provider,{value:g,children:m})};d.displayName=s+"Provider";function f(p,v){const m=v?.[e]?.[u]||c,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(c){const u=c?.[e]||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return o.scopeName=e,[r,ml(o,...t)]}function ml(...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((c,{useScope:u,scopeName:d})=>{const p=u(s)[`__scope${d}`];return{...c,...p}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function hl(e){const t=gl(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,c=a.Children.toArray(s),u=c.find(xl);if(u){const d=u.props.children,f=c.map(p=>p===u?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:p);return l.jsx(t,{...i,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,f):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function gl(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=bl(o),c=wl(s,o.props);return o.type!==a.Fragment&&(c.ref=r?St(r,i):i),a.cloneElement(o,c)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var vl=Symbol("radix.slottable");function xl(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===vl}function wl(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]=(...c)=>{const u=s(...c);return o(...c),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function bl(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 _l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pe=_l.reduce((e,t)=>{const n=hl(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...c}=o,u=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function yl(e,t){e&&mo.flushSync(()=>e.dispatchEvent(t))}function ht(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>t.current?.(...n),[])}function Cl(e,t=globalThis?.document){const n=ht(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 kl="DismissableLayer",zn="dismissableLayer.update",El="dismissableLayer.pointerDownOutside",Sl="dismissableLayer.focusOutside",Or,Ho=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),on=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:c,...u}=e,d=a.useContext(Ho),[f,p]=a.useState(null),v=f?.ownerDocument??globalThis?.document,[,m]=a.useState({}),w=ye(t,j=>p(j)),h=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=h.indexOf(g),b=f?h.indexOf(f):-1,_=d.layersWithOutsidePointerEventsDisabled.size>0,C=b>=x,k=Rl(j=>{const S=j.target,P=[...d.branches].some(D=>D.contains(S));!C||P||(o?.(j),i?.(j),j.defaultPrevented||c?.())},v),E=Ll(j=>{const S=j.target;[...d.branches].some(D=>D.contains(S))||(s?.(j),i?.(j),j.defaultPrevented||c?.())},v);return Cl(j=>{b===d.layers.size-1&&(r?.(j),!j.defaultPrevented&&c&&(j.preventDefault(),c()))},v),a.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Or=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Ir(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Or)}},[f,v,n,d]),a.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Ir())},[f,d]),a.useEffect(()=>{const j=()=>m({});return document.addEventListener(zn,j),()=>document.removeEventListener(zn,j)},[]),l.jsx(pe.div,{...u,ref:w,style:{pointerEvents:_?C?"auto":"none":void 0,...e.style},onFocusCapture:ie(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ie(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ie(e.onPointerDownCapture,k.onPointerDownCapture)})});on.displayName=kl;var jl="DismissableLayerBranch",Nl=a.forwardRef((e,t)=>{const n=a.useContext(Ho),r=a.useRef(null),o=ye(t,r);return a.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsx(pe.div,{...e,ref:o})});Nl.displayName=jl;function Rl(e,t=globalThis?.document){const n=ht(e),r=a.useRef(!1),o=a.useRef(()=>{});return a.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let u=function(){Wo(El,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}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 Ll(e,t=globalThis?.document){const n=ht(e),r=a.useRef(!1);return a.useEffect(()=>{const o=s=>{s.target&&!r.current&&Wo(Sl,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 Ir(){const e=new CustomEvent(zn);document.dispatchEvent(e)}function Wo(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?yl(o,s):o.dispatchEvent(s)}var Ze=globalThis?.document?a.useLayoutEffect:()=>{},Al=a[" useId ".trim().toString()]||(()=>{}),Pl=0;function yt(e){const[t,n]=a.useState(Al());return Ze(()=>{n(r=>r??String(Pl++))},[e]),e||(t?`radix-${t}`:"")}const Ml=["top","right","bottom","left"],Ye=Math.min,be=Math.max,Xt=Math.round,It=Math.floor,Ae=e=>({x:e,y:e}),Ol={left:"right",right:"left",bottom:"top",top:"bottom"};function Hn(e,t,n){return be(e,Ye(t,n))}function $e(e,t){return typeof e=="function"?e(t):e}function Fe(e){return e.split("-")[0]}function wt(e){return e.split("-")[1]}function tr(e){return e==="x"?"y":"x"}function nr(e){return e==="y"?"height":"width"}function Le(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function rr(e){return tr(Le(e))}function Il(e,t,n){n===void 0&&(n=!1);const r=wt(e),o=rr(e),s=nr(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Kt(i)),[i,Kt(i)]}function Tl(e){const t=Kt(e);return[Wn(e),t,Wn(t)]}function Wn(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Tr=["left","right"],Dr=["right","left"],Dl=["top","bottom"],$l=["bottom","top"];function Fl(e,t,n){switch(e){case"top":case"bottom":return n?t?Dr:Tr:t?Tr:Dr;case"left":case"right":return t?Dl:$l;default:return[]}}function Bl(e,t,n,r){const o=wt(e);let s=Fl(Fe(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Wn)))),s}function Kt(e){const t=Fe(e);return Ol[t]+e.slice(t.length)}function zl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vo(e){return typeof e!="number"?zl(e):{top:e,right:e,bottom:e,left:e}}function Qt(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 $r(e,t,n){let{reference:r,floating:o}=e;const s=Le(t),i=rr(t),c=nr(i),u=Fe(t),d=s==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,v=r[c]/2-o[c]/2;let m;switch(u){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(wt(t)){case"start":m[i]-=v*(n&&d?-1:1);break;case"end":m[i]+=v*(n&&d?-1:1);break}return m}async function Hl(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:v=!1,padding:m=0}=$e(t,e),w=Vo(m),g=c[v?p==="floating"?"reference":"floating":p],x=Qt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:d,rootBoundary:f,strategy:u})),b=p==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),C=await(s.isElement==null?void 0:s.isElement(_))?await(s.getScale==null?void 0:s.getScale(_))||{x:1,y:1}:{x:1,y:1},k=Qt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:b,offsetParent:_,strategy:u}):b);return{top:(x.top-k.top+w.top)/C.y,bottom:(k.bottom-x.bottom+w.bottom)/C.y,left:(x.left-k.left+w.left)/C.x,right:(k.right-x.right+w.right)/C.x}}const Wl=50,Vl=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,c=i.detectOverflow?i:{...i,detectOverflow:Hl},u=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=$r(d,r,u),v=r,m=0;const w={};for(let h=0;h<s.length;h++){const g=s[h];if(!g)continue;const{name:x,fn:b}=g,{x:_,y:C,data:k,reset:E}=await b({x:f,y:p,initialPlacement:r,placement:v,strategy:o,middlewareData:w,rects:d,platform:c,elements:{reference:e,floating:t}});f=_??f,p=C??p,w[x]={...w[x],...k},E&&m<Wl&&(m++,typeof E=="object"&&(E.placement&&(v=E.placement),E.rects&&(d=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:p}=$r(d,v,u)),h=-1)}return{x:f,y:p,placement:v,strategy:o,middlewareData:w}},ql=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:c,middlewareData:u}=t,{element:d,padding:f=0}=$e(e,t)||{};if(d==null)return{};const p=Vo(f),v={x:n,y:r},m=rr(o),w=nr(m),h=await i.getDimensions(d),g=m==="y",x=g?"top":"left",b=g?"bottom":"right",_=g?"clientHeight":"clientWidth",C=s.reference[w]+s.reference[m]-v[m]-s.floating[w],k=v[m]-s.reference[m],E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let j=E?E[_]:0;(!j||!await(i.isElement==null?void 0:i.isElement(E)))&&(j=c.floating[_]||s.floating[w]);const S=C/2-k/2,P=j/2-h[w]/2-1,D=Ye(p[x],P),$=Ye(p[b],P),q=D,F=j-h[w]-$,z=j/2-h[w]/2+S,Y=Hn(q,z,F),H=!u.arrow&&wt(o)!=null&&z!==Y&&s.reference[w]/2-(z<q?D:$)-h[w]/2<0,B=H?z<q?z-q:z-F:0;return{[m]:v[m]+B,data:{[m]:Y,centerOffset:z-Y-B,...H&&{alignmentOffset:B}},reset:H}}}),Gl=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:c,platform:u,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:h=!0,...g}=$e(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=Fe(o),b=Le(c),_=Fe(c)===c,C=await(u.isRTL==null?void 0:u.isRTL(d.floating)),k=v||(_||!h?[Kt(c)]:Tl(c)),E=w!=="none";!v&&E&&k.push(...Bl(c,h,w,C));const j=[c,...k],S=await u.detectOverflow(t,g),P=[];let D=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&P.push(S[x]),p){const z=Il(o,i,C);P.push(S[z[0]],S[z[1]])}if(D=[...D,{placement:o,overflows:P}],!P.every(z=>z<=0)){var $,q;const z=((($=s.flip)==null?void 0:$.index)||0)+1,Y=j[z];if(Y&&(!(p==="alignment"?b!==Le(Y):!1)||D.every(O=>Le(O.placement)===b?O.overflows[0]>0:!0)))return{data:{index:z,overflows:D},reset:{placement:Y}};let H=(q=D.filter(B=>B.overflows[0]<=0).sort((B,O)=>B.overflows[1]-O.overflows[1])[0])==null?void 0:q.placement;if(!H)switch(m){case"bestFit":{var F;const B=(F=D.filter(O=>{if(E){const X=Le(O.placement);return X===b||X==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(X=>X>0).reduce((X,N)=>X+N,0)]).sort((O,X)=>O[1]-X[1])[0])==null?void 0:F[0];B&&(H=B);break}case"initialPlacement":H=c;break}if(o!==H)return{reset:{placement:H}}}return{}}}};function Fr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Br(e){return Ml.some(t=>e[t]>=0)}const Ul=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=$e(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),c=Fr(i,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Br(c)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),c=Fr(i,n.floating);return{data:{escapedOffsets:c,escaped:Br(c)}}}default:return{}}}}},qo=new Set(["left","top"]);async function Zl(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Fe(n),c=wt(n),u=Le(n)==="y",d=qo.has(i)?-1:1,f=s&&u?-1:1,p=$e(t,e);let{mainAxis:v,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 c&&typeof w=="number"&&(m=c==="end"?w*-1:w),u?{x:m*f,y:v*d}:{x:v*d,y:m*f}}const Yl=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:c}=t,u=await Zl(t,e);return i===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:i}}}}},Xl=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:c=!1,limiter:u={fn:x=>{let{x:b,y:_}=x;return{x:b,y:_}}},...d}=$e(e,t),f={x:n,y:r},p=await s.detectOverflow(t,d),v=Le(Fe(o)),m=tr(v);let w=f[m],h=f[v];if(i){const x=m==="y"?"top":"left",b=m==="y"?"bottom":"right",_=w+p[x],C=w-p[b];w=Hn(_,w,C)}if(c){const x=v==="y"?"top":"left",b=v==="y"?"bottom":"right",_=h+p[x],C=h-p[b];h=Hn(_,h,C)}const g=u.fn({...t,[m]:w,[v]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[m]:i,[v]:c}}}}}},Kl=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=$e(e,t),f={x:n,y:r},p=Le(o),v=tr(p);let m=f[v],w=f[p];const h=$e(c,t),g=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const _=v==="y"?"height":"width",C=s.reference[v]-s.floating[_]+g.mainAxis,k=s.reference[v]+s.reference[_]-g.mainAxis;m<C?m=C:m>k&&(m=k)}if(d){var x,b;const _=v==="y"?"width":"height",C=qo.has(Fe(o)),k=s.reference[p]-s.floating[_]+(C&&((x=i.offset)==null?void 0:x[p])||0)+(C?0:g.crossAxis),E=s.reference[p]+s.reference[_]+(C?0:((b=i.offset)==null?void 0:b[p])||0)-(C?g.crossAxis:0);w<k?w=k:w>E&&(w=E)}return{[v]:m,[p]:w}}}},Ql=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:c}=t,{apply:u=()=>{},...d}=$e(e,t),f=await i.detectOverflow(t,d),p=Fe(o),v=wt(o),m=Le(o)==="y",{width:w,height:h}=s.floating;let g,x;p==="top"||p==="bottom"?(g=p,x=v===(await(i.isRTL==null?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(x=p,g=v==="end"?"top":"bottom");const b=h-f.top-f.bottom,_=w-f.left-f.right,C=Ye(h-f[g],b),k=Ye(w-f[x],_),E=!t.middlewareData.shift;let j=C,S=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=_),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=b),E&&!v){const D=be(f.left,0),$=be(f.right,0),q=be(f.top,0),F=be(f.bottom,0);m?S=w-2*(D!==0||$!==0?D+$:be(f.left,f.right)):j=h-2*(q!==0||F!==0?q+F:be(f.top,f.bottom))}await u({...t,availableWidth:S,availableHeight:j});const P=await i.getDimensions(c.floating);return w!==P.width||h!==P.height?{reset:{rects:!0}}:{}}}};function sn(){return typeof window<"u"}function bt(e){return Go(e)?(e.nodeName||"").toLowerCase():"#document"}function _e(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Me(e){var t;return(t=(Go(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Go(e){return sn()?e instanceof Node||e instanceof _e(e).Node:!1}function fe(e){return sn()?e instanceof Element||e instanceof _e(e).Element:!1}function Be(e){return sn()?e instanceof HTMLElement||e instanceof _e(e).HTMLElement:!1}function zr(e){return!sn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _e(e).ShadowRoot}function jt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ke(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function Jl(e){return/^(table|td|th)$/.test(bt(e))}function an(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const eu=/transform|translate|scale|rotate|perspective|filter/,tu=/paint|layout|strict|content/,ot=e=>!!e&&e!=="none";let Nn;function or(e){const t=fe(e)?ke(e):e;return ot(t.transform)||ot(t.translate)||ot(t.scale)||ot(t.rotate)||ot(t.perspective)||!sr()&&(ot(t.backdropFilter)||ot(t.filter))||eu.test(t.willChange||"")||tu.test(t.contain||"")}function nu(e){let t=Xe(e);for(;Be(t)&&!gt(t);){if(or(t))return t;if(an(t))return null;t=Xe(t)}return null}function sr(){return Nn==null&&(Nn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Nn}function gt(e){return/^(html|body|#document)$/.test(bt(e))}function ke(e){return _e(e).getComputedStyle(e)}function cn(e){return fe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xe(e){if(bt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||zr(e)&&e.host||Me(e);return zr(t)?t.host:t}function Uo(e){const t=Xe(e);return gt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Be(t)&&jt(t)?t:Uo(t)}function Ct(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Uo(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=_e(o);if(s){const c=Vn(i);return t.concat(i,i.visualViewport||[],jt(o)?o:[],c&&n?Ct(c):[])}else return t.concat(o,Ct(o,[],n))}function Vn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zo(e){const t=ke(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Be(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,c=Xt(n)!==s||Xt(r)!==i;return c&&(n=s,r=i),{width:n,height:r,$:c}}function ar(e){return fe(e)?e:e.contextElement}function pt(e){const t=ar(e);if(!Be(t))return Ae(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Zo(t);let i=(s?Xt(n.width):n.width)/r,c=(s?Xt(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const ru=Ae(0);function Yo(e){const t=_e(e);return!sr()||!t.visualViewport?ru:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ou(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==_e(e)?!1:t}function at(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=ar(e);let i=Ae(1);t&&(r?fe(r)&&(i=pt(r)):i=pt(e));const c=ou(s,n,r)?Yo(s):Ae(0);let u=(o.left+c.x)/i.x,d=(o.top+c.y)/i.y,f=o.width/i.x,p=o.height/i.y;if(s){const v=_e(s),m=r&&fe(r)?_e(r):r;let w=v,h=Vn(w);for(;h&&r&&m!==w;){const g=pt(h),x=h.getBoundingClientRect(),b=ke(h),_=x.left+(h.clientLeft+parseFloat(b.paddingLeft))*g.x,C=x.top+(h.clientTop+parseFloat(b.paddingTop))*g.y;u*=g.x,d*=g.y,f*=g.x,p*=g.y,u+=_,d+=C,w=_e(h),h=Vn(w)}}return Qt({width:f,height:p,x:u,y:d})}function ln(e,t){const n=cn(e).scrollLeft;return t?t.left+n:at(Me(e)).left+n}function Xo(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-ln(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function su(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Me(r),c=t?an(t.floating):!1;if(r===i||c&&s)return n;let u={scrollLeft:0,scrollTop:0},d=Ae(1);const f=Ae(0),p=Be(r);if((p||!p&&!s)&&((bt(r)!=="body"||jt(i))&&(u=cn(r)),p)){const m=at(r);d=pt(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}const v=i&&!p&&!s?Xo(i,u):Ae(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+f.x+v.x,y:n.y*d.y-u.scrollTop*d.y+f.y+v.y}}function au(e){return Array.from(e.getClientRects())}function iu(e){const t=Me(e),n=cn(e),r=e.ownerDocument.body,o=be(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=be(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+ln(e);const c=-n.scrollTop;return ke(r).direction==="rtl"&&(i+=be(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:c}}const Hr=25;function cu(e,t){const n=_e(e),r=Me(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,c=0,u=0;if(o){s=o.width,i=o.height;const f=sr();(!f||f&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}const d=ln(r);if(d<=0){const f=r.ownerDocument,p=f.body,v=getComputedStyle(p),m=f.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,w=Math.abs(r.clientWidth-p.clientWidth-m);w<=Hr&&(s-=w)}else d<=Hr&&(s+=d);return{width:s,height:i,x:c,y:u}}function lu(e,t){const n=at(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Be(e)?pt(e):Ae(1),i=e.clientWidth*s.x,c=e.clientHeight*s.y,u=o*s.x,d=r*s.y;return{width:i,height:c,x:u,y:d}}function Wr(e,t,n){let r;if(t==="viewport")r=cu(e,n);else if(t==="document")r=iu(Me(e));else if(fe(t))r=lu(t,n);else{const o=Yo(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Qt(r)}function Ko(e,t){const n=Xe(e);return n===t||!fe(n)||gt(n)?!1:ke(n).position==="fixed"||Ko(n,t)}function uu(e,t){const n=t.get(e);if(n)return n;let r=Ct(e,[],!1).filter(c=>fe(c)&&bt(c)!=="body"),o=null;const s=ke(e).position==="fixed";let i=s?Xe(e):e;for(;fe(i)&&!gt(i);){const c=ke(i),u=or(i);!u&&c.position==="fixed"&&(o=null),(s?!u&&!o:!u&&c.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||jt(i)&&!u&&Ko(e,i))?r=r.filter(f=>f!==i):o=c,i=Xe(i)}return t.set(e,r),r}function du(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?an(t)?[]:uu(t,this._c):[].concat(n),r],c=Wr(t,i[0],o);let u=c.top,d=c.right,f=c.bottom,p=c.left;for(let v=1;v<i.length;v++){const m=Wr(t,i[v],o);u=be(m.top,u),d=Ye(m.right,d),f=Ye(m.bottom,f),p=be(m.left,p)}return{width:d-p,height:f-u,x:p,y:u}}function fu(e){const{width:t,height:n}=Zo(e);return{width:t,height:n}}function pu(e,t,n){const r=Be(t),o=Me(t),s=n==="fixed",i=at(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const u=Ae(0);function d(){u.x=ln(o)}if(r||!r&&!s)if((bt(t)!=="body"||jt(o))&&(c=cn(t)),r){const m=at(t,!0,s,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else o&&d();s&&!r&&o&&d();const f=o&&!r&&!s?Xo(o,c):Ae(0),p=i.left+c.scrollLeft-u.x-f.x,v=i.top+c.scrollTop-u.y-f.y;return{x:p,y:v,width:i.width,height:i.height}}function Rn(e){return ke(e).position==="static"}function Vr(e,t){if(!Be(e)||ke(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Me(e)===n&&(n=n.ownerDocument.body),n}function Qo(e,t){const n=_e(e);if(an(e))return n;if(!Be(e)){let o=Xe(e);for(;o&&!gt(o);){if(fe(o)&&!Rn(o))return o;o=Xe(o)}return n}let r=Vr(e,t);for(;r&&Jl(r)&&Rn(r);)r=Vr(r,t);return r&>(r)&&Rn(r)&&!or(r)?n:r||nu(e)||n}const mu=async function(e){const t=this.getOffsetParent||Qo,n=this.getDimensions,r=await n(e.floating);return{reference:pu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function hu(e){return ke(e).direction==="rtl"}const gu={convertOffsetParentRelativeRectToViewportRelativeRect:su,getDocumentElement:Me,getClippingRect:du,getOffsetParent:Qo,getElementRects:mu,getClientRects:au,getDimensions:fu,getScale:pt,isElement:fe,isRTL:hu};function Jo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function vu(e,t){let n=null,r;const o=Me(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function i(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),s();const d=e.getBoundingClientRect(),{left:f,top:p,width:v,height:m}=d;if(c||t(),!v||!m)return;const w=It(p),h=It(o.clientWidth-(f+v)),g=It(o.clientHeight-(p+m)),x=It(f),_={rootMargin:-w+"px "+-h+"px "+-g+"px "+-x+"px",threshold:be(0,Ye(1,u))||1};let C=!0;function k(E){const j=E[0].intersectionRatio;if(j!==u){if(!C)return i();j?i(!1,j):r=setTimeout(()=>{i(!1,1e-7)},1e3)}j===1&&!Jo(d,e.getBoundingClientRect())&&i(),C=!1}try{n=new IntersectionObserver(k,{..._,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,_)}n.observe(e)}return i(!0),s}function es(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=ar(e),f=o||s?[...d?Ct(d):[],...t?Ct(t):[]]:[];f.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const p=d&&c?vu(d,n):null;let v=-1,m=null;i&&(m=new ResizeObserver(x=>{let[b]=x;b&&b.target===d&&m&&t&&(m.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var _;(_=m)==null||_.observe(t)})),n()}),d&&!u&&m.observe(d),t&&m.observe(t));let w,h=u?at(e):null;u&&g();function g(){const x=at(e);h&&!Jo(h,x)&&n(),h=x,w=requestAnimationFrame(g)}return n(),()=>{var x;f.forEach(b=>{o&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),p?.(),(x=m)==null||x.disconnect(),m=null,u&&cancelAnimationFrame(w)}}const xu=Yl,wu=Xl,bu=Gl,_u=Ql,yu=Ul,qr=ql,Cu=Kl,ku=(e,t,n)=>{const r=new Map,o={platform:gu,...n},s={...o.platform,_c:r};return Vl(e,t,{...o,platform:s})};var Eu=typeof document<"u",Su=function(){},qt=Eu?y.useLayoutEffect:Su;function Jt(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(!Jt(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)&&!Jt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ts(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gr(e,t){const n=ts(e);return Math.round(t*n)/n}function Ln(e){const t=a.useRef(e);return qt(()=>{t.current=e}),t}function ns(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[f,p]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,m]=a.useState(r);Jt(v,r)||m(r);const[w,h]=a.useState(null),[g,x]=a.useState(null),b=a.useCallback(O=>{O!==E.current&&(E.current=O,h(O))},[]),_=a.useCallback(O=>{O!==j.current&&(j.current=O,x(O))},[]),C=s||w,k=i||g,E=a.useRef(null),j=a.useRef(null),S=a.useRef(f),P=u!=null,D=Ln(u),$=Ln(o),q=Ln(d),F=a.useCallback(()=>{if(!E.current||!j.current)return;const O={placement:t,strategy:n,middleware:v};$.current&&(O.platform=$.current),ku(E.current,j.current,O).then(X=>{const N={...X,isPositioned:q.current!==!1};z.current&&!Jt(S.current,N)&&(S.current=N,mo.flushSync(()=>{p(N)}))})},[v,t,n,$,q]);qt(()=>{d===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,p(O=>({...O,isPositioned:!1})))},[d]);const z=a.useRef(!1);qt(()=>(z.current=!0,()=>{z.current=!1}),[]),qt(()=>{if(C&&(E.current=C),k&&(j.current=k),C&&k){if(D.current)return D.current(C,k,F);F()}},[C,k,F,D,P]);const Y=a.useMemo(()=>({reference:E,floating:j,setReference:b,setFloating:_}),[b,_]),H=a.useMemo(()=>({reference:C,floating:k}),[C,k]),B=a.useMemo(()=>{const O={position:n,left:0,top:0};if(!H.floating)return O;const X=Gr(H.floating,f.x),N=Gr(H.floating,f.y);return c?{...O,transform:"translate("+X+"px, "+N+"px)",...ts(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:X,top:N}},[n,c,H.floating,f.x,f.y]);return a.useMemo(()=>({...f,update:F,refs:Y,elements:H,floatingStyles:B}),[f,F,Y,H,B])}const ju=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?qr({element:r.current,padding:o}).fn(n):{}:r?qr({element:r,padding:o}).fn(n):{}}}},rs=(e,t)=>{const n=xu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nu=(e,t)=>{const n=wu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ru=(e,t)=>({fn:Cu(e).fn,options:[e,t]}),os=(e,t)=>{const n=bu(e);return{name:n.name,fn:n.fn,options:[e,t]}},ss=(e,t)=>{const n=_u(e);return{name:n.name,fn:n.fn,options:[e,t]}},Lu=(e,t)=>{const n=yu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Au=(e,t)=>{const n=ju(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Pu="Arrow",as=a.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsx(pe.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});as.displayName=Pu;var Mu=as;function Ou(e){const[t,n]=a.useState(void 0);return Ze(()=>{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,c;if("borderBoxSize"in s){const u=s.borderBoxSize,d=Array.isArray(u)?u[0]:u;i=d.inlineSize,c=d.blockSize}else i=e.offsetWidth,c=e.offsetHeight;n({width:i,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ir="Popper",[is,un]=rn(ir),[Iu,cs]=is(ir),ls=e=>{const{__scopePopper:t,children:n}=e,[r,o]=a.useState(null);return l.jsx(Iu,{scope:t,anchor:r,onAnchorChange:o,children:n})};ls.displayName=ir;var us="PopperAnchor",ds=a.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=cs(us,n),i=a.useRef(null),c=ye(t,i),u=a.useRef(null);return a.useEffect(()=>{const d=u.current;u.current=r?.current||i.current,d!==u.current&&s.onAnchorChange(u.current)}),r?null:l.jsx(pe.div,{...o,ref:c})});ds.displayName=us;var cr="PopperContent",[Tu,Du]=is(cr),fs=a.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:v=!1,updatePositionStrategy:m="optimized",onPlaced:w,...h}=e,g=cs(cr,n),[x,b]=a.useState(null),_=ye(t,te=>b(te)),[C,k]=a.useState(null),E=Ou(C),j=E?.width??0,S=E?.height??0,P=r+(s!=="center"?"-"+s:""),D=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},$=Array.isArray(d)?d:[d],q=$.length>0,F={padding:D,boundary:$.filter(Fu),altBoundary:q},{refs:z,floatingStyles:Y,placement:H,isPositioned:B,middlewareData:O}=ns({strategy:"fixed",placement:P,whileElementsMounted:(...te)=>es(...te,{animationFrame:m==="always"}),elements:{reference:g.anchor},middleware:[rs({mainAxis:o+S,alignmentAxis:i}),u&&Nu({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Ru():void 0,...F}),u&&os({...F}),ss({...F,apply:({elements:te,rects:T,availableWidth:Z,availableHeight:xe})=>{const{width:Se,height:Ce}=T.reference,V=te.floating.style;V.setProperty("--radix-popper-available-width",`${Z}px`),V.setProperty("--radix-popper-available-height",`${xe}px`),V.setProperty("--radix-popper-anchor-width",`${Se}px`),V.setProperty("--radix-popper-anchor-height",`${Ce}px`)}}),C&&Au({element:C,padding:c}),Bu({arrowWidth:j,arrowHeight:S}),v&&Lu({strategy:"referenceHidden",...F})]}),[X,N]=hs(H),de=ht(w);Ze(()=>{B&&de?.()},[B,de]);const se=O.arrow?.x,ne=O.arrow?.y,me=O.arrow?.centerOffset!==0,[U,Q]=a.useState();return Ze(()=>{x&&Q(window.getComputedStyle(x).zIndex)},[x]),l.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:B?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[O.transformOrigin?.x,O.transformOrigin?.y].join(" "),...O.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(Tu,{scope:n,placedSide:X,onArrowChange:k,arrowX:se,arrowY:ne,shouldHideArrow:me,children:l.jsx(pe.div,{"data-side":X,"data-align":N,...h,ref:_,style:{...h.style,animation:B?void 0:"none"}})})})});fs.displayName=cr;var ps="PopperArrow",$u={top:"bottom",right:"left",bottom:"top",left:"right"},ms=a.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Du(ps,r),i=$u[s.placedSide];return l.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:l.jsx(Mu,{...o,ref:n,style:{...o.style,display:"block"}})})});ms.displayName=ps;function Fu(e){return e!==null}var Bu=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,c=i?0:e.arrowWidth,u=i?0:e.arrowHeight,[d,f]=hs(n),p={start:"0%",center:"50%",end:"100%"}[f],v=(o.arrow?.x??0)+c/2,m=(o.arrow?.y??0)+u/2;let w="",h="";return d==="bottom"?(w=i?p:`${v}px`,h=`${-u}px`):d==="top"?(w=i?p:`${v}px`,h=`${r.floating.height+u}px`):d==="right"?(w=`${-u}px`,h=i?p:`${m}px`):d==="left"&&(w=`${r.floating.width+u}px`,h=i?p:`${m}px`),{data:{x:w,y:h}}}});function hs(e){const[t,n="center"]=e.split("-");return[t,n]}var gs=ls,lr=ds,vs=fs,xs=ms,zu="Portal",dn=a.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=a.useState(!1);Ze(()=>s(!0),[]);const i=n||o&&globalThis?.document?.body;return i?Et.createPortal(l.jsx(pe.div,{...r,ref:t}),i):null});dn.displayName=zu;function Hu(e,t){return a.useReducer((n,r)=>t[n][r]??n,e)}var Qe=e=>{const{present:t,children:n}=e,r=Wu(t),o=typeof n=="function"?n({present:r.isPresent}):a.Children.only(n),s=ye(r.ref,Vu(o));return typeof n=="function"||r.isPresent?a.cloneElement(o,{ref:s}):null};Qe.displayName="Presence";function Wu(e){const[t,n]=a.useState(),r=a.useRef(null),o=a.useRef(e),s=a.useRef("none"),i=e?"mounted":"unmounted",[c,u]=Hu(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const d=Tt(r.current);s.current=c==="mounted"?d:"none"},[c]),Ze(()=>{const d=r.current,f=o.current;if(f!==e){const v=s.current,m=Tt(d);e?u("MOUNT"):m==="none"||d?.display==="none"?u("UNMOUNT"):u(f&&v!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),Ze(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=m=>{const h=Tt(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&h&&(u("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},v=m=>{m.target===t&&(s.current=Tt(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:a.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function Tt(e){return e?.animationName||"none"}function Vu(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 qu=Symbol("radix.slottable");function Gu(e){const t=({children:n})=>l.jsx(l.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=qu,t}var Uu=a[" useInsertionEffect ".trim().toString()]||Ze;function ur({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=Zu({defaultProp:t,onChange:n}),c=e!==void 0,u=c?e:o;{const f=a.useRef(e!==void 0);a.useEffect(()=>{const p=f.current;p!==c&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${c?"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=c},[c,r])}const d=a.useCallback(f=>{if(c){const p=Yu(f)?f(e):f;p!==e&&i.current?.(p)}else s(f)},[c,e,s,i]);return[u,d]}function Zu({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),s=a.useRef(t);return Uu(()=>{s.current=t},[t]),a.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function Yu(e){return typeof e=="function"}var Xu=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"}),Ku="VisuallyHidden",ws=a.forwardRef((e,t)=>l.jsx(pe.span,{...e,ref:t,style:{...Xu,...e.style}}));ws.displayName=Ku;var Qu=ws,[fn]=rn("Tooltip",[un]),pn=un(),bs="TooltipProvider",Ju=700,qn="tooltip.open",[ed,dr]=fn(bs),_s=e=>{const{__scopeTooltip:t,delayDuration:n=Ju,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=a.useRef(!0),c=a.useRef(!1),u=a.useRef(0);return a.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),l.jsx(ed,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:a.useCallback(()=>{window.clearTimeout(u.current),i.current=!1},[]),onClose:a.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:a.useCallback(d=>{c.current=d},[]),disableHoverableContent:o,children:s})};_s.displayName=bs;var kt="Tooltip",[td,Nt]=fn(kt),ys=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:c}=e,u=dr(kt,e.__scopeTooltip),d=pn(t),[f,p]=a.useState(null),v=yt(),m=a.useRef(0),w=i??u.disableHoverableContent,h=c??u.delayDuration,g=a.useRef(!1),[x,b]=ur({prop:r,defaultProp:o??!1,onChange:j=>{j?(u.onOpen(),document.dispatchEvent(new CustomEvent(qn))):u.onClose(),s?.(j)},caller:kt}),_=a.useMemo(()=>x?g.current?"delayed-open":"instant-open":"closed",[x]),C=a.useCallback(()=>{window.clearTimeout(m.current),m.current=0,g.current=!1,b(!0)},[b]),k=a.useCallback(()=>{window.clearTimeout(m.current),m.current=0,b(!1)},[b]),E=a.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{g.current=!0,b(!0),m.current=0},h)},[h,b]);return a.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),l.jsx(gs,{...d,children:l.jsx(td,{scope:t,contentId:v,open:x,stateAttribute:_,trigger:f,onTriggerChange:p,onTriggerEnter:a.useCallback(()=>{u.isOpenDelayedRef.current?E():C()},[u.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})})};ys.displayName=kt;var Gn="TooltipTrigger",Cs=a.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Nt(Gn,n),s=dr(Gn,n),i=pn(n),c=a.useRef(null),u=ye(t,c,o.onTriggerChange),d=a.useRef(!1),f=a.useRef(!1),p=a.useCallback(()=>d.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),l.jsx(lr,{asChild:!0,...i,children:l.jsx(pe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:u,onPointerMove:ie(e.onPointerMove,v=>{v.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:ie(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:ie(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ie(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:ie(e.onBlur,o.onClose),onClick:ie(e.onClick,o.onClose)})})});Cs.displayName=Gn;var fr="TooltipPortal",[nd,rd]=fn(fr,{forceMount:void 0}),ks=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Nt(fr,t);return l.jsx(nd,{scope:t,forceMount:n,children:l.jsx(Qe,{present:n||s.open,children:l.jsx(dn,{asChild:!0,container:o,children:r})})})};ks.displayName=fr;var vt="TooltipContent",Es=a.forwardRef((e,t)=>{const n=rd(vt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Nt(vt,e.__scopeTooltip);return l.jsx(Qe,{present:r||i.open,children:i.disableHoverableContent?l.jsx(Ss,{side:o,...s,ref:t}):l.jsx(od,{side:o,...s,ref:t})})}),od=a.forwardRef((e,t)=>{const n=Nt(vt,e.__scopeTooltip),r=dr(vt,e.__scopeTooltip),o=a.useRef(null),s=ye(t,o),[i,c]=a.useState(null),{trigger:u,onClose:d}=n,f=o.current,{onPointerInTransitChange:p}=r,v=a.useCallback(()=>{c(null),p(!1)},[p]),m=a.useCallback((w,h)=>{const g=w.currentTarget,x={x:w.clientX,y:w.clientY},b=ld(x,g.getBoundingClientRect()),_=ud(x,b),C=dd(h.getBoundingClientRect()),k=pd([..._,...C]);c(k),p(!0)},[p]);return a.useEffect(()=>()=>v(),[v]),a.useEffect(()=>{if(u&&f){const w=g=>m(g,f),h=g=>m(g,u);return u.addEventListener("pointerleave",w),f.addEventListener("pointerleave",h),()=>{u.removeEventListener("pointerleave",w),f.removeEventListener("pointerleave",h)}}},[u,f,m,v]),a.useEffect(()=>{if(i){const w=h=>{const g=h.target,x={x:h.clientX,y:h.clientY},b=u?.contains(g)||f?.contains(g),_=!fd(x,i);b?v():_&&(v(),d())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[u,f,i,d,v]),l.jsx(Ss,{...e,ref:s})}),[sd,ad]=fn(kt,{isInside:!1}),id=Gu("TooltipContent"),Ss=a.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...c}=e,u=Nt(vt,n),d=pn(n),{onClose:f}=u;return a.useEffect(()=>(document.addEventListener(qn,f),()=>document.removeEventListener(qn,f)),[f]),a.useEffect(()=>{if(u.trigger){const p=v=>{v.target?.contains(u.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[u.trigger,f]),l.jsx(on,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:l.jsxs(vs,{"data-state":u.stateAttribute,...d,...c,ref:t,style:{...c.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:[l.jsx(id,{children:r}),l.jsx(sd,{scope:n,isInside:!0,children:l.jsx(Qu,{id:u.contentId,role:"tooltip",children:o||r})})]})})});Es.displayName=vt;var js="TooltipArrow",cd=a.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=pn(n);return ad(js,n).isInside?null:l.jsx(xs,{...o,...r,ref:t})});cd.displayName=js;function ld(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 ud(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 dd(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 fd(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 c=t[s],u=t[i],d=c.x,f=c.y,p=u.x,v=u.y;f>r!=v>r&&n<(p-d)*(r-f)/(v-f)+d&&(o=!o)}return o}function pd(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),md(t)}function md(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 hd=_s,gd=ys,vd=Cs,xd=ks,Ns=Es;const wd=hd,bd=gd,_d=vd,Rs=a.forwardRef(({className:e,sideOffset:t=4,...n},r)=>l.jsx(xd,{children:l.jsx(Ns,{ref:r,sideOffset:t,className:Pe("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})}));Rs.displayName=Ns.displayName;const yd="_anchor_rpda1_1",Cd="_tooltip_rpda1_6",Ur={anchor:yd,tooltip:Cd},Zr=e=>typeof e=="string"?document.getElementById(e):"current"in e?e.current:e,kd=(e="top")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},Yr=(e,t)=>typeof e=="number"?e:e?.[t]??0,Ls=({children:e,target:t,placement:n="top",popperClassName:r,isOpen:o,toggle:s,delay:i,autohide:c=!0})=>{const[u,d]=y.useState(!1),[f,p]=y.useState(null),v=o??u,{side:m,align:w}=y.useMemo(()=>kd(n),[n]),h=y.useCallback(()=>{const x=Zr(t);p(x?.getBoundingClientRect()??null)},[t]),g=y.useCallback(x=>{o===void 0&&d(x),s?.()},[o,s]);return y.useEffect(()=>{const x=Zr(t);if(!x)return;let b=null,_=null;const C=()=>{b&&clearTimeout(b),_&&clearTimeout(_)},k=()=>{C(),h(),b=setTimeout(()=>g(!0),Yr(i,"show"))},E=()=>{c&&(C(),_=setTimeout(()=>g(!1),Yr(i,"hide")))};return x.addEventListener("mouseenter",k),x.addEventListener("mouseleave",E),x.addEventListener("focus",k),x.addEventListener("blur",E),window.addEventListener("scroll",h,!0),window.addEventListener("resize",h),()=>{C(),x.removeEventListener("mouseenter",k),x.removeEventListener("mouseleave",E),x.removeEventListener("focus",k),x.removeEventListener("blur",E),window.removeEventListener("scroll",h,!0),window.removeEventListener("resize",h)}},[c,i,g,t,h]),f?l.jsx(wd,{delayDuration:0,children:l.jsxs(bd,{open:v,onOpenChange:g,children:[zo(l.jsx(_d,{asChild:!0,children:l.jsx("span",{className:Ur.anchor,style:{left:f.left,top:f.top,width:f.width,height:f.height}})})),l.jsx(Rs,{side:m,align:w,className:A(Ur.tooltip,r),children:e})]})}):null};var An=0;function As(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Xr()),document.body.insertAdjacentElement("beforeend",e[1]??Xr()),An++,()=>{An===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),An--}},[])}function Xr(){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 Pn="focusScope.autoFocusOnMount",Mn="focusScope.autoFocusOnUnmount",Kr={bubbles:!1,cancelable:!0},Ed="FocusScope",pr=a.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[c,u]=a.useState(null),d=ht(o),f=ht(s),p=a.useRef(null),v=ye(t,h=>u(h)),m=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let h=function(_){if(m.paused||!c)return;const C=_.target;c.contains(C)?p.current=C:Ge(p.current,{select:!0})},g=function(_){if(m.paused||!c)return;const C=_.relatedTarget;C!==null&&(c.contains(C)||Ge(p.current,{select:!0}))},x=function(_){if(document.activeElement===document.body)for(const k of _)k.removedNodes.length>0&&Ge(c)};document.addEventListener("focusin",h),document.addEventListener("focusout",g);const b=new MutationObserver(x);return c&&b.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",g),b.disconnect()}}},[r,c,m.paused]),a.useEffect(()=>{if(c){Jr.add(m);const h=document.activeElement;if(!c.contains(h)){const x=new CustomEvent(Pn,Kr);c.addEventListener(Pn,d),c.dispatchEvent(x),x.defaultPrevented||(Sd(Ad(Ps(c)),{select:!0}),document.activeElement===h&&Ge(c))}return()=>{c.removeEventListener(Pn,d),setTimeout(()=>{const x=new CustomEvent(Mn,Kr);c.addEventListener(Mn,f),c.dispatchEvent(x),x.defaultPrevented||Ge(h??document.body,{select:!0}),c.removeEventListener(Mn,f),Jr.remove(m)},0)}}},[c,d,f,m]);const w=a.useCallback(h=>{if(!n&&!r||m.paused)return;const g=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,x=document.activeElement;if(g&&x){const b=h.currentTarget,[_,C]=jd(b);_&&C?!h.shiftKey&&x===C?(h.preventDefault(),n&&Ge(_,{select:!0})):h.shiftKey&&x===_&&(h.preventDefault(),n&&Ge(C,{select:!0})):x===b&&h.preventDefault()}},[n,r,m.paused]);return l.jsx(pe.div,{tabIndex:-1,...i,ref:v,onKeyDown:w})});pr.displayName=Ed;function Sd(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ge(r,{select:t}),document.activeElement!==n)return}function jd(e){const t=Ps(e),n=Qr(t,e),r=Qr(t.reverse(),e);return[n,r]}function Ps(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 Qr(e,t){for(const n of e)if(!Nd(n,{upTo:t}))return n}function Nd(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 Rd(e){return e instanceof HTMLInputElement&&"select"in e}function Ge(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Rd(e)&&t&&e.select()}}var Jr=Ld();function Ld(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=eo(e,t),e.unshift(t)},remove(t){e=eo(e,t),e[0]?.resume()}}}function eo(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ad(e){return e.filter(t=>t.tagName!=="A")}function Pd(e){const t=Md(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,c=a.Children.toArray(s),u=c.find(Id);if(u){const d=u.props.children,f=c.map(p=>p===u?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:p);return l.jsx(t,{...i,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,f):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Md(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=Dd(o),c=Td(s,o.props);return o.type!==a.Fragment&&(c.ref=r?St(r,i):i),a.cloneElement(o,c)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Od=Symbol("radix.slottable");function Id(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Od}function Td(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]=(...c)=>{const u=s(...c);return o(...c),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Dd(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 $d=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ut=new WeakMap,Dt=new WeakMap,$t={},On=0,Ms=function(e){return e&&(e.host||Ms(e.parentNode))},Fd=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ms(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})},Bd=function(e,t,n,r){var o=Fd(t,Array.isArray(e)?e:[e]);$t[n]||($t[n]=new WeakMap);var s=$t[n],i=[],c=new Set,u=new Set(o),d=function(p){!p||c.has(p)||(c.add(p),d(p.parentNode))};o.forEach(d);var f=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(v){if(c.has(v))f(v);else try{var m=v.getAttribute(r),w=m!==null&&m!=="false",h=(ut.get(v)||0)+1,g=(s.get(v)||0)+1;ut.set(v,h),s.set(v,g),i.push(v),h===1&&w&&Dt.set(v,!0),g===1&&v.setAttribute(n,"true"),w||v.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",v,x)}})};return f(t),c.clear(),On++,function(){i.forEach(function(p){var v=ut.get(p)-1,m=s.get(p)-1;ut.set(p,v),s.set(p,m),v||(Dt.has(p)||p.removeAttribute(r),Dt.delete(p)),m||p.removeAttribute(n)}),On--,On||(ut=new WeakMap,ut=new WeakMap,Dt=new WeakMap,$t={})}},Os=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=$d(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Bd(r,o,n,"aria-hidden")):function(){return null}},Re=function(){return Re=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},Re.apply(this,arguments)};function Is(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 zd(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 Gt="right-scroll-bar-position",Ut="width-before-scroll-bar",Hd="with-scroll-bars-hidden",Wd="--removed-body-scroll-bar-size";function In(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Vd(e,t){var n=y.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 qd=typeof window<"u"?a.useLayoutEffect:a.useEffect,to=new WeakMap;function Gd(e,t){var n=Vd(null,function(r){return e.forEach(function(o){return In(o,r)})});return qd(function(){var r=to.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(c){s.has(c)||In(c,null)}),s.forEach(function(c){o.has(c)||In(c,i)})}to.set(n,e)},[e]),n}function Ud(e){return e}function Zd(e,t){t===void 0&&(t=Ud);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(c){return c!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var c=n;n=[],c.forEach(s),i=n}var u=function(){var f=i;i=[],f.forEach(s)},d=function(){return Promise.resolve().then(u)};d(),n={push:function(f){i.push(f),d()},filter:function(f){return i=i.filter(f),n}}}};return o}function Yd(e){e===void 0&&(e={});var t=Zd(null);return t.options=Re({async:!0,ssr:!1},e),t}var Ts=function(e){var t=e.sideCar,n=Is(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,Re({},n))};Ts.isSideCarExport=!0;function Xd(e,t){return e.useMedium(t),Ts}var Ds=Yd(),Tn=function(){},mn=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:Tn,onWheelCapture:Tn,onTouchMoveCapture:Tn}),o=r[0],s=r[1],i=e.forwardProps,c=e.children,u=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,v=e.sideCar,m=e.noRelative,w=e.noIsolation,h=e.inert,g=e.allowPinchZoom,x=e.as,b=x===void 0?"div":x,_=e.gapMode,C=Is(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=v,E=Gd([n,t]),j=Re(Re({},C),o);return a.createElement(a.Fragment,null,f&&a.createElement(k,{sideCar:Ds,removeScrollBar:d,shards:p,noRelative:m,noIsolation:w,inert:h,setCallbacks:s,allowPinchZoom:!!g,lockRef:n,gapMode:_}),i?a.cloneElement(a.Children.only(c),Re(Re({},j),{ref:E})):a.createElement(b,Re({},j,{className:u,ref:E}),c))});mn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};mn.classNames={fullWidth:Ut,zeroRight:Gt};var Kd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Qd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Kd();return t&&e.setAttribute("nonce",t),e}function Jd(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function e1(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var t1=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Qd())&&(Jd(t,n),e1(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},n1=function(){var e=t1();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},$s=function(){var e=n1(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},r1={left:0,top:0,right:0,gap:0},Dn=function(e){return parseInt(e||"",10)||0},o1=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[Dn(n),Dn(r),Dn(o)]},s1=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return r1;var t=o1(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])}},a1=$s(),mt="data-scroll-locked",i1=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
2
|
+
.`.concat(Hd,` {
|
|
3
3
|
overflow: hidden `).concat(r,`;
|
|
4
4
|
padding-right: `).concat(c,"px ").concat(r,`;
|
|
5
5
|
}
|
|
@@ -16,31 +16,31 @@
|
|
|
16
16
|
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.`).concat(
|
|
19
|
+
.`).concat(Gt,` {
|
|
20
20
|
right: `).concat(c,"px ").concat(r,`;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.`).concat(
|
|
23
|
+
.`).concat(Ut,` {
|
|
24
24
|
margin-right: `).concat(c,"px ").concat(r,`;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
.`).concat(
|
|
27
|
+
.`).concat(Gt," .").concat(Gt,` {
|
|
28
28
|
right: 0 `).concat(r,`;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.`).concat(
|
|
31
|
+
.`).concat(Ut," .").concat(Ut,` {
|
|
32
32
|
margin-right: 0 `).concat(r,`;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
body[`).concat(mt,`] {
|
|
36
|
-
`).concat(
|
|
36
|
+
`).concat(Wd,": ").concat(c,`px;
|
|
37
37
|
}
|
|
38
|
-
`)},
|
|
38
|
+
`)},no=function(){var e=parseInt(document.body.getAttribute(mt)||"0",10);return isFinite(e)?e:0},c1=function(){a.useEffect(function(){return document.body.setAttribute(mt,(no()+1).toString()),function(){var e=no()-1;e<=0?document.body.removeAttribute(mt):document.body.setAttribute(mt,e.toString())}},[])},l1=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;c1();var s=a.useMemo(function(){return s1(o)},[o]);return a.createElement(a1,{styles:i1(s,!t,o,n?"":"!important")})},Un=!1;if(typeof window<"u")try{var Ft=Object.defineProperty({},"passive",{get:function(){return Un=!0,!0}});window.addEventListener("test",Ft,Ft),window.removeEventListener("test",Ft,Ft)}catch{Un=!1}var dt=Un?{passive:!1}:!1,u1=function(e){return e.tagName==="TEXTAREA"},Fs=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!u1(e)&&n[t]==="visible")},d1=function(e){return Fs(e,"overflowY")},f1=function(e){return Fs(e,"overflowX")},ro=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Bs(e,r);if(o){var s=zs(e,r),i=s[1],c=s[2];if(i>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},p1=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},m1=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Bs=function(e,t){return e==="v"?d1(t):f1(t)},zs=function(e,t){return e==="v"?p1(t):m1(t)},h1=function(e,t){return e==="h"&&t==="rtl"?-1:1},g1=function(e,t,n,r,o){var s=h1(e,window.getComputedStyle(t).direction),i=s*r,c=n.target,u=t.contains(c),d=!1,f=i>0,p=0,v=0;do{if(!c)break;var m=zs(e,c),w=m[0],h=m[1],g=m[2],x=h-g-s*w;(w||x)&&Bs(e,c)&&(p+=x,v+=w);var b=c.parentNode;c=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(f&&Math.abs(p)<1||!f&&Math.abs(v)<1)&&(d=!0),d},Bt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},oo=function(e){return[e.deltaX,e.deltaY]},so=function(e){return e&&"current"in e?e.current:e},v1=function(e,t){return e[0]===t[0]&&e[1]===t[1]},x1=function(e){return`
|
|
39
39
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
40
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
-
`)},m1=0,ft=[];function h1(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(m1++)[0],s=a.useState(Os)[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=Td([e.lockRef.current],(e.shards||[]).map(to),!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 c=a.useCallback(function(g,v){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var x=Ft(g),_=n.current,b="deltaX"in g?g.deltaX:_[0]-x[0],C="deltaY"in g?g.deltaY:_[1]-x[1],E,k=g.target,j=Math.abs(b)>Math.abs(C)?"h":"v";if("touches"in g&&j==="h"&&k.type==="range")return!1;var S=window.getSelection(),O=S&&S.anchorNode,D=O?O===k||O.contains(k):!1;if(D)return!1;var B=Jr(j,k);if(!B)return!0;if(B?E=j:(E=j==="v"?"h":"v",B=Jr(j,k)),!B)return!1;if(!r.current&&"changedTouches"in g&&(b||C)&&(r.current=E),!E)return!0;var W=r.current||E;return d1(W,v,g,W==="h"?b:C)},[]),u=a.useCallback(function(g){var v=g;if(!(!ft.length||ft[ft.length-1]!==s)){var x="deltaY"in v?eo(v):Ft(v),_=t.current.filter(function(E){return E.name===v.type&&(E.target===v.target||v.target===E.shadowParent)&&f1(E.delta,x)})[0];if(_&&_.should){v.cancelable&&v.preventDefault();return}if(!_){var b=(i.current.shards||[]).map(to).filter(Boolean).filter(function(E){return E.contains(v.target)}),C=b.length>0?c(v,b[0]):!i.current.noIsolation;C&&v.cancelable&&v.preventDefault()}}},[]),d=a.useCallback(function(g,v,x,_){var b={name:g,delta:v,target:x,should:_,shadowParent:g1(x)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(C){return C!==b})},1)},[]),f=a.useCallback(function(g){n.current=Ft(g),r.current=void 0},[]),m=a.useCallback(function(g){d(g.type,eo(g),g.target,c(g,e.lockRef.current))},[]),h=a.useCallback(function(g){d(g.type,Ft(g),g.target,c(g,e.lockRef.current))},[]);a.useEffect(function(){return ft.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:h}),document.addEventListener("wheel",u,dt),document.addEventListener("touchmove",u,dt),document.addEventListener("touchstart",f,dt),function(){ft=ft.filter(function(g){return g!==s}),document.removeEventListener("wheel",u,dt),document.removeEventListener("touchmove",u,dt),document.removeEventListener("touchstart",f,dt)}},[]);var p=e.removeScrollBar,w=e.inert;return a.createElement(a.Fragment,null,w?a.createElement(s,{styles:p1(o)}):null,p?a.createElement(o1,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function g1(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const v1=qd(Ms,h1);var dr=a.forwardRef(function(e,t){return a.createElement(pn,Ne({},e,{ref:t,sideCar:v1}))});dr.classNames=pn.classNames;var mn="Popover",[$s]=nn(mn,[ln]),Nt=ln(),[w1,et]=$s(mn),Fs=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!1}=e,c=Nt(t),u=a.useRef(null),[d,f]=a.useState(!1),[m,h]=ir({prop:r,defaultProp:o??!1,onChange:s,caller:mn});return l.jsx(fs,{...c,children:l.jsx(w1,{scope:t,contentId:yt(),triggerRef:u,open:m,onOpenChange:h,onOpenToggle:a.useCallback(()=>h(p=>!p),[h]),hasCustomAnchor:d,onCustomAnchorAdd:a.useCallback(()=>f(!0),[]),onCustomAnchorRemove:a.useCallback(()=>f(!1),[]),modal:i,children:n})})};Fs.displayName=mn;var Bs="PopoverAnchor",x1=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(Bs,n),s=Nt(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:c}=o;return a.useEffect(()=>(i(),()=>c()),[i,c]),l.jsx(ar,{...s,...r,ref:t})});x1.displayName=Bs;var zs="PopoverTrigger",Hs=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(zs,n),s=Nt(n),i=ye(t,o.triggerRef),c=l.jsx(me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Us(o.open),...r,ref:i,onClick:se(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:l.jsx(ar,{asChild:!0,...s,children:c})});Hs.displayName=zs;var fr="PopoverPortal",[b1,_1]=$s(fr,{forceMount:void 0}),Vs=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=et(fr,t);return l.jsx(b1,{scope:t,forceMount:n,children:l.jsx(Je,{present:n||s.open,children:l.jsx(un,{asChild:!0,container:o,children:r})})})};Vs.displayName=fr;var wt="PopoverContent",Ws=a.forwardRef((e,t)=>{const n=_1(wt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=et(wt,e.__scopePopover);return l.jsx(Je,{present:r||s.open,children:s.modal?l.jsx(C1,{...o,ref:t}):l.jsx(k1,{...o,ref:t})})});Ws.displayName=wt;var y1=jd("PopoverContent.RemoveScroll"),C1=a.forwardRef((e,t)=>{const n=et(wt,e.__scopePopover),r=a.useRef(null),o=ye(t,r),s=a.useRef(!1);return a.useEffect(()=>{const i=r.current;if(i)return Ls(i)},[]),l.jsx(dr,{as:y1,allowPinchZoom:!0,children:l.jsx(qs,{...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 c=i.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,d=c.button===2||u;s.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:se(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),k1=a.forwardRef((e,t)=>{const n=et(wt,e.__scopePopover),r=a.useRef(!1),o=a.useRef(!1);return l.jsx(qs,{...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()}})}),qs=a.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,...m}=e,h=et(wt,n),p=Nt(n);return js(),l.jsx(ur,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsx(rn,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>h.onOpenChange(!1),children:l.jsx(ps,{"data-state":Us(h.open),role:"dialog",id:h.contentId,...p,...m,ref:t,style:{...m.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)"}})})})}),Gs="PopoverClose",E1=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=et(Gs,n);return l.jsx(me.button,{type:"button",...r,ref:t,onClick:se(e.onClick,()=>o.onOpenChange(!1))})});E1.displayName=Gs;var S1="PopoverArrow",j1=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Nt(n);return l.jsx(ms,{...o,...r,ref:t})});j1.displayName=S1;function Us(e){return e?"open":"closed"}var R1=Fs,N1=Hs,L1=Vs,Zs=Ws;const A1=R1,P1=N1,Ys=a.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>l.jsx(L1,{children:l.jsx(Zs,{ref:o,align:t,sideOffset:n,className:Pe("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})}));Ys.displayName=Zs.displayName;const M1="_anchor_xxp8d_1",O1="_popover_xxp8d_6",no={anchor:M1,popover:O1},I1=(e="bottom")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},T1=({children:e,placement:t="bottom",target:n,className:r,isOpen:o,toggle:s,onOpenChange:i})=>{const[c,u]=y.useState(!1),[d,f]=y.useState(null),m=o??c,{side:h,align:p}=y.useMemo(()=>I1(t),[t]),w=y.useCallback(()=>{f(n.current?.getBoundingClientRect()??null)},[n]),g=y.useCallback(v=>{o===void 0&&u(v),i?.(v)},[o,i]);return y.useEffect(()=>{const v=n.current;if(!v)return;const x=()=>{w(),o===void 0?u(_=>{const b=!_;return i?.(b),b}):i?.(!o),s?.()};return v.addEventListener("click",x),window.addEventListener("scroll",w,!0),window.addEventListener("resize",w),()=>{v.removeEventListener("click",x),window.removeEventListener("scroll",w,!0),window.removeEventListener("resize",w)}},[o,i,n,s,w]),l.jsxs(A1,{open:m,onOpenChange:g,children:[Do(l.jsx(P1,{asChild:!0,children:l.jsx("span",{className:no.anchor,style:d?{left:d.left,top:d.top,width:d.width,height:d.height}:{left:0,top:0,width:0,height:0},"aria-hidden":!0})})),l.jsx(Ys,{side:h,align:p,className:P(no.popover,r),children:e})]})},D1="_emptyComponent_1wdgn_1",$1="_svgWrapper_1wdgn_11",F1="_title_1wdgn_23",B1="_subtitle_1wdgn_28",Bt={emptyComponent:D1,svgWrapper:$1,title:F1,subtitle:B1},Lt=({svg:e=l.jsx(mo,{}),title:t="Нет данных для отображения",subtitle:n,content:r,className:o})=>l.jsxs("div",{className:P(Bt.emptyComponent,o),children:[l.jsx("div",{className:Bt.svgWrapper,children:e}),t&&l.jsx("span",{className:Bt.title,children:t}),n&&l.jsx("span",{className:Bt.subtitle,children:n}),r&&r]}),z1="_container_xa163_1",H1="_header_xa163_6",V1="_header_icon_xa163_14",W1="_iconTransition_xa163_20",q1="_rotateIcon_xa163_23",G1="_content_xa163_26",U1="_padding_xa163_31",je={container:z1,header:H1,header_icon:V1,iconTransition:W1,rotateIcon:q1,content:G1,padding:U1},Xs=({header:e,className:t,content:n,onToggle:r,isOpen:o,defaultOpen:s=!1,id:i,headerClassName:c,contentClassName:u,iconClassName:d})=>{const[f,m]=y.useState(s),h=y.useRef(!1),p=typeof o=="boolean"?o:f,w=y.useRef(null),g=typeof e=="string"?l.jsx("div",{className:je.header_text,children:l.jsx("span",{children:e})}):e,v=typeof n=="string"?l.jsx("span",{className:je.content_text,children:n}):n;y.useEffect(()=>{const _=w.current;if(_){if(!h.current){_.style.height=s?"auto":"0px",h.current=!0;return}if(p){_.style.height=`${_.scrollHeight}px`;const b=()=>{_.style.height="auto"};_.addEventListener("transitionend",b,{once:!0})}else _.style.height=`${_.scrollHeight}px`,requestAnimationFrame(()=>{_.style.height="0px"})}},[p,s]);const x=y.useCallback(_=>{_.stopPropagation(),r?r():m(b=>!b)},[r]);return l.jsxs("div",{className:P(je.container,t),id:i,children:[l.jsxs("div",{className:P(je.header,c),children:[g,l.jsx("div",{className:P(je.header_icon,d),onClick:x,children:l.jsx(tn,{className:P(je.iconArrow,je.iconTransition,{[je.rotateIcon]:p})})})]}),l.jsx("div",{className:P(je.content,u,{[je.padding]:p}),ref:w,children:v})]})},Z1="_collapsableBlock_86gg6_1",Y1="_header_86gg6_6",X1="_headerWithInfoTooltip_86gg6_12",K1="_infoIcon_86gg6_20",zt={collapsableBlock:Z1,header:Y1,headerWithInfoTooltip:X1,infoIcon:K1},Q1=a.memo(e=>{const{id:t,header:n,content:r,className:o,infoTooltipContent:s,...i}=e,[c,u]=y.useState(!1),d=()=>u(!c);return l.jsx(Xs,{id:t,className:P(zt.collapsableBlock,o),header:s?l.jsxs("div",{className:zt.headerWithInfoTooltip,children:[l.jsx("span",{children:n}),l.jsx(po,{className:zt.infoIcon,id:"CollapsableBlockNewInfoTooltipIcon"}),l.jsx(Ss,{autohide:!1,delay:{show:0,hide:500},isOpen:c,placement:"left-start",target:"CollapsableBlockNewInfoTooltipIcon",toggle:d,children:s})]}):n,content:r,headerClassName:zt.header,...i})});var J1=typeof document<"u",ef=function(){},qn=J1?y.useLayoutEffect:ef;const tf={...a},nf=tf.useInsertionEffect,rf=nf||(e=>e());function of(e){const t=a.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return rf(()=>{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 sf={...a};let ro=!1,af=0;const oo=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+af++;function cf(){const[e,t]=a.useState(()=>ro?oo():void 0);return qn(()=>{e==null&&t(oo())},[]),a.useEffect(()=>{ro=!0},[]),e}const lf=sf.useId,uf=lf||cf;let Gn;process.env.NODE_ENV!=="production"&&(Gn=new Set);function df(){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=Gn)!=null&&e.has(o))){var s;(s=Gn)==null||s.add(o),console.error(o)}}function ff(){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 pf=a.createContext(null),mf=a.createContext(null),hf=()=>{var e;return((e=a.useContext(pf))==null?void 0:e.id)||null},gf=()=>a.useContext(mf);function vf(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=uf(),s=a.useRef({}),[i]=a.useState(()=>ff()),c=hf()!=null;if(process.env.NODE_ENV!=="production"){const p=r.reference;p&&!pe(p)&&df("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[u,d]=a.useState(r.reference),f=of((p,w,g)=>{s.current.openEvent=p?w:void 0,i.emit("openchange",{open:p,event:w,reason:g,nested:c}),n?.(p,w,g)}),m=a.useMemo(()=>({setPositionReference:d}),[]),h=a.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return a.useMemo(()=>({dataRef:s,open:t,onOpenChange:f,elements:h,events:i,floatingId:o,refs:m}),[t,f,h,i,o,m])}function wf(e){e===void 0&&(e={});const{nodeId:t}=e,n=vf({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[s,i]=a.useState(null),[c,u]=a.useState(null),f=o?.domReference||s,m=a.useRef(null),h=gf();qn(()=>{f&&(m.current=f)},[f]);const p=Qo({...e,elements:{...o,...c&&{reference:c}}}),w=a.useCallback(b=>{const C=pe(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),getClientRects:()=>b.getClientRects(),contextElement:b}:b;u(C),p.refs.setReference(C)},[p.refs]),g=a.useCallback(b=>{(pe(b)||b===null)&&(m.current=b,i(b)),(pe(p.refs.reference.current)||p.refs.reference.current===null||b!==null&&!pe(b))&&p.refs.setReference(b)},[p.refs]),v=a.useMemo(()=>({...p.refs,setReference:g,setPositionReference:w,domReference:m}),[p.refs,g,w]),x=a.useMemo(()=>({...p.elements,domReference:f}),[p.elements,f]),_=a.useMemo(()=>({...p,...r,refs:v,elements:x,nodeId:t}),[p,v,x,t,r]);return qn(()=>{r.dataRef.current.floatingContext=_;const b=h?.nodesRef.current.find(C=>C.id===t);b&&(b.context=_)}),a.useMemo(()=>({...p,context:_,refs:v,elements:x}),[p,v,x,_])}const xf="_errorCaption_17ftc_1",bf="_fullWidth_17ftc_27",so={errorCaption:xf,fullWidth:bf},hn=({children:e,isFullWidth:t})=>l.jsx("p",{className:P(so.errorCaption,{[so.fullWidth]:t}),children:e});var _f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],yf=_f.reduce((e,t)=>{const n=vo(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...c}=o,u=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Cf="Label",Ks=a.forwardRef((e,t)=>l.jsx(yf.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Ks.displayName=Cf;var Qs=Ks;const kf=bo("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Js=a.forwardRef(({className:e,...t},n)=>l.jsx(Qs,{ref:n,className:Pe(kf(),e),...t}));Js.displayName=Qs.displayName;const Ef="_label_1xouh_1",Sf="_label__text_1xouh_11",ao={label:Ef,label__text:Sf},gn=({htmlFor:e,children:t,className:n})=>l.jsx(Js,{htmlFor:e,className:P(ao.label,n),children:typeof t=="string"?l.jsx("div",{className:ao.label__text,children:t}):t}),jf="_wrapper_19g1g_1",Rf="_wrapper_small_19g1g_14",Nf="_iconCross_19g1g_17",Lf="_iconCross_small_19g1g_25",Ht={wrapper:jf,wrapper_small:Rf,iconCross:Nf,iconCross_small:Lf},ea=y.memo(({className:e,children:t,onClick:n,isSmall:r})=>l.jsxs("div",{className:P(Ht.wrapper,e,r&&Ht.wrapper_small),children:[l.jsx("span",{children:t}),n&&l.jsx(Ze,{className:P(Ht.iconCross,{[Ht.iconCross_small]:r}),onClick:o=>{o.stopPropagation(),n()}})]})),Af="_wrapper_94m4o_1",Pf="_container_94m4o_5",Mf="_input_94m4o_5",Of="_error_94m4o_17",If="_disabled_94m4o_20",Tf="_tagContainer_94m4o_33",Df="_selectedOptionContainer_94m4o_38",$f="_selectedOption_94m4o_38",Ff="_placeHolder_94m4o_49",Bf="_iconContainer_94m4o_53",zf="_deleteIcon_94m4o_59",Hf="_divider_94m4o_79",Vf="_arrowIcon_94m4o_88",Wf="_arrowIconExpanded_94m4o_103",qf="_dropdown_94m4o_107",Gf="_dropdown_visible_94m4o_118",Uf="_withSearch_94m4o_133",Zf="_search_94m4o_136",Yf="_search__icon_94m4o_149",Xf="_search__input_94m4o_154",Kf="_option_94m4o_184",Qf="_option_active_94m4o_192",Jf="_option_active_next_active_94m4o_198",ep="_option_active_prev_active_94m4o_202",tp="_tableTemplate_94m4o_229",np="_tableContainer_94m4o_236",rp="_table_94m4o_229",op="_activeRow_94m4o_278",sp="_checkboxCell_94m4o_285",ap="_checkbox_94m4o_285",ip="_footerTotal_94m4o_300",U={wrapper:Af,container:Pf,input:Mf,error:Of,disabled:If,tagContainer:Tf,selectedOptionContainer:Df,selectedOption:$f,placeHolder:Ff,iconContainer:Bf,deleteIcon:zf,divider:Hf,arrowIcon:Vf,arrowIconExpanded:Wf,dropdown:qf,dropdown_visible:Gf,withSearch:Uf,search:Zf,search__icon:Yf,search__input:Xf,option:Kf,option_active:Qf,option_active_next_active:Jf,option_active_prev_active:ep,tableTemplate:tp,tableContainer:np,table:rp,activeRow:op,checkboxCell:sp,checkbox:ap,footerTotal:ip},cp=6,lp=({value:e,selectedOptionRender:t,tagRender:n,onDelete:r})=>e?Array.isArray(e)?l.jsx("div",{className:U.tagContainer,children:e.map((o,s)=>n?l.jsx(y.Fragment,{children:n(o)},s):l.jsx(ea,{isSmall:!0,...r&&{onClick:()=>r?.(o)},children:o.label},s))}):l.jsx("span",{className:U.selectedOption,children:t?t(e):e.label}):null,ta=({onSearch:e,searchClassName:t,searchValue:n,isLoading:r,placeholder:o})=>l.jsxs("div",{className:P(U.search,t),children:[l.jsx(en,{className:U.search__icon}),l.jsx("input",{className:U.search__input,value:n,onChange:s=>e?.(s.target.value),placeholder:o}),r&&l.jsx(st,{size:"extraSmall",className:U.search__spinner})]}),up=({value:e,options:t,optionClassName:n,optionRender:r,onChange:o,onSearch:s,searchClassName:i,isLoading:c,searchValue:u,searchPlaceholder:d})=>{const f=m=>Array.isArray(e)?e.some(h=>h.value===m.value):e?.value===m.value;return l.jsxs(l.Fragment,{children:[s&&l.jsx(ta,{onSearch:s,searchValue:u,searchClassName:i,isLoading:c,placeholder:d}),t&&t.length?l.jsx("ul",{className:P({[U.withSearch]:s}),children:t.map((m,h)=>{const p=f(m),w=t[h-1]&&f(t[h-1]),g=t[h+1]&&f(t[h+1]);return l.jsx("li",{className:P(U.option,{[U.option_active]:p,[U.option_active_prev_active]:w,[U.option_active_next_active]:g},n),onClick:()=>o(m),children:r?r(m):m.label},`${m.value}${h}`)})}):!c&&l.jsx(Lt,{})]})},dp=({value:e,options:t,onChange:n,onDelete:r,onSearch:o,searchClassName:s,isLoading:i,searchValue:c,searchPlaceholder:u,columns:d,total:f,mode:m})=>{const h=v=>Array.isArray(e)?e.some(x=>x.value===v.value):e?.value===v.value,p=(v,x)=>{if(m==="multiple"&&x&&r){r(v);return}n(v)},w=f??t?.length??0,g=d??[];return l.jsxs("div",{className:U.tableTemplate,children:[o&&l.jsx(ta,{onSearch:o,searchValue:c,searchClassName:s,isLoading:i,placeholder:u}),l.jsx("div",{className:U.tableContainer,children:t&&t.length?l.jsxs("table",{className:U.table,children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{className:U.checkboxCell,"aria-label":""}),g.map(v=>l.jsx("th",{className:v.className,children:v.title},v.key))]})}),l.jsx("tbody",{children:t.map((v,x)=>{const _=h(v);return l.jsxs("tr",{className:P({[U.activeRow]:_}),onClick:()=>p(v,_),children:[l.jsx("td",{className:U.checkboxCell,children:l.jsx("input",{type:"checkbox",className:U.checkbox,checked:_,readOnly:!0,tabIndex:-1,onClick:b=>b.stopPropagation(),onChange:()=>p(v,_)})}),g.map(b=>l.jsx("td",{className:b.className,children:b.render(v)},b.key))]},`${String(v.value)}${x}`)})})]}):!i&&l.jsx(Lt,{})}),l.jsxs("div",{className:U.footerTotal,children:["Всего ",w]})]})},fp=({options:e,value:t,mode:n,placeholder:r,onChange:o,dropdownRender:s,optionRender:i,selectedOptionRender:c,dropdownIcon:u,tagRender:d,dropDownClassName:f,optionClassName:m,inputClassName:h,deleteIconClassName:p,onDelete:w,onClear:g,label:v,onSearch:x,searchClassName:_,searchPlaceholder:b,isLoading:C,disabled:E,onClose:k,portalTarget:j,error:S,fixedHeight:O=!0,template:D="list",columns:B,total:W})=>{const[z,H]=y.useState(!1),[Y,$]=y.useState(!1),V=y.useRef(null),A=y.useRef(null),X=y.useRef(null),[R,ue]=y.useState(""),de=j??(Y&&typeof document<"u"?document.body:void 0);y.useEffect(()=>{$(!0)},[]);const ne=y.useCallback(G=>{ue(G),x?.(G)},[x]);y.useEffect(()=>{if(!z)return;const G=re=>{V.current&&!V.current.contains(re.target)&&(!A.current||!A.current.contains(re.target))&&(ne(""),H(!1),k?.())};return document.addEventListener("mousedown",G,!0),()=>{document.removeEventListener("mousedown",G,!0)}},[ne,z,k]);const{refs:ae,floatingStyles:q,update:J}=wf({strategy:"absolute",placement:"bottom-start",open:z,whileElementsMounted:(G,re,Oe)=>Xo(G,re,Oe,{ancestorScroll:!1,elementResize:!0,ancestorResize:!0,layoutShift:!0}),middleware:[Jo(cp),es({fallbackPlacements:["top-start","bottom-start"]}),ts({apply({rects:G,elements:re}){const Oe=`${Math.round(G.reference.width)}px`;re.floating.style.width!==Oe&&(re.floating.style.width=Oe)}})]}),fe=y.useCallback(G=>{X.current=G,ae.setReference(G)},[ae]),T=y.useCallback(G=>{A.current=G,ae.setFloating(G)},[ae]);y.useEffect(()=>{z&&J()},[z,J]);const Z=y.useCallback(G=>{o?.(G),ne(""),k?.(),n==="single"&&H(!1)},[ne,n,o,k]),we=y.useCallback(()=>{const G=l.jsx("div",{ref:T,className:P(U.dropdown,{[U.dropdown_visible]:z},f),style:q,onClick:re=>re.stopPropagation(),children:l.jsx("div",{className:U.dropdownContent,style:{height:O?"300px":"none"},children:(()=>{const re=D==="table"?l.jsx(dp,{value:t,options:e,onChange:Z,onDelete:w,...x&&{onSearch:ne},searchClassName:_,isLoading:C,searchValue:R,searchPlaceholder:b,columns:B,total:W,mode:n}):l.jsx(up,{value:t,options:e,optionClassName:m,optionRender:i,onChange:Z,...x&&{onSearch:ne},searchClassName:_,isLoading:C,searchValue:R,searchPlaceholder:b});return s?s(re):re})()})});return de?Et.createPortal(G,de):G},[f,s,O,q,Z,ne,C,z,x,m,i,e,de,D,B,W,n,w,_,b,R,T,t]),ke=y.useMemo(()=>Y?we():null,[Y,we]),Ce=Array.isArray(t)?!!t.length:!!t;return l.jsxs("div",{className:U.wrapper,children:[v&&l.jsx(gn,{htmlFor:"CustomSelectInput",children:v}),l.jsxs("div",{className:U.container,ref:V,children:[l.jsxs("div",{role:"button",id:"CustomSelectInput",tabIndex:0,ref:fe,className:P(U.input,{[U.input_fixedHeight]:n==="single",[U.disabled]:E},S&&U.error,h),onClick:()=>{t&&(ne(""),k?.()),H(G=>!G)},children:[l.jsx("div",{className:U.selectedOptionContainer,children:Ce?l.jsx(lp,{value:t,selectedOptionRender:c,tagRender:d,onDelete:w}):l.jsx("span",{className:U.placeHolder,children:r})}),l.jsxs("div",{className:U.iconContainer,children:[g&&Ce&&l.jsxs(l.Fragment,{children:[l.jsx(le,{variant:"text",className:P(U.deleteIcon,p),onClick:G=>{G.stopPropagation(),g()},children:l.jsx("span",{children:l.jsx(Ze,{})})}),l.jsx("div",{className:U.divider,children:l.jsx("div",{})})]}),u||l.jsx(le,{variant:"text",className:P(U.arrowIcon,{[U.arrowIconExpanded]:z}),children:l.jsx(tn,{})})]})]}),ke]}),S&&l.jsx(hn,{children:S})]})};function pp(e){const t=mp(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,c=a.Children.toArray(s),u=c.find(gp);if(u){const d=u.props.children,f=c.map(m=>m===u?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:m);return l.jsx(t,{...i,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,f):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function mp(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=wp(o),c=vp(s,o.props);return o.type!==a.Fragment&&(c.ref=r?St(r,i):i),a.cloneElement(o,c)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hp=Symbol("radix.slottable");function gp(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hp}function vp(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]=(...c)=>{const u=s(...c);return o(...c),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function wp(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 vn="Dialog",[na]=nn(vn),[xp,Se]=na(vn),ra=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,c=a.useRef(null),u=a.useRef(null),[d,f]=ir({prop:r,defaultProp:o??!1,onChange:s,caller:vn});return l.jsx(xp,{scope:t,triggerRef:c,contentRef:u,contentId:yt(),titleId:yt(),descriptionId:yt(),open:d,onOpenChange:f,onOpenToggle:a.useCallback(()=>f(m=>!m),[f]),modal:i,children:n})};ra.displayName=vn;var oa="DialogTrigger",bp=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Se(oa,n),s=ye(t,o.triggerRef);return l.jsx(me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":hr(o.open),...r,ref:s,onClick:se(e.onClick,o.onOpenToggle)})});bp.displayName=oa;var pr="DialogPortal",[_p,sa]=na(pr,{forceMount:void 0}),aa=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Se(pr,t);return l.jsx(_p,{scope:t,forceMount:n,children:a.Children.map(r,i=>l.jsx(Je,{present:n||s.open,children:l.jsx(un,{asChild:!0,container:o,children:i})}))})};aa.displayName=pr;var Jt="DialogOverlay",ia=a.forwardRef((e,t)=>{const n=sa(Jt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Se(Jt,e.__scopeDialog);return s.modal?l.jsx(Je,{present:r||s.open,children:l.jsx(Cp,{...o,ref:t})}):null});ia.displayName=Jt;var yp=pp("DialogOverlay.RemoveScroll"),Cp=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Se(Jt,n);return l.jsx(dr,{as:yp,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsx(me.div,{"data-state":hr(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),it="DialogContent",ca=a.forwardRef((e,t)=>{const n=sa(it,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Se(it,e.__scopeDialog);return l.jsx(Je,{present:r||s.open,children:s.modal?l.jsx(kp,{...o,ref:t}):l.jsx(Ep,{...o,ref:t})})});ca.displayName=it;var kp=a.forwardRef((e,t)=>{const n=Se(it,e.__scopeDialog),r=a.useRef(null),o=ye(t,n.contentRef,r);return a.useEffect(()=>{const s=r.current;if(s)return Ls(s)},[]),l.jsx(la,{...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,c=i.button===0&&i.ctrlKey===!0;(i.button===2||c)&&s.preventDefault()}),onFocusOutside:se(e.onFocusOutside,s=>s.preventDefault())})}),Ep=a.forwardRef((e,t)=>{const n=Se(it,e.__scopeDialog),r=a.useRef(!1),o=a.useRef(!1);return l.jsx(la,{...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()}})}),la=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,c=Se(it,n),u=a.useRef(null),d=ye(t,u);return js(),l.jsxs(l.Fragment,{children:[l.jsx(ur,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsx(rn,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":hr(c.open),...i,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(jp,{titleId:c.titleId}),l.jsx(Np,{contentRef:u,descriptionId:c.descriptionId})]})]})}),mr="DialogTitle",ua=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Se(mr,n);return l.jsx(me.h2,{id:o.titleId,...r,ref:t})});ua.displayName=mr;var da="DialogDescription",fa=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Se(da,n);return l.jsx(me.p,{id:o.descriptionId,...r,ref:t})});fa.displayName=da;var pa="DialogClose",Sp=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Se(pa,n);return l.jsx(me.button,{type:"button",...r,ref:t,onClick:se(e.onClick,()=>o.onOpenChange(!1))})});Sp.displayName=pa;function hr(e){return e?"open":"closed"}var ma="DialogTitleWarning",[J0,ha]=cl(ma,{contentName:it,titleName:mr,docsSlug:"dialog"}),jp=({titleId:e})=>{const t=ha(ma),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
41
|
+
`)},w1=0,ft=[];function b1(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(w1++)[0],s=a.useState($s)[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 h=zd([e.lockRef.current],(e.shards||[]).map(so),!0).filter(Boolean);return h.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=a.useCallback(function(h,g){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var x=Bt(h),b=n.current,_="deltaX"in h?h.deltaX:b[0]-x[0],C="deltaY"in h?h.deltaY:b[1]-x[1],k,E=h.target,j=Math.abs(_)>Math.abs(C)?"h":"v";if("touches"in h&&j==="h"&&E.type==="range")return!1;var S=window.getSelection(),P=S&&S.anchorNode,D=P?P===E||P.contains(E):!1;if(D)return!1;var $=ro(j,E);if(!$)return!0;if($?k=j:(k=j==="v"?"h":"v",$=ro(j,E)),!$)return!1;if(!r.current&&"changedTouches"in h&&(_||C)&&(r.current=k),!k)return!0;var q=r.current||k;return g1(q,g,h,q==="h"?_:C)},[]),u=a.useCallback(function(h){var g=h;if(!(!ft.length||ft[ft.length-1]!==s)){var x="deltaY"in g?oo(g):Bt(g),b=t.current.filter(function(k){return k.name===g.type&&(k.target===g.target||g.target===k.shadowParent)&&v1(k.delta,x)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var _=(i.current.shards||[]).map(so).filter(Boolean).filter(function(k){return k.contains(g.target)}),C=_.length>0?c(g,_[0]):!i.current.noIsolation;C&&g.cancelable&&g.preventDefault()}}},[]),d=a.useCallback(function(h,g,x,b){var _={name:h,delta:g,target:x,should:b,shadowParent:_1(x)};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(C){return C!==_})},1)},[]),f=a.useCallback(function(h){n.current=Bt(h),r.current=void 0},[]),p=a.useCallback(function(h){d(h.type,oo(h),h.target,c(h,e.lockRef.current))},[]),v=a.useCallback(function(h){d(h.type,Bt(h),h.target,c(h,e.lockRef.current))},[]);a.useEffect(function(){return ft.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",u,dt),document.addEventListener("touchmove",u,dt),document.addEventListener("touchstart",f,dt),function(){ft=ft.filter(function(h){return h!==s}),document.removeEventListener("wheel",u,dt),document.removeEventListener("touchmove",u,dt),document.removeEventListener("touchstart",f,dt)}},[]);var m=e.removeScrollBar,w=e.inert;return a.createElement(a.Fragment,null,w?a.createElement(s,{styles:x1(o)}):null,m?a.createElement(l1,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function _1(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const y1=Xd(Ds,b1);var mr=a.forwardRef(function(e,t){return a.createElement(mn,Re({},e,{ref:t,sideCar:y1}))});mr.classNames=mn.classNames;var hn="Popover",[Hs]=rn(hn,[un]),Rt=un(),[C1,Je]=Hs(hn),Ws=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!1}=e,c=Rt(t),u=a.useRef(null),[d,f]=a.useState(!1),[p,v]=ur({prop:r,defaultProp:o??!1,onChange:s,caller:hn});return l.jsx(gs,{...c,children:l.jsx(C1,{scope:t,contentId:yt(),triggerRef:u,open:p,onOpenChange:v,onOpenToggle:a.useCallback(()=>v(m=>!m),[v]),hasCustomAnchor:d,onCustomAnchorAdd:a.useCallback(()=>f(!0),[]),onCustomAnchorRemove:a.useCallback(()=>f(!1),[]),modal:i,children:n})})};Ws.displayName=hn;var Vs="PopoverAnchor",k1=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Je(Vs,n),s=Rt(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:c}=o;return a.useEffect(()=>(i(),()=>c()),[i,c]),l.jsx(lr,{...s,...r,ref:t})});k1.displayName=Vs;var qs="PopoverTrigger",Gs=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Je(qs,n),s=Rt(n),i=ye(t,o.triggerRef),c=l.jsx(pe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ks(o.open),...r,ref:i,onClick:ie(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:l.jsx(lr,{asChild:!0,...s,children:c})});Gs.displayName=qs;var hr="PopoverPortal",[E1,S1]=Hs(hr,{forceMount:void 0}),Us=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=Je(hr,t);return l.jsx(E1,{scope:t,forceMount:n,children:l.jsx(Qe,{present:n||s.open,children:l.jsx(dn,{asChild:!0,container:o,children:r})})})};Us.displayName=hr;var xt="PopoverContent",Zs=a.forwardRef((e,t)=>{const n=S1(xt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=Je(xt,e.__scopePopover);return l.jsx(Qe,{present:r||s.open,children:s.modal?l.jsx(N1,{...o,ref:t}):l.jsx(R1,{...o,ref:t})})});Zs.displayName=xt;var j1=Pd("PopoverContent.RemoveScroll"),N1=a.forwardRef((e,t)=>{const n=Je(xt,e.__scopePopover),r=a.useRef(null),o=ye(t,r),s=a.useRef(!1);return a.useEffect(()=>{const i=r.current;if(i)return Os(i)},[]),l.jsx(mr,{as:j1,allowPinchZoom:!0,children:l.jsx(Ys,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ie(e.onCloseAutoFocus,i=>{i.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:ie(e.onPointerDownOutside,i=>{const c=i.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,d=c.button===2||u;s.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:ie(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),R1=a.forwardRef((e,t)=>{const n=Je(xt,e.__scopePopover),r=a.useRef(!1),o=a.useRef(!1);return l.jsx(Ys,{...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()}})}),Ys=a.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,...p}=e,v=Je(xt,n),m=Rt(n);return As(),l.jsx(pr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsx(on,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>v.onOpenChange(!1),children:l.jsx(vs,{"data-state":Ks(v.open),role:"dialog",id:v.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)"}})})})}),Xs="PopoverClose",L1=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Je(Xs,n);return l.jsx(pe.button,{type:"button",...r,ref:t,onClick:ie(e.onClick,()=>o.onOpenChange(!1))})});L1.displayName=Xs;var A1="PopoverArrow",P1=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Rt(n);return l.jsx(xs,{...o,...r,ref:t})});P1.displayName=A1;function Ks(e){return e?"open":"closed"}var M1=Ws,O1=Gs,I1=Us,Qs=Zs;const ao=M1,io=O1,Js=a.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>l.jsx(I1,{children:l.jsx(Qs,{ref:o,align:t,sideOffset:n,className:Pe("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})}));Js.displayName=Qs.displayName;const T1="_anchor_1qyyn_1",D1="_triggerWrap_1qyyn_6",$1="_popover_1qyyn_11",$n={anchor:T1,triggerWrap:D1,popover:$1},F1=(e="bottom")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},B1=e=>{const t="trigger"in e&&e.trigger!==void 0,{children:n,placement:r="bottom",className:o,isOpen:s,toggle:i,onOpenChange:c}=e,[u,d]=y.useState(!1),[f,p]=y.useState(null),v=s??u,{side:m,align:w}=y.useMemo(()=>F1(r),[r]),h=y.useCallback(()=>{if(t)return;const b=e.target?.current;p(b?.getBoundingClientRect()??null)},[e.target,t]),g=y.useCallback(b=>{s===void 0&&d(b),c?.(b)},[s,c]);y.useEffect(()=>{if(t)return;const b=e.target?.current;if(!b)return;const _=()=>{h(),s===void 0?d(C=>{const k=!C;return c?.(k),k}):c?.(!s),i?.()};return b.addEventListener("click",_),window.addEventListener("scroll",h,!0),window.addEventListener("resize",h),()=>{b.removeEventListener("click",_),window.removeEventListener("scroll",h,!0),window.removeEventListener("resize",h)}},[s,c,e.target,i,t,h]);const x=l.jsx(Js,{side:m,align:w,className:A($n.popover,o),children:n});return t?l.jsxs(ao,{open:v,onOpenChange:g,children:[l.jsx(io,{asChild:!0,children:l.jsx("span",{className:$n.triggerWrap,children:e.trigger})}),x]}):l.jsxs(ao,{open:v,onOpenChange:g,children:[zo(l.jsx(io,{asChild:!0,children:l.jsx("span",{className:$n.anchor,style:f?{left:f.left,top:f.top,width:f.width,height:f.height}:{left:0,top:0,width:0,height:0},"aria-hidden":!0})})),x]})},z1="_emptyComponent_1wdgn_1",H1="_svgWrapper_1wdgn_11",W1="_title_1wdgn_23",V1="_subtitle_1wdgn_28",zt={emptyComponent:z1,svgWrapper:H1,title:W1,subtitle:V1},Lt=({svg:e=l.jsx(xo,{}),title:t="Нет данных для отображения",description:n,subtitle:r,content:o,className:s})=>{const i=n??r;return l.jsxs("div",{className:A(zt.emptyComponent,s),children:[l.jsx("div",{className:zt.svgWrapper,children:e}),t&&l.jsx("span",{className:zt.title,children:t}),i&&l.jsx("span",{className:zt.subtitle,children:i}),o&&o]})},q1="_container_xa163_1",G1="_header_xa163_6",U1="_header_icon_xa163_14",Z1="_iconTransition_xa163_20",Y1="_rotateIcon_xa163_23",X1="_content_xa163_26",K1="_padding_xa163_31",je={container:q1,header:G1,header_icon:U1,iconTransition:Z1,rotateIcon:Y1,content:X1,padding:K1},ea=({header:e,className:t,content:n,onToggle:r,isOpen:o,defaultOpen:s=!1,id:i,headerClassName:c,contentClassName:u,iconClassName:d})=>{const[f,p]=y.useState(s),v=y.useRef(!1),m=typeof o=="boolean"?o:f,w=y.useRef(null),h=typeof e=="string"?l.jsx("div",{className:je.header_text,children:l.jsx("span",{children:e})}):e,g=typeof n=="string"?l.jsx("span",{className:je.content_text,children:n}):n;y.useEffect(()=>{const b=w.current;if(b){if(!v.current){b.style.height=s?"auto":"0px",v.current=!0;return}if(m){b.style.height=`${b.scrollHeight}px`;const _=()=>{b.style.height="auto"};b.addEventListener("transitionend",_,{once:!0})}else b.style.height=`${b.scrollHeight}px`,requestAnimationFrame(()=>{b.style.height="0px"})}},[m,s]);const x=y.useCallback(b=>{b.stopPropagation(),r?r():p(_=>!_)},[r]);return l.jsxs("div",{className:A(je.container,t),id:i,children:[l.jsxs("div",{className:A(je.header,c),children:[h,l.jsx("div",{className:A(je.header_icon,d),onClick:x,children:l.jsx(nn,{className:A(je.iconArrow,je.iconTransition,{[je.rotateIcon]:m})})})]}),l.jsx("div",{className:A(je.content,u,{[je.padding]:m}),ref:w,children:g})]})},Q1="_collapsableBlock_86gg6_1",J1="_header_86gg6_6",ef="_headerWithInfoTooltip_86gg6_12",tf="_infoIcon_86gg6_20",Ht={collapsableBlock:Q1,header:J1,headerWithInfoTooltip:ef,infoIcon:tf},nf=a.memo(e=>{const{id:t,header:n,content:r,className:o,infoTooltipContent:s,...i}=e,[c,u]=y.useState(!1),d=()=>u(!c);return l.jsx(ea,{id:t,className:A(Ht.collapsableBlock,o),header:s?l.jsxs("div",{className:Ht.headerWithInfoTooltip,children:[l.jsx("span",{children:n}),l.jsx(vo,{className:Ht.infoIcon,id:"CollapsableBlockNewInfoTooltipIcon"}),l.jsx(Ls,{autohide:!1,delay:{show:0,hide:500},isOpen:c,placement:"left-start",target:"CollapsableBlockNewInfoTooltipIcon",toggle:d,children:s})]}):n,content:r,headerClassName:Ht.header,...i})});var rf=typeof document<"u",of=function(){},Zn=rf?y.useLayoutEffect:of;const sf={...a},af=sf.useInsertionEffect,cf=af||(e=>e());function lf(e){const t=a.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return cf(()=>{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 uf={...a};let co=!1,df=0;const lo=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+df++;function ff(){const[e,t]=a.useState(()=>co?lo():void 0);return Zn(()=>{e==null&&t(lo())},[]),a.useEffect(()=>{co=!0},[]),e}const pf=uf.useId,mf=pf||ff;let Yn;process.env.NODE_ENV!=="production"&&(Yn=new Set);function hf(){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=Yn)!=null&&e.has(o))){var s;(s=Yn)==null||s.add(o),console.error(o)}}function gf(){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 vf=a.createContext(null),xf=a.createContext(null),wf=()=>{var e;return((e=a.useContext(vf))==null?void 0:e.id)||null},bf=()=>a.useContext(xf);function _f(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=mf(),s=a.useRef({}),[i]=a.useState(()=>gf()),c=wf()!=null;if(process.env.NODE_ENV!=="production"){const m=r.reference;m&&!fe(m)&&hf("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[u,d]=a.useState(r.reference),f=lf((m,w,h)=>{s.current.openEvent=m?w:void 0,i.emit("openchange",{open:m,event:w,reason:h,nested:c}),n?.(m,w,h)}),p=a.useMemo(()=>({setPositionReference:d}),[]),v=a.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return a.useMemo(()=>({dataRef:s,open:t,onOpenChange:f,elements:v,events:i,floatingId:o,refs:p}),[t,f,v,i,o,p])}function yf(e){e===void 0&&(e={});const{nodeId:t}=e,n=_f({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[s,i]=a.useState(null),[c,u]=a.useState(null),f=o?.domReference||s,p=a.useRef(null),v=bf();Zn(()=>{f&&(p.current=f)},[f]);const m=ns({...e,elements:{...o,...c&&{reference:c}}}),w=a.useCallback(_=>{const C=fe(_)?{getBoundingClientRect:()=>_.getBoundingClientRect(),getClientRects:()=>_.getClientRects(),contextElement:_}:_;u(C),m.refs.setReference(C)},[m.refs]),h=a.useCallback(_=>{(fe(_)||_===null)&&(p.current=_,i(_)),(fe(m.refs.reference.current)||m.refs.reference.current===null||_!==null&&!fe(_))&&m.refs.setReference(_)},[m.refs]),g=a.useMemo(()=>({...m.refs,setReference:h,setPositionReference:w,domReference:p}),[m.refs,h,w]),x=a.useMemo(()=>({...m.elements,domReference:f}),[m.elements,f]),b=a.useMemo(()=>({...m,...r,refs:g,elements:x,nodeId:t}),[m,g,x,t,r]);return Zn(()=>{r.dataRef.current.floatingContext=b;const _=v?.nodesRef.current.find(C=>C.id===t);_&&(_.context=b)}),a.useMemo(()=>({...m,context:b,refs:g,elements:x}),[m,g,x,b])}const Cf="_caption_ltp0o_1",kf="_fadeIn_ltp0o_1",Ef="_caption_neutral_ltp0o_16",Sf="_caption_error_ltp0o_20",jf="_caption_success_ltp0o_24",Nf="_fullWidth_ltp0o_38",Fn={caption:Cf,fadeIn:kf,caption_neutral:Ef,caption_error:Sf,caption_success:jf,fullWidth:Nf},gn=({children:e,isFullWidth:t,variant:n,type:r})=>{const o=n??r??"error";return l.jsx("p",{className:A(Fn.caption,Fn[`caption_${o}`],{[Fn.fullWidth]:t}),children:e})};var Rf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Lf=Rf.reduce((e,t)=>{const n=_o(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...c}=o,u=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Af="Label",ta=a.forwardRef((e,t)=>l.jsx(Lf.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));ta.displayName=Af;var na=ta;const Pf=ko("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ra=a.forwardRef(({className:e,...t},n)=>l.jsx(na,{ref:n,className:Pe(Pf(),e),...t}));ra.displayName=na.displayName;const Mf="_label_1xouh_1",Of="_label__text_1xouh_11",uo={label:Mf,label__text:Of},vn=({htmlFor:e,children:t,className:n})=>l.jsx(ra,{htmlFor:e,className:A(uo.label,n),children:typeof t=="string"?l.jsx("div",{className:uo.label__text,children:t}):t}),If="_wrapper_19g1g_1",Tf="_wrapper_small_19g1g_14",Df="_iconCross_19g1g_17",$f="_iconCross_small_19g1g_25",Wt={wrapper:If,wrapper_small:Tf,iconCross:Df,iconCross_small:$f},oa=y.memo(({className:e,children:t,onClick:n,isSmall:r})=>l.jsxs("div",{className:A(Wt.wrapper,e,r&&Wt.wrapper_small),children:[l.jsx("span",{children:t}),n&&l.jsx(Ue,{className:A(Wt.iconCross,{[Wt.iconCross_small]:r}),onClick:o=>{o.stopPropagation(),n()}})]})),Ff="_wrapper_94m4o_1",Bf="_container_94m4o_5",zf="_input_94m4o_5",Hf="_error_94m4o_17",Wf="_disabled_94m4o_20",Vf="_tagContainer_94m4o_33",qf="_selectedOptionContainer_94m4o_38",Gf="_selectedOption_94m4o_38",Uf="_placeHolder_94m4o_49",Zf="_iconContainer_94m4o_53",Yf="_deleteIcon_94m4o_59",Xf="_divider_94m4o_79",Kf="_arrowIcon_94m4o_88",Qf="_arrowIconExpanded_94m4o_103",Jf="_dropdown_94m4o_107",ep="_dropdown_visible_94m4o_118",tp="_withSearch_94m4o_133",np="_search_94m4o_136",rp="_search__icon_94m4o_149",op="_search__input_94m4o_154",sp="_option_94m4o_184",ap="_option_active_94m4o_192",ip="_option_active_next_active_94m4o_198",cp="_option_active_prev_active_94m4o_202",lp="_tableTemplate_94m4o_229",up="_tableContainer_94m4o_236",dp="_table_94m4o_229",fp="_activeRow_94m4o_278",pp="_checkboxCell_94m4o_285",mp="_checkbox_94m4o_285",hp="_footerTotal_94m4o_300",G={wrapper:Ff,container:Bf,input:zf,error:Hf,disabled:Wf,tagContainer:Vf,selectedOptionContainer:qf,selectedOption:Gf,placeHolder:Uf,iconContainer:Zf,deleteIcon:Yf,divider:Xf,arrowIcon:Kf,arrowIconExpanded:Qf,dropdown:Jf,dropdown_visible:ep,withSearch:tp,search:np,search__icon:rp,search__input:op,option:sp,option_active:ap,option_active_next_active:ip,option_active_prev_active:cp,tableTemplate:lp,tableContainer:up,table:dp,activeRow:fp,checkboxCell:pp,checkbox:mp,footerTotal:hp},gp=6,vp=({value:e,selectedOptionRender:t,tagRender:n,onDelete:r})=>e?Array.isArray(e)?l.jsx("div",{className:G.tagContainer,children:e.map((o,s)=>n?l.jsx(y.Fragment,{children:n(o)},s):l.jsx(oa,{isSmall:!0,...r&&{onClick:()=>r?.(o)},children:o.label},s))}):l.jsx("span",{className:G.selectedOption,children:t?t(e):e.label}):null,sa=({onSearch:e,searchClassName:t,searchValue:n,isLoading:r,placeholder:o})=>l.jsxs("div",{className:A(G.search,t),children:[l.jsx(tn,{className:G.search__icon}),l.jsx("input",{className:G.search__input,value:n,onChange:s=>e?.(s.target.value),placeholder:o}),r&&l.jsx(st,{size:"extraSmall",className:G.search__spinner})]}),xp=({value:e,options:t,optionClassName:n,optionRender:r,onChange:o,onSearch:s,searchClassName:i,isLoading:c,searchValue:u,searchPlaceholder:d})=>{const f=p=>Array.isArray(e)?e.some(v=>v.value===p.value):e?.value===p.value;return l.jsxs(l.Fragment,{children:[s&&l.jsx(sa,{onSearch:s,searchValue:u,searchClassName:i,isLoading:c,placeholder:d}),t&&t.length?l.jsx("ul",{className:A({[G.withSearch]:s}),children:t.map((p,v)=>{const m=f(p),w=t[v-1]&&f(t[v-1]),h=t[v+1]&&f(t[v+1]);return l.jsx("li",{className:A(G.option,{[G.option_active]:m,[G.option_active_prev_active]:w,[G.option_active_next_active]:h},n),onClick:()=>o(p),children:r?r(p):p.label},`${p.value}${v}`)})}):!c&&l.jsx(Lt,{})]})},wp=({value:e,options:t,onChange:n,onDelete:r,onSearch:o,searchClassName:s,isLoading:i,searchValue:c,searchPlaceholder:u,columns:d,total:f,mode:p})=>{const v=g=>Array.isArray(e)?e.some(x=>x.value===g.value):e?.value===g.value,m=(g,x)=>{if(p==="multiple"&&x&&r){r(g);return}n(g)},w=f??t?.length??0,h=d??[];return l.jsxs("div",{className:G.tableTemplate,children:[o&&l.jsx(sa,{onSearch:o,searchValue:c,searchClassName:s,isLoading:i,placeholder:u}),l.jsx("div",{className:G.tableContainer,children:t&&t.length?l.jsxs("table",{className:G.table,children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{className:G.checkboxCell,"aria-label":""}),h.map(g=>l.jsx("th",{className:g.className,children:g.title},g.key))]})}),l.jsx("tbody",{children:t.map((g,x)=>{const b=v(g);return l.jsxs("tr",{className:A({[G.activeRow]:b}),onClick:()=>m(g,b),children:[l.jsx("td",{className:G.checkboxCell,children:l.jsx("input",{type:"checkbox",className:G.checkbox,checked:b,readOnly:!0,tabIndex:-1,onClick:_=>_.stopPropagation(),onChange:()=>m(g,b)})}),h.map(_=>l.jsx("td",{className:_.className,children:_.render(g)},_.key))]},`${String(g.value)}${x}`)})})]}):!i&&l.jsx(Lt,{})}),l.jsxs("div",{className:G.footerTotal,children:["Всего ",w]})]})},bp=({options:e,value:t,mode:n,placeholder:r,onChange:o,dropdownRender:s,optionRender:i,selectedOptionRender:c,dropdownIcon:u,tagRender:d,dropDownClassName:f,optionClassName:p,inputClassName:v,deleteIconClassName:m,onDelete:w,onClear:h,label:g,onSearch:x,searchClassName:b,searchPlaceholder:_,isLoading:C,disabled:k,onClose:E,portalTarget:j,error:S,fixedHeight:P=!0,template:D="list",columns:$,total:q})=>{const[F,z]=y.useState(!1),[Y,H]=y.useState(!1),B=y.useRef(null),O=y.useRef(null),X=y.useRef(null),[N,de]=y.useState(""),se=j??(Y&&typeof document<"u"?document.body:void 0);y.useEffect(()=>{H(!0)},[]);const ne=y.useCallback(V=>{de(V),x?.(V)},[x]);y.useEffect(()=>{if(!F)return;const V=oe=>{B.current&&!B.current.contains(oe.target)&&(!O.current||!O.current.contains(oe.target))&&(ne(""),z(!1),E?.())};return document.addEventListener("mousedown",V,!0),()=>{document.removeEventListener("mousedown",V,!0)}},[ne,F,E]);const{refs:me,floatingStyles:U,update:Q}=yf({strategy:"absolute",placement:"bottom-start",open:F,whileElementsMounted:(V,oe,et)=>es(V,oe,et,{ancestorScroll:!1,elementResize:!0,ancestorResize:!0,layoutShift:!0}),middleware:[rs(gp),os({fallbackPlacements:["top-start","bottom-start"]}),ss({apply({rects:V,elements:oe}){const et=`${Math.round(V.reference.width)}px`;oe.floating.style.width!==et&&(oe.floating.style.width=et)}})]}),te=y.useCallback(V=>{X.current=V,me.setReference(V)},[me]),T=y.useCallback(V=>{O.current=V,me.setFloating(V)},[me]);y.useEffect(()=>{F&&Q()},[F,Q]);const Z=y.useCallback(V=>{o?.(V),ne(""),E?.(),n==="single"&&z(!1)},[ne,n,o,E]),xe=y.useCallback(()=>{const V=l.jsx("div",{ref:T,className:A(G.dropdown,{[G.dropdown_visible]:F},f),style:U,onClick:oe=>oe.stopPropagation(),children:l.jsx("div",{className:G.dropdownContent,style:{height:P?"300px":"none"},children:(()=>{const oe=D==="table"?l.jsx(wp,{value:t,options:e,onChange:Z,onDelete:w,...x&&{onSearch:ne},searchClassName:b,isLoading:C,searchValue:N,searchPlaceholder:_,columns:$,total:q,mode:n}):l.jsx(xp,{value:t,options:e,optionClassName:p,optionRender:i,onChange:Z,...x&&{onSearch:ne},searchClassName:b,isLoading:C,searchValue:N,searchPlaceholder:_});return s?s(oe):oe})()})});return se?Et.createPortal(V,se):V},[f,s,P,U,Z,ne,C,F,x,p,i,e,se,D,$,q,n,w,b,_,N,T,t]),Se=y.useMemo(()=>Y?xe():null,[Y,xe]),Ce=Array.isArray(t)?!!t.length:!!t;return l.jsxs("div",{className:G.wrapper,children:[g&&l.jsx(vn,{htmlFor:"CustomSelectInput",children:g}),l.jsxs("div",{className:G.container,ref:B,children:[l.jsxs("div",{role:"button",id:"CustomSelectInput",tabIndex:0,ref:te,className:A(G.input,{[G.input_fixedHeight]:n==="single",[G.disabled]:k},S&&G.error,v),onClick:()=>{t&&(ne(""),E?.()),z(V=>!V)},children:[l.jsx("div",{className:G.selectedOptionContainer,children:Ce?l.jsx(vp,{value:t,selectedOptionRender:c,tagRender:d,onDelete:w}):l.jsx("span",{className:G.placeHolder,children:r})}),l.jsxs("div",{className:G.iconContainer,children:[h&&Ce&&l.jsxs(l.Fragment,{children:[l.jsx(ue,{variant:"text",className:A(G.deleteIcon,m),onClick:V=>{V.stopPropagation(),h()},children:l.jsx("span",{children:l.jsx(Ue,{})})}),l.jsx("div",{className:G.divider,children:l.jsx("div",{})})]}),u||l.jsx(ue,{variant:"text",className:A(G.arrowIcon,{[G.arrowIconExpanded]:F}),children:l.jsx(nn,{})})]})]}),Se]}),S&&l.jsx(gn,{children:S})]})};function _p(e){const t=yp(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,c=a.Children.toArray(s),u=c.find(kp);if(u){const d=u.props.children,f=c.map(p=>p===u?a.Children.count(d)>1?a.Children.only(null):a.isValidElement(d)?d.props.children:null:p);return l.jsx(t,{...i,ref:o,children:a.isValidElement(d)?a.cloneElement(d,void 0,f):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function yp(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=Sp(o),c=Ep(s,o.props);return o.type!==a.Fragment&&(c.ref=r?St(r,i):i),a.cloneElement(o,c)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Cp=Symbol("radix.slottable");function kp(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Cp}function Ep(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]=(...c)=>{const u=s(...c);return o(...c),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Sp(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 xn="Dialog",[aa]=rn(xn),[jp,Ee]=aa(xn),ia=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,c=a.useRef(null),u=a.useRef(null),[d,f]=ur({prop:r,defaultProp:o??!1,onChange:s,caller:xn});return l.jsx(jp,{scope:t,triggerRef:c,contentRef:u,contentId:yt(),titleId:yt(),descriptionId:yt(),open:d,onOpenChange:f,onOpenToggle:a.useCallback(()=>f(p=>!p),[f]),modal:i,children:n})};ia.displayName=xn;var ca="DialogTrigger",Np=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ee(ca,n),s=ye(t,o.triggerRef);return l.jsx(pe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":xr(o.open),...r,ref:s,onClick:ie(e.onClick,o.onOpenToggle)})});Np.displayName=ca;var gr="DialogPortal",[Rp,la]=aa(gr,{forceMount:void 0}),ua=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Ee(gr,t);return l.jsx(Rp,{scope:t,forceMount:n,children:a.Children.map(r,i=>l.jsx(Qe,{present:n||s.open,children:l.jsx(dn,{asChild:!0,container:o,children:i})}))})};ua.displayName=gr;var en="DialogOverlay",da=a.forwardRef((e,t)=>{const n=la(en,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Ee(en,e.__scopeDialog);return s.modal?l.jsx(Qe,{present:r||s.open,children:l.jsx(Ap,{...o,ref:t})}):null});da.displayName=en;var Lp=_p("DialogOverlay.RemoveScroll"),Ap=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ee(en,n);return l.jsx(mr,{as:Lp,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsx(pe.div,{"data-state":xr(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),it="DialogContent",fa=a.forwardRef((e,t)=>{const n=la(it,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Ee(it,e.__scopeDialog);return l.jsx(Qe,{present:r||s.open,children:s.modal?l.jsx(Pp,{...o,ref:t}):l.jsx(Mp,{...o,ref:t})})});fa.displayName=it;var Pp=a.forwardRef((e,t)=>{const n=Ee(it,e.__scopeDialog),r=a.useRef(null),o=ye(t,n.contentRef,r);return a.useEffect(()=>{const s=r.current;if(s)return Os(s)},[]),l.jsx(pa,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ie(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:ie(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0;(i.button===2||c)&&s.preventDefault()}),onFocusOutside:ie(e.onFocusOutside,s=>s.preventDefault())})}),Mp=a.forwardRef((e,t)=>{const n=Ee(it,e.__scopeDialog),r=a.useRef(!1),o=a.useRef(!1);return l.jsx(pa,{...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()}})}),pa=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,c=Ee(it,n),u=a.useRef(null),d=ye(t,u);return As(),l.jsxs(l.Fragment,{children:[l.jsx(pr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsx(on,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":xr(c.open),...i,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(Ip,{titleId:c.titleId}),l.jsx(Dp,{contentRef:u,descriptionId:c.descriptionId})]})]})}),vr="DialogTitle",ma=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ee(vr,n);return l.jsx(pe.h2,{id:o.titleId,...r,ref:t})});ma.displayName=vr;var ha="DialogDescription",ga=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ee(ha,n);return l.jsx(pe.p,{id:o.descriptionId,...r,ref:t})});ga.displayName=ha;var va="DialogClose",Op=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ee(va,n);return l.jsx(pe.button,{type:"button",...r,ref:t,onClick:ie(e.onClick,()=>o.onOpenChange(!1))})});Op.displayName=va;function xr(e){return e?"open":"closed"}var xa="DialogTitleWarning",[lh,wa]=pl(xa,{contentName:it,titleName:vr,docsSlug:"dialog"}),Ip=({titleId:e})=>{const t=wa(xa),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
42
42
|
|
|
43
43
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
44
44
|
|
|
45
|
-
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},Rp="DialogDescriptionWarning",Np=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ha(Rp).contentName}}.`;return a.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Lp=ra,Ap=aa,ga=ia,va=ca,wa=ua,xa=fa;const gr=Lp,Pp=Ap,ba=a.forwardRef(({className:e,...t},n)=>l.jsx(ga,{ref:n,className:Pe("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}));ba.displayName=ga.displayName;const wn=a.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(Pp,{children:[l.jsx(ba,{}),l.jsx(va,{ref:r,className:Pe("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})]}));wn.displayName=va.displayName;const xn=({className:e,...t})=>l.jsx("div",{className:Pe("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});xn.displayName="DialogHeader";const vr=({className:e,...t})=>l.jsx("div",{className:Pe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});vr.displayName="DialogFooter";const bn=a.forwardRef(({className:e,...t},n)=>l.jsx(wa,{ref:n,className:Pe("text-lg font-semibold leading-none tracking-tight",e),...t}));bn.displayName=wa.displayName;const Mp=a.forwardRef(({className:e,...t},n)=>l.jsx(xa,{ref:n,className:Pe("text-sm text-muted-foreground",e),...t}));Mp.displayName=xa.displayName;const Op="_wrapper_4ju0w_1",Ip="_input_4ju0w_5",Tp="_error_4ju0w_25",Dp="_disabled_4ju0w_33",$p="_selectedOption_4ju0w_39",Fp="_placeholder_4ju0w_50",Bp="_actions_4ju0w_54",zp="_clearButton_4ju0w_61",Hp="_selectButton_4ju0w_70",Vp="_dialogContent_4ju0w_77",Wp="_dialogHeader_4ju0w_92",qp="_dialogTitle_4ju0w_97",Gp="_search_4ju0w_104",Up="_searchIcon_4ju0w_120",Zp="_searchInput_4ju0w_131",Yp="_searchSpinner_4ju0w_162",Xp="_tableContainer_4ju0w_166",Kp="_table_4ju0w_166",Qp="_activeRow_4ju0w_209",Jp="_emptyState_4ju0w_216",em="_dialogFooter_4ju0w_223",tm="_pagination_4ju0w_231",nm="_footerActions_4ju0w_232",rm="_pageInfo_4ju0w_251",ee={wrapper:Op,input:Ip,error:Tp,disabled:Dp,selectedOption:$p,placeholder:Fp,actions:Bp,clearButton:zp,selectButton:Hp,dialogContent:Vp,dialogHeader:Wp,dialogTitle:qp,search:Gp,searchIcon:Up,searchInput:Zp,searchSpinner:Yp,tableContainer:Xp,table:Kp,activeRow:Qp,emptyState:Jp,dialogFooter:em,pagination:tm,footerActions:nm,pageInfo:rm},om=8,sm=350,_a=({value:e,placeholder:t,loadOptions:n,onChange:r,onClear:o,columns:s,label:i,title:c="Поиск сотрудника",searchPlaceholder:u="Введите запрос",selectButtonText:d="Выбрать",closeButtonText:f="Закрыть",manualButtonText:m="Добавить вручную",onManualAdd:h,pageSize:p=om,debounceMs:w=sm,disabled:g,error:v,className:x,inputClassName:_,selectedOptionRender:b})=>{const[C,E]=y.useState(!1),[k,j]=y.useState(""),[S,O]=y.useState(""),[D,B]=y.useState(1),[W,z]=y.useState([]),[H,Y]=y.useState(),[$,V]=y.useState(!1),[A,X]=y.useState(!1),R=y.useRef(0),ue=y.useMemo(()=>s??[{key:"label",title:"ФИО сотрудника",render:T=>T.label},{key:"birthDate",title:"День рождения",render:T=>T.meta?.birthDate??"—"}],[s]),de=H?Math.max(1,Math.ceil(H/p)):void 0,ne=D>1,ae=de?D<de:$;y.useEffect(()=>{const T=window.setTimeout(()=>{O(k.trim()),B(1)},w);return()=>window.clearTimeout(T)},[w,k]),y.useEffect(()=>{if(!C)return;const T=R.current+1;R.current=T,X(!0),n({search:S,page:D,pageSize:p}).then(Z=>{R.current===T&&(z(Z.options),Y(Z.total),V(Z.hasNextPage??!1))}).finally(()=>{R.current===T&&X(!1)})},[S,C,n,D,p]);const q=y.useCallback(T=>{E(T),T||(j(""),O(""),B(1))},[]),J=y.useCallback(T=>{r?.(T),q(!1)},[q,r]),fe=e?b?b(e):e.label:t;return l.jsxs("div",{className:P(ee.wrapper,x),children:[i&&l.jsx(gn,{htmlFor:"DialogSelectInput",children:i}),l.jsxs("div",{id:"DialogSelectInput",role:"button",tabIndex:g?-1:0,className:P(ee.input,{[ee.disabled]:g,[ee.error]:v},_),onClick:()=>!g&&q(!0),onKeyDown:T=>{!g&&(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),q(!0))},children:[l.jsx("span",{className:P(ee.selectedOption,{[ee.placeholder]:!e}),children:fe}),l.jsxs("span",{className:ee.actions,children:[o&&e&&l.jsx(le,{variant:"text",className:ee.clearButton,"aria-label":"Очистить выбранное значение",onClick:T=>{T.stopPropagation(),o()},children:l.jsx(Ze,{})}),l.jsx(le,{variant:"link",className:ee.selectButton,disabled:g,onClick:T=>{T.stopPropagation(),q(!0)},children:d})]})]}),l.jsx(gr,{open:C,onOpenChange:q,children:l.jsxs(wn,{className:ee.dialogContent,children:[l.jsx(xn,{className:ee.dialogHeader,children:l.jsx(bn,{className:ee.dialogTitle,children:c})}),l.jsxs("div",{className:ee.search,children:[l.jsx(en,{className:ee.searchIcon}),l.jsx("input",{className:ee.searchInput,value:k,onChange:T=>j(T.target.value),placeholder:u,autoFocus:!0}),A&&l.jsx(st,{size:"extraSmall",className:ee.searchSpinner})]}),l.jsxs("div",{className:ee.tableContainer,children:[l.jsxs("table",{className:ee.table,children:[l.jsx("thead",{children:l.jsx("tr",{children:ue.map(T=>l.jsx("th",{className:T.className,children:T.title},T.key))})}),l.jsx("tbody",{children:W.map(T=>{const Z=e?.value===T.value;return l.jsx("tr",{className:P({[ee.activeRow]:Z}),onClick:()=>J(T),children:ue.map(we=>l.jsx("td",{className:we.className,children:we.render(T)},we.key))},String(T.value))})})]}),!A&&!W.length&&l.jsx("div",{className:ee.emptyState,children:l.jsx(Lt,{title:"Ничего не найдено",subtitle:"Попробуйте изменить поисковый запрос"})})]}),l.jsxs(vr,{className:ee.dialogFooter,children:[l.jsxs("div",{className:ee.pagination,children:[l.jsx(le,{variant:"secondary",size:"small",disabled:!ne||A,onClick:()=>B(T=>Math.max(1,T-1)),children:"Назад"}),l.jsxs("span",{className:ee.pageInfo,children:["Страница ",D,de?` из ${de}`:""]}),l.jsx(le,{variant:"secondary",size:"small",disabled:!ae||A,onClick:()=>B(T=>T+1),children:"Вперёд"})]}),l.jsxs("div",{className:ee.footerActions,children:[h&&l.jsx(le,{variant:"primary",onClick:h,children:m}),l.jsx(le,{variant:"secondary",onClick:()=>q(!1),children:f})]})]})]})}),v&&l.jsx(hn,{children:v})]})},am="_wrapper_15kqr_1",im="_input_15kqr_5",cm="_error_15kqr_25",lm="_disabled_15kqr_33",um="_selectedOption_15kqr_39",dm="_placeholder_15kqr_50",fm="_actions_15kqr_54",pm="_clearButton_15kqr_61",mm="_selectButton_15kqr_70",hm="_dialogContent_15kqr_77",gm="_dialogHeader_15kqr_92",vm="_dialogTitle_15kqr_97",wm="_search_15kqr_104",xm="_searchIcon_15kqr_120",bm="_searchInput_15kqr_131",_m="_searchSpinner_15kqr_162",ym="_treeContainer_15kqr_166",Cm="_row_15kqr_176",km="_row_active_15kqr_191",Em="_nodeLabel_15kqr_194",Sm="_row_match_15kqr_198",jm="_chevron_15kqr_202",Rm="_chevronExpanded_15kqr_227",Nm="_chevronPlaceholder_15kqr_231",Lm="_nodeSpinner_15kqr_237",Am="_emptyState_15kqr_249",Pm="_loadingState_15kqr_256",Mm="_dialogFooter_15kqr_263",K={wrapper:am,input:im,error:cm,disabled:lm,selectedOption:um,placeholder:dm,actions:fm,clearButton:pm,selectButton:mm,dialogContent:hm,dialogHeader:gm,dialogTitle:vm,search:wm,searchIcon:xm,searchInput:bm,searchSpinner:_m,treeContainer:ym,row:Cm,row_active:km,nodeLabel:Em,row_match:Sm,chevron:jm,chevronExpanded:Rm,chevronPlaceholder:Nm,nodeSpinner:Lm,emptyState:Am,loadingState:Pm,dialogFooter:Mm},Om=350,$e="__root__",Im=({value:e,placeholder:t,loadChildren:n,searchNodes:r,onChange:o,onClear:s,label:i,title:c="Выбор элемента",searchPlaceholder:u="Введите запрос",selectButtonText:d="Выбрать",closeButtonText:f="Закрыть",confirmButtonText:m="Выбрать",debounceMs:h=Om,disabled:p,error:w,className:g,inputClassName:v,selectedOptionRender:x,nodeRender:_})=>{const[b,C]=y.useState(!1),[E,k]=y.useState(""),[j,S]=y.useState(""),[O,D]=y.useState(()=>new Map),[B,W]=y.useState(()=>new Set),[z,H]=y.useState(()=>new Set),[Y,$]=y.useState(()=>new Set),[V,A]=y.useState(()=>new Set),[X,R]=y.useState(!1),[ue,de]=y.useState(null),ne=y.useRef(0),ae=y.useRef(0);y.useEffect(()=>{if(!b||O.has($e))return;const I=ne.current+1;ne.current=I,W(te=>{const Q=new Set(te);return Q.add($e),Q}),n({parentId:null,search:""}).then(te=>{ne.current===I&&D(Q=>{const ie=new Map(Q);return ie.set($e,te.nodes),ie})}).finally(()=>{ne.current===I&&W(te=>{const Q=new Set(te);return Q.delete($e),Q})})},[b,n,O]),y.useEffect(()=>{const I=window.setTimeout(()=>S(E.trim()),h);return()=>window.clearTimeout(I)},[E,h]),y.useEffect(()=>{if(!b||!r)return;if(!j){A(new Set),$(new Set);return}const I=ae.current+1;ae.current=I,R(!0),r(j).then(te=>{if(ae.current!==I)return;const Q=new Set,ie=new Set,he=new Map;for(const Ie of te.matches){Q.add(Ie.node.value);const ge=[...Ie.path,Ie.node];for(let ce=0;ce<ge.length-1;ce++){const tt=ge[ce],nt=ge[ce+1];ie.add(tt.value);const Te=tt.value;he.has(Te)||he.set(Te,new Map),he.get(Te).set(nt.value,nt)}if(ge.length>0){const ce=ge[0];he.has($e)||he.set($e,new Map),he.get($e).set(ce.value,ce)}}A(Q),$(ie),D(Ie=>{const ge=new Map(Ie);return he.forEach((ce,tt)=>{const nt=ge.get(tt)??[],Te=new Map;nt.forEach(He=>Te.set(He.value,He)),ce.forEach((He,Ea)=>Te.set(Ea,He)),ge.set(tt,Array.from(Te.values()))}),ge})}).finally(()=>{ae.current===I&&R(!1)})},[j,b,r]);const q=y.useCallback(I=>{C(I),I||(k(""),S(""),de(null),A(new Set),$(new Set))},[]),J=y.useCallback(I=>{const te=I.value;O.has(te)||B.has(te)||(W(Q=>{const ie=new Set(Q);return ie.add(te),ie}),n({parentId:I.value,search:""}).then(Q=>{D(ie=>{const he=new Map(ie),Ie=he.get(te)??[],ge=new Map;return Ie.forEach(ce=>ge.set(ce.value,ce)),Q.nodes.forEach(ce=>ge.set(ce.value,ce)),he.set(te,Array.from(ge.values())),he})}).finally(()=>{W(Q=>{const ie=new Set(Q);return ie.delete(te),ie})}))},[O,n,B]),fe=y.useCallback(I=>{H(te=>{const Q=new Set(te);return Q.has(I.value)?Q.delete(I.value):(Q.add(I.value),J(I)),Q})},[J]),T=y.useCallback(I=>{de(I)},[]),Z=y.useCallback(()=>{ue&&o?.(ue),q(!1)},[q,o,ue]),we=y.useCallback(I=>z.has(I)||Y.has(I),[z,Y]),ke=y.useCallback(I=>{if(!j||r)return I;const te=j.toLowerCase();return I.filter(Q=>Q.label.toLowerCase().includes(te))},[j,r]),Ce=(I,te)=>{const Q=I.value,ie=O.get(Q),he=we(I.value),Ie=B.has(Q),ge=ue?.value===I.value,ce=e?.value===I.value,tt=V.has(I.value),nt=he&&ie&&ie.length>0,Te=nt?ke(ie):[];return l.jsxs(y.Fragment,{children:[l.jsxs("div",{className:P(K.row,{[K.row_active]:ge||ce,[K.row_match]:tt}),style:{paddingLeft:16+te*20},onClick:()=>T(I),children:[I.hasChildren?l.jsx("button",{type:"button",className:P(K.chevron,{[K.chevronExpanded]:he}),onClick:He=>{He.stopPropagation(),fe(I)},"aria-label":he?"Свернуть":"Раскрыть",children:l.jsx(tn,{})}):l.jsx("span",{className:K.chevronPlaceholder}),l.jsx("span",{className:K.nodeLabel,children:_?_(I):I.label}),Ie&&l.jsx(st,{size:"extraSmall",className:K.nodeSpinner})]}),nt&&Te.map(He=>Ce(He,te+1))]},String(I.value))},G=O.get($e)??[],re=ke(G),Oe=B.has($e),ya=e?x?x(e):e.label:t,Ca=!Oe&&!X&&re.length===0,ka=y.useMemo(()=>X||Oe&&!!j,[X,Oe,j]);return l.jsxs("div",{className:P(K.wrapper,g),children:[i&&l.jsx(gn,{htmlFor:"TreeDialogSelectInput",children:i}),l.jsxs("div",{id:"TreeDialogSelectInput",role:"button",tabIndex:p?-1:0,className:P(K.input,{[K.disabled]:p,[K.error]:w},v),onClick:()=>!p&&q(!0),onKeyDown:I=>{!p&&(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),q(!0))},children:[l.jsx("span",{className:P(K.selectedOption,{[K.placeholder]:!e}),children:ya}),l.jsxs("span",{className:K.actions,children:[s&&e&&l.jsx(le,{variant:"text",className:K.clearButton,"aria-label":"Очистить выбранное значение",onClick:I=>{I.stopPropagation(),s()},children:l.jsx(Ze,{})}),l.jsx(le,{variant:"link",className:K.selectButton,disabled:p,onClick:I=>{I.stopPropagation(),q(!0)},children:d})]})]}),l.jsx(gr,{open:b,onOpenChange:q,children:l.jsxs(wn,{className:K.dialogContent,children:[l.jsx(xn,{className:K.dialogHeader,children:l.jsx(bn,{className:K.dialogTitle,children:c})}),l.jsxs("div",{className:K.search,children:[l.jsx(en,{className:K.searchIcon}),l.jsx("input",{className:K.searchInput,value:E,onChange:I=>k(I.target.value),placeholder:u,autoFocus:!0}),ka&&l.jsx(st,{size:"extraSmall",className:K.searchSpinner})]}),l.jsx("div",{className:K.treeContainer,children:Oe&&G.length===0?l.jsx("div",{className:K.loadingState,children:l.jsx(st,{size:"small"})}):Ca?l.jsx("div",{className:K.emptyState,children:l.jsx(Lt,{title:"Ничего не найдено",subtitle:"Попробуйте изменить поисковый запрос"})}):re.map(I=>Ce(I,0))}),l.jsxs(vr,{className:K.dialogFooter,children:[l.jsx(le,{variant:"secondary",onClick:()=>q(!1),children:f}),l.jsx(le,{variant:"primary",disabled:!ue,onClick:Z,children:m})]})]})}),w&&l.jsx(hn,{children:w})]})},Tm="_tabs_4o48e_1",Dm="_tabItem_4o48e_9",$m="_active_4o48e_40",Fm="_before_4o48e_55",Bm="_after_4o48e_56",qe={tabs:Tm,tabItem:Dm,active:$m,before:Fm,after:Bm},zm=a.memo(({className:e,items:t=[],activeTab:n,onClick:r,tabsClassName:o})=>l.jsx("div",{className:P(qe.wrapper,e),children:l.jsx("div",{className:P(qe.tabs,o),children:t.map((s,i)=>s.title&&l.jsxs("div",{className:P(qe.tabItem,s.className,{[qe.active]:n===i,[qe.first]:i===0,[qe.last]:i===t.length-1}),style:{zIndex:n===i?t.length:i===0?0:t.length-i},onClick:c=>{c.stopPropagation(),r?.(i)},children:[n===i&&i!==0&&l.jsx("span",{className:qe.before}),s.title,n===i&&i!==t.length-1&&l.jsx("span",{className:qe.after})]},i))})})),Hm="_wrapper_1xj0t_1",Vm="_itemBlock_1xj0t_8",Wm="_step_1xj0t_16",qm="_clickable_1xj0t_39",Gm="_step_inactive_1xj0t_46",Um="_step_current_1xj0t_51",Zm="_connector_1xj0t_55",Ym="_connector_active_1xj0t_62",Xm="_label_1xj0t_66",Km="_label_active_1xj0t_74",Re={wrapper:Hm,itemBlock:Vm,step:Wm,clickable:qm,step_inactive:Gm,step_current:Um,connector:Zm,connector_active:Ym,label:Xm,label_active:Km},Qm=({items:e,current:t,onChange:n,showCheckOnCompleted:r=!1,className:o})=>{const s=!!n;return l.jsx("div",{className:P(Re.wrapper,o),role:"list",children:e.map((i,c)=>{const u=c<t,d=c===t,f=c<=t,m=c===e.length-1,h=r&&u,p=i.content??(h?l.jsx(Un,{}):c+1),w=l.jsx("button",{type:"button",className:P(Re.step,{[Re.step_inactive]:!f,[Re.step_current]:d,[Re.clickable]:s}),disabled:!s,onClick:()=>n?.(c),"aria-current":d?"step":void 0,"aria-label":typeof i.label=="string"?i.label:`Шаг ${c+1}`,children:p});return l.jsxs(y.Fragment,{children:[i.label?l.jsxs("div",{className:Re.itemBlock,role:"listitem",children:[w,l.jsx("span",{className:P(Re.label,{[Re.label_active]:f}),children:i.label})]}):l.jsx("div",{role:"listitem",children:w}),!m&&l.jsx("span",{className:P(Re.connector,{[Re.connector_active]:c<t})})]},c)})})},Jm="_container_1whkx_1",e0="_tabs_1whkx_4",t0="_line_1whkx_11",n0="_tabItem_1whkx_21",r0="_header_1whkx_34",o0="_notificationChanges_1whkx_42",s0="_tabs_hasAnimatedIndicator_1whkx_61",a0="_active_1whkx_64",Ge={container:Jm,tabs:e0,line:t0,tabItem:n0,header:r0,notificationChanges:o0,tabs_hasAnimatedIndicator:s0,active:a0},i0=a.memo(({items:e=[],activeTab:t,className:n,tabsClassName:r,changesIndex:o,badgeValue:s,sliderClassName:i,onClick:c})=>{const u=y.useRef(null),d=y.useRef(null),[f,m]=y.useState({left:0,width:0});return y.useEffect(()=>{const h=u.current;if(!h)return;const p=()=>{const v={left:h.offsetLeft||0,width:h.clientWidth||0};m(x=>x.left===v.left&&x.width===v.width?x:v)},w=()=>{d.current&&cancelAnimationFrame(d.current),d.current=requestAnimationFrame(()=>{d.current=null,p()})};w();const g=new ResizeObserver(()=>{w()});return g.observe(h),()=>{g.disconnect(),d.current!==null&&(cancelAnimationFrame(d.current),d.current=null)}},[t]),l.jsx("div",{className:P(Ge.container,n),children:l.jsxs("div",{className:P(Ge.tabs,Ge.tabs_hasAnimatedIndicator,r),children:[e.map((h,p)=>h.title&&l.jsxs("div",{ref:t===p?u:void 0,className:P(Ge.tabItem,h.className,{[Ge.active]:t===p}),onClick:w=>{w.stopPropagation(),c?.(p)},children:[h.header&&l.jsx("div",{className:Ge.header,children:h.header}),h.title,o===p&&l.jsx("div",{className:Ge.notificationChanges,children:s!=null?s>99?"99+":String(s):null})]},p)),l.jsx("div",{className:P(Ge.line,i),style:{left:f.left,width:f.width}})]})})}),c0="_root_osjxx_1",l0="_header_osjxx_11",u0="_headerText_osjxx_21",d0="_eyebrow_osjxx_27",f0="_title_osjxx_35",p0="_timeline_osjxx_42",m0="_level_osjxx_47",h0="_rail_osjxx_58",g0="_railLine_osjxx_65",v0="_railLine_completed_osjxx_74",w0="_railLine_toCurrent_osjxx_78",x0="_marker_osjxx_82",b0="_marker_completed_osjxx_101",_0="_marker_current_osjxx_107",y0="_body_osjxx_120",C0="_levelHeader_osjxx_125",k0="_levelName_osjxx_132",E0="_levelName_current_osjxx_141",S0="_levelName_completed_osjxx_147",j0="_iconButton_osjxx_152",R0="_iconButton_danger_osjxx_176",N0="_stages_osjxx_182",L0="_stage_osjxx_182",A0="_stage_current_osjxx_199",P0="_stageHeader_osjxx_204",M0="_stageName_osjxx_212",O0="_stageActions_osjxx_220",I0="_approvers_osjxx_227",T0="_approver_osjxx_227",D0="_approverMain_osjxx_242",$0="_approverName_osjxx_249",F0="_approverName_pending_osjxx_255",B0="_approverName_rejected_osjxx_259",z0="_approverName_approved_osjxx_264",H0="_approverDate_osjxx_268",V0="_rejectReason_osjxx_273",W0="_empty_osjxx_283",q0="_addStage_osjxx_300",G0="_addLevel_osjxx_323",U0="_dialogContent_osjxx_327",Z0="_dialogInput_osjxx_333",Y0="_dialogActions_osjxx_348",X0="_approverPickerWrap_osjxx_354",K0="_approverPickerInput_osjxx_361",M={root:c0,header:l0,headerText:u0,eyebrow:d0,title:f0,timeline:p0,level:m0,rail:h0,railLine:g0,railLine_completed:v0,railLine_toCurrent:w0,marker:x0,marker_completed:b0,marker_current:_0,body:y0,levelHeader:C0,levelName:k0,levelName_current:E0,levelName_completed:S0,iconButton:j0,iconButton_danger:R0,stages:N0,stage:L0,stage_current:A0,stageHeader:P0,stageName:M0,stageActions:O0,approvers:I0,approver:T0,approverMain:D0,approverName:$0,approverName_pending:F0,approverName_rejected:B0,approverName_approved:z0,approverDate:H0,rejectReason:V0,empty:W0,addStage:q0,addLevel:G0,dialogContent:U0,dialogInput:Z0,dialogActions:Y0,approverPickerWrap:X0,approverPickerInput:K0},Vt=({className:e})=>l.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",className:e,"aria-hidden":"true",children:l.jsx("path",{d:"M12 5v14M5 12h14"})});function io({open:e,title:t,placeholder:n,onSubmit:r,onClose:o}){const[s,i]=y.useState("");y.useEffect(()=>{e||i("")},[e]);const c=()=>{const u=s.trim();u&&(r(u),o())};return l.jsx(gr,{open:e,onOpenChange:u=>!u&&o(),children:l.jsxs(wn,{className:"sm:rounded-2xl",children:[l.jsx(xn,{children:l.jsx(bn,{children:t})}),l.jsxs("div",{className:M.dialogContent,children:[l.jsx("input",{autoFocus:!0,className:M.dialogInput,placeholder:n,value:s,onChange:u=>i(u.target.value),onKeyDown:u=>{u.key==="Enter"&&c(),u.key==="Escape"&&o()}}),l.jsxs("div",{className:M.dialogActions,children:[l.jsx(le,{variant:"secondary",onClick:o,children:"Отмена"}),l.jsx(le,{variant:"primary",onClick:c,disabled:!s.trim(),children:"Добавить"})]})]})]})})}const Q0=({levels:e,editable:t=!1,title:n="Маршрут согласования",eyebrow:r="Workflow",className:o,loadApprovers:s,onAddLevel:i,onRemoveLevel:c,onAddStage:u,onRemoveStage:d,onAddApprover:f,onRemoveApprover:m})=>{const[h,p]=y.useState(!1),[w,g]=y.useState(null);return l.jsxs("div",{className:P(M.root,o),children:[l.jsx("div",{className:M.header,children:l.jsxs("div",{className:M.headerText,children:[l.jsx("span",{className:M.eyebrow,children:r}),l.jsx("span",{className:M.title,children:n})]})}),l.jsxs("div",{className:M.timeline,children:[e.map((v,x)=>{const _=e[x+1],b=P(M.railLine,{[M.railLine_completed]:v.status==="completed"&&_?.status==="completed",[M.railLine_toCurrent]:v.status==="completed"&&_?.status==="current"});return l.jsxs("div",{className:M.level,children:[l.jsxs("div",{className:M.rail,children:[x<e.length-1&&l.jsx("span",{className:b}),l.jsx("span",{className:P(M.marker,{[M.marker_completed]:v.status==="completed",[M.marker_current]:v.status==="current"}),children:v.status==="completed"&&l.jsx(Un,{})})]}),l.jsxs("div",{className:M.body,children:[l.jsxs("div",{className:M.levelHeader,children:[l.jsx("span",{className:P(M.levelName,{[M.levelName_current]:v.status==="current",[M.levelName_completed]:v.status==="completed"}),children:v.name}),t&&l.jsxs(l.Fragment,{children:[l.jsx("button",{type:"button",className:M.iconButton,onClick:()=>g(v.id),"aria-label":"Добавить этап",title:"Добавить этап",children:l.jsx(Vt,{})}),l.jsx("button",{type:"button",className:P(M.iconButton,M.iconButton_danger),onClick:()=>c?.(v.id),"aria-label":"Удалить уровень",title:"Удалить уровень",children:l.jsx(Ze,{})})]})]}),v.stages.length>0&&l.jsx("div",{className:M.stages,children:v.stages.map(C=>l.jsxs("div",{className:P(M.stage,{[M.stage_current]:v.status==="current"}),children:[l.jsxs("div",{className:M.stageHeader,children:[l.jsx("span",{className:M.stageName,children:C.name}),l.jsx("div",{className:M.stageActions,children:t&&l.jsxs(l.Fragment,{children:[s?l.jsx(_a,{value:null,placeholder:"",title:"Добавить согласующего",searchPlaceholder:"Поиск сотрудника",loadOptions:s,onChange:E=>f?.(v.id,C.id,E),className:M.approverPickerWrap,inputClassName:M.approverPickerInput,selectedOptionRender:()=>l.jsx(Vt,{})}):null,l.jsx("button",{type:"button",className:P(M.iconButton,M.iconButton_danger),onClick:()=>d?.(v.id,C.id),"aria-label":"Удалить этап",title:"Удалить этап",children:l.jsx(Ze,{})})]})})]}),C.approvers.length===0?l.jsxs("span",{className:M.empty,children:[l.jsx(uo,{}),"Согласующий не назначен"]}):l.jsx("div",{className:M.approvers,children:C.approvers.map(E=>{const k=E.status??"pending";return l.jsxs("div",{className:M.approver,children:[l.jsxs("div",{className:M.approverMain,children:[l.jsx("span",{className:P(M.approverName,{[M.approverName_pending]:k==="pending",[M.approverName_approved]:k==="approved",[M.approverName_rejected]:k==="rejected"}),children:E.fullName}),E.actedAt&&k!=="pending"&&l.jsx("span",{className:M.approverDate,children:E.actedAt}),k==="rejected"&&E.rejectReason&&l.jsxs("span",{className:M.rejectReason,children:["Причина: ",E.rejectReason]})]}),t&&l.jsx("button",{type:"button",className:P(M.iconButton,M.iconButton_danger),onClick:()=>m?.(v.id,C.id,E.id),"aria-label":"Удалить согласующего",title:"Удалить согласующего",children:l.jsx(Ze,{})})]},E.id)})})]},C.id))}),t&&l.jsxs("button",{type:"button",className:M.addStage,onClick:()=>g(v.id),children:[l.jsx(Vt,{})," Добавить этап"]})]})]},v.id)}),t&&l.jsxs("div",{className:M.level,children:[l.jsx("div",{className:M.rail,children:l.jsx("span",{className:P(M.marker),"aria-hidden":!0})}),l.jsx("div",{className:M.body,children:l.jsxs("button",{type:"button",className:P(M.addStage,M.addLevel),onClick:()=>p(!0),children:[l.jsx(Vt,{})," Добавить уровень"]})})]})]}),l.jsx(io,{open:h,title:"Новый уровень",placeholder:"Название уровня",onClose:()=>p(!1),onSubmit:v=>i?.(v)}),l.jsx(io,{open:w!==null,title:"Новый этап",placeholder:"Название этапа",onClose:()=>g(null),onSubmit:v=>w&&u?.(w,v)})]})};exports.ApprovalRoute=Q0;exports.ArrowDownBlueIcon=Ka;exports.ArrowDownIcon=tn;exports.ArrowRightIcon=Xa;exports.BaseBlock=bi;exports.Button=le;exports.CameraIcon=si;exports.CancelIcon=ti;exports.Card=Mc;exports.Carousel=Yc;exports.ChartIcon=Va;exports.ChatIcon=Ya;exports.CheckGreen=Ja;exports.ClockFilledIcon=li;exports.ClockIcon=ja;exports.CloseRed=Qa;exports.CollapsableBlock=Q1;exports.Collapse=Xs;exports.Colors=ho;exports.CopyIcon=fo;exports.CopyTextTrigger=To;exports.CrossIcon=Ze;exports.DialogSelect=_a;exports.DoneIcon=Un;exports.DownloadIcon=pi;exports.EditIcon=ii;exports.EmptyComponent=Lt;exports.EmptyIcon=mo;exports.EnvelopIcon=ni;exports.FeedbackIcon=Wa;exports.FileReloadIcon=Ra;exports.FileSync=Za;exports.FilterIcon=ai;exports.FolderEditIcon=Na;exports.GraduateIcon=La;exports.GridIcon=Aa;exports.HeartIcon=Pa;exports.HelpIcon=Ma;exports.HistoryBlue=ei;exports.HomeIcon=Sa;exports.InfoIcon=po;exports.InputCaption=hn;exports.IslandIcon=fi;exports.Label=gn;exports.ListIcon=Oa;exports.MarketIcon=Ia;exports.MegaphoneIcon=Ga;exports.MessageIcon=ri;exports.NotebookIcon=Ha;exports.PhoneIcon=oi;exports.PlaneIcon=Ta;exports.Popover=T1;exports.ProfileIcon=Da;exports.ProfileSearchIcon=$a;exports.RadioGroupButton=Lc;exports.ReloadIcon=ci;exports.SchoolIcon=di;exports.SearchIcon=en;exports.Select=fp;exports.SettingsIcon=ui;exports.Spinner=st;exports.Stepper=Qm;exports.Tabs=i0;exports.TabsRounded=zm;exports.Tag=ea;exports.TaskListIcon=qa;exports.TimesheetIcon=za;exports.TooltipDark=Kn;exports.TooltipLight=Ss;exports.TreeDialogSelect=Im;exports.TrendUpIcon=Fa;exports.UserSwitchIcon=Ua;exports.WalletIcon=Ba;exports.WarnIcon=uo;exports.useDropdownPosition=Sc;exports.useMeasureElement=Io;
|
|
45
|
+
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},Tp="DialogDescriptionWarning",Dp=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${wa(Tp).contentName}}.`;return a.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},$p=ia,Fp=ua,ba=da,_a=fa,ya=ma,Ca=ga;const wr=$p,Bp=Fp,ka=a.forwardRef(({className:e,...t},n)=>l.jsx(ba,{ref:n,className:Pe("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}));ka.displayName=ba.displayName;const wn=a.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(Bp,{children:[l.jsx(ka,{}),l.jsx(_a,{ref:r,className:Pe("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})]}));wn.displayName=_a.displayName;const bn=({className:e,...t})=>l.jsx("div",{className:Pe("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});bn.displayName="DialogHeader";const br=({className:e,...t})=>l.jsx("div",{className:Pe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});br.displayName="DialogFooter";const _n=a.forwardRef(({className:e,...t},n)=>l.jsx(ya,{ref:n,className:Pe("text-lg font-semibold leading-none tracking-tight",e),...t}));_n.displayName=ya.displayName;const zp=a.forwardRef(({className:e,...t},n)=>l.jsx(Ca,{ref:n,className:Pe("text-sm text-muted-foreground",e),...t}));zp.displayName=Ca.displayName;const Hp="_wrapper_4ju0w_1",Wp="_input_4ju0w_5",Vp="_error_4ju0w_25",qp="_disabled_4ju0w_33",Gp="_selectedOption_4ju0w_39",Up="_placeholder_4ju0w_50",Zp="_actions_4ju0w_54",Yp="_clearButton_4ju0w_61",Xp="_selectButton_4ju0w_70",Kp="_dialogContent_4ju0w_77",Qp="_dialogHeader_4ju0w_92",Jp="_dialogTitle_4ju0w_97",em="_search_4ju0w_104",tm="_searchIcon_4ju0w_120",nm="_searchInput_4ju0w_131",rm="_searchSpinner_4ju0w_162",om="_tableContainer_4ju0w_166",sm="_table_4ju0w_166",am="_activeRow_4ju0w_209",im="_emptyState_4ju0w_216",cm="_dialogFooter_4ju0w_223",lm="_pagination_4ju0w_231",um="_footerActions_4ju0w_232",dm="_pageInfo_4ju0w_251",ee={wrapper:Hp,input:Wp,error:Vp,disabled:qp,selectedOption:Gp,placeholder:Up,actions:Zp,clearButton:Yp,selectButton:Xp,dialogContent:Kp,dialogHeader:Qp,dialogTitle:Jp,search:em,searchIcon:tm,searchInput:nm,searchSpinner:rm,tableContainer:om,table:sm,activeRow:am,emptyState:im,dialogFooter:cm,pagination:lm,footerActions:um,pageInfo:dm},fm=8,pm=350,Ea=({value:e,placeholder:t,loadOptions:n,onChange:r,onClear:o,columns:s,label:i,title:c="Поиск сотрудника",searchPlaceholder:u="Введите запрос",selectButtonText:d="Выбрать",closeButtonText:f="Закрыть",manualButtonText:p="Добавить вручную",onManualAdd:v,pageSize:m=fm,debounceMs:w=pm,disabled:h,error:g,className:x,inputClassName:b,selectedOptionRender:_})=>{const[C,k]=y.useState(!1),[E,j]=y.useState(""),[S,P]=y.useState(""),[D,$]=y.useState(1),[q,F]=y.useState([]),[z,Y]=y.useState(),[H,B]=y.useState(!1),[O,X]=y.useState(!1),N=y.useRef(0),de=y.useMemo(()=>s??[{key:"label",title:"ФИО сотрудника",render:T=>T.label},{key:"birthDate",title:"День рождения",render:T=>T.meta?.birthDate??"—"}],[s]),se=z?Math.max(1,Math.ceil(z/m)):void 0,ne=D>1,me=se?D<se:H;y.useEffect(()=>{const T=window.setTimeout(()=>{P(E.trim()),$(1)},w);return()=>window.clearTimeout(T)},[w,E]),y.useEffect(()=>{if(!C)return;const T=N.current+1;N.current=T,X(!0),n({search:S,page:D,pageSize:m}).then(Z=>{N.current===T&&(F(Z.options),Y(Z.total),B(Z.hasNextPage??!1))}).finally(()=>{N.current===T&&X(!1)})},[S,C,n,D,m]);const U=y.useCallback(T=>{k(T),T||(j(""),P(""),$(1))},[]),Q=y.useCallback(T=>{r?.(T),U(!1)},[U,r]),te=e?_?_(e):e.label:t;return l.jsxs("div",{className:A(ee.wrapper,x),children:[i&&l.jsx(vn,{htmlFor:"DialogSelectInput",children:i}),l.jsxs("div",{id:"DialogSelectInput",role:"button",tabIndex:h?-1:0,className:A(ee.input,{[ee.disabled]:h,[ee.error]:g},b),onClick:()=>!h&&U(!0),onKeyDown:T=>{!h&&(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),U(!0))},children:[l.jsx("span",{className:A(ee.selectedOption,{[ee.placeholder]:!e}),children:te}),l.jsxs("span",{className:ee.actions,children:[o&&e&&l.jsx(ue,{variant:"text",className:ee.clearButton,"aria-label":"Очистить выбранное значение",onClick:T=>{T.stopPropagation(),o()},children:l.jsx(Ue,{})}),l.jsx(ue,{variant:"link",className:ee.selectButton,disabled:h,onClick:T=>{T.stopPropagation(),U(!0)},children:d})]})]}),l.jsx(wr,{open:C,onOpenChange:U,children:l.jsxs(wn,{className:ee.dialogContent,children:[l.jsx(bn,{className:ee.dialogHeader,children:l.jsx(_n,{className:ee.dialogTitle,children:c})}),l.jsxs("div",{className:ee.search,children:[l.jsx(tn,{className:ee.searchIcon}),l.jsx("input",{className:ee.searchInput,value:E,onChange:T=>j(T.target.value),placeholder:u,autoFocus:!0}),O&&l.jsx(st,{size:"extraSmall",className:ee.searchSpinner})]}),l.jsxs("div",{className:ee.tableContainer,children:[l.jsxs("table",{className:ee.table,children:[l.jsx("thead",{children:l.jsx("tr",{children:de.map(T=>l.jsx("th",{className:T.className,children:T.title},T.key))})}),l.jsx("tbody",{children:q.map(T=>{const Z=e?.value===T.value;return l.jsx("tr",{className:A({[ee.activeRow]:Z}),onClick:()=>Q(T),children:de.map(xe=>l.jsx("td",{className:xe.className,children:xe.render(T)},xe.key))},String(T.value))})})]}),!O&&!q.length&&l.jsx("div",{className:ee.emptyState,children:l.jsx(Lt,{title:"Ничего не найдено",subtitle:"Попробуйте изменить поисковый запрос"})})]}),l.jsxs(br,{className:ee.dialogFooter,children:[l.jsxs("div",{className:ee.pagination,children:[l.jsx(ue,{variant:"secondary",size:"small",disabled:!ne||O,onClick:()=>$(T=>Math.max(1,T-1)),children:"Назад"}),l.jsxs("span",{className:ee.pageInfo,children:["Страница ",D,se?` из ${se}`:""]}),l.jsx(ue,{variant:"secondary",size:"small",disabled:!me||O,onClick:()=>$(T=>T+1),children:"Вперёд"})]}),l.jsxs("div",{className:ee.footerActions,children:[v&&l.jsx(ue,{variant:"primary",onClick:v,children:p}),l.jsx(ue,{variant:"secondary",onClick:()=>U(!1),children:f})]})]})]})}),g&&l.jsx(gn,{children:g})]})},mm="_wrapper_15kqr_1",hm="_input_15kqr_5",gm="_error_15kqr_25",vm="_disabled_15kqr_33",xm="_selectedOption_15kqr_39",wm="_placeholder_15kqr_50",bm="_actions_15kqr_54",_m="_clearButton_15kqr_61",ym="_selectButton_15kqr_70",Cm="_dialogContent_15kqr_77",km="_dialogHeader_15kqr_92",Em="_dialogTitle_15kqr_97",Sm="_search_15kqr_104",jm="_searchIcon_15kqr_120",Nm="_searchInput_15kqr_131",Rm="_searchSpinner_15kqr_162",Lm="_treeContainer_15kqr_166",Am="_row_15kqr_176",Pm="_row_active_15kqr_191",Mm="_nodeLabel_15kqr_194",Om="_row_match_15kqr_198",Im="_chevron_15kqr_202",Tm="_chevronExpanded_15kqr_227",Dm="_chevronPlaceholder_15kqr_231",$m="_nodeSpinner_15kqr_237",Fm="_emptyState_15kqr_249",Bm="_loadingState_15kqr_256",zm="_dialogFooter_15kqr_263",K={wrapper:mm,input:hm,error:gm,disabled:vm,selectedOption:xm,placeholder:wm,actions:bm,clearButton:_m,selectButton:ym,dialogContent:Cm,dialogHeader:km,dialogTitle:Em,search:Sm,searchIcon:jm,searchInput:Nm,searchSpinner:Rm,treeContainer:Lm,row:Am,row_active:Pm,nodeLabel:Mm,row_match:Om,chevron:Im,chevronExpanded:Tm,chevronPlaceholder:Dm,nodeSpinner:$m,emptyState:Fm,loadingState:Bm,dialogFooter:zm},Hm=350,De="__root__",Wm=({value:e,placeholder:t,loadChildren:n,loadNodes:r,searchNodes:o,onChange:s,onClear:i,label:c,title:u="Выбор элемента",searchPlaceholder:d="Введите запрос",selectButtonText:f="Выбрать",closeButtonText:p="Закрыть",confirmButtonText:v="Выбрать",debounceMs:m=Hm,disabled:w,error:h,className:g,inputClassName:x,selectedOptionRender:b,nodeRender:_})=>{const C=r??n,[k,E]=y.useState(!1),[j,S]=y.useState(""),[P,D]=y.useState(""),[$,q]=y.useState(()=>new Map),[F,z]=y.useState(()=>new Set),[Y,H]=y.useState(()=>new Set),[B,O]=y.useState(()=>new Set),[X,N]=y.useState(()=>new Set),[de,se]=y.useState(!1),[ne,me]=y.useState(null),U=y.useRef(0),Q=y.useRef(0);y.useEffect(()=>{if(!k||$.has(De))return;const I=U.current+1;U.current=I,z(re=>{const J=new Set(re);return J.add(De),J}),C({parentId:null,search:""}).then(re=>{U.current===I&&q(J=>{const ce=new Map(J);return ce.set(De,re.nodes),ce})}).finally(()=>{U.current===I&&z(re=>{const J=new Set(re);return J.delete(De),J})})},[k,C,$]),y.useEffect(()=>{const I=window.setTimeout(()=>D(j.trim()),m);return()=>window.clearTimeout(I)},[j,m]),y.useEffect(()=>{if(!k||!o)return;if(!P){N(new Set),O(new Set);return}const I=Q.current+1;Q.current=I,se(!0),o(P).then(re=>{if(Q.current!==I)return;const J=new Set,ce=new Set,he=new Map;for(const Oe of re.matches){J.add(Oe.node.value);const ge=[...Oe.path,Oe.node];for(let le=0;le<ge.length-1;le++){const tt=ge[le],nt=ge[le+1];ce.add(tt.value);const Ie=tt.value;he.has(Ie)||he.set(Ie,new Map),he.get(Ie).set(nt.value,nt)}if(ge.length>0){const le=ge[0];he.has(De)||he.set(De,new Map),he.get(De).set(le.value,le)}}N(J),O(ce),q(Oe=>{const ge=new Map(Oe);return he.forEach((le,tt)=>{const nt=ge.get(tt)??[],Ie=new Map;nt.forEach(ze=>Ie.set(ze.value,ze)),le.forEach((ze,Ra)=>Ie.set(Ra,ze)),ge.set(tt,Array.from(Ie.values()))}),ge})}).finally(()=>{Q.current===I&&se(!1)})},[P,k,o]);const te=y.useCallback(I=>{E(I),I||(S(""),D(""),me(null),N(new Set),O(new Set))},[]),T=y.useCallback(I=>{const re=I.value;$.has(re)||F.has(re)||(z(J=>{const ce=new Set(J);return ce.add(re),ce}),C({parentId:I.value,search:""}).then(J=>{q(ce=>{const he=new Map(ce),Oe=he.get(re)??[],ge=new Map;return Oe.forEach(le=>ge.set(le.value,le)),J.nodes.forEach(le=>ge.set(le.value,le)),he.set(re,Array.from(ge.values())),he})}).finally(()=>{z(J=>{const ce=new Set(J);return ce.delete(re),ce})}))},[$,C,F]),Z=y.useCallback(I=>{H(re=>{const J=new Set(re);return J.has(I.value)?J.delete(I.value):(J.add(I.value),T(I)),J})},[T]),xe=y.useCallback(I=>{me(I)},[]),Se=y.useCallback(()=>{ne&&s?.(ne),te(!1)},[te,s,ne]),Ce=y.useCallback(I=>Y.has(I)||B.has(I),[Y,B]),V=y.useCallback(I=>{if(!P||o)return I;const re=P.toLowerCase();return I.filter(J=>J.label.toLowerCase().includes(re))},[P,o]),oe=(I,re)=>{const J=I.value,ce=$.get(J),he=Ce(I.value),Oe=F.has(J),ge=ne?.value===I.value,le=e?.value===I.value,tt=X.has(I.value),nt=he&&ce&&ce.length>0,Ie=nt?V(ce):[];return l.jsxs(y.Fragment,{children:[l.jsxs("div",{className:A(K.row,{[K.row_active]:ge||le,[K.row_match]:tt}),style:{paddingLeft:16+re*20},onClick:()=>xe(I),children:[I.hasChildren?l.jsx("button",{type:"button",className:A(K.chevron,{[K.chevronExpanded]:he}),onClick:ze=>{ze.stopPropagation(),Z(I)},"aria-label":he?"Свернуть":"Раскрыть",children:l.jsx(nn,{})}):l.jsx("span",{className:K.chevronPlaceholder}),l.jsx("span",{className:K.nodeLabel,children:_?_(I):I.label}),Oe&&l.jsx(st,{size:"extraSmall",className:K.nodeSpinner})]}),nt&&Ie.map(ze=>oe(ze,re+1))]},String(I.value))},et=$.get(De)??[],_r=V(et),At=F.has(De),Sa=e?b?b(e):e.label:t,ja=!At&&!de&&_r.length===0,Na=y.useMemo(()=>de||At&&!!P,[de,At,P]);return l.jsxs("div",{className:A(K.wrapper,g),children:[c&&l.jsx(vn,{htmlFor:"TreeDialogSelectInput",children:c}),l.jsxs("div",{id:"TreeDialogSelectInput",role:"button",tabIndex:w?-1:0,className:A(K.input,{[K.disabled]:w,[K.error]:h},x),onClick:()=>!w&&te(!0),onKeyDown:I=>{!w&&(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),te(!0))},children:[l.jsx("span",{className:A(K.selectedOption,{[K.placeholder]:!e}),children:Sa}),l.jsxs("span",{className:K.actions,children:[i&&e&&l.jsx(ue,{variant:"text",className:K.clearButton,"aria-label":"Очистить выбранное значение",onClick:I=>{I.stopPropagation(),i()},children:l.jsx(Ue,{})}),l.jsx(ue,{variant:"link",className:K.selectButton,disabled:w,onClick:I=>{I.stopPropagation(),te(!0)},children:f})]})]}),l.jsx(wr,{open:k,onOpenChange:te,children:l.jsxs(wn,{className:K.dialogContent,children:[l.jsx(bn,{className:K.dialogHeader,children:l.jsx(_n,{className:K.dialogTitle,children:u})}),l.jsxs("div",{className:K.search,children:[l.jsx(tn,{className:K.searchIcon}),l.jsx("input",{className:K.searchInput,value:j,onChange:I=>S(I.target.value),placeholder:d,autoFocus:!0}),Na&&l.jsx(st,{size:"extraSmall",className:K.searchSpinner})]}),l.jsx("div",{className:K.treeContainer,children:At&&et.length===0?l.jsx("div",{className:K.loadingState,children:l.jsx(st,{size:"small"})}):ja?l.jsx("div",{className:K.emptyState,children:l.jsx(Lt,{title:"Ничего не найдено",subtitle:"Попробуйте изменить поисковый запрос"})}):_r.map(I=>oe(I,0))}),l.jsxs(br,{className:K.dialogFooter,children:[l.jsx(ue,{variant:"secondary",onClick:()=>te(!1),children:p}),l.jsx(ue,{variant:"primary",disabled:!ne,onClick:Se,children:v})]})]})}),h&&l.jsx(gn,{children:h})]})},Vm="_tabs_4o48e_1",qm="_tabItem_4o48e_9",Gm="_active_4o48e_40",Um="_before_4o48e_55",Zm="_after_4o48e_56",Ve={tabs:Vm,tabItem:qm,active:Gm,before:Um,after:Zm};function Ym(e){return e.map((t,n)=>{if("value"in t&&"label"in t)return{key:t.value,label:t.label,className:t.className,needNotification:t.needNotification,header:t.header};const r=t;return{key:n,label:r.title,className:r.className,needNotification:r.needNotification,header:r.header}})}const Xm=a.memo(({className:e,items:t=[],value:n,onValueChange:r,activeTab:o,onClick:s,tabsClassName:i})=>{const c=y.useMemo(()=>Ym(t),[t]),u=y.useMemo(()=>{if(n!==void 0){const d=c.findIndex(f=>f.key===n);return d>=0?d:0}return o??0},[n,o,c]);return l.jsx("div",{className:A(Ve.wrapper,e),children:l.jsx("div",{className:A(Ve.tabs,i),children:c.map((d,f)=>d.label&&l.jsxs("div",{className:A(Ve.tabItem,d.className,{[Ve.active]:u===f,[Ve.first]:f===0,[Ve.last]:f===c.length-1}),style:{zIndex:u===f?c.length:f===0?0:c.length-f},onClick:p=>{p.stopPropagation(),r?r(d.key):s?.(f)},children:[u===f&&f!==0&&l.jsx("span",{className:Ve.before}),d.label,u===f&&f!==c.length-1&&l.jsx("span",{className:Ve.after})]},f))})})}),Km="_wrapper_1xj0t_1",Qm="_itemBlock_1xj0t_8",Jm="_step_1xj0t_16",e0="_clickable_1xj0t_39",t0="_step_inactive_1xj0t_46",n0="_step_current_1xj0t_51",r0="_connector_1xj0t_55",o0="_connector_active_1xj0t_62",s0="_label_1xj0t_66",a0="_label_active_1xj0t_74",Ne={wrapper:Km,itemBlock:Qm,step:Jm,clickable:e0,step_inactive:t0,step_current:n0,connector:r0,connector_active:o0,label:s0,label_active:a0},i0=({items:e,current:t,onChange:n,showCheckOnCompleted:r=!1,className:o})=>{const s=!!n;return l.jsx("div",{className:A(Ne.wrapper,o),role:"list",children:e.map((i,c)=>{const u=c<t,d=c===t,f=c<=t,p=c===e.length-1,v=r&&u,m=i.content??(v?l.jsx(Xn,{}):c+1),w=l.jsx("button",{type:"button",className:A(Ne.step,{[Ne.step_inactive]:!f,[Ne.step_current]:d,[Ne.clickable]:s}),disabled:!s,onClick:()=>n?.(c),"aria-current":d?"step":void 0,"aria-label":typeof i.label=="string"?i.label:`Шаг ${c+1}`,children:m});return l.jsxs(y.Fragment,{children:[i.label?l.jsxs("div",{className:Ne.itemBlock,role:"listitem",children:[w,l.jsx("span",{className:A(Ne.label,{[Ne.label_active]:f}),children:i.label})]}):l.jsx("div",{role:"listitem",children:w}),!p&&l.jsx("span",{className:A(Ne.connector,{[Ne.connector_active]:c<t})})]},c)})})},c0="_container_1whkx_1",l0="_tabs_1whkx_4",u0="_line_1whkx_11",d0="_tabItem_1whkx_21",f0="_header_1whkx_34",p0="_notificationChanges_1whkx_42",m0="_tabs_hasAnimatedIndicator_1whkx_61",h0="_active_1whkx_64",qe={container:c0,tabs:l0,line:u0,tabItem:d0,header:f0,notificationChanges:p0,tabs_hasAnimatedIndicator:m0,active:h0};function g0(e){return e.map((t,n)=>{if("value"in t&&"label"in t)return{key:t.value,label:t.label,className:t.className,header:t.header};const r=t;return{key:n,label:r.title,className:r.className,header:r.header}})}const v0=a.memo(({items:e=[],value:t,onValueChange:n,activeTab:r,className:o,tabsClassName:s,changesIndex:i,badgeValue:c,sliderClassName:u,onClick:d})=>{const f=y.useMemo(()=>g0(e),[e]),p=y.useMemo(()=>{if(t!==void 0){const g=f.findIndex(x=>x.key===t);return g>=0?g:0}return r!==void 0?r:0},[t,r,f]),v=y.useRef(null),m=y.useRef(null),[w,h]=y.useState({left:0,width:0});return y.useEffect(()=>{const g=v.current;if(!g)return;const x=()=>{const C={left:g.offsetLeft||0,width:g.clientWidth||0};h(k=>k.left===C.left&&k.width===C.width?k:C)},b=()=>{m.current!==null&&cancelAnimationFrame(m.current),m.current=requestAnimationFrame(()=>{m.current=null,x()})};b();const _=new ResizeObserver(()=>{b()});return _.observe(g),()=>{_.disconnect(),m.current!==null&&(cancelAnimationFrame(m.current),m.current=null)}},[p]),l.jsx("div",{className:A(qe.container,o),children:l.jsxs("div",{className:A(qe.tabs,qe.tabs_hasAnimatedIndicator,s),children:[f.map((g,x)=>g.label&&l.jsxs("div",{ref:p===x?v:void 0,className:A(qe.tabItem,g.className,{[qe.active]:p===x}),onClick:b=>{b.stopPropagation(),n?n(g.key):d?.(x)},children:[g.header&&l.jsx("div",{className:qe.header,children:g.header}),g.label,i===x&&l.jsx("div",{className:qe.notificationChanges,children:c!=null?c>99?"99+":String(c):null})]},x)),l.jsx("div",{className:A(qe.line,u),style:{left:w.left,width:w.width}})]})})}),x0="_root_osjxx_1",w0="_header_osjxx_11",b0="_headerText_osjxx_21",_0="_eyebrow_osjxx_27",y0="_title_osjxx_35",C0="_timeline_osjxx_42",k0="_level_osjxx_47",E0="_rail_osjxx_58",S0="_railLine_osjxx_65",j0="_railLine_completed_osjxx_74",N0="_railLine_toCurrent_osjxx_78",R0="_marker_osjxx_82",L0="_marker_completed_osjxx_101",A0="_marker_current_osjxx_107",P0="_body_osjxx_120",M0="_levelHeader_osjxx_125",O0="_levelName_osjxx_132",I0="_levelName_current_osjxx_141",T0="_levelName_completed_osjxx_147",D0="_iconButton_osjxx_152",$0="_iconButton_danger_osjxx_176",F0="_stages_osjxx_182",B0="_stage_osjxx_182",z0="_stage_current_osjxx_199",H0="_stageHeader_osjxx_204",W0="_stageName_osjxx_212",V0="_stageActions_osjxx_220",q0="_approvers_osjxx_227",G0="_approver_osjxx_227",U0="_approverMain_osjxx_242",Z0="_approverName_osjxx_249",Y0="_approverName_pending_osjxx_255",X0="_approverName_rejected_osjxx_259",K0="_approverName_approved_osjxx_264",Q0="_approverDate_osjxx_268",J0="_rejectReason_osjxx_273",eh="_empty_osjxx_283",th="_addStage_osjxx_300",nh="_addLevel_osjxx_323",rh="_dialogContent_osjxx_327",oh="_dialogInput_osjxx_333",sh="_dialogActions_osjxx_348",ah="_approverPickerWrap_osjxx_354",ih="_approverPickerInput_osjxx_361",M={root:x0,header:w0,headerText:b0,eyebrow:_0,title:y0,timeline:C0,level:k0,rail:E0,railLine:S0,railLine_completed:j0,railLine_toCurrent:N0,marker:R0,marker_completed:L0,marker_current:A0,body:P0,levelHeader:M0,levelName:O0,levelName_current:I0,levelName_completed:T0,iconButton:D0,iconButton_danger:$0,stages:F0,stage:B0,stage_current:z0,stageHeader:H0,stageName:W0,stageActions:V0,approvers:q0,approver:G0,approverMain:U0,approverName:Z0,approverName_pending:Y0,approverName_rejected:X0,approverName_approved:K0,approverDate:Q0,rejectReason:J0,empty:eh,addStage:th,addLevel:nh,dialogContent:rh,dialogInput:oh,dialogActions:sh,approverPickerWrap:ah,approverPickerInput:ih},Vt=({className:e})=>l.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",className:e,"aria-hidden":"true",children:l.jsx("path",{d:"M12 5v14M5 12h14"})});function fo({open:e,title:t,placeholder:n,onSubmit:r,onClose:o}){const[s,i]=y.useState("");y.useEffect(()=>{e||i("")},[e]);const c=()=>{const u=s.trim();u&&(r(u),o())};return l.jsx(wr,{open:e,onOpenChange:u=>!u&&o(),children:l.jsxs(wn,{className:"sm:rounded-2xl",children:[l.jsx(bn,{children:l.jsx(_n,{children:t})}),l.jsxs("div",{className:M.dialogContent,children:[l.jsx("input",{autoFocus:!0,className:M.dialogInput,placeholder:n,value:s,onChange:u=>i(u.target.value),onKeyDown:u=>{u.key==="Enter"&&c(),u.key==="Escape"&&o()}}),l.jsxs("div",{className:M.dialogActions,children:[l.jsx(ue,{variant:"secondary",onClick:o,children:"Отмена"}),l.jsx(ue,{variant:"primary",onClick:c,disabled:!s.trim(),children:"Добавить"})]})]})]})})}const ch=({levels:e,editable:t=!1,title:n="Маршрут согласования",eyebrow:r="Workflow",className:o,loadApprovers:s,onAddLevel:i,onRemoveLevel:c,onAddStage:u,onRemoveStage:d,onAddApprover:f,onRemoveApprover:p})=>{const[v,m]=y.useState(!1),[w,h]=y.useState(null);return l.jsxs("div",{className:A(M.root,o),children:[l.jsx("div",{className:M.header,children:l.jsxs("div",{className:M.headerText,children:[l.jsx("span",{className:M.eyebrow,children:r}),l.jsx("span",{className:M.title,children:n})]})}),l.jsxs("div",{className:M.timeline,children:[e.map((g,x)=>{const b=e[x+1],_=A(M.railLine,{[M.railLine_completed]:g.status==="completed"&&b?.status==="completed",[M.railLine_toCurrent]:g.status==="completed"&&b?.status==="current"});return l.jsxs("div",{className:M.level,children:[l.jsxs("div",{className:M.rail,children:[x<e.length-1&&l.jsx("span",{className:_}),l.jsx("span",{className:A(M.marker,{[M.marker_completed]:g.status==="completed",[M.marker_current]:g.status==="current"}),children:g.status==="completed"&&l.jsx(Xn,{})})]}),l.jsxs("div",{className:M.body,children:[l.jsxs("div",{className:M.levelHeader,children:[l.jsx("span",{className:A(M.levelName,{[M.levelName_current]:g.status==="current",[M.levelName_completed]:g.status==="completed"}),children:g.name}),t&&l.jsxs(l.Fragment,{children:[l.jsx("button",{type:"button",className:M.iconButton,onClick:()=>h(g.id),"aria-label":"Добавить этап",title:"Добавить этап",children:l.jsx(Vt,{})}),l.jsx("button",{type:"button",className:A(M.iconButton,M.iconButton_danger),onClick:()=>c?.(g.id),"aria-label":"Удалить уровень",title:"Удалить уровень",children:l.jsx(Ue,{})})]})]}),g.stages.length>0&&l.jsx("div",{className:M.stages,children:g.stages.map(C=>l.jsxs("div",{className:A(M.stage,{[M.stage_current]:g.status==="current"}),children:[l.jsxs("div",{className:M.stageHeader,children:[l.jsx("span",{className:M.stageName,children:C.name}),l.jsx("div",{className:M.stageActions,children:t&&l.jsxs(l.Fragment,{children:[s?l.jsx(Ea,{value:null,placeholder:"",title:"Добавить согласующего",searchPlaceholder:"Поиск сотрудника",loadOptions:s,onChange:k=>f?.(g.id,C.id,k),className:M.approverPickerWrap,inputClassName:M.approverPickerInput,selectedOptionRender:()=>l.jsx(Vt,{})}):null,l.jsx("button",{type:"button",className:A(M.iconButton,M.iconButton_danger),onClick:()=>d?.(g.id,C.id),"aria-label":"Удалить этап",title:"Удалить этап",children:l.jsx(Ue,{})})]})})]}),C.approvers.length===0?l.jsxs("span",{className:M.empty,children:[l.jsx(ho,{}),"Согласующий не назначен"]}):l.jsx("div",{className:M.approvers,children:C.approvers.map(k=>{const E=k.status??"pending";return l.jsxs("div",{className:M.approver,children:[l.jsxs("div",{className:M.approverMain,children:[l.jsx("span",{className:A(M.approverName,{[M.approverName_pending]:E==="pending",[M.approverName_approved]:E==="approved",[M.approverName_rejected]:E==="rejected"}),children:k.fullName}),k.actedAt&&E!=="pending"&&l.jsx("span",{className:M.approverDate,children:k.actedAt}),E==="rejected"&&k.rejectReason&&l.jsxs("span",{className:M.rejectReason,children:["Причина: ",k.rejectReason]})]}),t&&l.jsx("button",{type:"button",className:A(M.iconButton,M.iconButton_danger),onClick:()=>p?.(g.id,C.id,k.id),"aria-label":"Удалить согласующего",title:"Удалить согласующего",children:l.jsx(Ue,{})})]},k.id)})})]},C.id))}),t&&l.jsxs("button",{type:"button",className:M.addStage,onClick:()=>h(g.id),children:[l.jsx(Vt,{})," Добавить этап"]})]})]},g.id)}),t&&l.jsxs("div",{className:M.level,children:[l.jsx("div",{className:M.rail,children:l.jsx("span",{className:A(M.marker),"aria-hidden":!0})}),l.jsx("div",{className:M.body,children:l.jsxs("button",{type:"button",className:A(M.addStage,M.addLevel),onClick:()=>m(!0),children:[l.jsx(Vt,{})," Добавить уровень"]})})]})]}),l.jsx(fo,{open:v,title:"Новый уровень",placeholder:"Название уровня",onClose:()=>m(!1),onSubmit:g=>i?.(g)}),l.jsx(fo,{open:w!==null,title:"Новый этап",placeholder:"Название этапа",onClose:()=>h(null),onSubmit:g=>w&&u?.(w,g)})]})};exports.ApprovalRoute=ch;exports.ArrowDownBlueIcon=ti;exports.ArrowDownIcon=nn;exports.ArrowRightIcon=ei;exports.BaseBlock=ki;exports.Button=ue;exports.CameraIcon=li;exports.CancelIcon=si;exports.Card=$c;exports.Carousel=el;exports.ChartIcon=Ua;exports.ChatIcon=Ja;exports.CheckGreen=ri;exports.ClockFilledIcon=pi;exports.ClockIcon=Aa;exports.CloseRed=ni;exports.CollapsableBlock=nf;exports.Collapse=ea;exports.Colors=wo;exports.CopyIcon=go;exports.CopyTextTrigger=Bo;exports.CrossIcon=Ue;exports.DialogSelect=Ea;exports.DoneIcon=Xn;exports.DownloadIcon=vi;exports.EditIcon=di;exports.EmptyComponent=Lt;exports.EmptyIcon=xo;exports.EnvelopIcon=ai;exports.FeedbackIcon=Za;exports.FileReloadIcon=Pa;exports.FileSync=Qa;exports.FilterIcon=ui;exports.FolderEditIcon=Ma;exports.GraduateIcon=Oa;exports.GridIcon=Ia;exports.HeartIcon=Ta;exports.HelpIcon=Da;exports.HistoryBlue=oi;exports.HomeIcon=La;exports.InfoIcon=vo;exports.InputCaption=gn;exports.IslandIcon=gi;exports.Label=vn;exports.ListIcon=$a;exports.MarketIcon=Fa;exports.MegaphoneIcon=Xa;exports.MessageIcon=ii;exports.NotebookIcon=Ga;exports.PhoneIcon=ci;exports.PlaneIcon=Ba;exports.Popover=B1;exports.ProfileIcon=za;exports.ProfileSearchIcon=Ha;exports.RadioGroupButton=Ic;exports.ReloadIcon=fi;exports.SchoolIcon=hi;exports.SearchIcon=tn;exports.Select=bp;exports.SettingsIcon=mi;exports.Spinner=st;exports.Stepper=i0;exports.Tabs=v0;exports.TabsRounded=Xm;exports.Tag=oa;exports.TaskListIcon=Ya;exports.TimesheetIcon=qa;exports.TooltipDark=er;exports.TooltipLight=Ls;exports.TreeDialogSelect=Wm;exports.TrendUpIcon=Wa;exports.UserSwitchIcon=Ka;exports.WalletIcon=Va;exports.WarnIcon=ho;exports.useDropdownPosition=Ac;exports.useMeasureElement=Fo;
|
|
46
46
|
//# sourceMappingURL=ui-library.cjs.js.map
|