@andreyfedkovich/cozy-ui 0.2.3 → 0.4.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/dist-lib/index.d.ts +178 -2
- package/dist-lib/styles.css +1 -1
- package/dist-lib/ui-library.cjs.js +18 -18
- package/dist-lib/ui-library.cjs.js.map +1 -1
- package/dist-lib/ui-library.es.js +3928 -3083
- package/dist-lib/ui-library.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),l=require("react/jsx-runtime"),Et=require("react-dom");function mo(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=mo(y),ho=mo(Et),Pa=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"})),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("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"})),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("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"})))),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("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"})))),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("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"})),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("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"})),$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_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"})))),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_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"})))),Ba=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"})),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("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"})),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_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"})))),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_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"})))),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("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"})))),qa=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"})))),Ga=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"})),Ua=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"})),Za=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"})),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:"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"})),Xa=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"})),Ka=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"})),Qa=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"})),Ja=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"})),ei=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"})),ti=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"})),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("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"})),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("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"})),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:"#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"})),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("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"})),ai=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"})),ii=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"})),go=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})),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:"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"})),li=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("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"})),ui=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"})),di=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"})),vo=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"})),wo=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"})),fi=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"})),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:"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"})),mi=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"})),hi=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},a.createElement("path",{d:"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"})),gi=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)"})),vi=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"})),wi=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"})),xi=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 bo=(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))(bo||{});function bi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yn={exports:{}};var Cr;function _i(){return Cr||(Cr=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 yi=_i();const A=bi(yi),Ci="_block_tkxaf_1",ki="_subtitle_tkxaf_6",Ei="_title_tkxaf_13",Cn={block:Ci,subtitle:ki,title:Ei},Si=({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 kr(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=kr(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():kr(e[o],null)}}}}function ye(...e){return a.useCallback(St(...e),e)}var ji=Symbol.for("react.lazy"),Zt=a[" use ".trim().toString()];function Ni(e){return typeof e=="object"&&e!==null&&"then"in e}function _o(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ji&&"_payload"in e&&Ni(e._payload)}function yo(e){const t=Li(e),n=a.forwardRef((r,o)=>{let{children:s,...i}=r;_o(s)&&typeof Zt=="function"&&(s=Zt(s._payload));const c=a.Children.toArray(s),u=c.find(Pi);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 Ri=yo("Slot");function Li(e){const t=a.forwardRef((n,r)=>{let{children:o,...s}=n;if(_o(o)&&typeof Zt=="function"&&(o=Zt(o._payload)),a.isValidElement(o)){const i=Oi(o),c=Mi(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 Ai=Symbol("radix.slottable");function Pi(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ai}function Mi(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 Oi(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 Co(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=Co(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ko(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Co(e))&&(r&&(r+=" "),r+=t);return r}const Er=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Sr=ko,Eo=(e,t)=>n=>{var r;if(t?.variants==null)return Sr(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=Er(f)||Er(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(x=>{let[h,g]=x;return Array.isArray(g)?g.includes({...s,...c}[h]):{...s,...c}[h]===g})?[...d,p,v]:d},[]);return Sr(e,i,u,n?.class,n?.className)},Ii=(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},Ti=(e,t)=>({classGroupId:e,validator:t}),So=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Yt="-",jr=[],Di="arbitrary..",$i=e=>{const t=Bi(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Fi(i);const c=i.split(Yt),u=c[0]===""&&c.length>1?1:0;return jo(c,u,t)},getConflictingClassGroupIds:(i,c)=>{if(c){const u=r[i],d=n[i];return u?d?Ii(d,u):u:d||jr}return n[i]||jr}}},jo=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const d=jo(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}},Fi=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?Di+r:void 0})(),Bi=e=>{const{theme:t,classGroups:n}=e;return zi(n,t)},zi=(e,t)=>{const n=So();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];Hi(i,t,n,r)}},Hi=(e,t,n,r)=>{if(typeof e=="string"){Wi(e,t,n);return}if(typeof e=="function"){Vi(e,t,n,r);return}qi(e,t,n,r)},Wi=(e,t,n)=>{const r=e===""?t:No(t,e);r.classGroupId=n},Vi=(e,t,n,r)=>{if(Gi(e)){Kn(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Ti(n,e))},qi=(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,No(t,c),n,r)}},No=(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=So(),n.nextPart.set(i,c)),n=c}return n},Gi=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ui=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="!",Nr=":",Zi=[],Rr=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Yi=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===Nr){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 x=d&&d>u?d-u:void 0;return Rr(s,m,v,x)};if(t){const o=t+Nr,s=r;r=i=>i.startsWith(o)?s(i.slice(o.length)):Rr(Zi,!1,i,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Xi=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}},Ki=e=>({cache:Ui(e.cacheSize),parseClassName:Yi(e),sortModifiers:Xi(e),...$i(e)}),Qi=/\s+/,Ji=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],c=e.trim().split(Qi);let u="";for(let d=c.length-1;d>=0;d-=1){const f=c[d],{isExternal:p,modifiers:v,hasImportantModifier:m,baseClassName:x,maybePostfixModifierPosition:h}=n(f);if(p){u=f+(u.length>0?" "+u:u);continue}let g=!!h,w=r(g?x.substring(0,h):x);if(!w){if(!g){u=f+(u.length>0?" "+u:u);continue}if(w=r(x),!w){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=_+w;if(i.indexOf(C)>-1)continue;i.push(C);const E=o(w,g);for(let k=0;k<E.length;++k){const j=E[k];i.push(_+j)}u=f+(u.length>0?" "+u:u)}return u},ec=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=Ro(n))&&(o&&(o+=" "),o+=r);return o},Ro=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Ro(e[r]))&&(n&&(n+=" "),n+=t);return n},tc=(e,...t)=>{let n,r,o,s;const i=u=>{const d=t.reduce((f,p)=>p(f),e());return n=Ki(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=Ji(u,n);return o(u,f),f};return s=i,(...u)=>s(ec(...u))},nc=[],ae=e=>{const t=n=>n[e]||nc;return t.isThemeGetter=!0,t},Lo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ao=/^\((?:(\w[\w-]*):)?(.+)\)$/i,rc=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,oc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sc=/\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$/,ac=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ic=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,cc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,We=e=>rc.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),Ve=e=>!!e&&Number.isInteger(Number(e)),kn=e=>e.endsWith("%")&&W(e.slice(0,-1)),Te=e=>oc.test(e),Po=()=>!0,lc=e=>sc.test(e)&&!ac.test(e),Qn=()=>!1,uc=e=>ic.test(e),dc=e=>cc.test(e),fc=e=>!R(e)&&!L(e),pc=e=>Ke(e,Io,Qn),R=e=>Lo.test(e),rt=e=>Ke(e,To,lc),Lr=e=>Ke(e,_c,W),mc=e=>Ke(e,$o,Po),hc=e=>Ke(e,Do,Qn),Ar=e=>Ke(e,Mo,Qn),gc=e=>Ke(e,Oo,dc),Pt=e=>Ke(e,Fo,uc),L=e=>Ao.test(e),_t=e=>ct(e,To),vc=e=>ct(e,Do),Pr=e=>ct(e,Mo),wc=e=>ct(e,Io),xc=e=>ct(e,Oo),Mt=e=>ct(e,Fo,!0),bc=e=>ct(e,$o,!0),Ke=(e,t,n)=>{const r=Lo.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ct=(e,t,n=!1)=>{const r=Ao.exec(e);return r?r[1]?t(r[1]):n:!1},Mo=e=>e==="position"||e==="percentage",Oo=e=>e==="image"||e==="url",Io=e=>e==="length"||e==="size"||e==="bg-size",To=e=>e==="length",_c=e=>e==="number",Do=e=>e==="family-name",$o=e=>e==="number"||e==="weight",Fo=e=>e==="shadow",yc=()=>{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"),x=ae("blur"),h=ae("perspective"),g=ae("aspect"),w=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"],E=()=>[...C(),L,R],k=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],S=()=>[L,R,u],T=()=>[We,"full","auto",...S()],D=()=>[Ve,"none","subgrid",L,R],F=()=>["auto",{span:["full",Ve,L,R]},Ve,L,R],V=()=>[Ve,"auto",L,R],B=()=>["auto","min","max","fr",L,R],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...S()],H=()=>[We,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],O=()=>[We,"screen","full","dvw","lvw","svw","min","max","fit",...S()],Y=()=>[We,"screen","full","lh","dvh","lvh","svh","min","max","fit",...S()],N=()=>[e,L,R],fe=()=>[...C(),Pr,Ar,{position:[L,R]}],re=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ce=()=>["auto","cover","contain",wc,pc,{size:[L,R]}],te=()=>[kn,_t,rt],X=()=>["","none","full",d,L,R],Q=()=>["",W,_t,rt],se=()=>["solid","dashed","dotted","double"],P=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>[W,kn,Pr,Ar],we=()=>["","none",x,L,R],Se=()=>["none",W,L,R],Ce=()=>["none",W,L,R],q=()=>[W,L,R],oe=()=>[We,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Te],breakpoint:[Te],color:[Po],container:[Te],"drop-shadow":[Te],ease:["in","out","in-out"],font:[fc],"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",We,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: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:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[Ve,"auto",L,R]}],basis:[{basis:[We,"full","auto",c,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[W,We,"auto","initial","none",R]}],grow:[{grow:["",W,L,R]}],shrink:[{shrink:["",W,L,R]}],order:[{order:[Ve,"first","last","none",L,R]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],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:H()}],"inline-size":[{inline:["auto",...O()]}],"min-inline-size":[{"min-inline":["auto",...O()]}],"max-inline-size":[{"max-inline":["none",...O()]}],"block-size":[{block:["auto",...Y()]}],"min-block-size":[{"min-block":["auto",...Y()]}],"max-block-size":[{"max-block":["none",...Y()]}],w:[{w:[c,"screen",...H()]}],"min-w":[{"min-w":[c,"screen","none",...H()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[i]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",n,_t,rt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,bc,mc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",kn,R]}],"font-family":[{font:[vc,hc,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,Lr]}],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:[...se(),"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:fe()}],"bg-repeat":[{bg:re()}],"bg-size":[{bg:ce()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ve,L,R],radial:["",L,R],conic:[Ve,L,R]},xc,gc]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"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:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"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:[...se(),"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":[...P(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":P()}],"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:fe()}],"mask-repeat":[{mask:re()}],"mask-size":[{mask:ce()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",L,R]}],filter:[{filter:["","none",L,R]}],blur:[{blur:we()}],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":we()}],"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",w,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":E()}],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:q()}],"skew-x":[{"skew-x":q()}],"skew-y":[{"skew-y":q()}],transform:[{transform:[L,R,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"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,Lr]}],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"]}},Cc=tc(yc);function Pe(...e){return Cc(ko(e))}const kc=Eo("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?Ri:"button";return l.jsx(i,{className:Pe(kc({variant:t,size:n,className:e})),ref:s,...o})});Jn.displayName="Button";const Ec="_cssloadSpeedingWheel_akex8_6",Sc="_bigSize_akex8_20",jc="_smallSize_akex8_26",Nc="_extraSmallSize_akex8_32",Ot={cssloadSpeedingWheel:Ec,bigSize:Sc,smallSize:jc,extraSmallSize:Nc};function Rc(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=Rc(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"})})})},Lc="_button_fafaj_1",Ac="_button__loader_fafaj_186",Pc="_button__content_fafaj_193",lt={button:Lc,"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:Ac,button__content:Pc},de=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"})})]})});de.displayName="Button";const Bo=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])},Mr={capture:!0,passive:!0},Mc=({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 x=f.parentElement;for(;x;){const h=window.getComputedStyle(x),g=h.overflow+h.overflowY+h.overflowX;/(auto|scroll)/.test(g)&&(m.push(x),x.addEventListener("scroll",d)),x=x.parentElement}return window.addEventListener("scroll",d,Mr),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,Mr),window.removeEventListener("resize",d),window.removeEventListener("transitionend",d),window.removeEventListener("animationend",d),m.forEach(h=>{h.removeEventListener("scroll",d)})}},[r,e,d]),s},Oc="_container_1dkro_1",Ic="_activeButton_1dkro_16",Tc="_slider_1dkro_22",En={container:Oc,activeButton:Ic,slider:Tc},Dc=({options:e,value:t,defaultValue:n,data:r,activeButton:o,defaultActiveButton:s,onChange:i})=>{const c=y.useMemo(()=>e?.length?e.map(w=>({id:w.value,label:w.label,additionalComponent:w.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:x}=Bo(v.current.get(m)),h=w=>{w.id!==m&&(i?.(w.id),d(w.id))},g=y.useCallback((w,b)=>{v.current.set(b,w)},[]);return y.useEffect(()=>{const w=c.findIndex(b=>b.id===m);if(w>=0){const _=c.slice(0,w).reduce((C,E)=>{const k=v.current.get(E.id);if(k){const j=k.getBoundingClientRect().width;C+=j}return C},0);p({transform:`translateX(${_}px)`,width:x})}},[m,x,c]),l.jsxs("div",{className:En.container,children:[c.map(w=>l.jsx("div",{ref:b=>g(b,w.id),children:l.jsxs(de,{size:"small",onClick:()=>h(w),className:A({[En.activeButton]:w.id===m}),children:[w.label,w.additionalComponent]})},w.id)),l.jsx("div",{className:En.slider,style:f})]})},$c="_card_1cqzz_1",Fc="_link_1cqzz_17",Or={card:$c,link:Fc},Bc=y.memo(({text:e,width:t,height:n,className:r,backgroundColor:o,imageUrl:s,textColor:i,link:c})=>{const u=A(Or.card,{[Or.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})})}),zc="_carouselWrapper_12142_1",Hc="_carousel_12142_1",Wc="_viewport_12142_13",Vc="_slide_12142_19",qc="_activeSlide_12142_24",Gc="_itemContent_12142_28",Uc="_controls_12142_36",Zc="_carouselControl_12142_48",Yc="_prevIcon_12142_71",Xc="_nextIcon_12142_72",Kc="_indicators_12142_90",Qc="_activeIndicator_12142_115",ve={carouselWrapper:zc,carousel:Hc,viewport:Wc,slide:Vc,activeSlide:qc,itemContent:Gc,controls:Uc,carouselControl:Zc,prevIcon:Yc,nextIcon:Xc,indicators:Kc,activeIndicator:Qc},Jc=e=>"items"in e&&Array.isArray(e.items)&&"renderItem"in e&&typeof e.renderItem=="function",el=e=>Jc(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})),tl=e=>{const t={...e};return delete t.items,delete t.renderItem,delete t.children,t},nl=e=>{const t=el(e),n=t.length,r=tl(e),{className:o,dark:s,enableTouch:i,fade:c,interval:u,keyboard:d=!0,pause:f,ride:p,slide:v,...m}=r,[x,h]=y.useState(0),g=()=>{h(k=>k===n-1?0:k+1)},w=()=>{h(k=>k===0?n-1:k-1)},b=k=>{h(k)},_=n>1,C=y.useMemo(()=>t.map(k=>({key:k.key})),[t]),E=k=>{m.onKeyDown?.(k),!(k.defaultPrevented||!d||!_)&&(k.key==="ArrowLeft"&&w(),k.key==="ArrowRight"&&g())};return n?_?l.jsx("div",{className:ve.carouselWrapper,children:l.jsxs("div",{...m,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===x?ve.activeSlide:""].filter(Boolean).join(" "),"aria-hidden":j!==x,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:w,"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===x?ve.activeIndicator:void 0,type:"button",onClick:()=>b(j),"aria-label":`Go to slide ${j+1}`,"aria-current":j===x},k.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},xe=8;function rl(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 ol="_overlay_1pnex_1",sl="_fadeIn_1pnex_1",al="_arrow_1pnex_16",il="_top_1pnex_22",cl="_bottom_1pnex_28",ll="_left_1pnex_34",ul="_right_1pnex_40",Sn={overlay:ol,fadeIn:sl,arrow:al,top:il,bottom:cl,left:ll,right:ul};function dl(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,[x,h]=y.useState(r),g=m?n:x,w=y.useCallback(N=>{m||h(N),c?.(N)},[m,c]),b=y.useRef(null),[_,C]=y.useState(null),E=y.useRef(null),k=y.useRef(null),j=Array.isArray(o)?o:[o],S=j.includes("hover"),T=j.includes("click"),D=y.useCallback(()=>{E.current&&(clearTimeout(E.current),E.current=null)},[]),F=y.useCallback(()=>{k.current&&(clearTimeout(k.current),k.current=null)},[]),V=y.useCallback(()=>{S&&(F(),E.current=setTimeout(()=>w(!0),s))},[S,s,w,F]),B=y.useCallback(()=>{S&&(D(),k.current=setTimeout(()=>w(!1),i))},[S,i,w,D]),z=y.useCallback(N=>{T&&(N.preventDefault(),w(!g))},[T,g,w]);y.useEffect(()=>{if(!T||!g||m)return;const N=fe=>{const re=b.current;re&&!re.contains(fe.target)&&w(!1)};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[T,g,m,w]),y.useLayoutEffect(()=>{if(!g||!b.current){C(null);return}const N=b.current.getBoundingClientRect();C(rl(N,u))},[g,u]),y.useEffect(()=>()=>{D(),F()},[D,F]);const U=typeof document<"u"?v():null,$=dl(u),H=e??t,O=g&&H!=null&&H!==""&&_&&U&&Et.createPortal(l.jsxs("span",{className:A(Sn.overlay,p),style:{left:_.left,top:_.top,transform:_.transform},role:"tooltip",children:[H,d&&l.jsx("span",{className:A(Sn.arrow,Sn[$])})]}),U),Y=!m&&(S||T)?{onMouseEnter:V,onMouseLeave:B,onClick:T?z:void 0}:{};return l.jsxs(l.Fragment,{children:[l.jsx("span",{ref:b,...Y,children:f}),O]})});er.displayName="TooltipDark";const fl="_wrapper_15jb4_1",pl="_trigger_15jb4_5",ml="_icon_15jb4_27",jn={wrapper:fl,trigger:pl,icon:ml},zo=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(vo,{className:jn.icon,"aria-hidden":!0})]})})})});zo.displayName="CopyTextTrigger";function Ho(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 hl(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,...x}=p,h=v?.[e]?.[u]||c,g=a.useMemo(()=>x,Object.values(x));return l.jsx(h.Provider,{value:g,children:m})};d.displayName=s+"Provider";function f(p,v){const m=v?.[e]?.[u]||c,x=a.useContext(m);if(x)return x;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,gl(o,...t)]}function gl(...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 vl(e){const t=wl(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,c=a.Children.toArray(s),u=c.find(bl);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 wl(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=yl(o),c=_l(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 xl=Symbol("radix.slottable");function bl(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xl}function _l(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 yl(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 Cl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],me=Cl.reduce((e,t)=>{const n=vl(`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 kl(e,t){e&&ho.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 El(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 Sl="DismissableLayer",zn="dismissableLayer.update",jl="dismissableLayer.pointerDownOutside",Nl="dismissableLayer.focusOutside",Ir,Wo=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(Wo),[f,p]=a.useState(null),v=f?.ownerDocument??globalThis?.document,[,m]=a.useState({}),x=ye(t,j=>p(j)),h=Array.from(d.layers),[g]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=h.indexOf(g),b=f?h.indexOf(f):-1,_=d.layersWithOutsidePointerEventsDisabled.size>0,C=b>=w,E=Al(j=>{const S=j.target,T=[...d.branches].some(D=>D.contains(S));!C||T||(o?.(j),i?.(j),j.defaultPrevented||c?.())},v),k=Pl(j=>{const S=j.target;[...d.branches].some(D=>D.contains(S))||(s?.(j),i?.(j),j.defaultPrevented||c?.())},v);return El(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&&(Ir=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Tr(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Ir)}},[f,v,n,d]),a.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Tr())},[f,d]),a.useEffect(()=>{const j=()=>m({});return document.addEventListener(zn,j),()=>document.removeEventListener(zn,j)},[]),l.jsx(me.div,{...u,ref:x,style:{pointerEvents:_?C?"auto":"none":void 0,...e.style},onFocusCapture:ie(e.onFocusCapture,k.onFocusCapture),onBlurCapture:ie(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ie(e.onPointerDownCapture,E.onPointerDownCapture)})});on.displayName=Sl;var Rl="DismissableLayerBranch",Ll=a.forwardRef((e,t)=>{const n=a.useContext(Wo),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})});Ll.displayName=Rl;function Al(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(){Vo(jl,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 Pl(e,t=globalThis?.document){const n=ht(e),r=a.useRef(!1);return a.useEffect(()=>{const o=s=>{s.target&&!r.current&&Vo(Nl,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 Tr(){const e=new CustomEvent(zn);document.dispatchEvent(e)}function Vo(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?kl(o,s):o.dispatchEvent(s)}var Ze=globalThis?.document?a.useLayoutEffect:()=>{},Ml=a[" useId ".trim().toString()]||(()=>{}),Ol=0;function yt(e){const[t,n]=a.useState(Ml());return Ze(()=>{n(r=>r??String(Ol++))},[e]),e||(t?`radix-${t}`:"")}const Il=["top","right","bottom","left"],Ye=Math.min,be=Math.max,Xt=Math.round,It=Math.floor,Ae=e=>({x:e,y:e}),Tl={left:"right",right:"left",bottom:"top",top:"bottom"};function Hn(e,t,n){return be(e,Ye(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 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 Dl(e,t,n){n===void 0&&(n=!1);const r=xt(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 $l(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 Dr=["left","right"],$r=["right","left"],Fl=["top","bottom"],Bl=["bottom","top"];function zl(e,t,n){switch(e){case"top":case"bottom":return n?t?$r:Dr:t?Dr:$r;case"left":case"right":return t?Fl:Bl;default:return[]}}function Hl(e,t,n,r){const o=xt(e);let s=zl(Be(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=Be(e);return Tl[t]+e.slice(t.length)}function Wl(e){return{top:0,right:0,bottom:0,left:0,...e}}function qo(e){return typeof e!="number"?Wl(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 Fr(e,t,n){let{reference:r,floating:o}=e;const s=Le(t),i=rr(t),c=nr(i),u=Be(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(xt(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 Vl(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}=Fe(t,e),x=qo(m),g=c[v?p==="floating"?"reference":"floating":p],w=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},E=Qt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:b,offsetParent:_,strategy:u}):b);return{top:(w.top-E.top+x.top)/C.y,bottom:(E.bottom-w.bottom+x.bottom)/C.y,left:(w.left-E.left+x.left)/C.x,right:(E.right-w.right+x.right)/C.x}}const ql=50,Gl=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,c=i.detectOverflow?i:{...i,detectOverflow:Vl},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}=Fr(d,r,u),v=r,m=0;const x={};for(let h=0;h<s.length;h++){const g=s[h];if(!g)continue;const{name:w,fn:b}=g,{x:_,y:C,data:E,reset:k}=await b({x:f,y:p,initialPlacement:r,placement:v,strategy:o,middlewareData:x,rects:d,platform:c,elements:{reference:e,floating:t}});f=_??f,p=C??p,x[w]={...x[w],...E},k&&m<ql&&(m++,typeof k=="object"&&(k.placement&&(v=k.placement),k.rects&&(d=k.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:f,y:p}=Fr(d,v,u)),h=-1)}return{x:f,y:p,placement:v,strategy:o,middlewareData:x}},Ul=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 p=qo(f),v={x:n,y:r},m=rr(o),x=nr(m),h=await i.getDimensions(d),g=m==="y",w=g?"top":"left",b=g?"bottom":"right",_=g?"clientHeight":"clientWidth",C=s.reference[x]+s.reference[m]-v[m]-s.floating[x],E=v[m]-s.reference[m],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let j=k?k[_]:0;(!j||!await(i.isElement==null?void 0:i.isElement(k)))&&(j=c.floating[_]||s.floating[x]);const S=C/2-E/2,T=j/2-h[x]/2-1,D=Ye(p[w],T),F=Ye(p[b],T),V=D,B=j-h[x]-F,z=j/2-h[x]/2+S,U=Hn(V,z,B),$=!u.arrow&&xt(o)!=null&&z!==U&&s.reference[x]/2-(z<V?D:F)-h[x]/2<0,H=$?z<V?z-V:z-B:0;return{[m]:v[m]+H,data:{[m]:U,centerOffset:z-U-H,...$&&{alignmentOffset:H}},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:p=!0,fallbackPlacements:v,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:h=!0,...g}=Fe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=Be(o),b=Le(c),_=Be(c)===c,C=await(u.isRTL==null?void 0:u.isRTL(d.floating)),E=v||(_||!h?[Kt(c)]:$l(c)),k=x!=="none";!v&&k&&E.push(...Hl(c,h,x,C));const j=[c,...E],S=await u.detectOverflow(t,g),T=[];let D=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&T.push(S[w]),p){const z=Dl(o,i,C);T.push(S[z[0]],S[z[1]])}if(D=[...D,{placement:o,overflows:T}],!T.every(z=>z<=0)){var F,V;const z=(((F=s.flip)==null?void 0:F.index)||0)+1,U=j[z];if(U&&(!(p==="alignment"?b!==Le(U):!1)||D.every(O=>Le(O.placement)===b?O.overflows[0]>0:!0)))return{data:{index:z,overflows:D},reset:{placement:U}};let $=(V=D.filter(H=>H.overflows[0]<=0).sort((H,O)=>H.overflows[1]-O.overflows[1])[0])==null?void 0:V.placement;if(!$)switch(m){case"bestFit":{var B;const H=(B=D.filter(O=>{if(k){const Y=Le(O.placement);return Y===b||Y==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(Y=>Y>0).reduce((Y,N)=>Y+N,0)]).sort((O,Y)=>O[1]-Y[1])[0])==null?void 0:B[0];H&&($=H);break}case"initialPlacement":$=c;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Br(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function zr(e){return Il.some(t=>e[t]>=0)}const Yl=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=Br(i,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:zr(c)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),c=Br(i,n.floating);return{data:{escapedOffsets:c,escaped:zr(c)}}}default:return{}}}}},Go=new Set(["left","top"]);async function Xl(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=Go.has(i)?-1:1,f=s&&u?-1:1,p=Fe(t,e);let{mainAxis:v,crossAxis:m,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof x=="number"&&(m=c==="end"?x*-1:x),u?{x:m*f,y:v*d}:{x:v*d,y:m*f}}const Kl=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 Xl(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:w=>{let{x:b,y:_}=w;return{x:b,y:_}}},...d}=Fe(e,t),f={x:n,y:r},p=await s.detectOverflow(t,d),v=Le(Be(o)),m=tr(v);let x=f[m],h=f[v];if(i){const w=m==="y"?"top":"left",b=m==="y"?"bottom":"right",_=x+p[w],C=x-p[b];x=Hn(_,x,C)}if(c){const w=v==="y"?"top":"left",b=v==="y"?"bottom":"right",_=h+p[w],C=h-p[b];h=Hn(_,h,C)}const g=u.fn({...t,[m]:x,[v]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[m]:i,[v]:c}}}}}},Jl=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},p=Le(o),v=tr(p);let m=f[v],x=f[p];const h=Fe(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,E=s.reference[v]+s.reference[_]-g.mainAxis;m<C?m=C:m>E&&(m=E)}if(d){var w,b;const _=v==="y"?"width":"height",C=Go.has(Be(o)),E=s.reference[p]-s.floating[_]+(C&&((w=i.offset)==null?void 0:w[p])||0)+(C?0:g.crossAxis),k=s.reference[p]+s.reference[_]+(C?0:((b=i.offset)==null?void 0:b[p])||0)-(C?g.crossAxis:0);x<E?x=E:x>k&&(x=k)}return{[v]:m,[p]:x}}}},eu=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),p=Be(o),v=xt(o),m=Le(o)==="y",{width:x,height:h}=s.floating;let g,w;p==="top"||p==="bottom"?(g=p,w=v===(await(i.isRTL==null?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(w=p,g=v==="end"?"top":"bottom");const b=h-f.top-f.bottom,_=x-f.left-f.right,C=Ye(h-f[g],b),E=Ye(x-f[w],_),k=!t.middlewareData.shift;let j=C,S=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=_),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=b),k&&!v){const D=be(f.left,0),F=be(f.right,0),V=be(f.top,0),B=be(f.bottom,0);m?S=x-2*(D!==0||F!==0?D+F:be(f.left,f.right)):j=h-2*(V!==0||B!==0?V+B:be(f.top,f.bottom))}await u({...t,availableWidth:S,availableHeight:j});const T=await i.getDimensions(c.floating);return x!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function sn(){return typeof window<"u"}function bt(e){return Uo(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=(Uo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Uo(e){return sn()?e instanceof Node||e instanceof _e(e).Node:!1}function pe(e){return sn()?e instanceof Element||e instanceof _e(e).Element:!1}function ze(e){return sn()?e instanceof HTMLElement||e instanceof _e(e).HTMLElement:!1}function Hr(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 tu(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 nu=/transform|translate|scale|rotate|perspective|filter/,ru=/paint|layout|strict|content/,ot=e=>!!e&&e!=="none";let Nn;function or(e){const t=pe(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))||nu.test(t.willChange||"")||ru.test(t.contain||"")}function ou(e){let t=Xe(e);for(;ze(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 pe(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||Hr(e)&&e.host||Me(e);return Hr(t)?t.host:t}function Zo(e){const t=Xe(e);return gt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ze(t)&&jt(t)?t:Zo(t)}function Ct(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Zo(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 Yo(e){const t=ke(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=Xt(n)!==s||Xt(r)!==i;return c&&(n=s,r=i),{width:n,height:r,$:c}}function ar(e){return pe(e)?e:e.contextElement}function pt(e){const t=ar(e);if(!ze(t))return Ae(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Yo(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 su=Ae(0);function Xo(e){const t=_e(e);return!sr()||!t.visualViewport?su:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function au(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?pe(r)&&(i=pt(r)):i=pt(e));const c=au(s,n,r)?Xo(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&&pe(r)?_e(r):r;let x=v,h=Vn(x);for(;h&&r&&m!==x;){const g=pt(h),w=h.getBoundingClientRect(),b=ke(h),_=w.left+(h.clientLeft+parseFloat(b.paddingLeft))*g.x,C=w.top+(h.clientTop+parseFloat(b.paddingTop))*g.y;u*=g.x,d*=g.y,f*=g.x,p*=g.y,u+=_,d+=C,x=_e(h),h=Vn(x)}}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 Ko(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 iu(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=ze(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?Ko(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 cu(e){return Array.from(e.getClientRects())}function lu(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 Wr=25;function uu(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,x=Math.abs(r.clientWidth-p.clientWidth-m);x<=Wr&&(s-=x)}else d<=Wr&&(s+=d);return{width:s,height:i,x:c,y:u}}function du(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 Vr(e,t,n){let r;if(t==="viewport")r=uu(e,n);else if(t==="document")r=lu(Me(e));else if(pe(t))r=du(t,n);else{const o=Xo(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Qt(r)}function Qo(e,t){const n=Xe(e);return n===t||!pe(n)||gt(n)?!1:ke(n).position==="fixed"||Qo(n,t)}function fu(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=ke(e).position==="fixed";let i=s?Xe(e):e;for(;pe(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&&Qo(e,i))?r=r.filter(f=>f!==i):o=c,i=Xe(i)}return t.set(e,r),r}function pu(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?an(t)?[]:fu(t,this._c):[].concat(n),r],c=Vr(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=Vr(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 mu(e){const{width:t,height:n}=Yo(e);return{width:t,height:n}}function hu(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=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?Ko(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 qr(e,t){if(!ze(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 Jo(e,t){const n=_e(e);if(an(e))return n;if(!ze(e)){let o=Xe(e);for(;o&&!gt(o);){if(pe(o)&&!Rn(o))return o;o=Xe(o)}return n}let r=qr(e,t);for(;r&&tu(r)&&Rn(r);)r=qr(r,t);return r&>(r)&&Rn(r)&&!or(r)?n:r||ou(e)||n}const gu=async function(e){const t=this.getOffsetParent||Jo,n=this.getDimensions,r=await n(e.floating);return{reference:hu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function vu(e){return ke(e).direction==="rtl"}const wu={convertOffsetParentRelativeRectToViewportRelativeRect:iu,getDocumentElement:Me,getClippingRect:pu,getOffsetParent:Jo,getElementRects:gu,getClientRects:cu,getDimensions:mu,getScale:pt,isElement:pe,isRTL:vu};function es(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xu(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 x=It(p),h=It(o.clientWidth-(f+v)),g=It(o.clientHeight-(p+m)),w=It(f),_={rootMargin:-x+"px "+-h+"px "+-g+"px "+-w+"px",threshold:be(0,Ye(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&&!es(d,e.getBoundingClientRect())&&i(),C=!1}try{n=new IntersectionObserver(E,{..._,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,_)}n.observe(e)}return i(!0),s}function ts(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(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const p=d&&c?xu(d,n):null;let v=-1,m=null;i&&(m=new ResizeObserver(w=>{let[b]=w;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 x,h=u?at(e):null;u&&g();function g(){const w=at(e);h&&!es(h,w)&&n(),h=w,x=requestAnimationFrame(g)}return n(),()=>{var w;f.forEach(b=>{o&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),p?.(),(w=m)==null||w.disconnect(),m=null,u&&cancelAnimationFrame(x)}}const bu=Kl,_u=Ql,yu=Zl,Cu=eu,ku=Yl,Gr=Ul,Eu=Jl,Su=(e,t,n)=>{const r=new Map,o={platform:wu,...n},s={...o.platform,_c:r};return Gl(e,t,{...o,platform:s})};var ju=typeof document<"u",Nu=function(){},qt=ju?y.useLayoutEffect:Nu;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 ns(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ur(e,t){const n=ns(e);return Math.round(t*n)/n}function Ln(e){const t=a.useRef(e);return qt(()=>{t.current=e}),t}function rs(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[x,h]=a.useState(null),[g,w]=a.useState(null),b=a.useCallback(O=>{O!==k.current&&(k.current=O,h(O))},[]),_=a.useCallback(O=>{O!==j.current&&(j.current=O,w(O))},[]),C=s||x,E=i||g,k=a.useRef(null),j=a.useRef(null),S=a.useRef(f),T=u!=null,D=Ln(u),F=Ln(o),V=Ln(d),B=a.useCallback(()=>{if(!k.current||!j.current)return;const O={placement:t,strategy:n,middleware:v};F.current&&(O.platform=F.current),Su(k.current,j.current,O).then(Y=>{const N={...Y,isPositioned:V.current!==!1};z.current&&!Jt(S.current,N)&&(S.current=N,ho.flushSync(()=>{p(N)}))})},[v,t,n,F,V]);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&&(k.current=C),E&&(j.current=E),C&&E){if(D.current)return D.current(C,E,B);B()}},[C,E,B,D,T]);const U=a.useMemo(()=>({reference:k,floating:j,setReference:b,setFloating:_}),[b,_]),$=a.useMemo(()=>({reference:C,floating:E}),[C,E]),H=a.useMemo(()=>{const O={position:n,left:0,top:0};if(!$.floating)return O;const Y=Ur($.floating,f.x),N=Ur($.floating,f.y);return c?{...O,transform:"translate("+Y+"px, "+N+"px)",...ns($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:N}},[n,c,$.floating,f.x,f.y]);return a.useMemo(()=>({...f,update:B,refs:U,elements:$,floatingStyles:H}),[f,B,U,$,H])}const Ru=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?Gr({element:r.current,padding:o}).fn(n):{}:r?Gr({element:r,padding:o}).fn(n):{}}}},os=(e,t)=>{const n=bu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Lu=(e,t)=>{const n=_u(e);return{name:n.name,fn:n.fn,options:[e,t]}},Au=(e,t)=>({fn:Eu(e).fn,options:[e,t]}),ss=(e,t)=>{const n=yu(e);return{name:n.name,fn:n.fn,options:[e,t]}},as=(e,t)=>{const n=Cu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pu=(e,t)=>{const n=ku(e);return{name:n.name,fn:n.fn,options:[e,t]}},Mu=(e,t)=>{const n=Ru(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Ou="Arrow",is=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"})})});is.displayName=Ou;var Iu=is;function Tu(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",[cs,un]=rn(ir),[Du,ls]=cs(ir),us=e=>{const{__scopePopper:t,children:n}=e,[r,o]=a.useState(null);return l.jsx(Du,{scope:t,anchor:r,onAnchorChange:o,children:n})};us.displayName=ir;var ds="PopperAnchor",fs=a.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=ls(ds,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})});fs.displayName=ds;var cr="PopperContent",[$u,Fu]=cs(cr),ps=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:x,...h}=e,g=ls(cr,n),[w,b]=a.useState(null),_=ye(t,se=>b(se)),[C,E]=a.useState(null),k=Tu(C),j=k?.width??0,S=k?.height??0,T=r+(s!=="center"?"-"+s:""),D=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},F=Array.isArray(d)?d:[d],V=F.length>0,B={padding:D,boundary:F.filter(zu),altBoundary:V},{refs:z,floatingStyles:U,placement:$,isPositioned:H,middlewareData:O}=rs({strategy:"fixed",placement:T,whileElementsMounted:(...se)=>ts(...se,{animationFrame:m==="always"}),elements:{reference:g.anchor},middleware:[os({mainAxis:o+S,alignmentAxis:i}),u&&Lu({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Au():void 0,...B}),u&&ss({...B}),as({...B,apply:({elements:se,rects:P,availableWidth:Z,availableHeight:we})=>{const{width:Se,height:Ce}=P.reference,q=se.floating.style;q.setProperty("--radix-popper-available-width",`${Z}px`),q.setProperty("--radix-popper-available-height",`${we}px`),q.setProperty("--radix-popper-anchor-width",`${Se}px`),q.setProperty("--radix-popper-anchor-height",`${Ce}px`)}}),C&&Mu({element:C,padding:c}),Hu({arrowWidth:j,arrowHeight:S}),v&&Pu({strategy:"referenceHidden",...B})]}),[Y,N]=gs($),fe=ht(x);Ze(()=>{H&&fe?.()},[H,fe]);const re=O.arrow?.x,ce=O.arrow?.y,te=O.arrow?.centerOffset!==0,[X,Q]=a.useState();return Ze(()=>{w&&Q(window.getComputedStyle(w).zIndex)},[w]),l.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:H?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"--radix-popper-transform-origin":[O.transformOrigin?.x,O.transformOrigin?.y].join(" "),...O.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx($u,{scope:n,placedSide:Y,onArrowChange:E,arrowX:re,arrowY:ce,shouldHideArrow:te,children:l.jsx(me.div,{"data-side":Y,"data-align":N,...h,ref:_,style:{...h.style,animation:H?void 0:"none"}})})})});ps.displayName=cr;var ms="PopperArrow",Bu={top:"bottom",right:"left",bottom:"top",left:"right"},hs=a.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Fu(ms,r),i=Bu[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(Iu,{...o,ref:n,style:{...o.style,display:"block"}})})});hs.displayName=ms;function zu(e){return e!==null}var Hu=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]=gs(n),p={start:"0%",center:"50%",end:"100%"}[f],v=(o.arrow?.x??0)+c/2,m=(o.arrow?.y??0)+u/2;let x="",h="";return d==="bottom"?(x=i?p:`${v}px`,h=`${-u}px`):d==="top"?(x=i?p:`${v}px`,h=`${r.floating.height+u}px`):d==="right"?(x=`${-u}px`,h=i?p:`${m}px`):d==="left"&&(x=`${r.floating.width+u}px`,h=i?p:`${m}px`),{data:{x,y:h}}}});function gs(e){const[t,n="center"]=e.split("-");return[t,n]}var vs=us,lr=fs,ws=ps,xs=hs,Wu="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(me.div,{...r,ref:t}),i):null});dn.displayName=Wu;function Vu(e,t){return a.useReducer((n,r)=>t[n][r]??n,e)}var Qe=e=>{const{present:t,children:n}=e,r=qu(t),o=typeof n=="function"?n({present:r.isPresent}):a.Children.only(n),s=ye(r.ref,Gu(o));return typeof n=="function"||r.isPresent?a.cloneElement(o,{ref:s}):null};Qe.displayName="Presence";function qu(e){const[t,n]=a.useState(),r=a.useRef(null),o=a.useRef(e),s=a.useRef("none"),i=e?"mounted":"unmounted",[c,u]=Vu(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 Gu(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 Uu=Symbol("radix.slottable");function Zu(e){const t=({children:n})=>l.jsx(l.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Uu,t}var Yu=a[" useInsertionEffect ".trim().toString()]||Ze;function ur({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=Xu({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=Ku(f)?f(e):f;p!==e&&i.current?.(p)}else s(f)},[c,e,s,i]);return[u,d]}function Xu({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),s=a.useRef(t);return Yu(()=>{s.current=t},[t]),a.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function Ku(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"}),Ju="VisuallyHidden",bs=a.forwardRef((e,t)=>l.jsx(me.span,{...e,ref:t,style:{...Qu,...e.style}}));bs.displayName=Ju;var ed=bs,[fn]=rn("Tooltip",[un]),pn=un(),_s="TooltipProvider",td=700,qn="tooltip.open",[nd,dr]=fn(_s),ys=e=>{const{__scopeTooltip:t,delayDuration:n=td,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(nd,{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})};ys.displayName=_s;var kt="Tooltip",[rd,Nt]=fn(kt),Cs=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),x=i??u.disableHoverableContent,h=c??u.delayDuration,g=a.useRef(!1),[w,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(()=>w?g.current?"delayed-open":"instant-open":"closed",[w]),C=a.useCallback(()=>{window.clearTimeout(m.current),m.current=0,g.current=!1,b(!0)},[b]),E=a.useCallback(()=>{window.clearTimeout(m.current),m.current=0,b(!1)},[b]),k=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(vs,{...d,children:l.jsx(rd,{scope:t,contentId:v,open:w,stateAttribute:_,trigger:f,onTriggerChange:p,onTriggerEnter:a.useCallback(()=>{u.isOpenDelayedRef.current?k():C()},[u.isOpenDelayedRef,k,C]),onTriggerLeave:a.useCallback(()=>{x?E():(window.clearTimeout(m.current),m.current=0)},[E,x]),onOpen:C,onClose:E,disableHoverableContent:x,children:n})})};Cs.displayName=kt;var Gn="TooltipTrigger",ks=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(me.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)})})});ks.displayName=Gn;var fr="TooltipPortal",[od,sd]=fn(fr,{forceMount:void 0}),Es=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Nt(fr,t);return l.jsx(od,{scope:t,forceMount:n,children:l.jsx(Qe,{present:n||s.open,children:l.jsx(dn,{asChild:!0,container:o,children:r})})})};Es.displayName=fr;var vt="TooltipContent",Ss=a.forwardRef((e,t)=>{const n=sd(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(js,{side:o,...s,ref:t}):l.jsx(ad,{side:o,...s,ref:t})})}),ad=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((x,h)=>{const g=x.currentTarget,w={x:x.clientX,y:x.clientY},b=dd(w,g.getBoundingClientRect()),_=fd(w,b),C=pd(h.getBoundingClientRect()),E=hd([..._,...C]);c(E),p(!0)},[p]);return a.useEffect(()=>()=>v(),[v]),a.useEffect(()=>{if(u&&f){const x=g=>m(g,f),h=g=>m(g,u);return u.addEventListener("pointerleave",x),f.addEventListener("pointerleave",h),()=>{u.removeEventListener("pointerleave",x),f.removeEventListener("pointerleave",h)}}},[u,f,m,v]),a.useEffect(()=>{if(i){const x=h=>{const g=h.target,w={x:h.clientX,y:h.clientY},b=u?.contains(g)||f?.contains(g),_=!md(w,i);b?v():_&&(v(),d())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[u,f,i,d,v]),l.jsx(js,{...e,ref:s})}),[id,cd]=fn(kt,{isInside:!1}),ld=Zu("TooltipContent"),js=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(ws,{"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(ld,{children:r}),l.jsx(id,{scope:n,isInside:!0,children:l.jsx(ed,{id:u.contentId,role:"tooltip",children:o||r})})]})})});Ss.displayName=vt;var Ns="TooltipArrow",ud=a.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=pn(n);return cd(Ns,n).isInside?null:l.jsx(xs,{...o,...r,ref:t})});ud.displayName=Ns;function dd(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 fd(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 pd(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 md(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 hd(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),gd(t)}function gd(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 vd=ys,wd=Cs,xd=ks,bd=Es,Rs=Ss;const _d=vd,yd=wd,Cd=xd,Ls=a.forwardRef(({className:e,sideOffset:t=4,...n},r)=>l.jsx(bd,{children:l.jsx(Rs,{ref:r,sideOffset:t,className:Pe("z-50 overflow-hidden rounded-md px-3 py-1.5 text-xs 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})}));Ls.displayName=Rs.displayName;const kd="_anchor_rpda1_1",Ed="_tooltip_rpda1_6",Zr={anchor:kd,tooltip:Ed},Yr=e=>typeof e=="string"?document.getElementById(e):"current"in e?e.current:e,Sd=(e="top")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},Xr=(e,t)=>typeof e=="number"?e:e?.[t]??0,As=({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:x}=y.useMemo(()=>Sd(n),[n]),h=y.useCallback(()=>{const w=Yr(t);p(w?.getBoundingClientRect()??null)},[t]),g=y.useCallback(w=>{o===void 0&&d(w),s?.()},[o,s]);return y.useEffect(()=>{const w=Yr(t);if(!w)return;let b=null,_=null;const C=()=>{b&&clearTimeout(b),_&&clearTimeout(_)},E=()=>{C(),h(),b=setTimeout(()=>g(!0),Xr(i,"show"))},k=()=>{c&&(C(),_=setTimeout(()=>g(!1),Xr(i,"hide")))};return w.addEventListener("mouseenter",E),w.addEventListener("mouseleave",k),w.addEventListener("focus",E),w.addEventListener("blur",k),window.addEventListener("scroll",h,!0),window.addEventListener("resize",h),()=>{C(),w.removeEventListener("mouseenter",E),w.removeEventListener("mouseleave",k),w.removeEventListener("focus",E),w.removeEventListener("blur",k),window.removeEventListener("scroll",h,!0),window.removeEventListener("resize",h)}},[c,i,g,t,h]),f?l.jsx(_d,{delayDuration:0,children:l.jsxs(yd,{open:v,onOpenChange:g,children:[Ho(l.jsx(Cd,{asChild:!0,children:l.jsx("span",{className:Zr.anchor,style:{left:f.left,top:f.top,width:f.width,height:f.height}})})),l.jsx(Ls,{side:m,align:x,className:A(Zr.tooltip,r),children:e})]})}):null};var An=0;function Ps(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Kr()),document.body.insertAdjacentElement("beforeend",e[1]??Kr()),An++,()=>{An===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),An--}},[])}function Kr(){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",Qr={bubbles:!1,cancelable:!0},jd="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}))},w=function(_){if(document.activeElement===document.body)for(const E of _)E.removedNodes.length>0&&Ge(c)};document.addEventListener("focusin",h),document.addEventListener("focusout",g);const b=new MutationObserver(w);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){eo.add(m);const h=document.activeElement;if(!c.contains(h)){const w=new CustomEvent(Pn,Qr);c.addEventListener(Pn,d),c.dispatchEvent(w),w.defaultPrevented||(Nd(Md(Ms(c)),{select:!0}),document.activeElement===h&&Ge(c))}return()=>{c.removeEventListener(Pn,d),setTimeout(()=>{const w=new CustomEvent(Mn,Qr);c.addEventListener(Mn,f),c.dispatchEvent(w),w.defaultPrevented||Ge(h??document.body,{select:!0}),c.removeEventListener(Mn,f),eo.remove(m)},0)}}},[c,d,f,m]);const x=a.useCallback(h=>{if(!n&&!r||m.paused)return;const g=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,w=document.activeElement;if(g&&w){const b=h.currentTarget,[_,C]=Rd(b);_&&C?!h.shiftKey&&w===C?(h.preventDefault(),n&&Ge(_,{select:!0})):h.shiftKey&&w===_&&(h.preventDefault(),n&&Ge(C,{select:!0})):w===b&&h.preventDefault()}},[n,r,m.paused]);return l.jsx(me.div,{tabIndex:-1,...i,ref:v,onKeyDown:x})});pr.displayName=jd;function Nd(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ge(r,{select:t}),document.activeElement!==n)return}function Rd(e){const t=Ms(e),n=Jr(t,e),r=Jr(t.reverse(),e);return[n,r]}function Ms(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 Jr(e,t){for(const n of e)if(!Ld(n,{upTo:t}))return n}function Ld(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 Ad(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&&Ad(e)&&t&&e.select()}}var eo=Pd();function Pd(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=to(e,t),e.unshift(t)},remove(t){e=to(e,t),e[0]?.resume()}}}function to(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Md(e){return e.filter(t=>t.tagName!=="A")}function Od(e){const t=Id(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,c=a.Children.toArray(s),u=c.find(Dd);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 Id(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=Fd(o),c=$d(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 Td=Symbol("radix.slottable");function Dd(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Td}function $d(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...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 Fd(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Bd=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,Os=function(e){return e&&(e.host||Os(e.parentNode))},zd=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Os(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})},Hd=function(e,t,n,r){var o=zd(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),x=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&&x&&Dt.set(v,!0),g===1&&v.setAttribute(n,"true"),x||v.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",v,w)}})};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={})}},Is=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Bd(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Hd(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 Ts(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 Wd(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",Vd="with-scroll-bars-hidden",qd="--removed-body-scroll-bar-size";function In(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Gd(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 Ud=typeof window<"u"?a.useLayoutEffect:a.useEffect,no=new WeakMap;function Zd(e,t){var n=Gd(null,function(r){return e.forEach(function(o){return In(o,r)})});return Ud(function(){var r=no.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)})}no.set(n,e)},[e]),n}function Yd(e){return e}function Xd(e,t){t===void 0&&(t=Yd);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 Kd(e){e===void 0&&(e={});var t=Xd(null);return t.options=Re({async:!0,ssr:!1},e),t}var Ds=function(e){var t=e.sideCar,n=Ts(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))};Ds.isSideCarExport=!0;function Qd(e,t){return e.useMedium(t),Ds}var $s=Kd(),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,x=e.noIsolation,h=e.inert,g=e.allowPinchZoom,w=e.as,b=w===void 0?"div":w,_=e.gapMode,C=Ts(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=v,k=Zd([n,t]),j=Re(Re({},C),o);return a.createElement(a.Fragment,null,f&&a.createElement(E,{sideCar:$s,removeScrollBar:d,shards:p,noRelative:m,noIsolation:x,inert:h,setCallbacks:s,allowPinchZoom:!!g,lockRef:n,gapMode:_}),i?a.cloneElement(a.Children.only(c),Re(Re({},j),{ref:k})):a.createElement(b,Re({},j,{className:u,ref:k}),c))});mn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};mn.classNames={fullWidth:Ut,zeroRight:Gt};var Jd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function e1(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Jd();return t&&e.setAttribute("nonce",t),e}function t1(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function n1(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var r1=function(){var e=0,t=null;return{add:function(n){e==0&&(t=e1())&&(t1(t,n),n1(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},o1=function(){var e=r1();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Fs=function(){var e=o1(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},s1={left:0,top:0,right:0,gap:0},Dn=function(e){return parseInt(e||"",10)||0},a1=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)]},i1=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return s1;var t=a1(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])}},c1=Fs(),mt="data-scroll-locked",l1=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 w=require("react"),a=require("react/jsx-runtime"),At=require("react-dom");function ko(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 i=ko(w),Eo=ko(At),Ka=e=>i.createElement("svg",{width:17,height:17,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M0.5 8.50634L8.5 0.5L16.5 8.49975",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M2.5 6.58643V16.4994H14.5V6.56641",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),i.createElement("path",{d:"M6.5 16.4998V10.5H10.5",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),Xa=e=>i.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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"})),Qa=e=>i.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("g",{clipPath:"url(#clip0_27648_5774)"},i.createElement("path",{d:"M8.24567 14.0242H0.666672V0.666992H6.60323L10.5609 4.6247V9.57183",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),i.createElement("path",{d:"M6.60417 0.666992V4.6247H10.5619",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),i.createElement("path",{d:"M12.638 12.54L13.8254 13.7405L15.0127 12.54",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M9.07781 12.5403L7.89047 11.3398L6.70312 12.5403",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),i.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"}),i.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"})),i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_27648_5774"},i.createElement("rect",{width:16,height:16,fill:"white"})))),Ja=e=>i.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("g",{clipPath:"url(#clip0_27648_5680)"},i.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"}),i.createElement("path",{d:"M14.2521 6L9.0879 11.1766L8 14L10.8358 12.9333L16 7.75667L14.2521 6Z",stroke:"currentColor",strokeLinejoin:"round"}),i.createElement("path",{d:"M9.33339 11.333L10.6667 12.6663",stroke:"currentColor",strokeLinejoin:"round"})),i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_27648_5680"},i.createElement("rect",{width:16,height:16,fill:"white"})))),ei=e=>i.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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"}),i.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"}),i.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"}),i.createElement("path",{d:"M4.59114 11.9824L8.32766 14.6673L12.061 12.0228",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.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"}),i.createElement("path",{d:"M5.05725 3.93359L8.32711 4.40026L11.5938 3.93359",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M2.25781 1.69336V7.20001",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),ti=e=>i.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M6.9329 14H2V9.06713H6.9329V14Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M6.9329 6.60059H2V1.66765H6.9329V6.60059Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M14.3343 14H9.40144V9.06713H14.3343V14Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M14.3343 6.60059H9.40144V1.66765H14.3343V6.60059Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),ni=e=>i.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("g",{clipPath:"url(#clip0_27648_5733)"},i.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"})),i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_27648_5733"},i.createElement("rect",{width:16,height:16,fill:"white"})))),ri=e=>i.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("g",{clipPath:"url(#clip0_27648_5852)"},i.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"}),i.createElement("circle",{cx:7.66097,cy:13.1607,r:.431202,fill:"currentColor"}),i.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"})),i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_27648_5852"},i.createElement("rect",{width:16,height:16,fill:"white"})))),oi=e=>i.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},i.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"})),si=e=>i.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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"}),i.createElement("path",{d:"M13.2002 5.66699H2V15.0005H13.2002V5.66699Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),ai=e=>i.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("g",{clipPath:"url(#clip0_27648_5666)"},i.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"})),i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_27648_5666"},i.createElement("rect",{width:16,height:16,fill:"white"})))),ii=e=>i.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("g",{clipPath:"url(#clip0_27648_5649)"},i.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"})),i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_27648_5649"},i.createElement("rect",{width:16,height:16,fill:"white"})))),ci=e=>i.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("g",{clipPath:"url(#clip0_27648_5794)"},i.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"}),i.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"}),i.createElement("path",{d:"M12.6849 12.6797L14.6718 14.6666",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_27648_5794"},i.createElement("rect",{width:16,height:16,fill:"white"})))),li=e=>i.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("g",{clipPath:"url(#clip0_27648_5697)"},i.createElement("path",{d:"M11.4479 1.33301H13.3353V3.22339",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M2.66681 7.55537L6.66986 3.99973L9.33659 5.3331L13.3367 1.33301",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M12.4479 14.6664V5.77734H14.2257V14.6664",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),i.createElement("path",{d:"M8.89062 14.6662V10.2246H10.6684V14.6662",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),i.createElement("path",{d:"M5.33333 14.6665V8.8916H7.11411V14.6665",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),i.createElement("path",{d:"M1.77864 14.6667V12.0029H3.55646V14.6667",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),i.createElement("path",{d:"M14.6699 14.667H1.33333",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_27648_5697"},i.createElement("rect",{width:16,height:16,fill:"white"})))),di=e=>i.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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"}),i.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"}),i.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"}),i.createElement("path",{d:"M3.32143 4.5H7.96428",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M3.32143 7H4.71428",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),ui=e=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},i.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"}),i.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"})),fi=e=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},i.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"})),pi=e=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},i.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"})),mi=e=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},i.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"})),hi=e=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},i.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"})),gi=e=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},i.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"})),vi=e=>i.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},i.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"})),xi=e=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},i.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"})),jo=e=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},i.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"}),i.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"}),i.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"})),pn=e=>i.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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"}),i.createElement("path",{d:"M10.4727 10.4707L15.9994 16.0007",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),_i=e=>i.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M19 12.5H6M19 12.5L14.3333 8M19 12.5L14.3333 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),ct=e=>i.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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"})),wi=e=>i.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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)"})),Oe=e=>i.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M13 3L8 8M3 13L8 8M8 8L3 3L13 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),bi=e=>i.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("rect",{width:24,height:24,rx:12,fill:"#FFEEEE"}),i.createElement("path",{d:"M7.5 7.5L16.5 16.5M7.5 16.5L16.5 7.5",stroke:"#D72D40",strokeWidth:1.4,strokeLinecap:"round"})),yi=e=>i.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("rect",{width:24,height:24,rx:12,fill:"#E0F4F0"}),i.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"})),Ci=e=>i.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("rect",{width:24,height:24,rx:12,fill:"#E0F1FF"}),i.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"})),sr=e=>i.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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"}),i.createElement("path",{d:"M8 11.6226L10.8813 15L16 9",stroke:"white",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),So=e=>i.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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"}),i.createElement("path",{d:"M15.6912 8.31348L8.30859 15.6917",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M15.6947 15.6917L8.31641 8.31348",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),No=e=>i.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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"}),i.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"}),i.createElement("circle",{cx:11.8605,cy:16.7795,r:1,fill:"white",stroke:"white",strokeWidth:.572616})),Ro=e=>i.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M15 3H1V13H15V3Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M1 3L8 10.3433L15 3",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M10.3359 7.89648L15.0026 12.9998",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("path",{d:"M1 12.9998L5.66667 7.89648",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),ki=e=>i.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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"}),i.createElement("circle",{cx:4.98438,cy:7.66211,r:.75,fill:"currentColor"}),i.createElement("circle",{cx:7.875,cy:7.66211,r:.75,fill:"currentColor"}),i.createElement("circle",{cx:10.7656,cy:7.66211,r:.75,fill:"currentColor"})),Ei=e=>i.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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"})),ji=e=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},i.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"}),i.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"})),Lo=e=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"#000000",style:{opacity:1},...e},i.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"})),Ao=e=>i.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},i.createElement("path",{fill:"none",d:"M12 11v5m0 5a9 9 0 1 1 0-18a9 9 0 0 1 0 18m.05-13v.1h-.1V8z"})),Si=e=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},i.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"})),Po=e=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},i.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"})),Ni=e=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},i.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"})),Ri=e=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},i.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=>i.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},i.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"}),i.createElement("circle",{cx:25.435,cy:25.065,r:5.565}),i.createElement("path",{d:"M21.5 29L17 33.5"})),Li=e=>i.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},i.createElement("path",{d:"M19 3v4m0 14V11m-7-8v12m0 6v-2M5 3v2m0 16V9"}),i.createElement("circle",{cx:19,cy:9,r:2,transform:"rotate(90 19 9)"}),i.createElement("circle",{cx:12,cy:17,r:2,transform:"rotate(90 12 17)"}),i.createElement("circle",{cx:5,cy:7,r:2,transform:"rotate(90 5 7)"})),Ai=e=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:24,height:24,fill:"#000000",style:{opacity:1},...e},i.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"})),Pi=e=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},i.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"})),Oo=e=>i.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},i.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 To=(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))(To||{});function Mi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var An={exports:{}};var Pr;function Oi(){return Pr||(Pr=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",c=0;c<arguments.length;c++){var l=arguments[c];l&&(s=o(s,r(l)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var c="";for(var l in s)t.call(s,l)&&s[l]&&(c=o(c,l));return c}function o(s,c){return c?s?s+" "+c:s+c:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(An)),An.exports}var Ti=Oi();const L=Mi(Ti),Ii="_block_tkxaf_1",Di="_subtitle_tkxaf_6",$i="_title_tkxaf_13",Pn={block:Ii,subtitle:Di,title:$i},zi=({id:e,title:t,subtitle:n,children:r,className:o})=>a.jsxs("div",{className:L(Pn.block,o),id:e,children:[t&&typeof t=="string"?a.jsx("div",{className:Pn.title,children:t}):t,n&&a.jsx("div",{className:Pn.subtitle,children:n}),r]});function Mr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Pt(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Mr(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():Mr(e[o],null)}}}}function ke(...e){return i.useCallback(Pt(...e),e)}var Fi=Symbol.for("react.lazy"),sn=i[" use ".trim().toString()];function Bi(e){return typeof e=="object"&&e!==null&&"then"in e}function Io(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Fi&&"_payload"in e&&Bi(e._payload)}function Do(e){const t=Hi(e),n=i.forwardRef((r,o)=>{let{children:s,...c}=r;Io(s)&&typeof sn=="function"&&(s=sn(s._payload));const l=i.Children.toArray(s),d=l.find(qi);if(d){const u=d.props.children,f=l.map(m=>m===d?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:m);return a.jsx(t,{...c,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return a.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var Vi=Do("Slot");function Hi(e){const t=i.forwardRef((n,r)=>{let{children:o,...s}=n;if(Io(o)&&typeof sn=="function"&&(o=sn(o._payload)),i.isValidElement(o)){const c=Ui(o),l=Gi(s,o.props);return o.type!==i.Fragment&&(l.ref=r?Pt(r,c):c),i.cloneElement(o,l)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Wi=Symbol("radix.slottable");function qi(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Wi}function Gi(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const d=s(...l);return o(...l),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ui(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 $o(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=$o(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function zo(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=$o(e))&&(r&&(r+=" "),r+=t);return r}const Or=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Tr=zo,Fo=(e,t)=>n=>{var r;if(t?.variants==null)return Tr(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,c=Object.keys(o).map(u=>{const f=n?.[u],m=s?.[u];if(f===null)return null;const v=Or(f)||Or(m);return o[u][v]}),l=n&&Object.entries(n).reduce((u,f)=>{let[m,v]=f;return v===void 0||(u[m]=v),u},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:m,className:v,...p}=f;return Object.entries(p).every(x=>{let[h,g]=x;return Array.isArray(g)?g.includes({...s,...l}[h]):{...s,...l}[h]===g})?[...u,m,v]:u},[]);return Tr(e,c,d,n?.class,n?.className)},Zi=(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},Yi=(e,t)=>({classGroupId:e,validator:t}),Bo=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),an="-",Ir=[],Ki="arbitrary..",Xi=e=>{const t=Ji(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return Qi(c);const l=c.split(an),d=l[0]===""&&l.length>1?1:0;return Vo(l,d,t)},getConflictingClassGroupIds:(c,l)=>{if(l){const d=r[c],u=n[c];return d?u?Zi(u,d):d:u||Ir}return n[c]||Ir}}},Vo=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const u=Vo(e,t+1,s);if(u)return u}const c=n.validators;if(c===null)return;const l=t===0?e.join(an):e.slice(t).join(an),d=c.length;for(let u=0;u<d;u++){const f=c[u];if(f.validator(l))return f.classGroupId}},Qi=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?Ki+r:void 0})(),Ji=e=>{const{theme:t,classGroups:n}=e;return ec(n,t)},ec=(e,t)=>{const n=Bo();for(const r in e){const o=e[r];ar(o,n,r,t)}return n},ar=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const c=e[s];tc(c,t,n,r)}},tc=(e,t,n,r)=>{if(typeof e=="string"){nc(e,t,n);return}if(typeof e=="function"){rc(e,t,n,r);return}oc(e,t,n,r)},nc=(e,t,n)=>{const r=e===""?t:Ho(t,e);r.classGroupId=n},rc=(e,t,n,r)=>{if(sc(e)){ar(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Yi(n,e))},oc=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let c=0;c<s;c++){const[l,d]=o[c];ar(d,Ho(t,l),n,r)}},Ho=(e,t)=>{let n=e;const r=t.split(an),o=r.length;for(let s=0;s<o;s++){const c=r[s];let l=n.nextPart.get(c);l||(l=Bo(),n.nextPart.set(c,l)),n=l}return n},sc=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,ac=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(s,c)=>{n[s]=c,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let c=n[s];if(c!==void 0)return c;if((c=r[s])!==void 0)return o(s,c),c},set(s,c){s in n?n[s]=c:o(s,c)}}},Zn="!",Dr=":",ic=[],$r=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),cc=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let c=0,l=0,d=0,u;const f=o.length;for(let h=0;h<f;h++){const g=o[h];if(c===0&&l===0){if(g===Dr){s.push(o.slice(d,h)),d=h+1;continue}if(g==="/"){u=h;continue}}g==="["?c++:g==="]"?c--:g==="("?l++:g===")"&&l--}const m=s.length===0?o:o.slice(d);let v=m,p=!1;m.endsWith(Zn)?(v=m.slice(0,-1),p=!0):m.startsWith(Zn)&&(v=m.slice(1),p=!0);const x=u&&u>d?u-d:void 0;return $r(s,p,v,x)};if(t){const o=t+Dr,s=r;r=c=>c.startsWith(o)?s(c.slice(o.length)):$r(ic,!1,c,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},lc=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 c=n[s],l=c[0]==="[",d=t.has(c);l||d?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(c)):o.push(c)}return o.length>0&&(o.sort(),r.push(...o)),r}},dc=e=>({cache:ac(e.cacheSize),parseClassName:cc(e),sortModifiers:lc(e),...Xi(e)}),uc=/\s+/,fc=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,c=[],l=e.trim().split(uc);let d="";for(let u=l.length-1;u>=0;u-=1){const f=l[u],{isExternal:m,modifiers:v,hasImportantModifier:p,baseClassName:x,maybePostfixModifierPosition:h}=n(f);if(m){d=f+(d.length>0?" "+d:d);continue}let g=!!h,_=r(g?x.substring(0,h):x);if(!_){if(!g){d=f+(d.length>0?" "+d:d);continue}if(_=r(x),!_){d=f+(d.length>0?" "+d:d);continue}g=!1}const b=v.length===0?"":v.length===1?v[0]:s(v).join(":"),y=p?b+Zn:b,C=y+_;if(c.indexOf(C)>-1)continue;c.push(C);const k=o(_,g);for(let E=0;E<k.length;++E){const S=k[E];c.push(y+S)}d=f+(d.length>0?" "+d:d)}return d},pc=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=Wo(n))&&(o&&(o+=" "),o+=r);return o},Wo=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Wo(e[r]))&&(n&&(n+=" "),n+=t);return n},mc=(e,...t)=>{let n,r,o,s;const c=d=>{const u=t.reduce((f,m)=>m(f),e());return n=dc(u),r=n.cache.get,o=n.cache.set,s=l,l(d)},l=d=>{const u=r(d);if(u)return u;const f=fc(d,n);return o(d,f),f};return s=c,(...d)=>s(pc(...d))},hc=[],ue=e=>{const t=n=>n[e]||hc;return t.isThemeGetter=!0,t},qo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Go=/^\((?:(\w[\w-]*):)?(.+)\)$/i,gc=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,vc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xc=/\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$/,_c=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,wc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ue=e=>gc.test(e),q=e=>!!e&&!Number.isNaN(Number(e)),Ze=e=>!!e&&Number.isInteger(Number(e)),Mn=e=>e.endsWith("%")&&q(e.slice(0,-1)),Fe=e=>vc.test(e),Uo=()=>!0,yc=e=>xc.test(e)&&!_c.test(e),ir=()=>!1,Cc=e=>wc.test(e),kc=e=>bc.test(e),Ec=e=>!A(e)&&!P(e),jc=e=>et(e,Ko,ir),A=e=>qo.test(e),at=e=>et(e,Xo,yc),zr=e=>et(e,Oc,q),Sc=e=>et(e,Jo,Uo),Nc=e=>et(e,Qo,ir),Fr=e=>et(e,Zo,ir),Rc=e=>et(e,Yo,kc),Bt=e=>et(e,es,Cc),P=e=>Go.test(e),Et=e=>ut(e,Xo),Lc=e=>ut(e,Qo),Br=e=>ut(e,Zo),Ac=e=>ut(e,Ko),Pc=e=>ut(e,Yo),Vt=e=>ut(e,es,!0),Mc=e=>ut(e,Jo,!0),et=(e,t,n)=>{const r=qo.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ut=(e,t,n=!1)=>{const r=Go.exec(e);return r?r[1]?t(r[1]):n:!1},Zo=e=>e==="position"||e==="percentage",Yo=e=>e==="image"||e==="url",Ko=e=>e==="length"||e==="size"||e==="bg-size",Xo=e=>e==="length",Oc=e=>e==="number",Qo=e=>e==="family-name",Jo=e=>e==="number"||e==="weight",es=e=>e==="shadow",Tc=()=>{const e=ue("color"),t=ue("font"),n=ue("text"),r=ue("font-weight"),o=ue("tracking"),s=ue("leading"),c=ue("breakpoint"),l=ue("container"),d=ue("spacing"),u=ue("radius"),f=ue("shadow"),m=ue("inset-shadow"),v=ue("text-shadow"),p=ue("drop-shadow"),x=ue("blur"),h=ue("perspective"),g=ue("aspect"),_=ue("ease"),b=ue("animate"),y=()=>["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(),P,A],E=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],N=()=>[P,A,d],O=()=>[Ue,"full","auto",...N()],R=()=>[Ze,"none","subgrid",P,A],F=()=>["auto",{span:["full",Ze,P,A]},Ze,P,A],B=()=>[Ze,"auto",P,A],V=()=>["auto","min","max","fr",P,A],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],G=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...N()],W=()=>[Ue,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],I=()=>[Ue,"screen","full","dvw","lvw","svw","min","max","fit",...N()],X=()=>[Ue,"screen","full","lh","dvh","lvh","svh","min","max","fit",...N()],j=()=>[e,P,A],Q=()=>[...C(),Br,Fr,{position:[P,A]}],re=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",Ac,jc,{size:[P,A]}],se=()=>[Mn,Et,at],U=()=>["","none","full",u,P,A],te=()=>["",q,Et,at],de=()=>["solid","dashed","dotted","double"],D=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[q,Mn,Br,Fr],we=()=>["","none",x,P,A],Re=()=>["none",q,P,A],Ee=()=>["none",q,P,A],Z=()=>[q,P,A],le=()=>[Ue,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Fe],breakpoint:[Fe],color:[Uo],container:[Fe],"drop-shadow":[Fe],ease:["in","out","in-out"],font:[Ec],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Fe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Fe],shadow:[Fe],spacing:["px",q],text:[Fe],"text-shadow":[Fe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ue,A,P,g]}],container:["container"],columns:[{columns:[q,A,P,l]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],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:[Ze,"auto",P,A]}],basis:[{basis:[Ue,"full","auto",l,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[q,Ue,"auto","initial","none",A]}],grow:[{grow:["",q,P,A]}],shrink:[{shrink:["",q,P,A]}],order:[{order:[Ze,"first","last","none",P,A]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...G(),"normal"]}],"justify-self":[{"justify-self":["auto",...G()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...G(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...G(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...G(),"baseline"]}],"place-self":[{"place-self":["auto",...G()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pbs:[{pbs:N()}],pbe:[{pbe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mbs:[{mbs:T()}],mbe:[{mbe:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],"inline-size":[{inline:["auto",...I()]}],"min-inline-size":[{"min-inline":["auto",...I()]}],"max-inline-size":[{"max-inline":["none",...I()]}],"block-size":[{block:["auto",...X()]}],"min-block-size":[{"min-block":["auto",...X()]}],"max-block-size":[{"max-block":["none",...X()]}],w:[{w:[l,"screen",...W()]}],"min-w":[{"min-w":[l,"screen","none",...W()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[c]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",n,Et,at]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Mc,Sc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Mn,A]}],"font-family":[{font:[Lc,Nc,t]}],"font-features":[{"font-features":[A]}],"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,P,A]}],"line-clamp":[{"line-clamp":[q,"none",P,zr]}],leading:[{leading:[s,...N()]}],"list-image":[{"list-image":["none",P,A]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",P,A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[q,"from-font","auto",P,at]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[q,"auto",P,A]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P,A]}],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",P,A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Q()}],"bg-repeat":[{bg:re()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ze,P,A],radial:["",P,A],conic:[Ze,P,A]},Pc,Rc]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],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:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-bs":[{"border-bs":te()}],"border-w-be":[{"border-be":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[q,P,A]}],"outline-w":[{outline:["",q,Et,at]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",f,Vt,Bt]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",m,Vt,Bt]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[q,at]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",v,Vt,Bt]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[q,P,A]}],"mix-blend":[{"mix-blend":[...D(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":D()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[q]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[P,A]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"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":[q]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Q()}],"mask-repeat":[{mask:re()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",P,A]}],filter:[{filter:["","none",P,A]}],blur:[{blur:we()}],brightness:[{brightness:[q,P,A]}],contrast:[{contrast:[q,P,A]}],"drop-shadow":[{"drop-shadow":["","none",p,Vt,Bt]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",q,P,A]}],"hue-rotate":[{"hue-rotate":[q,P,A]}],invert:[{invert:["",q,P,A]}],saturate:[{saturate:[q,P,A]}],sepia:[{sepia:["",q,P,A]}],"backdrop-filter":[{"backdrop-filter":["","none",P,A]}],"backdrop-blur":[{"backdrop-blur":we()}],"backdrop-brightness":[{"backdrop-brightness":[q,P,A]}],"backdrop-contrast":[{"backdrop-contrast":[q,P,A]}],"backdrop-grayscale":[{"backdrop-grayscale":["",q,P,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[q,P,A]}],"backdrop-invert":[{"backdrop-invert":["",q,P,A]}],"backdrop-opacity":[{"backdrop-opacity":[q,P,A]}],"backdrop-saturate":[{"backdrop-saturate":[q,P,A]}],"backdrop-sepia":[{"backdrop-sepia":["",q,P,A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",P,A]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[q,"initial",P,A]}],ease:[{ease:["linear","initial",_,P,A]}],delay:[{delay:[q,P,A]}],animate:[{animate:["none",b,P,A]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,P,A]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:Re()}],"rotate-x":[{"rotate-x":Re()}],"rotate-y":[{"rotate-y":Re()}],"rotate-z":[{"rotate-z":Re()}],scale:[{scale:Ee()}],"scale-x":[{"scale-x":Ee()}],"scale-y":[{"scale-y":Ee()}],"scale-z":[{"scale-z":Ee()}],"scale-3d":["scale-3d"],skew:[{skew:Z()}],"skew-x":[{"skew-x":Z()}],"skew-y":[{"skew-y":Z()}],transform:[{transform:[P,A,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"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",P,A]}],"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":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mbs":[{"scroll-mbs":N()}],"scroll-mbe":[{"scroll-mbe":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pbs":[{"scroll-pbs":N()}],"scroll-pbe":[{"scroll-pbe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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",P,A]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[q,Et,at,zr]}],stroke:[{stroke:["none",...j()]}],"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"]}},Ic=mc(Tc);function Ie(...e){return Ic(zo(e))}const Dc=Fo("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"}}),cr=i.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const c=r?Vi:"button";return a.jsx(c,{className:Ie(Dc({variant:t,size:n,className:e})),ref:s,...o})});cr.displayName="Button";const $c="_cssloadSpeedingWheel_akex8_6",zc="_bigSize_akex8_20",Fc="_smallSize_akex8_26",Bc="_extraSmallSize_akex8_32",Ht={cssloadSpeedingWheel:$c,bigSize:zc,smallSize:Fc,extraSmallSize:Bc};function Vc(e){return e==="medium"?"small":e==="large"?"big":e}const je=({marginTop:e,marginBottom:t,marginLeft:n,className:r,size:o="big"})=>{const s=w.useMemo(()=>({marginTop:e,marginBottom:t,marginLeft:n}),[t,n,e]),c=Vc(o);return a.jsx("div",{className:r,style:s,children:a.jsx("div",{className:L(Ht.cssloadSpeedingWheel,{[Ht.bigSize]:c==="big",[Ht.smallSize]:c==="small",[Ht.extraSmallSize]:c==="extraSmall"})})})},Hc="_button_fafaj_1",Wc="_button__loader_fafaj_186",qc="_button__content_fafaj_193",pt={button:Hc,"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:Wc,button__content:qc},ce=w.forwardRef(({variant:e="default",size:t="medium",className:n="",loading:r=!1,disabled:o=!1,children:s,type:c="button",...l},d)=>{const u=L(pt.button,pt[`button--variant-${e}`],pt[`button--size-${t}`],{[pt["button--loading"]]:r,[pt["button--disabled"]]:o},n);return a.jsxs(cr,{ref:d,variant:null,size:null,className:u,disabled:o||r,type:c,...l,children:[s&&s,r&&a.jsx("span",{className:pt.button__loader,children:a.jsx(je,{size:"extraSmall"})})]})});ce.displayName="Button";const ts=e=>{const[t,n]=w.useState(0),[r,o]=w.useState(0),s=w.useRef(null);return w.useEffect(()=>{if(!e)return;const l=new ResizeObserver(u=>{s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{for(const f of u)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)})});l.observe(e);const d=e.getBoundingClientRect().height;return n(d),()=>{l.disconnect()}},[e,n]),w.useMemo(()=>({height:t,width:r}),[t,r])},Vr={capture:!0,passive:!0},Gc=({triggerRef:e,dropdownHeight:t,offset:n=8,enabled:r=!0,onAnchorFrame:o})=>{const[s,c]=w.useState("bottom"),l=w.useRef(null),d=w.useCallback(()=>{if(!e.current)return"bottom";const f=e.current.getBoundingClientRect(),m=window.innerHeight,v=f.top-n;return m-f.bottom-n>=t?"bottom":v>=t?"top":"bottom"},[e,t,n]),u=w.useCallback(()=>{l.current&&cancelAnimationFrame(l.current),l.current=requestAnimationFrame(()=>{const f=d();c(f),o?.(f)})},[d,o]);return w.useEffect(()=>{if(!r)return;const f=e.current;if(!f)return;u();const m=new ResizeObserver(()=>{u()});m.observe(f);const v=new MutationObserver(()=>{u()});v.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]});const p=[];let x=f.parentElement;for(;x;){const h=window.getComputedStyle(x),g=h.overflow+h.overflowY+h.overflowX;/(auto|scroll)/.test(g)&&(p.push(x),x.addEventListener("scroll",u)),x=x.parentElement}return window.addEventListener("scroll",u,Vr),window.addEventListener("resize",u),window.addEventListener("transitionend",u),window.addEventListener("animationend",u),()=>{l.current&&cancelAnimationFrame(l.current),m.disconnect(),v.disconnect(),window.removeEventListener("scroll",u,Vr),window.removeEventListener("resize",u),window.removeEventListener("transitionend",u),window.removeEventListener("animationend",u),p.forEach(h=>{h.removeEventListener("scroll",u)})}},[r,e,u]),s},Uc="_container_1dkro_1",Zc="_activeButton_1dkro_16",Yc="_slider_1dkro_22",On={container:Uc,activeButton:Zc,slider:Yc},Kc=({options:e,value:t,defaultValue:n,data:r,activeButton:o,defaultActiveButton:s,onChange:c})=>{const l=w.useMemo(()=>e?.length?e.map(_=>({id:_.value,label:_.label,additionalComponent:_.additionalComponent})):r??[],[e,r]),[d,u]=w.useState(()=>n??s??l[0]?.id),[f,m]=w.useState({transform:"translateX(0)",width:0}),v=w.useRef(new Map),p=t??o??d,{width:x}=ts(v.current.get(p)),h=_=>{_.id!==p&&(c?.(_.id),u(_.id))},g=w.useCallback((_,b)=>{v.current.set(b,_)},[]);return w.useEffect(()=>{const _=l.findIndex(b=>b.id===p);if(_>=0){const y=l.slice(0,_).reduce((C,k)=>{const E=v.current.get(k.id);if(E){const S=E.getBoundingClientRect().width;C+=S}return C},0);m({transform:`translateX(${y}px)`,width:x})}},[p,x,l]),a.jsxs("div",{className:On.container,children:[l.map(_=>a.jsx("div",{ref:b=>g(b,_.id),children:a.jsxs(ce,{size:"small",onClick:()=>h(_),className:L({[On.activeButton]:_.id===p}),children:[_.label,_.additionalComponent]})},_.id)),a.jsx("div",{className:On.slider,style:f})]})},Xc="_card_1cqzz_1",Qc="_link_1cqzz_17",Hr={card:Xc,link:Qc},Jc=w.memo(({text:e,width:t,height:n,className:r,backgroundColor:o,imageUrl:s,textColor:c,link:l})=>{const d=L(Hr.card,{[Hr.link]:l},r),u=w.useMemo(()=>({backgroundColor:o,...c&&{color:c},...t&&{width:t},...n&&{height:`${n}px`},...s&&{backgroundImage:`url(${s})`}}),[o,n,s,c,t]);return l?a.jsx("a",{className:d,style:u,href:l,children:a.jsx("span",{children:e})}):a.jsx("div",{className:d,style:u,children:a.jsx("span",{children:e})})}),el="_carouselWrapper_12142_1",tl="_carousel_12142_1",nl="_viewport_12142_13",rl="_slide_12142_19",ol="_activeSlide_12142_24",sl="_itemContent_12142_28",al="_controls_12142_36",il="_carouselControl_12142_48",cl="_prevIcon_12142_71",ll="_nextIcon_12142_72",dl="_indicators_12142_90",ul="_activeIndicator_12142_115",_e={carouselWrapper:el,carousel:tl,viewport:nl,slide:rl,activeSlide:ol,itemContent:sl,controls:al,carouselControl:il,prevIcon:cl,nextIcon:ll,indicators:dl,activeIndicator:ul},fl=e=>"items"in e&&Array.isArray(e.items)&&"renderItem"in e&&typeof e.renderItem=="function",pl=e=>fl(e)?e.items.map((t,n)=>({key:`${t.id}-${n}`,content:e.renderItem(t),caption:t.caption})):w.Children.toArray(e.children).map((t,n)=>({key:w.isValidElement(t)&&t.key!==null&&t.key!==void 0&&t.key!=="."?String(t.key):`slide-${n}`,content:t})),ml=e=>{const t={...e};return delete t.items,delete t.renderItem,delete t.children,t},hl=e=>{const t=pl(e),n=t.length,r=ml(e),{className:o,dark:s,enableTouch:c,fade:l,interval:d,keyboard:u=!0,pause:f,ride:m,slide:v,...p}=r,[x,h]=w.useState(0),g=()=>{h(E=>E===n-1?0:E+1)},_=()=>{h(E=>E===0?n-1:E-1)},b=E=>{h(E)},y=n>1,C=w.useMemo(()=>t.map(E=>({key:E.key})),[t]),k=E=>{p.onKeyDown?.(E),!(E.defaultPrevented||!u||!y)&&(E.key==="ArrowLeft"&&_(),E.key==="ArrowRight"&&g())};return n?y?a.jsx("div",{className:_e.carouselWrapper,children:a.jsxs("div",{...p,className:[_e.carousel,o].filter(Boolean).join(" "),onKeyDown:k,role:"region","aria-roledescription":"carousel",children:[a.jsx("div",{className:_e.viewport,children:t.map((E,S)=>a.jsx("div",{className:[_e.slide,S===x?_e.activeSlide:""].filter(Boolean).join(" "),"aria-hidden":S!==x,children:a.jsx("div",{className:_e.itemContent,children:E.content})},E.key))}),a.jsxs("div",{className:_e.controls,children:[a.jsx("button",{className:_e.carouselControl,type:"button",onClick:_,"aria-label":"Previous slide",children:a.jsx("span",{className:_e.prevIcon,"aria-hidden":"true"})}),a.jsx("div",{className:_e.indicators,children:C.map((E,S)=>a.jsx("button",{className:S===x?_e.activeIndicator:void 0,type:"button",onClick:()=>b(S),"aria-label":`Go to slide ${S+1}`,"aria-current":S===x},E.key))}),a.jsx("button",{className:_e.carouselControl,type:"button",onClick:g,"aria-label":"Next slide",children:a.jsx("span",{className:_e.nextIcon,"aria-hidden":"true"})})]})]})}):a.jsx("div",{className:_e.carouselWrapper,children:t[0].content}):null},be=8;function gl(e,t="top"){const{left:n,right:r,top:o,bottom:s,width:c,height:l}=e,d=n+c/2,u=o+l/2;switch(t){case"top":return{left:d,top:o-be,transform:"translate(-50%, -100%)"};case"topLeft":return{left:n,top:o-be,transform:"translateY(-100%)"};case"topRight":return{left:r,top:o-be,transform:"translate(-100%, -100%)"};case"bottom":return{left:d,top:s+be,transform:"translate(-50%, 0)"};case"bottomLeft":return{left:n,top:s+be,transform:"translateY(0)"};case"bottomRight":return{left:r,top:s+be,transform:"translate(-100%, 0)"};case"left":return{left:n-be,top:u,transform:"translate(-100%, -50%)"};case"leftTop":return{left:n-be,top:o,transform:"translate(-100%, 0)"};case"leftBottom":return{left:n-be,top:s,transform:"translate(-100%, -100%)"};case"right":return{left:r+be,top:u,transform:"translate(0, -50%)"};case"rightTop":return{left:r+be,top:o,transform:"translate(0, 0)"};case"rightBottom":return{left:r+be,top:s,transform:"translate(0, -100%)"};default:return{left:d,top:o-be,transform:"translate(-50%, -100%)"}}}const vl="_overlay_1pnex_1",xl="_fadeIn_1pnex_1",_l="_arrow_1pnex_16",wl="_top_1pnex_22",bl="_bottom_1pnex_28",yl="_left_1pnex_34",Cl="_right_1pnex_40",Tn={overlay:vl,fadeIn:xl,arrow:_l,top:wl,bottom:bl,left:yl,right:Cl};function kl(e){return e.startsWith("top")?"bottom":e.startsWith("bottom")?"top":e.startsWith("left")?"right":e.startsWith("right")?"left":"top"}const lr=w.memo(({title:e,content:t,open:n,defaultOpen:r=!1,trigger:o="hover",mouseEnterDelay:s=100,mouseLeaveDelay:c=100,onOpenChange:l,placement:d="top",arrow:u=!0,children:f,overlayClassName:m,getPopupContainer:v=()=>document.body})=>{const p=n!==void 0,[x,h]=w.useState(r),g=p?n:x,_=w.useCallback(j=>{p||h(j),l?.(j)},[p,l]),b=w.useRef(null),[y,C]=w.useState(null),k=w.useRef(null),E=w.useRef(null),S=Array.isArray(o)?o:[o],N=S.includes("hover"),O=S.includes("click"),R=w.useCallback(()=>{k.current&&(clearTimeout(k.current),k.current=null)},[]),F=w.useCallback(()=>{E.current&&(clearTimeout(E.current),E.current=null)},[]),B=w.useCallback(()=>{N&&(F(),k.current=setTimeout(()=>_(!0),s))},[N,s,_,F]),V=w.useCallback(()=>{N&&(R(),E.current=setTimeout(()=>_(!1),c))},[N,c,_,R]),H=w.useCallback(j=>{O&&(j.preventDefault(),_(!g))},[O,g,_]);w.useEffect(()=>{if(!O||!g||p)return;const j=Q=>{const re=b.current;re&&!re.contains(Q.target)&&_(!1)};return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[O,g,p,_]),w.useLayoutEffect(()=>{if(!g||!b.current){C(null);return}const j=b.current.getBoundingClientRect();C(gl(j,d))},[g,d]),w.useEffect(()=>()=>{R(),F()},[R,F]);const G=typeof document<"u"?v():null,T=kl(d),W=e??t,I=g&&W!=null&&W!==""&&y&&G&&At.createPortal(a.jsxs("span",{className:L(Tn.overlay,m),style:{left:y.left,top:y.top,transform:y.transform},role:"tooltip",children:[W,u&&a.jsx("span",{className:L(Tn.arrow,Tn[T])})]}),G),X=!p&&(N||O)?{onMouseEnter:B,onMouseLeave:V,onClick:O?H:void 0}:{};return a.jsxs(a.Fragment,{children:[a.jsx("span",{ref:b,...X,children:f}),I]})});lr.displayName="TooltipDark";const El="_wrapper_ukjvp_1",jl="_trigger_ukjvp_5",Sl="_trigger_iconOnly_ukjvp_32",Nl="_icon_ukjvp_43",Wt={wrapper:El,trigger:jl,trigger_iconOnly:Sl,icon:Nl},dr=w.memo(({children:e,onClick:t,copied:n,tooltipText:r="Скопировано",ariaLabel:o,showIcon:s=!0,iconOnly:c=!1,className:l})=>{const d=w.useCallback(()=>{t()},[t]);return a.jsx("span",{className:Wt.wrapper,children:a.jsx(lr,{open:n,title:r,placement:"top",children:a.jsxs(cr,{type:"button",variant:null,size:null,className:L(Wt.trigger,c&&Wt.trigger_iconOnly,l),onClick:d,"aria-label":o,"aria-live":"polite",children:[!c&&e,s&&a.jsx(Lo,{className:Wt.icon,"aria-hidden":!0})]})})})});dr.displayName="CopyTextTrigger";function ns(e){return typeof document>"u"?null:At.createPortal(e,document.body)}function fe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function Rl(e,t){const n=i.createContext(t),r=s=>{const{children:c,...l}=s,d=i.useMemo(()=>l,Object.values(l));return a.jsx(n.Provider,{value:d,children:c})};r.displayName=e+"Provider";function o(s){const c=i.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function mn(e,t=[]){let n=[];function r(s,c){const l=i.createContext(c),d=n.length;n=[...n,c];const u=m=>{const{scope:v,children:p,...x}=m,h=v?.[e]?.[d]||l,g=i.useMemo(()=>x,Object.values(x));return a.jsx(h.Provider,{value:g,children:p})};u.displayName=s+"Provider";function f(m,v){const p=v?.[e]?.[d]||l,x=i.useContext(p);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(c=>i.createContext(c));return function(l){const d=l?.[e]||s;return i.useMemo(()=>({[`__scope${e}`]:{...l,[e]:d}}),[l,d])}};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 c=r.reduce((l,{useScope:d,scopeName:u})=>{const m=d(s)[`__scope${u}`];return{...l,...m}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function Al(e){const t=Pl(e),n=i.forwardRef((r,o)=>{const{children:s,...c}=r,l=i.Children.toArray(s),d=l.find(Ol);if(d){const u=d.props.children,f=l.map(m=>m===d?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:m);return a.jsx(t,{...c,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return a.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Pl(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const c=Il(o),l=Tl(s,o.props);return o.type!==i.Fragment&&(l.ref=r?Pt(r,c):c),i.cloneElement(o,l)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ml=Symbol("radix.slottable");function Ol(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ml}function Tl(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const d=s(...l);return o(...l),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Il(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 Dl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ge=Dl.reduce((e,t)=>{const n=Al(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:c,...l}=o,d=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(d,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function $l(e,t){e&&Eo.flushSync(()=>e.dispatchEvent(t))}function _t(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>t.current?.(...n),[])}function zl(e,t=globalThis?.document){const n=_t(e);i.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 Fl="DismissableLayer",Yn="dismissableLayer.update",Bl="dismissableLayer.pointerDownOutside",Vl="dismissableLayer.focusOutside",Wr,rs=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hn=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:l,...d}=e,u=i.useContext(rs),[f,m]=i.useState(null),v=f?.ownerDocument??globalThis?.document,[,p]=i.useState({}),x=ke(t,S=>m(S)),h=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),_=h.indexOf(g),b=f?h.indexOf(f):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,C=b>=_,k=ql(S=>{const N=S.target,O=[...u.branches].some(R=>R.contains(N));!C||O||(o?.(S),c?.(S),S.defaultPrevented||l?.())},v),E=Gl(S=>{const N=S.target;[...u.branches].some(R=>R.contains(N))||(s?.(S),c?.(S),S.defaultPrevented||l?.())},v);return zl(S=>{b===u.layers.size-1&&(r?.(S),!S.defaultPrevented&&l&&(S.preventDefault(),l()))},v),i.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Wr=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),qr(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Wr)}},[f,v,n,u]),i.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),qr())},[f,u]),i.useEffect(()=>{const S=()=>p({});return document.addEventListener(Yn,S),()=>document.removeEventListener(Yn,S)},[]),a.jsx(ge.div,{...d,ref:x,style:{pointerEvents:y?C?"auto":"none":void 0,...e.style},onFocusCapture:fe(e.onFocusCapture,E.onFocusCapture),onBlurCapture:fe(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:fe(e.onPointerDownCapture,k.onPointerDownCapture)})});hn.displayName=Fl;var Hl="DismissableLayerBranch",Wl=i.forwardRef((e,t)=>{const n=i.useContext(rs),r=i.useRef(null),o=ke(t,r);return i.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),a.jsx(ge.div,{...e,ref:o})});Wl.displayName=Hl;function ql(e,t=globalThis?.document){const n=_t(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const s=l=>{if(l.target&&!r.current){let d=function(){os(Bl,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Gl(e,t=globalThis?.document){const n=_t(e),r=i.useRef(!1);return i.useEffect(()=>{const o=s=>{s.target&&!r.current&&os(Vl,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 qr(){const e=new CustomEvent(Yn);document.dispatchEvent(e)}function os(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?$l(o,s):o.dispatchEvent(s)}var Xe=globalThis?.document?i.useLayoutEffect:()=>{},Ul=i[" useId ".trim().toString()]||(()=>{}),Zl=0;function Nt(e){const[t,n]=i.useState(Ul());return Xe(()=>{n(r=>r??String(Zl++))},[e]),e||(t?`radix-${t}`:"")}const Yl=["top","right","bottom","left"],Qe=Math.min,ye=Math.max,cn=Math.round,qt=Math.floor,Te=e=>({x:e,y:e}),Kl={left:"right",right:"left",bottom:"top",top:"bottom"};function Kn(e,t,n){return ye(e,Qe(t,n))}function He(e,t){return typeof e=="function"?e(t):e}function We(e){return e.split("-")[0]}function Ct(e){return e.split("-")[1]}function ur(e){return e==="x"?"y":"x"}function fr(e){return e==="y"?"height":"width"}function Me(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function pr(e){return ur(Me(e))}function Xl(e,t,n){n===void 0&&(n=!1);const r=Ct(e),o=pr(e),s=fr(o);let c=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(c=ln(c)),[c,ln(c)]}function Ql(e){const t=ln(e);return[Xn(e),t,Xn(t)]}function Xn(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Gr=["left","right"],Ur=["right","left"],Jl=["top","bottom"],ed=["bottom","top"];function td(e,t,n){switch(e){case"top":case"bottom":return n?t?Ur:Gr:t?Gr:Ur;case"left":case"right":return t?Jl:ed;default:return[]}}function nd(e,t,n,r){const o=Ct(e);let s=td(We(e),n==="start",r);return o&&(s=s.map(c=>c+"-"+o),t&&(s=s.concat(s.map(Xn)))),s}function ln(e){const t=We(e);return Kl[t]+e.slice(t.length)}function rd(e){return{top:0,right:0,bottom:0,left:0,...e}}function ss(e){return typeof e!="number"?rd(e):{top:e,right:e,bottom:e,left:e}}function dn(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 Zr(e,t,n){let{reference:r,floating:o}=e;const s=Me(t),c=pr(t),l=fr(c),d=We(t),u=s==="y",f=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,v=r[l]/2-o[l]/2;let p;switch(d){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(Ct(t)){case"start":p[c]-=v*(n&&u?-1:1);break;case"end":p[c]+=v*(n&&u?-1:1);break}return p}async function od(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:c,elements:l,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:v=!1,padding:p=0}=He(t,e),x=ss(p),g=l[v?m==="floating"?"reference":"floating":m],_=dn(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(l.floating)),boundary:u,rootBoundary:f,strategy:d})),b=m==="floating"?{x:r,y:o,width:c.floating.width,height:c.floating.height}:c.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),C=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},k=dn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:y,strategy:d}):b);return{top:(_.top-k.top+x.top)/C.y,bottom:(k.bottom-_.bottom+x.bottom)/C.y,left:(_.left-k.left+x.left)/C.x,right:(k.right-_.right+x.right)/C.x}}const sd=50,ad=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:c}=n,l=c.detectOverflow?c:{...c,detectOverflow:od},d=await(c.isRTL==null?void 0:c.isRTL(t));let u=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:m}=Zr(u,r,d),v=r,p=0;const x={};for(let h=0;h<s.length;h++){const g=s[h];if(!g)continue;const{name:_,fn:b}=g,{x:y,y:C,data:k,reset:E}=await b({x:f,y:m,initialPlacement:r,placement:v,strategy:o,middlewareData:x,rects:u,platform:l,elements:{reference:e,floating:t}});f=y??f,m=C??m,x[_]={...x[_],...k},E&&p<sd&&(p++,typeof E=="object"&&(E.placement&&(v=E.placement),E.rects&&(u=E.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:m}=Zr(u,v,d)),h=-1)}return{x:f,y:m,placement:v,strategy:o,middlewareData:x}},id=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:c,elements:l,middlewareData:d}=t,{element:u,padding:f=0}=He(e,t)||{};if(u==null)return{};const m=ss(f),v={x:n,y:r},p=pr(o),x=fr(p),h=await c.getDimensions(u),g=p==="y",_=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",C=s.reference[x]+s.reference[p]-v[p]-s.floating[x],k=v[p]-s.reference[p],E=await(c.getOffsetParent==null?void 0:c.getOffsetParent(u));let S=E?E[y]:0;(!S||!await(c.isElement==null?void 0:c.isElement(E)))&&(S=l.floating[y]||s.floating[x]);const N=C/2-k/2,O=S/2-h[x]/2-1,R=Qe(m[_],O),F=Qe(m[b],O),B=R,V=S-h[x]-F,H=S/2-h[x]/2+N,G=Kn(B,H,V),T=!d.arrow&&Ct(o)!=null&&H!==G&&s.reference[x]/2-(H<B?R:F)-h[x]/2<0,W=T?H<B?H-B:H-V:0;return{[p]:v[p]+W,data:{[p]:G,centerOffset:H-G-W,...T&&{alignmentOffset:W}},reset:T}}}),cd=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:c,initialPlacement:l,platform:d,elements:u}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:v,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:h=!0,...g}=He(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const _=We(o),b=Me(l),y=We(l)===l,C=await(d.isRTL==null?void 0:d.isRTL(u.floating)),k=v||(y||!h?[ln(l)]:Ql(l)),E=x!=="none";!v&&E&&k.push(...nd(l,h,x,C));const S=[l,...k],N=await d.detectOverflow(t,g),O=[];let R=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&O.push(N[_]),m){const H=Xl(o,c,C);O.push(N[H[0]],N[H[1]])}if(R=[...R,{placement:o,overflows:O}],!O.every(H=>H<=0)){var F,B;const H=(((F=s.flip)==null?void 0:F.index)||0)+1,G=S[H];if(G&&(!(m==="alignment"?b!==Me(G):!1)||R.every(I=>Me(I.placement)===b?I.overflows[0]>0:!0)))return{data:{index:H,overflows:R},reset:{placement:G}};let T=(B=R.filter(W=>W.overflows[0]<=0).sort((W,I)=>W.overflows[1]-I.overflows[1])[0])==null?void 0:B.placement;if(!T)switch(p){case"bestFit":{var V;const W=(V=R.filter(I=>{if(E){const X=Me(I.placement);return X===b||X==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(X=>X>0).reduce((X,j)=>X+j,0)]).sort((I,X)=>I[1]-X[1])[0])==null?void 0:V[0];W&&(T=W);break}case"initialPlacement":T=l;break}if(o!==T)return{reset:{placement:T}}}return{}}}};function Yr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Kr(e){return Yl.some(t=>e[t]>=0)}const ld=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=He(e,t);switch(o){case"referenceHidden":{const c=await r.detectOverflow(t,{...s,elementContext:"reference"}),l=Yr(c,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Kr(l)}}}case"escaped":{const c=await r.detectOverflow(t,{...s,altBoundary:!0}),l=Yr(c,n.floating);return{data:{escapedOffsets:l,escaped:Kr(l)}}}default:return{}}}}},as=new Set(["left","top"]);async function dd(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),c=We(n),l=Ct(n),d=Me(n)==="y",u=as.has(c)?-1:1,f=s&&d?-1:1,m=He(t,e);let{mainAxis:v,crossAxis:p,alignmentAxis:x}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof x=="number"&&(p=l==="end"?x*-1:x),d?{x:p*f,y:v*u}:{x:v*u,y:p*f}}const ud=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:c,middlewareData:l}=t,d=await dd(t,e);return c===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:s+d.y,data:{...d,placement:c}}}}},fd=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:c=!0,crossAxis:l=!1,limiter:d={fn:_=>{let{x:b,y}=_;return{x:b,y}}},...u}=He(e,t),f={x:n,y:r},m=await s.detectOverflow(t,u),v=Me(We(o)),p=ur(v);let x=f[p],h=f[v];if(c){const _=p==="y"?"top":"left",b=p==="y"?"bottom":"right",y=x+m[_],C=x-m[b];x=Kn(y,x,C)}if(l){const _=v==="y"?"top":"left",b=v==="y"?"bottom":"right",y=h+m[_],C=h-m[b];h=Kn(y,h,C)}const g=d.fn({...t,[p]:x,[v]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:c,[v]:l}}}}}},pd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:c}=t,{offset:l=0,mainAxis:d=!0,crossAxis:u=!0}=He(e,t),f={x:n,y:r},m=Me(o),v=ur(m);let p=f[v],x=f[m];const h=He(l,t),g=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(d){const y=v==="y"?"height":"width",C=s.reference[v]-s.floating[y]+g.mainAxis,k=s.reference[v]+s.reference[y]-g.mainAxis;p<C?p=C:p>k&&(p=k)}if(u){var _,b;const y=v==="y"?"width":"height",C=as.has(We(o)),k=s.reference[m]-s.floating[y]+(C&&((_=c.offset)==null?void 0:_[m])||0)+(C?0:g.crossAxis),E=s.reference[m]+s.reference[y]+(C?0:((b=c.offset)==null?void 0:b[m])||0)-(C?g.crossAxis:0);x<k?x=k:x>E&&(x=E)}return{[v]:p,[m]:x}}}},md=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:c,elements:l}=t,{apply:d=()=>{},...u}=He(e,t),f=await c.detectOverflow(t,u),m=We(o),v=Ct(o),p=Me(o)==="y",{width:x,height:h}=s.floating;let g,_;m==="top"||m==="bottom"?(g=m,_=v===(await(c.isRTL==null?void 0:c.isRTL(l.floating))?"start":"end")?"left":"right"):(_=m,g=v==="end"?"top":"bottom");const b=h-f.top-f.bottom,y=x-f.left-f.right,C=Qe(h-f[g],b),k=Qe(x-f[_],y),E=!t.middlewareData.shift;let S=C,N=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(S=b),E&&!v){const R=ye(f.left,0),F=ye(f.right,0),B=ye(f.top,0),V=ye(f.bottom,0);p?N=x-2*(R!==0||F!==0?R+F:ye(f.left,f.right)):S=h-2*(B!==0||V!==0?B+V:ye(f.top,f.bottom))}await d({...t,availableWidth:N,availableHeight:S});const O=await c.getDimensions(l.floating);return x!==O.width||h!==O.height?{reset:{rects:!0}}:{}}}};function gn(){return typeof window<"u"}function kt(e){return is(e)?(e.nodeName||"").toLowerCase():"#document"}function Ce(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function De(e){var t;return(t=(is(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function is(e){return gn()?e instanceof Node||e instanceof Ce(e).Node:!1}function he(e){return gn()?e instanceof Element||e instanceof Ce(e).Element:!1}function qe(e){return gn()?e instanceof HTMLElement||e instanceof Ce(e).HTMLElement:!1}function Xr(e){return!gn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ce(e).ShadowRoot}function Mt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Se(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function hd(e){return/^(table|td|th)$/.test(kt(e))}function vn(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const gd=/transform|translate|scale|rotate|perspective|filter/,vd=/paint|layout|strict|content/,it=e=>!!e&&e!=="none";let In;function mr(e){const t=he(e)?Se(e):e;return it(t.transform)||it(t.translate)||it(t.scale)||it(t.rotate)||it(t.perspective)||!hr()&&(it(t.backdropFilter)||it(t.filter))||gd.test(t.willChange||"")||vd.test(t.contain||"")}function xd(e){let t=Je(e);for(;qe(t)&&!wt(t);){if(mr(t))return t;if(vn(t))return null;t=Je(t)}return null}function hr(){return In==null&&(In=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),In}function wt(e){return/^(html|body|#document)$/.test(kt(e))}function Se(e){return Ce(e).getComputedStyle(e)}function xn(e){return he(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Je(e){if(kt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xr(e)&&e.host||De(e);return Xr(t)?t.host:t}function cs(e){const t=Je(e);return wt(t)?e.ownerDocument?e.ownerDocument.body:e.body:qe(t)&&Mt(t)?t:cs(t)}function Rt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=cs(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=Ce(o);if(s){const l=Qn(c);return t.concat(c,c.visualViewport||[],Mt(o)?o:[],l&&n?Rt(l):[])}else return t.concat(o,Rt(o,[],n))}function Qn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ls(e){const t=Se(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=qe(e),s=o?e.offsetWidth:n,c=o?e.offsetHeight:r,l=cn(n)!==s||cn(r)!==c;return l&&(n=s,r=c),{width:n,height:r,$:l}}function gr(e){return he(e)?e:e.contextElement}function vt(e){const t=gr(e);if(!qe(t))return Te(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=ls(t);let c=(s?cn(n.width):n.width)/r,l=(s?cn(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}const _d=Te(0);function ds(e){const t=Ce(e);return!hr()||!t.visualViewport?_d:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wd(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ce(e)?!1:t}function lt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=gr(e);let c=Te(1);t&&(r?he(r)&&(c=vt(r)):c=vt(e));const l=wd(s,n,r)?ds(s):Te(0);let d=(o.left+l.x)/c.x,u=(o.top+l.y)/c.y,f=o.width/c.x,m=o.height/c.y;if(s){const v=Ce(s),p=r&&he(r)?Ce(r):r;let x=v,h=Qn(x);for(;h&&r&&p!==x;){const g=vt(h),_=h.getBoundingClientRect(),b=Se(h),y=_.left+(h.clientLeft+parseFloat(b.paddingLeft))*g.x,C=_.top+(h.clientTop+parseFloat(b.paddingTop))*g.y;d*=g.x,u*=g.y,f*=g.x,m*=g.y,d+=y,u+=C,x=Ce(h),h=Qn(x)}}return dn({width:f,height:m,x:d,y:u})}function _n(e,t){const n=xn(e).scrollLeft;return t?t.left+n:lt(De(e)).left+n}function us(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-_n(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function bd(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",c=De(r),l=t?vn(t.floating):!1;if(r===c||l&&s)return n;let d={scrollLeft:0,scrollTop:0},u=Te(1);const f=Te(0),m=qe(r);if((m||!m&&!s)&&((kt(r)!=="body"||Mt(c))&&(d=xn(r)),m)){const p=lt(r);u=vt(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}const v=c&&!m&&!s?us(c,d):Te(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+f.x+v.x,y:n.y*u.y-d.scrollTop*u.y+f.y+v.y}}function yd(e){return Array.from(e.getClientRects())}function Cd(e){const t=De(e),n=xn(e),r=e.ownerDocument.body,o=ye(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ye(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+_n(e);const l=-n.scrollTop;return Se(r).direction==="rtl"&&(c+=ye(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:c,y:l}}const Qr=25;function kd(e,t){const n=Ce(e),r=De(e),o=n.visualViewport;let s=r.clientWidth,c=r.clientHeight,l=0,d=0;if(o){s=o.width,c=o.height;const f=hr();(!f||f&&t==="fixed")&&(l=o.offsetLeft,d=o.offsetTop)}const u=_n(r);if(u<=0){const f=r.ownerDocument,m=f.body,v=getComputedStyle(m),p=f.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(r.clientWidth-m.clientWidth-p);x<=Qr&&(s-=x)}else u<=Qr&&(s+=u);return{width:s,height:c,x:l,y:d}}function Ed(e,t){const n=lt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=qe(e)?vt(e):Te(1),c=e.clientWidth*s.x,l=e.clientHeight*s.y,d=o*s.x,u=r*s.y;return{width:c,height:l,x:d,y:u}}function Jr(e,t,n){let r;if(t==="viewport")r=kd(e,n);else if(t==="document")r=Cd(De(e));else if(he(t))r=Ed(t,n);else{const o=ds(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return dn(r)}function fs(e,t){const n=Je(e);return n===t||!he(n)||wt(n)?!1:Se(n).position==="fixed"||fs(n,t)}function jd(e,t){const n=t.get(e);if(n)return n;let r=Rt(e,[],!1).filter(l=>he(l)&&kt(l)!=="body"),o=null;const s=Se(e).position==="fixed";let c=s?Je(e):e;for(;he(c)&&!wt(c);){const l=Se(c),d=mr(c);!d&&l.position==="fixed"&&(o=null),(s?!d&&!o:!d&&l.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Mt(c)&&!d&&fs(e,c))?r=r.filter(f=>f!==c):o=l,c=Je(c)}return t.set(e,r),r}function Sd(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const c=[...n==="clippingAncestors"?vn(t)?[]:jd(t,this._c):[].concat(n),r],l=Jr(t,c[0],o);let d=l.top,u=l.right,f=l.bottom,m=l.left;for(let v=1;v<c.length;v++){const p=Jr(t,c[v],o);d=ye(p.top,d),u=Qe(p.right,u),f=Qe(p.bottom,f),m=ye(p.left,m)}return{width:u-m,height:f-d,x:m,y:d}}function Nd(e){const{width:t,height:n}=ls(e);return{width:t,height:n}}function Rd(e,t,n){const r=qe(t),o=De(t),s=n==="fixed",c=lt(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const d=Te(0);function u(){d.x=_n(o)}if(r||!r&&!s)if((kt(t)!=="body"||Mt(o))&&(l=xn(t)),r){const p=lt(t,!0,s,t);d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}else o&&u();s&&!r&&o&&u();const f=o&&!r&&!s?us(o,l):Te(0),m=c.left+l.scrollLeft-d.x-f.x,v=c.top+l.scrollTop-d.y-f.y;return{x:m,y:v,width:c.width,height:c.height}}function Dn(e){return Se(e).position==="static"}function eo(e,t){if(!qe(e)||Se(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return De(e)===n&&(n=n.ownerDocument.body),n}function ps(e,t){const n=Ce(e);if(vn(e))return n;if(!qe(e)){let o=Je(e);for(;o&&!wt(o);){if(he(o)&&!Dn(o))return o;o=Je(o)}return n}let r=eo(e,t);for(;r&&hd(r)&&Dn(r);)r=eo(r,t);return r&&wt(r)&&Dn(r)&&!mr(r)?n:r||xd(e)||n}const Ld=async function(e){const t=this.getOffsetParent||ps,n=this.getDimensions,r=await n(e.floating);return{reference:Rd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ad(e){return Se(e).direction==="rtl"}const Pd={convertOffsetParentRelativeRectToViewportRelativeRect:bd,getDocumentElement:De,getClippingRect:Sd,getOffsetParent:ps,getElementRects:Ld,getClientRects:yd,getDimensions:Nd,getScale:vt,isElement:he,isRTL:Ad};function ms(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Md(e,t){let n=null,r;const o=De(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function c(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),s();const u=e.getBoundingClientRect(),{left:f,top:m,width:v,height:p}=u;if(l||t(),!v||!p)return;const x=qt(m),h=qt(o.clientWidth-(f+v)),g=qt(o.clientHeight-(m+p)),_=qt(f),y={rootMargin:-x+"px "+-h+"px "+-g+"px "+-_+"px",threshold:ye(0,Qe(1,d))||1};let C=!0;function k(E){const S=E[0].intersectionRatio;if(S!==d){if(!C)return c();S?c(!1,S):r=setTimeout(()=>{c(!1,1e-7)},1e3)}S===1&&!ms(u,e.getBoundingClientRect())&&c(),C=!1}try{n=new IntersectionObserver(k,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,y)}n.observe(e)}return c(!0),s}function hs(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,u=gr(e),f=o||s?[...u?Rt(u):[],...t?Rt(t):[]]:[];f.forEach(_=>{o&&_.addEventListener("scroll",n,{passive:!0}),s&&_.addEventListener("resize",n)});const m=u&&l?Md(u,n):null;let v=-1,p=null;c&&(p=new ResizeObserver(_=>{let[b]=_;b&&b.target===u&&p&&t&&(p.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var y;(y=p)==null||y.observe(t)})),n()}),u&&!d&&p.observe(u),t&&p.observe(t));let x,h=d?lt(e):null;d&&g();function g(){const _=lt(e);h&&!ms(h,_)&&n(),h=_,x=requestAnimationFrame(g)}return n(),()=>{var _;f.forEach(b=>{o&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),m?.(),(_=p)==null||_.disconnect(),p=null,d&&cancelAnimationFrame(x)}}const Od=ud,Td=fd,Id=cd,Dd=md,$d=ld,to=id,zd=pd,Fd=(e,t,n)=>{const r=new Map,o={platform:Pd,...n},s={...o.platform,_c:r};return ad(e,t,{...o,platform:s})};var Bd=typeof document<"u",Vd=function(){},nn=Bd?w.useLayoutEffect:Vd;function un(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(!un(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)&&!un(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function gs(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function no(e,t){const n=gs(e);return Math.round(t*n)/n}function $n(e){const t=i.useRef(e);return nn(()=>{t.current=e}),t}function vs(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:c}={},transform:l=!0,whileElementsMounted:d,open:u}=e,[f,m]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,p]=i.useState(r);un(v,r)||p(r);const[x,h]=i.useState(null),[g,_]=i.useState(null),b=i.useCallback(I=>{I!==E.current&&(E.current=I,h(I))},[]),y=i.useCallback(I=>{I!==S.current&&(S.current=I,_(I))},[]),C=s||x,k=c||g,E=i.useRef(null),S=i.useRef(null),N=i.useRef(f),O=d!=null,R=$n(d),F=$n(o),B=$n(u),V=i.useCallback(()=>{if(!E.current||!S.current)return;const I={placement:t,strategy:n,middleware:v};F.current&&(I.platform=F.current),Fd(E.current,S.current,I).then(X=>{const j={...X,isPositioned:B.current!==!1};H.current&&!un(N.current,j)&&(N.current=j,Eo.flushSync(()=>{m(j)}))})},[v,t,n,F,B]);nn(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,m(I=>({...I,isPositioned:!1})))},[u]);const H=i.useRef(!1);nn(()=>(H.current=!0,()=>{H.current=!1}),[]),nn(()=>{if(C&&(E.current=C),k&&(S.current=k),C&&k){if(R.current)return R.current(C,k,V);V()}},[C,k,V,R,O]);const G=i.useMemo(()=>({reference:E,floating:S,setReference:b,setFloating:y}),[b,y]),T=i.useMemo(()=>({reference:C,floating:k}),[C,k]),W=i.useMemo(()=>{const I={position:n,left:0,top:0};if(!T.floating)return I;const X=no(T.floating,f.x),j=no(T.floating,f.y);return l?{...I,transform:"translate("+X+"px, "+j+"px)",...gs(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:X,top:j}},[n,l,T.floating,f.x,f.y]);return i.useMemo(()=>({...f,update:V,refs:G,elements:T,floatingStyles:W}),[f,V,G,T,W])}const Hd=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?to({element:r.current,padding:o}).fn(n):{}:r?to({element:r,padding:o}).fn(n):{}}}},xs=(e,t)=>{const n=Od(e);return{name:n.name,fn:n.fn,options:[e,t]}},Wd=(e,t)=>{const n=Td(e);return{name:n.name,fn:n.fn,options:[e,t]}},qd=(e,t)=>({fn:zd(e).fn,options:[e,t]}),_s=(e,t)=>{const n=Id(e);return{name:n.name,fn:n.fn,options:[e,t]}},ws=(e,t)=>{const n=Dd(e);return{name:n.name,fn:n.fn,options:[e,t]}},Gd=(e,t)=>{const n=$d(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ud=(e,t)=>{const n=Hd(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Zd="Arrow",bs=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return a.jsx(ge.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:a.jsx("polygon",{points:"0,0 30,0 15,10"})})});bs.displayName=Zd;var Yd=bs;function Kd(e){const[t,n]=i.useState(void 0);return Xe(()=>{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 c,l;if("borderBoxSize"in s){const d=s.borderBoxSize,u=Array.isArray(d)?d[0]:d;c=u.inlineSize,l=u.blockSize}else c=e.offsetWidth,l=e.offsetHeight;n({width:c,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var vr="Popper",[ys,wn]=mn(vr),[Xd,Cs]=ys(vr),ks=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return a.jsx(Xd,{scope:t,anchor:r,onAnchorChange:o,children:n})};ks.displayName=vr;var Es="PopperAnchor",js=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Cs(Es,n),c=i.useRef(null),l=ke(t,c),d=i.useRef(null);return i.useEffect(()=>{const u=d.current;d.current=r?.current||c.current,u!==d.current&&s.onAnchorChange(d.current)}),r?null:a.jsx(ge.div,{...o,ref:l})});js.displayName=Es;var xr="PopperContent",[Qd,Jd]=ys(xr),Ss=i.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:c=0,arrowPadding:l=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:m="partial",hideWhenDetached:v=!1,updatePositionStrategy:p="optimized",onPlaced:x,...h}=e,g=Cs(xr,n),[_,b]=i.useState(null),y=ke(t,de=>b(de)),[C,k]=i.useState(null),E=Kd(C),S=E?.width??0,N=E?.height??0,O=r+(s!=="center"?"-"+s:""),R=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},F=Array.isArray(u)?u:[u],B=F.length>0,V={padding:R,boundary:F.filter(tu),altBoundary:B},{refs:H,floatingStyles:G,placement:T,isPositioned:W,middlewareData:I}=vs({strategy:"fixed",placement:O,whileElementsMounted:(...de)=>hs(...de,{animationFrame:p==="always"}),elements:{reference:g.anchor},middleware:[xs({mainAxis:o+N,alignmentAxis:c}),d&&Wd({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?qd():void 0,...V}),d&&_s({...V}),ws({...V,apply:({elements:de,rects:D,availableWidth:K,availableHeight:we})=>{const{width:Re,height:Ee}=D.reference,Z=de.floating.style;Z.setProperty("--radix-popper-available-width",`${K}px`),Z.setProperty("--radix-popper-available-height",`${we}px`),Z.setProperty("--radix-popper-anchor-width",`${Re}px`),Z.setProperty("--radix-popper-anchor-height",`${Ee}px`)}}),C&&Ud({element:C,padding:l}),nu({arrowWidth:S,arrowHeight:N}),v&&Gd({strategy:"referenceHidden",...V})]}),[X,j]=Ls(T),Q=_t(x);Xe(()=>{W&&Q?.()},[W,Q]);const re=I.arrow?.x,ee=I.arrow?.y,se=I.arrow?.centerOffset!==0,[U,te]=i.useState();return Xe(()=>{_&&te(window.getComputedStyle(_).zIndex)},[_]),a.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:W?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(" "),...I.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:a.jsx(Qd,{scope:n,placedSide:X,onArrowChange:k,arrowX:re,arrowY:ee,shouldHideArrow:se,children:a.jsx(ge.div,{"data-side":X,"data-align":j,...h,ref:y,style:{...h.style,animation:W?void 0:"none"}})})})});Ss.displayName=xr;var Ns="PopperArrow",eu={top:"bottom",right:"left",bottom:"top",left:"right"},Rs=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Jd(Ns,r),c=eu[s.placedSide];return a.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]: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:a.jsx(Yd,{...o,ref:n,style:{...o.style,display:"block"}})})});Rs.displayName=Ns;function tu(e){return e!==null}var nu=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,c=o.arrow?.centerOffset!==0,l=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[u,f]=Ls(n),m={start:"0%",center:"50%",end:"100%"}[f],v=(o.arrow?.x??0)+l/2,p=(o.arrow?.y??0)+d/2;let x="",h="";return u==="bottom"?(x=c?m:`${v}px`,h=`${-d}px`):u==="top"?(x=c?m:`${v}px`,h=`${r.floating.height+d}px`):u==="right"?(x=`${-d}px`,h=c?m:`${p}px`):u==="left"&&(x=`${r.floating.width+d}px`,h=c?m:`${p}px`),{data:{x,y:h}}}});function Ls(e){const[t,n="center"]=e.split("-");return[t,n]}var As=ks,_r=js,Ps=Ss,Ms=Rs,ru="Portal",bn=i.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=i.useState(!1);Xe(()=>s(!0),[]);const c=n||o&&globalThis?.document?.body;return c?At.createPortal(a.jsx(ge.div,{...r,ref:t}),c):null});bn.displayName=ru;function ou(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var tt=e=>{const{present:t,children:n}=e,r=su(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),s=ke(r.ref,au(o));return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:s}):null};tt.displayName="Presence";function su(e){const[t,n]=i.useState(),r=i.useRef(null),o=i.useRef(e),s=i.useRef("none"),c=e?"mounted":"unmounted",[l,d]=ou(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=Gt(r.current);s.current=l==="mounted"?u:"none"},[l]),Xe(()=>{const u=r.current,f=o.current;if(f!==e){const v=s.current,p=Gt(u);e?d("MOUNT"):p==="none"||u?.display==="none"?d("UNMOUNT"):d(f&&v!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),Xe(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,m=p=>{const h=Gt(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&h&&(d("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},v=p=>{p.target===t&&(s.current=Gt(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:i.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Gt(e){return e?.animationName||"none"}function au(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 iu=Symbol("radix.slottable");function cu(e){const t=({children:n})=>a.jsx(a.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=iu,t}var lu=i[" useInsertionEffect ".trim().toString()]||Xe;function wr({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,c]=du({defaultProp:t,onChange:n}),l=e!==void 0,d=l?e:o;{const f=i.useRef(e!==void 0);i.useEffect(()=>{const m=f.current;m!==l&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=l},[l,r])}const u=i.useCallback(f=>{if(l){const m=uu(f)?f(e):f;m!==e&&c.current?.(m)}else s(f)},[l,e,s,c]);return[d,u]}function du({defaultProp:e,onChange:t}){const[n,r]=i.useState(e),o=i.useRef(n),s=i.useRef(t);return lu(()=>{s.current=t},[t]),i.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function uu(e){return typeof e=="function"}var fu=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"}),pu="VisuallyHidden",Os=i.forwardRef((e,t)=>a.jsx(ge.span,{...e,ref:t,style:{...fu,...e.style}}));Os.displayName=pu;var mu=Os,[yn]=mn("Tooltip",[wn]),Cn=wn(),Ts="TooltipProvider",hu=700,Jn="tooltip.open",[gu,br]=yn(Ts),Is=e=>{const{__scopeTooltip:t,delayDuration:n=hu,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,c=i.useRef(!0),l=i.useRef(!1),d=i.useRef(0);return i.useEffect(()=>{const u=d.current;return()=>window.clearTimeout(u)},[]),a.jsx(gu,{scope:t,isOpenDelayedRef:c,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(d.current),c.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>c.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:i.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:s})};Is.displayName=Ts;var Lt="Tooltip",[vu,Ot]=yn(Lt),Ds=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:c,delayDuration:l}=e,d=br(Lt,e.__scopeTooltip),u=Cn(t),[f,m]=i.useState(null),v=Nt(),p=i.useRef(0),x=c??d.disableHoverableContent,h=l??d.delayDuration,g=i.useRef(!1),[_,b]=wr({prop:r,defaultProp:o??!1,onChange:S=>{S?(d.onOpen(),document.dispatchEvent(new CustomEvent(Jn))):d.onClose(),s?.(S)},caller:Lt}),y=i.useMemo(()=>_?g.current?"delayed-open":"instant-open":"closed",[_]),C=i.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g.current=!1,b(!0)},[b]),k=i.useCallback(()=>{window.clearTimeout(p.current),p.current=0,b(!1)},[b]),E=i.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,b(!0),p.current=0},h)},[h,b]);return i.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),a.jsx(As,{...u,children:a.jsx(vu,{scope:t,contentId:v,open:_,stateAttribute:y,trigger:f,onTriggerChange:m,onTriggerEnter:i.useCallback(()=>{d.isOpenDelayedRef.current?E():C()},[d.isOpenDelayedRef,E,C]),onTriggerLeave:i.useCallback(()=>{x?k():(window.clearTimeout(p.current),p.current=0)},[k,x]),onOpen:C,onClose:k,disableHoverableContent:x,children:n})})};Ds.displayName=Lt;var er="TooltipTrigger",$s=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ot(er,n),s=br(er,n),c=Cn(n),l=i.useRef(null),d=ke(t,l,o.onTriggerChange),u=i.useRef(!1),f=i.useRef(!1),m=i.useCallback(()=>u.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),a.jsx(_r,{asChild:!0,...c,children:a.jsx(ge.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:d,onPointerMove:fe(e.onPointerMove,v=>{v.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:fe(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:fe(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:fe(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:fe(e.onBlur,o.onClose),onClick:fe(e.onClick,o.onClose)})})});$s.displayName=er;var yr="TooltipPortal",[xu,_u]=yn(yr,{forceMount:void 0}),zs=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Ot(yr,t);return a.jsx(xu,{scope:t,forceMount:n,children:a.jsx(tt,{present:n||s.open,children:a.jsx(bn,{asChild:!0,container:o,children:r})})})};zs.displayName=yr;var bt="TooltipContent",Fs=i.forwardRef((e,t)=>{const n=_u(bt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,c=Ot(bt,e.__scopeTooltip);return a.jsx(tt,{present:r||c.open,children:c.disableHoverableContent?a.jsx(Bs,{side:o,...s,ref:t}):a.jsx(wu,{side:o,...s,ref:t})})}),wu=i.forwardRef((e,t)=>{const n=Ot(bt,e.__scopeTooltip),r=br(bt,e.__scopeTooltip),o=i.useRef(null),s=ke(t,o),[c,l]=i.useState(null),{trigger:d,onClose:u}=n,f=o.current,{onPointerInTransitChange:m}=r,v=i.useCallback(()=>{l(null),m(!1)},[m]),p=i.useCallback((x,h)=>{const g=x.currentTarget,_={x:x.clientX,y:x.clientY},b=Eu(_,g.getBoundingClientRect()),y=ju(_,b),C=Su(h.getBoundingClientRect()),k=Ru([...y,...C]);l(k),m(!0)},[m]);return i.useEffect(()=>()=>v(),[v]),i.useEffect(()=>{if(d&&f){const x=g=>p(g,f),h=g=>p(g,d);return d.addEventListener("pointerleave",x),f.addEventListener("pointerleave",h),()=>{d.removeEventListener("pointerleave",x),f.removeEventListener("pointerleave",h)}}},[d,f,p,v]),i.useEffect(()=>{if(c){const x=h=>{const g=h.target,_={x:h.clientX,y:h.clientY},b=d?.contains(g)||f?.contains(g),y=!Nu(_,c);b?v():y&&(v(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[d,f,c,u,v]),a.jsx(Bs,{...e,ref:s})}),[bu,yu]=yn(Lt,{isInside:!1}),Cu=cu("TooltipContent"),Bs=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:c,...l}=e,d=Ot(bt,n),u=Cn(n),{onClose:f}=d;return i.useEffect(()=>(document.addEventListener(Jn,f),()=>document.removeEventListener(Jn,f)),[f]),i.useEffect(()=>{if(d.trigger){const m=v=>{v.target?.contains(d.trigger)&&f()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[d.trigger,f]),a.jsx(hn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:m=>m.preventDefault(),onDismiss:f,children:a.jsxs(Ps,{"data-state":d.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[a.jsx(Cu,{children:r}),a.jsx(bu,{scope:n,isInside:!0,children:a.jsx(mu,{id:d.contentId,role:"tooltip",children:o||r})})]})})});Fs.displayName=bt;var Vs="TooltipArrow",ku=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Cn(n);return yu(Vs,n).isInside?null:a.jsx(Ms,{...o,...r,ref:t})});ku.displayName=Vs;function Eu(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 ju(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 Su(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 Nu(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,c=t.length-1;s<t.length;c=s++){const l=t[s],d=t[c],u=l.x,f=l.y,m=d.x,v=d.y;f>r!=v>r&&n<(m-u)*(r-f)/(v-f)+u&&(o=!o)}return o}function Ru(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),Lu(t)}function Lu(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],c=t[t.length-2];if((s.x-c.x)*(o.y-c.y)>=(s.y-c.y)*(o.x-c.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],c=n[n.length-2];if((s.x-c.x)*(o.y-c.y)>=(s.y-c.y)*(o.x-c.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 Au=Is,Pu=Ds,Mu=$s,Ou=zs,Hs=Fs;const Tu=Au,Iu=Pu,Du=Mu,Ws=i.forwardRef(({className:e,sideOffset:t=4,...n},r)=>a.jsx(Ou,{children:a.jsx(Hs,{ref:r,sideOffset:t,className:Ie("z-50 overflow-hidden rounded-md px-3 py-1.5 text-xs 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})}));Ws.displayName=Hs.displayName;const $u="_anchor_rpda1_1",zu="_tooltip_rpda1_6",ro={anchor:$u,tooltip:zu},oo=e=>typeof e=="string"?document.getElementById(e):"current"in e?e.current:e,Fu=(e="top")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},so=(e,t)=>typeof e=="number"?e:e?.[t]??0,qs=({children:e,target:t,placement:n="top",popperClassName:r,isOpen:o,toggle:s,delay:c,autohide:l=!0})=>{const[d,u]=w.useState(!1),[f,m]=w.useState(null),v=o??d,{side:p,align:x}=w.useMemo(()=>Fu(n),[n]),h=w.useCallback(()=>{const _=oo(t);m(_?.getBoundingClientRect()??null)},[t]),g=w.useCallback(_=>{o===void 0&&u(_),s?.()},[o,s]);return w.useEffect(()=>{const _=oo(t);if(!_)return;let b=null,y=null;const C=()=>{b&&clearTimeout(b),y&&clearTimeout(y)},k=()=>{C(),h(),b=setTimeout(()=>g(!0),so(c,"show"))},E=()=>{l&&(C(),y=setTimeout(()=>g(!1),so(c,"hide")))};return _.addEventListener("mouseenter",k),_.addEventListener("mouseleave",E),_.addEventListener("focus",k),_.addEventListener("blur",E),window.addEventListener("scroll",h,!0),window.addEventListener("resize",h),()=>{C(),_.removeEventListener("mouseenter",k),_.removeEventListener("mouseleave",E),_.removeEventListener("focus",k),_.removeEventListener("blur",E),window.removeEventListener("scroll",h,!0),window.removeEventListener("resize",h)}},[l,c,g,t,h]),f?a.jsx(Tu,{delayDuration:0,children:a.jsxs(Iu,{open:v,onOpenChange:g,children:[ns(a.jsx(Du,{asChild:!0,children:a.jsx("span",{className:ro.anchor,style:{left:f.left,top:f.top,width:f.width,height:f.height}})})),a.jsx(Ws,{side:p,align:x,className:L(ro.tooltip,r),children:e})]})}):null};var zn=0;function Gs(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ao()),document.body.insertAdjacentElement("beforeend",e[1]??ao()),zn++,()=>{zn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),zn--}},[])}function ao(){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 Fn="focusScope.autoFocusOnMount",Bn="focusScope.autoFocusOnUnmount",io={bubbles:!1,cancelable:!0},Bu="FocusScope",Cr=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...c}=e,[l,d]=i.useState(null),u=_t(o),f=_t(s),m=i.useRef(null),v=ke(t,h=>d(h)),p=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let h=function(y){if(p.paused||!l)return;const C=y.target;l.contains(C)?m.current=C:Ke(m.current,{select:!0})},g=function(y){if(p.paused||!l)return;const C=y.relatedTarget;C!==null&&(l.contains(C)||Ke(m.current,{select:!0}))},_=function(y){if(document.activeElement===document.body)for(const k of y)k.removedNodes.length>0&&Ke(l)};document.addEventListener("focusin",h),document.addEventListener("focusout",g);const b=new MutationObserver(_);return l&&b.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",g),b.disconnect()}}},[r,l,p.paused]),i.useEffect(()=>{if(l){lo.add(p);const h=document.activeElement;if(!l.contains(h)){const _=new CustomEvent(Fn,io);l.addEventListener(Fn,u),l.dispatchEvent(_),_.defaultPrevented||(Vu(Uu(Us(l)),{select:!0}),document.activeElement===h&&Ke(l))}return()=>{l.removeEventListener(Fn,u),setTimeout(()=>{const _=new CustomEvent(Bn,io);l.addEventListener(Bn,f),l.dispatchEvent(_),_.defaultPrevented||Ke(h??document.body,{select:!0}),l.removeEventListener(Bn,f),lo.remove(p)},0)}}},[l,u,f,p]);const x=i.useCallback(h=>{if(!n&&!r||p.paused)return;const g=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,_=document.activeElement;if(g&&_){const b=h.currentTarget,[y,C]=Hu(b);y&&C?!h.shiftKey&&_===C?(h.preventDefault(),n&&Ke(y,{select:!0})):h.shiftKey&&_===y&&(h.preventDefault(),n&&Ke(C,{select:!0})):_===b&&h.preventDefault()}},[n,r,p.paused]);return a.jsx(ge.div,{tabIndex:-1,...c,ref:v,onKeyDown:x})});Cr.displayName=Bu;function Vu(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ke(r,{select:t}),document.activeElement!==n)return}function Hu(e){const t=Us(e),n=co(t,e),r=co(t.reverse(),e);return[n,r]}function Us(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 co(e,t){for(const n of e)if(!Wu(n,{upTo:t}))return n}function Wu(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 qu(e){return e instanceof HTMLInputElement&&"select"in e}function Ke(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&qu(e)&&t&&e.select()}}var lo=Gu();function Gu(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=uo(e,t),e.unshift(t)},remove(t){e=uo(e,t),e[0]?.resume()}}}function uo(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Uu(e){return e.filter(t=>t.tagName!=="A")}function Zu(e){const t=Yu(e),n=i.forwardRef((r,o)=>{const{children:s,...c}=r,l=i.Children.toArray(s),d=l.find(Xu);if(d){const u=d.props.children,f=l.map(m=>m===d?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:m);return a.jsx(t,{...c,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return a.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Yu(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const c=Ju(o),l=Qu(s,o.props);return o.type!==i.Fragment&&(l.ref=r?Pt(r,c):c),i.cloneElement(o,l)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ku=Symbol("radix.slottable");function Xu(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ku}function Qu(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const d=s(...l);return o(...l),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ju(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 e1=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},mt=new WeakMap,Ut=new WeakMap,Zt={},Vn=0,Zs=function(e){return e&&(e.host||Zs(e.parentNode))},t1=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Zs(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})},n1=function(e,t,n,r){var o=t1(t,Array.isArray(e)?e:[e]);Zt[n]||(Zt[n]=new WeakMap);var s=Zt[n],c=[],l=new Set,d=new Set(o),u=function(m){!m||l.has(m)||(l.add(m),u(m.parentNode))};o.forEach(u);var f=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(v){if(l.has(v))f(v);else try{var p=v.getAttribute(r),x=p!==null&&p!=="false",h=(mt.get(v)||0)+1,g=(s.get(v)||0)+1;mt.set(v,h),s.set(v,g),c.push(v),h===1&&x&&Ut.set(v,!0),g===1&&v.setAttribute(n,"true"),x||v.setAttribute(r,"true")}catch(_){console.error("aria-hidden: cannot operate on ",v,_)}})};return f(t),l.clear(),Vn++,function(){c.forEach(function(m){var v=mt.get(m)-1,p=s.get(m)-1;mt.set(m,v),s.set(m,p),v||(Ut.has(m)||m.removeAttribute(r),Ut.delete(m)),p||m.removeAttribute(n)}),Vn--,Vn||(mt=new WeakMap,mt=new WeakMap,Ut=new WeakMap,Zt={})}},Ys=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=e1(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),n1(r,o,n,"aria-hidden")):function(){return null}},Pe=function(){return Pe=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},Pe.apply(this,arguments)};function Ks(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 r1(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var rn="right-scroll-bar-position",on="width-before-scroll-bar",o1="with-scroll-bars-hidden",s1="--removed-body-scroll-bar-size";function Hn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function a1(e,t){var n=w.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 i1=typeof window<"u"?i.useLayoutEffect:i.useEffect,fo=new WeakMap;function c1(e,t){var n=a1(null,function(r){return e.forEach(function(o){return Hn(o,r)})});return i1(function(){var r=fo.get(n);if(r){var o=new Set(r),s=new Set(e),c=n.current;o.forEach(function(l){s.has(l)||Hn(l,null)}),s.forEach(function(l){o.has(l)||Hn(l,c)})}fo.set(n,e)},[e]),n}function l1(e){return e}function d1(e,t){t===void 0&&(t=l1);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 c=t(s,r);return n.push(c),function(){n=n.filter(function(l){return l!==c})}},assignSyncMedium:function(s){for(r=!0;n.length;){var c=n;n=[],c.forEach(s)}n={push:function(l){return s(l)},filter:function(){return n}}},assignMedium:function(s){r=!0;var c=[];if(n.length){var l=n;n=[],l.forEach(s),c=n}var d=function(){var f=c;c=[],f.forEach(s)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(f){c.push(f),u()},filter:function(f){return c=c.filter(f),n}}}};return o}function u1(e){e===void 0&&(e={});var t=d1(null);return t.options=Pe({async:!0,ssr:!1},e),t}var Xs=function(e){var t=e.sideCar,n=Ks(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 i.createElement(r,Pe({},n))};Xs.isSideCarExport=!0;function f1(e,t){return e.useMedium(t),Xs}var Qs=u1(),Wn=function(){},kn=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Wn,onWheelCapture:Wn,onTouchMoveCapture:Wn}),o=r[0],s=r[1],c=e.forwardProps,l=e.children,d=e.className,u=e.removeScrollBar,f=e.enabled,m=e.shards,v=e.sideCar,p=e.noRelative,x=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,b=_===void 0?"div":_,y=e.gapMode,C=Ks(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=v,E=c1([n,t]),S=Pe(Pe({},C),o);return i.createElement(i.Fragment,null,f&&i.createElement(k,{sideCar:Qs,removeScrollBar:u,shards:m,noRelative:p,noIsolation:x,inert:h,setCallbacks:s,allowPinchZoom:!!g,lockRef:n,gapMode:y}),c?i.cloneElement(i.Children.only(l),Pe(Pe({},S),{ref:E})):i.createElement(b,Pe({},S,{className:d,ref:E}),l))});kn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};kn.classNames={fullWidth:on,zeroRight:rn};var p1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function m1(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=p1();return t&&e.setAttribute("nonce",t),e}function h1(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function g1(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var v1=function(){var e=0,t=null;return{add:function(n){e==0&&(t=m1())&&(h1(t,n),g1(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},x1=function(){var e=v1();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Js=function(){var e=x1(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},_1={left:0,top:0,right:0,gap:0},qn=function(e){return parseInt(e||"",10)||0},w1=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[qn(n),qn(r),qn(o)]},b1=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return _1;var t=w1(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])}},y1=Js(),xt="data-scroll-locked",C1=function(e,t,n,r){var o=e.left,s=e.top,c=e.right,l=e.gap;return n===void 0&&(n="margin"),`
|
|
2
|
+
.`.concat(o1,` {
|
|
3
3
|
overflow: hidden `).concat(r,`;
|
|
4
|
-
padding-right: `).concat(
|
|
4
|
+
padding-right: `).concat(l,"px ").concat(r,`;
|
|
5
5
|
}
|
|
6
|
-
body[`).concat(
|
|
6
|
+
body[`).concat(xt,`] {
|
|
7
7
|
overflow: hidden `).concat(r,`;
|
|
8
8
|
overscroll-behavior: contain;
|
|
9
9
|
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
10
10
|
padding-left: `.concat(o,`px;
|
|
11
11
|
padding-top: `).concat(s,`px;
|
|
12
|
-
padding-right: `).concat(
|
|
12
|
+
padding-right: `).concat(c,`px;
|
|
13
13
|
margin-left:0;
|
|
14
14
|
margin-top:0;
|
|
15
|
-
margin-right: `).concat(
|
|
16
|
-
`),n==="padding"&&"padding-right: ".concat(
|
|
15
|
+
margin-right: `).concat(l,"px ").concat(r,`;
|
|
16
|
+
`),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.`).concat(
|
|
20
|
-
right: `).concat(
|
|
19
|
+
.`).concat(rn,` {
|
|
20
|
+
right: `).concat(l,"px ").concat(r,`;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.`).concat(
|
|
24
|
-
margin-right: `).concat(
|
|
23
|
+
.`).concat(on,` {
|
|
24
|
+
margin-right: `).concat(l,"px ").concat(r,`;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
.`).concat(
|
|
27
|
+
.`).concat(rn," .").concat(rn,` {
|
|
28
28
|
right: 0 `).concat(r,`;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.`).concat(
|
|
31
|
+
.`).concat(on," .").concat(on,` {
|
|
32
32
|
margin-right: 0 `).concat(r,`;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
body[`).concat(
|
|
36
|
-
`).concat(
|
|
35
|
+
body[`).concat(xt,`] {
|
|
36
|
+
`).concat(s1,": ").concat(l,`px;
|
|
37
37
|
}
|
|
38
|
-
`)},
|
|
38
|
+
`)},po=function(){var e=parseInt(document.body.getAttribute(xt)||"0",10);return isFinite(e)?e:0},k1=function(){i.useEffect(function(){return document.body.setAttribute(xt,(po()+1).toString()),function(){var e=po()-1;e<=0?document.body.removeAttribute(xt):document.body.setAttribute(xt,e.toString())}},[])},E1=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;k1();var s=i.useMemo(function(){return b1(o)},[o]);return i.createElement(y1,{styles:C1(s,!t,o,n?"":"!important")})},tr=!1;if(typeof window<"u")try{var Yt=Object.defineProperty({},"passive",{get:function(){return tr=!0,!0}});window.addEventListener("test",Yt,Yt),window.removeEventListener("test",Yt,Yt)}catch{tr=!1}var ht=tr?{passive:!1}:!1,j1=function(e){return e.tagName==="TEXTAREA"},ea=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!j1(e)&&n[t]==="visible")},S1=function(e){return ea(e,"overflowY")},N1=function(e){return ea(e,"overflowX")},mo=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ta(e,r);if(o){var s=na(e,r),c=s[1],l=s[2];if(c>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},R1=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},L1=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ta=function(e,t){return e==="v"?S1(t):N1(t)},na=function(e,t){return e==="v"?R1(t):L1(t)},A1=function(e,t){return e==="h"&&t==="rtl"?-1:1},P1=function(e,t,n,r,o){var s=A1(e,window.getComputedStyle(t).direction),c=s*r,l=n.target,d=t.contains(l),u=!1,f=c>0,m=0,v=0;do{if(!l)break;var p=na(e,l),x=p[0],h=p[1],g=p[2],_=h-g-s*x;(x||_)&&ta(e,l)&&(m+=_,v+=x);var b=l.parentNode;l=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!d&&l!==document.body||d&&(t.contains(l)||t===l));return(f&&Math.abs(m)<1||!f&&Math.abs(v)<1)&&(u=!0),u},Kt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ho=function(e){return[e.deltaX,e.deltaY]},go=function(e){return e&&"current"in e?e.current:e},M1=function(e,t){return e[0]===t[0]&&e[1]===t[1]},O1=function(e){return`
|
|
39
39
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
40
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
-
`)},_1=0,ft=[];function y1(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(_1++)[0],s=a.useState(Fs)[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=Wd([e.lockRef.current],(e.shards||[]).map(ao),!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 w=Bt(h),b=n.current,_="deltaX"in h?h.deltaX:b[0]-w[0],C="deltaY"in h?h.deltaY:b[1]-w[1],E,k=h.target,j=Math.abs(_)>Math.abs(C)?"h":"v";if("touches"in h&&j==="h"&&k.type==="range")return!1;var S=window.getSelection(),T=S&&S.anchorNode,D=T?T===k||T.contains(k):!1;if(D)return!1;var F=oo(j,k);if(!F)return!0;if(F?E=j:(E=j==="v"?"h":"v",F=oo(j,k)),!F)return!1;if(!r.current&&"changedTouches"in h&&(_||C)&&(r.current=E),!E)return!0;var V=r.current||E;return w1(V,g,h,V==="h"?_:C)},[]),u=a.useCallback(function(h){var g=h;if(!(!ft.length||ft[ft.length-1]!==s)){var w="deltaY"in g?so(g):Bt(g),b=t.current.filter(function(E){return E.name===g.type&&(E.target===g.target||g.target===E.shadowParent)&&x1(E.delta,w)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var _=(i.current.shards||[]).map(ao).filter(Boolean).filter(function(E){return E.contains(g.target)}),C=_.length>0?c(g,_[0]):!i.current.noIsolation;C&&g.cancelable&&g.preventDefault()}}},[]),d=a.useCallback(function(h,g,w,b){var _={name:h,delta:g,target:w,should:b,shadowParent:C1(w)};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,so(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,x=e.inert;return a.createElement(a.Fragment,null,x?a.createElement(s,{styles:b1(o)}):null,m?a.createElement(d1,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function C1(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const k1=Qd($s,y1);var mr=a.forwardRef(function(e,t){return a.createElement(mn,Re({},e,{ref:t,sideCar:k1}))});mr.classNames=mn.classNames;var hn="Popover",[Ws]=rn(hn,[un]),Rt=un(),[E1,Je]=Ws(hn),Vs=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(vs,{...c,children:l.jsx(E1,{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})})};Vs.displayName=hn;var qs="PopoverAnchor",S1=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Je(qs,n),s=Rt(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:c}=o;return a.useEffect(()=>(i(),()=>c()),[i,c]),l.jsx(lr,{...s,...r,ref:t})});S1.displayName=qs;var Gs="PopoverTrigger",Us=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Je(Gs,n),s=Rt(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":Qs(o.open),...r,ref:i,onClick:ie(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:l.jsx(lr,{asChild:!0,...s,children:c})});Us.displayName=Gs;var hr="PopoverPortal",[j1,N1]=Ws(hr,{forceMount:void 0}),Zs=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=Je(hr,t);return l.jsx(j1,{scope:t,forceMount:n,children:l.jsx(Qe,{present:n||s.open,children:l.jsx(dn,{asChild:!0,container:o,children:r})})})};Zs.displayName=hr;var wt="PopoverContent",Ys=a.forwardRef((e,t)=>{const n=N1(wt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=Je(wt,e.__scopePopover);return l.jsx(Qe,{present:r||s.open,children:s.modal?l.jsx(L1,{...o,ref:t}):l.jsx(A1,{...o,ref:t})})});Ys.displayName=wt;var R1=Od("PopoverContent.RemoveScroll"),L1=a.forwardRef((e,t)=>{const n=Je(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 Is(i)},[]),l.jsx(mr,{as:R1,allowPinchZoom:!0,children:l.jsx(Xs,{...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})})})}),A1=a.forwardRef((e,t)=>{const n=Je(wt,e.__scopePopover),r=a.useRef(!1),o=a.useRef(!1);return l.jsx(Xs,{...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()}})}),Xs=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(wt,n),m=Rt(n);return Ps(),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(ws,{"data-state":Qs(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)"}})})})}),Ks="PopoverClose",P1=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Je(Ks,n);return l.jsx(me.button,{type:"button",...r,ref:t,onClick:ie(e.onClick,()=>o.onOpenChange(!1))})});P1.displayName=Ks;var M1="PopoverArrow",O1=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Rt(n);return l.jsx(xs,{...o,...r,ref:t})});O1.displayName=M1;function Qs(e){return e?"open":"closed"}var I1=Vs,T1=Us,D1=Zs,Js=Ys;const io=I1,co=T1,ea=a.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>l.jsx(D1,{children:l.jsx(Js,{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})}));ea.displayName=Js.displayName;const $1="_anchor_1qyyn_1",F1="_triggerWrap_1qyyn_6",B1="_popover_1qyyn_11",$n={anchor:$1,triggerWrap:F1,popover:B1},z1=(e="bottom")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},H1=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:x}=y.useMemo(()=>z1(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 E=!C;return c?.(E),E}):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 w=l.jsx(ea,{side:m,align:x,className:A($n.popover,o),children:n});return t?l.jsxs(io,{open:v,onOpenChange:g,children:[l.jsx(co,{asChild:!0,children:l.jsx("span",{className:$n.triggerWrap,children:e.trigger})}),w]}):l.jsxs(io,{open:v,onOpenChange:g,children:[Ho(l.jsx(co,{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})})),w]})},W1="_emptyComponent_1wdgn_1",V1="_svgWrapper_1wdgn_11",q1="_title_1wdgn_23",G1="_subtitle_1wdgn_28",zt={emptyComponent:W1,svgWrapper:V1,title:q1,subtitle:G1},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]})},U1="_container_xa163_1",Z1="_header_xa163_6",Y1="_header_icon_xa163_14",X1="_iconTransition_xa163_20",K1="_rotateIcon_xa163_23",Q1="_content_xa163_26",J1="_padding_xa163_31",je={container:U1,header:Z1,header_icon:Y1,iconTransition:X1,rotateIcon:K1,content:Q1,padding:J1},ta=({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,x=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=x.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 w=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:w,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:x,children:g})]})},ef="_collapsableBlock_86gg6_1",tf="_header_86gg6_6",nf="_headerWithInfoTooltip_86gg6_12",rf="_infoIcon_86gg6_20",Ht={collapsableBlock:ef,header:tf,headerWithInfoTooltip:nf,infoIcon:rf},of=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(ta,{id:t,className:A(Ht.collapsableBlock,o),header:s?l.jsxs("div",{className:Ht.headerWithInfoTooltip,children:[l.jsx("span",{children:n}),l.jsx(wo,{className:Ht.infoIcon,id:"CollapsableBlockNewInfoTooltipIcon"}),l.jsx(As,{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 sf=typeof document<"u",af=function(){},Zn=sf?y.useLayoutEffect:af;const cf={...a},lf=cf.useInsertionEffect,uf=lf||(e=>e());function df(e){const t=a.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return uf(()=>{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 ff={...a};let lo=!1,pf=0;const uo=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+pf++;function mf(){const[e,t]=a.useState(()=>lo?uo():void 0);return Zn(()=>{e==null&&t(uo())},[]),a.useEffect(()=>{lo=!0},[]),e}const hf=ff.useId,gf=hf||mf;let Yn;process.env.NODE_ENV!=="production"&&(Yn=new Set);function vf(){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 wf(){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 xf=a.createContext(null),bf=a.createContext(null),_f=()=>{var e;return((e=a.useContext(xf))==null?void 0:e.id)||null},yf=()=>a.useContext(bf);function Cf(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=gf(),s=a.useRef({}),[i]=a.useState(()=>wf()),c=_f()!=null;if(process.env.NODE_ENV!=="production"){const m=r.reference;m&&!pe(m)&&vf("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=df((m,x,h)=>{s.current.openEvent=m?x:void 0,i.emit("openchange",{open:m,event:x,reason:h,nested:c}),n?.(m,x,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 kf(e){e===void 0&&(e={});const{nodeId:t}=e,n=Cf({...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=yf();Zn(()=>{f&&(p.current=f)},[f]);const m=rs({...e,elements:{...o,...c&&{reference:c}}}),x=a.useCallback(_=>{const C=pe(_)?{getBoundingClientRect:()=>_.getBoundingClientRect(),getClientRects:()=>_.getClientRects(),contextElement:_}:_;u(C),m.refs.setReference(C)},[m.refs]),h=a.useCallback(_=>{(pe(_)||_===null)&&(p.current=_,i(_)),(pe(m.refs.reference.current)||m.refs.reference.current===null||_!==null&&!pe(_))&&m.refs.setReference(_)},[m.refs]),g=a.useMemo(()=>({...m.refs,setReference:h,setPositionReference:x,domReference:p}),[m.refs,h,x]),w=a.useMemo(()=>({...m.elements,domReference:f}),[m.elements,f]),b=a.useMemo(()=>({...m,...r,refs:g,elements:w,nodeId:t}),[m,g,w,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:w}),[m,g,w,b])}const Ef="_caption_ltp0o_1",Sf="_fadeIn_ltp0o_1",jf="_caption_neutral_ltp0o_16",Nf="_caption_error_ltp0o_20",Rf="_caption_success_ltp0o_24",Lf="_fullWidth_ltp0o_38",Fn={caption:Ef,fadeIn:Sf,caption_neutral:jf,caption_error:Nf,caption_success:Rf,fullWidth:Lf},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 Af=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Pf=Af.reduce((e,t)=>{const n=yo(`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}},{}),Mf="Label",na=a.forwardRef((e,t)=>l.jsx(Pf.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));na.displayName=Mf;var ra=na;const Of=Eo("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),oa=a.forwardRef(({className:e,...t},n)=>l.jsx(ra,{ref:n,className:Pe(Of(),e),...t}));oa.displayName=ra.displayName;const If="_label_1xouh_1",Tf="_label__text_1xouh_11",fo={label:If,label__text:Tf},vn=({htmlFor:e,children:t,className:n})=>l.jsx(oa,{htmlFor:e,className:A(fo.label,n),children:typeof t=="string"?l.jsx("div",{className:fo.label__text,children:t}):t}),Df="_wrapper_19g1g_1",$f="_wrapper_small_19g1g_14",Ff="_iconCross_19g1g_17",Bf="_iconCross_small_19g1g_25",Wt={wrapper:Df,wrapper_small:$f,iconCross:Ff,iconCross_small:Bf},sa=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()}})]})),zf="_wrapper_94m4o_1",Hf="_container_94m4o_5",Wf="_input_94m4o_5",Vf="_error_94m4o_17",qf="_disabled_94m4o_20",Gf="_tagContainer_94m4o_33",Uf="_selectedOptionContainer_94m4o_38",Zf="_selectedOption_94m4o_38",Yf="_placeHolder_94m4o_49",Xf="_iconContainer_94m4o_53",Kf="_deleteIcon_94m4o_59",Qf="_divider_94m4o_79",Jf="_arrowIcon_94m4o_88",ep="_arrowIconExpanded_94m4o_103",tp="_dropdown_94m4o_107",np="_dropdown_visible_94m4o_118",rp="_withSearch_94m4o_133",op="_search_94m4o_136",sp="_search__icon_94m4o_149",ap="_search__input_94m4o_154",ip="_option_94m4o_184",cp="_option_active_94m4o_192",lp="_option_active_next_active_94m4o_198",up="_option_active_prev_active_94m4o_202",dp="_tableTemplate_94m4o_229",fp="_tableContainer_94m4o_236",pp="_table_94m4o_229",mp="_activeRow_94m4o_278",hp="_checkboxCell_94m4o_285",gp="_checkbox_94m4o_285",vp="_footerTotal_94m4o_300",G={wrapper:zf,container:Hf,input:Wf,error:Vf,disabled:qf,tagContainer:Gf,selectedOptionContainer:Uf,selectedOption:Zf,placeHolder:Yf,iconContainer:Xf,deleteIcon:Kf,divider:Qf,arrowIcon:Jf,arrowIconExpanded:ep,dropdown:tp,dropdown_visible:np,withSearch:rp,search:op,search__icon:sp,search__input:ap,option:ip,option_active:cp,option_active_next_active:lp,option_active_prev_active:up,tableTemplate:dp,tableContainer:fp,table:pp,activeRow:mp,checkboxCell:hp,checkbox:gp,footerTotal:vp},wp=6,xp=({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(sa,{isSmall:!0,...r&&{onClick:()=>r?.(o)},children:o.label},s))}):l.jsx("span",{className:G.selectedOption,children:t?t(e):e.label}):null,aa=({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})]}),bp=({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(aa,{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),x=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]:x,[G.option_active_next_active]:h},n),onClick:()=>o(p),children:r?r(p):p.label},`${p.value}${v}`)})}):!c&&l.jsx(Lt,{})]})},_p=({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(w=>w.value===g.value):e?.value===g.value,m=(g,w)=>{if(p==="multiple"&&w&&r){r(g);return}n(g)},x=f??t?.length??0,h=d??[];return l.jsxs("div",{className:G.tableTemplate,children:[o&&l.jsx(aa,{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,w)=>{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)}${w}`)})})]}):!i&&l.jsx(Lt,{})}),l.jsxs("div",{className:G.footerTotal,children:["Всего ",x]})]})},yp=({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:x,onClear:h,label:g,onSearch:w,searchClassName:b,searchPlaceholder:_,isLoading:C,disabled:E,onClose:k,portalTarget:j,error:S,fixedHeight:T=!0,template:D="list",columns:F,total:V})=>{const[B,z]=y.useState(!1),[U,$]=y.useState(!1),H=y.useRef(null),O=y.useRef(null),Y=y.useRef(null),[N,fe]=y.useState(""),re=j??(U&&typeof document<"u"?document.body:void 0);y.useEffect(()=>{$(!0)},[]);const ce=y.useCallback(q=>{fe(q),w?.(q)},[w]);y.useEffect(()=>{if(!B)return;const q=oe=>{H.current&&!H.current.contains(oe.target)&&(!O.current||!O.current.contains(oe.target))&&(ce(""),z(!1),k?.())};return document.addEventListener("mousedown",q,!0),()=>{document.removeEventListener("mousedown",q,!0)}},[ce,B,k]);const{refs:te,floatingStyles:X,update:Q}=kf({strategy:"absolute",placement:"bottom-start",open:B,whileElementsMounted:(q,oe,et)=>ts(q,oe,et,{ancestorScroll:!1,elementResize:!0,ancestorResize:!0,layoutShift:!0}),middleware:[os(wp),ss({fallbackPlacements:["top-start","bottom-start"]}),as({apply({rects:q,elements:oe}){const et=`${Math.round(q.reference.width)}px`;oe.floating.style.width!==et&&(oe.floating.style.width=et)}})]}),se=y.useCallback(q=>{Y.current=q,te.setReference(q)},[te]),P=y.useCallback(q=>{O.current=q,te.setFloating(q)},[te]);y.useEffect(()=>{B&&Q()},[B,Q]);const Z=y.useCallback(q=>{o?.(q),ce(""),k?.(),n==="single"&&z(!1)},[ce,n,o,k]),we=y.useCallback(()=>{const q=l.jsx("div",{ref:P,className:A(G.dropdown,{[G.dropdown_visible]:B},f),style:X,onClick:oe=>oe.stopPropagation(),children:l.jsx("div",{className:G.dropdownContent,style:{height:T?"300px":"none"},children:(()=>{const oe=D==="table"?l.jsx(_p,{value:t,options:e,onChange:Z,onDelete:x,...w&&{onSearch:ce},searchClassName:b,isLoading:C,searchValue:N,searchPlaceholder:_,columns:F,total:V,mode:n}):l.jsx(bp,{value:t,options:e,optionClassName:p,optionRender:i,onChange:Z,...w&&{onSearch:ce},searchClassName:b,isLoading:C,searchValue:N,searchPlaceholder:_});return s?s(oe):oe})()})});return re?Et.createPortal(q,re):q},[f,s,T,X,Z,ce,C,B,w,p,i,e,re,D,F,V,n,x,b,_,N,P,t]),Se=y.useMemo(()=>U?we():null,[U,we]),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:H,children:[l.jsxs("div",{role:"button",id:"CustomSelectInput",tabIndex:0,ref:se,className:A(G.input,{[G.input_fixedHeight]:n==="single",[G.disabled]:E},S&&G.error,v),onClick:()=>{t&&(ce(""),k?.()),z(q=>!q)},children:[l.jsx("div",{className:G.selectedOptionContainer,children:Ce?l.jsx(xp,{value:t,selectedOptionRender:c,tagRender:d,onDelete:x}):l.jsx("span",{className:G.placeHolder,children:r})}),l.jsxs("div",{className:G.iconContainer,children:[h&&Ce&&l.jsxs(l.Fragment,{children:[l.jsx(de,{variant:"text",className:A(G.deleteIcon,m),onClick:q=>{q.stopPropagation(),h()},children:l.jsx("span",{children:l.jsx(Ue,{})})}),l.jsx("div",{className:G.divider,children:l.jsx("div",{})})]}),u||l.jsx(de,{variant:"text",className:A(G.arrowIcon,{[G.arrowIconExpanded]:B}),children:l.jsx(nn,{})})]})]}),Se]}),S&&l.jsx(gn,{children:S})]})};function Cp(e){const t=kp(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,c=a.Children.toArray(s),u=c.find(Sp);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 kp(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=Np(o),c=jp(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 Ep=Symbol("radix.slottable");function Sp(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ep}function jp(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 Np(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 wn="Dialog",[ia]=rn(wn),[Rp,Ee]=ia(wn),ca=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:wn});return l.jsx(Rp,{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})};ca.displayName=wn;var la="DialogTrigger",Lp=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ee(la,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":wr(o.open),...r,ref:s,onClick:ie(e.onClick,o.onOpenToggle)})});Lp.displayName=la;var gr="DialogPortal",[Ap,ua]=ia(gr,{forceMount:void 0}),da=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Ee(gr,t);return l.jsx(Ap,{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})}))})};da.displayName=gr;var en="DialogOverlay",fa=a.forwardRef((e,t)=>{const n=ua(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(Mp,{...o,ref:t})}):null});fa.displayName=en;var Pp=Cp("DialogOverlay.RemoveScroll"),Mp=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ee(en,n);return l.jsx(mr,{as:Pp,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsx(me.div,{"data-state":wr(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),it="DialogContent",pa=a.forwardRef((e,t)=>{const n=ua(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(Op,{...o,ref:t}):l.jsx(Ip,{...o,ref:t})})});pa.displayName=it;var Op=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 Is(s)},[]),l.jsx(ma,{...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())})}),Ip=a.forwardRef((e,t)=>{const n=Ee(it,e.__scopeDialog),r=a.useRef(!1),o=a.useRef(!1);return l.jsx(ma,{...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()}})}),ma=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 Ps(),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":wr(c.open),...i,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(Dp,{titleId:c.titleId}),l.jsx(Fp,{contentRef:u,descriptionId:c.descriptionId})]})]})}),vr="DialogTitle",ha=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ee(vr,n);return l.jsx(me.h2,{id:o.titleId,...r,ref:t})});ha.displayName=vr;var ga="DialogDescription",va=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ee(ga,n);return l.jsx(me.p,{id:o.descriptionId,...r,ref:t})});va.displayName=ga;var wa="DialogClose",Tp=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ee(wa,n);return l.jsx(me.button,{type:"button",...r,ref:t,onClick:ie(e.onClick,()=>o.onOpenChange(!1))})});Tp.displayName=wa;function wr(e){return e?"open":"closed"}var xa="DialogTitleWarning",[ph,ba]=hl(xa,{contentName:it,titleName:vr,docsSlug:"dialog"}),Dp=({titleId:e})=>{const t=ba(xa),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
41
|
+
`)},T1=0,gt=[];function I1(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(T1++)[0],s=i.useState(Js)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=r1([e.lockRef.current],(e.shards||[]).map(go),!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 l=i.useCallback(function(h,g){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!c.current.allowPinchZoom;var _=Kt(h),b=n.current,y="deltaX"in h?h.deltaX:b[0]-_[0],C="deltaY"in h?h.deltaY:b[1]-_[1],k,E=h.target,S=Math.abs(y)>Math.abs(C)?"h":"v";if("touches"in h&&S==="h"&&E.type==="range")return!1;var N=window.getSelection(),O=N&&N.anchorNode,R=O?O===E||O.contains(E):!1;if(R)return!1;var F=mo(S,E);if(!F)return!0;if(F?k=S:(k=S==="v"?"h":"v",F=mo(S,E)),!F)return!1;if(!r.current&&"changedTouches"in h&&(y||C)&&(r.current=k),!k)return!0;var B=r.current||k;return P1(B,g,h,B==="h"?y:C)},[]),d=i.useCallback(function(h){var g=h;if(!(!gt.length||gt[gt.length-1]!==s)){var _="deltaY"in g?ho(g):Kt(g),b=t.current.filter(function(k){return k.name===g.type&&(k.target===g.target||g.target===k.shadowParent)&&M1(k.delta,_)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var y=(c.current.shards||[]).map(go).filter(Boolean).filter(function(k){return k.contains(g.target)}),C=y.length>0?l(g,y[0]):!c.current.noIsolation;C&&g.cancelable&&g.preventDefault()}}},[]),u=i.useCallback(function(h,g,_,b){var y={name:h,delta:g,target:_,should:b,shadowParent:D1(_)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(C){return C!==y})},1)},[]),f=i.useCallback(function(h){n.current=Kt(h),r.current=void 0},[]),m=i.useCallback(function(h){u(h.type,ho(h),h.target,l(h,e.lockRef.current))},[]),v=i.useCallback(function(h){u(h.type,Kt(h),h.target,l(h,e.lockRef.current))},[]);i.useEffect(function(){return gt.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",d,ht),document.addEventListener("touchmove",d,ht),document.addEventListener("touchstart",f,ht),function(){gt=gt.filter(function(h){return h!==s}),document.removeEventListener("wheel",d,ht),document.removeEventListener("touchmove",d,ht),document.removeEventListener("touchstart",f,ht)}},[]);var p=e.removeScrollBar,x=e.inert;return i.createElement(i.Fragment,null,x?i.createElement(s,{styles:O1(o)}):null,p?i.createElement(E1,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function D1(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const $1=f1(Qs,I1);var kr=i.forwardRef(function(e,t){return i.createElement(kn,Pe({},e,{ref:t,sideCar:$1}))});kr.classNames=kn.classNames;var En="Popover",[ra]=mn(En,[wn]),Tt=wn(),[z1,nt]=ra(En),oa=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:c=!1}=e,l=Tt(t),d=i.useRef(null),[u,f]=i.useState(!1),[m,v]=wr({prop:r,defaultProp:o??!1,onChange:s,caller:En});return a.jsx(As,{...l,children:a.jsx(z1,{scope:t,contentId:Nt(),triggerRef:d,open:m,onOpenChange:v,onOpenToggle:i.useCallback(()=>v(p=>!p),[v]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>f(!0),[]),onCustomAnchorRemove:i.useCallback(()=>f(!1),[]),modal:c,children:n})})};oa.displayName=En;var sa="PopoverAnchor",F1=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=nt(sa,n),s=Tt(n),{onCustomAnchorAdd:c,onCustomAnchorRemove:l}=o;return i.useEffect(()=>(c(),()=>l()),[c,l]),a.jsx(_r,{...s,...r,ref:t})});F1.displayName=sa;var aa="PopoverTrigger",ia=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=nt(aa,n),s=Tt(n),c=ke(t,o.triggerRef),l=a.jsx(ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":fa(o.open),...r,ref:c,onClick:fe(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:a.jsx(_r,{asChild:!0,...s,children:l})});ia.displayName=aa;var Er="PopoverPortal",[B1,V1]=ra(Er,{forceMount:void 0}),ca=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=nt(Er,t);return a.jsx(B1,{scope:t,forceMount:n,children:a.jsx(tt,{present:n||s.open,children:a.jsx(bn,{asChild:!0,container:o,children:r})})})};ca.displayName=Er;var yt="PopoverContent",la=i.forwardRef((e,t)=>{const n=V1(yt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=nt(yt,e.__scopePopover);return a.jsx(tt,{present:r||s.open,children:s.modal?a.jsx(W1,{...o,ref:t}):a.jsx(q1,{...o,ref:t})})});la.displayName=yt;var H1=Zu("PopoverContent.RemoveScroll"),W1=i.forwardRef((e,t)=>{const n=nt(yt,e.__scopePopover),r=i.useRef(null),o=ke(t,r),s=i.useRef(!1);return i.useEffect(()=>{const c=r.current;if(c)return Ys(c)},[]),a.jsx(kr,{as:H1,allowPinchZoom:!0,children:a.jsx(da,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:fe(e.onCloseAutoFocus,c=>{c.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:fe(e.onPointerDownOutside,c=>{const l=c.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0,u=l.button===2||d;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:fe(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),q1=i.forwardRef((e,t)=>{const n=nt(yt,e.__scopePopover),r=i.useRef(!1),o=i.useRef(!1);return a.jsx(da,{...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 c=s.target;n.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),da=i.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:f,...m}=e,v=nt(yt,n),p=Tt(n);return Gs(),a.jsx(Cr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:a.jsx(hn,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:u,onDismiss:()=>v.onOpenChange(!1),children:a.jsx(Ps,{"data-state":fa(v.open),role:"dialog",id:v.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)"}})})})}),ua="PopoverClose",G1=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=nt(ua,n);return a.jsx(ge.button,{type:"button",...r,ref:t,onClick:fe(e.onClick,()=>o.onOpenChange(!1))})});G1.displayName=ua;var U1="PopoverArrow",Z1=i.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Tt(n);return a.jsx(Ms,{...o,...r,ref:t})});Z1.displayName=U1;function fa(e){return e?"open":"closed"}var Y1=oa,K1=ia,X1=ca,pa=la;const vo=Y1,xo=K1,ma=i.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>a.jsx(X1,{children:a.jsx(pa,{ref:o,align:t,sideOffset:n,className:Ie("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})}));ma.displayName=pa.displayName;const Q1="_anchor_1qyyn_1",J1="_triggerWrap_1qyyn_6",ef="_popover_1qyyn_11",Gn={anchor:Q1,triggerWrap:J1,popover:ef},tf=(e="bottom")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},nf=e=>{const t="trigger"in e&&e.trigger!==void 0,{children:n,placement:r="bottom",className:o,isOpen:s,toggle:c,onOpenChange:l}=e,[d,u]=w.useState(!1),[f,m]=w.useState(null),v=s??d,{side:p,align:x}=w.useMemo(()=>tf(r),[r]),h=w.useCallback(()=>{if(t)return;const b=e.target?.current;m(b?.getBoundingClientRect()??null)},[e.target,t]),g=w.useCallback(b=>{s===void 0&&u(b),l?.(b)},[s,l]);w.useEffect(()=>{if(t)return;const b=e.target?.current;if(!b)return;const y=()=>{h(),s===void 0?u(C=>{const k=!C;return l?.(k),k}):l?.(!s),c?.()};return b.addEventListener("click",y),window.addEventListener("scroll",h,!0),window.addEventListener("resize",h),()=>{b.removeEventListener("click",y),window.removeEventListener("scroll",h,!0),window.removeEventListener("resize",h)}},[s,l,e.target,c,t,h]);const _=a.jsx(ma,{side:p,align:x,className:L(Gn.popover,o),children:n});return t?a.jsxs(vo,{open:v,onOpenChange:g,children:[a.jsx(xo,{asChild:!0,children:a.jsx("span",{className:Gn.triggerWrap,children:e.trigger})}),_]}):a.jsxs(vo,{open:v,onOpenChange:g,children:[ns(a.jsx(xo,{asChild:!0,children:a.jsx("span",{className:Gn.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})})),_]})},rf="_emptyComponent_1wdgn_1",of="_svgWrapper_1wdgn_11",sf="_title_1wdgn_23",af="_subtitle_1wdgn_28",Xt={emptyComponent:rf,svgWrapper:of,title:sf,subtitle:af},ft=({svg:e=a.jsx(Mo,{}),title:t="Нет данных для отображения",description:n,subtitle:r,content:o,className:s})=>{const c=n??r;return a.jsxs("div",{className:L(Xt.emptyComponent,s),children:[a.jsx("div",{className:Xt.svgWrapper,children:e}),t&&a.jsx("span",{className:Xt.title,children:t}),c&&a.jsx("span",{className:Xt.subtitle,children:c}),o&&o]})},cf="_container_xa163_1",lf="_header_xa163_6",df="_header_icon_xa163_14",uf="_iconTransition_xa163_20",ff="_rotateIcon_xa163_23",pf="_content_xa163_26",mf="_padding_xa163_31",Le={container:cf,header:lf,header_icon:df,iconTransition:uf,rotateIcon:ff,content:pf,padding:mf},ha=({header:e,className:t,content:n,onToggle:r,isOpen:o,defaultOpen:s=!1,id:c,headerClassName:l,contentClassName:d,iconClassName:u})=>{const[f,m]=w.useState(s),v=w.useRef(!1),p=typeof o=="boolean"?o:f,x=w.useRef(null),h=typeof e=="string"?a.jsx("div",{className:Le.header_text,children:a.jsx("span",{children:e})}):e,g=typeof n=="string"?a.jsx("span",{className:Le.content_text,children:n}):n;w.useEffect(()=>{const b=x.current;if(b){if(!v.current){b.style.height=s?"auto":"0px",v.current=!0;return}if(p){b.style.height=`${b.scrollHeight}px`;const y=()=>{b.style.height="auto"};b.addEventListener("transitionend",y,{once:!0})}else b.style.height=`${b.scrollHeight}px`,requestAnimationFrame(()=>{b.style.height="0px"})}},[p,s]);const _=w.useCallback(b=>{b.stopPropagation(),r?r():m(y=>!y)},[r]);return a.jsxs("div",{className:L(Le.container,t),id:c,children:[a.jsxs("div",{className:L(Le.header,l),children:[h,a.jsx("div",{className:L(Le.header_icon,u),onClick:_,children:a.jsx(ct,{className:L(Le.iconArrow,Le.iconTransition,{[Le.rotateIcon]:p})})})]}),a.jsx("div",{className:L(Le.content,d,{[Le.padding]:p}),ref:x,children:g})]})},hf="_collapsableBlock_86gg6_1",gf="_header_86gg6_6",vf="_headerWithInfoTooltip_86gg6_12",xf="_infoIcon_86gg6_20",Qt={collapsableBlock:hf,header:gf,headerWithInfoTooltip:vf,infoIcon:xf},_f=i.memo(e=>{const{id:t,header:n,content:r,className:o,infoTooltipContent:s,...c}=e,[l,d]=w.useState(!1),u=()=>d(!l);return a.jsx(ha,{id:t,className:L(Qt.collapsableBlock,o),header:s?a.jsxs("div",{className:Qt.headerWithInfoTooltip,children:[a.jsx("span",{children:n}),a.jsx(Ao,{className:Qt.infoIcon,id:"CollapsableBlockNewInfoTooltipIcon"}),a.jsx(qs,{autohide:!1,delay:{show:0,hide:500},isOpen:l,placement:"left-start",target:"CollapsableBlockNewInfoTooltipIcon",toggle:u,children:s})]}):n,content:r,headerClassName:Qt.header,...c})});var wf=typeof document<"u",bf=function(){},nr=wf?w.useLayoutEffect:bf;const yf={...i},Cf=yf.useInsertionEffect,kf=Cf||(e=>e());function Ef(e){const t=i.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return kf(()=>{t.current=e}),i.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 jf={...i};let _o=!1,Sf=0;const wo=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Sf++;function Nf(){const[e,t]=i.useState(()=>_o?wo():void 0);return nr(()=>{e==null&&t(wo())},[]),i.useEffect(()=>{_o=!0},[]),e}const Rf=jf.useId,Lf=Rf||Nf;let rr;process.env.NODE_ENV!=="production"&&(rr=new Set);function Af(){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=rr)!=null&&e.has(o))){var s;(s=rr)==null||s.add(o),console.error(o)}}function Pf(){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 Mf=i.createContext(null),Of=i.createContext(null),Tf=()=>{var e;return((e=i.useContext(Mf))==null?void 0:e.id)||null},If=()=>i.useContext(Of);function Df(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Lf(),s=i.useRef({}),[c]=i.useState(()=>Pf()),l=Tf()!=null;if(process.env.NODE_ENV!=="production"){const p=r.reference;p&&!he(p)&&Af("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[d,u]=i.useState(r.reference),f=Ef((p,x,h)=>{s.current.openEvent=p?x:void 0,c.emit("openchange",{open:p,event:x,reason:h,nested:l}),n?.(p,x,h)}),m=i.useMemo(()=>({setPositionReference:u}),[]),v=i.useMemo(()=>({reference:d||r.reference||null,floating:r.floating||null,domReference:r.reference}),[d,r.reference,r.floating]);return i.useMemo(()=>({dataRef:s,open:t,onOpenChange:f,elements:v,events:c,floatingId:o,refs:m}),[t,f,v,c,o,m])}function $f(e){e===void 0&&(e={});const{nodeId:t}=e,n=Df({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[s,c]=i.useState(null),[l,d]=i.useState(null),f=o?.domReference||s,m=i.useRef(null),v=If();nr(()=>{f&&(m.current=f)},[f]);const p=vs({...e,elements:{...o,...l&&{reference:l}}}),x=i.useCallback(y=>{const C=he(y)?{getBoundingClientRect:()=>y.getBoundingClientRect(),getClientRects:()=>y.getClientRects(),contextElement:y}:y;d(C),p.refs.setReference(C)},[p.refs]),h=i.useCallback(y=>{(he(y)||y===null)&&(m.current=y,c(y)),(he(p.refs.reference.current)||p.refs.reference.current===null||y!==null&&!he(y))&&p.refs.setReference(y)},[p.refs]),g=i.useMemo(()=>({...p.refs,setReference:h,setPositionReference:x,domReference:m}),[p.refs,h,x]),_=i.useMemo(()=>({...p.elements,domReference:f}),[p.elements,f]),b=i.useMemo(()=>({...p,...r,refs:g,elements:_,nodeId:t}),[p,g,_,t,r]);return nr(()=>{r.dataRef.current.floatingContext=b;const y=v?.nodesRef.current.find(C=>C.id===t);y&&(y.context=b)}),i.useMemo(()=>({...p,context:b,refs:g,elements:_}),[p,g,_,b])}const zf="_caption_ltp0o_1",Ff="_fadeIn_ltp0o_1",Bf="_caption_neutral_ltp0o_16",Vf="_caption_error_ltp0o_20",Hf="_caption_success_ltp0o_24",Wf="_fullWidth_ltp0o_38",Un={caption:zf,fadeIn:Ff,caption_neutral:Bf,caption_error:Vf,caption_success:Hf,fullWidth:Wf},jn=({children:e,isFullWidth:t,variant:n,type:r})=>{const o=n??r??"error";return a.jsx("p",{className:L(Un.caption,Un[`caption_${o}`],{[Un.fullWidth]:t}),children:e})};var qf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Gf=qf.reduce((e,t)=>{const n=Do(`Primitive.${t}`),r=i.forwardRef((o,s)=>{const{asChild:c,...l}=o,d=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(d,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Uf="Label",ga=i.forwardRef((e,t)=>a.jsx(Gf.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));ga.displayName=Uf;var va=ga;const Zf=Fo("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),xa=i.forwardRef(({className:e,...t},n)=>a.jsx(va,{ref:n,className:Ie(Zf(),e),...t}));xa.displayName=va.displayName;const Yf="_label_1xouh_1",Kf="_label__text_1xouh_11",bo={label:Yf,label__text:Kf},Sn=({htmlFor:e,children:t,className:n})=>a.jsx(xa,{htmlFor:e,className:L(bo.label,n),children:typeof t=="string"?a.jsx("div",{className:bo.label__text,children:t}):t}),Xf="_wrapper_19g1g_1",Qf="_wrapper_small_19g1g_14",Jf="_iconCross_19g1g_17",ep="_iconCross_small_19g1g_25",Jt={wrapper:Xf,wrapper_small:Qf,iconCross:Jf,iconCross_small:ep},_a=w.memo(({className:e,children:t,onClick:n,isSmall:r})=>a.jsxs("div",{className:L(Jt.wrapper,e,r&&Jt.wrapper_small),children:[a.jsx("span",{children:t}),n&&a.jsx(Oe,{className:L(Jt.iconCross,{[Jt.iconCross_small]:r}),onClick:o=>{o.stopPropagation(),n()}})]})),tp="_wrapper_94m4o_1",np="_container_94m4o_5",rp="_input_94m4o_5",op="_error_94m4o_17",sp="_disabled_94m4o_20",ap="_tagContainer_94m4o_33",ip="_selectedOptionContainer_94m4o_38",cp="_selectedOption_94m4o_38",lp="_placeHolder_94m4o_49",dp="_iconContainer_94m4o_53",up="_deleteIcon_94m4o_59",fp="_divider_94m4o_79",pp="_arrowIcon_94m4o_88",mp="_arrowIconExpanded_94m4o_103",hp="_dropdown_94m4o_107",gp="_dropdown_visible_94m4o_118",vp="_withSearch_94m4o_133",xp="_search_94m4o_136",_p="_search__icon_94m4o_149",wp="_search__input_94m4o_154",bp="_option_94m4o_184",yp="_option_active_94m4o_192",Cp="_option_active_next_active_94m4o_198",kp="_option_active_prev_active_94m4o_202",Ep="_tableTemplate_94m4o_229",jp="_tableContainer_94m4o_236",Sp="_table_94m4o_229",Np="_activeRow_94m4o_278",Rp="_checkboxCell_94m4o_285",Lp="_checkbox_94m4o_285",Ap="_footerTotal_94m4o_300",Y={wrapper:tp,container:np,input:rp,error:op,disabled:sp,tagContainer:ap,selectedOptionContainer:ip,selectedOption:cp,placeHolder:lp,iconContainer:dp,deleteIcon:up,divider:fp,arrowIcon:pp,arrowIconExpanded:mp,dropdown:hp,dropdown_visible:gp,withSearch:vp,search:xp,search__icon:_p,search__input:wp,option:bp,option_active:yp,option_active_next_active:Cp,option_active_prev_active:kp,tableTemplate:Ep,tableContainer:jp,table:Sp,activeRow:Np,checkboxCell:Rp,checkbox:Lp,footerTotal:Ap},Pp=6,Mp=({value:e,selectedOptionRender:t,tagRender:n,onDelete:r})=>e?Array.isArray(e)?a.jsx("div",{className:Y.tagContainer,children:e.map((o,s)=>n?a.jsx(w.Fragment,{children:n(o)},s):a.jsx(_a,{isSmall:!0,...r&&{onClick:()=>r?.(o)},children:o.label},s))}):a.jsx("span",{className:Y.selectedOption,children:t?t(e):e.label}):null,wa=({onSearch:e,searchClassName:t,searchValue:n,isLoading:r,placeholder:o})=>a.jsxs("div",{className:L(Y.search,t),children:[a.jsx(pn,{className:Y.search__icon}),a.jsx("input",{className:Y.search__input,value:n,onChange:s=>e?.(s.target.value),placeholder:o}),r&&a.jsx(je,{size:"extraSmall",className:Y.search__spinner})]}),Op=({value:e,options:t,optionClassName:n,optionRender:r,onChange:o,onSearch:s,searchClassName:c,isLoading:l,searchValue:d,searchPlaceholder:u})=>{const f=m=>Array.isArray(e)?e.some(v=>v.value===m.value):e?.value===m.value;return a.jsxs(a.Fragment,{children:[s&&a.jsx(wa,{onSearch:s,searchValue:d,searchClassName:c,isLoading:l,placeholder:u}),t&&t.length?a.jsx("ul",{className:L({[Y.withSearch]:s}),children:t.map((m,v)=>{const p=f(m),x=t[v-1]&&f(t[v-1]),h=t[v+1]&&f(t[v+1]);return a.jsx("li",{className:L(Y.option,{[Y.option_active]:p,[Y.option_active_prev_active]:x,[Y.option_active_next_active]:h},n),onClick:()=>o(m),children:r?r(m):m.label},`${m.value}${v}`)})}):!l&&a.jsx(ft,{})]})},Tp=({value:e,options:t,onChange:n,onDelete:r,onSearch:o,searchClassName:s,isLoading:c,searchValue:l,searchPlaceholder:d,columns:u,total:f,mode:m})=>{const v=g=>Array.isArray(e)?e.some(_=>_.value===g.value):e?.value===g.value,p=(g,_)=>{if(m==="multiple"&&_&&r){r(g);return}n(g)},x=f??t?.length??0,h=u??[];return a.jsxs("div",{className:Y.tableTemplate,children:[o&&a.jsx(wa,{onSearch:o,searchValue:l,searchClassName:s,isLoading:c,placeholder:d}),a.jsx("div",{className:Y.tableContainer,children:t&&t.length?a.jsxs("table",{className:Y.table,children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{className:Y.checkboxCell,"aria-label":""}),h.map(g=>a.jsx("th",{className:g.className,children:g.title},g.key))]})}),a.jsx("tbody",{children:t.map((g,_)=>{const b=v(g);return a.jsxs("tr",{className:L({[Y.activeRow]:b}),onClick:()=>p(g,b),children:[a.jsx("td",{className:Y.checkboxCell,children:a.jsx("input",{type:"checkbox",className:Y.checkbox,checked:b,readOnly:!0,tabIndex:-1,onClick:y=>y.stopPropagation(),onChange:()=>p(g,b)})}),h.map(y=>a.jsx("td",{className:y.className,children:y.render(g)},y.key))]},`${String(g.value)}${_}`)})})]}):!c&&a.jsx(ft,{})}),a.jsxs("div",{className:Y.footerTotal,children:["Всего ",x]})]})},Ip=({options:e,value:t,mode:n,placeholder:r,onChange:o,dropdownRender:s,optionRender:c,selectedOptionRender:l,dropdownIcon:d,tagRender:u,dropDownClassName:f,optionClassName:m,inputClassName:v,deleteIconClassName:p,onDelete:x,onClear:h,label:g,onSearch:_,searchClassName:b,searchPlaceholder:y,isLoading:C,disabled:k,onClose:E,portalTarget:S,error:N,fixedHeight:O=!0,template:R="list",columns:F,total:B})=>{const[V,H]=w.useState(!1),[G,T]=w.useState(!1),W=w.useRef(null),I=w.useRef(null),X=w.useRef(null),[j,Q]=w.useState(""),re=S??(G&&typeof document<"u"?document.body:void 0);w.useEffect(()=>{T(!0)},[]);const ee=w.useCallback(Z=>{Q(Z),_?.(Z)},[_]);w.useEffect(()=>{if(!V)return;const Z=le=>{W.current&&!W.current.contains(le.target)&&(!I.current||!I.current.contains(le.target))&&(ee(""),H(!1),E?.())};return document.addEventListener("mousedown",Z,!0),()=>{document.removeEventListener("mousedown",Z,!0)}},[ee,V,E]);const{refs:se,floatingStyles:U,update:te}=$f({strategy:"absolute",placement:"bottom-start",open:V,whileElementsMounted:(Z,le,rt)=>hs(Z,le,rt,{ancestorScroll:!1,elementResize:!0,ancestorResize:!0,layoutShift:!0}),middleware:[xs(Pp),_s({fallbackPlacements:["top-start","bottom-start"]}),ws({apply({rects:Z,elements:le}){const rt=`${Math.round(Z.reference.width)}px`;le.floating.style.width!==rt&&(le.floating.style.width=rt)}})]}),de=w.useCallback(Z=>{X.current=Z,se.setReference(Z)},[se]),D=w.useCallback(Z=>{I.current=Z,se.setFloating(Z)},[se]);w.useEffect(()=>{V&&te()},[V,te]);const K=w.useCallback(Z=>{o?.(Z),ee(""),E?.(),n==="single"&&H(!1)},[ee,n,o,E]),we=w.useCallback(()=>{const Z=a.jsx("div",{ref:D,className:L(Y.dropdown,{[Y.dropdown_visible]:V},f),style:U,onClick:le=>le.stopPropagation(),children:a.jsx("div",{className:Y.dropdownContent,style:{height:O?"300px":"none"},children:(()=>{const le=R==="table"?a.jsx(Tp,{value:t,options:e,onChange:K,onDelete:x,..._&&{onSearch:ee},searchClassName:b,isLoading:C,searchValue:j,searchPlaceholder:y,columns:F,total:B,mode:n}):a.jsx(Op,{value:t,options:e,optionClassName:m,optionRender:c,onChange:K,..._&&{onSearch:ee},searchClassName:b,isLoading:C,searchValue:j,searchPlaceholder:y});return s?s(le):le})()})});return re?At.createPortal(Z,re):Z},[f,s,O,U,K,ee,C,V,_,m,c,e,re,R,F,B,n,x,b,y,j,D,t]),Re=w.useMemo(()=>G?we():null,[G,we]),Ee=Array.isArray(t)?!!t.length:!!t;return a.jsxs("div",{className:Y.wrapper,children:[g&&a.jsx(Sn,{htmlFor:"CustomSelectInput",children:g}),a.jsxs("div",{className:Y.container,ref:W,children:[a.jsxs("div",{role:"button",id:"CustomSelectInput",tabIndex:0,ref:de,className:L(Y.input,{[Y.input_fixedHeight]:n==="single",[Y.disabled]:k},N&&Y.error,v),onClick:()=>{t&&(ee(""),E?.()),H(Z=>!Z)},children:[a.jsx("div",{className:Y.selectedOptionContainer,children:Ee?a.jsx(Mp,{value:t,selectedOptionRender:l,tagRender:u,onDelete:x}):a.jsx("span",{className:Y.placeHolder,children:r})}),a.jsxs("div",{className:Y.iconContainer,children:[h&&Ee&&a.jsxs(a.Fragment,{children:[a.jsx(ce,{variant:"text",className:L(Y.deleteIcon,p),onClick:Z=>{Z.stopPropagation(),h()},children:a.jsx("span",{children:a.jsx(Oe,{})})}),a.jsx("div",{className:Y.divider,children:a.jsx("div",{})})]}),d||a.jsx(ce,{variant:"text",className:L(Y.arrowIcon,{[Y.arrowIconExpanded]:V}),children:a.jsx(ct,{})})]})]}),Re]}),N&&a.jsx(jn,{children:N})]})};function Dp(e){const t=$p(e),n=i.forwardRef((r,o)=>{const{children:s,...c}=r,l=i.Children.toArray(s),d=l.find(Fp);if(d){const u=d.props.children,f=l.map(m=>m===d?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:m);return a.jsx(t,{...c,ref:o,children:i.isValidElement(u)?i.cloneElement(u,void 0,f):null})}return a.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function $p(e){const t=i.forwardRef((n,r)=>{const{children:o,...s}=n;if(i.isValidElement(o)){const c=Vp(o),l=Bp(s,o.props);return o.type!==i.Fragment&&(l.ref=r?Pt(r,c):c),i.cloneElement(o,l)}return i.Children.count(o)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zp=Symbol("radix.slottable");function Fp(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zp}function Bp(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const d=s(...l);return o(...l),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Vp(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 Nn="Dialog",[ba]=mn(Nn),[Hp,Ne]=ba(Nn),ya=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:c=!0}=e,l=i.useRef(null),d=i.useRef(null),[u,f]=wr({prop:r,defaultProp:o??!1,onChange:s,caller:Nn});return a.jsx(Hp,{scope:t,triggerRef:l,contentRef:d,contentId:Nt(),titleId:Nt(),descriptionId:Nt(),open:u,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(m=>!m),[f]),modal:c,children:n})};ya.displayName=Nn;var Ca="DialogTrigger",Wp=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ne(Ca,n),s=ke(t,o.triggerRef);return a.jsx(ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Nr(o.open),...r,ref:s,onClick:fe(e.onClick,o.onOpenToggle)})});Wp.displayName=Ca;var jr="DialogPortal",[qp,ka]=ba(jr,{forceMount:void 0}),Ea=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Ne(jr,t);return a.jsx(qp,{scope:t,forceMount:n,children:i.Children.map(r,c=>a.jsx(tt,{present:n||s.open,children:a.jsx(bn,{asChild:!0,container:o,children:c})}))})};Ea.displayName=jr;var fn="DialogOverlay",ja=i.forwardRef((e,t)=>{const n=ka(fn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Ne(fn,e.__scopeDialog);return s.modal?a.jsx(tt,{present:r||s.open,children:a.jsx(Up,{...o,ref:t})}):null});ja.displayName=fn;var Gp=Dp("DialogOverlay.RemoveScroll"),Up=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ne(fn,n);return a.jsx(kr,{as:Gp,allowPinchZoom:!0,shards:[o.contentRef],children:a.jsx(ge.div,{"data-state":Nr(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),dt="DialogContent",Sa=i.forwardRef((e,t)=>{const n=ka(dt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Ne(dt,e.__scopeDialog);return a.jsx(tt,{present:r||s.open,children:s.modal?a.jsx(Zp,{...o,ref:t}):a.jsx(Yp,{...o,ref:t})})});Sa.displayName=dt;var Zp=i.forwardRef((e,t)=>{const n=Ne(dt,e.__scopeDialog),r=i.useRef(null),o=ke(t,n.contentRef,r);return i.useEffect(()=>{const s=r.current;if(s)return Ys(s)},[]),a.jsx(Na,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:fe(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:fe(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&s.preventDefault()}),onFocusOutside:fe(e.onFocusOutside,s=>s.preventDefault())})}),Yp=i.forwardRef((e,t)=>{const n=Ne(dt,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return a.jsx(Na,{...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 c=s.target;n.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Na=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...c}=e,l=Ne(dt,n),d=i.useRef(null),u=ke(t,d);return Gs(),a.jsxs(a.Fragment,{children:[a.jsx(Cr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:a.jsx(hn,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Nr(l.open),...c,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),a.jsxs(a.Fragment,{children:[a.jsx(Xp,{titleId:l.titleId}),a.jsx(Jp,{contentRef:d,descriptionId:l.descriptionId})]})]})}),Sr="DialogTitle",Ra=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ne(Sr,n);return a.jsx(ge.h2,{id:o.titleId,...r,ref:t})});Ra.displayName=Sr;var La="DialogDescription",Aa=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ne(La,n);return a.jsx(ge.p,{id:o.descriptionId,...r,ref:t})});Aa.displayName=La;var Pa="DialogClose",Kp=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ne(Pa,n);return a.jsx(ge.button,{type:"button",...r,ref:t,onClick:fe(e.onClick,()=>o.onOpenChange(!1))})});Kp.displayName=Pa;function Nr(e){return e?"open":"closed"}var Ma="DialogTitleWarning",[X2,Oa]=Rl(Ma,{contentName:dt,titleName:Sr,docsSlug:"dialog"}),Xp=({titleId:e})=>{const t=Oa(Ma),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},$p="DialogDescriptionWarning",Fp=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ba($p).contentName}}.`;return a.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Bp=ca,zp=da,_a=fa,ya=pa,Ca=ha,ka=va;const xr=Bp,Hp=zp,Ea=a.forwardRef(({className:e,...t},n)=>l.jsx(_a,{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}));Ea.displayName=_a.displayName;const xn=a.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(Hp,{children:[l.jsx(Ea,{}),l.jsx(ya,{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})]}));xn.displayName=ya.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(Ca,{ref:n,className:Pe("text-lg font-semibold leading-none tracking-tight",e),...t}));_n.displayName=Ca.displayName;const Wp=a.forwardRef(({className:e,...t},n)=>l.jsx(ka,{ref:n,className:Pe("text-sm text-muted-foreground",e),...t}));Wp.displayName=ka.displayName;const Vp="_wrapper_4ju0w_1",qp="_input_4ju0w_5",Gp="_error_4ju0w_25",Up="_disabled_4ju0w_33",Zp="_selectedOption_4ju0w_39",Yp="_placeholder_4ju0w_50",Xp="_actions_4ju0w_54",Kp="_clearButton_4ju0w_61",Qp="_selectButton_4ju0w_70",Jp="_dialogContent_4ju0w_77",em="_dialogHeader_4ju0w_92",tm="_dialogTitle_4ju0w_97",nm="_search_4ju0w_104",rm="_searchIcon_4ju0w_120",om="_searchInput_4ju0w_131",sm="_searchSpinner_4ju0w_162",am="_tableContainer_4ju0w_166",im="_table_4ju0w_166",cm="_activeRow_4ju0w_209",lm="_emptyState_4ju0w_216",um="_dialogFooter_4ju0w_223",dm="_pagination_4ju0w_231",fm="_footerActions_4ju0w_232",pm="_pageInfo_4ju0w_251",ee={wrapper:Vp,input:qp,error:Gp,disabled:Up,selectedOption:Zp,placeholder:Yp,actions:Xp,clearButton:Kp,selectButton:Qp,dialogContent:Jp,dialogHeader:em,dialogTitle:tm,search:nm,searchIcon:rm,searchInput:om,searchSpinner:sm,tableContainer:am,table:im,activeRow:cm,emptyState:lm,dialogFooter:um,pagination:dm,footerActions:fm,pageInfo:pm},mm=8,hm=350,Sa=({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=mm,debounceMs:x=hm,disabled:h,error:g,className:w,inputClassName:b,selectedOptionRender:_})=>{const[C,E]=y.useState(!1),[k,j]=y.useState(""),[S,T]=y.useState(""),[D,F]=y.useState(1),[V,B]=y.useState([]),[z,U]=y.useState(),[$,H]=y.useState(!1),[O,Y]=y.useState(!1),N=y.useRef(0),fe=y.useMemo(()=>s??[{key:"label",title:"ФИО сотрудника",render:P=>P.label},{key:"birthDate",title:"День рождения",render:P=>P.meta?.birthDate??"—"}],[s]),re=z?Math.max(1,Math.ceil(z/m)):void 0,ce=D>1,te=re?D<re:$;y.useEffect(()=>{const P=window.setTimeout(()=>{T(k.trim()),F(1)},x);return()=>window.clearTimeout(P)},[x,k]),y.useEffect(()=>{if(!C)return;const P=N.current+1;N.current=P,Y(!0),n({search:S,page:D,pageSize:m}).then(Z=>{N.current===P&&(B(Z.options),U(Z.total),H(Z.hasNextPage??!1))}).finally(()=>{N.current===P&&Y(!1)})},[S,C,n,D,m]);const X=y.useCallback(P=>{E(P),P||(j(""),T(""),F(1))},[]),Q=y.useCallback(P=>{r?.(P),X(!1)},[X,r]),se=e?_?_(e):e.label:t;return l.jsxs("div",{className:A(ee.wrapper,w),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&&X(!0),onKeyDown:P=>{!h&&(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),X(!0))},children:[l.jsx("span",{className:A(ee.selectedOption,{[ee.placeholder]:!e}),children:se}),l.jsxs("span",{className:ee.actions,children:[o&&e&&l.jsx(de,{variant:"text",className:ee.clearButton,"aria-label":"Очистить выбранное значение",onClick:P=>{P.stopPropagation(),o()},children:l.jsx(Ue,{})}),l.jsx(de,{variant:"link",className:ee.selectButton,disabled:h,onClick:P=>{P.stopPropagation(),X(!0)},children:d})]})]}),l.jsx(xr,{open:C,onOpenChange:X,children:l.jsxs(xn,{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:k,onChange:P=>j(P.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:fe.map(P=>l.jsx("th",{className:P.className,children:P.title},P.key))})}),l.jsx("tbody",{children:V.map(P=>{const Z=e?.value===P.value;return l.jsx("tr",{className:A({[ee.activeRow]:Z}),onClick:()=>Q(P),children:fe.map(we=>l.jsx("td",{className:we.className,children:we.render(P)},we.key))},String(P.value))})})]}),!O&&!V.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(de,{variant:"secondary",size:"small",disabled:!ce||O,onClick:()=>F(P=>Math.max(1,P-1)),children:"Назад"}),l.jsxs("span",{className:ee.pageInfo,children:["Страница ",D,re?` из ${re}`:""]}),l.jsx(de,{variant:"secondary",size:"small",disabled:!te||O,onClick:()=>F(P=>P+1),children:"Вперёд"})]}),l.jsxs("div",{className:ee.footerActions,children:[v&&l.jsx(de,{variant:"primary",onClick:v,children:p}),l.jsx(de,{variant:"secondary",onClick:()=>X(!1),children:f})]})]})]})}),g&&l.jsx(gn,{children:g})]})},gm="_wrapper_15kqr_1",vm="_input_15kqr_5",wm="_error_15kqr_25",xm="_disabled_15kqr_33",bm="_selectedOption_15kqr_39",_m="_placeholder_15kqr_50",ym="_actions_15kqr_54",Cm="_clearButton_15kqr_61",km="_selectButton_15kqr_70",Em="_dialogContent_15kqr_77",Sm="_dialogHeader_15kqr_92",jm="_dialogTitle_15kqr_97",Nm="_search_15kqr_104",Rm="_searchIcon_15kqr_120",Lm="_searchInput_15kqr_131",Am="_searchSpinner_15kqr_162",Pm="_treeContainer_15kqr_166",Mm="_row_15kqr_176",Om="_row_active_15kqr_191",Im="_nodeLabel_15kqr_194",Tm="_row_match_15kqr_198",Dm="_chevron_15kqr_202",$m="_chevronExpanded_15kqr_227",Fm="_chevronPlaceholder_15kqr_231",Bm="_nodeSpinner_15kqr_237",zm="_emptyState_15kqr_249",Hm="_loadingState_15kqr_256",Wm="_dialogFooter_15kqr_263",K={wrapper:gm,input:vm,error:wm,disabled:xm,selectedOption:bm,placeholder:_m,actions:ym,clearButton:Cm,selectButton:km,dialogContent:Em,dialogHeader:Sm,dialogTitle:jm,search:Nm,searchIcon:Rm,searchInput:Lm,searchSpinner:Am,treeContainer:Pm,row:Mm,row_active:Om,nodeLabel:Im,row_match:Tm,chevron:Dm,chevronExpanded:$m,chevronPlaceholder:Fm,nodeSpinner:Bm,emptyState:zm,loadingState:Hm,dialogFooter:Wm},Vm=350,De="__root__",qm=({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=Vm,disabled:x,error:h,className:g,inputClassName:w,selectedOptionRender:b,nodeRender:_,leafConfirmOnly:C=!1})=>{const E=r??n,[k,j]=y.useState(!1),[S,T]=y.useState(""),[D,F]=y.useState(""),[V,B]=y.useState(()=>new Map),[z,U]=y.useState(()=>new Set),[$,H]=y.useState(()=>new Set),[O,Y]=y.useState(()=>new Set),[N,fe]=y.useState(()=>new Set),[re,ce]=y.useState(!1),[te,X]=y.useState(null),Q=y.useRef(0),se=y.useRef(0);y.useEffect(()=>{if(!k||V.has(De))return;const I=Q.current+1;Q.current=I,U(ne=>{const J=new Set(ne);return J.add(De),J}),E({parentId:null,search:""}).then(ne=>{Q.current===I&&B(J=>{const le=new Map(J);return le.set(De,ne.nodes),le})}).finally(()=>{Q.current===I&&U(ne=>{const J=new Set(ne);return J.delete(De),J})})},[k,E,V]),y.useEffect(()=>{const I=window.setTimeout(()=>F(S.trim()),m);return()=>window.clearTimeout(I)},[S,m]),y.useEffect(()=>{if(!k||!o)return;if(!D){fe(new Set),Y(new Set);return}const I=se.current+1;se.current=I,ce(!0),o(D).then(ne=>{if(se.current!==I)return;const J=new Set,le=new Set,he=new Map;for(const Oe of ne.matches){J.add(Oe.node.value);const ge=[...Oe.path,Oe.node];for(let ue=0;ue<ge.length-1;ue++){const tt=ge[ue],nt=ge[ue+1];le.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 ue=ge[0];he.has(De)||he.set(De,new Map),he.get(De).set(ue.value,ue)}}fe(J),Y(le),B(Oe=>{const ge=new Map(Oe);return he.forEach((ue,tt)=>{const nt=ge.get(tt)??[],Ie=new Map;nt.forEach(He=>Ie.set(He.value,He)),ue.forEach((He,Aa)=>Ie.set(Aa,He)),ge.set(tt,Array.from(Ie.values()))}),ge})}).finally(()=>{se.current===I&&ce(!1)})},[D,k,o]);const P=y.useCallback(I=>{j(I),I||(T(""),F(""),X(null),fe(new Set),Y(new Set))},[]),Z=y.useCallback(I=>{const ne=I.value;V.has(ne)||z.has(ne)||(U(J=>{const le=new Set(J);return le.add(ne),le}),E({parentId:I.value,search:""}).then(J=>{B(le=>{const he=new Map(le),Oe=he.get(ne)??[],ge=new Map;return Oe.forEach(ue=>ge.set(ue.value,ue)),J.nodes.forEach(ue=>ge.set(ue.value,ue)),he.set(ne,Array.from(ge.values())),he})}).finally(()=>{U(J=>{const le=new Set(J);return le.delete(ne),le})}))},[V,E,z]),we=y.useCallback(I=>{H(ne=>{const J=new Set(ne);return J.has(I.value)?J.delete(I.value):(J.add(I.value),Z(I)),J})},[Z]),Se=y.useCallback(I=>{X(I)},[]),Ce=y.useCallback(()=>{C&&(!te||te.hasChildren===!0)||(te&&s?.(te),P(!1))},[P,C,s,te]),q=y.useCallback(I=>$.has(I)||O.has(I),[$,O]),oe=y.useCallback(I=>{if(!D||o)return I;const ne=D.toLowerCase();return I.filter(J=>J.label.toLowerCase().includes(ne))},[D,o]),et=(I,ne)=>{const J=I.value,le=V.get(J),he=q(I.value),Oe=z.has(J),ge=te?.value===I.value,ue=e?.value===I.value,tt=N.has(I.value),nt=he&&le&&le.length>0,Ie=nt?oe(le):[];return l.jsxs(y.Fragment,{children:[l.jsxs("div",{className:A(K.row,{[K.row_active]:ge||ue,[K.row_match]:tt}),style:{paddingLeft:16+ne*20},onClick:()=>Se(I),children:[I.hasChildren?l.jsx("button",{type:"button",className:A(K.chevron,{[K.chevronExpanded]:he}),onClick:He=>{He.stopPropagation(),we(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(He=>et(He,ne+1))]},String(I.value))},_r=V.get(De)??[],yr=oe(_r),At=z.has(De),ja=e?b?b(e):e.label:t,Na=!At&&!re&&yr.length===0,Ra=y.useMemo(()=>re||At&&!!D,[re,At,D]),La=!te||C&&te.hasChildren===!0;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:x?-1:0,className:A(K.input,{[K.disabled]:x,[K.error]:h},w),onClick:()=>!x&&P(!0),onKeyDown:I=>{!x&&(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),P(!0))},children:[l.jsx("span",{className:A(K.selectedOption,{[K.placeholder]:!e}),children:ja}),l.jsxs("span",{className:K.actions,children:[i&&e&&l.jsx(de,{variant:"text",className:K.clearButton,"aria-label":"Очистить выбранное значение",onClick:I=>{I.stopPropagation(),i()},children:l.jsx(Ue,{})}),l.jsx(de,{variant:"link",className:K.selectButton,disabled:x,onClick:I=>{I.stopPropagation(),P(!0)},children:f})]})]}),l.jsx(xr,{open:k,onOpenChange:P,children:l.jsxs(xn,{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:S,onChange:I=>T(I.target.value),placeholder:d,autoFocus:!0}),Ra&&l.jsx(st,{size:"extraSmall",className:K.searchSpinner})]}),l.jsx("div",{className:K.treeContainer,children:At&&_r.length===0?l.jsx("div",{className:K.loadingState,children:l.jsx(st,{size:"small"})}):Na?l.jsx("div",{className:K.emptyState,children:l.jsx(Lt,{title:"Ничего не найдено",subtitle:"Попробуйте изменить поисковый запрос"})}):yr.map(I=>et(I,0))}),l.jsxs(br,{className:K.dialogFooter,children:[l.jsx(de,{variant:"secondary",onClick:()=>P(!1),children:p}),l.jsx(de,{variant:"primary",disabled:La,onClick:Ce,children:v})]})]})}),h&&l.jsx(gn,{children:h})]})},Gm="_wrapper_1wain_1",Um="_tabs_1wain_6",Zm="_tabItem_1wain_16",Ym="_active_1wain_46",Xm="_before_1wain_61",Km="_after_1wain_62",Qm="_panel_1wain_101",$e={wrapper:Gm,tabs:Um,tabItem:Zm,active:Ym,before:Xm,after:Km,panel:Qm};function Jm(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 e0=a.memo(({className:e,items:t=[],children:n,value:r,onValueChange:o,activeTab:s,onClick:i,tabsClassName:c})=>{const u=y.useMemo(()=>Jm(t),[t]),d=y.useMemo(()=>{if(r!==void 0){const f=u.findIndex(p=>p.key===r);return f>=0?f:0}return s??0},[r,s,u]);return l.jsxs("div",{className:A($e.wrapper,e),children:[l.jsx("div",{className:A($e.tabs,c),children:u.map((f,p)=>f.label&&l.jsxs("div",{className:A($e.tabItem,f.className,{[$e.active]:d===p,[$e.first]:p===0,[$e.last]:p===u.length-1}),style:{zIndex:d===p?u.length:p===0?0:u.length-p},onClick:v=>{v.stopPropagation(),o?o(f.key):i?.(p)},children:[d===p&&p!==0&&l.jsx("span",{className:$e.before}),f.label,d===p&&p!==u.length-1&&l.jsx("span",{className:$e.after})]},p))}),l.jsx("div",{className:$e.panel,children:n})]})}),t0="_wrapper_1xj0t_1",n0="_itemBlock_1xj0t_8",r0="_step_1xj0t_16",o0="_clickable_1xj0t_39",s0="_step_inactive_1xj0t_46",a0="_step_current_1xj0t_51",i0="_connector_1xj0t_55",c0="_connector_active_1xj0t_62",l0="_label_1xj0t_66",u0="_label_active_1xj0t_74",Ne={wrapper:t0,itemBlock:n0,step:r0,clickable:o0,step_inactive:s0,step_current:a0,connector:i0,connector_active:c0,label:l0,label_active:u0},d0=({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),x=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:[x,l.jsx("span",{className:A(Ne.label,{[Ne.label_active]:f}),children:i.label})]}):l.jsx("div",{role:"listitem",children:x}),!p&&l.jsx("span",{className:A(Ne.connector,{[Ne.connector_active]:c<t})})]},c)})})},f0="_container_1whkx_1",p0="_tabs_1whkx_4",m0="_line_1whkx_11",h0="_tabItem_1whkx_21",g0="_header_1whkx_34",v0="_notificationChanges_1whkx_42",w0="_tabs_hasAnimatedIndicator_1whkx_61",x0="_active_1whkx_64",qe={container:f0,tabs:p0,line:m0,tabItem:h0,header:g0,notificationChanges:v0,tabs_hasAnimatedIndicator:w0,active:x0};function b0(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 _0=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(()=>b0(e),[e]),p=y.useMemo(()=>{if(t!==void 0){const g=f.findIndex(w=>w.key===t);return g>=0?g:0}return r!==void 0?r:0},[t,r,f]),v=y.useRef(null),m=y.useRef(null),[x,h]=y.useState({left:0,width:0});return y.useEffect(()=>{const g=v.current;if(!g)return;const w=()=>{const C={left:g.offsetLeft||0,width:g.clientWidth||0};h(E=>E.left===C.left&&E.width===C.width?E:C)},b=()=>{m.current!==null&&cancelAnimationFrame(m.current),m.current=requestAnimationFrame(()=>{m.current=null,w()})};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,w)=>g.label&&l.jsxs("div",{ref:p===w?v:void 0,className:A(qe.tabItem,g.className,{[qe.active]:p===w}),onClick:b=>{b.stopPropagation(),n?n(g.key):d?.(w)},children:[g.header&&l.jsx("div",{className:qe.header,children:g.header}),g.label,i===w&&l.jsx("div",{className:qe.notificationChanges,children:c!=null?c>99?"99+":String(c):null})]},w)),l.jsx("div",{className:A(qe.line,u),style:{left:x.left,width:x.width}})]})})}),y0="_root_osjxx_1",C0="_header_osjxx_11",k0="_headerText_osjxx_21",E0="_eyebrow_osjxx_27",S0="_title_osjxx_35",j0="_timeline_osjxx_42",N0="_level_osjxx_47",R0="_rail_osjxx_58",L0="_railLine_osjxx_65",A0="_railLine_completed_osjxx_74",P0="_railLine_toCurrent_osjxx_78",M0="_marker_osjxx_82",O0="_marker_completed_osjxx_101",I0="_marker_current_osjxx_107",T0="_body_osjxx_120",D0="_levelHeader_osjxx_125",$0="_levelName_osjxx_132",F0="_levelName_current_osjxx_141",B0="_levelName_completed_osjxx_147",z0="_iconButton_osjxx_152",H0="_iconButton_danger_osjxx_176",W0="_stages_osjxx_182",V0="_stage_osjxx_182",q0="_stage_current_osjxx_199",G0="_stageHeader_osjxx_204",U0="_stageName_osjxx_212",Z0="_stageActions_osjxx_220",Y0="_approvers_osjxx_227",X0="_approver_osjxx_227",K0="_approverMain_osjxx_242",Q0="_approverName_osjxx_249",J0="_approverName_pending_osjxx_255",eh="_approverName_rejected_osjxx_259",th="_approverName_approved_osjxx_264",nh="_approverDate_osjxx_268",rh="_rejectReason_osjxx_273",oh="_empty_osjxx_283",sh="_addStage_osjxx_300",ah="_addLevel_osjxx_323",ih="_dialogContent_osjxx_327",ch="_dialogInput_osjxx_333",lh="_dialogActions_osjxx_348",uh="_approverPickerWrap_osjxx_354",dh="_approverPickerInput_osjxx_361",M={root:y0,header:C0,headerText:k0,eyebrow:E0,title:S0,timeline:j0,level:N0,rail:R0,railLine:L0,railLine_completed:A0,railLine_toCurrent:P0,marker:M0,marker_completed:O0,marker_current:I0,body:T0,levelHeader:D0,levelName:$0,levelName_current:F0,levelName_completed:B0,iconButton:z0,iconButton_danger:H0,stages:W0,stage:V0,stage_current:q0,stageHeader:G0,stageName:U0,stageActions:Z0,approvers:Y0,approver:X0,approverMain:K0,approverName:Q0,approverName_pending:J0,approverName_rejected:eh,approverName_approved:th,approverDate:nh,rejectReason:rh,empty:oh,addStage:sh,addLevel:ah,dialogContent:ih,dialogInput:ch,dialogActions:lh,approverPickerWrap:uh,approverPickerInput:dh},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 po({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(xr,{open:e,onOpenChange:u=>!u&&o(),children:l.jsxs(xn,{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(de,{variant:"secondary",onClick:o,children:"Отмена"}),l.jsx(de,{variant:"primary",onClick:c,disabled:!s.trim(),children:"Добавить"})]})]})]})})}const fh=({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),[x,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,w)=>{const b=e[w+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:[w<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(Sa,{value:null,placeholder:"",title:"Добавить согласующего",searchPlaceholder:"Поиск сотрудника",loadOptions:s,onChange:E=>f?.(g.id,C.id,E),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(go,{}),"Согласующий не назначен"]}):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:A(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:A(M.iconButton,M.iconButton_danger),onClick:()=>p?.(g.id,C.id,E.id),"aria-label":"Удалить согласующего",title:"Удалить согласующего",children:l.jsx(Ue,{})})]},E.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(po,{open:v,title:"Новый уровень",placeholder:"Название уровня",onClose:()=>m(!1),onSubmit:g=>i?.(g)}),l.jsx(po,{open:x!==null,title:"Новый этап",placeholder:"Название этапа",onClose:()=>h(null),onSubmit:g=>x&&u?.(x,g)})]})};exports.ApprovalRoute=fh;exports.ArrowDownBlueIcon=ri;exports.ArrowDownIcon=nn;exports.ArrowRightIcon=ni;exports.BaseBlock=Si;exports.Button=de;exports.CameraIcon=di;exports.CancelIcon=ii;exports.Card=Bc;exports.Carousel=nl;exports.ChartIcon=Ya;exports.ChatIcon=ti;exports.CheckGreen=si;exports.ClockFilledIcon=hi;exports.ClockIcon=Ma;exports.CloseRed=oi;exports.CollapsableBlock=of;exports.Collapse=ta;exports.Colors=bo;exports.CopyIcon=vo;exports.CopyTextTrigger=zo;exports.CrossIcon=Ue;exports.DialogSelect=Sa;exports.DoneIcon=Xn;exports.DownloadIcon=xi;exports.EditIcon=pi;exports.EmptyComponent=Lt;exports.EmptyIcon=xo;exports.EnvelopIcon=ci;exports.FeedbackIcon=Xa;exports.FileReloadIcon=Oa;exports.FileSync=ei;exports.FilterIcon=fi;exports.FolderEditIcon=Ia;exports.GraduateIcon=Ta;exports.GridIcon=Da;exports.HeartIcon=$a;exports.HelpIcon=Fa;exports.HistoryBlue=ai;exports.HomeIcon=Pa;exports.InfoIcon=wo;exports.InputCaption=gn;exports.IslandIcon=wi;exports.Label=vn;exports.ListIcon=Ba;exports.MarketIcon=za;exports.MegaphoneIcon=Qa;exports.MessageIcon=li;exports.NotebookIcon=Za;exports.PhoneIcon=ui;exports.PlaneIcon=Ha;exports.Popover=H1;exports.ProfileIcon=Wa;exports.ProfileSearchIcon=Va;exports.RadioGroupButton=Dc;exports.ReloadIcon=mi;exports.SchoolIcon=vi;exports.SearchIcon=tn;exports.Select=yp;exports.SettingsIcon=gi;exports.Spinner=st;exports.Stepper=d0;exports.Tabs=_0;exports.TabsRounded=e0;exports.Tag=sa;exports.TaskListIcon=Ka;exports.TimesheetIcon=Ua;exports.TooltipDark=er;exports.TooltipLight=As;exports.TreeDialogSelect=qm;exports.TrendUpIcon=qa;exports.UserSwitchIcon=Ja;exports.WalletIcon=Ga;exports.WarnIcon=go;exports.useDropdownPosition=Mc;exports.useMeasureElement=Bo;
|
|
45
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Qp="DialogDescriptionWarning",Jp=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Oa(Qp).contentName}}.`;return i.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},em=ya,tm=Ea,Ta=ja,Ia=Sa,Da=Ra,$a=Aa;const Rn=em,nm=tm,za=i.forwardRef(({className:e,...t},n)=>a.jsx(Ta,{ref:n,className:Ie("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}));za.displayName=Ta.displayName;const It=i.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(nm,{children:[a.jsx(za,{}),a.jsx(Ia,{ref:r,className:Ie("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})]}));It.displayName=Ia.displayName;const Dt=({className:e,...t})=>a.jsx("div",{className:Ie("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Dt.displayName="DialogHeader";const Ln=({className:e,...t})=>a.jsx("div",{className:Ie("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ln.displayName="DialogFooter";const $t=i.forwardRef(({className:e,...t},n)=>a.jsx(Da,{ref:n,className:Ie("text-lg font-semibold leading-none tracking-tight",e),...t}));$t.displayName=Da.displayName;const rm=i.forwardRef(({className:e,...t},n)=>a.jsx($a,{ref:n,className:Ie("text-sm text-muted-foreground",e),...t}));rm.displayName=$a.displayName;const om="_wrapper_4ju0w_1",sm="_input_4ju0w_5",am="_error_4ju0w_25",im="_disabled_4ju0w_33",cm="_selectedOption_4ju0w_39",lm="_placeholder_4ju0w_50",dm="_actions_4ju0w_54",um="_clearButton_4ju0w_61",fm="_selectButton_4ju0w_70",pm="_dialogContent_4ju0w_77",mm="_dialogHeader_4ju0w_92",hm="_dialogTitle_4ju0w_97",gm="_search_4ju0w_104",vm="_searchIcon_4ju0w_120",xm="_searchInput_4ju0w_131",_m="_searchSpinner_4ju0w_162",wm="_tableContainer_4ju0w_166",bm="_table_4ju0w_166",ym="_activeRow_4ju0w_209",Cm="_emptyState_4ju0w_216",km="_dialogFooter_4ju0w_223",Em="_pagination_4ju0w_231",jm="_footerActions_4ju0w_232",Sm="_pageInfo_4ju0w_251",oe={wrapper:om,input:sm,error:am,disabled:im,selectedOption:cm,placeholder:lm,actions:dm,clearButton:um,selectButton:fm,dialogContent:pm,dialogHeader:mm,dialogTitle:hm,search:gm,searchIcon:vm,searchInput:xm,searchSpinner:_m,tableContainer:wm,table:bm,activeRow:ym,emptyState:Cm,dialogFooter:km,pagination:Em,footerActions:jm,pageInfo:Sm},Nm=8,Rm=350,Rr=({value:e,placeholder:t,loadOptions:n,onChange:r,onClear:o,columns:s,label:c,title:l="Поиск сотрудника",searchPlaceholder:d="Введите запрос",selectButtonText:u="Выбрать",closeButtonText:f="Закрыть",manualButtonText:m="Добавить вручную",onManualAdd:v,pageSize:p=Nm,debounceMs:x=Rm,disabled:h,error:g,className:_,inputClassName:b,selectedOptionRender:y})=>{const[C,k]=w.useState(!1),[E,S]=w.useState(""),[N,O]=w.useState(""),[R,F]=w.useState(1),[B,V]=w.useState([]),[H,G]=w.useState(),[T,W]=w.useState(!1),[I,X]=w.useState(!1),j=w.useRef(0),Q=w.useMemo(()=>s??[{key:"label",title:"ФИО сотрудника",render:D=>D.label},{key:"birthDate",title:"День рождения",render:D=>D.meta?.birthDate??"—"}],[s]),re=H?Math.max(1,Math.ceil(H/p)):void 0,ee=R>1,se=re?R<re:T;w.useEffect(()=>{const D=window.setTimeout(()=>{O(E.trim()),F(1)},x);return()=>window.clearTimeout(D)},[x,E]),w.useEffect(()=>{if(!C)return;const D=j.current+1;j.current=D,X(!0),n({search:N,page:R,pageSize:p}).then(K=>{j.current===D&&(V(K.options),G(K.total),W(K.hasNextPage??!1))}).finally(()=>{j.current===D&&X(!1)})},[N,C,n,R,p]);const U=w.useCallback(D=>{k(D),D||(S(""),O(""),F(1))},[]),te=w.useCallback(D=>{r?.(D),U(!1)},[U,r]),de=e?y?y(e):e.label:t;return a.jsxs("div",{className:L(oe.wrapper,_),children:[c&&a.jsx(Sn,{htmlFor:"DialogSelectInput",children:c}),a.jsxs("div",{id:"DialogSelectInput",role:"button",tabIndex:h?-1:0,className:L(oe.input,{[oe.disabled]:h,[oe.error]:g},b),onClick:()=>!h&&U(!0),onKeyDown:D=>{!h&&(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),U(!0))},children:[a.jsx("span",{className:L(oe.selectedOption,{[oe.placeholder]:!e}),children:de}),a.jsxs("span",{className:oe.actions,children:[o&&e&&a.jsx(ce,{variant:"text",className:oe.clearButton,"aria-label":"Очистить выбранное значение",onClick:D=>{D.stopPropagation(),o()},children:a.jsx(Oe,{})}),a.jsx(ce,{variant:"link",className:oe.selectButton,disabled:h,onClick:D=>{D.stopPropagation(),U(!0)},children:u})]})]}),a.jsx(Rn,{open:C,onOpenChange:U,children:a.jsxs(It,{className:oe.dialogContent,children:[a.jsx(Dt,{className:oe.dialogHeader,children:a.jsx($t,{className:oe.dialogTitle,children:l})}),a.jsxs("div",{className:oe.search,children:[a.jsx(pn,{className:oe.searchIcon}),a.jsx("input",{className:oe.searchInput,value:E,onChange:D=>S(D.target.value),placeholder:d,autoFocus:!0}),I&&a.jsx(je,{size:"extraSmall",className:oe.searchSpinner})]}),a.jsxs("div",{className:oe.tableContainer,children:[a.jsxs("table",{className:oe.table,children:[a.jsx("thead",{children:a.jsx("tr",{children:Q.map(D=>a.jsx("th",{className:D.className,children:D.title},D.key))})}),a.jsx("tbody",{children:B.map(D=>{const K=e?.value===D.value;return a.jsx("tr",{className:L({[oe.activeRow]:K}),onClick:()=>te(D),children:Q.map(we=>a.jsx("td",{className:we.className,children:we.render(D)},we.key))},String(D.value))})})]}),!I&&!B.length&&a.jsx("div",{className:oe.emptyState,children:a.jsx(ft,{title:"Ничего не найдено",subtitle:"Попробуйте изменить поисковый запрос"})})]}),a.jsxs(Ln,{className:oe.dialogFooter,children:[a.jsxs("div",{className:oe.pagination,children:[a.jsx(ce,{variant:"secondary",size:"small",disabled:!ee||I,onClick:()=>F(D=>Math.max(1,D-1)),children:"Назад"}),a.jsxs("span",{className:oe.pageInfo,children:["Страница ",R,re?` из ${re}`:""]}),a.jsx(ce,{variant:"secondary",size:"small",disabled:!se||I,onClick:()=>F(D=>D+1),children:"Вперёд"})]}),a.jsxs("div",{className:oe.footerActions,children:[v&&a.jsx(ce,{variant:"primary",onClick:v,children:m}),a.jsx(ce,{variant:"secondary",onClick:()=>U(!1),children:f})]})]})]})}),g&&a.jsx(jn,{children:g})]})},Lm="_wrapper_15kqr_1",Am="_input_15kqr_5",Pm="_error_15kqr_25",Mm="_disabled_15kqr_33",Om="_selectedOption_15kqr_39",Tm="_placeholder_15kqr_50",Im="_actions_15kqr_54",Dm="_clearButton_15kqr_61",$m="_selectButton_15kqr_70",zm="_dialogContent_15kqr_77",Fm="_dialogHeader_15kqr_92",Bm="_dialogTitle_15kqr_97",Vm="_search_15kqr_104",Hm="_searchIcon_15kqr_120",Wm="_searchInput_15kqr_131",qm="_searchSpinner_15kqr_162",Gm="_treeContainer_15kqr_166",Um="_row_15kqr_176",Zm="_row_active_15kqr_191",Ym="_nodeLabel_15kqr_194",Km="_row_match_15kqr_198",Xm="_chevron_15kqr_202",Qm="_chevronExpanded_15kqr_227",Jm="_chevronPlaceholder_15kqr_231",eh="_nodeSpinner_15kqr_237",th="_emptyState_15kqr_249",nh="_loadingState_15kqr_256",rh="_dialogFooter_15kqr_263",J={wrapper:Lm,input:Am,error:Pm,disabled:Mm,selectedOption:Om,placeholder:Tm,actions:Im,clearButton:Dm,selectButton:$m,dialogContent:zm,dialogHeader:Fm,dialogTitle:Bm,search:Vm,searchIcon:Hm,searchInput:Wm,searchSpinner:qm,treeContainer:Gm,row:Um,row_active:Zm,nodeLabel:Ym,row_match:Km,chevron:Xm,chevronExpanded:Qm,chevronPlaceholder:Jm,nodeSpinner:eh,emptyState:th,loadingState:nh,dialogFooter:rh},oh=350,Be="__root__",sh=({value:e,placeholder:t,loadChildren:n,loadNodes:r,searchNodes:o,onChange:s,onClear:c,label:l,title:d="Выбор элемента",searchPlaceholder:u="Введите запрос",selectButtonText:f="Выбрать",closeButtonText:m="Закрыть",confirmButtonText:v="Выбрать",debounceMs:p=oh,disabled:x,error:h,className:g,inputClassName:_,selectedOptionRender:b,nodeRender:y,leafConfirmOnly:C=!1})=>{const k=r??n,[E,S]=w.useState(!1),[N,O]=w.useState(""),[R,F]=w.useState(""),[B,V]=w.useState(()=>new Map),[H,G]=w.useState(()=>new Set),[T,W]=w.useState(()=>new Set),[I,X]=w.useState(()=>new Set),[j,Q]=w.useState(()=>new Set),[re,ee]=w.useState(!1),[se,U]=w.useState(null),te=w.useRef(0),de=w.useRef(0);w.useEffect(()=>{if(!E||B.has(Be))return;const z=te.current+1;te.current=z,G(ae=>{const ne=new Set(ae);return ne.add(Be),ne}),k({parentId:null,search:""}).then(ae=>{te.current===z&&V(ne=>{const pe=new Map(ne);return pe.set(Be,ae.nodes),pe})}).finally(()=>{te.current===z&&G(ae=>{const ne=new Set(ae);return ne.delete(Be),ne})})},[E,k,B]),w.useEffect(()=>{const z=window.setTimeout(()=>F(N.trim()),p);return()=>window.clearTimeout(z)},[N,p]),w.useEffect(()=>{if(!E||!o)return;if(!R){Q(new Set),X(new Set);return}const z=de.current+1;de.current=z,ee(!0),o(R).then(ae=>{if(de.current!==z)return;const ne=new Set,pe=new Set,ve=new Map;for(const $e of ae.matches){ne.add($e.node.value);const xe=[...$e.path,$e.node];for(let me=0;me<xe.length-1;me++){const ot=xe[me],st=xe[me+1];pe.add(ot.value);const ze=ot.value;ve.has(ze)||ve.set(ze,new Map),ve.get(ze).set(st.value,st)}if(xe.length>0){const me=xe[0];ve.has(Be)||ve.set(Be,new Map),ve.get(Be).set(me.value,me)}}Q(ne),X(pe),V($e=>{const xe=new Map($e);return ve.forEach((me,ot)=>{const st=xe.get(ot)??[],ze=new Map;st.forEach(Ge=>ze.set(Ge.value,Ge)),me.forEach((Ge,Ya)=>ze.set(Ya,Ge)),xe.set(ot,Array.from(ze.values()))}),xe})}).finally(()=>{de.current===z&&ee(!1)})},[R,E,o]);const D=w.useCallback(z=>{S(z),z||(O(""),F(""),U(null),Q(new Set),X(new Set))},[]),K=w.useCallback(z=>{const ae=z.value;B.has(ae)||H.has(ae)||(G(ne=>{const pe=new Set(ne);return pe.add(ae),pe}),k({parentId:z.value,search:""}).then(ne=>{V(pe=>{const ve=new Map(pe),$e=ve.get(ae)??[],xe=new Map;return $e.forEach(me=>xe.set(me.value,me)),ne.nodes.forEach(me=>xe.set(me.value,me)),ve.set(ae,Array.from(xe.values())),ve})}).finally(()=>{G(ne=>{const pe=new Set(ne);return pe.delete(ae),pe})}))},[B,k,H]),we=w.useCallback(z=>{W(ae=>{const ne=new Set(ae);return ne.has(z.value)?ne.delete(z.value):(ne.add(z.value),K(z)),ne})},[K]),Re=w.useCallback(z=>{U(z)},[]),Ee=w.useCallback(()=>{C&&(!se||se.hasChildren===!0)||(se&&s?.(se),D(!1))},[D,C,s,se]),Z=w.useCallback(z=>T.has(z)||I.has(z),[T,I]),le=w.useCallback(z=>{if(!R||o)return z;const ae=R.toLowerCase();return z.filter(ne=>ne.label.toLowerCase().includes(ae))},[R,o]),rt=(z,ae)=>{const ne=z.value,pe=B.get(ne),ve=Z(z.value),$e=H.has(ne),xe=se?.value===z.value,me=e?.value===z.value,ot=j.has(z.value),st=ve&&pe&&pe.length>0,ze=st?le(pe):[];return a.jsxs(w.Fragment,{children:[a.jsxs("div",{className:L(J.row,{[J.row_active]:xe||me,[J.row_match]:ot}),style:{paddingLeft:16+ae*20},onClick:()=>Re(z),children:[z.hasChildren?a.jsx("button",{type:"button",className:L(J.chevron,{[J.chevronExpanded]:ve}),onClick:Ge=>{Ge.stopPropagation(),we(z)},"aria-label":ve?"Свернуть":"Раскрыть",children:a.jsx(ct,{})}):a.jsx("span",{className:J.chevronPlaceholder}),a.jsx("span",{className:J.nodeLabel,children:y?y(z):z.label}),$e&&a.jsx(je,{size:"extraSmall",className:J.nodeSpinner})]}),st&&ze.map(Ge=>rt(Ge,ae+1))]},String(z.value))},Lr=B.get(Be)??[],Ar=le(Lr),Ft=H.has(Be),qa=e?b?b(e):e.label:t,Ga=!Ft&&!re&&Ar.length===0,Ua=w.useMemo(()=>re||Ft&&!!R,[re,Ft,R]),Za=!se||C&&se.hasChildren===!0;return a.jsxs("div",{className:L(J.wrapper,g),children:[l&&a.jsx(Sn,{htmlFor:"TreeDialogSelectInput",children:l}),a.jsxs("div",{id:"TreeDialogSelectInput",role:"button",tabIndex:x?-1:0,className:L(J.input,{[J.disabled]:x,[J.error]:h},_),onClick:()=>!x&&D(!0),onKeyDown:z=>{!x&&(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),D(!0))},children:[a.jsx("span",{className:L(J.selectedOption,{[J.placeholder]:!e}),children:qa}),a.jsxs("span",{className:J.actions,children:[c&&e&&a.jsx(ce,{variant:"text",className:J.clearButton,"aria-label":"Очистить выбранное значение",onClick:z=>{z.stopPropagation(),c()},children:a.jsx(Oe,{})}),a.jsx(ce,{variant:"link",className:J.selectButton,disabled:x,onClick:z=>{z.stopPropagation(),D(!0)},children:f})]})]}),a.jsx(Rn,{open:E,onOpenChange:D,children:a.jsxs(It,{className:J.dialogContent,children:[a.jsx(Dt,{className:J.dialogHeader,children:a.jsx($t,{className:J.dialogTitle,children:d})}),a.jsxs("div",{className:J.search,children:[a.jsx(pn,{className:J.searchIcon}),a.jsx("input",{className:J.searchInput,value:N,onChange:z=>O(z.target.value),placeholder:u,autoFocus:!0}),Ua&&a.jsx(je,{size:"extraSmall",className:J.searchSpinner})]}),a.jsx("div",{className:J.treeContainer,children:Ft&&Lr.length===0?a.jsx("div",{className:J.loadingState,children:a.jsx(je,{size:"small"})}):Ga?a.jsx("div",{className:J.emptyState,children:a.jsx(ft,{title:"Ничего не найдено",subtitle:"Попробуйте изменить поисковый запрос"})}):Ar.map(z=>rt(z,0))}),a.jsxs(Ln,{className:J.dialogFooter,children:[a.jsx(ce,{variant:"secondary",onClick:()=>D(!1),children:m}),a.jsx(ce,{variant:"primary",disabled:Za,onClick:Ee,children:v})]})]})}),h&&a.jsx(jn,{children:h})]})},ah="_wrapper_1wain_1",ih="_tabs_1wain_6",ch="_tabItem_1wain_16",lh="_active_1wain_46",dh="_before_1wain_61",uh="_after_1wain_62",fh="_panel_1wain_101",Ve={wrapper:ah,tabs:ih,tabItem:ch,active:lh,before:dh,after:uh,panel:fh};function ph(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 mh=i.memo(({className:e,items:t=[],children:n,value:r,onValueChange:o,activeTab:s,onClick:c,tabsClassName:l})=>{const d=w.useMemo(()=>ph(t),[t]),u=w.useMemo(()=>{if(r!==void 0){const f=d.findIndex(m=>m.key===r);return f>=0?f:0}return s??0},[r,s,d]);return a.jsxs("div",{className:L(Ve.wrapper,e),children:[a.jsx("div",{className:L(Ve.tabs,l),children:d.map((f,m)=>f.label&&a.jsxs("div",{className:L(Ve.tabItem,f.className,{[Ve.active]:u===m,[Ve.first]:m===0,[Ve.last]:m===d.length-1}),style:{zIndex:u===m?d.length:m===0?0:d.length-m},onClick:v=>{v.stopPropagation(),o?o(f.key):c?.(m)},children:[u===m&&m!==0&&a.jsx("span",{className:Ve.before}),f.label,u===m&&m!==d.length-1&&a.jsx("span",{className:Ve.after})]},m))}),a.jsx("div",{className:Ve.panel,children:n})]})}),hh="_wrapper_1xj0t_1",gh="_itemBlock_1xj0t_8",vh="_step_1xj0t_16",xh="_clickable_1xj0t_39",_h="_step_inactive_1xj0t_46",wh="_step_current_1xj0t_51",bh="_connector_1xj0t_55",yh="_connector_active_1xj0t_62",Ch="_label_1xj0t_66",kh="_label_active_1xj0t_74",Ae={wrapper:hh,itemBlock:gh,step:vh,clickable:xh,step_inactive:_h,step_current:wh,connector:bh,connector_active:yh,label:Ch,label_active:kh},Eh=({items:e,current:t,onChange:n,showCheckOnCompleted:r=!1,className:o})=>{const s=!!n;return a.jsx("div",{className:L(Ae.wrapper,o),role:"list",children:e.map((c,l)=>{const d=l<t,u=l===t,f=l<=t,m=l===e.length-1,v=r&&d,p=c.content??(v?a.jsx(sr,{}):l+1),x=a.jsx("button",{type:"button",className:L(Ae.step,{[Ae.step_inactive]:!f,[Ae.step_current]:u,[Ae.clickable]:s}),disabled:!s,onClick:()=>n?.(l),"aria-current":u?"step":void 0,"aria-label":typeof c.label=="string"?c.label:`Шаг ${l+1}`,children:p});return a.jsxs(w.Fragment,{children:[c.label?a.jsxs("div",{className:Ae.itemBlock,role:"listitem",children:[x,a.jsx("span",{className:L(Ae.label,{[Ae.label_active]:f}),children:c.label})]}):a.jsx("div",{role:"listitem",children:x}),!m&&a.jsx("span",{className:L(Ae.connector,{[Ae.connector_active]:l<t})})]},l)})})},jh="_container_1whkx_1",Sh="_tabs_1whkx_4",Nh="_line_1whkx_11",Rh="_tabItem_1whkx_21",Lh="_header_1whkx_34",Ah="_notificationChanges_1whkx_42",Ph="_tabs_hasAnimatedIndicator_1whkx_61",Mh="_active_1whkx_64",Ye={container:jh,tabs:Sh,line:Nh,tabItem:Rh,header:Lh,notificationChanges:Ah,tabs_hasAnimatedIndicator:Ph,active:Mh};function Oh(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 Th=i.memo(({items:e=[],value:t,onValueChange:n,activeTab:r,className:o,tabsClassName:s,changesIndex:c,badgeValue:l,sliderClassName:d,onClick:u})=>{const f=w.useMemo(()=>Oh(e),[e]),m=w.useMemo(()=>{if(t!==void 0){const g=f.findIndex(_=>_.key===t);return g>=0?g:0}return r!==void 0?r:0},[t,r,f]),v=w.useRef(null),p=w.useRef(null),[x,h]=w.useState({left:0,width:0});return w.useEffect(()=>{const g=v.current;if(!g)return;const _=()=>{const C={left:g.offsetLeft||0,width:g.clientWidth||0};h(k=>k.left===C.left&&k.width===C.width?k:C)},b=()=>{p.current!==null&&cancelAnimationFrame(p.current),p.current=requestAnimationFrame(()=>{p.current=null,_()})};b();const y=new ResizeObserver(()=>{b()});return y.observe(g),()=>{y.disconnect(),p.current!==null&&(cancelAnimationFrame(p.current),p.current=null)}},[m]),a.jsx("div",{className:L(Ye.container,o),children:a.jsxs("div",{className:L(Ye.tabs,Ye.tabs_hasAnimatedIndicator,s),children:[f.map((g,_)=>g.label&&a.jsxs("div",{ref:m===_?v:void 0,className:L(Ye.tabItem,g.className,{[Ye.active]:m===_}),onClick:b=>{b.stopPropagation(),n?n(g.key):u?.(_)},children:[g.header&&a.jsx("div",{className:Ye.header,children:g.header}),g.label,c===_&&a.jsx("div",{className:Ye.notificationChanges,children:l!=null?l>99?"99+":String(l):null})]},_)),a.jsx("div",{className:L(Ye.line,d),style:{left:x.left,width:x.width}})]})})}),Ih="_root_osjxx_1",Dh="_header_osjxx_11",$h="_headerText_osjxx_21",zh="_eyebrow_osjxx_27",Fh="_title_osjxx_35",Bh="_timeline_osjxx_42",Vh="_level_osjxx_47",Hh="_rail_osjxx_58",Wh="_railLine_osjxx_65",qh="_railLine_completed_osjxx_74",Gh="_railLine_toCurrent_osjxx_78",Uh="_marker_osjxx_82",Zh="_marker_completed_osjxx_101",Yh="_marker_current_osjxx_107",Kh="_body_osjxx_120",Xh="_levelHeader_osjxx_125",Qh="_levelName_osjxx_132",Jh="_levelName_current_osjxx_141",e0="_levelName_completed_osjxx_147",t0="_iconButton_osjxx_152",n0="_iconButton_danger_osjxx_176",r0="_stages_osjxx_182",o0="_stage_osjxx_182",s0="_stage_current_osjxx_199",a0="_stageHeader_osjxx_204",i0="_stageName_osjxx_212",c0="_stageActions_osjxx_220",l0="_approvers_osjxx_227",d0="_approver_osjxx_227",u0="_approverMain_osjxx_242",f0="_approverName_osjxx_249",p0="_approverName_pending_osjxx_255",m0="_approverName_rejected_osjxx_259",h0="_approverName_approved_osjxx_264",g0="_approverDate_osjxx_268",v0="_rejectReason_osjxx_273",x0="_empty_osjxx_283",_0="_addStage_osjxx_300",w0="_addLevel_osjxx_323",b0="_dialogContent_osjxx_327",y0="_dialogInput_osjxx_333",C0="_dialogActions_osjxx_348",k0="_approverPickerWrap_osjxx_354",E0="_approverPickerInput_osjxx_361",$={root:Ih,header:Dh,headerText:$h,eyebrow:zh,title:Fh,timeline:Bh,level:Vh,rail:Hh,railLine:Wh,railLine_completed:qh,railLine_toCurrent:Gh,marker:Uh,marker_completed:Zh,marker_current:Yh,body:Kh,levelHeader:Xh,levelName:Qh,levelName_current:Jh,levelName_completed:e0,iconButton:t0,iconButton_danger:n0,stages:r0,stage:o0,stage_current:s0,stageHeader:a0,stageName:i0,stageActions:c0,approvers:l0,approver:d0,approverMain:u0,approverName:f0,approverName_pending:p0,approverName_rejected:m0,approverName_approved:h0,approverDate:g0,rejectReason:v0,empty:x0,addStage:_0,addLevel:w0,dialogContent:b0,dialogInput:y0,dialogActions:C0,approverPickerWrap:k0,approverPickerInput:E0},en=({className:e})=>a.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",className:e,"aria-hidden":"true",children:a.jsx("path",{d:"M12 5v14M5 12h14"})});function yo({open:e,title:t,placeholder:n,onSubmit:r,onClose:o}){const[s,c]=w.useState("");w.useEffect(()=>{e||c("")},[e]);const l=()=>{const d=s.trim();d&&(r(d),o())};return a.jsx(Rn,{open:e,onOpenChange:d=>!d&&o(),children:a.jsxs(It,{className:"sm:rounded-2xl",children:[a.jsx(Dt,{children:a.jsx($t,{children:t})}),a.jsxs("div",{className:$.dialogContent,children:[a.jsx("input",{autoFocus:!0,className:$.dialogInput,placeholder:n,value:s,onChange:d=>c(d.target.value),onKeyDown:d=>{d.key==="Enter"&&l(),d.key==="Escape"&&o()}}),a.jsxs("div",{className:$.dialogActions,children:[a.jsx(ce,{variant:"secondary",onClick:o,children:"Отмена"}),a.jsx(ce,{variant:"primary",onClick:l,disabled:!s.trim(),children:"Добавить"})]})]})]})})}const j0=({levels:e,editable:t=!1,title:n="Маршрут согласования",eyebrow:r="Workflow",className:o,loadApprovers:s,onAddLevel:c,onRemoveLevel:l,onAddStage:d,onRemoveStage:u,onAddApprover:f,onRemoveApprover:m})=>{const[v,p]=w.useState(!1),[x,h]=w.useState(null);return a.jsxs("div",{className:L($.root,o),children:[a.jsx("div",{className:$.header,children:a.jsxs("div",{className:$.headerText,children:[a.jsx("span",{className:$.eyebrow,children:r}),a.jsx("span",{className:$.title,children:n})]})}),a.jsxs("div",{className:$.timeline,children:[e.map((g,_)=>{const b=e[_+1],y=L($.railLine,{[$.railLine_completed]:g.status==="completed"&&b?.status==="completed",[$.railLine_toCurrent]:g.status==="completed"&&b?.status==="current"});return a.jsxs("div",{className:$.level,children:[a.jsxs("div",{className:$.rail,children:[_<e.length-1&&a.jsx("span",{className:y}),a.jsx("span",{className:L($.marker,{[$.marker_completed]:g.status==="completed",[$.marker_current]:g.status==="current"}),children:g.status==="completed"&&a.jsx(sr,{})})]}),a.jsxs("div",{className:$.body,children:[a.jsxs("div",{className:$.levelHeader,children:[a.jsx("span",{className:L($.levelName,{[$.levelName_current]:g.status==="current",[$.levelName_completed]:g.status==="completed"}),children:g.name}),t&&a.jsxs(a.Fragment,{children:[a.jsx("button",{type:"button",className:$.iconButton,onClick:()=>h(g.id),"aria-label":"Добавить этап",title:"Добавить этап",children:a.jsx(en,{})}),a.jsx("button",{type:"button",className:L($.iconButton,$.iconButton_danger),onClick:()=>l?.(g.id),"aria-label":"Удалить уровень",title:"Удалить уровень",children:a.jsx(Oe,{})})]})]}),g.stages.length>0&&a.jsx("div",{className:$.stages,children:g.stages.map(C=>a.jsxs("div",{className:L($.stage,{[$.stage_current]:g.status==="current"}),children:[a.jsxs("div",{className:$.stageHeader,children:[a.jsx("span",{className:$.stageName,children:C.name}),a.jsx("div",{className:$.stageActions,children:t&&a.jsxs(a.Fragment,{children:[s?a.jsx(Rr,{value:null,placeholder:"",title:"Добавить согласующего",searchPlaceholder:"Поиск сотрудника",loadOptions:s,onChange:k=>f?.(g.id,C.id,k),className:$.approverPickerWrap,inputClassName:$.approverPickerInput,selectedOptionRender:()=>a.jsx(en,{})}):null,a.jsx("button",{type:"button",className:L($.iconButton,$.iconButton_danger),onClick:()=>u?.(g.id,C.id),"aria-label":"Удалить этап",title:"Удалить этап",children:a.jsx(Oe,{})})]})})]}),C.approvers.length===0?a.jsxs("span",{className:$.empty,children:[a.jsx(No,{}),"Согласующий не назначен"]}):a.jsx("div",{className:$.approvers,children:C.approvers.map(k=>{const E=k.status??"pending";return a.jsxs("div",{className:$.approver,children:[a.jsxs("div",{className:$.approverMain,children:[a.jsx("span",{className:L($.approverName,{[$.approverName_pending]:E==="pending",[$.approverName_approved]:E==="approved",[$.approverName_rejected]:E==="rejected"}),children:k.fullName}),k.actedAt&&E!=="pending"&&a.jsx("span",{className:$.approverDate,children:k.actedAt}),E==="rejected"&&k.rejectReason&&a.jsxs("span",{className:$.rejectReason,children:["Причина: ",k.rejectReason]})]}),t&&a.jsx("button",{type:"button",className:L($.iconButton,$.iconButton_danger),onClick:()=>m?.(g.id,C.id,k.id),"aria-label":"Удалить согласующего",title:"Удалить согласующего",children:a.jsx(Oe,{})})]},k.id)})})]},C.id))}),t&&a.jsxs("button",{type:"button",className:$.addStage,onClick:()=>h(g.id),children:[a.jsx(en,{})," Добавить этап"]})]})]},g.id)}),t&&a.jsxs("div",{className:$.level,children:[a.jsx("div",{className:$.rail,children:a.jsx("span",{className:L($.marker),"aria-hidden":!0})}),a.jsx("div",{className:$.body,children:a.jsxs("button",{type:"button",className:L($.addStage,$.addLevel),onClick:()=>p(!0),children:[a.jsx(en,{})," Добавить уровень"]})})]})]}),a.jsx(yo,{open:v,title:"Новый уровень",placeholder:"Название уровня",onClose:()=>p(!1),onSubmit:g=>c?.(g)}),a.jsx(yo,{open:x!==null,title:"Новый этап",placeholder:"Название этапа",onClose:()=>h(null),onSubmit:g=>x&&d?.(x,g)})]})},S0="_root_1426e_1",N0="_card_1426e_8",R0="_size_lg_1426e_15",L0="_section_1426e_19",A0="_sectionHeader_1426e_29",P0="_sectionTitle_1426e_36",M0="_sectionDescription_1426e_46",O0="_fields_1426e_54",T0="_fields_2col_1426e_62",I0="_field_1426e_54",D0="_field_span2_1426e_84",$0="_field_interactive_1426e_88",z0="_label_1426e_92",F0="_value_1426e_100",B0="_valueRow_1426e_113",V0="_copyTrigger_1426e_120",H0="_copyableValue_1426e_126",W0="_hint_1426e_131",q0="_empty_1426e_139",G0="_divider_1426e_143",U0="_loading_1426e_150",ie={root:S0,card:N0,size_lg:R0,section:L0,sectionHeader:A0,sectionTitle:P0,sectionDescription:M0,fields:O0,fields_2col:T0,field:I0,field_span2:D0,field_interactive:$0,label:z0,value:F0,valueRow:B0,copyTrigger:V0,copyableValue:H0,hint:W0,empty:q0,divider:G0,loading:U0},Z0=e=>e==null||e===""||typeof e=="number"&&Number.isNaN(e),Y0=e=>e==null?"":typeof e=="string"||typeof e=="number"?String(e):"",Fa=({label:e,value:t,children:n,hint:r,copyable:o,copyText:s,render:c,hidden:l,span:d,emptyPlaceholder:u="—",className:f})=>{const[m,v]=w.useState(!1),p=w.useCallback(()=>{const g=s??Y0(n??t);!g||typeof navigator>"u"||!navigator.clipboard||navigator.clipboard.writeText(g).then(()=>{v(!0),window.setTimeout(()=>v(!1),1400)})},[s,t,n]);if(l)return null;const x=n??t,h=Z0(x)?a.jsx("span",{className:ie.empty,children:u}):x;return c?a.jsx(a.Fragment,{children:c({label:e,value:h})}):a.jsxs("div",{className:L(ie.field,d===2&&ie.field_span2,o&&ie.field_interactive,f),children:[a.jsx("div",{className:ie.label,children:e}),a.jsxs("div",{className:ie.value,children:[a.jsx("div",{className:ie.valueRow,children:o?a.jsxs(a.Fragment,{children:[a.jsx("span",{className:ie.copyableValue,children:h}),a.jsx("span",{className:ie.copyTrigger,children:a.jsx(dr,{iconOnly:!0,copied:m,onClick:p,ariaLabel:"Скопировать значение"})})]}):h}),r&&a.jsx("div",{className:ie.hint,children:r})]})]})},Ba=({id:e,title:t,description:n,fields:r,children:o,columns:s=1,className:c})=>{const l=(r??[]).filter(d=>!d.hidden);return a.jsxs("section",{id:e,className:L(ie.section,c),children:[(t||n)&&a.jsxs("div",{className:ie.sectionHeader,children:[t&&a.jsx("div",{className:ie.sectionTitle,children:t}),n&&a.jsx("div",{className:ie.sectionDescription,children:n})]}),(l.length>0||o)&&a.jsxs("div",{className:L(ie.fields,s===2&&ie.fields_2col),children:[l.map((d,u)=>a.jsx(Fa,{...d},(typeof d.label=="string"?d.label:null)??`field-${u}`)),o]})]})},K0=({className:e})=>a.jsx("hr",{className:L(ie.divider,e)}),X0=({sections:e,children:t,variant:n="card",labelWidth:r="14rem",size:o="md",loading:s,emptyState:c,className:l,id:d})=>{const u=typeof r=="number"?`${r}px`:r,f=L(ie.root,n==="card"&&ie.card,o==="lg"&&ie.size_lg,l),m={"--cozy-detail-label-width":u};if(s)return a.jsx("div",{className:f,style:m,id:d,children:a.jsx("div",{className:ie.loading,children:a.jsx(je,{})})});const v=e&&e.length>0,p=w.Children.count(t)>0;return!v&&!p?a.jsx("div",{className:f,style:m,id:d,children:c??a.jsx(ft,{})}):a.jsxs("div",{className:f,style:m,id:d,children:[v&&e.map((x,h)=>a.jsx(Ba,{...x},x.id??`section-${h}`)),p&&w.Children.map(t,x=>(w.isValidElement(x),x))]})},zt=w.memo(X0);zt.Section=Ba;zt.Field=Fa;zt.Divider=K0;zt.displayName="DetailView";const Q0="_root_1z0dx_1",J0="_header_1z0dx_14",e2="_headerText_1z0dx_23",t2="_eyebrow_1z0dx_29",n2="_title_1z0dx_37",r2="_counter_1z0dx_44",o2="_list_1z0dx_53",s2="_loadOlderBtn_1z0dx_59",a2="_expandBtn_1z0dx_84",i2="_item_1z0dx_102",c2="_avatar_1z0dx_109",l2="_body_1z0dx_125",d2="_bubble_1z0dx_132",u2="_actions_1z0dx_144",f2="_bubble_deleted_1z0dx_148",p2="_meta_1z0dx_154",m2="_author_1z0dx_162",h2="_date_1z0dx_168",g2="_editedTag_1z0dx_173",v2="_text_1z0dx_179",x2="_recipients_1z0dx_187",_2="_attachments_1z0dx_203",w2="_attachment_1z0dx_203",b2="_attachmentName_1z0dx_227",y2="_attachmentSize_1z0dx_234",C2="_attachmentRemove_1z0dx_239",k2="_iconButton_1z0dx_278",E2="_iconButton_danger_1z0dx_302",j2="_children_1z0dx_309",S2="_form_1z0dx_320",N2="_form_root_1z0dx_330",R2="_form_inline_1z0dx_335",L2="_textarea_1z0dx_339",A2="_formRow_1z0dx_359",P2="_formTools_1z0dx_367",M2="_formActions_1z0dx_374",O2="_toolBtn_1z0dx_380",T2="_recipientsPickerWrap_1z0dx_403",I2="_recipientsPickerInput_1z0dx_410",D2="_recipientsChips_1z0dx_459",$2="_chip_1z0dx_465",z2="_empty_1z0dx_496",F2="_skeleton_1z0dx_500",B2="_skeletonLine_1z0dx_507",V2="_dialogContent_1z0dx_523",H2="_dialogActions_1z0dx_531",W2="_branchSpinner_1z0dx_537",q2="_hiddenInput_1z0dx_543",M={root:Q0,header:J0,headerText:e2,eyebrow:t2,title:n2,counter:r2,list:o2,loadOlderBtn:s2,expandBtn:a2,item:i2,avatar:c2,body:l2,bubble:d2,actions:u2,bubble_deleted:f2,meta:p2,author:m2,date:h2,editedTag:g2,text:v2,recipients:x2,attachments:_2,attachment:w2,attachmentName:b2,attachmentSize:y2,attachmentRemove:C2,iconButton:k2,iconButton_danger:E2,children:j2,form:S2,form_root:N2,form_inline:R2,textarea:L2,formRow:A2,formTools:P2,formActions:M2,toolBtn:O2,recipientsPickerWrap:T2,recipientsPickerInput:I2,recipientsChips:D2,chip:$2,empty:z2,skeleton:F2,skeletonLine:B2,dialogContent:V2,dialogActions:H2,branchSpinner:W2,hiddenInput:q2},G2=10,U2=10*6e4,jt="__root__",St=e=>e??jt;function Z2(e){return e.trim().split(/\s+/).slice(0,2).map(n=>n[0]?.toUpperCase()??"").join("")}function Va(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function Co(e){const t=new Date(e);if(Number.isNaN(t.getTime()))return e;const n=r=>String(r).padStart(2,"0");return`${n(t.getDate())}.${n(t.getMonth()+1)}.${String(t.getFullYear()).slice(2)} ${n(t.getHours())}:${n(t.getMinutes())}`}function tn(e){const t=new Map;for(const n of e)t.set(n.id,n);return Array.from(t.values()).sort((n,r)=>new Date(n.createdAt).getTime()-new Date(r.createdAt).getTime())}function Y2(e,t){const[n,r]=w.useState({}),o=w.useRef({}),s=w.useCallback((p,x)=>{const h=St(p);r(g=>{const _=g[h]??{items:[],total:0,loadedFrom:0,loading:!1,loaded:!1};return{...g,[h]:x(_)}})},[]),c=w.useCallback(async p=>{const x=St(p),h=(o.current[x]??0)+1;o.current[x]=h,s(p,y=>({...y,loading:!0}));const g=await t({parentId:p,skip:0,take:e});if(o.current[x]!==h)return;if(g.total<=e){s(p,()=>({items:tn(g.items),total:g.total,loadedFrom:0,loading:!1,loaded:!0}));return}const _=g.total-e,b=await t({parentId:p,skip:_,take:e});o.current[x]===h&&s(p,()=>({items:tn(b.items),total:b.total,loadedFrom:_,loading:!1,loaded:!0}))},[t,e,s]),l=w.useCallback(async p=>{const x=St(p),h=n[x];if(!h||h.loading||h.loadedFrom<=0)return;const g=Math.min(e,h.loadedFrom),_=h.loadedFrom-g,b=(o.current[x]??0)+1;o.current[x]=b,s(p,C=>({...C,loading:!0}));const y=await t({parentId:p,skip:_,take:g});o.current[x]===b&&s(p,C=>({...C,items:tn([...y.items,...C.items]),total:y.total,loadedFrom:_,loading:!1}))},[n,t,e,s]),d=w.useCallback((p,x)=>{s(p,h=>{const g=tn([...h.items,x]);return{...h,items:g,total:h.total+1,loaded:!0}})},[s]),u=w.useCallback((p,x,h)=>{s(p,g=>({...g,items:g.items.map(_=>_.id===x?h(_):_)}))},[s]),f=w.useCallback((p,x)=>{s(p,h=>({...h,items:h.items.filter(g=>g.id!==x),total:Math.max(0,h.total-1)}))},[s]),m=w.useCallback(p=>{const x=St(p);o.current[x]=(o.current[x]??0)+1,r(h=>{const g={...h};return delete g[x],g})},[]),v=w.useCallback(()=>{o.current={},r({})},[]);return{branches:n,loadInitial:c,loadOlder:l,appendLocal:d,replaceLocal:u,removeLocal:f,resetBranch:m,resetAll:v}}function Ha({open:e,title:t,message:n,confirmText:r="Удалить",cancelText:o="Отмена",danger:s=!0,onConfirm:c,onClose:l}){return a.jsx(Rn,{open:e,onOpenChange:d=>!d&&l(),children:a.jsxs(It,{className:"sm:rounded-2xl",children:[a.jsx(Dt,{children:a.jsx($t,{children:t})}),a.jsx("div",{className:M.dialogContent,children:n}),a.jsxs(Ln,{className:M.dialogActions,children:[a.jsx(ce,{variant:"secondary",onClick:l,children:o}),a.jsx(ce,{variant:s?"danger":"primary",onClick:c,children:r})]})]})})}function or({mode:e,initialText:t="",initialAttachments:n=[],initialRecipients:r=[],placeholder:o,submitLabel:s,recipientsSource:c,onUploadAttachment:l,onDeleteAttachment:d,onSubmit:u,onCancel:f,submitting:m}){const[v,p]=w.useState(t),[x,h]=w.useState(n),[g,_]=w.useState(r),[b,y]=w.useState(!1),[C,k]=w.useState(null),E=w.useRef(null),S=async R=>{if(!(!R||!l)){y(!0);try{for(const F of Array.from(R)){const B=await l(F);h(V=>[...V,B])}}finally{y(!1),E.current&&(E.current.value="")}}},N=async()=>{if(!C)return;const R=C;if(k(null),d)try{await d(R)}catch{}h(F=>F.filter(B=>B.id!==R.id))},O=async()=>{const R=v.trim();R&&(await u({text:R,attachments:x,recipients:g}),e!=="edit"&&(p(""),h([]),_([])))};return a.jsxs("div",{className:L(M.form,{[M.form_root]:e==="root",[M.form_inline]:e!=="root"}),children:[a.jsx("textarea",{className:M.textarea,placeholder:o??"Напишите комментарий...",value:v,onChange:R=>p(R.target.value)}),g.length>0&&a.jsx("div",{className:M.recipientsChips,children:g.map(R=>a.jsxs("span",{className:M.chip,children:[R.name,a.jsx("button",{type:"button","aria-label":"Удалить получателя",onClick:()=>_(F=>F.filter(B=>B.id!==R.id)),children:a.jsx(Oe,{})})]},R.id))}),x.length>0&&a.jsx("div",{className:M.attachments,children:x.map(R=>a.jsxs("span",{className:M.attachment,children:[a.jsx("span",{className:M.attachmentName,children:R.name}),a.jsx("span",{className:M.attachmentSize,children:Va(R.size)}),a.jsx("button",{type:"button",className:M.attachmentRemove,"aria-label":"Удалить вложение",onClick:()=>k(R),children:a.jsx(Oe,{})})]},R.id))}),a.jsxs("div",{className:M.formRow,children:[a.jsxs("div",{className:M.formTools,children:[l&&a.jsxs(a.Fragment,{children:[a.jsxs("button",{type:"button",className:M.toolBtn,onClick:()=>E.current?.click(),disabled:b,children:[a.jsx(Oo,{style:{transform:"rotate(180deg)"}}),b?"Загрузка...":"Прикрепить файл"]}),a.jsx("input",{ref:E,type:"file",multiple:!0,className:M.hiddenInput,onChange:R=>S(R.target.files)})]}),c&&a.jsx(Rr,{value:null,placeholder:g.length>0?`Ознакомители (${g.length})`:"Ознакомители",title:"Добавить ознакомителя",searchPlaceholder:"Поиск сотрудника",selectButtonText:"",loadOptions:c,onChange:R=>{const F=R.meta,B=F||{id:String(R.value),name:String(R.label)};_(V=>V.some(H=>H.id===B.id)?V:[...V,B])},className:M.recipientsPickerWrap,inputClassName:M.recipientsPickerInput})]}),a.jsxs("div",{className:M.formActions,children:[f&&a.jsx(ce,{variant:"secondary",size:"small",onClick:f,children:"Отмена"}),a.jsx(ce,{variant:"primary",size:"small",onClick:O,loading:m,disabled:!v.trim()||m,children:s??(e==="edit"?"Сохранить":"Отправить")})]})]}),a.jsx(Ha,{open:!!C,title:"Удалить вложение?",message:`«${C?.name??""}» будет удалено без возможности восстановления.`,onConfirm:N,onClose:()=>k(null)})]})}function Wa({comment:e,ctx:t}){const[n,r]=w.useState(!1),[o,s]=w.useState(!1),[c,l]=w.useState(!1),[d,u]=w.useState(!1),[f,m]=w.useState(!1),v=St(e.id),p=t.branches[v],x=e.author.id===t.currentUser.id,h=new Date(e.createdAt).getTime(),g=Number.isNaN(h)?!1:Date.now()-h<t.editWindowMs;t.nowTick;const _=!e.deleted&&(e.permissions?.canEdit??(x&&g)),b=!e.deleted&&(e.permissions?.canDelete??x),y=!e.deleted&&(e.permissions?.canReply??t.permissions.canReply??!0),C=async()=>{const S=!n;r(S),S&&!p?.loaded&&await t.loadInitial(e.id)},k=async S=>{m(!0);try{p?.loaded,await t.createReply(e.id,{parentId:e.id,text:S.text,attachments:S.attachments,recipients:S.recipients}),r(!0),s(!1)}finally{m(!1)}},E=async S=>{m(!0);try{await t.editComment(e,{id:e.id,text:S.text,attachments:S.attachments,recipients:S.recipients}),l(!1)}finally{m(!1)}};return a.jsxs("div",{className:M.item,children:[a.jsx("div",{className:M.avatar,"aria-hidden":!0,children:e.author.avatarUrl?a.jsx("img",{src:e.author.avatarUrl,alt:"",style:{width:"100%",height:"100%",borderRadius:"50%",objectFit:"cover"}}):Z2(e.author.name)}),a.jsxs("div",{className:M.body,children:[c?a.jsx(or,{mode:"edit",initialText:e.text,initialAttachments:e.attachments??[],initialRecipients:e.recipients??[],recipientsSource:t.recipientsSource,onUploadAttachment:t.onUploadAttachment,onDeleteAttachment:t.onDeleteAttachment,onSubmit:E,onCancel:()=>l(!1),submitting:f}):a.jsxs("div",{className:L(M.bubble,{[M.bubble_deleted]:e.deleted}),children:[a.jsxs("div",{className:M.meta,children:[a.jsx("span",{className:M.author,children:e.author.name}),a.jsx("span",{className:M.date,children:Co(e.createdAt)}),e.editedAt&&!e.deleted&&a.jsxs("span",{className:M.editedTag,children:["(изм. ",Co(e.editedAt),")"]})]}),a.jsx("div",{className:M.text,children:e.deleted?"Комментарий удалён":e.text}),!e.deleted&&e.attachments&&e.attachments.length>0&&a.jsx("div",{className:M.attachments,children:e.attachments.map(S=>a.jsxs("span",{className:M.attachment,children:[a.jsx("span",{className:M.attachmentName,onClick:()=>t.onDownloadAttachment?.(S),title:S.name,children:S.name}),a.jsx("span",{className:M.attachmentSize,children:Va(S.size)})]},S.id))}),!e.deleted&&e.recipients&&e.recipients.length>0&&a.jsxs("div",{className:M.recipients,title:e.recipients.map(S=>S.name).join(", "),children:[a.jsx(Ro,{}),"Уведомлены: ",e.recipients.map(S=>S.name).join(", ")]}),!e.deleted&&a.jsxs("div",{className:M.actions,children:[y&&a.jsx("button",{type:"button",className:M.iconButton,onClick:()=>s(S=>!S),title:"Ответить","aria-label":"Ответить",children:a.jsx(jo,{})}),_&&a.jsx("button",{type:"button",className:M.iconButton,onClick:()=>l(!0),title:"Редактировать","aria-label":"Редактировать",children:a.jsx(Po,{})}),b&&a.jsx("button",{type:"button",className:L(M.iconButton,M.iconButton_danger),onClick:()=>u(!0),title:"Удалить","aria-label":"Удалить",children:a.jsx(So,{})})]})]}),e.repliesCount>0&&a.jsxs("button",{type:"button",className:M.expandBtn,onClick:C,children:[a.jsx(ct,{style:{width:12,height:12,transform:n?"rotate(180deg)":"rotate(0)",transition:"transform 0.15s ease"}}),n?"Скрыть ответы":`Показать ответы (${e.repliesCount})`,p?.loading&&a.jsx("span",{className:M.branchSpinner,children:a.jsx(je,{size:"extraSmall"})})]}),o&&a.jsx(or,{mode:"reply",placeholder:`Ответить ${e.author.name}…`,recipientsSource:t.recipientsSource,onUploadAttachment:t.onUploadAttachment,onDeleteAttachment:t.onDeleteAttachment,onSubmit:k,onCancel:()=>s(!1),submitting:f}),n&&p&&a.jsxs("div",{className:M.children,children:[p.loadedFrom>0&&a.jsxs("button",{type:"button",className:M.loadOlderBtn,onClick:()=>t.loadOlder(e.id),disabled:p.loading,children:[p.loading?a.jsx(je,{size:"extraSmall"}):a.jsx(ct,{style:{transform:"rotate(180deg)",width:12,height:12}}),"Показать предыдущие (",p.loadedFrom,")"]}),p.items.map(S=>a.jsx(Wa,{comment:S,ctx:t},S.id))]})]}),a.jsx(Ha,{open:d,title:"Удалить комментарий?",message:"Это действие нельзя отменить.",onConfirm:async()=>{u(!1),await t.deleteComment(e)},onClose:()=>u(!1)})]})}const K2=w.forwardRef(function({loadComments:t,currentUser:n,recipientsSource:r,onCreate:o,onEdit:s,onDelete:c,onUploadAttachment:l,onDownloadAttachment:d,onDeleteAttachment:u,permissions:f={canCreate:!0,canReply:!0},editWindowMs:m=U2,pageSize:v=G2,title:p="Комментарии",eyebrow:x="Discussion",className:h},g){const{branches:_,loadInitial:b,loadOlder:y,appendLocal:C,replaceLocal:k,removeLocal:E,resetBranch:S,resetAll:N}=Y2(v,t),[O,R]=w.useState(!1),[F,B]=w.useState(0);w.useEffect(()=>{const j=window.setInterval(()=>B(Q=>Q+1),3e4);return()=>window.clearInterval(j)},[]),w.useEffect(()=>{_[jt]||b(null)},[]),w.useImperativeHandle(g,()=>({refresh:j=>{j===void 0?(N(),b(null)):(S(j),b(j))}}),[b,N,S]);const V=w.useCallback(async(j,Q)=>{if(!o)return;const re=await o(Q);if(C(j,re),j!==null){for(const ee of Object.keys(_))if(_[ee].items.some(U=>U.id===j)){k(ee===jt?null:ee,j,U=>({...U,repliesCount:U.repliesCount+1}));break}}},[C,_,o,k]),H=w.useCallback(async(j,Q)=>{if(!s)return;const re=await s(Q);k(j.parentId,j.id,()=>re)},[s,k]),G=w.useCallback(async j=>{if(c){if(await c(j.id),j.repliesCount>0)k(j.parentId,j.id,Q=>({...Q,deleted:!0,text:"",attachments:[],recipients:[]}));else if(E(j.parentId,j.id),j.parentId!==null){for(const Q of Object.keys(_))if(_[Q].items.some(ee=>ee.id===j.parentId)){k(Q===jt?null:Q,j.parentId,ee=>({...ee,repliesCount:Math.max(0,ee.repliesCount-1)}));break}}}},[_,c,E,k]),T=_[jt],W=w.useMemo(()=>({currentUser:n,permissions:f,editWindowMs:m,recipientsSource:r,onUploadAttachment:l,onDeleteAttachment:u,onDownloadAttachment:d,branches:_,loadInitial:b,loadOlder:y,createReply:V,editComment:H,deleteComment:G,nowTick:F}),[_,V,n,G,H,m,b,y,F,u,d,l,f,r]),I=async j=>{R(!0);try{await V(null,{parentId:null,text:j.text,attachments:j.attachments,recipients:j.recipients})}finally{R(!1)}},X=f.canCreate??!0;return a.jsxs("div",{className:L(M.root,h),children:[a.jsxs("div",{className:M.header,children:[a.jsxs("div",{className:M.headerText,children:[a.jsx("span",{className:M.eyebrow,children:x}),a.jsx("span",{className:M.title,children:p})]}),T&&a.jsx("span",{className:M.counter,children:T.total})]}),X&&o&&a.jsx(or,{mode:"root",placeholder:"Поделитесь мнением или задайте вопрос...",submitLabel:"Опубликовать",recipientsSource:r,onUploadAttachment:l,onDeleteAttachment:u,onSubmit:I,submitting:O}),!T&&a.jsx("div",{className:M.skeleton,children:[0,1,2].map(j=>a.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[a.jsx("div",{className:M.skeletonLine,style:{width:"30%"}}),a.jsx("div",{className:M.skeletonLine,style:{width:"85%"}}),a.jsx("div",{className:M.skeletonLine,style:{width:"60%"}})]},j))}),T&&T.loadedFrom>0&&a.jsxs("button",{type:"button",className:M.loadOlderBtn,onClick:()=>y(null),disabled:T.loading,children:[T.loading?a.jsx(je,{size:"extraSmall"}):a.jsx(ct,{style:{transform:"rotate(180deg)",width:12,height:12}}),"Показать предыдущие (",T.loadedFrom,")"]}),T&&T.items.length===0&&!T.loading&&a.jsx("div",{className:M.empty,children:a.jsx(ft,{title:"Пока нет комментариев",subtitle:"Будьте первым, кто напишет."})}),T&&T.items.length>0&&a.jsx("div",{className:M.list,children:T.items.map(j=>a.jsx(Wa,{comment:j,ctx:W},j.id))})]})});exports.ApprovalRoute=j0;exports.ArrowDownBlueIcon=wi;exports.ArrowDownIcon=ct;exports.ArrowRightIcon=_i;exports.BaseBlock=zi;exports.Button=ce;exports.CameraIcon=ji;exports.CancelIcon=So;exports.Card=Jc;exports.Carousel=hl;exports.ChartIcon=pi;exports.ChatIcon=jo;exports.CheckGreen=yi;exports.ClockFilledIcon=Ri;exports.ClockIcon=Xa;exports.CloseRed=bi;exports.CollapsableBlock=_f;exports.Collapse=ha;exports.Colors=To;exports.CommentFeed=K2;exports.CopyIcon=Lo;exports.CopyTextTrigger=dr;exports.CrossIcon=Oe;exports.DetailView=zt;exports.DialogSelect=Rr;exports.DoneIcon=sr;exports.DownloadIcon=Oo;exports.EditIcon=Po;exports.EmptyComponent=ft;exports.EmptyIcon=Mo;exports.EnvelopIcon=Ro;exports.FeedbackIcon=mi;exports.FileReloadIcon=Qa;exports.FileSync=xi;exports.FilterIcon=Si;exports.FolderEditIcon=Ja;exports.GraduateIcon=ei;exports.GridIcon=ti;exports.HeartIcon=ni;exports.HelpIcon=ri;exports.HistoryBlue=Ci;exports.HomeIcon=Ka;exports.InfoIcon=Ao;exports.InputCaption=jn;exports.IslandIcon=Pi;exports.Label=Sn;exports.ListIcon=oi;exports.MarketIcon=si;exports.MegaphoneIcon=gi;exports.MessageIcon=ki;exports.NotebookIcon=fi;exports.PhoneIcon=Ei;exports.PlaneIcon=ai;exports.Popover=nf;exports.ProfileIcon=ii;exports.ProfileSearchIcon=ci;exports.RadioGroupButton=Kc;exports.ReloadIcon=Ni;exports.SchoolIcon=Ai;exports.SearchIcon=pn;exports.Select=Ip;exports.SettingsIcon=Li;exports.Spinner=je;exports.Stepper=Eh;exports.Tabs=Th;exports.TabsRounded=mh;exports.Tag=_a;exports.TaskListIcon=hi;exports.TimesheetIcon=ui;exports.TooltipDark=lr;exports.TooltipLight=qs;exports.TreeDialogSelect=sh;exports.TrendUpIcon=li;exports.UserSwitchIcon=vi;exports.WalletIcon=di;exports.WarnIcon=No;exports.useDropdownPosition=Gc;exports.useMeasureElement=ts;
|
|
46
46
|
//# sourceMappingURL=ui-library.cjs.js.map
|