@andreyfedkovich/cozy-ui 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +131 -2
- package/dist-lib/index.d.ts +154 -3
- 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 +7643 -3574
- 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 _=require("react"),l=require("react/jsx-runtime"),St=require("react-dom");function vo(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=vo(_),xo=vo(St),Ia=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"})),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",{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"})),$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_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"})))),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_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"})))),Ba=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"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"})),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:"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"})),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_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"})))),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_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"})))),Wa=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"})),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("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"})),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("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"})))),Ua=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"})))),Za=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("g",{clipPath:"url(#clip0_27648_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"})))),Ya=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"})))),Xa=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"})),Ka=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"})),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:"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"})),Ja=e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},a.createElement("path",{d:"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"})),ei=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"})),ti=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"})),ni=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"})),ri=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"})),oi=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"})),si=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"})),on=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"})),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("path",{d:"M19 12.5H6M19 12.5L14.3333 8M19 12.5L14.3333 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),sn=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"})),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:"M17.2929 9.29289C17.6834 8.90237 18.3166 8.90237 18.7071 9.29289C19.0976 9.68342 19.0976 10.3166 18.7071 10.7071L12.7071 16.7071C12.3285 17.0857 11.7189 17.0989 11.3243 16.7372L5.32428 11.2372C4.91716 10.864 4.88965 10.2314 5.26285 9.82427C5.63604 9.41715 6.26861 9.38965 6.67573 9.76284L11.9699 14.6159L17.2929 9.29289Z",fill:"rgba(0, 109, 240, 0.8)"})),Ze=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M13 3L8 8M3 13L8 8M8 8L3 3L13 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),ci=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"})),li=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"})),di=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"})),Qn=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"})),ui=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"})),wo=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})),fi=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("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"})),pi=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"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"})),mi=e=>a.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("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"})),hi=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"})),bo=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"})),_o=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"})),gi=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"})),vi=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"})),xi=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"})),wi=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"})),yo=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"})),bi=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)"})),_i=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"})),yi=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"})),Ci=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 Co=(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))(Co||{});function ki(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var En={exports:{}};var jr;function Ei(){return jr||(jr=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})()})(En)),En.exports}var ji=Ei();const R=ki(ji),Si="_block_tkxaf_1",Ni="_subtitle_tkxaf_6",Ri="_title_tkxaf_13",jn={block:Si,subtitle:Ni,title:Ri},Li=({id:e,title:t,subtitle:n,children:r,className:o})=>l.jsxs("div",{className:R(jn.block,o),id:e,children:[t&&typeof t=="string"?l.jsx("div",{className:jn.title,children:t}):t,n&&l.jsx("div",{className:jn.subtitle,children:n}),r]});function Sr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Nt(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Sr(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():Sr(e[o],null)}}}}function Ce(...e){return a.useCallback(Nt(...e),e)}var Ai=Symbol.for("react.lazy"),Kt=a[" use ".trim().toString()];function Pi(e){return typeof e=="object"&&e!==null&&"then"in e}function ko(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ai&&"_payload"in e&&Pi(e._payload)}function Eo(e){const t=Oi(e),n=a.forwardRef((r,o)=>{let{children:s,...i}=r;ko(s)&&typeof Kt=="function"&&(s=Kt(s._payload));const c=a.Children.toArray(s),d=c.find(Ii);if(d){const u=d.props.children,f=c.map(p=>p===d?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:p);return l.jsx(t,{...i,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,f):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var Mi=Eo("Slot");function Oi(e){const t=a.forwardRef((n,r)=>{let{children:o,...s}=n;if(ko(o)&&typeof Kt=="function"&&(o=Kt(o._payload)),a.isValidElement(o)){const i=$i(o),c=Di(s,o.props);return o.type!==a.Fragment&&(c.ref=r?Nt(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 Ti=Symbol("radix.slottable");function Ii(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ti}function Di(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 d=s(...c);return o(...c),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function $i(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 jo(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=jo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function So(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=jo(e))&&(r&&(r+=" "),r+=t);return r}const Nr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Rr=So,No=(e,t)=>n=>{var r;if(t?.variants==null)return Rr(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const f=n?.[u],p=s?.[u];if(f===null)return null;const g=Nr(f)||Nr(p);return o[u][g]}),c=n&&Object.entries(n).reduce((u,f)=>{let[p,g]=f;return g===void 0||(u[p]=g),u},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:p,className:g,...m}=f;return Object.entries(m).every(x=>{let[h,v]=x;return Array.isArray(v)?v.includes({...s,...c}[h]):{...s,...c}[h]===v})?[...u,p,g]:u},[]);return Rr(e,i,d,n?.class,n?.className)},Fi=(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},Bi=(e,t)=>({classGroupId:e,validator:t}),Ro=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Qt="-",Lr=[],zi="arbitrary..",Vi=e=>{const t=Wi(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Hi(i);const c=i.split(Qt),d=c[0]===""&&c.length>1?1:0;return Lo(c,d,t)},getConflictingClassGroupIds:(i,c)=>{if(c){const d=r[i],u=n[i];return d?u?Fi(u,d):d:u||Lr}return n[i]||Lr}}},Lo=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const u=Lo(e,t+1,s);if(u)return u}const i=n.validators;if(i===null)return;const c=t===0?e.join(Qt):e.slice(t).join(Qt),d=i.length;for(let u=0;u<d;u++){const f=i[u];if(f.validator(c))return f.classGroupId}},Hi=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?zi+r:void 0})(),Wi=e=>{const{theme:t,classGroups:n}=e;return qi(n,t)},qi=(e,t)=>{const n=Ro();for(const r in e){const o=e[r];Jn(o,n,r,t)}return n},Jn=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const i=e[s];Gi(i,t,n,r)}},Gi=(e,t,n,r)=>{if(typeof e=="string"){Ui(e,t,n);return}if(typeof e=="function"){Zi(e,t,n,r);return}Yi(e,t,n,r)},Ui=(e,t,n)=>{const r=e===""?t:Ao(t,e);r.classGroupId=n},Zi=(e,t,n,r)=>{if(Xi(e)){Jn(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Bi(n,e))},Yi=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let i=0;i<s;i++){const[c,d]=o[i];Jn(d,Ao(t,c),n,r)}},Ao=(e,t)=>{let n=e;const r=t.split(Qt),o=r.length;for(let s=0;s<o;s++){const i=r[s];let c=n.nextPart.get(i);c||(c=Ro(),n.nextPart.set(i,c)),n=c}return n},Xi=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ki=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)}}},Vn="!",Ar=":",Qi=[],Pr=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Ji=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let i=0,c=0,d=0,u;const f=o.length;for(let h=0;h<f;h++){const v=o[h];if(i===0&&c===0){if(v===Ar){s.push(o.slice(d,h)),d=h+1;continue}if(v==="/"){u=h;continue}}v==="["?i++:v==="]"?i--:v==="("?c++:v===")"&&c--}const p=s.length===0?o:o.slice(d);let g=p,m=!1;p.endsWith(Vn)?(g=p.slice(0,-1),m=!0):p.startsWith(Vn)&&(g=p.slice(1),m=!0);const x=u&&u>d?u-d:void 0;return Pr(s,m,g,x)};if(t){const o=t+Ar,s=r;r=i=>i.startsWith(o)?s(i.slice(o.length)):Pr(Qi,!1,i,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},ec=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]==="[",d=t.has(i);c||d?(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}},tc=e=>({cache:Ki(e.cacheSize),parseClassName:Ji(e),sortModifiers:ec(e),...Vi(e)}),nc=/\s+/,rc=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],c=e.trim().split(nc);let d="";for(let u=c.length-1;u>=0;u-=1){const f=c[u],{isExternal:p,modifiers:g,hasImportantModifier:m,baseClassName:x,maybePostfixModifierPosition:h}=n(f);if(p){d=f+(d.length>0?" "+d:d);continue}let v=!!h,w=r(v?x.substring(0,h):x);if(!w){if(!v){d=f+(d.length>0?" "+d:d);continue}if(w=r(x),!w){d=f+(d.length>0?" "+d:d);continue}v=!1}const b=g.length===0?"":g.length===1?g[0]:s(g).join(":"),y=m?b+Vn:b,C=y+w;if(i.indexOf(C)>-1)continue;i.push(C);const E=o(w,v);for(let k=0;k<E.length;++k){const S=E[k];i.push(y+S)}d=f+(d.length>0?" "+d:d)}return d},oc=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=Po(n))&&(o&&(o+=" "),o+=r);return o},Po=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Po(e[r]))&&(n&&(n+=" "),n+=t);return n},sc=(e,...t)=>{let n,r,o,s;const i=d=>{const u=t.reduce((f,p)=>p(f),e());return n=tc(u),r=n.cache.get,o=n.cache.set,s=c,c(d)},c=d=>{const u=r(d);if(u)return u;const f=rc(d,n);return o(d,f),f};return s=i,(...d)=>s(oc(...d))},ac=[],ie=e=>{const t=n=>n[e]||ac;return t.isThemeGetter=!0,t},Mo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Oo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ic=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,cc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lc=/\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$/,dc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,uc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,We=e=>ic.test(e),H=e=>!!e&&!Number.isNaN(Number(e)),qe=e=>!!e&&Number.isInteger(Number(e)),Sn=e=>e.endsWith("%")&&H(e.slice(0,-1)),De=e=>cc.test(e),To=()=>!0,pc=e=>lc.test(e)&&!dc.test(e),er=()=>!1,mc=e=>uc.test(e),hc=e=>fc.test(e),gc=e=>!L(e)&&!A(e),vc=e=>Je(e,$o,er),L=e=>Mo.test(e),st=e=>Je(e,Fo,pc),Mr=e=>Je(e,Ec,H),xc=e=>Je(e,zo,To),wc=e=>Je(e,Bo,er),Or=e=>Je(e,Io,er),bc=e=>Je(e,Do,hc),Ot=e=>Je(e,Vo,mc),A=e=>Oo.test(e),Ct=e=>lt(e,Fo),_c=e=>lt(e,Bo),Tr=e=>lt(e,Io),yc=e=>lt(e,$o),Cc=e=>lt(e,Do),Tt=e=>lt(e,Vo,!0),kc=e=>lt(e,zo,!0),Je=(e,t,n)=>{const r=Mo.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},lt=(e,t,n=!1)=>{const r=Oo.exec(e);return r?r[1]?t(r[1]):n:!1},Io=e=>e==="position"||e==="percentage",Do=e=>e==="image"||e==="url",$o=e=>e==="length"||e==="size"||e==="bg-size",Fo=e=>e==="length",Ec=e=>e==="number",Bo=e=>e==="family-name",zo=e=>e==="number"||e==="weight",Vo=e=>e==="shadow",jc=()=>{const e=ie("color"),t=ie("font"),n=ie("text"),r=ie("font-weight"),o=ie("tracking"),s=ie("leading"),i=ie("breakpoint"),c=ie("container"),d=ie("spacing"),u=ie("radius"),f=ie("shadow"),p=ie("inset-shadow"),g=ie("text-shadow"),m=ie("drop-shadow"),x=ie("blur"),h=ie("perspective"),v=ie("aspect"),w=ie("ease"),b=ie("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"],E=()=>[...C(),A,L],k=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],j=()=>[A,L,d],I=()=>[We,"full","auto",...j()],D=()=>[qe,"none","subgrid",A,L],F=()=>["auto",{span:["full",qe,A,L]},qe,A,L],W=()=>[qe,"auto",A,L],B=()=>["auto","min","max","fr",A,L],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...j()],V=()=>[We,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],O=()=>[We,"screen","full","dvw","lvw","svw","min","max","fit",...j()],Y=()=>[We,"screen","full","lh","dvh","lvh","svh","min","max","fit",...j()],N=()=>[e,A,L],pe=()=>[...C(),Tr,Or,{position:[A,L]}],oe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],le=()=>["auto","cover","contain",yc,vc,{size:[A,L]}],te=()=>[Sn,Ct,st],X=()=>["","none","full",u,A,L],Q=()=>["",H,Ct,st],ae=()=>["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=()=>[H,Sn,Tr,Or],we=()=>["","none",x,A,L],Se=()=>["none",H,A,L],ke=()=>["none",H,A,L],q=()=>[H,A,L],se=()=>[We,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[De],breakpoint:[De],color:[To],container:[De],"drop-shadow":[De],ease:["in","out","in-out"],font:[gc],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[De],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[De],shadow:[De],spacing:["px",H],text:[De],"text-shadow":[De],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",We,L,A,v]}],container:["container"],columns:[{columns:[H,L,A,c]}],"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:E()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{"inset-s":I(),start:I()}],end:[{"inset-e":I(),end:I()}],"inset-bs":[{"inset-bs":I()}],"inset-be":[{"inset-be":I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[qe,"auto",A,L]}],basis:[{basis:[We,"full","auto",c,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[H,We,"auto","initial","none",L]}],grow:[{grow:["",H,A,L]}],shrink:[{shrink:["",H,A,L]}],order:[{order:[qe,"first","last","none",A,L]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"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:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pbs:[{pbs:j()}],pbe:[{pbe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],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":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],"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",...V()]}],"min-w":[{"min-w":[c,"screen","none",...V()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[i]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",n,Ct,st]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,kc,xc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Sn,L]}],"font-family":[{font:[_c,wc,t]}],"font-features":[{"font-features":[L]}],"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,A,L]}],"line-clamp":[{"line-clamp":[H,"none",A,Mr]}],leading:[{leading:[s,...j()]}],"list-image":[{"list-image":["none",A,L]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",A,L]}],"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:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[H,"from-font","auto",A,st]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[H,"auto",A,L]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",A,L]}],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",A,L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:pe()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:le()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},qe,A,L],radial:["",A,L],conic:[qe,A,L]},Cc,bc]}],"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:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"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:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[H,A,L]}],"outline-w":[{outline:["",H,Ct,st]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",f,Tt,Ot]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",p,Tt,Ot]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[H,st]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",g,Tt,Ot]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[H,A,L]}],"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":[H]}],"mask-image-linear-from-pos":[{"mask-linear-from":Z()}],"mask-image-linear-to-pos":[{"mask-linear-to":Z()}],"mask-image-linear-from-color":[{"mask-linear-from":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":[A,L]}],"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":[H]}],"mask-image-conic-from-pos":[{"mask-conic-from":Z()}],"mask-image-conic-to-pos":[{"mask-conic-to":Z()}],"mask-image-conic-from-color":[{"mask-conic-from":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:pe()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:le()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",A,L]}],filter:[{filter:["","none",A,L]}],blur:[{blur:we()}],brightness:[{brightness:[H,A,L]}],contrast:[{contrast:[H,A,L]}],"drop-shadow":[{"drop-shadow":["","none",m,Tt,Ot]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",H,A,L]}],"hue-rotate":[{"hue-rotate":[H,A,L]}],invert:[{invert:["",H,A,L]}],saturate:[{saturate:[H,A,L]}],sepia:[{sepia:["",H,A,L]}],"backdrop-filter":[{"backdrop-filter":["","none",A,L]}],"backdrop-blur":[{"backdrop-blur":we()}],"backdrop-brightness":[{"backdrop-brightness":[H,A,L]}],"backdrop-contrast":[{"backdrop-contrast":[H,A,L]}],"backdrop-grayscale":[{"backdrop-grayscale":["",H,A,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[H,A,L]}],"backdrop-invert":[{"backdrop-invert":["",H,A,L]}],"backdrop-opacity":[{"backdrop-opacity":[H,A,L]}],"backdrop-saturate":[{"backdrop-saturate":[H,A,L]}],"backdrop-sepia":[{"backdrop-sepia":["",H,A,L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",A,L]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[H,"initial",A,L]}],ease:[{ease:["linear","initial",w,A,L]}],delay:[{delay:[H,A,L]}],animate:[{animate:["none",b,A,L]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,A,L]}],"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:ke()}],"scale-x":[{"scale-x":ke()}],"scale-y":[{"scale-y":ke()}],"scale-z":[{"scale-z":ke()}],"scale-3d":["scale-3d"],skew:[{skew:q()}],"skew-x":[{"skew-x":q()}],"skew-y":[{"skew-y":q()}],transform:[{transform:[A,L,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:se()}],"translate-x":[{"translate-x":se()}],"translate-y":[{"translate-y":se()}],"translate-z":[{"translate-z":se()}],"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",A,L]}],"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":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mbs":[{"scroll-mbs":j()}],"scroll-mbe":[{"scroll-mbe":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pbs":[{"scroll-pbs":j()}],"scroll-pbe":[{"scroll-pbe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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",A,L]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[H,Ct,st,Mr]}],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"]}},Sc=sc(jc);function Me(...e){return Sc(So(e))}const Nc=No("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"}}),tr=a.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?Mi:"button";return l.jsx(i,{className:Me(Nc({variant:t,size:n,className:e})),ref:s,...o})});tr.displayName="Button";const Rc="_cssloadSpeedingWheel_akex8_6",Lc="_bigSize_akex8_20",Ac="_smallSize_akex8_26",Pc="_extraSmallSize_akex8_32",It={cssloadSpeedingWheel:Rc,bigSize:Lc,smallSize:Ac,extraSmallSize:Pc};function Mc(e){return e==="medium"?"small":e==="large"?"big":e}const Ye=({marginTop:e,marginBottom:t,marginLeft:n,className:r,size:o="big"})=>{const s=_.useMemo(()=>({marginTop:e,marginBottom:t,marginLeft:n}),[t,n,e]),i=Mc(o);return l.jsx("div",{className:r,style:s,children:l.jsx("div",{className:R(It.cssloadSpeedingWheel,{[It.bigSize]:i==="big",[It.smallSize]:i==="small",[It.extraSmallSize]:i==="extraSmall"})})})},Oc="_button_fafaj_1",Tc="_button__loader_fafaj_186",Ic="_button__content_fafaj_193",dt={button:Oc,"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:Tc,button__content:Ic},fe=_.forwardRef(({variant:e="default",size:t="medium",className:n="",loading:r=!1,disabled:o=!1,children:s,type:i="button",...c},d)=>{const u=R(dt.button,dt[`button--variant-${e}`],dt[`button--size-${t}`],{[dt["button--loading"]]:r,[dt["button--disabled"]]:o},n);return l.jsxs(tr,{ref:d,variant:null,size:null,className:u,disabled:o||r,type:i,...c,children:[s&&s,r&&l.jsx("span",{className:dt.button__loader,children:l.jsx(Ye,{size:"extraSmall"})})]})});fe.displayName="Button";const Ho=e=>{const[t,n]=_.useState(0),[r,o]=_.useState(0),s=_.useRef(null);return _.useEffect(()=>{if(!e)return;const c=new ResizeObserver(u=>{s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{for(const f of u)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 d=e.getBoundingClientRect().height;return n(d),()=>{c.disconnect()}},[e,n]),_.useMemo(()=>({height:t,width:r}),[t,r])},Ir={capture:!0,passive:!0},Dc=({triggerRef:e,dropdownHeight:t,offset:n=8,enabled:r=!0,onAnchorFrame:o})=>{const[s,i]=_.useState("bottom"),c=_.useRef(null),d=_.useCallback(()=>{if(!e.current)return"bottom";const f=e.current.getBoundingClientRect(),p=window.innerHeight,g=f.top-n;return p-f.bottom-n>=t?"bottom":g>=t?"top":"bottom"},[e,t,n]),u=_.useCallback(()=>{c.current&&cancelAnimationFrame(c.current),c.current=requestAnimationFrame(()=>{const f=d();i(f),o?.(f)})},[d,o]);return _.useEffect(()=>{if(!r)return;const f=e.current;if(!f)return;u();const p=new ResizeObserver(()=>{u()});p.observe(f);const g=new MutationObserver(()=>{u()});g.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),v=h.overflow+h.overflowY+h.overflowX;/(auto|scroll)/.test(v)&&(m.push(x),x.addEventListener("scroll",u)),x=x.parentElement}return window.addEventListener("scroll",u,Ir),window.addEventListener("resize",u),window.addEventListener("transitionend",u),window.addEventListener("animationend",u),()=>{c.current&&cancelAnimationFrame(c.current),p.disconnect(),g.disconnect(),window.removeEventListener("scroll",u,Ir),window.removeEventListener("resize",u),window.removeEventListener("transitionend",u),window.removeEventListener("animationend",u),m.forEach(h=>{h.removeEventListener("scroll",u)})}},[r,e,u]),s},$c="_container_1dkro_1",Fc="_activeButton_1dkro_16",Bc="_slider_1dkro_22",Nn={container:$c,activeButton:Fc,slider:Bc},zc=({options:e,value:t,defaultValue:n,data:r,activeButton:o,defaultActiveButton:s,onChange:i})=>{const c=_.useMemo(()=>e?.length?e.map(w=>({id:w.value,label:w.label,additionalComponent:w.additionalComponent})):r??[],[e,r]),[d,u]=_.useState(()=>n??s??c[0]?.id),[f,p]=_.useState({transform:"translateX(0)",width:0}),g=_.useRef(new Map),m=t??o??d,{width:x}=Ho(g.current.get(m)),h=w=>{w.id!==m&&(i?.(w.id),u(w.id))},v=_.useCallback((w,b)=>{g.current.set(b,w)},[]);return _.useEffect(()=>{const w=c.findIndex(b=>b.id===m);if(w>=0){const y=c.slice(0,w).reduce((C,E)=>{const k=g.current.get(E.id);if(k){const S=k.getBoundingClientRect().width;C+=S}return C},0);p({transform:`translateX(${y}px)`,width:x})}},[m,x,c]),l.jsxs("div",{className:Nn.container,children:[c.map(w=>l.jsx("div",{ref:b=>v(b,w.id),children:l.jsxs(fe,{size:"small",onClick:()=>h(w),className:R({[Nn.activeButton]:w.id===m}),children:[w.label,w.additionalComponent]})},w.id)),l.jsx("div",{className:Nn.slider,style:f})]})},Vc="_card_1cqzz_1",Hc="_link_1cqzz_17",Dr={card:Vc,link:Hc},Wc=_.memo(({text:e,width:t,height:n,className:r,backgroundColor:o,imageUrl:s,textColor:i,link:c})=>{const d=R(Dr.card,{[Dr.link]:c},r),u=_.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:d,style:u,href:c,children:l.jsx("span",{children:e})}):l.jsx("div",{className:d,style:u,children:l.jsx("span",{children:e})})}),qc="_carouselWrapper_12142_1",Gc="_carousel_12142_1",Uc="_viewport_12142_13",Zc="_slide_12142_19",Yc="_activeSlide_12142_24",Xc="_itemContent_12142_28",Kc="_controls_12142_36",Qc="_carouselControl_12142_48",Jc="_prevIcon_12142_71",el="_nextIcon_12142_72",tl="_indicators_12142_90",nl="_activeIndicator_12142_115",xe={carouselWrapper:qc,carousel:Gc,viewport:Uc,slide:Zc,activeSlide:Yc,itemContent:Xc,controls:Kc,carouselControl:Qc,prevIcon:Jc,nextIcon:el,indicators:tl,activeIndicator:nl},rl=e=>"items"in e&&Array.isArray(e.items)&&"renderItem"in e&&typeof e.renderItem=="function",ol=e=>rl(e)?e.items.map((t,n)=>({key:`${t.id}-${n}`,content:e.renderItem(t),caption:t.caption})):_.Children.toArray(e.children).map((t,n)=>({key:_.isValidElement(t)&&t.key!==null&&t.key!==void 0&&t.key!=="."?String(t.key):`slide-${n}`,content:t})),sl=e=>{const t={...e};return delete t.items,delete t.renderItem,delete t.children,t},al=e=>{const t=ol(e),n=t.length,r=sl(e),{className:o,dark:s,enableTouch:i,fade:c,interval:d,keyboard:u=!0,pause:f,ride:p,slide:g,...m}=r,[x,h]=_.useState(0),v=()=>{h(k=>k===n-1?0:k+1)},w=()=>{h(k=>k===0?n-1:k-1)},b=k=>{h(k)},y=n>1,C=_.useMemo(()=>t.map(k=>({key:k.key})),[t]),E=k=>{m.onKeyDown?.(k),!(k.defaultPrevented||!u||!y)&&(k.key==="ArrowLeft"&&w(),k.key==="ArrowRight"&&v())};return n?y?l.jsx("div",{className:xe.carouselWrapper,children:l.jsxs("div",{...m,className:[xe.carousel,o].filter(Boolean).join(" "),onKeyDown:E,role:"region","aria-roledescription":"carousel",children:[l.jsx("div",{className:xe.viewport,children:t.map((k,S)=>l.jsx("div",{className:[xe.slide,S===x?xe.activeSlide:""].filter(Boolean).join(" "),"aria-hidden":S!==x,children:l.jsx("div",{className:xe.itemContent,children:k.content})},k.key))}),l.jsxs("div",{className:xe.controls,children:[l.jsx("button",{className:xe.carouselControl,type:"button",onClick:w,"aria-label":"Previous slide",children:l.jsx("span",{className:xe.prevIcon,"aria-hidden":"true"})}),l.jsx("div",{className:xe.indicators,children:C.map((k,S)=>l.jsx("button",{className:S===x?xe.activeIndicator:void 0,type:"button",onClick:()=>b(S),"aria-label":`Go to slide ${S+1}`,"aria-current":S===x},k.key))}),l.jsx("button",{className:xe.carouselControl,type:"button",onClick:v,"aria-label":"Next slide",children:l.jsx("span",{className:xe.nextIcon,"aria-hidden":"true"})})]})]})}):l.jsx("div",{className:xe.carouselWrapper,children:t[0].content}):null},be=8;function il(e,t="top"){const{left:n,right:r,top:o,bottom:s,width:i,height:c}=e,d=n+i/2,u=o+c/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 cl="_overlay_1pnex_1",ll="_fadeIn_1pnex_1",dl="_arrow_1pnex_16",ul="_top_1pnex_22",fl="_bottom_1pnex_28",pl="_left_1pnex_34",ml="_right_1pnex_40",Rn={overlay:cl,fadeIn:ll,arrow:dl,top:ul,bottom:fl,left:pl,right:ml};function hl(e){return e.startsWith("top")?"bottom":e.startsWith("bottom")?"top":e.startsWith("left")?"right":e.startsWith("right")?"left":"top"}const nr=_.memo(({title:e,content:t,open:n,defaultOpen:r=!1,trigger:o="hover",mouseEnterDelay:s=100,mouseLeaveDelay:i=100,onOpenChange:c,placement:d="top",arrow:u=!0,children:f,overlayClassName:p,getPopupContainer:g=()=>document.body})=>{const m=n!==void 0,[x,h]=_.useState(r),v=m?n:x,w=_.useCallback(N=>{m||h(N),c?.(N)},[m,c]),b=_.useRef(null),[y,C]=_.useState(null),E=_.useRef(null),k=_.useRef(null),S=Array.isArray(o)?o:[o],j=S.includes("hover"),I=S.includes("click"),D=_.useCallback(()=>{E.current&&(clearTimeout(E.current),E.current=null)},[]),F=_.useCallback(()=>{k.current&&(clearTimeout(k.current),k.current=null)},[]),W=_.useCallback(()=>{j&&(F(),E.current=setTimeout(()=>w(!0),s))},[j,s,w,F]),B=_.useCallback(()=>{j&&(D(),k.current=setTimeout(()=>w(!1),i))},[j,i,w,D]),z=_.useCallback(N=>{I&&(N.preventDefault(),w(!v))},[I,v,w]);_.useEffect(()=>{if(!I||!v||m)return;const N=pe=>{const oe=b.current;oe&&!oe.contains(pe.target)&&w(!1)};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[I,v,m,w]),_.useLayoutEffect(()=>{if(!v||!b.current){C(null);return}const N=b.current.getBoundingClientRect();C(il(N,d))},[v,d]),_.useEffect(()=>()=>{D(),F()},[D,F]);const U=typeof document<"u"?g():null,$=hl(d),V=e??t,O=v&&V!=null&&V!==""&&y&&U&&St.createPortal(l.jsxs("span",{className:R(Rn.overlay,p),style:{left:y.left,top:y.top,transform:y.transform},role:"tooltip",children:[V,u&&l.jsx("span",{className:R(Rn.arrow,Rn[$])})]}),U),Y=!m&&(j||I)?{onMouseEnter:W,onMouseLeave:B,onClick:I?z:void 0}:{};return l.jsxs(l.Fragment,{children:[l.jsx("span",{ref:b,...Y,children:f}),O]})});nr.displayName="TooltipDark";const gl="_wrapper_ukjvp_1",vl="_trigger_ukjvp_5",xl="_trigger_iconOnly_ukjvp_32",wl="_icon_ukjvp_43",Dt={wrapper:gl,trigger:vl,trigger_iconOnly:xl,icon:wl},rr=_.memo(({children:e,onClick:t,copied:n,tooltipText:r="Скопировано",ariaLabel:o,showIcon:s=!0,iconOnly:i=!1,className:c})=>{const d=_.useCallback(()=>{t()},[t]);return l.jsx("span",{className:Dt.wrapper,children:l.jsx(nr,{open:n,title:r,placement:"top",children:l.jsxs(tr,{type:"button",variant:null,size:null,className:R(Dt.trigger,i&&Dt.trigger_iconOnly,c),onClick:d,"aria-label":o,"aria-live":"polite",children:[!i&&e,s&&l.jsx(bo,{className:Dt.icon,"aria-hidden":!0})]})})})});rr.displayName="CopyTextTrigger";function Wo(e){return typeof document>"u"?null:St.createPortal(e,document.body)}function ce(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function bl(e,t){const n=a.createContext(t),r=s=>{const{children:i,...c}=s,d=a.useMemo(()=>c,Object.values(c));return l.jsx(n.Provider,{value:d,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 an(e,t=[]){let n=[];function r(s,i){const c=a.createContext(i),d=n.length;n=[...n,i];const u=p=>{const{scope:g,children:m,...x}=p,h=g?.[e]?.[d]||c,v=a.useMemo(()=>x,Object.values(x));return l.jsx(h.Provider,{value:v,children:m})};u.displayName=s+"Provider";function f(p,g){const m=g?.[e]?.[d]||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[u,f]}const o=()=>{const s=n.map(i=>a.createContext(i));return function(c){const d=c?.[e]||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return o.scopeName=e,[r,_l(o,...t)]}function _l(...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:d,scopeName:u})=>{const p=d(s)[`__scope${u}`];return{...c,...p}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function yl(e){const t=Cl(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,c=a.Children.toArray(s),d=c.find(El);if(d){const u=d.props.children,f=c.map(p=>p===d?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:p);return l.jsx(t,{...i,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,f):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Cl(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=Sl(o),c=jl(s,o.props);return o.type!==a.Fragment&&(c.ref=r?Nt(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 kl=Symbol("radix.slottable");function El(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kl}function jl(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 d=s(...c);return o(...c),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Sl(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 Nl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],he=Nl.reduce((e,t)=>{const n=yl(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...c}=o,d=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(d,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Rl(e,t){e&&xo.flushSync(()=>e.dispatchEvent(t))}function gt(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>t.current?.(...n),[])}function Ll(e,t=globalThis?.document){const n=gt(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 Al="DismissableLayer",Hn="dismissableLayer.update",Pl="dismissableLayer.pointerDownOutside",Ml="dismissableLayer.focusOutside",$r,qo=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),cn=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:c,...d}=e,u=a.useContext(qo),[f,p]=a.useState(null),g=f?.ownerDocument??globalThis?.document,[,m]=a.useState({}),x=Ce(t,S=>p(S)),h=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),w=h.indexOf(v),b=f?h.indexOf(f):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,C=b>=w,E=Il(S=>{const j=S.target,I=[...u.branches].some(D=>D.contains(j));!C||I||(o?.(S),i?.(S),S.defaultPrevented||c?.())},g),k=Dl(S=>{const j=S.target;[...u.branches].some(D=>D.contains(j))||(s?.(S),i?.(S),S.defaultPrevented||c?.())},g);return Ll(S=>{b===u.layers.size-1&&(r?.(S),!S.defaultPrevented&&c&&(S.preventDefault(),c()))},g),a.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&($r=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Fr(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=$r)}},[f,g,n,u]),a.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Fr())},[f,u]),a.useEffect(()=>{const S=()=>m({});return document.addEventListener(Hn,S),()=>document.removeEventListener(Hn,S)},[]),l.jsx(he.div,{...d,ref:x,style:{pointerEvents:y?C?"auto":"none":void 0,...e.style},onFocusCapture:ce(e.onFocusCapture,k.onFocusCapture),onBlurCapture:ce(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ce(e.onPointerDownCapture,E.onPointerDownCapture)})});cn.displayName=Al;var Ol="DismissableLayerBranch",Tl=a.forwardRef((e,t)=>{const n=a.useContext(qo),r=a.useRef(null),o=Ce(t,r);return a.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsx(he.div,{...e,ref:o})});Tl.displayName=Ol;function Il(e,t=globalThis?.document){const n=gt(e),r=a.useRef(!1),o=a.useRef(()=>{});return a.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let d=function(){Go(Pl,n,u,{discrete:!0})};const u={originalEvent:c};c.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},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 Dl(e,t=globalThis?.document){const n=gt(e),r=a.useRef(!1);return a.useEffect(()=>{const o=s=>{s.target&&!r.current&&Go(Ml,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 Fr(){const e=new CustomEvent(Hn);document.dispatchEvent(e)}function Go(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?Rl(o,s):o.dispatchEvent(s)}var Xe=globalThis?.document?a.useLayoutEffect:()=>{},$l=a[" useId ".trim().toString()]||(()=>{}),Fl=0;function kt(e){const[t,n]=a.useState($l());return Xe(()=>{n(r=>r??String(Fl++))},[e]),e||(t?`radix-${t}`:"")}const Bl=["top","right","bottom","left"],Ke=Math.min,_e=Math.max,Jt=Math.round,$t=Math.floor,Pe=e=>({x:e,y:e}),zl={left:"right",right:"left",bottom:"top",top:"bottom"};function Wn(e,t,n){return _e(e,Ke(t,n))}function Be(e,t){return typeof e=="function"?e(t):e}function ze(e){return e.split("-")[0]}function bt(e){return e.split("-")[1]}function or(e){return e==="x"?"y":"x"}function sr(e){return e==="y"?"height":"width"}function Ae(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ar(e){return or(Ae(e))}function Vl(e,t,n){n===void 0&&(n=!1);const r=bt(e),o=ar(e),s=sr(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=en(i)),[i,en(i)]}function Hl(e){const t=en(e);return[qn(e),t,qn(t)]}function qn(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Br=["left","right"],zr=["right","left"],Wl=["top","bottom"],ql=["bottom","top"];function Gl(e,t,n){switch(e){case"top":case"bottom":return n?t?zr:Br:t?Br:zr;case"left":case"right":return t?Wl:ql;default:return[]}}function Ul(e,t,n,r){const o=bt(e);let s=Gl(ze(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(qn)))),s}function en(e){const t=ze(e);return zl[t]+e.slice(t.length)}function Zl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Uo(e){return typeof e!="number"?Zl(e):{top:e,right:e,bottom:e,left:e}}function tn(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 Vr(e,t,n){let{reference:r,floating:o}=e;const s=Ae(t),i=ar(t),c=sr(i),d=ze(t),u=s==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,g=r[c]/2-o[c]/2;let m;switch(d){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(bt(t)){case"start":m[i]-=g*(n&&u?-1:1);break;case"end":m[i]+=g*(n&&u?-1:1);break}return m}async function Yl(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:c,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:g=!1,padding:m=0}=Be(t,e),x=Uo(m),v=c[g?p==="floating"?"reference":"floating":p],w=tn(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:d})),b=p==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.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},E=tn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:b,offsetParent:y,strategy:d}):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 Xl=50,Kl=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,c=i.detectOverflow?i:{...i,detectOverflow:Yl},d=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Vr(u,r,d),g=r,m=0;const x={};for(let h=0;h<s.length;h++){const v=s[h];if(!v)continue;const{name:w,fn:b}=v,{x:y,y:C,data:E,reset:k}=await b({x:f,y:p,initialPlacement:r,placement:g,strategy:o,middlewareData:x,rects:u,platform:c,elements:{reference:e,floating:t}});f=y??f,p=C??p,x[w]={...x[w],...E},k&&m<Xl&&(m++,typeof k=="object"&&(k.placement&&(g=k.placement),k.rects&&(u=k.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:f,y:p}=Vr(u,g,d)),h=-1)}return{x:f,y:p,placement:g,strategy:o,middlewareData:x}},Ql=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:c,middlewareData:d}=t,{element:u,padding:f=0}=Be(e,t)||{};if(u==null)return{};const p=Uo(f),g={x:n,y:r},m=ar(o),x=sr(m),h=await i.getDimensions(u),v=m==="y",w=v?"top":"left",b=v?"bottom":"right",y=v?"clientHeight":"clientWidth",C=s.reference[x]+s.reference[m]-g[m]-s.floating[x],E=g[m]-s.reference[m],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let S=k?k[y]:0;(!S||!await(i.isElement==null?void 0:i.isElement(k)))&&(S=c.floating[y]||s.floating[x]);const j=C/2-E/2,I=S/2-h[x]/2-1,D=Ke(p[w],I),F=Ke(p[b],I),W=D,B=S-h[x]-F,z=S/2-h[x]/2+j,U=Wn(W,z,B),$=!d.arrow&&bt(o)!=null&&z!==U&&s.reference[x]/2-(z<W?D:F)-h[x]/2<0,V=$?z<W?z-W:z-B:0;return{[m]:g[m]+V,data:{[m]:U,centerOffset:z-U-V,...$&&{alignmentOffset:V}},reset:$}}}),Jl=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:d,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:h=!0,...v}=Be(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=ze(o),b=Ae(c),y=ze(c)===c,C=await(d.isRTL==null?void 0:d.isRTL(u.floating)),E=g||(y||!h?[en(c)]:Hl(c)),k=x!=="none";!g&&k&&E.push(...Ul(c,h,x,C));const S=[c,...E],j=await d.detectOverflow(t,v),I=[];let D=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&I.push(j[w]),p){const z=Vl(o,i,C);I.push(j[z[0]],j[z[1]])}if(D=[...D,{placement:o,overflows:I}],!I.every(z=>z<=0)){var F,W;const z=(((F=s.flip)==null?void 0:F.index)||0)+1,U=S[z];if(U&&(!(p==="alignment"?b!==Ae(U):!1)||D.every(O=>Ae(O.placement)===b?O.overflows[0]>0:!0)))return{data:{index:z,overflows:D},reset:{placement:U}};let $=(W=D.filter(V=>V.overflows[0]<=0).sort((V,O)=>V.overflows[1]-O.overflows[1])[0])==null?void 0:W.placement;if(!$)switch(m){case"bestFit":{var B;const V=(B=D.filter(O=>{if(k){const Y=Ae(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];V&&($=V);break}case"initialPlacement":$=c;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Hr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wr(e){return Bl.some(t=>e[t]>=0)}const ed=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=Be(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),c=Hr(i,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Wr(c)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),c=Hr(i,n.floating);return{data:{escapedOffsets:c,escaped:Wr(c)}}}default:return{}}}}},Zo=new Set(["left","top"]);async function td(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=ze(n),c=bt(n),d=Ae(n)==="y",u=Zo.has(i)?-1:1,f=s&&d?-1:1,p=Be(t,e);let{mainAxis:g,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),d?{x:m*f,y:g*u}:{x:g*u,y:m*f}}const nd=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,d=await td(t,e);return i===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:s+d.y,data:{...d,placement:i}}}}},rd=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:d={fn:w=>{let{x:b,y}=w;return{x:b,y}}},...u}=Be(e,t),f={x:n,y:r},p=await s.detectOverflow(t,u),g=Ae(ze(o)),m=or(g);let x=f[m],h=f[g];if(i){const w=m==="y"?"top":"left",b=m==="y"?"bottom":"right",y=x+p[w],C=x-p[b];x=Wn(y,x,C)}if(c){const w=g==="y"?"top":"left",b=g==="y"?"bottom":"right",y=h+p[w],C=h-p[b];h=Wn(y,h,C)}const v=d.fn({...t,[m]:x,[g]:h});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[m]:i,[g]:c}}}}}},od=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:d=!0,crossAxis:u=!0}=Be(e,t),f={x:n,y:r},p=Ae(o),g=or(p);let m=f[g],x=f[p];const h=Be(c,t),v=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(d){const y=g==="y"?"height":"width",C=s.reference[g]-s.floating[y]+v.mainAxis,E=s.reference[g]+s.reference[y]-v.mainAxis;m<C?m=C:m>E&&(m=E)}if(u){var w,b;const y=g==="y"?"width":"height",C=Zo.has(ze(o)),E=s.reference[p]-s.floating[y]+(C&&((w=i.offset)==null?void 0:w[p])||0)+(C?0:v.crossAxis),k=s.reference[p]+s.reference[y]+(C?0:((b=i.offset)==null?void 0:b[p])||0)-(C?v.crossAxis:0);x<E?x=E:x>k&&(x=k)}return{[g]:m,[p]:x}}}},sd=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:d=()=>{},...u}=Be(e,t),f=await i.detectOverflow(t,u),p=ze(o),g=bt(o),m=Ae(o)==="y",{width:x,height:h}=s.floating;let v,w;p==="top"||p==="bottom"?(v=p,w=g===(await(i.isRTL==null?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(w=p,v=g==="end"?"top":"bottom");const b=h-f.top-f.bottom,y=x-f.left-f.right,C=Ke(h-f[v],b),E=Ke(x-f[w],y),k=!t.middlewareData.shift;let S=C,j=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(S=b),k&&!g){const D=_e(f.left,0),F=_e(f.right,0),W=_e(f.top,0),B=_e(f.bottom,0);m?j=x-2*(D!==0||F!==0?D+F:_e(f.left,f.right)):S=h-2*(W!==0||B!==0?W+B:_e(f.top,f.bottom))}await d({...t,availableWidth:j,availableHeight:S});const I=await i.getDimensions(c.floating);return x!==I.width||h!==I.height?{reset:{rects:!0}}:{}}}};function ln(){return typeof window<"u"}function _t(e){return Yo(e)?(e.nodeName||"").toLowerCase():"#document"}function ye(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Oe(e){var t;return(t=(Yo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yo(e){return ln()?e instanceof Node||e instanceof ye(e).Node:!1}function me(e){return ln()?e instanceof Element||e instanceof ye(e).Element:!1}function Ve(e){return ln()?e instanceof HTMLElement||e instanceof ye(e).HTMLElement:!1}function qr(e){return!ln()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ye(e).ShadowRoot}function Rt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function ad(e){return/^(table|td|th)$/.test(_t(e))}function dn(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const id=/transform|translate|scale|rotate|perspective|filter/,cd=/paint|layout|strict|content/,at=e=>!!e&&e!=="none";let Ln;function ir(e){const t=me(e)?Ee(e):e;return at(t.transform)||at(t.translate)||at(t.scale)||at(t.rotate)||at(t.perspective)||!cr()&&(at(t.backdropFilter)||at(t.filter))||id.test(t.willChange||"")||cd.test(t.contain||"")}function ld(e){let t=Qe(e);for(;Ve(t)&&!vt(t);){if(ir(t))return t;if(dn(t))return null;t=Qe(t)}return null}function cr(){return Ln==null&&(Ln=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ln}function vt(e){return/^(html|body|#document)$/.test(_t(e))}function Ee(e){return ye(e).getComputedStyle(e)}function un(e){return me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qe(e){if(_t(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qr(e)&&e.host||Oe(e);return qr(t)?t.host:t}function Xo(e){const t=Qe(e);return vt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ve(t)&&Rt(t)?t:Xo(t)}function Et(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Xo(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=ye(o);if(s){const c=Gn(i);return t.concat(i,i.visualViewport||[],Rt(o)?o:[],c&&n?Et(c):[])}else return t.concat(o,Et(o,[],n))}function Gn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ko(e){const t=Ee(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ve(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,c=Jt(n)!==s||Jt(r)!==i;return c&&(n=s,r=i),{width:n,height:r,$:c}}function lr(e){return me(e)?e:e.contextElement}function mt(e){const t=lr(e);if(!Ve(t))return Pe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Ko(t);let i=(s?Jt(n.width):n.width)/r,c=(s?Jt(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const dd=Pe(0);function Qo(e){const t=ye(e);return!cr()||!t.visualViewport?dd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ud(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ye(e)?!1:t}function it(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=lr(e);let i=Pe(1);t&&(r?me(r)&&(i=mt(r)):i=mt(e));const c=ud(s,n,r)?Qo(s):Pe(0);let d=(o.left+c.x)/i.x,u=(o.top+c.y)/i.y,f=o.width/i.x,p=o.height/i.y;if(s){const g=ye(s),m=r&&me(r)?ye(r):r;let x=g,h=Gn(x);for(;h&&r&&m!==x;){const v=mt(h),w=h.getBoundingClientRect(),b=Ee(h),y=w.left+(h.clientLeft+parseFloat(b.paddingLeft))*v.x,C=w.top+(h.clientTop+parseFloat(b.paddingTop))*v.y;d*=v.x,u*=v.y,f*=v.x,p*=v.y,d+=y,u+=C,x=ye(h),h=Gn(x)}}return tn({width:f,height:p,x:d,y:u})}function fn(e,t){const n=un(e).scrollLeft;return t?t.left+n:it(Oe(e)).left+n}function Jo(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-fn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function fd(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Oe(r),c=t?dn(t.floating):!1;if(r===i||c&&s)return n;let d={scrollLeft:0,scrollTop:0},u=Pe(1);const f=Pe(0),p=Ve(r);if((p||!p&&!s)&&((_t(r)!=="body"||Rt(i))&&(d=un(r)),p)){const m=it(r);u=mt(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}const g=i&&!p&&!s?Jo(i,d):Pe(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+f.x+g.x,y:n.y*u.y-d.scrollTop*u.y+f.y+g.y}}function pd(e){return Array.from(e.getClientRects())}function md(e){const t=Oe(e),n=un(e),r=e.ownerDocument.body,o=_e(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=_e(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+fn(e);const c=-n.scrollTop;return Ee(r).direction==="rtl"&&(i+=_e(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:c}}const Gr=25;function hd(e,t){const n=ye(e),r=Oe(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,c=0,d=0;if(o){s=o.width,i=o.height;const f=cr();(!f||f&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}const u=fn(r);if(u<=0){const f=r.ownerDocument,p=f.body,g=getComputedStyle(p),m=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,x=Math.abs(r.clientWidth-p.clientWidth-m);x<=Gr&&(s-=x)}else u<=Gr&&(s+=u);return{width:s,height:i,x:c,y:d}}function gd(e,t){const n=it(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Ve(e)?mt(e):Pe(1),i=e.clientWidth*s.x,c=e.clientHeight*s.y,d=o*s.x,u=r*s.y;return{width:i,height:c,x:d,y:u}}function Ur(e,t,n){let r;if(t==="viewport")r=hd(e,n);else if(t==="document")r=md(Oe(e));else if(me(t))r=gd(t,n);else{const o=Qo(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return tn(r)}function es(e,t){const n=Qe(e);return n===t||!me(n)||vt(n)?!1:Ee(n).position==="fixed"||es(n,t)}function vd(e,t){const n=t.get(e);if(n)return n;let r=Et(e,[],!1).filter(c=>me(c)&&_t(c)!=="body"),o=null;const s=Ee(e).position==="fixed";let i=s?Qe(e):e;for(;me(i)&&!vt(i);){const c=Ee(i),d=ir(i);!d&&c.position==="fixed"&&(o=null),(s?!d&&!o:!d&&c.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Rt(i)&&!d&&es(e,i))?r=r.filter(f=>f!==i):o=c,i=Qe(i)}return t.set(e,r),r}function xd(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?dn(t)?[]:vd(t,this._c):[].concat(n),r],c=Ur(t,i[0],o);let d=c.top,u=c.right,f=c.bottom,p=c.left;for(let g=1;g<i.length;g++){const m=Ur(t,i[g],o);d=_e(m.top,d),u=Ke(m.right,u),f=Ke(m.bottom,f),p=_e(m.left,p)}return{width:u-p,height:f-d,x:p,y:d}}function wd(e){const{width:t,height:n}=Ko(e);return{width:t,height:n}}function bd(e,t,n){const r=Ve(t),o=Oe(t),s=n==="fixed",i=it(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const d=Pe(0);function u(){d.x=fn(o)}if(r||!r&&!s)if((_t(t)!=="body"||Rt(o))&&(c=un(t)),r){const m=it(t,!0,s,t);d.x=m.x+t.clientLeft,d.y=m.y+t.clientTop}else o&&u();s&&!r&&o&&u();const f=o&&!r&&!s?Jo(o,c):Pe(0),p=i.left+c.scrollLeft-d.x-f.x,g=i.top+c.scrollTop-d.y-f.y;return{x:p,y:g,width:i.width,height:i.height}}function An(e){return Ee(e).position==="static"}function Zr(e,t){if(!Ve(e)||Ee(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Oe(e)===n&&(n=n.ownerDocument.body),n}function ts(e,t){const n=ye(e);if(dn(e))return n;if(!Ve(e)){let o=Qe(e);for(;o&&!vt(o);){if(me(o)&&!An(o))return o;o=Qe(o)}return n}let r=Zr(e,t);for(;r&&ad(r)&&An(r);)r=Zr(r,t);return r&&vt(r)&&An(r)&&!ir(r)?n:r||ld(e)||n}const _d=async function(e){const t=this.getOffsetParent||ts,n=this.getDimensions,r=await n(e.floating);return{reference:bd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function yd(e){return Ee(e).direction==="rtl"}const Cd={convertOffsetParentRelativeRectToViewportRelativeRect:fd,getDocumentElement:Oe,getClippingRect:xd,getOffsetParent:ts,getElementRects:_d,getClientRects:pd,getDimensions:wd,getScale:mt,isElement:me,isRTL:yd};function ns(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function kd(e,t){let n=null,r;const o=Oe(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function i(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),s();const u=e.getBoundingClientRect(),{left:f,top:p,width:g,height:m}=u;if(c||t(),!g||!m)return;const x=$t(p),h=$t(o.clientWidth-(f+g)),v=$t(o.clientHeight-(p+m)),w=$t(f),y={rootMargin:-x+"px "+-h+"px "+-v+"px "+-w+"px",threshold:_e(0,Ke(1,d))||1};let C=!0;function E(k){const S=k[0].intersectionRatio;if(S!==d){if(!C)return i();S?i(!1,S):r=setTimeout(()=>{i(!1,1e-7)},1e3)}S===1&&!ns(u,e.getBoundingClientRect())&&i(),C=!1}try{n=new IntersectionObserver(E,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,y)}n.observe(e)}return i(!0),s}function rs(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:d=!1}=r,u=lr(e),f=o||s?[...u?Et(u):[],...t?Et(t):[]]:[];f.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const p=u&&c?kd(u,n):null;let g=-1,m=null;i&&(m=new ResizeObserver(w=>{let[b]=w;b&&b.target===u&&m&&t&&(m.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(t)})),n()}),u&&!d&&m.observe(u),t&&m.observe(t));let x,h=d?it(e):null;d&&v();function v(){const w=it(e);h&&!ns(h,w)&&n(),h=w,x=requestAnimationFrame(v)}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,d&&cancelAnimationFrame(x)}}const Ed=nd,jd=rd,Sd=Jl,Nd=sd,Rd=ed,Yr=Ql,Ld=od,Ad=(e,t,n)=>{const r=new Map,o={platform:Cd,...n},s={...o.platform,_c:r};return Kl(e,t,{...o,platform:s})};var Pd=typeof document<"u",Md=function(){},Zt=Pd?_.useLayoutEffect:Md;function nn(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(!nn(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)&&!nn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function os(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xr(e,t){const n=os(e);return Math.round(t*n)/n}function Pn(e){const t=a.useRef(e);return Zt(()=>{t.current=e}),t}function ss(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:d,open:u}=e,[f,p]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,m]=a.useState(r);nn(g,r)||m(r);const[x,h]=a.useState(null),[v,w]=a.useState(null),b=a.useCallback(O=>{O!==k.current&&(k.current=O,h(O))},[]),y=a.useCallback(O=>{O!==S.current&&(S.current=O,w(O))},[]),C=s||x,E=i||v,k=a.useRef(null),S=a.useRef(null),j=a.useRef(f),I=d!=null,D=Pn(d),F=Pn(o),W=Pn(u),B=a.useCallback(()=>{if(!k.current||!S.current)return;const O={placement:t,strategy:n,middleware:g};F.current&&(O.platform=F.current),Ad(k.current,S.current,O).then(Y=>{const N={...Y,isPositioned:W.current!==!1};z.current&&!nn(j.current,N)&&(j.current=N,xo.flushSync(()=>{p(N)}))})},[g,t,n,F,W]);Zt(()=>{u===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,p(O=>({...O,isPositioned:!1})))},[u]);const z=a.useRef(!1);Zt(()=>(z.current=!0,()=>{z.current=!1}),[]),Zt(()=>{if(C&&(k.current=C),E&&(S.current=E),C&&E){if(D.current)return D.current(C,E,B);B()}},[C,E,B,D,I]);const U=a.useMemo(()=>({reference:k,floating:S,setReference:b,setFloating:y}),[b,y]),$=a.useMemo(()=>({reference:C,floating:E}),[C,E]),V=a.useMemo(()=>{const O={position:n,left:0,top:0};if(!$.floating)return O;const Y=Xr($.floating,f.x),N=Xr($.floating,f.y);return c?{...O,transform:"translate("+Y+"px, "+N+"px)",...os($.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:V}),[f,B,U,$,V])}const Od=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?Yr({element:r.current,padding:o}).fn(n):{}:r?Yr({element:r,padding:o}).fn(n):{}}}},as=(e,t)=>{const n=Ed(e);return{name:n.name,fn:n.fn,options:[e,t]}},Td=(e,t)=>{const n=jd(e);return{name:n.name,fn:n.fn,options:[e,t]}},Id=(e,t)=>({fn:Ld(e).fn,options:[e,t]}),is=(e,t)=>{const n=Sd(e);return{name:n.name,fn:n.fn,options:[e,t]}},cs=(e,t)=>{const n=Nd(e);return{name:n.name,fn:n.fn,options:[e,t]}},Dd=(e,t)=>{const n=Rd(e);return{name:n.name,fn:n.fn,options:[e,t]}},$d=(e,t)=>{const n=Od(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Fd="Arrow",ls=a.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsx(he.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"})})});ls.displayName=Fd;var Bd=ls;function zd(e){const[t,n]=a.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 i,c;if("borderBoxSize"in s){const d=s.borderBoxSize,u=Array.isArray(d)?d[0]:d;i=u.inlineSize,c=u.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 dr="Popper",[ds,pn]=an(dr),[Vd,us]=ds(dr),fs=e=>{const{__scopePopper:t,children:n}=e,[r,o]=a.useState(null);return l.jsx(Vd,{scope:t,anchor:r,onAnchorChange:o,children:n})};fs.displayName=dr;var ps="PopperAnchor",ms=a.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=us(ps,n),i=a.useRef(null),c=Ce(t,i),d=a.useRef(null);return a.useEffect(()=>{const u=d.current;d.current=r?.current||i.current,u!==d.current&&s.onAnchorChange(d.current)}),r?null:l.jsx(he.div,{...o,ref:c})});ms.displayName=ps;var ur="PopperContent",[Hd,Wd]=ds(ur),hs=a.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:m="optimized",onPlaced:x,...h}=e,v=us(ur,n),[w,b]=a.useState(null),y=Ce(t,ae=>b(ae)),[C,E]=a.useState(null),k=zd(C),S=k?.width??0,j=k?.height??0,I=r+(s!=="center"?"-"+s:""),D=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},F=Array.isArray(u)?u:[u],W=F.length>0,B={padding:D,boundary:F.filter(Gd),altBoundary:W},{refs:z,floatingStyles:U,placement:$,isPositioned:V,middlewareData:O}=ss({strategy:"fixed",placement:I,whileElementsMounted:(...ae)=>rs(...ae,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[as({mainAxis:o+j,alignmentAxis:i}),d&&Td({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Id():void 0,...B}),d&&is({...B}),cs({...B,apply:({elements:ae,rects:P,availableWidth:Z,availableHeight:we})=>{const{width:Se,height:ke}=P.reference,q=ae.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",`${ke}px`)}}),C&&$d({element:C,padding:c}),Ud({arrowWidth:S,arrowHeight:j}),g&&Dd({strategy:"referenceHidden",...B})]}),[Y,N]=xs($),pe=gt(x);Xe(()=>{V&&pe?.()},[V,pe]);const oe=O.arrow?.x,le=O.arrow?.y,te=O.arrow?.centerOffset!==0,[X,Q]=a.useState();return Xe(()=>{w&&Q(window.getComputedStyle(w).zIndex)},[w]),l.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:V?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(Hd,{scope:n,placedSide:Y,onArrowChange:E,arrowX:oe,arrowY:le,shouldHideArrow:te,children:l.jsx(he.div,{"data-side":Y,"data-align":N,...h,ref:y,style:{...h.style,animation:V?void 0:"none"}})})})});hs.displayName=ur;var gs="PopperArrow",qd={top:"bottom",right:"left",bottom:"top",left:"right"},vs=a.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Wd(gs,r),i=qd[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(Bd,{...o,ref:n,style:{...o.style,display:"block"}})})});vs.displayName=gs;function Gd(e){return e!==null}var Ud=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,d=i?0:e.arrowHeight,[u,f]=xs(n),p={start:"0%",center:"50%",end:"100%"}[f],g=(o.arrow?.x??0)+c/2,m=(o.arrow?.y??0)+d/2;let x="",h="";return u==="bottom"?(x=i?p:`${g}px`,h=`${-d}px`):u==="top"?(x=i?p:`${g}px`,h=`${r.floating.height+d}px`):u==="right"?(x=`${-d}px`,h=i?p:`${m}px`):u==="left"&&(x=`${r.floating.width+d}px`,h=i?p:`${m}px`),{data:{x,y:h}}}});function xs(e){const[t,n="center"]=e.split("-");return[t,n]}var ws=fs,fr=ms,bs=hs,_s=vs,Zd="Portal",mn=a.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=a.useState(!1);Xe(()=>s(!0),[]);const i=n||o&&globalThis?.document?.body;return i?St.createPortal(l.jsx(he.div,{...r,ref:t}),i):null});mn.displayName=Zd;function Yd(e,t){return a.useReducer((n,r)=>t[n][r]??n,e)}var et=e=>{const{present:t,children:n}=e,r=Xd(t),o=typeof n=="function"?n({present:r.isPresent}):a.Children.only(n),s=Ce(r.ref,Kd(o));return typeof n=="function"||r.isPresent?a.cloneElement(o,{ref:s}):null};et.displayName="Presence";function Xd(e){const[t,n]=a.useState(),r=a.useRef(null),o=a.useRef(e),s=a.useRef("none"),i=e?"mounted":"unmounted",[c,d]=Yd(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const u=Ft(r.current);s.current=c==="mounted"?u:"none"},[c]),Xe(()=>{const u=r.current,f=o.current;if(f!==e){const g=s.current,m=Ft(u);e?d("MOUNT"):m==="none"||u?.display==="none"?d("UNMOUNT"):d(f&&g!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),Xe(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=m=>{const h=Ft(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&h&&(d("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},g=m=>{m.target===t&&(s.current=Ft(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:a.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Ft(e){return e?.animationName||"none"}function Kd(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 Qd=Symbol("radix.slottable");function Jd(e){const t=({children:n})=>l.jsx(l.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Qd,t}var eu=a[" useInsertionEffect ".trim().toString()]||Xe;function pr({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=tu({defaultProp:t,onChange:n}),c=e!==void 0,d=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 u=a.useCallback(f=>{if(c){const p=nu(f)?f(e):f;p!==e&&i.current?.(p)}else s(f)},[c,e,s,i]);return[d,u]}function tu({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),s=a.useRef(t);return eu(()=>{s.current=t},[t]),a.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function nu(e){return typeof e=="function"}var ru=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"}),ou="VisuallyHidden",ys=a.forwardRef((e,t)=>l.jsx(he.span,{...e,ref:t,style:{...ru,...e.style}}));ys.displayName=ou;var su=ys,[hn]=an("Tooltip",[pn]),gn=pn(),Cs="TooltipProvider",au=700,Un="tooltip.open",[iu,mr]=hn(Cs),ks=e=>{const{__scopeTooltip:t,delayDuration:n=au,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=a.useRef(!0),c=a.useRef(!1),d=a.useRef(0);return a.useEffect(()=>{const u=d.current;return()=>window.clearTimeout(u)},[]),l.jsx(iu,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:a.useCallback(()=>{window.clearTimeout(d.current),i.current=!1},[]),onClose:a.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:a.useCallback(u=>{c.current=u},[]),disableHoverableContent:o,children:s})};ks.displayName=Cs;var jt="Tooltip",[cu,Lt]=hn(jt),Es=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:c}=e,d=mr(jt,e.__scopeTooltip),u=gn(t),[f,p]=a.useState(null),g=kt(),m=a.useRef(0),x=i??d.disableHoverableContent,h=c??d.delayDuration,v=a.useRef(!1),[w,b]=pr({prop:r,defaultProp:o??!1,onChange:S=>{S?(d.onOpen(),document.dispatchEvent(new CustomEvent(Un))):d.onClose(),s?.(S)},caller:jt}),y=a.useMemo(()=>w?v.current?"delayed-open":"instant-open":"closed",[w]),C=a.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.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(()=>{v.current=!0,b(!0),m.current=0},h)},[h,b]);return a.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),l.jsx(ws,{...u,children:l.jsx(cu,{scope:t,contentId:g,open:w,stateAttribute:y,trigger:f,onTriggerChange:p,onTriggerEnter:a.useCallback(()=>{d.isOpenDelayedRef.current?k():C()},[d.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})})};Es.displayName=jt;var Zn="TooltipTrigger",js=a.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Lt(Zn,n),s=mr(Zn,n),i=gn(n),c=a.useRef(null),d=Ce(t,c,o.onTriggerChange),u=a.useRef(!1),f=a.useRef(!1),p=a.useCallback(()=>u.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),l.jsx(fr,{asChild:!0,...i,children:l.jsx(he.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:d,onPointerMove:ce(e.onPointerMove,g=>{g.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:ce(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:ce(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ce(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ce(e.onBlur,o.onClose),onClick:ce(e.onClick,o.onClose)})})});js.displayName=Zn;var hr="TooltipPortal",[lu,du]=hn(hr,{forceMount:void 0}),Ss=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Lt(hr,t);return l.jsx(lu,{scope:t,forceMount:n,children:l.jsx(et,{present:n||s.open,children:l.jsx(mn,{asChild:!0,container:o,children:r})})})};Ss.displayName=hr;var xt="TooltipContent",Ns=a.forwardRef((e,t)=>{const n=du(xt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Lt(xt,e.__scopeTooltip);return l.jsx(et,{present:r||i.open,children:i.disableHoverableContent?l.jsx(Rs,{side:o,...s,ref:t}):l.jsx(uu,{side:o,...s,ref:t})})}),uu=a.forwardRef((e,t)=>{const n=Lt(xt,e.__scopeTooltip),r=mr(xt,e.__scopeTooltip),o=a.useRef(null),s=Ce(t,o),[i,c]=a.useState(null),{trigger:d,onClose:u}=n,f=o.current,{onPointerInTransitChange:p}=r,g=a.useCallback(()=>{c(null),p(!1)},[p]),m=a.useCallback((x,h)=>{const v=x.currentTarget,w={x:x.clientX,y:x.clientY},b=gu(w,v.getBoundingClientRect()),y=vu(w,b),C=xu(h.getBoundingClientRect()),E=bu([...y,...C]);c(E),p(!0)},[p]);return a.useEffect(()=>()=>g(),[g]),a.useEffect(()=>{if(d&&f){const x=v=>m(v,f),h=v=>m(v,d);return d.addEventListener("pointerleave",x),f.addEventListener("pointerleave",h),()=>{d.removeEventListener("pointerleave",x),f.removeEventListener("pointerleave",h)}}},[d,f,m,g]),a.useEffect(()=>{if(i){const x=h=>{const v=h.target,w={x:h.clientX,y:h.clientY},b=d?.contains(v)||f?.contains(v),y=!wu(w,i);b?g():y&&(g(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[d,f,i,u,g]),l.jsx(Rs,{...e,ref:s})}),[fu,pu]=hn(jt,{isInside:!1}),mu=Jd("TooltipContent"),Rs=a.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...c}=e,d=Lt(xt,n),u=gn(n),{onClose:f}=d;return a.useEffect(()=>(document.addEventListener(Un,f),()=>document.removeEventListener(Un,f)),[f]),a.useEffect(()=>{if(d.trigger){const p=g=>{g.target?.contains(d.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[d.trigger,f]),l.jsx(cn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:l.jsxs(bs,{"data-state":d.stateAttribute,...u,...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(mu,{children:r}),l.jsx(fu,{scope:n,isInside:!0,children:l.jsx(su,{id:d.contentId,role:"tooltip",children:o||r})})]})})});Ns.displayName=xt;var Ls="TooltipArrow",hu=a.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=gn(n);return pu(Ls,n).isInside?null:l.jsx(_s,{...o,...r,ref:t})});hu.displayName=Ls;function gu(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 vu(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 xu(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 wu(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],d=t[i],u=c.x,f=c.y,p=d.x,g=d.y;f>r!=g>r&&n<(p-u)*(r-f)/(g-f)+u&&(o=!o)}return o}function bu(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),_u(t)}function _u(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 yu=ks,Cu=Es,ku=js,Eu=Ss,As=Ns;const ju=yu,Su=Cu,Nu=ku,Ps=a.forwardRef(({className:e,sideOffset:t=4,...n},r)=>l.jsx(Eu,{children:l.jsx(As,{ref:r,sideOffset:t,className:Me("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})}));Ps.displayName=As.displayName;const Ru="_anchor_rpda1_1",Lu="_tooltip_rpda1_6",Kr={anchor:Ru,tooltip:Lu},Qr=e=>typeof e=="string"?document.getElementById(e):"current"in e?e.current:e,Au=(e="top")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},Jr=(e,t)=>typeof e=="number"?e:e?.[t]??0,Ms=({children:e,target:t,placement:n="top",popperClassName:r,isOpen:o,toggle:s,delay:i,autohide:c=!0})=>{const[d,u]=_.useState(!1),[f,p]=_.useState(null),g=o??d,{side:m,align:x}=_.useMemo(()=>Au(n),[n]),h=_.useCallback(()=>{const w=Qr(t);p(w?.getBoundingClientRect()??null)},[t]),v=_.useCallback(w=>{o===void 0&&u(w),s?.()},[o,s]);return _.useEffect(()=>{const w=Qr(t);if(!w)return;let b=null,y=null;const C=()=>{b&&clearTimeout(b),y&&clearTimeout(y)},E=()=>{C(),h(),b=setTimeout(()=>v(!0),Jr(i,"show"))},k=()=>{c&&(C(),y=setTimeout(()=>v(!1),Jr(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,v,t,h]),f?l.jsx(ju,{delayDuration:0,children:l.jsxs(Su,{open:g,onOpenChange:v,children:[Wo(l.jsx(Nu,{asChild:!0,children:l.jsx("span",{className:Kr.anchor,style:{left:f.left,top:f.top,width:f.width,height:f.height}})})),l.jsx(Ps,{side:m,align:x,className:R(Kr.tooltip,r),children:e})]})}):null};var Mn=0;function Os(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??eo()),document.body.insertAdjacentElement("beforeend",e[1]??eo()),Mn++,()=>{Mn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Mn--}},[])}function eo(){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 On="focusScope.autoFocusOnMount",Tn="focusScope.autoFocusOnUnmount",to={bubbles:!1,cancelable:!0},Pu="FocusScope",gr=a.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[c,d]=a.useState(null),u=gt(o),f=gt(s),p=a.useRef(null),g=Ce(t,h=>d(h)),m=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let h=function(y){if(m.paused||!c)return;const C=y.target;c.contains(C)?p.current=C:Ue(p.current,{select:!0})},v=function(y){if(m.paused||!c)return;const C=y.relatedTarget;C!==null&&(c.contains(C)||Ue(p.current,{select:!0}))},w=function(y){if(document.activeElement===document.body)for(const E of y)E.removedNodes.length>0&&Ue(c)};document.addEventListener("focusin",h),document.addEventListener("focusout",v);const b=new MutationObserver(w);return c&&b.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),b.disconnect()}}},[r,c,m.paused]),a.useEffect(()=>{if(c){ro.add(m);const h=document.activeElement;if(!c.contains(h)){const w=new CustomEvent(On,to);c.addEventListener(On,u),c.dispatchEvent(w),w.defaultPrevented||(Mu($u(Ts(c)),{select:!0}),document.activeElement===h&&Ue(c))}return()=>{c.removeEventListener(On,u),setTimeout(()=>{const w=new CustomEvent(Tn,to);c.addEventListener(Tn,f),c.dispatchEvent(w),w.defaultPrevented||Ue(h??document.body,{select:!0}),c.removeEventListener(Tn,f),ro.remove(m)},0)}}},[c,u,f,m]);const x=a.useCallback(h=>{if(!n&&!r||m.paused)return;const v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,w=document.activeElement;if(v&&w){const b=h.currentTarget,[y,C]=Ou(b);y&&C?!h.shiftKey&&w===C?(h.preventDefault(),n&&Ue(y,{select:!0})):h.shiftKey&&w===y&&(h.preventDefault(),n&&Ue(C,{select:!0})):w===b&&h.preventDefault()}},[n,r,m.paused]);return l.jsx(he.div,{tabIndex:-1,...i,ref:g,onKeyDown:x})});gr.displayName=Pu;function Mu(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ue(r,{select:t}),document.activeElement!==n)return}function Ou(e){const t=Ts(e),n=no(t,e),r=no(t.reverse(),e);return[n,r]}function Ts(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 no(e,t){for(const n of e)if(!Tu(n,{upTo:t}))return n}function Tu(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 Iu(e){return e instanceof HTMLInputElement&&"select"in e}function Ue(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Iu(e)&&t&&e.select()}}var ro=Du();function Du(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=oo(e,t),e.unshift(t)},remove(t){e=oo(e,t),e[0]?.resume()}}}function oo(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function $u(e){return e.filter(t=>t.tagName!=="A")}function Fu(e){const t=Bu(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,c=a.Children.toArray(s),d=c.find(Vu);if(d){const u=d.props.children,f=c.map(p=>p===d?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:p);return l.jsx(t,{...i,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,f):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Bu(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=Wu(o),c=Hu(s,o.props);return o.type!==a.Fragment&&(c.ref=r?Nt(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 zu=Symbol("radix.slottable");function Vu(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zu}function Hu(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 d=s(...c);return o(...c),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Wu(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var qu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ut=new WeakMap,Bt=new WeakMap,zt={},In=0,Is=function(e){return e&&(e.host||Is(e.parentNode))},Gu=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Is(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})},Uu=function(e,t,n,r){var o=Gu(t,Array.isArray(e)?e:[e]);zt[n]||(zt[n]=new WeakMap);var s=zt[n],i=[],c=new Set,d=new Set(o),u=function(p){!p||c.has(p)||(c.add(p),u(p.parentNode))};o.forEach(u);var f=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(g){if(c.has(g))f(g);else try{var m=g.getAttribute(r),x=m!==null&&m!=="false",h=(ut.get(g)||0)+1,v=(s.get(g)||0)+1;ut.set(g,h),s.set(g,v),i.push(g),h===1&&x&&Bt.set(g,!0),v===1&&g.setAttribute(n,"true"),x||g.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",g,w)}})};return f(t),c.clear(),In++,function(){i.forEach(function(p){var g=ut.get(p)-1,m=s.get(p)-1;ut.set(p,g),s.set(p,m),g||(Bt.has(p)||p.removeAttribute(r),Bt.delete(p)),m||p.removeAttribute(n)}),In--,In||(ut=new WeakMap,ut=new WeakMap,Bt=new WeakMap,zt={})}},Ds=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=qu(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Uu(r,o,n,"aria-hidden")):function(){return null}},Le=function(){return Le=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},Le.apply(this,arguments)};function $s(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 Zu(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 Yt="right-scroll-bar-position",Xt="width-before-scroll-bar",Yu="with-scroll-bars-hidden",Xu="--removed-body-scroll-bar-size";function Dn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ku(e,t){var n=_.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Qu=typeof window<"u"?a.useLayoutEffect:a.useEffect,so=new WeakMap;function Ju(e,t){var n=Ku(null,function(r){return e.forEach(function(o){return Dn(o,r)})});return Qu(function(){var r=so.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(c){s.has(c)||Dn(c,null)}),s.forEach(function(c){o.has(c)||Dn(c,i)})}so.set(n,e)},[e]),n}function e1(e){return e}function t1(e,t){t===void 0&&(t=e1);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 d=function(){var f=i;i=[],f.forEach(s)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(f){i.push(f),u()},filter:function(f){return i=i.filter(f),n}}}};return o}function n1(e){e===void 0&&(e={});var t=t1(null);return t.options=Le({async:!0,ssr:!1},e),t}var Fs=function(e){var t=e.sideCar,n=$s(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,Le({},n))};Fs.isSideCarExport=!0;function r1(e,t){return e.useMedium(t),Fs}var Bs=n1(),$n=function(){},vn=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:$n,onWheelCapture:$n,onTouchMoveCapture:$n}),o=r[0],s=r[1],i=e.forwardProps,c=e.children,d=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,g=e.sideCar,m=e.noRelative,x=e.noIsolation,h=e.inert,v=e.allowPinchZoom,w=e.as,b=w===void 0?"div":w,y=e.gapMode,C=$s(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=g,k=Ju([n,t]),S=Le(Le({},C),o);return a.createElement(a.Fragment,null,f&&a.createElement(E,{sideCar:Bs,removeScrollBar:u,shards:p,noRelative:m,noIsolation:x,inert:h,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:y}),i?a.cloneElement(a.Children.only(c),Le(Le({},S),{ref:k})):a.createElement(b,Le({},S,{className:d,ref:k}),c))});vn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};vn.classNames={fullWidth:Xt,zeroRight:Yt};var o1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function s1(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o1();return t&&e.setAttribute("nonce",t),e}function a1(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function i1(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var c1=function(){var e=0,t=null;return{add:function(n){e==0&&(t=s1())&&(a1(t,n),i1(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},l1=function(){var e=c1();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},zs=function(){var e=l1(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},d1={left:0,top:0,right:0,gap:0},Fn=function(e){return parseInt(e||"",10)||0},u1=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[Fn(n),Fn(r),Fn(o)]},f1=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return d1;var t=u1(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])}},p1=zs(),ht="data-scroll-locked",m1=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 b=require("react"),l=require("react/jsx-runtime"),Cn=require("react-dom");function aa(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 d=aa(b),ia=aa(Cn),dl=e=>d.createElement("svg",{width:17,height:17,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M0.5 8.50634L8.5 0.5L16.5 8.49975",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2.5 6.58643V16.4994H14.5V6.56641",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M6.5 16.4998V10.5H10.5",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),ul=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.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"})),fl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5774)"},d.createElement("path",{d:"M8.24567 14.0242H0.666672V0.666992H6.60323L10.5609 4.6247V9.57183",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M6.60417 0.666992V4.6247H10.5619",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M12.638 12.54L13.8254 13.7405L15.0127 12.54",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.07781 12.5403L7.89047 11.3398L6.70312 12.5403",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.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"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5774"},d.createElement("rect",{width:16,height:16,fill:"white"})))),hl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5680)"},d.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"}),d.createElement("path",{d:"M14.2521 6L9.0879 11.1766L8 14L10.8358 12.9333L16 7.75667L14.2521 6Z",stroke:"currentColor",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.33339 11.333L10.6667 12.6663",stroke:"currentColor",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5680"},d.createElement("rect",{width:16,height:16,fill:"white"})))),ml=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.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"}),d.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"}),d.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"}),d.createElement("path",{d:"M4.59114 11.9824L8.32766 14.6673L12.061 12.0228",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.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"}),d.createElement("path",{d:"M5.05725 3.93359L8.32711 4.40026L11.5938 3.93359",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2.25781 1.69336V7.20001",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),pl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M6.9329 14H2V9.06713H6.9329V14Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M6.9329 6.60059H2V1.66765H6.9329V6.60059Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M14.3343 14H9.40144V9.06713H14.3343V14Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M14.3343 6.60059H9.40144V1.66765H14.3343V6.60059Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),gl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5733)"},d.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"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5733"},d.createElement("rect",{width:16,height:16,fill:"white"})))),vl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5852)"},d.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"}),d.createElement("circle",{cx:7.66097,cy:13.1607,r:.431202,fill:"currentColor"}),d.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"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5852"},d.createElement("rect",{width:16,height:16,fill:"white"})))),bl=e=>d.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},d.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"})),wl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.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"}),d.createElement("path",{d:"M13.2002 5.66699H2V15.0005H13.2002V5.66699Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),yl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5666)"},d.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"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5666"},d.createElement("rect",{width:16,height:16,fill:"white"})))),xl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5649)"},d.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"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5649"},d.createElement("rect",{width:16,height:16,fill:"white"})))),_l=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5794)"},d.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"}),d.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"}),d.createElement("path",{d:"M12.6849 12.6797L14.6718 14.6666",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5794"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Cl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5697)"},d.createElement("path",{d:"M11.4479 1.33301H13.3353V3.22339",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2.66681 7.55537L6.66986 3.99973L9.33659 5.3331L13.3367 1.33301",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M12.4479 14.6664V5.77734H14.2257V14.6664",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M8.89062 14.6662V10.2246H10.6684V14.6662",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M5.33333 14.6665V8.8916H7.11411V14.6665",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M1.77864 14.6667V12.0029H3.55646V14.6667",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M14.6699 14.667H1.33333",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5697"},d.createElement("rect",{width:16,height:16,fill:"white"})))),kl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.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"}),d.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"}),d.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"}),d.createElement("path",{d:"M3.32143 4.5H7.96428",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M3.32143 7H4.71428",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),El=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.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"}),d.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"})),Sl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.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"})),Nl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.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"})),Ml=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.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"})),jl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.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"})),Ol=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.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"})),Dl=e=>d.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},d.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"})),Pl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.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"})),ca=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.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"}),d.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"}),d.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"})),hr=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.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"}),d.createElement("path",{d:"M10.4727 10.4707L15.9994 16.0007",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),Rl=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M19 12.5H6M19 12.5L14.3333 8M19 12.5L14.3333 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),It=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.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"})),Tl=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.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)"})),st=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M13 3L8 8M3 13L8 8M8 8L3 3L13 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),Al=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{width:24,height:24,rx:12,fill:"#FFEEEE"}),d.createElement("path",{d:"M7.5 7.5L16.5 16.5M7.5 16.5L16.5 7.5",stroke:"#D72D40",strokeWidth:1.4,strokeLinecap:"round"})),Il=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{width:24,height:24,rx:12,fill:"#E0F4F0"}),d.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"})),Ll=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{width:24,height:24,rx:12,fill:"#E0F1FF"}),d.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"})),Co=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.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"}),d.createElement("path",{d:"M8 11.6226L10.8813 15L16 9",stroke:"white",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),la=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.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"}),d.createElement("path",{d:"M15.6912 8.31348L8.30859 15.6917",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M15.6947 15.6917L8.31641 8.31348",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),da=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.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"}),d.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"}),d.createElement("circle",{cx:11.8605,cy:16.7795,r:1,fill:"white",stroke:"white",strokeWidth:.572616})),ua=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M15 3H1V13H15V3Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M1 3L8 10.3433L15 3",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M10.3359 7.89648L15.0026 12.9998",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M1 12.9998L5.66667 7.89648",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),Wl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.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"}),d.createElement("circle",{cx:4.98438,cy:7.66211,r:.75,fill:"currentColor"}),d.createElement("circle",{cx:7.875,cy:7.66211,r:.75,fill:"currentColor"}),d.createElement("circle",{cx:10.7656,cy:7.66211,r:.75,fill:"currentColor"})),Fl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.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"})),Bl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.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"}),d.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"})),fa=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"#000000",style:{opacity:1},...e},d.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"})),ha=e=>d.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},d.createElement("path",{fill:"none",d:"M12 11v5m0 5a9 9 0 1 1 0-18a9 9 0 0 1 0 18m.05-13v.1h-.1V8z"})),$l=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.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"})),ma=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.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"})),zl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.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"})),Hl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.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"})),pa=e=>d.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},d.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"}),d.createElement("circle",{cx:25.435,cy:25.065,r:5.565}),d.createElement("path",{d:"M21.5 29L17 33.5"})),Yl=e=>d.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},d.createElement("path",{d:"M19 3v4m0 14V11m-7-8v12m0 6v-2M5 3v2m0 16V9"}),d.createElement("circle",{cx:19,cy:9,r:2,transform:"rotate(90 19 9)"}),d.createElement("circle",{cx:12,cy:17,r:2,transform:"rotate(90 12 17)"}),d.createElement("circle",{cx:5,cy:7,r:2,transform:"rotate(90 5 7)"})),Vl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:24,height:24,fill:"#000000",style:{opacity:1},...e},d.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"})),ql=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.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"})),ga=e=>d.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},d.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 va=(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))(va||{});function Gl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ir={exports:{}};var os;function Ul(){return os||(os=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",a=0;a<arguments.length;a++){var i=arguments[a];i&&(s=o(s,r(i)))}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 a="";for(var i in s)t.call(s,i)&&s[i]&&(a=o(a,i));return a}function o(s,a){return a?s?s+" "+a:s+a:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ir)),Ir.exports}var Zl=Ul();const O=Gl(Zl),Xl="_block_tkxaf_1",Kl="_subtitle_tkxaf_6",Ql="_title_tkxaf_13",Lr={block:Xl,subtitle:Kl,title:Ql},Jl=({id:e,title:t,subtitle:n,children:r,className:o})=>l.jsxs("div",{className:O(Lr.block,o),id:e,children:[t&&typeof t=="string"?l.jsx("div",{className:Lr.title,children:t}):t,n&&l.jsx("div",{className:Lr.subtitle,children:n}),r]});function ss(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function kn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=ss(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():ss(e[o],null)}}}}function ze(...e){return d.useCallback(kn(...e),e)}var ed=Symbol.for("react.lazy"),sr=d[" use ".trim().toString()];function td(e){return typeof e=="object"&&e!==null&&"then"in e}function ba(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ed&&"_payload"in e&&td(e._payload)}function wa(e){const t=rd(e),n=d.forwardRef((r,o)=>{let{children:s,...a}=r;ba(s)&&typeof sr=="function"&&(s=sr(s._payload));const i=d.Children.toArray(s),c=i.find(sd);if(c){const u=c.props.children,f=i.map(h=>h===c?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return l.jsx(t,{...a,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return l.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var nd=wa("Slot");function rd(e){const t=d.forwardRef((n,r)=>{let{children:o,...s}=n;if(ba(o)&&typeof sr=="function"&&(o=sr(o._payload)),d.isValidElement(o)){const a=id(o),i=ad(s,o.props);return o.type!==d.Fragment&&(i.ref=r?kn(r,a):a),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var od=Symbol("radix.slottable");function sd(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===od}function ad(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function id(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 ya(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=ya(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function xa(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ya(e))&&(r&&(r+=" "),r+=t);return r}const as=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,is=xa,_a=(e,t)=>n=>{var r;if(t?.variants==null)return is(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(u=>{const f=n?.[u],h=s?.[u];if(f===null)return null;const g=as(f)||as(h);return o[u][g]}),i=n&&Object.entries(n).reduce((u,f)=>{let[h,g]=f;return g===void 0||(u[h]=g),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:h,className:g,...m}=f;return Object.entries(m).every(w=>{let[p,v]=w;return Array.isArray(v)?v.includes({...s,...i}[p]):{...s,...i}[p]===v})?[...u,h,g]:u},[]);return is(e,a,c,n?.class,n?.className)},cd=(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},ld=(e,t)=>({classGroupId:e,validator:t}),Ca=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ar="-",cs=[],dd="arbitrary..",ud=e=>{const t=hd(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return fd(a);const i=a.split(ar),c=i[0]===""&&i.length>1?1:0;return ka(i,c,t)},getConflictingClassGroupIds:(a,i)=>{if(i){const c=r[a],u=n[a];return c?u?cd(u,c):c:u||cs}return n[a]||cs}}},ka=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const u=ka(e,t+1,s);if(u)return u}const a=n.validators;if(a===null)return;const i=t===0?e.join(ar):e.slice(t).join(ar),c=a.length;for(let u=0;u<c;u++){const f=a[u];if(f.validator(i))return f.classGroupId}},fd=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?dd+r:void 0})(),hd=e=>{const{theme:t,classGroups:n}=e;return md(n,t)},md=(e,t)=>{const n=Ca();for(const r in e){const o=e[r];ko(o,n,r,t)}return n},ko=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const a=e[s];pd(a,t,n,r)}},pd=(e,t,n,r)=>{if(typeof e=="string"){gd(e,t,n);return}if(typeof e=="function"){vd(e,t,n,r);return}bd(e,t,n,r)},gd=(e,t,n)=>{const r=e===""?t:Ea(t,e);r.classGroupId=n},vd=(e,t,n,r)=>{if(wd(e)){ko(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(ld(n,e))},bd=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let a=0;a<s;a++){const[i,c]=o[a];ko(c,Ea(t,i),n,r)}},Ea=(e,t)=>{let n=e;const r=t.split(ar),o=r.length;for(let s=0;s<o;s++){const a=r[s];let i=n.nextPart.get(a);i||(i=Ca(),n.nextPart.set(a,i)),n=i}return n},wd=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,yd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(s,a)=>{n[s]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let a=n[s];if(a!==void 0)return a;if((a=r[s])!==void 0)return o(s,a),a},set(s,a){s in n?n[s]=a:o(s,a)}}},so="!",ls=":",xd=[],ds=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),_d=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let a=0,i=0,c=0,u;const f=o.length;for(let p=0;p<f;p++){const v=o[p];if(a===0&&i===0){if(v===ls){s.push(o.slice(c,p)),c=p+1;continue}if(v==="/"){u=p;continue}}v==="["?a++:v==="]"?a--:v==="("?i++:v===")"&&i--}const h=s.length===0?o:o.slice(c);let g=h,m=!1;h.endsWith(so)?(g=h.slice(0,-1),m=!0):h.startsWith(so)&&(g=h.slice(1),m=!0);const w=u&&u>c?u-c:void 0;return ds(s,m,g,w)};if(t){const o=t+ls,s=r;r=a=>a.startsWith(o)?s(a.slice(o.length)):ds(xd,!1,a,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Cd=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 a=n[s],i=a[0]==="[",c=t.has(a);i||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(a)):o.push(a)}return o.length>0&&(o.sort(),r.push(...o)),r}},kd=e=>({cache:yd(e.cacheSize),parseClassName:_d(e),sortModifiers:Cd(e),...ud(e)}),Ed=/\s+/,Sd=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(Ed);let c="";for(let u=i.length-1;u>=0;u-=1){const f=i[u],{isExternal:h,modifiers:g,hasImportantModifier:m,baseClassName:w,maybePostfixModifierPosition:p}=n(f);if(h){c=f+(c.length>0?" "+c:c);continue}let v=!!p,y=r(v?w.substring(0,p):w);if(!y){if(!v){c=f+(c.length>0?" "+c:c);continue}if(y=r(w),!y){c=f+(c.length>0?" "+c:c);continue}v=!1}const x=g.length===0?"":g.length===1?g[0]:s(g).join(":"),_=m?x+so:x,C=_+y;if(a.indexOf(C)>-1)continue;a.push(C);const E=o(y,v);for(let k=0;k<E.length;++k){const S=E[k];a.push(_+S)}c=f+(c.length>0?" "+c:c)}return c},Nd=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=Sa(n))&&(o&&(o+=" "),o+=r);return o},Sa=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Sa(e[r]))&&(n&&(n+=" "),n+=t);return n},Md=(e,...t)=>{let n,r,o,s;const a=c=>{const u=t.reduce((f,h)=>h(f),e());return n=kd(u),r=n.cache.get,o=n.cache.set,s=i,i(c)},i=c=>{const u=r(c);if(u)return u;const f=Sd(c,n);return o(c,f),f};return s=a,(...c)=>s(Nd(...c))},jd=[],ke=e=>{const t=n=>n[e]||jd;return t.isThemeGetter=!0,t},Na=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ma=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Od=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Dd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pd=/\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$/,Rd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Td=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ad=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,yt=e=>Od.test(e),Q=e=>!!e&&!Number.isNaN(Number(e)),xt=e=>!!e&&Number.isInteger(Number(e)),Wr=e=>e.endsWith("%")&&Q(e.slice(0,-1)),ft=e=>Dd.test(e),ja=()=>!0,Id=e=>Pd.test(e)&&!Rd.test(e),Eo=()=>!1,Ld=e=>Td.test(e),Wd=e=>Ad.test(e),Fd=e=>!A(e)&&!I(e),Bd=e=>jt(e,Pa,Eo),A=e=>Na.test(e),Pt=e=>jt(e,Ra,Id),us=e=>jt(e,Ud,Q),$d=e=>jt(e,Aa,ja),zd=e=>jt(e,Ta,Eo),fs=e=>jt(e,Oa,Eo),Hd=e=>jt(e,Da,Wd),$n=e=>jt(e,Ia,Ld),I=e=>Ma.test(e),ln=e=>Ft(e,Ra),Yd=e=>Ft(e,Ta),hs=e=>Ft(e,Oa),Vd=e=>Ft(e,Pa),qd=e=>Ft(e,Da),zn=e=>Ft(e,Ia,!0),Gd=e=>Ft(e,Aa,!0),jt=(e,t,n)=>{const r=Na.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ft=(e,t,n=!1)=>{const r=Ma.exec(e);return r?r[1]?t(r[1]):n:!1},Oa=e=>e==="position"||e==="percentage",Da=e=>e==="image"||e==="url",Pa=e=>e==="length"||e==="size"||e==="bg-size",Ra=e=>e==="length",Ud=e=>e==="number",Ta=e=>e==="family-name",Aa=e=>e==="number"||e==="weight",Ia=e=>e==="shadow",Zd=()=>{const e=ke("color"),t=ke("font"),n=ke("text"),r=ke("font-weight"),o=ke("tracking"),s=ke("leading"),a=ke("breakpoint"),i=ke("container"),c=ke("spacing"),u=ke("radius"),f=ke("shadow"),h=ke("inset-shadow"),g=ke("text-shadow"),m=ke("drop-shadow"),w=ke("blur"),p=ke("perspective"),v=ke("aspect"),y=ke("ease"),x=ke("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(),I,A],k=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],N=()=>[I,A,c],D=()=>[yt,"full","auto",...N()],j=()=>[xt,"none","subgrid",I,A],L=()=>["auto",{span:["full",xt,I,A]},xt,I,A],P=()=>[xt,"auto",I,A],T=()=>["auto","min","max","fr",I,A],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...N()],q=()=>[yt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],Y=()=>[yt,"screen","full","dvw","lvw","svw","min","max","fit",...N()],U=()=>[yt,"screen","full","lh","dvh","lvh","svh","min","max","fit",...N()],M=()=>[e,I,A],J=()=>[...C(),hs,fs,{position:[I,A]}],ue=()=>["no-repeat",{repeat:["","x","y","space","round"]}],he=()=>["auto","cover","contain",Vd,Bd,{size:[I,A]}],pe=()=>[Wr,ln,Pt],Z=()=>["","none","full",u,I,A],ee=()=>["",Q,ln,Pt],fe=()=>["solid","dashed","dotted","double"],Se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>[Q,Wr,hs,fs],F=()=>["","none",w,I,A],be=()=>["none",Q,I,A],Ne=()=>["none",Q,I,A],Te=()=>[Q,I,A],Ye=()=>[yt,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ft],breakpoint:[ft],color:[ja],container:[ft],"drop-shadow":[ft],ease:["in","out","in-out"],font:[Fd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ft],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ft],shadow:[ft],spacing:["px",Q],text:[ft],"text-shadow":[ft],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",yt,A,I,v]}],container:["container"],columns:[{columns:[Q,A,I,i]}],"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:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[xt,"auto",I,A]}],basis:[{basis:[yt,"full","auto",i,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Q,yt,"auto","initial","none",A]}],grow:[{grow:["",Q,I,A]}],shrink:[{shrink:["",Q,I,A]}],order:[{order:[xt,"first","last","none",I,A]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":T()}],"auto-rows":[{"auto-rows":T()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],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:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mbs:[{mbs:R()}],mbe:[{mbe:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],"inline-size":[{inline:["auto",...Y()]}],"min-inline-size":[{"min-inline":["auto",...Y()]}],"max-inline-size":[{"max-inline":["none",...Y()]}],"block-size":[{block:["auto",...U()]}],"min-block-size":[{"min-block":["auto",...U()]}],"max-block-size":[{"max-block":["none",...U()]}],w:[{w:[i,"screen",...q()]}],"min-w":[{"min-w":[i,"screen","none",...q()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",n,ln,Pt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Gd,$d]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Wr,A]}],"font-family":[{font:[Yd,zd,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,I,A]}],"line-clamp":[{"line-clamp":[Q,"none",I,us]}],leading:[{leading:[s,...N()]}],"list-image":[{"list-image":["none",I,A]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",I,A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Q,"from-font","auto",I,Pt]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[Q,"auto",I,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",I,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",I,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:J()}],"bg-repeat":[{bg:ue()}],"bg-size":[{bg:he()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},xt,I,A],radial:["",I,A],conic:[xt,I,A]},qd,Hd]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:pe()}],"gradient-via-pos":[{via:pe()}],"gradient-to-pos":[{to:pe()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:Z()}],"rounded-s":[{"rounded-s":Z()}],"rounded-e":[{"rounded-e":Z()}],"rounded-t":[{"rounded-t":Z()}],"rounded-r":[{"rounded-r":Z()}],"rounded-b":[{"rounded-b":Z()}],"rounded-l":[{"rounded-l":Z()}],"rounded-ss":[{"rounded-ss":Z()}],"rounded-se":[{"rounded-se":Z()}],"rounded-ee":[{"rounded-ee":Z()}],"rounded-es":[{"rounded-es":Z()}],"rounded-tl":[{"rounded-tl":Z()}],"rounded-tr":[{"rounded-tr":Z()}],"rounded-br":[{"rounded-br":Z()}],"rounded-bl":[{"rounded-bl":Z()}],"border-w":[{border:ee()}],"border-w-x":[{"border-x":ee()}],"border-w-y":[{"border-y":ee()}],"border-w-s":[{"border-s":ee()}],"border-w-e":[{"border-e":ee()}],"border-w-bs":[{"border-bs":ee()}],"border-w-be":[{"border-be":ee()}],"border-w-t":[{"border-t":ee()}],"border-w-r":[{"border-r":ee()}],"border-w-b":[{"border-b":ee()}],"border-w-l":[{"border-l":ee()}],"divide-x":[{"divide-x":ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Q,I,A]}],"outline-w":[{outline:["",Q,ln,Pt]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",f,zn,$n]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",h,zn,$n]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[Q,Pt]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":ee()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",g,zn,$n]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[Q,I,A]}],"mix-blend":[{"mix-blend":[...Se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Se()}],"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":re()}],"mask-image-linear-to-pos":[{"mask-linear-to":re()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":re()}],"mask-image-t-to-pos":[{"mask-t-to":re()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":re()}],"mask-image-r-to-pos":[{"mask-r-to":re()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":re()}],"mask-image-b-to-pos":[{"mask-b-to":re()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":re()}],"mask-image-l-to-pos":[{"mask-l-to":re()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":re()}],"mask-image-x-to-pos":[{"mask-x-to":re()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":re()}],"mask-image-y-to-pos":[{"mask-y-to":re()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[I,A]}],"mask-image-radial-from-pos":[{"mask-radial-from":re()}],"mask-image-radial-to-pos":[{"mask-radial-to":re()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"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":re()}],"mask-image-conic-to-pos":[{"mask-conic-to":re()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:J()}],"mask-repeat":[{mask:ue()}],"mask-size":[{mask:he()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",I,A]}],filter:[{filter:["","none",I,A]}],blur:[{blur:F()}],brightness:[{brightness:[Q,I,A]}],contrast:[{contrast:[Q,I,A]}],"drop-shadow":[{"drop-shadow":["","none",m,zn,$n]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",Q,I,A]}],"hue-rotate":[{"hue-rotate":[Q,I,A]}],invert:[{invert:["",Q,I,A]}],saturate:[{saturate:[Q,I,A]}],sepia:[{sepia:["",Q,I,A]}],"backdrop-filter":[{"backdrop-filter":["","none",I,A]}],"backdrop-blur":[{"backdrop-blur":F()}],"backdrop-brightness":[{"backdrop-brightness":[Q,I,A]}],"backdrop-contrast":[{"backdrop-contrast":[Q,I,A]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Q,I,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Q,I,A]}],"backdrop-invert":[{"backdrop-invert":["",Q,I,A]}],"backdrop-opacity":[{"backdrop-opacity":[Q,I,A]}],"backdrop-saturate":[{"backdrop-saturate":[Q,I,A]}],"backdrop-sepia":[{"backdrop-sepia":["",Q,I,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",I,A]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Q,"initial",I,A]}],ease:[{ease:["linear","initial",y,I,A]}],delay:[{delay:[Q,I,A]}],animate:[{animate:["none",x,I,A]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,I,A]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:be()}],"rotate-x":[{"rotate-x":be()}],"rotate-y":[{"rotate-y":be()}],"rotate-z":[{"rotate-z":be()}],scale:[{scale:Ne()}],"scale-x":[{"scale-x":Ne()}],"scale-y":[{"scale-y":Ne()}],"scale-z":[{"scale-z":Ne()}],"scale-3d":["scale-3d"],skew:[{skew:Te()}],"skew-x":[{"skew-x":Te()}],"skew-y":[{"skew-y":Te()}],transform:[{transform:[I,A,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ye()}],"translate-x":[{"translate-x":Ye()}],"translate-y":[{"translate-y":Ye()}],"translate-z":[{"translate-z":Ye()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"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",I,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",I,A]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[Q,ln,Pt,us]}],stroke:[{stroke:["none",...M()]}],"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"]}},Xd=Md(Zd);function K(...e){return Xd(xa(e))}const ao=_a("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"}}),mr=d.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const a=r?nd:"button";return l.jsx(a,{className:K(ao({variant:t,size:n,className:e})),ref:s,...o})});mr.displayName="Button";const Kd="_cssloadSpeedingWheel_akex8_6",Qd="_bigSize_akex8_20",Jd="_smallSize_akex8_26",eu="_extraSmallSize_akex8_32",Hn={cssloadSpeedingWheel:Kd,bigSize:Qd,smallSize:Jd,extraSmallSize:eu};function tu(e){return e==="medium"?"small":e==="large"?"big":e}const Ze=({marginTop:e,marginBottom:t,marginLeft:n,className:r,size:o="big"})=>{const s=b.useMemo(()=>({marginTop:e,marginBottom:t,marginLeft:n}),[t,n,e]),a=tu(o);return l.jsx("div",{className:r,style:s,children:l.jsx("div",{className:O(Hn.cssloadSpeedingWheel,{[Hn.bigSize]:a==="big",[Hn.smallSize]:a==="small",[Hn.extraSmallSize]:a==="extraSmall"})})})},nu="_button_fafaj_1",ru="_button__loader_fafaj_186",ou="_button__content_fafaj_193",Ht={button:nu,"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:ru,button__content:ou},ye=b.forwardRef(({variant:e="default",size:t="medium",className:n="",loading:r=!1,disabled:o=!1,children:s,type:a="button",...i},c)=>{const u=O(Ht.button,Ht[`button--variant-${e}`],Ht[`button--size-${t}`],{[Ht["button--loading"]]:r,[Ht["button--disabled"]]:o},n);return l.jsxs(mr,{ref:c,variant:null,size:null,className:u,disabled:o||r,type:a,...i,children:[s&&s,r&&l.jsx("span",{className:Ht.button__loader,children:l.jsx(Ze,{size:"extraSmall"})})]})});ye.displayName="Button";const La=e=>{const[t,n]=b.useState(0),[r,o]=b.useState(0),s=b.useRef(null);return b.useEffect(()=>{if(!e)return;const i=new ResizeObserver(u=>{s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{for(const f of u)if(f.borderBoxSize){const h=Array.isArray(f.borderBoxSize)?f.borderBoxSize[0]:f.borderBoxSize;n(h.blockSize),o(h.inlineSize)}else n(f.contentRect.height),o(f.contentRect.width)})});i.observe(e);const c=e.getBoundingClientRect().height;return n(c),()=>{i.disconnect()}},[e,n]),b.useMemo(()=>({height:t,width:r}),[t,r])},ms={capture:!0,passive:!0},su=({triggerRef:e,dropdownHeight:t,offset:n=8,enabled:r=!0,onAnchorFrame:o})=>{const[s,a]=b.useState("bottom"),i=b.useRef(null),c=b.useCallback(()=>{if(!e.current)return"bottom";const f=e.current.getBoundingClientRect(),h=window.innerHeight,g=f.top-n;return h-f.bottom-n>=t?"bottom":g>=t?"top":"bottom"},[e,t,n]),u=b.useCallback(()=>{i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{const f=c();a(f),o?.(f)})},[c,o]);return b.useEffect(()=>{if(!r)return;const f=e.current;if(!f)return;u();const h=new ResizeObserver(()=>{u()});h.observe(f);const g=new MutationObserver(()=>{u()});g.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]});const m=[];let w=f.parentElement;for(;w;){const p=window.getComputedStyle(w),v=p.overflow+p.overflowY+p.overflowX;/(auto|scroll)/.test(v)&&(m.push(w),w.addEventListener("scroll",u)),w=w.parentElement}return window.addEventListener("scroll",u,ms),window.addEventListener("resize",u),window.addEventListener("transitionend",u),window.addEventListener("animationend",u),()=>{i.current&&cancelAnimationFrame(i.current),h.disconnect(),g.disconnect(),window.removeEventListener("scroll",u,ms),window.removeEventListener("resize",u),window.removeEventListener("transitionend",u),window.removeEventListener("animationend",u),m.forEach(p=>{p.removeEventListener("scroll",u)})}},[r,e,u]),s},au="_container_1dkro_1",iu="_activeButton_1dkro_16",cu="_slider_1dkro_22",Fr={container:au,activeButton:iu,slider:cu},lu=({options:e,value:t,defaultValue:n,data:r,activeButton:o,defaultActiveButton:s,onChange:a})=>{const i=b.useMemo(()=>e?.length?e.map(y=>({id:y.value,label:y.label,additionalComponent:y.additionalComponent})):r??[],[e,r]),[c,u]=b.useState(()=>n??s??i[0]?.id),[f,h]=b.useState({transform:"translateX(0)",width:0}),g=b.useRef(new Map),m=t??o??c,{width:w}=La(g.current.get(m)),p=y=>{y.id!==m&&(a?.(y.id),u(y.id))},v=b.useCallback((y,x)=>{g.current.set(x,y)},[]);return b.useEffect(()=>{const y=i.findIndex(x=>x.id===m);if(y>=0){const _=i.slice(0,y).reduce((C,E)=>{const k=g.current.get(E.id);if(k){const S=k.getBoundingClientRect().width;C+=S}return C},0);h({transform:`translateX(${_}px)`,width:w})}},[m,w,i]),l.jsxs("div",{className:Fr.container,children:[i.map(y=>l.jsx("div",{ref:x=>v(x,y.id),children:l.jsxs(ye,{size:"small",onClick:()=>p(y),className:O({[Fr.activeButton]:y.id===m}),children:[y.label,y.additionalComponent]})},y.id)),l.jsx("div",{className:Fr.slider,style:f})]})},du="_card_1cqzz_1",uu="_link_1cqzz_17",ps={card:du,link:uu},fu=b.memo(({text:e,width:t,height:n,className:r,backgroundColor:o,imageUrl:s,textColor:a,link:i})=>{const c=O(ps.card,{[ps.link]:i},r),u=b.useMemo(()=>({backgroundColor:o,...a&&{color:a},...t&&{width:t},...n&&{height:`${n}px`},...s&&{backgroundImage:`url(${s})`}}),[o,n,s,a,t]);return i?l.jsx("a",{className:c,style:u,href:i,children:l.jsx("span",{children:e})}):l.jsx("div",{className:c,style:u,children:l.jsx("span",{children:e})})}),hu="_carouselWrapper_12142_1",mu="_carousel_12142_1",pu="_viewport_12142_13",gu="_slide_12142_19",vu="_activeSlide_12142_24",bu="_itemContent_12142_28",wu="_controls_12142_36",yu="_carouselControl_12142_48",xu="_prevIcon_12142_71",_u="_nextIcon_12142_72",Cu="_indicators_12142_90",ku="_activeIndicator_12142_115",Ae={carouselWrapper:hu,carousel:mu,viewport:pu,slide:gu,activeSlide:vu,itemContent:bu,controls:wu,carouselControl:yu,prevIcon:xu,nextIcon:_u,indicators:Cu,activeIndicator:ku},Eu=e=>"items"in e&&Array.isArray(e.items)&&"renderItem"in e&&typeof e.renderItem=="function",Su=e=>Eu(e)?e.items.map((t,n)=>({key:`${t.id}-${n}`,content:e.renderItem(t),caption:t.caption})):b.Children.toArray(e.children).map((t,n)=>({key:b.isValidElement(t)&&t.key!==null&&t.key!==void 0&&t.key!=="."?String(t.key):`slide-${n}`,content:t})),Nu=e=>{const t={...e};return delete t.items,delete t.renderItem,delete t.children,t},Mu=e=>{const t=Su(e),n=t.length,r=Nu(e),{className:o,dark:s,enableTouch:a,fade:i,interval:c,keyboard:u=!0,pause:f,ride:h,slide:g,...m}=r,[w,p]=b.useState(0),v=()=>{p(k=>k===n-1?0:k+1)},y=()=>{p(k=>k===0?n-1:k-1)},x=k=>{p(k)},_=n>1,C=b.useMemo(()=>t.map(k=>({key:k.key})),[t]),E=k=>{m.onKeyDown?.(k),!(k.defaultPrevented||!u||!_)&&(k.key==="ArrowLeft"&&y(),k.key==="ArrowRight"&&v())};return n?_?l.jsx("div",{className:Ae.carouselWrapper,children:l.jsxs("div",{...m,className:[Ae.carousel,o].filter(Boolean).join(" "),onKeyDown:E,role:"region","aria-roledescription":"carousel",children:[l.jsx("div",{className:Ae.viewport,children:t.map((k,S)=>l.jsx("div",{className:[Ae.slide,S===w?Ae.activeSlide:""].filter(Boolean).join(" "),"aria-hidden":S!==w,children:l.jsx("div",{className:Ae.itemContent,children:k.content})},k.key))}),l.jsxs("div",{className:Ae.controls,children:[l.jsx("button",{className:Ae.carouselControl,type:"button",onClick:y,"aria-label":"Previous slide",children:l.jsx("span",{className:Ae.prevIcon,"aria-hidden":"true"})}),l.jsx("div",{className:Ae.indicators,children:C.map((k,S)=>l.jsx("button",{className:S===w?Ae.activeIndicator:void 0,type:"button",onClick:()=>x(S),"aria-label":`Go to slide ${S+1}`,"aria-current":S===w},k.key))}),l.jsx("button",{className:Ae.carouselControl,type:"button",onClick:v,"aria-label":"Next slide",children:l.jsx("span",{className:Ae.nextIcon,"aria-hidden":"true"})})]})]})}):l.jsx("div",{className:Ae.carouselWrapper,children:t[0].content}):null},Le=8;function ju(e,t="top"){const{left:n,right:r,top:o,bottom:s,width:a,height:i}=e,c=n+a/2,u=o+i/2;switch(t){case"top":return{left:c,top:o-Le,transform:"translate(-50%, -100%)"};case"topLeft":return{left:n,top:o-Le,transform:"translateY(-100%)"};case"topRight":return{left:r,top:o-Le,transform:"translate(-100%, -100%)"};case"bottom":return{left:c,top:s+Le,transform:"translate(-50%, 0)"};case"bottomLeft":return{left:n,top:s+Le,transform:"translateY(0)"};case"bottomRight":return{left:r,top:s+Le,transform:"translate(-100%, 0)"};case"left":return{left:n-Le,top:u,transform:"translate(-100%, -50%)"};case"leftTop":return{left:n-Le,top:o,transform:"translate(-100%, 0)"};case"leftBottom":return{left:n-Le,top:s,transform:"translate(-100%, -100%)"};case"right":return{left:r+Le,top:u,transform:"translate(0, -50%)"};case"rightTop":return{left:r+Le,top:o,transform:"translate(0, 0)"};case"rightBottom":return{left:r+Le,top:s,transform:"translate(0, -100%)"};default:return{left:c,top:o-Le,transform:"translate(-50%, -100%)"}}}const Ou="_overlay_1pnex_1",Du="_fadeIn_1pnex_1",Pu="_arrow_1pnex_16",Ru="_top_1pnex_22",Tu="_bottom_1pnex_28",Au="_left_1pnex_34",Iu="_right_1pnex_40",Br={overlay:Ou,fadeIn:Du,arrow:Pu,top:Ru,bottom:Tu,left:Au,right:Iu};function Lu(e){return e.startsWith("top")?"bottom":e.startsWith("bottom")?"top":e.startsWith("left")?"right":e.startsWith("right")?"left":"top"}const So=b.memo(({title:e,content:t,open:n,defaultOpen:r=!1,trigger:o="hover",mouseEnterDelay:s=100,mouseLeaveDelay:a=100,onOpenChange:i,placement:c="top",arrow:u=!0,children:f,overlayClassName:h,getPopupContainer:g=()=>document.body})=>{const m=n!==void 0,[w,p]=b.useState(r),v=m?n:w,y=b.useCallback(M=>{m||p(M),i?.(M)},[m,i]),x=b.useRef(null),[_,C]=b.useState(null),E=b.useRef(null),k=b.useRef(null),S=Array.isArray(o)?o:[o],N=S.includes("hover"),D=S.includes("click"),j=b.useCallback(()=>{E.current&&(clearTimeout(E.current),E.current=null)},[]),L=b.useCallback(()=>{k.current&&(clearTimeout(k.current),k.current=null)},[]),P=b.useCallback(()=>{N&&(L(),E.current=setTimeout(()=>y(!0),s))},[N,s,y,L]),T=b.useCallback(()=>{N&&(j(),k.current=setTimeout(()=>y(!1),a))},[N,a,y,j]),W=b.useCallback(M=>{D&&(M.preventDefault(),y(!v))},[D,v,y]);b.useEffect(()=>{if(!D||!v||m)return;const M=J=>{const ue=x.current;ue&&!ue.contains(J.target)&&y(!1)};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[D,v,m,y]),b.useLayoutEffect(()=>{if(!v||!x.current){C(null);return}const M=x.current.getBoundingClientRect();C(ju(M,c))},[v,c]),b.useEffect(()=>()=>{j(),L()},[j,L]);const V=typeof document<"u"?g():null,R=Lu(c),q=e??t,Y=v&&q!=null&&q!==""&&_&&V&&Cn.createPortal(l.jsxs("span",{className:O(Br.overlay,h),style:{left:_.left,top:_.top,transform:_.transform},role:"tooltip",children:[q,u&&l.jsx("span",{className:O(Br.arrow,Br[R])})]}),V),U=!m&&(N||D)?{onMouseEnter:P,onMouseLeave:T,onClick:D?W:void 0}:{};return l.jsxs(l.Fragment,{children:[l.jsx("span",{ref:x,...U,children:f}),Y]})});So.displayName="TooltipDark";const Wu="_wrapper_ukjvp_1",Fu="_trigger_ukjvp_5",Bu="_trigger_iconOnly_ukjvp_32",$u="_icon_ukjvp_43",Yn={wrapper:Wu,trigger:Fu,trigger_iconOnly:Bu,icon:$u},No=b.memo(({children:e,onClick:t,copied:n,tooltipText:r="Скопировано",ariaLabel:o,showIcon:s=!0,iconOnly:a=!1,className:i})=>{const c=b.useCallback(()=>{t()},[t]);return l.jsx("span",{className:Yn.wrapper,children:l.jsx(So,{open:n,title:r,placement:"top",children:l.jsxs(mr,{type:"button",variant:null,size:null,className:O(Yn.trigger,a&&Yn.trigger_iconOnly,i),onClick:c,"aria-label":o,"aria-live":"polite",children:[!a&&e,s&&l.jsx(fa,{className:Yn.icon,"aria-hidden":!0})]})})})});No.displayName="CopyTextTrigger";function Wa(e){return typeof document>"u"?null:Cn.createPortal(e,document.body)}function Ee(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function zu(e,t){const n=d.createContext(t),r=s=>{const{children:a,...i}=s,c=d.useMemo(()=>i,Object.values(i));return l.jsx(n.Provider,{value:c,children:a})};r.displayName=e+"Provider";function o(s){const a=d.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function pr(e,t=[]){let n=[];function r(s,a){const i=d.createContext(a),c=n.length;n=[...n,a];const u=h=>{const{scope:g,children:m,...w}=h,p=g?.[e]?.[c]||i,v=d.useMemo(()=>w,Object.values(w));return l.jsx(p.Provider,{value:v,children:m})};u.displayName=s+"Provider";function f(h,g){const m=g?.[e]?.[c]||i,w=d.useContext(m);if(w)return w;if(a!==void 0)return a;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(a=>d.createContext(a));return function(i){const c=i?.[e]||s;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[r,Hu(o,...t)]}function Hu(...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 a=r.reduce((i,{useScope:c,scopeName:u})=>{const h=c(s)[`__scope${u}`];return{...i,...h}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Yu(e){const t=Vu(e),n=d.forwardRef((r,o)=>{const{children:s,...a}=r,i=d.Children.toArray(s),c=i.find(Gu);if(c){const u=c.props.children,f=i.map(h=>h===c?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return l.jsx(t,{...a,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return l.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Vu(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const a=Zu(o),i=Uu(s,o.props);return o.type!==d.Fragment&&(i.ref=r?kn(r,a):a),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qu=Symbol("radix.slottable");function Gu(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qu}function Uu(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]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Zu(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 Xu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Re=Xu.reduce((e,t)=>{const n=Yu(`Primitive.${t}`),r=d.forwardRef((o,s)=>{const{asChild:a,...i}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ku(e,t){e&&ia.flushSync(()=>e.dispatchEvent(t))}function Jt(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>t.current?.(...n),[])}function Qu(e,t=globalThis?.document){const n=Jt(e);d.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 Ju="DismissableLayer",io="dismissableLayer.update",ef="dismissableLayer.pointerDownOutside",tf="dismissableLayer.focusOutside",gs,Fa=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),gr=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...c}=e,u=d.useContext(Fa),[f,h]=d.useState(null),g=f?.ownerDocument??globalThis?.document,[,m]=d.useState({}),w=ze(t,S=>h(S)),p=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(v),x=f?p.indexOf(f):-1,_=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=y,E=of(S=>{const N=S.target,D=[...u.branches].some(j=>j.contains(N));!C||D||(o?.(S),a?.(S),S.defaultPrevented||i?.())},g),k=sf(S=>{const N=S.target;[...u.branches].some(j=>j.contains(N))||(s?.(S),a?.(S),S.defaultPrevented||i?.())},g);return Qu(S=>{x===u.layers.size-1&&(r?.(S),!S.defaultPrevented&&i&&(S.preventDefault(),i()))},g),d.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(gs=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),vs(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=gs)}},[f,g,n,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),vs())},[f,u]),d.useEffect(()=>{const S=()=>m({});return document.addEventListener(io,S),()=>document.removeEventListener(io,S)},[]),l.jsx(Re.div,{...c,ref:w,style:{pointerEvents:_?C?"auto":"none":void 0,...e.style},onFocusCapture:Ee(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Ee(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Ee(e.onPointerDownCapture,E.onPointerDownCapture)})});gr.displayName=Ju;var nf="DismissableLayerBranch",rf=d.forwardRef((e,t)=>{const n=d.useContext(Fa),r=d.useRef(null),o=ze(t,r);return d.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsx(Re.div,{...e,ref:o})});rf.displayName=nf;function of(e,t=globalThis?.document){const n=Jt(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let c=function(){Ba(ef,n,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function sf(e,t=globalThis?.document){const n=Jt(e),r=d.useRef(!1);return d.useEffect(()=>{const o=s=>{s.target&&!r.current&&Ba(tf,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 vs(){const e=new CustomEvent(io);document.dispatchEvent(e)}function Ba(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?Ku(o,s):o.dispatchEvent(s)}var St=globalThis?.document?d.useLayoutEffect:()=>{},af=d[" useId ".trim().toString()]||(()=>{}),cf=0;function bn(e){const[t,n]=d.useState(af());return St(()=>{n(r=>r??String(cf++))},[e]),e||(t?`radix-${t}`:"")}const lf=["top","right","bottom","left"],Nt=Math.min,Fe=Math.max,ir=Math.round,Vn=Math.floor,at=e=>({x:e,y:e}),df={left:"right",right:"left",bottom:"top",top:"bottom"};function co(e,t,n){return Fe(e,Nt(t,n))}function vt(e,t){return typeof e=="function"?e(t):e}function bt(e){return e.split("-")[0]}function on(e){return e.split("-")[1]}function Mo(e){return e==="x"?"y":"x"}function jo(e){return e==="y"?"height":"width"}function rt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Oo(e){return Mo(rt(e))}function uf(e,t,n){n===void 0&&(n=!1);const r=on(e),o=Oo(e),s=jo(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=cr(a)),[a,cr(a)]}function ff(e){const t=cr(e);return[lo(e),t,lo(t)]}function lo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const bs=["left","right"],ws=["right","left"],hf=["top","bottom"],mf=["bottom","top"];function pf(e,t,n){switch(e){case"top":case"bottom":return n?t?ws:bs:t?bs:ws;case"left":case"right":return t?hf:mf;default:return[]}}function gf(e,t,n,r){const o=on(e);let s=pf(bt(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(lo)))),s}function cr(e){const t=bt(e);return df[t]+e.slice(t.length)}function vf(e){return{top:0,right:0,bottom:0,left:0,...e}}function $a(e){return typeof e!="number"?vf(e):{top:e,right:e,bottom:e,left:e}}function lr(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 ys(e,t,n){let{reference:r,floating:o}=e;const s=rt(t),a=Oo(t),i=jo(a),c=bt(t),u=s==="y",f=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,g=r[i]/2-o[i]/2;let m;switch(c){case"top":m={x:f,y:r.y-o.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-o.width,y:h};break;default:m={x:r.x,y:r.y}}switch(on(t)){case"start":m[a]-=g*(n&&u?-1:1);break;case"end":m[a]+=g*(n&&u?-1:1);break}return m}async function bf(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:g=!1,padding:m=0}=vt(t,e),w=$a(m),v=i[g?h==="floating"?"reference":"floating":h],y=lr(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:u,rootBoundary:f,strategy:c})),x=h==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.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=lr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:x,offsetParent:_,strategy:c}):x);return{top:(y.top-E.top+w.top)/C.y,bottom:(E.bottom-y.bottom+w.bottom)/C.y,left:(y.left-E.left+w.left)/C.x,right:(E.right-y.right+w.right)/C.x}}const wf=50,yf=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=a.detectOverflow?a:{...a,detectOverflow:bf},c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:h}=ys(u,r,c),g=r,m=0;const w={};for(let p=0;p<s.length;p++){const v=s[p];if(!v)continue;const{name:y,fn:x}=v,{x:_,y:C,data:E,reset:k}=await x({x:f,y:h,initialPlacement:r,placement:g,strategy:o,middlewareData:w,rects:u,platform:i,elements:{reference:e,floating:t}});f=_??f,h=C??h,w[y]={...w[y],...E},k&&m<wf&&(m++,typeof k=="object"&&(k.placement&&(g=k.placement),k.rects&&(u=k.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:f,y:h}=ys(u,g,c)),p=-1)}return{x:f,y:h,placement:g,strategy:o,middlewareData:w}},xf=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:c}=t,{element:u,padding:f=0}=vt(e,t)||{};if(u==null)return{};const h=$a(f),g={x:n,y:r},m=Oo(o),w=jo(m),p=await a.getDimensions(u),v=m==="y",y=v?"top":"left",x=v?"bottom":"right",_=v?"clientHeight":"clientWidth",C=s.reference[w]+s.reference[m]-g[m]-s.floating[w],E=g[m]-s.reference[m],k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let S=k?k[_]:0;(!S||!await(a.isElement==null?void 0:a.isElement(k)))&&(S=i.floating[_]||s.floating[w]);const N=C/2-E/2,D=S/2-p[w]/2-1,j=Nt(h[y],D),L=Nt(h[x],D),P=j,T=S-p[w]-L,W=S/2-p[w]/2+N,V=co(P,W,T),R=!c.arrow&&on(o)!=null&&W!==V&&s.reference[w]/2-(W<P?j:L)-p[w]/2<0,q=R?W<P?W-P:W-T:0;return{[m]:g[m]+q,data:{[m]:V,centerOffset:W-V-q,...R&&{alignmentOffset:q}},reset:R}}}),_f=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:p=!0,...v}=vt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=bt(o),x=rt(i),_=bt(i)===i,C=await(c.isRTL==null?void 0:c.isRTL(u.floating)),E=g||(_||!p?[cr(i)]:ff(i)),k=w!=="none";!g&&k&&E.push(...gf(i,p,w,C));const S=[i,...E],N=await c.detectOverflow(t,v),D=[];let j=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&D.push(N[y]),h){const W=uf(o,a,C);D.push(N[W[0]],N[W[1]])}if(j=[...j,{placement:o,overflows:D}],!D.every(W=>W<=0)){var L,P;const W=(((L=s.flip)==null?void 0:L.index)||0)+1,V=S[W];if(V&&(!(h==="alignment"?x!==rt(V):!1)||j.every(Y=>rt(Y.placement)===x?Y.overflows[0]>0:!0)))return{data:{index:W,overflows:j},reset:{placement:V}};let R=(P=j.filter(q=>q.overflows[0]<=0).sort((q,Y)=>q.overflows[1]-Y.overflows[1])[0])==null?void 0:P.placement;if(!R)switch(m){case"bestFit":{var T;const q=(T=j.filter(Y=>{if(k){const U=rt(Y.placement);return U===x||U==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(U=>U>0).reduce((U,M)=>U+M,0)]).sort((Y,U)=>Y[1]-U[1])[0])==null?void 0:T[0];q&&(R=q);break}case"initialPlacement":R=i;break}if(o!==R)return{reset:{placement:R}}}return{}}}};function xs(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function _s(e){return lf.some(t=>e[t]>=0)}const Cf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=vt(e,t);switch(o){case"referenceHidden":{const a=await r.detectOverflow(t,{...s,elementContext:"reference"}),i=xs(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:_s(i)}}}case"escaped":{const a=await r.detectOverflow(t,{...s,altBoundary:!0}),i=xs(a,n.floating);return{data:{escapedOffsets:i,escaped:_s(i)}}}default:return{}}}}},za=new Set(["left","top"]);async function kf(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=bt(n),i=on(n),c=rt(n)==="y",u=za.has(a)?-1:1,f=s&&c?-1:1,h=vt(t,e);let{mainAxis:g,crossAxis:m,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return i&&typeof w=="number"&&(m=i==="end"?w*-1:w),c?{x:m*f,y:g*u}:{x:g*u,y:m*f}}const Ef=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,c=await kf(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:a}}}}},Sf=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:a=!0,crossAxis:i=!1,limiter:c={fn:y=>{let{x,y:_}=y;return{x,y:_}}},...u}=vt(e,t),f={x:n,y:r},h=await s.detectOverflow(t,u),g=rt(bt(o)),m=Mo(g);let w=f[m],p=f[g];if(a){const y=m==="y"?"top":"left",x=m==="y"?"bottom":"right",_=w+h[y],C=w-h[x];w=co(_,w,C)}if(i){const y=g==="y"?"top":"left",x=g==="y"?"bottom":"right",_=p+h[y],C=p-h[x];p=co(_,p,C)}const v=c.fn({...t,[m]:w,[g]:p});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[m]:a,[g]:i}}}}}},Nf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:c=!0,crossAxis:u=!0}=vt(e,t),f={x:n,y:r},h=rt(o),g=Mo(h);let m=f[g],w=f[h];const p=vt(i,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const _=g==="y"?"height":"width",C=s.reference[g]-s.floating[_]+v.mainAxis,E=s.reference[g]+s.reference[_]-v.mainAxis;m<C?m=C:m>E&&(m=E)}if(u){var y,x;const _=g==="y"?"width":"height",C=za.has(bt(o)),E=s.reference[h]-s.floating[_]+(C&&((y=a.offset)==null?void 0:y[h])||0)+(C?0:v.crossAxis),k=s.reference[h]+s.reference[_]+(C?0:((x=a.offset)==null?void 0:x[h])||0)-(C?v.crossAxis:0);w<E?w=E:w>k&&(w=k)}return{[g]:m,[h]:w}}}},Mf=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:c=()=>{},...u}=vt(e,t),f=await a.detectOverflow(t,u),h=bt(o),g=on(o),m=rt(o)==="y",{width:w,height:p}=s.floating;let v,y;h==="top"||h==="bottom"?(v=h,y=g===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(y=h,v=g==="end"?"top":"bottom");const x=p-f.top-f.bottom,_=w-f.left-f.right,C=Nt(p-f[v],x),E=Nt(w-f[y],_),k=!t.middlewareData.shift;let S=C,N=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=_),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(S=x),k&&!g){const j=Fe(f.left,0),L=Fe(f.right,0),P=Fe(f.top,0),T=Fe(f.bottom,0);m?N=w-2*(j!==0||L!==0?j+L:Fe(f.left,f.right)):S=p-2*(P!==0||T!==0?P+T:Fe(f.top,f.bottom))}await c({...t,availableWidth:N,availableHeight:S});const D=await a.getDimensions(i.floating);return w!==D.width||p!==D.height?{reset:{rects:!0}}:{}}}};function vr(){return typeof window<"u"}function sn(e){return Ha(e)?(e.nodeName||"").toLowerCase():"#document"}function Be(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function it(e){var t;return(t=(Ha(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ha(e){return vr()?e instanceof Node||e instanceof Be(e).Node:!1}function Pe(e){return vr()?e instanceof Element||e instanceof Be(e).Element:!1}function wt(e){return vr()?e instanceof HTMLElement||e instanceof Be(e).HTMLElement:!1}function Cs(e){return!vr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Be(e).ShadowRoot}function En(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Xe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function jf(e){return/^(table|td|th)$/.test(sn(e))}function br(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Of=/transform|translate|scale|rotate|perspective|filter/,Df=/paint|layout|strict|content/,Rt=e=>!!e&&e!=="none";let $r;function Do(e){const t=Pe(e)?Xe(e):e;return Rt(t.transform)||Rt(t.translate)||Rt(t.scale)||Rt(t.rotate)||Rt(t.perspective)||!Po()&&(Rt(t.backdropFilter)||Rt(t.filter))||Of.test(t.willChange||"")||Df.test(t.contain||"")}function Pf(e){let t=Mt(e);for(;wt(t)&&!en(t);){if(Do(t))return t;if(br(t))return null;t=Mt(t)}return null}function Po(){return $r==null&&($r=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),$r}function en(e){return/^(html|body|#document)$/.test(sn(e))}function Xe(e){return Be(e).getComputedStyle(e)}function wr(e){return Pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Mt(e){if(sn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Cs(e)&&e.host||it(e);return Cs(t)?t.host:t}function Ya(e){const t=Mt(e);return en(t)?e.ownerDocument?e.ownerDocument.body:e.body:wt(t)&&En(t)?t:Ya(t)}function wn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ya(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=Be(o);if(s){const i=uo(a);return t.concat(a,a.visualViewport||[],En(o)?o:[],i&&n?wn(i):[])}else return t.concat(o,wn(o,[],n))}function uo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Va(e){const t=Xe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=wt(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=ir(n)!==s||ir(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function Ro(e){return Pe(e)?e:e.contextElement}function Xt(e){const t=Ro(e);if(!wt(t))return at(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Va(t);let a=(s?ir(n.width):n.width)/r,i=(s?ir(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const Rf=at(0);function qa(e){const t=Be(e);return!Po()||!t.visualViewport?Rf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Tf(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Be(e)?!1:t}function Lt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Ro(e);let a=at(1);t&&(r?Pe(r)&&(a=Xt(r)):a=Xt(e));const i=Tf(s,n,r)?qa(s):at(0);let c=(o.left+i.x)/a.x,u=(o.top+i.y)/a.y,f=o.width/a.x,h=o.height/a.y;if(s){const g=Be(s),m=r&&Pe(r)?Be(r):r;let w=g,p=uo(w);for(;p&&r&&m!==w;){const v=Xt(p),y=p.getBoundingClientRect(),x=Xe(p),_=y.left+(p.clientLeft+parseFloat(x.paddingLeft))*v.x,C=y.top+(p.clientTop+parseFloat(x.paddingTop))*v.y;c*=v.x,u*=v.y,f*=v.x,h*=v.y,c+=_,u+=C,w=Be(p),p=uo(w)}}return lr({width:f,height:h,x:c,y:u})}function yr(e,t){const n=wr(e).scrollLeft;return t?t.left+n:Lt(it(e)).left+n}function Ga(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-yr(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Af(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=it(r),i=t?br(t.floating):!1;if(r===a||i&&s)return n;let c={scrollLeft:0,scrollTop:0},u=at(1);const f=at(0),h=wt(r);if((h||!h&&!s)&&((sn(r)!=="body"||En(a))&&(c=wr(r)),h)){const m=Lt(r);u=Xt(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}const g=a&&!h&&!s?Ga(a,c):at(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x+g.x,y:n.y*u.y-c.scrollTop*u.y+f.y+g.y}}function If(e){return Array.from(e.getClientRects())}function Lf(e){const t=it(e),n=wr(e),r=e.ownerDocument.body,o=Fe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Fe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+yr(e);const i=-n.scrollTop;return Xe(r).direction==="rtl"&&(a+=Fe(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}const ks=25;function Wf(e,t){const n=Be(e),r=it(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,c=0;if(o){s=o.width,a=o.height;const f=Po();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const u=yr(r);if(u<=0){const f=r.ownerDocument,h=f.body,g=getComputedStyle(h),m=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,w=Math.abs(r.clientWidth-h.clientWidth-m);w<=ks&&(s-=w)}else u<=ks&&(s+=u);return{width:s,height:a,x:i,y:c}}function Ff(e,t){const n=Lt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=wt(e)?Xt(e):at(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,c=o*s.x,u=r*s.y;return{width:a,height:i,x:c,y:u}}function Es(e,t,n){let r;if(t==="viewport")r=Wf(e,n);else if(t==="document")r=Lf(it(e));else if(Pe(t))r=Ff(t,n);else{const o=qa(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return lr(r)}function Ua(e,t){const n=Mt(e);return n===t||!Pe(n)||en(n)?!1:Xe(n).position==="fixed"||Ua(n,t)}function Bf(e,t){const n=t.get(e);if(n)return n;let r=wn(e,[],!1).filter(i=>Pe(i)&&sn(i)!=="body"),o=null;const s=Xe(e).position==="fixed";let a=s?Mt(e):e;for(;Pe(a)&&!en(a);){const i=Xe(a),c=Do(a);!c&&i.position==="fixed"&&(o=null),(s?!c&&!o:!c&&i.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||En(a)&&!c&&Ua(e,a))?r=r.filter(f=>f!==a):o=i,a=Mt(a)}return t.set(e,r),r}function $f(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?br(t)?[]:Bf(t,this._c):[].concat(n),r],i=Es(t,a[0],o);let c=i.top,u=i.right,f=i.bottom,h=i.left;for(let g=1;g<a.length;g++){const m=Es(t,a[g],o);c=Fe(m.top,c),u=Nt(m.right,u),f=Nt(m.bottom,f),h=Fe(m.left,h)}return{width:u-h,height:f-c,x:h,y:c}}function zf(e){const{width:t,height:n}=Va(e);return{width:t,height:n}}function Hf(e,t,n){const r=wt(t),o=it(t),s=n==="fixed",a=Lt(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const c=at(0);function u(){c.x=yr(o)}if(r||!r&&!s)if((sn(t)!=="body"||En(o))&&(i=wr(t)),r){const m=Lt(t,!0,s,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&u();s&&!r&&o&&u();const f=o&&!r&&!s?Ga(o,i):at(0),h=a.left+i.scrollLeft-c.x-f.x,g=a.top+i.scrollTop-c.y-f.y;return{x:h,y:g,width:a.width,height:a.height}}function zr(e){return Xe(e).position==="static"}function Ss(e,t){if(!wt(e)||Xe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return it(e)===n&&(n=n.ownerDocument.body),n}function Za(e,t){const n=Be(e);if(br(e))return n;if(!wt(e)){let o=Mt(e);for(;o&&!en(o);){if(Pe(o)&&!zr(o))return o;o=Mt(o)}return n}let r=Ss(e,t);for(;r&&jf(r)&&zr(r);)r=Ss(r,t);return r&&en(r)&&zr(r)&&!Do(r)?n:r||Pf(e)||n}const Yf=async function(e){const t=this.getOffsetParent||Za,n=this.getDimensions,r=await n(e.floating);return{reference:Hf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Vf(e){return Xe(e).direction==="rtl"}const qf={convertOffsetParentRelativeRectToViewportRelativeRect:Af,getDocumentElement:it,getClippingRect:$f,getOffsetParent:Za,getElementRects:Yf,getClientRects:If,getDimensions:zf,getScale:Xt,isElement:Pe,isRTL:Vf};function Xa(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Gf(e,t){let n=null,r;const o=it(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:f,top:h,width:g,height:m}=u;if(i||t(),!g||!m)return;const w=Vn(h),p=Vn(o.clientWidth-(f+g)),v=Vn(o.clientHeight-(h+m)),y=Vn(f),_={rootMargin:-w+"px "+-p+"px "+-v+"px "+-y+"px",threshold:Fe(0,Nt(1,c))||1};let C=!0;function E(k){const S=k[0].intersectionRatio;if(S!==c){if(!C)return a();S?a(!1,S):r=setTimeout(()=>{a(!1,1e-7)},1e3)}S===1&&!Xa(u,e.getBoundingClientRect())&&a(),C=!1}try{n=new IntersectionObserver(E,{..._,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,_)}n.observe(e)}return a(!0),s}function Ka(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Ro(e),f=o||s?[...u?wn(u):[],...t?wn(t):[]]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const h=u&&i?Gf(u,n):null;let g=-1,m=null;a&&(m=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&m&&t&&(m.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var _;(_=m)==null||_.observe(t)})),n()}),u&&!c&&m.observe(u),t&&m.observe(t));let w,p=c?Lt(e):null;c&&v();function v(){const y=Lt(e);p&&!Xa(p,y)&&n(),p=y,w=requestAnimationFrame(v)}return n(),()=>{var y;f.forEach(x=>{o&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),h?.(),(y=m)==null||y.disconnect(),m=null,c&&cancelAnimationFrame(w)}}const Uf=Ef,Zf=Sf,Xf=_f,Kf=Mf,Qf=Cf,Ns=xf,Jf=Nf,e1=(e,t,n)=>{const r=new Map,o={platform:qf,...n},s={...o.platform,_c:r};return yf(e,t,{...o,platform:s})};var t1=typeof document<"u",n1=function(){},nr=t1?b.useLayoutEffect:n1;function dr(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(!dr(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)&&!dr(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Qa(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ms(e,t){const n=Qa(e);return Math.round(t*n)/n}function Hr(e){const t=d.useRef(e);return nr(()=>{t.current=e}),t}function Ja(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:c,open:u}=e,[f,h]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,m]=d.useState(r);dr(g,r)||m(r);const[w,p]=d.useState(null),[v,y]=d.useState(null),x=d.useCallback(Y=>{Y!==k.current&&(k.current=Y,p(Y))},[]),_=d.useCallback(Y=>{Y!==S.current&&(S.current=Y,y(Y))},[]),C=s||w,E=a||v,k=d.useRef(null),S=d.useRef(null),N=d.useRef(f),D=c!=null,j=Hr(c),L=Hr(o),P=Hr(u),T=d.useCallback(()=>{if(!k.current||!S.current)return;const Y={placement:t,strategy:n,middleware:g};L.current&&(Y.platform=L.current),e1(k.current,S.current,Y).then(U=>{const M={...U,isPositioned:P.current!==!1};W.current&&!dr(N.current,M)&&(N.current=M,ia.flushSync(()=>{h(M)}))})},[g,t,n,L,P]);nr(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,h(Y=>({...Y,isPositioned:!1})))},[u]);const W=d.useRef(!1);nr(()=>(W.current=!0,()=>{W.current=!1}),[]),nr(()=>{if(C&&(k.current=C),E&&(S.current=E),C&&E){if(j.current)return j.current(C,E,T);T()}},[C,E,T,j,D]);const V=d.useMemo(()=>({reference:k,floating:S,setReference:x,setFloating:_}),[x,_]),R=d.useMemo(()=>({reference:C,floating:E}),[C,E]),q=d.useMemo(()=>{const Y={position:n,left:0,top:0};if(!R.floating)return Y;const U=Ms(R.floating,f.x),M=Ms(R.floating,f.y);return i?{...Y,transform:"translate("+U+"px, "+M+"px)",...Qa(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:U,top:M}},[n,i,R.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:T,refs:V,elements:R,floatingStyles:q}),[f,T,V,R,q])}const r1=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?Ns({element:r.current,padding:o}).fn(n):{}:r?Ns({element:r,padding:o}).fn(n):{}}}},ei=(e,t)=>{const n=Uf(e);return{name:n.name,fn:n.fn,options:[e,t]}},o1=(e,t)=>{const n=Zf(e);return{name:n.name,fn:n.fn,options:[e,t]}},s1=(e,t)=>({fn:Jf(e).fn,options:[e,t]}),ti=(e,t)=>{const n=Xf(e);return{name:n.name,fn:n.fn,options:[e,t]}},ni=(e,t)=>{const n=Kf(e);return{name:n.name,fn:n.fn,options:[e,t]}},a1=(e,t)=>{const n=Qf(e);return{name:n.name,fn:n.fn,options:[e,t]}},i1=(e,t)=>{const n=r1(e);return{name:n.name,fn:n.fn,options:[e,t]}};var c1="Arrow",ri=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsx(Re.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"})})});ri.displayName=c1;var l1=ri;function d1(e){const[t,n]=d.useState(void 0);return St(()=>{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 a,i;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,i=u.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var To="Popper",[oi,xr]=pr(To),[u1,si]=oi(To),ai=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return l.jsx(u1,{scope:t,anchor:r,onAnchorChange:o,children:n})};ai.displayName=To;var ii="PopperAnchor",ci=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=si(ii,n),a=d.useRef(null),i=ze(t,a),c=d.useRef(null);return d.useEffect(()=>{const u=c.current;c.current=r?.current||a.current,u!==c.current&&s.onAnchorChange(c.current)}),r?null:l.jsx(Re.div,{...o,ref:i})});ci.displayName=ii;var Ao="PopperContent",[f1,h1]=oi(Ao),li=d.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:h="partial",hideWhenDetached:g=!1,updatePositionStrategy:m="optimized",onPlaced:w,...p}=e,v=si(Ao,n),[y,x]=d.useState(null),_=ze(t,fe=>x(fe)),[C,E]=d.useState(null),k=d1(C),S=k?.width??0,N=k?.height??0,D=r+(s!=="center"?"-"+s:""),j=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},L=Array.isArray(u)?u:[u],P=L.length>0,T={padding:j,boundary:L.filter(p1),altBoundary:P},{refs:W,floatingStyles:V,placement:R,isPositioned:q,middlewareData:Y}=Ja({strategy:"fixed",placement:D,whileElementsMounted:(...fe)=>Ka(...fe,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[ei({mainAxis:o+N,alignmentAxis:a}),c&&o1({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?s1():void 0,...T}),c&&ti({...T}),ni({...T,apply:({elements:fe,rects:Se,availableWidth:re,availableHeight:F})=>{const{width:be,height:Ne}=Se.reference,Te=fe.floating.style;Te.setProperty("--radix-popper-available-width",`${re}px`),Te.setProperty("--radix-popper-available-height",`${F}px`),Te.setProperty("--radix-popper-anchor-width",`${be}px`),Te.setProperty("--radix-popper-anchor-height",`${Ne}px`)}}),C&&i1({element:C,padding:i}),g1({arrowWidth:S,arrowHeight:N}),g&&a1({strategy:"referenceHidden",...T})]}),[U,M]=fi(R),J=Jt(w);St(()=>{q&&J?.()},[q,J]);const ue=Y.arrow?.x,he=Y.arrow?.y,pe=Y.arrow?.centerOffset!==0,[Z,ee]=d.useState();return St(()=>{y&&ee(window.getComputedStyle(y).zIndex)},[y]),l.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:q?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[Y.transformOrigin?.x,Y.transformOrigin?.y].join(" "),...Y.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(f1,{scope:n,placedSide:U,onArrowChange:E,arrowX:ue,arrowY:he,shouldHideArrow:pe,children:l.jsx(Re.div,{"data-side":U,"data-align":M,...p,ref:_,style:{...p.style,animation:q?void 0:"none"}})})})});li.displayName=Ao;var di="PopperArrow",m1={top:"bottom",right:"left",bottom:"top",left:"right"},ui=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=h1(di,r),a=m1[s.placedSide];return l.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]: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(l1,{...o,ref:n,style:{...o.style,display:"block"}})})});ui.displayName=di;function p1(e){return e!==null}var g1=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[u,f]=fi(n),h={start:"0%",center:"50%",end:"100%"}[f],g=(o.arrow?.x??0)+i/2,m=(o.arrow?.y??0)+c/2;let w="",p="";return u==="bottom"?(w=a?h:`${g}px`,p=`${-c}px`):u==="top"?(w=a?h:`${g}px`,p=`${r.floating.height+c}px`):u==="right"?(w=`${-c}px`,p=a?h:`${m}px`):u==="left"&&(w=`${r.floating.width+c}px`,p=a?h:`${m}px`),{data:{x:w,y:p}}}});function fi(e){const[t,n="center"]=e.split("-");return[t,n]}var hi=ai,Io=ci,mi=li,pi=ui,v1="Portal",_r=d.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=d.useState(!1);St(()=>s(!0),[]);const a=n||o&&globalThis?.document?.body;return a?Cn.createPortal(l.jsx(Re.div,{...r,ref:t}),a):null});_r.displayName=v1;function b1(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var Ot=e=>{const{present:t,children:n}=e,r=w1(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),s=ze(r.ref,y1(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:s}):null};Ot.displayName="Presence";function w1(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),s=d.useRef("none"),a=e?"mounted":"unmounted",[i,c]=b1(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const u=qn(r.current);s.current=i==="mounted"?u:"none"},[i]),St(()=>{const u=r.current,f=o.current;if(f!==e){const g=s.current,m=qn(u);e?c("MOUNT"):m==="none"||u?.display==="none"?c("UNMOUNT"):c(f&&g!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),St(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,h=m=>{const p=qn(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&p&&(c("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},g=m=>{m.target===t&&(s.current=qn(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:d.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function qn(e){return e?.animationName||"none"}function y1(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 x1=Symbol("radix.slottable");function _1(e){const t=({children:n})=>l.jsx(l.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=x1,t}var C1=d[" useInsertionEffect ".trim().toString()]||St;function Lo({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=k1({defaultProp:t,onChange:n}),i=e!==void 0,c=i?e:o;{const f=d.useRef(e!==void 0);d.useEffect(()=>{const h=f.current;h!==i&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${i?"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=i},[i,r])}const u=d.useCallback(f=>{if(i){const h=E1(f)?f(e):f;h!==e&&a.current?.(h)}else s(f)},[i,e,s,a]);return[c,u]}function k1({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),s=d.useRef(t);return C1(()=>{s.current=t},[t]),d.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function E1(e){return typeof e=="function"}var S1=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"}),N1="VisuallyHidden",gi=d.forwardRef((e,t)=>l.jsx(Re.span,{...e,ref:t,style:{...S1,...e.style}}));gi.displayName=N1;var M1=gi,[Cr]=pr("Tooltip",[xr]),kr=xr(),vi="TooltipProvider",j1=700,fo="tooltip.open",[O1,Wo]=Cr(vi),bi=e=>{const{__scopeTooltip:t,delayDuration:n=j1,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=d.useRef(!0),i=d.useRef(!1),c=d.useRef(0);return d.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),l.jsx(O1,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:d.useCallback(u=>{i.current=u},[]),disableHoverableContent:o,children:s})};bi.displayName=vi;var yn="Tooltip",[D1,Sn]=Cr(yn),wi=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:i}=e,c=Wo(yn,e.__scopeTooltip),u=kr(t),[f,h]=d.useState(null),g=bn(),m=d.useRef(0),w=a??c.disableHoverableContent,p=i??c.delayDuration,v=d.useRef(!1),[y,x]=Lo({prop:r,defaultProp:o??!1,onChange:S=>{S?(c.onOpen(),document.dispatchEvent(new CustomEvent(fo))):c.onClose(),s?.(S)},caller:yn}),_=d.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),C=d.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,x(!0)},[x]),E=d.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x(!1)},[x]),k=d.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,x(!0),m.current=0},p)},[p,x]);return d.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),l.jsx(hi,{...u,children:l.jsx(D1,{scope:t,contentId:g,open:y,stateAttribute:_,trigger:f,onTriggerChange:h,onTriggerEnter:d.useCallback(()=>{c.isOpenDelayedRef.current?k():C()},[c.isOpenDelayedRef,k,C]),onTriggerLeave:d.useCallback(()=>{w?E():(window.clearTimeout(m.current),m.current=0)},[E,w]),onOpen:C,onClose:E,disableHoverableContent:w,children:n})})};wi.displayName=yn;var ho="TooltipTrigger",yi=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Sn(ho,n),s=Wo(ho,n),a=kr(n),i=d.useRef(null),c=ze(t,i,o.onTriggerChange),u=d.useRef(!1),f=d.useRef(!1),h=d.useCallback(()=>u.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),l.jsx(Io,{asChild:!0,...a,children:l.jsx(Re.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:Ee(e.onPointerMove,g=>{g.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:Ee(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:Ee(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Ee(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Ee(e.onBlur,o.onClose),onClick:Ee(e.onClick,o.onClose)})})});yi.displayName=ho;var Fo="TooltipPortal",[P1,R1]=Cr(Fo,{forceMount:void 0}),xi=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Sn(Fo,t);return l.jsx(P1,{scope:t,forceMount:n,children:l.jsx(Ot,{present:n||s.open,children:l.jsx(_r,{asChild:!0,container:o,children:r})})})};xi.displayName=Fo;var tn="TooltipContent",_i=d.forwardRef((e,t)=>{const n=R1(tn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=Sn(tn,e.__scopeTooltip);return l.jsx(Ot,{present:r||a.open,children:a.disableHoverableContent?l.jsx(Ci,{side:o,...s,ref:t}):l.jsx(T1,{side:o,...s,ref:t})})}),T1=d.forwardRef((e,t)=>{const n=Sn(tn,e.__scopeTooltip),r=Wo(tn,e.__scopeTooltip),o=d.useRef(null),s=ze(t,o),[a,i]=d.useState(null),{trigger:c,onClose:u}=n,f=o.current,{onPointerInTransitChange:h}=r,g=d.useCallback(()=>{i(null),h(!1)},[h]),m=d.useCallback((w,p)=>{const v=w.currentTarget,y={x:w.clientX,y:w.clientY},x=F1(y,v.getBoundingClientRect()),_=B1(y,x),C=$1(p.getBoundingClientRect()),E=H1([..._,...C]);i(E),h(!0)},[h]);return d.useEffect(()=>()=>g(),[g]),d.useEffect(()=>{if(c&&f){const w=v=>m(v,f),p=v=>m(v,c);return c.addEventListener("pointerleave",w),f.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",w),f.removeEventListener("pointerleave",p)}}},[c,f,m,g]),d.useEffect(()=>{if(a){const w=p=>{const v=p.target,y={x:p.clientX,y:p.clientY},x=c?.contains(v)||f?.contains(v),_=!z1(y,a);x?g():_&&(g(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,f,a,u,g]),l.jsx(Ci,{...e,ref:s})}),[A1,I1]=Cr(yn,{isInside:!1}),L1=_1("TooltipContent"),Ci=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,c=Sn(tn,n),u=kr(n),{onClose:f}=c;return d.useEffect(()=>(document.addEventListener(fo,f),()=>document.removeEventListener(fo,f)),[f]),d.useEffect(()=>{if(c.trigger){const h=g=>{g.target?.contains(c.trigger)&&f()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,f]),l.jsx(gr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:h=>h.preventDefault(),onDismiss:f,children:l.jsxs(mi,{"data-state":c.stateAttribute,...u,...i,ref:t,style:{...i.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(L1,{children:r}),l.jsx(A1,{scope:n,isInside:!0,children:l.jsx(M1,{id:c.contentId,role:"tooltip",children:o||r})})]})})});_i.displayName=tn;var ki="TooltipArrow",W1=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=kr(n);return I1(ki,n).isInside?null:l.jsx(pi,{...o,...r,ref:t})});W1.displayName=ki;function F1(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 B1(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 $1(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 z1(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],c=t[a],u=i.x,f=i.y,h=c.x,g=c.y;f>r!=g>r&&n<(h-u)*(r-f)/(g-f)+u&&(o=!o)}return o}function H1(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),Y1(t)}function Y1(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],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.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],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.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 V1=bi,q1=wi,G1=yi,U1=xi,Ei=_i;const Z1=V1,X1=q1,K1=G1,Si=d.forwardRef(({className:e,sideOffset:t=4,...n},r)=>l.jsx(U1,{children:l.jsx(Ei,{ref:r,sideOffset:t,className:K("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})}));Si.displayName=Ei.displayName;const Q1="_anchor_rpda1_1",J1="_tooltip_rpda1_6",js={anchor:Q1,tooltip:J1},Os=e=>typeof e=="string"?document.getElementById(e):"current"in e?e.current:e,eh=(e="top")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},Ds=(e,t)=>typeof e=="number"?e:e?.[t]??0,Bo=({children:e,target:t,placement:n="top",popperClassName:r,isOpen:o,toggle:s,delay:a,autohide:i=!0})=>{const[c,u]=b.useState(!1),[f,h]=b.useState(null),g=o??c,{side:m,align:w}=b.useMemo(()=>eh(n),[n]),p=b.useCallback(()=>{const y=Os(t);h(y?.getBoundingClientRect()??null)},[t]),v=b.useCallback(y=>{o===void 0&&u(y),s?.()},[o,s]);return b.useEffect(()=>{let y=null,x=null,_=null,C=null;const E=()=>{_&&clearTimeout(_),C&&clearTimeout(C),_=null,C=null},k=()=>{E(),p(),_=setTimeout(()=>v(!0),Ds(a,"show"))},S=()=>{i&&(E(),C=setTimeout(()=>v(!1),Ds(a,"hide")))},N=()=>{y&&(y.removeEventListener("mouseenter",k),y.removeEventListener("mouseleave",S),y.removeEventListener("focus",k),y.removeEventListener("blur",S),window.removeEventListener("scroll",p,!0),window.removeEventListener("resize",p),y=null)},D=T=>{y=T,p(),T.addEventListener("mouseenter",k),T.addEventListener("mouseleave",S),T.addEventListener("focus",k),T.addEventListener("blur",S),window.addEventListener("scroll",p,!0),window.addEventListener("resize",p)};let j=0;const L=60,P=()=>{const T=Os(t);if(T){D(T);return}j>=L||(j+=1,x=requestAnimationFrame(P))};return P(),()=>{x!==null&&cancelAnimationFrame(x),E(),N()}},[i,a,v,t,p]),f?l.jsx(Z1,{delayDuration:0,children:l.jsxs(X1,{open:g,onOpenChange:v,children:[Wa(l.jsx(K1,{asChild:!0,children:l.jsx("span",{className:js.anchor,style:{left:f.left,top:f.top,width:f.width,height:f.height}})})),l.jsx(Si,{side:m,align:w,className:O(js.tooltip,r),children:e})]})}):null};var Yr=0;function Ni(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ps()),document.body.insertAdjacentElement("beforeend",e[1]??Ps()),Yr++,()=>{Yr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Yr--}},[])}function Ps(){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 Vr="focusScope.autoFocusOnMount",qr="focusScope.autoFocusOnUnmount",Rs={bubbles:!1,cancelable:!0},th="FocusScope",$o=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,c]=d.useState(null),u=Jt(o),f=Jt(s),h=d.useRef(null),g=ze(t,p=>c(p)),m=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let p=function(_){if(m.paused||!i)return;const C=_.target;i.contains(C)?h.current=C:kt(h.current,{select:!0})},v=function(_){if(m.paused||!i)return;const C=_.relatedTarget;C!==null&&(i.contains(C)||kt(h.current,{select:!0}))},y=function(_){if(document.activeElement===document.body)for(const E of _)E.removedNodes.length>0&&kt(i)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const x=new MutationObserver(y);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),x.disconnect()}}},[r,i,m.paused]),d.useEffect(()=>{if(i){As.add(m);const p=document.activeElement;if(!i.contains(p)){const y=new CustomEvent(Vr,Rs);i.addEventListener(Vr,u),i.dispatchEvent(y),y.defaultPrevented||(nh(ih(Mi(i)),{select:!0}),document.activeElement===p&&kt(i))}return()=>{i.removeEventListener(Vr,u),setTimeout(()=>{const y=new CustomEvent(qr,Rs);i.addEventListener(qr,f),i.dispatchEvent(y),y.defaultPrevented||kt(p??document.body,{select:!0}),i.removeEventListener(qr,f),As.remove(m)},0)}}},[i,u,f,m]);const w=d.useCallback(p=>{if(!n&&!r||m.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(v&&y){const x=p.currentTarget,[_,C]=rh(x);_&&C?!p.shiftKey&&y===C?(p.preventDefault(),n&&kt(_,{select:!0})):p.shiftKey&&y===_&&(p.preventDefault(),n&&kt(C,{select:!0})):y===x&&p.preventDefault()}},[n,r,m.paused]);return l.jsx(Re.div,{tabIndex:-1,...a,ref:g,onKeyDown:w})});$o.displayName=th;function nh(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(kt(r,{select:t}),document.activeElement!==n)return}function rh(e){const t=Mi(e),n=Ts(t,e),r=Ts(t.reverse(),e);return[n,r]}function Mi(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 Ts(e,t){for(const n of e)if(!oh(n,{upTo:t}))return n}function oh(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 sh(e){return e instanceof HTMLInputElement&&"select"in e}function kt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&sh(e)&&t&&e.select()}}var As=ah();function ah(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Is(e,t),e.unshift(t)},remove(t){e=Is(e,t),e[0]?.resume()}}}function Is(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ih(e){return e.filter(t=>t.tagName!=="A")}function ch(e){const t=lh(e),n=d.forwardRef((r,o)=>{const{children:s,...a}=r,i=d.Children.toArray(s),c=i.find(uh);if(c){const u=c.props.children,f=i.map(h=>h===c?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return l.jsx(t,{...a,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return l.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function lh(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const a=hh(o),i=fh(s,o.props);return o.type!==d.Fragment&&(i.ref=r?kn(r,a):a),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var dh=Symbol("radix.slottable");function uh(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===dh}function fh(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]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function hh(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 mh=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Yt=new WeakMap,Gn=new WeakMap,Un={},Gr=0,ji=function(e){return e&&(e.host||ji(e.parentNode))},ph=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ji(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})},gh=function(e,t,n,r){var o=ph(t,Array.isArray(e)?e:[e]);Un[n]||(Un[n]=new WeakMap);var s=Un[n],a=[],i=new Set,c=new Set(o),u=function(h){!h||i.has(h)||(i.add(h),u(h.parentNode))};o.forEach(u);var f=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(g){if(i.has(g))f(g);else try{var m=g.getAttribute(r),w=m!==null&&m!=="false",p=(Yt.get(g)||0)+1,v=(s.get(g)||0)+1;Yt.set(g,p),s.set(g,v),a.push(g),p===1&&w&&Gn.set(g,!0),v===1&&g.setAttribute(n,"true"),w||g.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",g,y)}})};return f(t),i.clear(),Gr++,function(){a.forEach(function(h){var g=Yt.get(h)-1,m=s.get(h)-1;Yt.set(h,g),s.set(h,m),g||(Gn.has(h)||h.removeAttribute(r),Gn.delete(h)),m||h.removeAttribute(n)}),Gr--,Gr||(Yt=new WeakMap,Yt=new WeakMap,Gn=new WeakMap,Un={})}},Oi=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=mh(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),gh(r,o,n,"aria-hidden")):function(){return null}},nt=function(){return nt=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},nt.apply(this,arguments)};function Di(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 vh(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 rr="right-scroll-bar-position",or="width-before-scroll-bar",bh="with-scroll-bars-hidden",wh="--removed-body-scroll-bar-size";function Ur(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function yh(e,t){var n=b.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 xh=typeof window<"u"?d.useLayoutEffect:d.useEffect,Ls=new WeakMap;function _h(e,t){var n=yh(null,function(r){return e.forEach(function(o){return Ur(o,r)})});return xh(function(){var r=Ls.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(i){s.has(i)||Ur(i,null)}),s.forEach(function(i){o.has(i)||Ur(i,a)})}Ls.set(n,e)},[e]),n}function Ch(e){return e}function kh(e,t){t===void 0&&(t=Ch);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 a=t(s,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var c=function(){var f=a;a=[],f.forEach(s)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return o}function Eh(e){e===void 0&&(e={});var t=kh(null);return t.options=nt({async:!0,ssr:!1},e),t}var Pi=function(e){var t=e.sideCar,n=Di(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 d.createElement(r,nt({},n))};Pi.isSideCarExport=!0;function Sh(e,t){return e.useMedium(t),Pi}var Ri=Eh(),Zr=function(){},Er=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:Zr,onWheelCapture:Zr,onTouchMoveCapture:Zr}),o=r[0],s=r[1],a=e.forwardProps,i=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,h=e.shards,g=e.sideCar,m=e.noRelative,w=e.noIsolation,p=e.inert,v=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,_=e.gapMode,C=Di(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=g,k=_h([n,t]),S=nt(nt({},C),o);return d.createElement(d.Fragment,null,f&&d.createElement(E,{sideCar:Ri,removeScrollBar:u,shards:h,noRelative:m,noIsolation:w,inert:p,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:_}),a?d.cloneElement(d.Children.only(i),nt(nt({},S),{ref:k})):d.createElement(x,nt({},S,{className:c,ref:k}),i))});Er.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Er.classNames={fullWidth:or,zeroRight:rr};var Nh=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Mh(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Nh();return t&&e.setAttribute("nonce",t),e}function jh(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Oh(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Dh=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Mh())&&(jh(t,n),Oh(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ph=function(){var e=Dh();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ti=function(){var e=Ph(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Rh={left:0,top:0,right:0,gap:0},Xr=function(e){return parseInt(e||"",10)||0},Th=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[Xr(n),Xr(r),Xr(o)]},Ah=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Rh;var t=Th(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])}},Ih=Ti(),Kt="data-scroll-locked",Lh=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
2
|
+
.`.concat(bh,` {
|
|
3
3
|
overflow: hidden `).concat(r,`;
|
|
4
|
-
padding-right: `).concat(
|
|
4
|
+
padding-right: `).concat(i,"px ").concat(r,`;
|
|
5
5
|
}
|
|
6
|
-
body[`).concat(
|
|
6
|
+
body[`).concat(Kt,`] {
|
|
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(a,`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(i,"px ").concat(r,`;
|
|
16
|
+
`),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.`).concat(
|
|
20
|
-
right: `).concat(
|
|
19
|
+
.`).concat(rr,` {
|
|
20
|
+
right: `).concat(i,"px ").concat(r,`;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.`).concat(
|
|
24
|
-
margin-right: `).concat(
|
|
23
|
+
.`).concat(or,` {
|
|
24
|
+
margin-right: `).concat(i,"px ").concat(r,`;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
.`).concat(
|
|
27
|
+
.`).concat(rr," .").concat(rr,` {
|
|
28
28
|
right: 0 `).concat(r,`;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.`).concat(
|
|
31
|
+
.`).concat(or," .").concat(or,` {
|
|
32
32
|
margin-right: 0 `).concat(r,`;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
body[`).concat(
|
|
36
|
-
`).concat(
|
|
35
|
+
body[`).concat(Kt,`] {
|
|
36
|
+
`).concat(wh,": ").concat(i,`px;
|
|
37
37
|
}
|
|
38
|
-
`)},
|
|
38
|
+
`)},Ws=function(){var e=parseInt(document.body.getAttribute(Kt)||"0",10);return isFinite(e)?e:0},Wh=function(){d.useEffect(function(){return document.body.setAttribute(Kt,(Ws()+1).toString()),function(){var e=Ws()-1;e<=0?document.body.removeAttribute(Kt):document.body.setAttribute(Kt,e.toString())}},[])},Fh=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Wh();var s=d.useMemo(function(){return Ah(o)},[o]);return d.createElement(Ih,{styles:Lh(s,!t,o,n?"":"!important")})},mo=!1;if(typeof window<"u")try{var Zn=Object.defineProperty({},"passive",{get:function(){return mo=!0,!0}});window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{mo=!1}var Vt=mo?{passive:!1}:!1,Bh=function(e){return e.tagName==="TEXTAREA"},Ai=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Bh(e)&&n[t]==="visible")},$h=function(e){return Ai(e,"overflowY")},zh=function(e){return Ai(e,"overflowX")},Fs=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ii(e,r);if(o){var s=Li(e,r),a=s[1],i=s[2];if(a>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Hh=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Yh=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ii=function(e,t){return e==="v"?$h(t):zh(t)},Li=function(e,t){return e==="v"?Hh(t):Yh(t)},Vh=function(e,t){return e==="h"&&t==="rtl"?-1:1},qh=function(e,t,n,r,o){var s=Vh(e,window.getComputedStyle(t).direction),a=s*r,i=n.target,c=t.contains(i),u=!1,f=a>0,h=0,g=0;do{if(!i)break;var m=Li(e,i),w=m[0],p=m[1],v=m[2],y=p-v-s*w;(w||y)&&Ii(e,i)&&(h+=y,g+=w);var x=i.parentNode;i=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(f&&Math.abs(h)<1||!f&&Math.abs(g)<1)&&(u=!0),u},Xn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Bs=function(e){return[e.deltaX,e.deltaY]},$s=function(e){return e&&"current"in e?e.current:e},Gh=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Uh=function(e){return`
|
|
39
39
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
40
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
-
`)},j1=0,pt=[];function S1(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(j1++)[0],s=a.useState(zs)[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=Zu([e.lockRef.current],(e.shards||[]).map(lo),!0).filter(Boolean);return h.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=a.useCallback(function(h,v){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var w=Ht(h),b=n.current,y="deltaX"in h?h.deltaX:b[0]-w[0],C="deltaY"in h?h.deltaY:b[1]-w[1],E,k=h.target,S=Math.abs(y)>Math.abs(C)?"h":"v";if("touches"in h&&S==="h"&&k.type==="range")return!1;var j=window.getSelection(),I=j&&j.anchorNode,D=I?I===k||I.contains(k):!1;if(D)return!1;var F=io(S,k);if(!F)return!0;if(F?E=S:(E=S==="v"?"h":"v",F=io(S,k)),!F)return!1;if(!r.current&&"changedTouches"in h&&(y||C)&&(r.current=E),!E)return!0;var W=r.current||E;return C1(W,v,h,W==="h"?y:C)},[]),d=a.useCallback(function(h){var v=h;if(!(!pt.length||pt[pt.length-1]!==s)){var w="deltaY"in v?co(v):Ht(v),b=t.current.filter(function(E){return E.name===v.type&&(E.target===v.target||v.target===E.shadowParent)&&k1(E.delta,w)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}if(!b){var y=(i.current.shards||[]).map(lo).filter(Boolean).filter(function(E){return E.contains(v.target)}),C=y.length>0?c(v,y[0]):!i.current.noIsolation;C&&v.cancelable&&v.preventDefault()}}},[]),u=a.useCallback(function(h,v,w,b){var y={name:h,delta:v,target:w,should:b,shadowParent:N1(w)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(C){return C!==y})},1)},[]),f=a.useCallback(function(h){n.current=Ht(h),r.current=void 0},[]),p=a.useCallback(function(h){u(h.type,co(h),h.target,c(h,e.lockRef.current))},[]),g=a.useCallback(function(h){u(h.type,Ht(h),h.target,c(h,e.lockRef.current))},[]);a.useEffect(function(){return pt.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",d,ft),document.addEventListener("touchmove",d,ft),document.addEventListener("touchstart",f,ft),function(){pt=pt.filter(function(h){return h!==s}),document.removeEventListener("wheel",d,ft),document.removeEventListener("touchmove",d,ft),document.removeEventListener("touchstart",f,ft)}},[]);var m=e.removeScrollBar,x=e.inert;return a.createElement(a.Fragment,null,x?a.createElement(s,{styles:E1(o)}):null,m?a.createElement(g1,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function N1(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const R1=r1(Bs,S1);var vr=a.forwardRef(function(e,t){return a.createElement(vn,Le({},e,{ref:t,sideCar:R1}))});vr.classNames=vn.classNames;var xn="Popover",[qs]=an(xn,[pn]),At=pn(),[L1,tt]=qs(xn),Gs=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!1}=e,c=At(t),d=a.useRef(null),[u,f]=a.useState(!1),[p,g]=pr({prop:r,defaultProp:o??!1,onChange:s,caller:xn});return l.jsx(ws,{...c,children:l.jsx(L1,{scope:t,contentId:kt(),triggerRef:d,open:p,onOpenChange:g,onOpenToggle:a.useCallback(()=>g(m=>!m),[g]),hasCustomAnchor:u,onCustomAnchorAdd:a.useCallback(()=>f(!0),[]),onCustomAnchorRemove:a.useCallback(()=>f(!1),[]),modal:i,children:n})})};Gs.displayName=xn;var Us="PopoverAnchor",A1=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=tt(Us,n),s=At(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:c}=o;return a.useEffect(()=>(i(),()=>c()),[i,c]),l.jsx(fr,{...s,...r,ref:t})});A1.displayName=Us;var Zs="PopoverTrigger",Ys=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=tt(Zs,n),s=At(n),i=Ce(t,o.triggerRef),c=l.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ea(o.open),...r,ref:i,onClick:ce(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:l.jsx(fr,{asChild:!0,...s,children:c})});Ys.displayName=Zs;var xr="PopoverPortal",[P1,M1]=qs(xr,{forceMount:void 0}),Xs=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=tt(xr,t);return l.jsx(P1,{scope:t,forceMount:n,children:l.jsx(et,{present:n||s.open,children:l.jsx(mn,{asChild:!0,container:o,children:r})})})};Xs.displayName=xr;var wt="PopoverContent",Ks=a.forwardRef((e,t)=>{const n=M1(wt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=tt(wt,e.__scopePopover);return l.jsx(et,{present:r||s.open,children:s.modal?l.jsx(T1,{...o,ref:t}):l.jsx(I1,{...o,ref:t})})});Ks.displayName=wt;var O1=Fu("PopoverContent.RemoveScroll"),T1=a.forwardRef((e,t)=>{const n=tt(wt,e.__scopePopover),r=a.useRef(null),o=Ce(t,r),s=a.useRef(!1);return a.useEffect(()=>{const i=r.current;if(i)return Ds(i)},[]),l.jsx(vr,{as:O1,allowPinchZoom:!0,children:l.jsx(Qs,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ce(e.onCloseAutoFocus,i=>{i.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:ce(e.onPointerDownOutside,i=>{const c=i.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0,u=c.button===2||d;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:ce(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),I1=a.forwardRef((e,t)=>{const n=tt(wt,e.__scopePopover),r=a.useRef(!1),o=a.useRef(!1);return l.jsx(Qs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;n.triggerRef.current?.contains(i)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Qs=a.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:f,...p}=e,g=tt(wt,n),m=At(n);return Os(),l.jsx(gr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsx(cn,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:l.jsx(bs,{"data-state":ea(g.open),role:"dialog",id:g.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)"}})})})}),Js="PopoverClose",D1=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=tt(Js,n);return l.jsx(he.button,{type:"button",...r,ref:t,onClick:ce(e.onClick,()=>o.onOpenChange(!1))})});D1.displayName=Js;var $1="PopoverArrow",F1=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=At(n);return l.jsx(_s,{...o,...r,ref:t})});F1.displayName=$1;function ea(e){return e?"open":"closed"}var B1=Gs,z1=Ys,V1=Xs,ta=Ks;const uo=B1,fo=z1,na=a.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>l.jsx(V1,{children:l.jsx(ta,{ref:o,align:t,sideOffset:n,className:Me("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})}));na.displayName=ta.displayName;const H1="_anchor_1qyyn_1",W1="_triggerWrap_1qyyn_6",q1="_popover_1qyyn_11",Bn={anchor:H1,triggerWrap:W1,popover:q1},G1=(e="bottom")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},U1=e=>{const t="trigger"in e&&e.trigger!==void 0,{children:n,placement:r="bottom",className:o,isOpen:s,toggle:i,onOpenChange:c}=e,[d,u]=_.useState(!1),[f,p]=_.useState(null),g=s??d,{side:m,align:x}=_.useMemo(()=>G1(r),[r]),h=_.useCallback(()=>{if(t)return;const b=e.target?.current;p(b?.getBoundingClientRect()??null)},[e.target,t]),v=_.useCallback(b=>{s===void 0&&u(b),c?.(b)},[s,c]);_.useEffect(()=>{if(t)return;const b=e.target?.current;if(!b)return;const y=()=>{h(),s===void 0?u(C=>{const E=!C;return c?.(E),E}):c?.(!s),i?.()};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,c,e.target,i,t,h]);const w=l.jsx(na,{side:m,align:x,className:R(Bn.popover,o),children:n});return t?l.jsxs(uo,{open:g,onOpenChange:v,children:[l.jsx(fo,{asChild:!0,children:l.jsx("span",{className:Bn.triggerWrap,children:e.trigger})}),w]}):l.jsxs(uo,{open:g,onOpenChange:v,children:[Wo(l.jsx(fo,{asChild:!0,children:l.jsx("span",{className:Bn.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]})},Z1="_emptyComponent_1wdgn_1",Y1="_svgWrapper_1wdgn_11",X1="_title_1wdgn_23",K1="_subtitle_1wdgn_28",Wt={emptyComponent:Z1,svgWrapper:Y1,title:X1,subtitle:K1},yt=({svg:e=l.jsx(yo,{}),title:t="Нет данных для отображения",description:n,subtitle:r,content:o,className:s})=>{const i=n??r;return l.jsxs("div",{className:R(Wt.emptyComponent,s),children:[l.jsx("div",{className:Wt.svgWrapper,children:e}),t&&l.jsx("span",{className:Wt.title,children:t}),i&&l.jsx("span",{className:Wt.subtitle,children:i}),o&&o]})},Q1="_container_xa163_1",J1="_header_xa163_6",ef="_header_icon_xa163_14",tf="_iconTransition_xa163_20",nf="_rotateIcon_xa163_23",rf="_content_xa163_26",of="_padding_xa163_31",Ne={container:Q1,header:J1,header_icon:ef,iconTransition:tf,rotateIcon:nf,content:rf,padding:of},ra=({header:e,className:t,content:n,onToggle:r,isOpen:o,defaultOpen:s=!1,id:i,headerClassName:c,contentClassName:d,iconClassName:u})=>{const[f,p]=_.useState(s),g=_.useRef(!1),m=typeof o=="boolean"?o:f,x=_.useRef(null),h=typeof e=="string"?l.jsx("div",{className:Ne.header_text,children:l.jsx("span",{children:e})}):e,v=typeof n=="string"?l.jsx("span",{className:Ne.content_text,children:n}):n;_.useEffect(()=>{const b=x.current;if(b){if(!g.current){b.style.height=s?"auto":"0px",g.current=!0;return}if(m){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"})}},[m,s]);const w=_.useCallback(b=>{b.stopPropagation(),r?r():p(y=>!y)},[r]);return l.jsxs("div",{className:R(Ne.container,t),id:i,children:[l.jsxs("div",{className:R(Ne.header,c),children:[h,l.jsx("div",{className:R(Ne.header_icon,u),onClick:w,children:l.jsx(sn,{className:R(Ne.iconArrow,Ne.iconTransition,{[Ne.rotateIcon]:m})})})]}),l.jsx("div",{className:R(Ne.content,d,{[Ne.padding]:m}),ref:x,children:v})]})},sf="_collapsableBlock_86gg6_1",af="_header_86gg6_6",cf="_headerWithInfoTooltip_86gg6_12",lf="_infoIcon_86gg6_20",qt={collapsableBlock:sf,header:af,headerWithInfoTooltip:cf,infoIcon:lf},df=a.memo(e=>{const{id:t,header:n,content:r,className:o,infoTooltipContent:s,...i}=e,[c,d]=_.useState(!1),u=()=>d(!c);return l.jsx(ra,{id:t,className:R(qt.collapsableBlock,o),header:s?l.jsxs("div",{className:qt.headerWithInfoTooltip,children:[l.jsx("span",{children:n}),l.jsx(_o,{className:qt.infoIcon,id:"CollapsableBlockNewInfoTooltipIcon"}),l.jsx(Ms,{autohide:!1,delay:{show:0,hide:500},isOpen:c,placement:"left-start",target:"CollapsableBlockNewInfoTooltipIcon",toggle:u,children:s})]}):n,content:r,headerClassName:qt.header,...i})});var uf=typeof document<"u",ff=function(){},Xn=uf?_.useLayoutEffect:ff;const pf={...a},mf=pf.useInsertionEffect,hf=mf||(e=>e());function gf(e){const t=a.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return hf(()=>{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 vf={...a};let po=!1,xf=0;const mo=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+xf++;function wf(){const[e,t]=a.useState(()=>po?mo():void 0);return Xn(()=>{e==null&&t(mo())},[]),a.useEffect(()=>{po=!0},[]),e}const bf=vf.useId,_f=bf||wf;let Kn;process.env.NODE_ENV!=="production"&&(Kn=new Set);function yf(){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=Kn)!=null&&e.has(o))){var s;(s=Kn)==null||s.add(o),console.error(o)}}function Cf(){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 kf=a.createContext(null),Ef=a.createContext(null),jf=()=>{var e;return((e=a.useContext(kf))==null?void 0:e.id)||null},Sf=()=>a.useContext(Ef);function Nf(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=_f(),s=a.useRef({}),[i]=a.useState(()=>Cf()),c=jf()!=null;if(process.env.NODE_ENV!=="production"){const m=r.reference;m&&!me(m)&&yf("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]=a.useState(r.reference),f=gf((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:u}),[]),g=a.useMemo(()=>({reference:d||r.reference||null,floating:r.floating||null,domReference:r.reference}),[d,r.reference,r.floating]);return a.useMemo(()=>({dataRef:s,open:t,onOpenChange:f,elements:g,events:i,floatingId:o,refs:p}),[t,f,g,i,o,p])}function Rf(e){e===void 0&&(e={});const{nodeId:t}=e,n=Nf({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[s,i]=a.useState(null),[c,d]=a.useState(null),f=o?.domReference||s,p=a.useRef(null),g=Sf();Xn(()=>{f&&(p.current=f)},[f]);const m=ss({...e,elements:{...o,...c&&{reference:c}}}),x=a.useCallback(y=>{const C=me(y)?{getBoundingClientRect:()=>y.getBoundingClientRect(),getClientRects:()=>y.getClientRects(),contextElement:y}:y;d(C),m.refs.setReference(C)},[m.refs]),h=a.useCallback(y=>{(me(y)||y===null)&&(p.current=y,i(y)),(me(m.refs.reference.current)||m.refs.reference.current===null||y!==null&&!me(y))&&m.refs.setReference(y)},[m.refs]),v=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:v,elements:w,nodeId:t}),[m,v,w,t,r]);return Xn(()=>{r.dataRef.current.floatingContext=b;const y=g?.nodesRef.current.find(C=>C.id===t);y&&(y.context=b)}),a.useMemo(()=>({...m,context:b,refs:v,elements:w}),[m,v,w,b])}const Lf="_caption_ltp0o_1",Af="_fadeIn_ltp0o_1",Pf="_caption_neutral_ltp0o_16",Mf="_caption_error_ltp0o_20",Of="_caption_success_ltp0o_24",Tf="_fullWidth_ltp0o_38",zn={caption:Lf,fadeIn:Af,caption_neutral:Pf,caption_error:Mf,caption_success:Of,fullWidth:Tf},wn=({children:e,isFullWidth:t,variant:n,type:r})=>{const o=n??r??"error";return l.jsx("p",{className:R(zn.caption,zn[`caption_${o}`],{[zn.fullWidth]:t}),children:e})};var If=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Df=If.reduce((e,t)=>{const n=Eo(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...c}=o,d=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(d,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),$f="Label",oa=a.forwardRef((e,t)=>l.jsx(Df.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));oa.displayName=$f;var sa=oa;const Ff=No("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),aa=a.forwardRef(({className:e,...t},n)=>l.jsx(sa,{ref:n,className:Me(Ff(),e),...t}));aa.displayName=sa.displayName;const Bf="_label_1xouh_1",zf="_label__text_1xouh_11",ho={label:Bf,label__text:zf},bn=({htmlFor:e,children:t,className:n})=>l.jsx(aa,{htmlFor:e,className:R(ho.label,n),children:typeof t=="string"?l.jsx("div",{className:ho.label__text,children:t}):t}),Vf="_wrapper_19g1g_1",Hf="_wrapper_small_19g1g_14",Wf="_iconCross_19g1g_17",qf="_iconCross_small_19g1g_25",Gt={wrapper:Vf,wrapper_small:Hf,iconCross:Wf,iconCross_small:qf},ia=_.memo(({className:e,children:t,onClick:n,isSmall:r})=>l.jsxs("div",{className:R(Gt.wrapper,e,r&&Gt.wrapper_small),children:[l.jsx("span",{children:t}),n&&l.jsx(Ze,{className:R(Gt.iconCross,{[Gt.iconCross_small]:r}),onClick:o=>{o.stopPropagation(),n()}})]})),Gf="_wrapper_94m4o_1",Uf="_container_94m4o_5",Zf="_input_94m4o_5",Yf="_error_94m4o_17",Xf="_disabled_94m4o_20",Kf="_tagContainer_94m4o_33",Qf="_selectedOptionContainer_94m4o_38",Jf="_selectedOption_94m4o_38",ep="_placeHolder_94m4o_49",tp="_iconContainer_94m4o_53",np="_deleteIcon_94m4o_59",rp="_divider_94m4o_79",op="_arrowIcon_94m4o_88",sp="_arrowIconExpanded_94m4o_103",ap="_dropdown_94m4o_107",ip="_dropdown_visible_94m4o_118",cp="_withSearch_94m4o_133",lp="_search_94m4o_136",dp="_search__icon_94m4o_149",up="_search__input_94m4o_154",fp="_option_94m4o_184",pp="_option_active_94m4o_192",mp="_option_active_next_active_94m4o_198",hp="_option_active_prev_active_94m4o_202",gp="_tableTemplate_94m4o_229",vp="_tableContainer_94m4o_236",xp="_table_94m4o_229",wp="_activeRow_94m4o_278",bp="_checkboxCell_94m4o_285",_p="_checkbox_94m4o_285",yp="_footerTotal_94m4o_300",G={wrapper:Gf,container:Uf,input:Zf,error:Yf,disabled:Xf,tagContainer:Kf,selectedOptionContainer:Qf,selectedOption:Jf,placeHolder:ep,iconContainer:tp,deleteIcon:np,divider:rp,arrowIcon:op,arrowIconExpanded:sp,dropdown:ap,dropdown_visible:ip,withSearch:cp,search:lp,search__icon:dp,search__input:up,option:fp,option_active:pp,option_active_next_active:mp,option_active_prev_active:hp,tableTemplate:gp,tableContainer:vp,table:xp,activeRow:wp,checkboxCell:bp,checkbox:_p,footerTotal:yp},Cp=6,kp=({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(_.Fragment,{children:n(o)},s):l.jsx(ia,{isSmall:!0,...r&&{onClick:()=>r?.(o)},children:o.label},s))}):l.jsx("span",{className:G.selectedOption,children:t?t(e):e.label}):null,ca=({onSearch:e,searchClassName:t,searchValue:n,isLoading:r,placeholder:o})=>l.jsxs("div",{className:R(G.search,t),children:[l.jsx(on,{className:G.search__icon}),l.jsx("input",{className:G.search__input,value:n,onChange:s=>e?.(s.target.value),placeholder:o}),r&&l.jsx(Ye,{size:"extraSmall",className:G.search__spinner})]}),Ep=({value:e,options:t,optionClassName:n,optionRender:r,onChange:o,onSearch:s,searchClassName:i,isLoading:c,searchValue:d,searchPlaceholder:u})=>{const f=p=>Array.isArray(e)?e.some(g=>g.value===p.value):e?.value===p.value;return l.jsxs(l.Fragment,{children:[s&&l.jsx(ca,{onSearch:s,searchValue:d,searchClassName:i,isLoading:c,placeholder:u}),t&&t.length?l.jsx("ul",{className:R({[G.withSearch]:s}),children:t.map((p,g)=>{const m=f(p),x=t[g-1]&&f(t[g-1]),h=t[g+1]&&f(t[g+1]);return l.jsx("li",{className:R(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}${g}`)})}):!c&&l.jsx(yt,{})]})},jp=({value:e,options:t,onChange:n,onDelete:r,onSearch:o,searchClassName:s,isLoading:i,searchValue:c,searchPlaceholder:d,columns:u,total:f,mode:p})=>{const g=v=>Array.isArray(e)?e.some(w=>w.value===v.value):e?.value===v.value,m=(v,w)=>{if(p==="multiple"&&w&&r){r(v);return}n(v)},x=f??t?.length??0,h=u??[];return l.jsxs("div",{className:G.tableTemplate,children:[o&&l.jsx(ca,{onSearch:o,searchValue:c,searchClassName:s,isLoading:i,placeholder:d}),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(v=>l.jsx("th",{className:v.className,children:v.title},v.key))]})}),l.jsx("tbody",{children:t.map((v,w)=>{const b=g(v);return l.jsxs("tr",{className:R({[G.activeRow]:b}),onClick:()=>m(v,b),children:[l.jsx("td",{className:G.checkboxCell,children:l.jsx("input",{type:"checkbox",className:G.checkbox,checked:b,readOnly:!0,tabIndex:-1,onClick:y=>y.stopPropagation(),onChange:()=>m(v,b)})}),h.map(y=>l.jsx("td",{className:y.className,children:y.render(v)},y.key))]},`${String(v.value)}${w}`)})})]}):!i&&l.jsx(yt,{})}),l.jsxs("div",{className:G.footerTotal,children:["Всего ",x]})]})},Sp=({options:e,value:t,mode:n,placeholder:r,onChange:o,dropdownRender:s,optionRender:i,selectedOptionRender:c,dropdownIcon:d,tagRender:u,dropDownClassName:f,optionClassName:p,inputClassName:g,deleteIconClassName:m,onDelete:x,onClear:h,label:v,onSearch:w,searchClassName:b,searchPlaceholder:y,isLoading:C,disabled:E,onClose:k,portalTarget:S,error:j,fixedHeight:I=!0,template:D="list",columns:F,total:W})=>{const[B,z]=_.useState(!1),[U,$]=_.useState(!1),V=_.useRef(null),O=_.useRef(null),Y=_.useRef(null),[N,pe]=_.useState(""),oe=S??(U&&typeof document<"u"?document.body:void 0);_.useEffect(()=>{$(!0)},[]);const le=_.useCallback(q=>{pe(q),w?.(q)},[w]);_.useEffect(()=>{if(!B)return;const q=se=>{V.current&&!V.current.contains(se.target)&&(!O.current||!O.current.contains(se.target))&&(le(""),z(!1),k?.())};return document.addEventListener("mousedown",q,!0),()=>{document.removeEventListener("mousedown",q,!0)}},[le,B,k]);const{refs:te,floatingStyles:X,update:Q}=Rf({strategy:"absolute",placement:"bottom-start",open:B,whileElementsMounted:(q,se,nt)=>rs(q,se,nt,{ancestorScroll:!1,elementResize:!0,ancestorResize:!0,layoutShift:!0}),middleware:[as(Cp),is({fallbackPlacements:["top-start","bottom-start"]}),cs({apply({rects:q,elements:se}){const nt=`${Math.round(q.reference.width)}px`;se.floating.style.width!==nt&&(se.floating.style.width=nt)}})]}),ae=_.useCallback(q=>{Y.current=q,te.setReference(q)},[te]),P=_.useCallback(q=>{O.current=q,te.setFloating(q)},[te]);_.useEffect(()=>{B&&Q()},[B,Q]);const Z=_.useCallback(q=>{o?.(q),le(""),k?.(),n==="single"&&z(!1)},[le,n,o,k]),we=_.useCallback(()=>{const q=l.jsx("div",{ref:P,className:R(G.dropdown,{[G.dropdown_visible]:B},f),style:X,onClick:se=>se.stopPropagation(),children:l.jsx("div",{className:G.dropdownContent,style:{height:I?"300px":"none"},children:(()=>{const se=D==="table"?l.jsx(jp,{value:t,options:e,onChange:Z,onDelete:x,...w&&{onSearch:le},searchClassName:b,isLoading:C,searchValue:N,searchPlaceholder:y,columns:F,total:W,mode:n}):l.jsx(Ep,{value:t,options:e,optionClassName:p,optionRender:i,onChange:Z,...w&&{onSearch:le},searchClassName:b,isLoading:C,searchValue:N,searchPlaceholder:y});return s?s(se):se})()})});return oe?St.createPortal(q,oe):q},[f,s,I,X,Z,le,C,B,w,p,i,e,oe,D,F,W,n,x,b,y,N,P,t]),Se=_.useMemo(()=>U?we():null,[U,we]),ke=Array.isArray(t)?!!t.length:!!t;return l.jsxs("div",{className:G.wrapper,children:[v&&l.jsx(bn,{htmlFor:"CustomSelectInput",children:v}),l.jsxs("div",{className:G.container,ref:V,children:[l.jsxs("div",{role:"button",id:"CustomSelectInput",tabIndex:0,ref:ae,className:R(G.input,{[G.input_fixedHeight]:n==="single",[G.disabled]:E},j&&G.error,g),onClick:()=>{t&&(le(""),k?.()),z(q=>!q)},children:[l.jsx("div",{className:G.selectedOptionContainer,children:ke?l.jsx(kp,{value:t,selectedOptionRender:c,tagRender:u,onDelete:x}):l.jsx("span",{className:G.placeHolder,children:r})}),l.jsxs("div",{className:G.iconContainer,children:[h&&ke&&l.jsxs(l.Fragment,{children:[l.jsx(fe,{variant:"text",className:R(G.deleteIcon,m),onClick:q=>{q.stopPropagation(),h()},children:l.jsx("span",{children:l.jsx(Ze,{})})}),l.jsx("div",{className:G.divider,children:l.jsx("div",{})})]}),d||l.jsx(fe,{variant:"text",className:R(G.arrowIcon,{[G.arrowIconExpanded]:B}),children:l.jsx(sn,{})})]})]}),Se]}),j&&l.jsx(wn,{children:j})]})};function Np(e){const t=Rp(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,c=a.Children.toArray(s),d=c.find(Ap);if(d){const u=d.props.children,f=c.map(p=>p===d?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:p);return l.jsx(t,{...i,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,f):null})}return l.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Rp(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=Mp(o),c=Pp(s,o.props);return o.type!==a.Fragment&&(c.ref=r?Nt(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 Lp=Symbol("radix.slottable");function Ap(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Lp}function Pp(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 d=s(...c);return o(...c),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Mp(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 _n="Dialog",[la]=an(_n),[Op,je]=la(_n),da=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,c=a.useRef(null),d=a.useRef(null),[u,f]=pr({prop:r,defaultProp:o??!1,onChange:s,caller:_n});return l.jsx(Op,{scope:t,triggerRef:c,contentRef:d,contentId:kt(),titleId:kt(),descriptionId:kt(),open:u,onOpenChange:f,onOpenToggle:a.useCallback(()=>f(p=>!p),[f]),modal:i,children:n})};da.displayName=_n;var ua="DialogTrigger",Tp=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=je(ua,n),s=Ce(t,o.triggerRef);return l.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":_r(o.open),...r,ref:s,onClick:ce(e.onClick,o.onOpenToggle)})});Tp.displayName=ua;var wr="DialogPortal",[Ip,fa]=la(wr,{forceMount:void 0}),pa=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=je(wr,t);return l.jsx(Ip,{scope:t,forceMount:n,children:a.Children.map(r,i=>l.jsx(et,{present:n||s.open,children:l.jsx(mn,{asChild:!0,container:o,children:i})}))})};pa.displayName=wr;var rn="DialogOverlay",ma=a.forwardRef((e,t)=>{const n=fa(rn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=je(rn,e.__scopeDialog);return s.modal?l.jsx(et,{present:r||s.open,children:l.jsx($p,{...o,ref:t})}):null});ma.displayName=rn;var Dp=Np("DialogOverlay.RemoveScroll"),$p=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=je(rn,n);return l.jsx(vr,{as:Dp,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsx(he.div,{"data-state":_r(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ct="DialogContent",ha=a.forwardRef((e,t)=>{const n=fa(ct,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=je(ct,e.__scopeDialog);return l.jsx(et,{present:r||s.open,children:s.modal?l.jsx(Fp,{...o,ref:t}):l.jsx(Bp,{...o,ref:t})})});ha.displayName=ct;var Fp=a.forwardRef((e,t)=>{const n=je(ct,e.__scopeDialog),r=a.useRef(null),o=Ce(t,n.contentRef,r);return a.useEffect(()=>{const s=r.current;if(s)return Ds(s)},[]),l.jsx(ga,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ce(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:ce(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0;(i.button===2||c)&&s.preventDefault()}),onFocusOutside:ce(e.onFocusOutside,s=>s.preventDefault())})}),Bp=a.forwardRef((e,t)=>{const n=je(ct,e.__scopeDialog),r=a.useRef(!1),o=a.useRef(!1);return l.jsx(ga,{...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()}})}),ga=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,c=je(ct,n),d=a.useRef(null),u=Ce(t,d);return Os(),l.jsxs(l.Fragment,{children:[l.jsx(gr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsx(cn,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":_r(c.open),...i,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(Vp,{titleId:c.titleId}),l.jsx(Wp,{contentRef:d,descriptionId:c.descriptionId})]})]})}),br="DialogTitle",va=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=je(br,n);return l.jsx(he.h2,{id:o.titleId,...r,ref:t})});va.displayName=br;var xa="DialogDescription",wa=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=je(xa,n);return l.jsx(he.p,{id:o.descriptionId,...r,ref:t})});wa.displayName=xa;var ba="DialogClose",zp=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=je(ba,n);return l.jsx(he.button,{type:"button",...r,ref:t,onClick:ce(e.onClick,()=>o.onOpenChange(!1))})});zp.displayName=ba;function _r(e){return e?"open":"closed"}var _a="DialogTitleWarning",[Hh,ya]=bl(_a,{contentName:ct,titleName:br,docsSlug:"dialog"}),Vp=({titleId:e})=>{const t=ya(_a),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
41
|
+
`)},Zh=0,qt=[];function Xh(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(Zh++)[0],s=d.useState(Ti)[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=vh([e.lockRef.current],(e.shards||[]).map($s),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=d.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!a.current.allowPinchZoom;var y=Xn(p),x=n.current,_="deltaX"in p?p.deltaX:x[0]-y[0],C="deltaY"in p?p.deltaY:x[1]-y[1],E,k=p.target,S=Math.abs(_)>Math.abs(C)?"h":"v";if("touches"in p&&S==="h"&&k.type==="range")return!1;var N=window.getSelection(),D=N&&N.anchorNode,j=D?D===k||D.contains(k):!1;if(j)return!1;var L=Fs(S,k);if(!L)return!0;if(L?E=S:(E=S==="v"?"h":"v",L=Fs(S,k)),!L)return!1;if(!r.current&&"changedTouches"in p&&(_||C)&&(r.current=E),!E)return!0;var P=r.current||E;return qh(P,v,p,P==="h"?_:C)},[]),c=d.useCallback(function(p){var v=p;if(!(!qt.length||qt[qt.length-1]!==s)){var y="deltaY"in v?Bs(v):Xn(v),x=t.current.filter(function(E){return E.name===v.type&&(E.target===v.target||v.target===E.shadowParent)&&Gh(E.delta,y)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}if(!x){var _=(a.current.shards||[]).map($s).filter(Boolean).filter(function(E){return E.contains(v.target)}),C=_.length>0?i(v,_[0]):!a.current.noIsolation;C&&v.cancelable&&v.preventDefault()}}},[]),u=d.useCallback(function(p,v,y,x){var _={name:p,delta:v,target:y,should:x,shadowParent:Kh(y)};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(C){return C!==_})},1)},[]),f=d.useCallback(function(p){n.current=Xn(p),r.current=void 0},[]),h=d.useCallback(function(p){u(p.type,Bs(p),p.target,i(p,e.lockRef.current))},[]),g=d.useCallback(function(p){u(p.type,Xn(p),p.target,i(p,e.lockRef.current))},[]);d.useEffect(function(){return qt.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Vt),document.addEventListener("touchmove",c,Vt),document.addEventListener("touchstart",f,Vt),function(){qt=qt.filter(function(p){return p!==s}),document.removeEventListener("wheel",c,Vt),document.removeEventListener("touchmove",c,Vt),document.removeEventListener("touchstart",f,Vt)}},[]);var m=e.removeScrollBar,w=e.inert;return d.createElement(d.Fragment,null,w?d.createElement(s,{styles:Uh(o)}):null,m?d.createElement(Fh,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Kh(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Qh=Sh(Ri,Xh);var zo=d.forwardRef(function(e,t){return d.createElement(Er,nt({},e,{ref:t,sideCar:Qh}))});zo.classNames=Er.classNames;var Sr="Popover",[Wi]=pr(Sr,[xr]),Nn=xr(),[Jh,Dt]=Wi(Sr),Fi=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,i=Nn(t),c=d.useRef(null),[u,f]=d.useState(!1),[h,g]=Lo({prop:r,defaultProp:o??!1,onChange:s,caller:Sr});return l.jsx(hi,{...i,children:l.jsx(Jh,{scope:t,contentId:bn(),triggerRef:c,open:h,onOpenChange:g,onOpenToggle:d.useCallback(()=>g(m=>!m),[g]),hasCustomAnchor:u,onCustomAnchorAdd:d.useCallback(()=>f(!0),[]),onCustomAnchorRemove:d.useCallback(()=>f(!1),[]),modal:a,children:n})})};Fi.displayName=Sr;var Bi="PopoverAnchor",em=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Dt(Bi,n),s=Nn(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=o;return d.useEffect(()=>(a(),()=>i()),[a,i]),l.jsx(Io,{...s,...r,ref:t})});em.displayName=Bi;var $i="PopoverTrigger",zi=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Dt($i,n),s=Nn(n),a=ze(t,o.triggerRef),i=l.jsx(Re.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Gi(o.open),...r,ref:a,onClick:Ee(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:l.jsx(Io,{asChild:!0,...s,children:i})});zi.displayName=$i;var Ho="PopoverPortal",[tm,nm]=Wi(Ho,{forceMount:void 0}),Hi=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=Dt(Ho,t);return l.jsx(tm,{scope:t,forceMount:n,children:l.jsx(Ot,{present:n||s.open,children:l.jsx(_r,{asChild:!0,container:o,children:r})})})};Hi.displayName=Ho;var nn="PopoverContent",Yi=d.forwardRef((e,t)=>{const n=nm(nn,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=Dt(nn,e.__scopePopover);return l.jsx(Ot,{present:r||s.open,children:s.modal?l.jsx(om,{...o,ref:t}):l.jsx(sm,{...o,ref:t})})});Yi.displayName=nn;var rm=ch("PopoverContent.RemoveScroll"),om=d.forwardRef((e,t)=>{const n=Dt(nn,e.__scopePopover),r=d.useRef(null),o=ze(t,r),s=d.useRef(!1);return d.useEffect(()=>{const a=r.current;if(a)return Oi(a)},[]),l.jsx(zo,{as:rm,allowPinchZoom:!0,children:l.jsx(Vi,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,a=>{a.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0,u=i.button===2||c;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:Ee(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),sm=d.forwardRef((e,t)=>{const n=Dt(nn,e.__scopePopover),r=d.useRef(!1),o=d.useRef(!1);return l.jsx(Vi,{...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 a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Vi=d.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:f,...h}=e,g=Dt(nn,n),m=Nn(n);return Ni(),l.jsx($o,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsx(gr,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:l.jsx(mi,{"data-state":Gi(g.open),role:"dialog",id:g.contentId,...m,...h,ref:t,style:{...h.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)"}})})})}),qi="PopoverClose",am=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Dt(qi,n);return l.jsx(Re.button,{type:"button",...r,ref:t,onClick:Ee(e.onClick,()=>o.onOpenChange(!1))})});am.displayName=qi;var im="PopoverArrow",cm=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Nn(n);return l.jsx(pi,{...o,...r,ref:t})});cm.displayName=im;function Gi(e){return e?"open":"closed"}var lm=Fi,dm=zi,um=Hi,Ui=Yi;const po=lm,go=dm,Yo=d.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>l.jsx(um,{children:l.jsx(Ui,{ref:o,align:t,sideOffset:n,className:K("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})}));Yo.displayName=Ui.displayName;const fm="_anchor_1qyyn_1",hm="_triggerWrap_1qyyn_6",mm="_popover_1qyyn_11",Kr={anchor:fm,triggerWrap:hm,popover:mm},pm=(e="bottom")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},gm=e=>{const t="trigger"in e&&e.trigger!==void 0,{children:n,placement:r="bottom",className:o,isOpen:s,toggle:a,onOpenChange:i}=e,[c,u]=b.useState(!1),[f,h]=b.useState(null),g=s??c,{side:m,align:w}=b.useMemo(()=>pm(r),[r]),p=b.useCallback(()=>{if(t)return;const x=e.target?.current;h(x?.getBoundingClientRect()??null)},[e.target,t]),v=b.useCallback(x=>{s===void 0&&u(x),i?.(x)},[s,i]);b.useEffect(()=>{if(t)return;const x=e.target?.current;if(!x)return;const _=()=>{p(),s===void 0?u(C=>{const E=!C;return i?.(E),E}):i?.(!s),a?.()};return x.addEventListener("click",_),window.addEventListener("scroll",p,!0),window.addEventListener("resize",p),()=>{x.removeEventListener("click",_),window.removeEventListener("scroll",p,!0),window.removeEventListener("resize",p)}},[s,i,e.target,a,t,p]);const y=l.jsx(Yo,{side:m,align:w,className:O(Kr.popover,o),children:n});return t?l.jsxs(po,{open:g,onOpenChange:v,children:[l.jsx(go,{asChild:!0,children:l.jsx("span",{className:Kr.triggerWrap,children:e.trigger})}),y]}):l.jsxs(po,{open:g,onOpenChange:v,children:[Wa(l.jsx(go,{asChild:!0,children:l.jsx("span",{className:Kr.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})})),y]})},vm="_emptyComponent_1wdgn_1",bm="_svgWrapper_1wdgn_11",wm="_title_1wdgn_23",ym="_subtitle_1wdgn_28",Kn={emptyComponent:vm,svgWrapper:bm,title:wm,subtitle:ym},Bt=({svg:e=l.jsx(pa,{}),title:t="Нет данных для отображения",description:n,subtitle:r,content:o,className:s})=>{const a=n??r;return l.jsxs("div",{className:O(Kn.emptyComponent,s),children:[l.jsx("div",{className:Kn.svgWrapper,children:e}),t&&l.jsx("span",{className:Kn.title,children:t}),a&&l.jsx("span",{className:Kn.subtitle,children:a}),o&&o]})},xm="_container_xa163_1",_m="_header_xa163_6",Cm="_header_icon_xa163_14",km="_iconTransition_xa163_20",Em="_rotateIcon_xa163_23",Sm="_content_xa163_26",Nm="_padding_xa163_31",Je={container:xm,header:_m,header_icon:Cm,iconTransition:km,rotateIcon:Em,content:Sm,padding:Nm},Zi=({header:e,className:t,content:n,onToggle:r,isOpen:o,defaultOpen:s=!1,id:a,headerClassName:i,contentClassName:c,iconClassName:u})=>{const[f,h]=b.useState(s),g=b.useRef(!1),m=typeof o=="boolean"?o:f,w=b.useRef(null),p=typeof e=="string"?l.jsx("div",{className:Je.header_text,children:l.jsx("span",{children:e})}):e,v=typeof n=="string"?l.jsx("span",{className:Je.content_text,children:n}):n;b.useEffect(()=>{const x=w.current;if(x){if(!g.current){x.style.height=s?"auto":"0px",g.current=!0;return}if(m){x.style.height=`${x.scrollHeight}px`;const _=()=>{x.style.height="auto"};x.addEventListener("transitionend",_,{once:!0})}else x.style.height=`${x.scrollHeight}px`,requestAnimationFrame(()=>{x.style.height="0px"})}},[m,s]);const y=b.useCallback(x=>{x.stopPropagation(),r?r():h(_=>!_)},[r]);return l.jsxs("div",{className:O(Je.container,t),id:a,children:[l.jsxs("div",{className:O(Je.header,i),children:[p,l.jsx("div",{className:O(Je.header_icon,u),onClick:y,children:l.jsx(It,{className:O(Je.iconArrow,Je.iconTransition,{[Je.rotateIcon]:m})})})]}),l.jsx("div",{className:O(Je.content,c,{[Je.padding]:m}),ref:w,children:v})]})},Mm="_collapsableBlock_86gg6_1",jm="_header_86gg6_6",Om="_headerWithInfoTooltip_86gg6_12",Dm="_infoIcon_86gg6_20",Qn={collapsableBlock:Mm,header:jm,headerWithInfoTooltip:Om,infoIcon:Dm},Pm=d.memo(e=>{const{id:t,header:n,content:r,className:o,infoTooltipContent:s,...a}=e,[i,c]=b.useState(!1),u=()=>c(!i);return l.jsx(Zi,{id:t,className:O(Qn.collapsableBlock,o),header:s?l.jsxs("div",{className:Qn.headerWithInfoTooltip,children:[l.jsx("span",{children:n}),l.jsx(ha,{className:Qn.infoIcon,id:"CollapsableBlockNewInfoTooltipIcon"}),l.jsx(Bo,{autohide:!1,delay:{show:0,hide:500},isOpen:i,placement:"left-start",target:"CollapsableBlockNewInfoTooltipIcon",toggle:u,children:s})]}):n,content:r,headerClassName:Qn.header,...a})});var Rm=typeof document<"u",Tm=function(){},vo=Rm?b.useLayoutEffect:Tm;const Am={...d},Im=Am.useInsertionEffect,Lm=Im||(e=>e());function Wm(e){const t=d.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Lm(()=>{t.current=e}),d.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 Fm={...d};let zs=!1,Bm=0;const Hs=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Bm++;function $m(){const[e,t]=d.useState(()=>zs?Hs():void 0);return vo(()=>{e==null&&t(Hs())},[]),d.useEffect(()=>{zs=!0},[]),e}const zm=Fm.useId,Hm=zm||$m;let bo;process.env.NODE_ENV!=="production"&&(bo=new Set);function Ym(){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=bo)!=null&&e.has(o))){var s;(s=bo)==null||s.add(o),console.error(o)}}function Vm(){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 qm=d.createContext(null),Gm=d.createContext(null),Um=()=>{var e;return((e=d.useContext(qm))==null?void 0:e.id)||null},Zm=()=>d.useContext(Gm);function Xm(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Hm(),s=d.useRef({}),[a]=d.useState(()=>Vm()),i=Um()!=null;if(process.env.NODE_ENV!=="production"){const m=r.reference;m&&!Pe(m)&&Ym("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,u]=d.useState(r.reference),f=Wm((m,w,p)=>{s.current.openEvent=m?w:void 0,a.emit("openchange",{open:m,event:w,reason:p,nested:i}),n?.(m,w,p)}),h=d.useMemo(()=>({setPositionReference:u}),[]),g=d.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return d.useMemo(()=>({dataRef:s,open:t,onOpenChange:f,elements:g,events:a,floatingId:o,refs:h}),[t,f,g,a,o,h])}function Km(e){e===void 0&&(e={});const{nodeId:t}=e,n=Xm({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[s,a]=d.useState(null),[i,c]=d.useState(null),f=o?.domReference||s,h=d.useRef(null),g=Zm();vo(()=>{f&&(h.current=f)},[f]);const m=Ja({...e,elements:{...o,...i&&{reference:i}}}),w=d.useCallback(_=>{const C=Pe(_)?{getBoundingClientRect:()=>_.getBoundingClientRect(),getClientRects:()=>_.getClientRects(),contextElement:_}:_;c(C),m.refs.setReference(C)},[m.refs]),p=d.useCallback(_=>{(Pe(_)||_===null)&&(h.current=_,a(_)),(Pe(m.refs.reference.current)||m.refs.reference.current===null||_!==null&&!Pe(_))&&m.refs.setReference(_)},[m.refs]),v=d.useMemo(()=>({...m.refs,setReference:p,setPositionReference:w,domReference:h}),[m.refs,p,w]),y=d.useMemo(()=>({...m.elements,domReference:f}),[m.elements,f]),x=d.useMemo(()=>({...m,...r,refs:v,elements:y,nodeId:t}),[m,v,y,t,r]);return vo(()=>{r.dataRef.current.floatingContext=x;const _=g?.nodesRef.current.find(C=>C.id===t);_&&(_.context=x)}),d.useMemo(()=>({...m,context:x,refs:v,elements:y}),[m,v,y,x])}const Qm="_caption_ltp0o_1",Jm="_fadeIn_ltp0o_1",ep="_caption_neutral_ltp0o_16",tp="_caption_error_ltp0o_20",np="_caption_success_ltp0o_24",rp="_fullWidth_ltp0o_38",Qr={caption:Qm,fadeIn:Jm,caption_neutral:ep,caption_error:tp,caption_success:np,fullWidth:rp},$t=({children:e,isFullWidth:t,variant:n,type:r})=>{const o=n??r??"error";return l.jsx("p",{className:O(Qr.caption,Qr[`caption_${o}`],{[Qr.fullWidth]:t}),children:e})};const Xi=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const op=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const sp=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const Ys=e=>{const t=sp(e);return t.charAt(0).toUpperCase()+t.slice(1)};var ap={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const ip=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const cp=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...i},c)=>b.createElement("svg",{ref:c,...ap,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Xi("lucide",o),...!s&&!ip(i)&&{"aria-hidden":"true"},...i},[...a.map(([u,f])=>b.createElement(u,f)),...Array.isArray(s)?s:[s]]));const Mn=(e,t)=>{const n=b.forwardRef(({className:r,...o},s)=>b.createElement(cp,{ref:s,iconNode:t,className:Xi(`lucide-${op(Ys(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Ys(e),n};const lp=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],dp=Mn("calendar",lp);const up=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],fp=Mn("chevron-down",up);const hp=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],mp=Mn("chevron-left",hp);const pp=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],gp=Mn("chevron-right",pp);const vp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],bp=Mn("circle-question-mark",vp);var wp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],yp=wp.reduce((e,t)=>{const n=wa(`Primitive.${t}`),r=d.forwardRef((o,s)=>{const{asChild:a,...i}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),xp="Label",Ki=d.forwardRef((e,t)=>l.jsx(yp.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Ki.displayName=xp;var Qi=Ki;const _p=_a("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ji=d.forwardRef(({className:e,...t},n)=>l.jsx(Qi,{ref:n,className:K(_p(),e),...t}));Ji.displayName=Qi.displayName;const Cp="_label_1i8xb_1",kp="_label__text_1i8xb_11",Ep="_label_inline_1i8xb_14",wo={label:Cp,label__text:kp,label_inline:Ep},yo=({htmlFor:e,children:t,className:n})=>l.jsx(Ji,{htmlFor:e,className:O(wo.label,n),children:typeof t=="string"?l.jsx("div",{className:wo.label__text,children:t}):t}),Sp="_labelRow_1kh14_1",Np="_helpIcon_1kh14_9",Mp="_helpIconSvg_1kh14_33",Jr={labelRow:Sp,helpIcon:Np,helpIconSvg:Mp},jn=({htmlFor:e,children:t,required:n,tooltipContent:r,tooltipPopperClassName:o,className:s})=>{const a=b.useRef(null),i=typeof t=="string"&&n?`${t} *`:t;return r?l.jsxs("div",{className:O(Jr.labelRow,s),children:[l.jsx(yo,{className:wo.label_inline,htmlFor:e,children:i}),l.jsx("button",{ref:a,type:"button",className:Jr.helpIcon,"aria-label":"Справка по полю",children:l.jsx(bp,{className:Jr.helpIconSvg,"aria-hidden":!0})}),l.jsx(Bo,{target:a,popperClassName:o,children:r})]}):l.jsx(yo,{htmlFor:e,className:s,children:i})},jp="_wrapper_19g1g_1",Op="_wrapper_small_19g1g_14",Dp="_iconCross_19g1g_17",Pp="_iconCross_small_19g1g_25",Jn={wrapper:jp,wrapper_small:Op,iconCross:Dp,iconCross_small:Pp},ec=b.memo(({className:e,children:t,onClick:n,isSmall:r})=>l.jsxs("div",{className:O(Jn.wrapper,e,r&&Jn.wrapper_small),children:[l.jsx("span",{children:t}),n&&l.jsx(st,{className:O(Jn.iconCross,{[Jn.iconCross_small]:r}),onClick:o=>{o.stopPropagation(),n()}})]})),Rp="_wrapper_94m4o_1",Tp="_container_94m4o_5",Ap="_input_94m4o_5",Ip="_error_94m4o_17",Lp="_disabled_94m4o_20",Wp="_tagContainer_94m4o_33",Fp="_selectedOptionContainer_94m4o_38",Bp="_selectedOption_94m4o_38",$p="_placeHolder_94m4o_49",zp="_iconContainer_94m4o_53",Hp="_deleteIcon_94m4o_59",Yp="_divider_94m4o_79",Vp="_arrowIcon_94m4o_88",qp="_arrowIconExpanded_94m4o_103",Gp="_dropdown_94m4o_107",Up="_dropdown_visible_94m4o_118",Zp="_withSearch_94m4o_133",Xp="_search_94m4o_136",Kp="_search__icon_94m4o_149",Qp="_search__input_94m4o_154",Jp="_option_94m4o_184",e0="_option_active_94m4o_192",t0="_option_active_next_active_94m4o_198",n0="_option_active_prev_active_94m4o_202",r0="_tableTemplate_94m4o_229",o0="_tableContainer_94m4o_236",s0="_table_94m4o_229",a0="_activeRow_94m4o_278",i0="_checkboxCell_94m4o_285",c0="_checkbox_94m4o_285",l0="_footerTotal_94m4o_300",te={wrapper:Rp,container:Tp,input:Ap,error:Ip,disabled:Lp,tagContainer:Wp,selectedOptionContainer:Fp,selectedOption:Bp,placeHolder:$p,iconContainer:zp,deleteIcon:Hp,divider:Yp,arrowIcon:Vp,arrowIconExpanded:qp,dropdown:Gp,dropdown_visible:Up,withSearch:Zp,search:Xp,search__icon:Kp,search__input:Qp,option:Jp,option_active:e0,option_active_next_active:t0,option_active_prev_active:n0,tableTemplate:r0,tableContainer:o0,table:s0,activeRow:a0,checkboxCell:i0,checkbox:c0,footerTotal:l0},d0=6,u0=({value:e,selectedOptionRender:t,tagRender:n,onDelete:r})=>e?Array.isArray(e)?l.jsx("div",{className:te.tagContainer,children:e.map((o,s)=>n?l.jsx(b.Fragment,{children:n(o)},s):l.jsx(ec,{isSmall:!0,...r&&{onClick:()=>r?.(o)},children:o.label},s))}):l.jsx("span",{className:te.selectedOption,children:t?t(e):e.label}):null,tc=({onSearch:e,searchClassName:t,searchValue:n,isLoading:r,placeholder:o})=>l.jsxs("div",{className:O(te.search,t),children:[l.jsx(hr,{className:te.search__icon}),l.jsx("input",{className:te.search__input,value:n,onChange:s=>e?.(s.target.value),placeholder:o}),r&&l.jsx(Ze,{size:"extraSmall",className:te.search__spinner})]}),f0=({value:e,options:t,optionClassName:n,optionRender:r,onChange:o,onSearch:s,searchClassName:a,isLoading:i,searchValue:c,searchPlaceholder:u})=>{const f=h=>Array.isArray(e)?e.some(g=>g.value===h.value):e?.value===h.value;return l.jsxs(l.Fragment,{children:[s&&l.jsx(tc,{onSearch:s,searchValue:c,searchClassName:a,isLoading:i,placeholder:u}),t&&t.length?l.jsx("ul",{className:O({[te.withSearch]:s}),children:t.map((h,g)=>{const m=f(h),w=t[g-1]&&f(t[g-1]),p=t[g+1]&&f(t[g+1]);return l.jsx("li",{className:O(te.option,{[te.option_active]:m,[te.option_active_prev_active]:w,[te.option_active_next_active]:p},n),onClick:()=>o(h),children:r?r(h):h.label},`${h.value}${g}`)})}):!i&&l.jsx(Bt,{})]})},h0=({value:e,options:t,onChange:n,onDelete:r,onSearch:o,searchClassName:s,isLoading:a,searchValue:i,searchPlaceholder:c,columns:u,total:f,mode:h})=>{const g=v=>Array.isArray(e)?e.some(y=>y.value===v.value):e?.value===v.value,m=(v,y)=>{if(h==="multiple"&&y&&r){r(v);return}n(v)},w=f??t?.length??0,p=u??[];return l.jsxs("div",{className:te.tableTemplate,children:[o&&l.jsx(tc,{onSearch:o,searchValue:i,searchClassName:s,isLoading:a,placeholder:c}),l.jsx("div",{className:te.tableContainer,children:t&&t.length?l.jsxs("table",{className:te.table,children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{className:te.checkboxCell,"aria-label":""}),p.map(v=>l.jsx("th",{className:v.className,children:v.title},v.key))]})}),l.jsx("tbody",{children:t.map((v,y)=>{const x=g(v);return l.jsxs("tr",{className:O({[te.activeRow]:x}),onClick:()=>m(v,x),children:[l.jsx("td",{className:te.checkboxCell,children:l.jsx("input",{type:"checkbox",className:te.checkbox,checked:x,readOnly:!0,tabIndex:-1,onClick:_=>_.stopPropagation(),onChange:()=>m(v,x)})}),p.map(_=>l.jsx("td",{className:_.className,children:_.render(v)},_.key))]},`${String(v.value)}${y}`)})})]}):!a&&l.jsx(Bt,{})}),l.jsxs("div",{className:te.footerTotal,children:["Всего ",w]})]})},m0=({options:e,value:t,mode:n,placeholder:r,onChange:o,dropdownRender:s,optionRender:a,selectedOptionRender:i,dropdownIcon:c,tagRender:u,dropDownClassName:f,optionClassName:h,inputClassName:g,deleteIconClassName:m,onDelete:w,onClear:p,label:v,tooltipContent:y,tooltipPopperClassName:x,onSearch:_,searchClassName:C,searchPlaceholder:E,isLoading:k,disabled:S,onClose:N,portalTarget:D,error:j,fixedHeight:L=!0,template:P="list",columns:T,total:W})=>{const[V,R]=b.useState(!1),[q,Y]=b.useState(!1),U=b.useRef(null),M=b.useRef(null),J=b.useRef(null),[ue,he]=b.useState(""),pe=D??(q&&typeof document<"u"?document.body:void 0);b.useEffect(()=>{Y(!0)},[]);const Z=b.useCallback(ae=>{he(ae),_?.(ae)},[_]);b.useEffect(()=>{if(!V)return;const ae=Me=>{U.current&&!U.current.contains(Me.target)&&(!M.current||!M.current.contains(Me.target))&&(Z(""),R(!1),N?.())};return document.addEventListener("mousedown",ae,!0),()=>{document.removeEventListener("mousedown",ae,!0)}},[Z,V,N]);const{refs:ee,floatingStyles:fe,update:Se}=Km({strategy:"absolute",placement:"bottom-start",open:V,whileElementsMounted:(ae,Me,lt)=>Ka(ae,Me,lt,{ancestorScroll:!1,elementResize:!0,ancestorResize:!0,layoutShift:!0}),middleware:[ei(d0),ti({fallbackPlacements:["top-start","bottom-start"]}),ni({apply({rects:ae,elements:Me}){const lt=`${Math.round(ae.reference.width)}px`;Me.floating.style.width!==lt&&(Me.floating.style.width=lt)}})]}),re=b.useCallback(ae=>{J.current=ae,ee.setReference(ae)},[ee]),F=b.useCallback(ae=>{M.current=ae,ee.setFloating(ae)},[ee]);b.useEffect(()=>{V&&Se()},[V,Se]);const be=b.useCallback(ae=>{o?.(ae),Z(""),N?.(),n==="single"&&R(!1)},[Z,n,o,N]),Ne=b.useCallback(()=>{const ae=l.jsx("div",{ref:F,className:O(te.dropdown,{[te.dropdown_visible]:V},f),style:fe,onClick:Me=>Me.stopPropagation(),children:l.jsx("div",{className:te.dropdownContent,style:{height:L?"300px":"none"},children:(()=>{const Me=P==="table"?l.jsx(h0,{value:t,options:e,onChange:be,onDelete:w,..._&&{onSearch:Z},searchClassName:C,isLoading:k,searchValue:ue,searchPlaceholder:E,columns:T,total:W,mode:n}):l.jsx(f0,{value:t,options:e,optionClassName:h,optionRender:a,onChange:be,..._&&{onSearch:Z},searchClassName:C,isLoading:k,searchValue:ue,searchPlaceholder:E});return s?s(Me):Me})()})});return pe?Cn.createPortal(ae,pe):ae},[f,s,L,fe,be,Z,k,V,_,h,a,e,pe,P,T,W,n,w,C,E,ue,F,t]),Te=b.useMemo(()=>q?Ne():null,[q,Ne]),Ye=Array.isArray(t)?!!t.length:!!t;return l.jsxs("div",{className:te.wrapper,children:[v&&l.jsx(jn,{htmlFor:"CustomSelectInput",tooltipContent:y,tooltipPopperClassName:x,children:v}),l.jsxs("div",{className:te.container,ref:U,children:[l.jsxs("div",{role:"button",id:"CustomSelectInput",tabIndex:0,ref:re,className:O(te.input,{[te.input_fixedHeight]:n==="single",[te.disabled]:S},j&&te.error,g),onClick:()=>{t&&(Z(""),N?.()),R(ae=>!ae)},children:[l.jsx("div",{className:te.selectedOptionContainer,children:Ye?l.jsx(u0,{value:t,selectedOptionRender:i,tagRender:u,onDelete:w}):l.jsx("span",{className:te.placeHolder,children:r})}),l.jsxs("div",{className:te.iconContainer,children:[p&&Ye&&l.jsxs(l.Fragment,{children:[l.jsx(ye,{variant:"text",className:O(te.deleteIcon,m),onClick:ae=>{ae.stopPropagation(),p()},children:l.jsx("span",{children:l.jsx(st,{})})}),l.jsx("div",{className:te.divider,children:l.jsx("div",{})})]}),c||l.jsx(ye,{variant:"text",className:O(te.arrowIcon,{[te.arrowIconExpanded]:V}),children:l.jsx(It,{})})]})]}),Te]}),j&&l.jsx($t,{children:j})]})};function p0(e){const t=g0(e),n=d.forwardRef((r,o)=>{const{children:s,...a}=r,i=d.Children.toArray(s),c=i.find(b0);if(c){const u=c.props.children,f=i.map(h=>h===c?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);return l.jsx(t,{...a,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return l.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function g0(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const a=y0(o),i=w0(s,o.props);return o.type!==d.Fragment&&(i.ref=r?kn(r,a):a),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var v0=Symbol("radix.slottable");function b0(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===v0}function w0(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]=(...i)=>{const c=s(...i);return o(...i),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function y0(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 Nr="Dialog",[nc]=pr(Nr),[x0,Ke]=nc(Nr),rc=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,i=d.useRef(null),c=d.useRef(null),[u,f]=Lo({prop:r,defaultProp:o??!1,onChange:s,caller:Nr});return l.jsx(x0,{scope:t,triggerRef:i,contentRef:c,contentId:bn(),titleId:bn(),descriptionId:bn(),open:u,onOpenChange:f,onOpenToggle:d.useCallback(()=>f(h=>!h),[f]),modal:a,children:n})};rc.displayName=Nr;var oc="DialogTrigger",_0=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ke(oc,n),s=ze(t,o.triggerRef);return l.jsx(Re.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Go(o.open),...r,ref:s,onClick:Ee(e.onClick,o.onOpenToggle)})});_0.displayName=oc;var Vo="DialogPortal",[C0,sc]=nc(Vo,{forceMount:void 0}),ac=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Ke(Vo,t);return l.jsx(C0,{scope:t,forceMount:n,children:d.Children.map(r,a=>l.jsx(Ot,{present:n||s.open,children:l.jsx(_r,{asChild:!0,container:o,children:a})}))})};ac.displayName=Vo;var ur="DialogOverlay",ic=d.forwardRef((e,t)=>{const n=sc(ur,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Ke(ur,e.__scopeDialog);return s.modal?l.jsx(Ot,{present:r||s.open,children:l.jsx(E0,{...o,ref:t})}):null});ic.displayName=ur;var k0=p0("DialogOverlay.RemoveScroll"),E0=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ke(ur,n);return l.jsx(zo,{as:k0,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsx(Re.div,{"data-state":Go(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Wt="DialogContent",cc=d.forwardRef((e,t)=>{const n=sc(Wt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Ke(Wt,e.__scopeDialog);return l.jsx(Ot,{present:r||s.open,children:s.modal?l.jsx(S0,{...o,ref:t}):l.jsx(N0,{...o,ref:t})})});cc.displayName=Wt;var S0=d.forwardRef((e,t)=>{const n=Ke(Wt,e.__scopeDialog),r=d.useRef(null),o=ze(t,n.contentRef,r);return d.useEffect(()=>{const s=r.current;if(s)return Oi(s)},[]),l.jsx(lc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,i=a.button===0&&a.ctrlKey===!0;(a.button===2||i)&&s.preventDefault()}),onFocusOutside:Ee(e.onFocusOutside,s=>s.preventDefault())})}),N0=d.forwardRef((e,t)=>{const n=Ke(Wt,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return l.jsx(lc,{...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 a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),lc=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,i=Ke(Wt,n),c=d.useRef(null),u=ze(t,c);return Ni(),l.jsxs(l.Fragment,{children:[l.jsx($o,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsx(gr,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Go(i.open),...a,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(j0,{titleId:i.titleId}),l.jsx(D0,{contentRef:c,descriptionId:i.descriptionId})]})]})}),qo="DialogTitle",dc=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ke(qo,n);return l.jsx(Re.h2,{id:o.titleId,...r,ref:t})});dc.displayName=qo;var uc="DialogDescription",fc=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ke(uc,n);return l.jsx(Re.p,{id:o.descriptionId,...r,ref:t})});fc.displayName=uc;var hc="DialogClose",M0=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ke(hc,n);return l.jsx(Re.button,{type:"button",...r,ref:t,onClick:Ee(e.onClick,()=>o.onOpenChange(!1))})});M0.displayName=hc;function Go(e){return e?"open":"closed"}var mc="DialogTitleWarning",[Gx,pc]=zu(mc,{contentName:Wt,titleName:qo,docsSlug:"dialog"}),j0=({titleId:e})=>{const t=pc(mc),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},Hp="DialogDescriptionWarning",Wp=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ya(Hp).contentName}}.`;return a.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},qp=da,Gp=pa,Ca=ma,ka=ha,Ea=va,ja=wa;const yr=qp,Up=Gp,Sa=a.forwardRef(({className:e,...t},n)=>l.jsx(Ca,{ref:n,className:Me("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}));Sa.displayName=Ca.displayName;const yn=a.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(Up,{children:[l.jsx(Sa,{}),l.jsx(ka,{ref:r,className:Me("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})]}));yn.displayName=ka.displayName;const Cn=({className:e,...t})=>l.jsx("div",{className:Me("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Cn.displayName="DialogHeader";const Cr=({className:e,...t})=>l.jsx("div",{className:Me("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Cr.displayName="DialogFooter";const kn=a.forwardRef(({className:e,...t},n)=>l.jsx(Ea,{ref:n,className:Me("text-lg font-semibold leading-none tracking-tight",e),...t}));kn.displayName=Ea.displayName;const Zp=a.forwardRef(({className:e,...t},n)=>l.jsx(ja,{ref:n,className:Me("text-sm text-muted-foreground",e),...t}));Zp.displayName=ja.displayName;const Yp="_wrapper_4ju0w_1",Xp="_input_4ju0w_5",Kp="_error_4ju0w_25",Qp="_disabled_4ju0w_33",Jp="_selectedOption_4ju0w_39",em="_placeholder_4ju0w_50",tm="_actions_4ju0w_54",nm="_clearButton_4ju0w_61",rm="_selectButton_4ju0w_70",om="_dialogContent_4ju0w_77",sm="_dialogHeader_4ju0w_92",am="_dialogTitle_4ju0w_97",im="_search_4ju0w_104",cm="_searchIcon_4ju0w_120",lm="_searchInput_4ju0w_131",dm="_searchSpinner_4ju0w_162",um="_tableContainer_4ju0w_166",fm="_table_4ju0w_166",pm="_activeRow_4ju0w_209",mm="_emptyState_4ju0w_216",hm="_dialogFooter_4ju0w_223",gm="_pagination_4ju0w_231",vm="_footerActions_4ju0w_232",xm="_pageInfo_4ju0w_251",ee={wrapper:Yp,input:Xp,error:Kp,disabled:Qp,selectedOption:Jp,placeholder:em,actions:tm,clearButton:nm,selectButton:rm,dialogContent:om,dialogHeader:sm,dialogTitle:am,search:im,searchIcon:cm,searchInput:lm,searchSpinner:dm,tableContainer:um,table:fm,activeRow:pm,emptyState:mm,dialogFooter:hm,pagination:gm,footerActions:vm,pageInfo:xm},wm=8,bm=350,Na=({value:e,placeholder:t,loadOptions:n,onChange:r,onClear:o,columns:s,label:i,title:c="Поиск сотрудника",searchPlaceholder:d="Введите запрос",selectButtonText:u="Выбрать",closeButtonText:f="Закрыть",manualButtonText:p="Добавить вручную",onManualAdd:g,pageSize:m=wm,debounceMs:x=bm,disabled:h,error:v,className:w,inputClassName:b,selectedOptionRender:y})=>{const[C,E]=_.useState(!1),[k,S]=_.useState(""),[j,I]=_.useState(""),[D,F]=_.useState(1),[W,B]=_.useState([]),[z,U]=_.useState(),[$,V]=_.useState(!1),[O,Y]=_.useState(!1),N=_.useRef(0),pe=_.useMemo(()=>s??[{key:"label",title:"ФИО сотрудника",render:P=>P.label},{key:"birthDate",title:"День рождения",render:P=>P.meta?.birthDate??"—"}],[s]),oe=z?Math.max(1,Math.ceil(z/m)):void 0,le=D>1,te=oe?D<oe:$;_.useEffect(()=>{const P=window.setTimeout(()=>{I(k.trim()),F(1)},x);return()=>window.clearTimeout(P)},[x,k]),_.useEffect(()=>{if(!C)return;const P=N.current+1;N.current=P,Y(!0),n({search:j,page:D,pageSize:m}).then(Z=>{N.current===P&&(B(Z.options),U(Z.total),V(Z.hasNextPage??!1))}).finally(()=>{N.current===P&&Y(!1)})},[j,C,n,D,m]);const X=_.useCallback(P=>{E(P),P||(S(""),I(""),F(1))},[]),Q=_.useCallback(P=>{r?.(P),X(!1)},[X,r]),ae=e?y?y(e):e.label:t;return l.jsxs("div",{className:R(ee.wrapper,w),children:[i&&l.jsx(bn,{htmlFor:"DialogSelectInput",children:i}),l.jsxs("div",{id:"DialogSelectInput",role:"button",tabIndex:h?-1:0,className:R(ee.input,{[ee.disabled]:h,[ee.error]:v},b),onClick:()=>!h&&X(!0),onKeyDown:P=>{!h&&(P.key==="Enter"||P.key===" ")&&(P.preventDefault(),X(!0))},children:[l.jsx("span",{className:R(ee.selectedOption,{[ee.placeholder]:!e}),children:ae}),l.jsxs("span",{className:ee.actions,children:[o&&e&&l.jsx(fe,{variant:"text",className:ee.clearButton,"aria-label":"Очистить выбранное значение",onClick:P=>{P.stopPropagation(),o()},children:l.jsx(Ze,{})}),l.jsx(fe,{variant:"link",className:ee.selectButton,disabled:h,onClick:P=>{P.stopPropagation(),X(!0)},children:u})]})]}),l.jsx(yr,{open:C,onOpenChange:X,children:l.jsxs(yn,{className:ee.dialogContent,children:[l.jsx(Cn,{className:ee.dialogHeader,children:l.jsx(kn,{className:ee.dialogTitle,children:c})}),l.jsxs("div",{className:ee.search,children:[l.jsx(on,{className:ee.searchIcon}),l.jsx("input",{className:ee.searchInput,value:k,onChange:P=>S(P.target.value),placeholder:d,autoFocus:!0}),O&&l.jsx(Ye,{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:pe.map(P=>l.jsx("th",{className:P.className,children:P.title},P.key))})}),l.jsx("tbody",{children:W.map(P=>{const Z=e?.value===P.value;return l.jsx("tr",{className:R({[ee.activeRow]:Z}),onClick:()=>Q(P),children:pe.map(we=>l.jsx("td",{className:we.className,children:we.render(P)},we.key))},String(P.value))})})]}),!O&&!W.length&&l.jsx("div",{className:ee.emptyState,children:l.jsx(yt,{title:"Ничего не найдено",subtitle:"Попробуйте изменить поисковый запрос"})})]}),l.jsxs(Cr,{className:ee.dialogFooter,children:[l.jsxs("div",{className:ee.pagination,children:[l.jsx(fe,{variant:"secondary",size:"small",disabled:!le||O,onClick:()=>F(P=>Math.max(1,P-1)),children:"Назад"}),l.jsxs("span",{className:ee.pageInfo,children:["Страница ",D,oe?` из ${oe}`:""]}),l.jsx(fe,{variant:"secondary",size:"small",disabled:!te||O,onClick:()=>F(P=>P+1),children:"Вперёд"})]}),l.jsxs("div",{className:ee.footerActions,children:[g&&l.jsx(fe,{variant:"primary",onClick:g,children:p}),l.jsx(fe,{variant:"secondary",onClick:()=>X(!1),children:f})]})]})]})}),v&&l.jsx(wn,{children:v})]})},_m="_wrapper_15kqr_1",ym="_input_15kqr_5",Cm="_error_15kqr_25",km="_disabled_15kqr_33",Em="_selectedOption_15kqr_39",jm="_placeholder_15kqr_50",Sm="_actions_15kqr_54",Nm="_clearButton_15kqr_61",Rm="_selectButton_15kqr_70",Lm="_dialogContent_15kqr_77",Am="_dialogHeader_15kqr_92",Pm="_dialogTitle_15kqr_97",Mm="_search_15kqr_104",Om="_searchIcon_15kqr_120",Tm="_searchInput_15kqr_131",Im="_searchSpinner_15kqr_162",Dm="_treeContainer_15kqr_166",$m="_row_15kqr_176",Fm="_row_active_15kqr_191",Bm="_nodeLabel_15kqr_194",zm="_row_match_15kqr_198",Vm="_chevron_15kqr_202",Hm="_chevronExpanded_15kqr_227",Wm="_chevronPlaceholder_15kqr_231",qm="_nodeSpinner_15kqr_237",Gm="_emptyState_15kqr_249",Um="_loadingState_15kqr_256",Zm="_dialogFooter_15kqr_263",K={wrapper:_m,input:ym,error:Cm,disabled:km,selectedOption:Em,placeholder:jm,actions:Sm,clearButton:Nm,selectButton:Rm,dialogContent:Lm,dialogHeader:Am,dialogTitle:Pm,search:Mm,searchIcon:Om,searchInput:Tm,searchSpinner:Im,treeContainer:Dm,row:$m,row_active:Fm,nodeLabel:Bm,row_match:zm,chevron:Vm,chevronExpanded:Hm,chevronPlaceholder:Wm,nodeSpinner:qm,emptyState:Gm,loadingState:Um,dialogFooter:Zm},Ym=350,$e="__root__",Xm=({value:e,placeholder:t,loadChildren:n,loadNodes:r,searchNodes:o,onChange:s,onClear:i,label:c,title:d="Выбор элемента",searchPlaceholder:u="Введите запрос",selectButtonText:f="Выбрать",closeButtonText:p="Закрыть",confirmButtonText:g="Выбрать",debounceMs:m=Ym,disabled:x,error:h,className:v,inputClassName:w,selectedOptionRender:b,nodeRender:y,leafConfirmOnly:C=!1})=>{const E=r??n,[k,S]=_.useState(!1),[j,I]=_.useState(""),[D,F]=_.useState(""),[W,B]=_.useState(()=>new Map),[z,U]=_.useState(()=>new Set),[$,V]=_.useState(()=>new Set),[O,Y]=_.useState(()=>new Set),[N,pe]=_.useState(()=>new Set),[oe,le]=_.useState(!1),[te,X]=_.useState(null),Q=_.useRef(0),ae=_.useRef(0);_.useEffect(()=>{if(!k||W.has($e))return;const T=Q.current+1;Q.current=T,U(ne=>{const J=new Set(ne);return J.add($e),J}),E({parentId:null,search:""}).then(ne=>{Q.current===T&&B(J=>{const de=new Map(J);return de.set($e,ne.nodes),de})}).finally(()=>{Q.current===T&&U(ne=>{const J=new Set(ne);return J.delete($e),J})})},[k,E,W]),_.useEffect(()=>{const T=window.setTimeout(()=>F(j.trim()),m);return()=>window.clearTimeout(T)},[j,m]),_.useEffect(()=>{if(!k||!o)return;if(!D){pe(new Set),Y(new Set);return}const T=ae.current+1;ae.current=T,le(!0),o(D).then(ne=>{if(ae.current!==T)return;const J=new Set,de=new Set,ge=new Map;for(const Te of ne.matches){J.add(Te.node.value);const ve=[...Te.path,Te.node];for(let ue=0;ue<ve.length-1;ue++){const rt=ve[ue],ot=ve[ue+1];de.add(rt.value);const Ie=rt.value;ge.has(Ie)||ge.set(Ie,new Map),ge.get(Ie).set(ot.value,ot)}if(ve.length>0){const ue=ve[0];ge.has($e)||ge.set($e,new Map),ge.get($e).set(ue.value,ue)}}pe(J),Y(de),B(Te=>{const ve=new Map(Te);return ge.forEach((ue,rt)=>{const ot=ve.get(rt)??[],Ie=new Map;ot.forEach(He=>Ie.set(He.value,He)),ue.forEach((He,Ta)=>Ie.set(Ta,He)),ve.set(rt,Array.from(Ie.values()))}),ve})}).finally(()=>{ae.current===T&&le(!1)})},[D,k,o]);const P=_.useCallback(T=>{S(T),T||(I(""),F(""),X(null),pe(new Set),Y(new Set))},[]),Z=_.useCallback(T=>{const ne=T.value;W.has(ne)||z.has(ne)||(U(J=>{const de=new Set(J);return de.add(ne),de}),E({parentId:T.value,search:""}).then(J=>{B(de=>{const ge=new Map(de),Te=ge.get(ne)??[],ve=new Map;return Te.forEach(ue=>ve.set(ue.value,ue)),J.nodes.forEach(ue=>ve.set(ue.value,ue)),ge.set(ne,Array.from(ve.values())),ge})}).finally(()=>{U(J=>{const de=new Set(J);return de.delete(ne),de})}))},[W,E,z]),we=_.useCallback(T=>{V(ne=>{const J=new Set(ne);return J.has(T.value)?J.delete(T.value):(J.add(T.value),Z(T)),J})},[Z]),Se=_.useCallback(T=>{X(T)},[]),ke=_.useCallback(()=>{C&&(!te||te.hasChildren===!0)||(te&&s?.(te),P(!1))},[P,C,s,te]),q=_.useCallback(T=>$.has(T)||O.has(T),[$,O]),se=_.useCallback(T=>{if(!D||o)return T;const ne=D.toLowerCase();return T.filter(J=>J.label.toLowerCase().includes(ne))},[D,o]),nt=(T,ne)=>{const J=T.value,de=W.get(J),ge=q(T.value),Te=z.has(J),ve=te?.value===T.value,ue=e?.value===T.value,rt=N.has(T.value),ot=ge&&de&&de.length>0,Ie=ot?se(de):[];return l.jsxs(_.Fragment,{children:[l.jsxs("div",{className:R(K.row,{[K.row_active]:ve||ue,[K.row_match]:rt}),style:{paddingLeft:16+ne*20},onClick:()=>Se(T),children:[T.hasChildren?l.jsx("button",{type:"button",className:R(K.chevron,{[K.chevronExpanded]:ge}),onClick:He=>{He.stopPropagation(),we(T)},"aria-label":ge?"Свернуть":"Раскрыть",children:l.jsx(sn,{})}):l.jsx("span",{className:K.chevronPlaceholder}),l.jsx("span",{className:K.nodeLabel,children:y?y(T):T.label}),Te&&l.jsx(Ye,{size:"extraSmall",className:K.nodeSpinner})]}),ot&&Ie.map(He=>nt(He,ne+1))]},String(T.value))},kr=W.get($e)??[],Er=se(kr),Mt=z.has($e),Aa=e?b?b(e):e.label:t,Pa=!Mt&&!oe&&Er.length===0,Ma=_.useMemo(()=>oe||Mt&&!!D,[oe,Mt,D]),Oa=!te||C&&te.hasChildren===!0;return l.jsxs("div",{className:R(K.wrapper,v),children:[c&&l.jsx(bn,{htmlFor:"TreeDialogSelectInput",children:c}),l.jsxs("div",{id:"TreeDialogSelectInput",role:"button",tabIndex:x?-1:0,className:R(K.input,{[K.disabled]:x,[K.error]:h},w),onClick:()=>!x&&P(!0),onKeyDown:T=>{!x&&(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),P(!0))},children:[l.jsx("span",{className:R(K.selectedOption,{[K.placeholder]:!e}),children:Aa}),l.jsxs("span",{className:K.actions,children:[i&&e&&l.jsx(fe,{variant:"text",className:K.clearButton,"aria-label":"Очистить выбранное значение",onClick:T=>{T.stopPropagation(),i()},children:l.jsx(Ze,{})}),l.jsx(fe,{variant:"link",className:K.selectButton,disabled:x,onClick:T=>{T.stopPropagation(),P(!0)},children:f})]})]}),l.jsx(yr,{open:k,onOpenChange:P,children:l.jsxs(yn,{className:K.dialogContent,children:[l.jsx(Cn,{className:K.dialogHeader,children:l.jsx(kn,{className:K.dialogTitle,children:d})}),l.jsxs("div",{className:K.search,children:[l.jsx(on,{className:K.searchIcon}),l.jsx("input",{className:K.searchInput,value:j,onChange:T=>I(T.target.value),placeholder:u,autoFocus:!0}),Ma&&l.jsx(Ye,{size:"extraSmall",className:K.searchSpinner})]}),l.jsx("div",{className:K.treeContainer,children:Mt&&kr.length===0?l.jsx("div",{className:K.loadingState,children:l.jsx(Ye,{size:"small"})}):Pa?l.jsx("div",{className:K.emptyState,children:l.jsx(yt,{title:"Ничего не найдено",subtitle:"Попробуйте изменить поисковый запрос"})}):Er.map(T=>nt(T,0))}),l.jsxs(Cr,{className:K.dialogFooter,children:[l.jsx(fe,{variant:"secondary",onClick:()=>P(!1),children:p}),l.jsx(fe,{variant:"primary",disabled:Oa,onClick:ke,children:g})]})]})}),h&&l.jsx(wn,{children:h})]})},Km="_wrapper_1wain_1",Qm="_tabs_1wain_6",Jm="_tabItem_1wain_16",e0="_active_1wain_46",t0="_before_1wain_61",n0="_after_1wain_62",r0="_panel_1wain_101",Fe={wrapper:Km,tabs:Qm,tabItem:Jm,active:e0,before:t0,after:n0,panel:r0};function o0(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 s0=a.memo(({className:e,items:t=[],children:n,value:r,onValueChange:o,activeTab:s,onClick:i,tabsClassName:c})=>{const d=_.useMemo(()=>o0(t),[t]),u=_.useMemo(()=>{if(r!==void 0){const f=d.findIndex(p=>p.key===r);return f>=0?f:0}return s??0},[r,s,d]);return l.jsxs("div",{className:R(Fe.wrapper,e),children:[l.jsx("div",{className:R(Fe.tabs,c),children:d.map((f,p)=>f.label&&l.jsxs("div",{className:R(Fe.tabItem,f.className,{[Fe.active]:u===p,[Fe.first]:p===0,[Fe.last]:p===d.length-1}),style:{zIndex:u===p?d.length:p===0?0:d.length-p},onClick:g=>{g.stopPropagation(),o?o(f.key):i?.(p)},children:[u===p&&p!==0&&l.jsx("span",{className:Fe.before}),f.label,u===p&&p!==d.length-1&&l.jsx("span",{className:Fe.after})]},p))}),l.jsx("div",{className:Fe.panel,children:n})]})}),a0="_wrapper_1xj0t_1",i0="_itemBlock_1xj0t_8",c0="_step_1xj0t_16",l0="_clickable_1xj0t_39",d0="_step_inactive_1xj0t_46",u0="_step_current_1xj0t_51",f0="_connector_1xj0t_55",p0="_connector_active_1xj0t_62",m0="_label_1xj0t_66",h0="_label_active_1xj0t_74",Re={wrapper:a0,itemBlock:i0,step:c0,clickable:l0,step_inactive:d0,step_current:u0,connector:f0,connector_active:p0,label:m0,label_active:h0},g0=({items:e,current:t,onChange:n,showCheckOnCompleted:r=!1,className:o})=>{const s=!!n;return l.jsx("div",{className:R(Re.wrapper,o),role:"list",children:e.map((i,c)=>{const d=c<t,u=c===t,f=c<=t,p=c===e.length-1,g=r&&d,m=i.content??(g?l.jsx(Qn,{}):c+1),x=l.jsx("button",{type:"button",className:R(Re.step,{[Re.step_inactive]:!f,[Re.step_current]:u,[Re.clickable]:s}),disabled:!s,onClick:()=>n?.(c),"aria-current":u?"step":void 0,"aria-label":typeof i.label=="string"?i.label:`Шаг ${c+1}`,children:m});return l.jsxs(_.Fragment,{children:[i.label?l.jsxs("div",{className:Re.itemBlock,role:"listitem",children:[x,l.jsx("span",{className:R(Re.label,{[Re.label_active]:f}),children:i.label})]}):l.jsx("div",{role:"listitem",children:x}),!p&&l.jsx("span",{className:R(Re.connector,{[Re.connector_active]:c<t})})]},c)})})},v0="_container_1whkx_1",x0="_tabs_1whkx_4",w0="_line_1whkx_11",b0="_tabItem_1whkx_21",_0="_header_1whkx_34",y0="_notificationChanges_1whkx_42",C0="_tabs_hasAnimatedIndicator_1whkx_61",k0="_active_1whkx_64",Ge={container:v0,tabs:x0,line:w0,tabItem:b0,header:_0,notificationChanges:y0,tabs_hasAnimatedIndicator:C0,active:k0};function E0(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 j0=a.memo(({items:e=[],value:t,onValueChange:n,activeTab:r,className:o,tabsClassName:s,changesIndex:i,badgeValue:c,sliderClassName:d,onClick:u})=>{const f=_.useMemo(()=>E0(e),[e]),p=_.useMemo(()=>{if(t!==void 0){const v=f.findIndex(w=>w.key===t);return v>=0?v:0}return r!==void 0?r:0},[t,r,f]),g=_.useRef(null),m=_.useRef(null),[x,h]=_.useState({left:0,width:0});return _.useEffect(()=>{const v=g.current;if(!v)return;const w=()=>{const C={left:v.offsetLeft||0,width:v.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 y=new ResizeObserver(()=>{b()});return y.observe(v),()=>{y.disconnect(),m.current!==null&&(cancelAnimationFrame(m.current),m.current=null)}},[p]),l.jsx("div",{className:R(Ge.container,o),children:l.jsxs("div",{className:R(Ge.tabs,Ge.tabs_hasAnimatedIndicator,s),children:[f.map((v,w)=>v.label&&l.jsxs("div",{ref:p===w?g:void 0,className:R(Ge.tabItem,v.className,{[Ge.active]:p===w}),onClick:b=>{b.stopPropagation(),n?n(v.key):u?.(w)},children:[v.header&&l.jsx("div",{className:Ge.header,children:v.header}),v.label,i===w&&l.jsx("div",{className:Ge.notificationChanges,children:c!=null?c>99?"99+":String(c):null})]},w)),l.jsx("div",{className:R(Ge.line,d),style:{left:x.left,width:x.width}})]})})}),S0="_root_osjxx_1",N0="_header_osjxx_11",R0="_headerText_osjxx_21",L0="_eyebrow_osjxx_27",A0="_title_osjxx_35",P0="_timeline_osjxx_42",M0="_level_osjxx_47",O0="_rail_osjxx_58",T0="_railLine_osjxx_65",I0="_railLine_completed_osjxx_74",D0="_railLine_toCurrent_osjxx_78",$0="_marker_osjxx_82",F0="_marker_completed_osjxx_101",B0="_marker_current_osjxx_107",z0="_body_osjxx_120",V0="_levelHeader_osjxx_125",H0="_levelName_osjxx_132",W0="_levelName_current_osjxx_141",q0="_levelName_completed_osjxx_147",G0="_iconButton_osjxx_152",U0="_iconButton_danger_osjxx_176",Z0="_stages_osjxx_182",Y0="_stage_osjxx_182",X0="_stage_current_osjxx_199",K0="_stageHeader_osjxx_204",Q0="_stageName_osjxx_212",J0="_stageActions_osjxx_220",eh="_approvers_osjxx_227",th="_approver_osjxx_227",nh="_approverMain_osjxx_242",rh="_approverName_osjxx_249",oh="_approverName_pending_osjxx_255",sh="_approverName_rejected_osjxx_259",ah="_approverName_approved_osjxx_264",ih="_approverDate_osjxx_268",ch="_rejectReason_osjxx_273",lh="_empty_osjxx_283",dh="_addStage_osjxx_300",uh="_addLevel_osjxx_323",fh="_dialogContent_osjxx_327",ph="_dialogInput_osjxx_333",mh="_dialogActions_osjxx_348",hh="_approverPickerWrap_osjxx_354",gh="_approverPickerInput_osjxx_361",M={root:S0,header:N0,headerText:R0,eyebrow:L0,title:A0,timeline:P0,level:M0,rail:O0,railLine:T0,railLine_completed:I0,railLine_toCurrent:D0,marker:$0,marker_completed:F0,marker_current:B0,body:z0,levelHeader:V0,levelName:H0,levelName_current:W0,levelName_completed:q0,iconButton:G0,iconButton_danger:U0,stages:Z0,stage:Y0,stage_current:X0,stageHeader:K0,stageName:Q0,stageActions:J0,approvers:eh,approver:th,approverMain:nh,approverName:rh,approverName_pending:oh,approverName_rejected:sh,approverName_approved:ah,approverDate:ih,rejectReason:ch,empty:lh,addStage:dh,addLevel:uh,dialogContent:fh,dialogInput:ph,dialogActions:mh,approverPickerWrap:hh,approverPickerInput:gh},Ut=({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 go({open:e,title:t,placeholder:n,onSubmit:r,onClose:o}){const[s,i]=_.useState("");_.useEffect(()=>{e||i("")},[e]);const c=()=>{const d=s.trim();d&&(r(d),o())};return l.jsx(yr,{open:e,onOpenChange:d=>!d&&o(),children:l.jsxs(yn,{className:"sm:rounded-2xl",children:[l.jsx(Cn,{children:l.jsx(kn,{children:t})}),l.jsxs("div",{className:M.dialogContent,children:[l.jsx("input",{autoFocus:!0,className:M.dialogInput,placeholder:n,value:s,onChange:d=>i(d.target.value),onKeyDown:d=>{d.key==="Enter"&&c(),d.key==="Escape"&&o()}}),l.jsxs("div",{className:M.dialogActions,children:[l.jsx(fe,{variant:"secondary",onClick:o,children:"Отмена"}),l.jsx(fe,{variant:"primary",onClick:c,disabled:!s.trim(),children:"Добавить"})]})]})]})})}const vh=({levels:e,editable:t=!1,title:n="Маршрут согласования",eyebrow:r="Workflow",className:o,loadApprovers:s,onAddLevel:i,onRemoveLevel:c,onAddStage:d,onRemoveStage:u,onAddApprover:f,onRemoveApprover:p})=>{const[g,m]=_.useState(!1),[x,h]=_.useState(null);return l.jsxs("div",{className:R(M.root,o),children:[l.jsx("div",{className:M.header,children:l.jsxs("div",{className:M.headerText,children:[l.jsx("span",{className:M.eyebrow,children:r}),l.jsx("span",{className:M.title,children:n})]})}),l.jsxs("div",{className:M.timeline,children:[e.map((v,w)=>{const b=e[w+1],y=R(M.railLine,{[M.railLine_completed]:v.status==="completed"&&b?.status==="completed",[M.railLine_toCurrent]:v.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:y}),l.jsx("span",{className:R(M.marker,{[M.marker_completed]:v.status==="completed",[M.marker_current]:v.status==="current"}),children:v.status==="completed"&&l.jsx(Qn,{})})]}),l.jsxs("div",{className:M.body,children:[l.jsxs("div",{className:M.levelHeader,children:[l.jsx("span",{className:R(M.levelName,{[M.levelName_current]:v.status==="current",[M.levelName_completed]:v.status==="completed"}),children:v.name}),t&&l.jsxs(l.Fragment,{children:[l.jsx("button",{type:"button",className:M.iconButton,onClick:()=>h(v.id),"aria-label":"Добавить этап",title:"Добавить этап",children:l.jsx(Ut,{})}),l.jsx("button",{type:"button",className:R(M.iconButton,M.iconButton_danger),onClick:()=>c?.(v.id),"aria-label":"Удалить уровень",title:"Удалить уровень",children:l.jsx(Ze,{})})]})]}),v.stages.length>0&&l.jsx("div",{className:M.stages,children:v.stages.map(C=>l.jsxs("div",{className:R(M.stage,{[M.stage_current]:v.status==="current"}),children:[l.jsxs("div",{className:M.stageHeader,children:[l.jsx("span",{className:M.stageName,children:C.name}),l.jsx("div",{className:M.stageActions,children:t&&l.jsxs(l.Fragment,{children:[s?l.jsx(Na,{value:null,placeholder:"",title:"Добавить согласующего",searchPlaceholder:"Поиск сотрудника",loadOptions:s,onChange:E=>f?.(v.id,C.id,E),className:M.approverPickerWrap,inputClassName:M.approverPickerInput,selectedOptionRender:()=>l.jsx(Ut,{})}):null,l.jsx("button",{type:"button",className:R(M.iconButton,M.iconButton_danger),onClick:()=>u?.(v.id,C.id),"aria-label":"Удалить этап",title:"Удалить этап",children:l.jsx(Ze,{})})]})})]}),C.approvers.length===0?l.jsxs("span",{className:M.empty,children:[l.jsx(wo,{}),"Согласующий не назначен"]}):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:R(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:R(M.iconButton,M.iconButton_danger),onClick:()=>p?.(v.id,C.id,E.id),"aria-label":"Удалить согласующего",title:"Удалить согласующего",children:l.jsx(Ze,{})})]},E.id)})})]},C.id))}),t&&l.jsxs("button",{type:"button",className:M.addStage,onClick:()=>h(v.id),children:[l.jsx(Ut,{})," Добавить этап"]})]})]},v.id)}),t&&l.jsxs("div",{className:M.level,children:[l.jsx("div",{className:M.rail,children:l.jsx("span",{className:R(M.marker),"aria-hidden":!0})}),l.jsx("div",{className:M.body,children:l.jsxs("button",{type:"button",className:R(M.addStage,M.addLevel),onClick:()=>m(!0),children:[l.jsx(Ut,{})," Добавить уровень"]})})]})]}),l.jsx(go,{open:g,title:"Новый уровень",placeholder:"Название уровня",onClose:()=>m(!1),onSubmit:v=>i?.(v)}),l.jsx(go,{open:x!==null,title:"Новый этап",placeholder:"Название этапа",onClose:()=>h(null),onSubmit:v=>x&&d?.(x,v)})]})},xh="_root_1426e_1",wh="_card_1426e_8",bh="_size_lg_1426e_15",_h="_section_1426e_19",yh="_sectionHeader_1426e_29",Ch="_sectionTitle_1426e_36",kh="_sectionDescription_1426e_46",Eh="_fields_1426e_54",jh="_fields_2col_1426e_62",Sh="_field_1426e_54",Nh="_field_span2_1426e_84",Rh="_field_interactive_1426e_88",Lh="_label_1426e_92",Ah="_value_1426e_100",Ph="_valueRow_1426e_113",Mh="_copyTrigger_1426e_120",Oh="_copyableValue_1426e_126",Th="_hint_1426e_131",Ih="_empty_1426e_139",Dh="_divider_1426e_143",$h="_loading_1426e_150",re={root:xh,card:wh,size_lg:bh,section:_h,sectionHeader:yh,sectionTitle:Ch,sectionDescription:kh,fields:Eh,fields_2col:jh,field:Sh,field_span2:Nh,field_interactive:Rh,label:Lh,value:Ah,valueRow:Ph,copyTrigger:Mh,copyableValue:Oh,hint:Th,empty:Ih,divider:Dh,loading:$h},Fh=e=>e==null||e===""||typeof e=="number"&&Number.isNaN(e),Bh=e=>e==null?"":typeof e=="string"||typeof e=="number"?String(e):"",Ra=({label:e,value:t,children:n,hint:r,copyable:o,copyText:s,render:i,hidden:c,span:d,emptyPlaceholder:u="—",className:f})=>{const[p,g]=_.useState(!1),m=_.useCallback(()=>{const v=s??Bh(n??t);!v||typeof navigator>"u"||!navigator.clipboard||navigator.clipboard.writeText(v).then(()=>{g(!0),window.setTimeout(()=>g(!1),1400)})},[s,t,n]);if(c)return null;const x=n??t,h=Fh(x)?l.jsx("span",{className:re.empty,children:u}):x;return i?l.jsx(l.Fragment,{children:i({label:e,value:h})}):l.jsxs("div",{className:R(re.field,d===2&&re.field_span2,o&&re.field_interactive,f),children:[l.jsx("div",{className:re.label,children:e}),l.jsxs("div",{className:re.value,children:[l.jsx("div",{className:re.valueRow,children:o?l.jsxs(l.Fragment,{children:[l.jsx("span",{className:re.copyableValue,children:h}),l.jsx("span",{className:re.copyTrigger,children:l.jsx(rr,{iconOnly:!0,copied:p,onClick:m,ariaLabel:"Скопировать значение"})})]}):h}),r&&l.jsx("div",{className:re.hint,children:r})]})]})},La=({id:e,title:t,description:n,fields:r,children:o,columns:s=1,className:i})=>{const c=(r??[]).filter(d=>!d.hidden);return l.jsxs("section",{id:e,className:R(re.section,i),children:[(t||n)&&l.jsxs("div",{className:re.sectionHeader,children:[t&&l.jsx("div",{className:re.sectionTitle,children:t}),n&&l.jsx("div",{className:re.sectionDescription,children:n})]}),(c.length>0||o)&&l.jsxs("div",{className:R(re.fields,s===2&&re.fields_2col),children:[c.map((d,u)=>l.jsx(Ra,{...d},(typeof d.label=="string"?d.label:null)??`field-${u}`)),o]})]})},zh=({className:e})=>l.jsx("hr",{className:R(re.divider,e)}),Vh=({sections:e,children:t,variant:n="card",labelWidth:r="14rem",size:o="md",loading:s,emptyState:i,className:c,id:d})=>{const u=typeof r=="number"?`${r}px`:r,f=R(re.root,n==="card"&&re.card,o==="lg"&&re.size_lg,c),p={"--cozy-detail-label-width":u};if(s)return l.jsx("div",{className:f,style:p,id:d,children:l.jsx("div",{className:re.loading,children:l.jsx(Ye,{})})});const g=e&&e.length>0,m=_.Children.count(t)>0;return!g&&!m?l.jsx("div",{className:f,style:p,id:d,children:i??l.jsx(yt,{})}):l.jsxs("div",{className:f,style:p,id:d,children:[g&&e.map((x,h)=>l.jsx(La,{...x},x.id??`section-${h}`)),m&&_.Children.map(t,x=>(_.isValidElement(x),x))]})},Pt=_.memo(Vh);Pt.Section=La;Pt.Field=Ra;Pt.Divider=zh;Pt.displayName="DetailView";exports.ApprovalRoute=vh;exports.ArrowDownBlueIcon=ii;exports.ArrowDownIcon=sn;exports.ArrowRightIcon=ai;exports.BaseBlock=Li;exports.Button=fe;exports.CameraIcon=hi;exports.CancelIcon=ui;exports.Card=Wc;exports.Carousel=al;exports.ChartIcon=Ja;exports.ChatIcon=si;exports.CheckGreen=li;exports.ClockFilledIcon=wi;exports.ClockIcon=Da;exports.CloseRed=ci;exports.CollapsableBlock=df;exports.Collapse=ra;exports.Colors=Co;exports.CopyIcon=bo;exports.CopyTextTrigger=rr;exports.CrossIcon=Ze;exports.DetailView=Pt;exports.DialogSelect=Na;exports.DoneIcon=Qn;exports.DownloadIcon=Ci;exports.EditIcon=vi;exports.EmptyComponent=yt;exports.EmptyIcon=yo;exports.EnvelopIcon=fi;exports.FeedbackIcon=ei;exports.FileReloadIcon=$a;exports.FileSync=oi;exports.FilterIcon=gi;exports.FolderEditIcon=Fa;exports.GraduateIcon=Ba;exports.GridIcon=za;exports.HeartIcon=Va;exports.HelpIcon=Ha;exports.HistoryBlue=di;exports.HomeIcon=Ia;exports.InfoIcon=_o;exports.InputCaption=wn;exports.IslandIcon=yi;exports.Label=bn;exports.ListIcon=Wa;exports.MarketIcon=qa;exports.MegaphoneIcon=ni;exports.MessageIcon=pi;exports.NotebookIcon=Qa;exports.PhoneIcon=mi;exports.PlaneIcon=Ga;exports.Popover=U1;exports.ProfileIcon=Ua;exports.ProfileSearchIcon=Za;exports.RadioGroupButton=zc;exports.ReloadIcon=xi;exports.SchoolIcon=_i;exports.SearchIcon=on;exports.Select=Sp;exports.SettingsIcon=bi;exports.Spinner=Ye;exports.Stepper=g0;exports.Tabs=j0;exports.TabsRounded=s0;exports.Tag=ia;exports.TaskListIcon=ti;exports.TimesheetIcon=Ka;exports.TooltipDark=nr;exports.TooltipLight=Ms;exports.TreeDialogSelect=Xm;exports.TrendUpIcon=Ya;exports.UserSwitchIcon=ri;exports.WalletIcon=Xa;exports.WarnIcon=wo;exports.useDropdownPosition=Dc;exports.useMeasureElement=Ho;
|
|
45
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},O0="DialogDescriptionWarning",D0=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${pc(O0).contentName}}.`;return d.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},P0=rc,R0=ac,gc=ic,vc=cc,bc=dc,wc=fc;const Mr=P0,T0=R0,yc=d.forwardRef(({className:e,...t},n)=>l.jsx(gc,{ref:n,className:K("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}));yc.displayName=gc.displayName;const On=d.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(T0,{children:[l.jsx(yc,{}),l.jsx(vc,{ref:r,className:K("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})]}));On.displayName=vc.displayName;const Dn=({className:e,...t})=>l.jsx("div",{className:K("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Dn.displayName="DialogHeader";const jr=({className:e,...t})=>l.jsx("div",{className:K("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});jr.displayName="DialogFooter";const Pn=d.forwardRef(({className:e,...t},n)=>l.jsx(bc,{ref:n,className:K("text-lg font-semibold leading-none tracking-tight",e),...t}));Pn.displayName=bc.displayName;const A0=d.forwardRef(({className:e,...t},n)=>l.jsx(wc,{ref:n,className:K("text-sm text-muted-foreground",e),...t}));A0.displayName=wc.displayName;const I0="_wrapper_4ju0w_1",L0="_input_4ju0w_5",W0="_error_4ju0w_25",F0="_disabled_4ju0w_33",B0="_selectedOption_4ju0w_39",$0="_placeholder_4ju0w_50",z0="_actions_4ju0w_54",H0="_clearButton_4ju0w_61",Y0="_selectButton_4ju0w_70",V0="_dialogContent_4ju0w_77",q0="_dialogHeader_4ju0w_92",G0="_dialogTitle_4ju0w_97",U0="_search_4ju0w_104",Z0="_searchIcon_4ju0w_120",X0="_searchInput_4ju0w_131",K0="_searchSpinner_4ju0w_162",Q0="_tableContainer_4ju0w_166",J0="_table_4ju0w_166",eg="_activeRow_4ju0w_209",tg="_emptyState_4ju0w_216",ng="_dialogFooter_4ju0w_223",rg="_pagination_4ju0w_231",og="_footerActions_4ju0w_232",sg="_pageInfo_4ju0w_251",me={wrapper:I0,input:L0,error:W0,disabled:F0,selectedOption:B0,placeholder:$0,actions:z0,clearButton:H0,selectButton:Y0,dialogContent:V0,dialogHeader:q0,dialogTitle:G0,search:U0,searchIcon:Z0,searchInput:X0,searchSpinner:K0,tableContainer:Q0,table:J0,activeRow:eg,emptyState:tg,dialogFooter:ng,pagination:rg,footerActions:og,pageInfo:sg},ag=8,ig=350,Uo=({value:e,placeholder:t,loadOptions:n,onChange:r,onClear:o,columns:s,label:a,tooltipContent:i,tooltipPopperClassName:c,title:u="Поиск сотрудника",searchPlaceholder:f="Введите запрос",selectButtonText:h="Выбрать",closeButtonText:g="Закрыть",manualButtonText:m="Добавить вручную",onManualAdd:w,pageSize:p=ag,debounceMs:v=ig,disabled:y,error:x,className:_,inputClassName:C,selectedOptionRender:E})=>{const[k,S]=b.useState(!1),[N,D]=b.useState(""),[j,L]=b.useState(""),[P,T]=b.useState(1),[W,V]=b.useState([]),[R,q]=b.useState(),[Y,U]=b.useState(!1),[M,J]=b.useState(!1),ue=b.useRef(0),he=b.useMemo(()=>s??[{key:"label",title:"ФИО сотрудника",render:F=>F.label},{key:"birthDate",title:"День рождения",render:F=>F.meta?.birthDate??"—"}],[s]),pe=R?Math.max(1,Math.ceil(R/p)):void 0,Z=P>1,ee=pe?P<pe:Y;b.useEffect(()=>{const F=window.setTimeout(()=>{L(N.trim()),T(1)},v);return()=>window.clearTimeout(F)},[v,N]),b.useEffect(()=>{if(!k)return;const F=ue.current+1;ue.current=F,J(!0),n({search:j,page:P,pageSize:p}).then(be=>{ue.current===F&&(V(be.options),q(be.total),U(be.hasNextPage??!1))}).finally(()=>{ue.current===F&&J(!1)})},[j,k,n,P,p]);const fe=b.useCallback(F=>{S(F),F||(D(""),L(""),T(1))},[]),Se=b.useCallback(F=>{r?.(F),fe(!1)},[fe,r]),re=e?E?E(e):e.label:t;return l.jsxs("div",{className:O(me.wrapper,_),children:[a&&l.jsx(jn,{htmlFor:"DialogSelectInput",tooltipContent:i,tooltipPopperClassName:c,children:a}),l.jsxs("div",{id:"DialogSelectInput",role:"button",tabIndex:y?-1:0,className:O(me.input,{[me.disabled]:y,[me.error]:x},C),onClick:()=>!y&&fe(!0),onKeyDown:F=>{!y&&(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),fe(!0))},children:[l.jsx("span",{className:O(me.selectedOption,{[me.placeholder]:!e}),children:re}),l.jsxs("span",{className:me.actions,children:[o&&e&&l.jsx(ye,{variant:"text",className:me.clearButton,"aria-label":"Очистить выбранное значение",onClick:F=>{F.stopPropagation(),o()},children:l.jsx(st,{})}),l.jsx(ye,{variant:"link",className:me.selectButton,disabled:y,onClick:F=>{F.stopPropagation(),fe(!0)},children:h})]})]}),l.jsx(Mr,{open:k,onOpenChange:fe,children:l.jsxs(On,{className:me.dialogContent,children:[l.jsx(Dn,{className:me.dialogHeader,children:l.jsx(Pn,{className:me.dialogTitle,children:u})}),l.jsxs("div",{className:me.search,children:[l.jsx(hr,{className:me.searchIcon}),l.jsx("input",{className:me.searchInput,value:N,onChange:F=>D(F.target.value),placeholder:f,autoFocus:!0}),M&&l.jsx(Ze,{size:"extraSmall",className:me.searchSpinner})]}),l.jsxs("div",{className:me.tableContainer,children:[l.jsxs("table",{className:me.table,children:[l.jsx("thead",{children:l.jsx("tr",{children:he.map(F=>l.jsx("th",{className:F.className,children:F.title},F.key))})}),l.jsx("tbody",{children:W.map(F=>{const be=e?.value===F.value;return l.jsx("tr",{className:O({[me.activeRow]:be}),onClick:()=>Se(F),children:he.map(Ne=>l.jsx("td",{className:Ne.className,children:Ne.render(F)},Ne.key))},String(F.value))})})]}),!M&&!W.length&&l.jsx("div",{className:me.emptyState,children:l.jsx(Bt,{title:"Ничего не найдено",subtitle:"Попробуйте изменить поисковый запрос"})})]}),l.jsxs(jr,{className:me.dialogFooter,children:[l.jsxs("div",{className:me.pagination,children:[l.jsx(ye,{variant:"secondary",size:"small",disabled:!Z||M,onClick:()=>T(F=>Math.max(1,F-1)),children:"Назад"}),l.jsxs("span",{className:me.pageInfo,children:["Страница ",P,pe?` из ${pe}`:""]}),l.jsx(ye,{variant:"secondary",size:"small",disabled:!ee||M,onClick:()=>T(F=>F+1),children:"Вперёд"})]}),l.jsxs("div",{className:me.footerActions,children:[w&&l.jsx(ye,{variant:"primary",onClick:w,children:m}),l.jsx(ye,{variant:"secondary",onClick:()=>fe(!1),children:g})]})]})]})}),x&&l.jsx($t,{children:x})]})},cg="_wrapper_15kqr_1",lg="_input_15kqr_5",dg="_error_15kqr_25",ug="_disabled_15kqr_33",fg="_selectedOption_15kqr_39",hg="_placeholder_15kqr_50",mg="_actions_15kqr_54",pg="_clearButton_15kqr_61",gg="_selectButton_15kqr_70",vg="_dialogContent_15kqr_77",bg="_dialogHeader_15kqr_92",wg="_dialogTitle_15kqr_97",yg="_search_15kqr_104",xg="_searchIcon_15kqr_120",_g="_searchInput_15kqr_131",Cg="_searchSpinner_15kqr_162",kg="_treeContainer_15kqr_166",Eg="_row_15kqr_176",Sg="_row_active_15kqr_191",Ng="_nodeLabel_15kqr_194",Mg="_row_match_15kqr_198",jg="_chevron_15kqr_202",Og="_chevronExpanded_15kqr_227",Dg="_chevronPlaceholder_15kqr_231",Pg="_nodeSpinner_15kqr_237",Rg="_emptyState_15kqr_249",Tg="_loadingState_15kqr_256",Ag="_dialogFooter_15kqr_263",le={wrapper:cg,input:lg,error:dg,disabled:ug,selectedOption:fg,placeholder:hg,actions:mg,clearButton:pg,selectButton:gg,dialogContent:vg,dialogHeader:bg,dialogTitle:wg,search:yg,searchIcon:xg,searchInput:_g,searchSpinner:Cg,treeContainer:kg,row:Eg,row_active:Sg,nodeLabel:Ng,row_match:Mg,chevron:jg,chevronExpanded:Og,chevronPlaceholder:Dg,nodeSpinner:Pg,emptyState:Rg,loadingState:Tg,dialogFooter:Ag},Ig=350,ht="__root__",Lg=({value:e,placeholder:t,loadChildren:n,loadNodes:r,searchNodes:o,onChange:s,onClear:a,label:i,tooltipContent:c,tooltipPopperClassName:u,title:f="Выбор элемента",searchPlaceholder:h="Введите запрос",selectButtonText:g="Выбрать",closeButtonText:m="Закрыть",confirmButtonText:w="Выбрать",debounceMs:p=Ig,disabled:v,error:y,className:x,inputClassName:_,selectedOptionRender:C,nodeRender:E,leafConfirmOnly:k=!1})=>{const S=r??n,[N,D]=b.useState(!1),[j,L]=b.useState(""),[P,T]=b.useState(""),[W,V]=b.useState(()=>new Map),[R,q]=b.useState(()=>new Set),[Y,U]=b.useState(()=>new Set),[M,J]=b.useState(()=>new Set),[ue,he]=b.useState(()=>new Set),[pe,Z]=b.useState(!1),[ee,fe]=b.useState(null),Se=b.useRef(0),re=b.useRef(0);b.useEffect(()=>{if(!N||W.has(ht))return;const $=Se.current+1;Se.current=$,q(ge=>{const ce=new Set(ge);return ce.add(ht),ce}),S({parentId:null,search:""}).then(ge=>{Se.current===$&&V(ce=>{const _e=new Map(ce);return _e.set(ht,ge.nodes),_e})}).finally(()=>{Se.current===$&&q(ge=>{const ce=new Set(ge);return ce.delete(ht),ce})})},[N,S,W]),b.useEffect(()=>{const $=window.setTimeout(()=>T(j.trim()),p);return()=>window.clearTimeout($)},[j,p]),b.useEffect(()=>{if(!N||!o)return;if(!P){he(new Set),J(new Set);return}const $=re.current+1;re.current=$,Z(!0),o(P).then(ge=>{if(re.current!==$)return;const ce=new Set,_e=new Set,je=new Map;for(const Ve of ge.matches){ce.add(Ve.node.value);const Oe=[...Ve.path,Ve.node];for(let Ce=0;Ce<Oe.length-1;Ce++){const dt=Oe[Ce],ut=Oe[Ce+1];_e.add(dt.value);const qe=dt.value;je.has(qe)||je.set(qe,new Map),je.get(qe).set(ut.value,ut)}if(Oe.length>0){const Ce=Oe[0];je.has(ht)||je.set(ht,new Map),je.get(ht).set(Ce.value,Ce)}}he(ce),J(_e),V(Ve=>{const Oe=new Map(Ve);return je.forEach((Ce,dt)=>{const ut=Oe.get(dt)??[],qe=new Map;ut.forEach(Qe=>qe.set(Qe.value,Qe)),Ce.forEach((Qe,Bn)=>qe.set(Bn,Qe)),Oe.set(dt,Array.from(qe.values()))}),Oe})}).finally(()=>{re.current===$&&Z(!1)})},[P,N,o]);const F=b.useCallback($=>{D($),$||(L(""),T(""),fe(null),he(new Set),J(new Set))},[]),be=b.useCallback($=>{const ge=$.value;W.has(ge)||R.has(ge)||(q(ce=>{const _e=new Set(ce);return _e.add(ge),_e}),S({parentId:$.value,search:""}).then(ce=>{V(_e=>{const je=new Map(_e),Ve=je.get(ge)??[],Oe=new Map;return Ve.forEach(Ce=>Oe.set(Ce.value,Ce)),ce.nodes.forEach(Ce=>Oe.set(Ce.value,Ce)),je.set(ge,Array.from(Oe.values())),je})}).finally(()=>{q(ce=>{const _e=new Set(ce);return _e.delete(ge),_e})}))},[W,S,R]),Ne=b.useCallback($=>{U(ge=>{const ce=new Set(ge);return ce.has($.value)?ce.delete($.value):(ce.add($.value),be($)),ce})},[be]),Te=b.useCallback($=>{fe($)},[]),Ye=b.useCallback(()=>{k&&(!ee||ee.hasChildren===!0)||(ee&&s?.(ee),F(!1))},[F,k,s,ee]),ae=b.useCallback($=>Y.has($)||M.has($),[Y,M]),Me=b.useCallback($=>{if(!P||o)return $;const ge=P.toLowerCase();return $.filter(ce=>ce.label.toLowerCase().includes(ge))},[P,o]),lt=($,ge)=>{const ce=$.value,_e=W.get(ce),je=ae($.value),Ve=R.has(ce),Oe=ee?.value===$.value,Ce=e?.value===$.value,dt=ue.has($.value),ut=je&&_e&&_e.length>0,qe=ut?Me(_e):[];return l.jsxs(b.Fragment,{children:[l.jsxs("div",{className:O(le.row,{[le.row_active]:Oe||Ce,[le.row_match]:dt}),style:{paddingLeft:16+ge*20},onClick:()=>Te($),children:[$.hasChildren?l.jsx("button",{type:"button",className:O(le.chevron,{[le.chevronExpanded]:je}),onClick:Qe=>{Qe.stopPropagation(),Ne($)},"aria-label":je?"Свернуть":"Раскрыть",children:l.jsx(It,{})}):l.jsx("span",{className:le.chevronPlaceholder}),l.jsx("span",{className:le.nodeLabel,children:E?E($):$.label}),Ve&&l.jsx(Ze,{size:"extraSmall",className:le.nodeSpinner})]}),ut&&qe.map(Qe=>lt(Qe,ge+1))]},String($.value))},Ln=W.get(ht)??[],Wn=Me(Ln),zt=R.has(ht),Pr=e?C?C(e):e.label:t,Rr=!zt&&!pe&&Wn.length===0,Fn=b.useMemo(()=>pe||zt&&!!P,[pe,zt,P]),cn=!ee||k&&ee.hasChildren===!0;return l.jsxs("div",{className:O(le.wrapper,x),children:[i&&l.jsx(jn,{htmlFor:"TreeDialogSelectInput",tooltipContent:c,tooltipPopperClassName:u,children:i}),l.jsxs("div",{id:"TreeDialogSelectInput",role:"button",tabIndex:v?-1:0,className:O(le.input,{[le.disabled]:v,[le.error]:y},_),onClick:()=>!v&&F(!0),onKeyDown:$=>{!v&&($.key==="Enter"||$.key===" ")&&($.preventDefault(),F(!0))},children:[l.jsx("span",{className:O(le.selectedOption,{[le.placeholder]:!e}),children:Pr}),l.jsxs("span",{className:le.actions,children:[a&&e&&l.jsx(ye,{variant:"text",className:le.clearButton,"aria-label":"Очистить выбранное значение",onClick:$=>{$.stopPropagation(),a()},children:l.jsx(st,{})}),l.jsx(ye,{variant:"link",className:le.selectButton,disabled:v,onClick:$=>{$.stopPropagation(),F(!0)},children:g})]})]}),l.jsx(Mr,{open:N,onOpenChange:F,children:l.jsxs(On,{className:le.dialogContent,children:[l.jsx(Dn,{className:le.dialogHeader,children:l.jsx(Pn,{className:le.dialogTitle,children:f})}),l.jsxs("div",{className:le.search,children:[l.jsx(hr,{className:le.searchIcon}),l.jsx("input",{className:le.searchInput,value:j,onChange:$=>L($.target.value),placeholder:h,autoFocus:!0}),Fn&&l.jsx(Ze,{size:"extraSmall",className:le.searchSpinner})]}),l.jsx("div",{className:le.treeContainer,children:zt&&Ln.length===0?l.jsx("div",{className:le.loadingState,children:l.jsx(Ze,{size:"small"})}):Rr?l.jsx("div",{className:le.emptyState,children:l.jsx(Bt,{title:"Ничего не найдено",subtitle:"Попробуйте изменить поисковый запрос"})}):Wn.map($=>lt($,0))}),l.jsxs(jr,{className:le.dialogFooter,children:[l.jsx(ye,{variant:"secondary",onClick:()=>F(!1),children:m}),l.jsx(ye,{variant:"primary",disabled:cn,onClick:Ye,children:w})]})]})}),y&&l.jsx($t,{children:y})]})},Wg="_wrapper_1wain_1",Fg="_tabs_1wain_6",Bg="_tabItem_1wain_16",$g="_active_1wain_46",zg="_before_1wain_61",Hg="_after_1wain_62",Yg="_panel_1wain_101",mt={wrapper:Wg,tabs:Fg,tabItem:Bg,active:$g,before:zg,after:Hg,panel:Yg};function Vg(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 qg=d.memo(({className:e,items:t=[],children:n,value:r,onValueChange:o,activeTab:s,onClick:a,tabsClassName:i})=>{const c=b.useMemo(()=>Vg(t),[t]),u=b.useMemo(()=>{if(r!==void 0){const f=c.findIndex(h=>h.key===r);return f>=0?f:0}return s??0},[r,s,c]);return l.jsxs("div",{className:O(mt.wrapper,e),children:[l.jsx("div",{className:O(mt.tabs,i),children:c.map((f,h)=>f.label&&l.jsxs("div",{className:O(mt.tabItem,f.className,{[mt.active]:u===h,[mt.first]:h===0,[mt.last]:h===c.length-1}),style:{zIndex:u===h?c.length:h===0?0:c.length-h},onClick:g=>{g.stopPropagation(),o?o(f.key):a?.(h)},children:[u===h&&h!==0&&l.jsx("span",{className:mt.before}),f.label,u===h&&h!==c.length-1&&l.jsx("span",{className:mt.after})]},h))}),l.jsx("div",{className:mt.panel,children:n})]})}),Gg="_wrapper_1xj0t_1",Ug="_itemBlock_1xj0t_8",Zg="_step_1xj0t_16",Xg="_clickable_1xj0t_39",Kg="_step_inactive_1xj0t_46",Qg="_step_current_1xj0t_51",Jg="_connector_1xj0t_55",ev="_connector_active_1xj0t_62",tv="_label_1xj0t_66",nv="_label_active_1xj0t_74",et={wrapper:Gg,itemBlock:Ug,step:Zg,clickable:Xg,step_inactive:Kg,step_current:Qg,connector:Jg,connector_active:ev,label:tv,label_active:nv},rv=({items:e,current:t,onChange:n,showCheckOnCompleted:r=!1,className:o})=>{const s=!!n;return l.jsx("div",{className:O(et.wrapper,o),role:"list",children:e.map((a,i)=>{const c=i<t,u=i===t,f=i<=t,h=i===e.length-1,g=r&&c,m=a.content??(g?l.jsx(Co,{}):i+1),w=l.jsx("button",{type:"button",className:O(et.step,{[et.step_inactive]:!f,[et.step_current]:u,[et.clickable]:s}),disabled:!s,onClick:()=>n?.(i),"aria-current":u?"step":void 0,"aria-label":typeof a.label=="string"?a.label:`Шаг ${i+1}`,children:m});return l.jsxs(b.Fragment,{children:[a.label?l.jsxs("div",{className:et.itemBlock,role:"listitem",children:[w,l.jsx("span",{className:O(et.label,{[et.label_active]:f}),children:a.label})]}):l.jsx("div",{role:"listitem",children:w}),!h&&l.jsx("span",{className:O(et.connector,{[et.connector_active]:i<t})})]},i)})})},ov="_container_1whkx_1",sv="_tabs_1whkx_4",av="_line_1whkx_11",iv="_tabItem_1whkx_21",cv="_header_1whkx_34",lv="_notificationChanges_1whkx_42",dv="_tabs_hasAnimatedIndicator_1whkx_61",uv="_active_1whkx_64",_t={container:ov,tabs:sv,line:av,tabItem:iv,header:cv,notificationChanges:lv,tabs_hasAnimatedIndicator:dv,active:uv};function fv(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 hv=d.memo(({items:e=[],value:t,onValueChange:n,activeTab:r,className:o,tabsClassName:s,changesIndex:a,badgeValue:i,sliderClassName:c,onClick:u})=>{const f=b.useMemo(()=>fv(e),[e]),h=b.useMemo(()=>{if(t!==void 0){const v=f.findIndex(y=>y.key===t);return v>=0?v:0}return r!==void 0?r:0},[t,r,f]),g=b.useRef(null),m=b.useRef(null),[w,p]=b.useState({left:0,width:0});return b.useEffect(()=>{const v=g.current;if(!v)return;const y=()=>{const C={left:v.offsetLeft||0,width:v.clientWidth||0};p(E=>E.left===C.left&&E.width===C.width?E:C)},x=()=>{m.current!==null&&cancelAnimationFrame(m.current),m.current=requestAnimationFrame(()=>{m.current=null,y()})};x();const _=new ResizeObserver(()=>{x()});return _.observe(v),()=>{_.disconnect(),m.current!==null&&(cancelAnimationFrame(m.current),m.current=null)}},[h]),l.jsx("div",{className:O(_t.container,o),children:l.jsxs("div",{className:O(_t.tabs,_t.tabs_hasAnimatedIndicator,s),children:[f.map((v,y)=>v.label&&l.jsxs("div",{ref:h===y?g:void 0,className:O(_t.tabItem,v.className,{[_t.active]:h===y}),onClick:x=>{x.stopPropagation(),n?n(v.key):u?.(y)},children:[v.header&&l.jsx("div",{className:_t.header,children:v.header}),v.label,a===y&&l.jsx("div",{className:_t.notificationChanges,children:i!=null?i>99?"99+":String(i):null})]},y)),l.jsx("div",{className:O(_t.line,c),style:{left:w.left,width:w.width}})]})})}),mv="_wrapper_rkn19_1",pv="_container_rkn19_6",gv="_input_rkn19_10",vv="_error_rkn19_45",bv="_disabled_rkn19_51",dn={wrapper:mv,container:pv,input:gv,error:vv,disabled:bv},xc=b.forwardRef(({label:e,error:t,disabled:n,className:r,inputClassName:o,tooltipContent:s,tooltipPopperClassName:a,id:i,...c},u)=>{const f=b.useId(),h=i??f;return l.jsxs("div",{className:O(dn.wrapper,r),children:[e&&l.jsx(jn,{htmlFor:h,tooltipContent:s,tooltipPopperClassName:a,children:e}),l.jsx("div",{className:dn.container,children:l.jsx("input",{ref:u,id:h,disabled:n,"aria-invalid":t?!0:void 0,className:O(dn.input,{[dn.disabled]:n,[dn.error]:!!t},o),...c})}),t&&l.jsx($t,{children:t})]})});xc.displayName="Input";function wv(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const yv={},mn={};function At(e,t){try{const r=(yv[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in mn?mn[r]:Vs(r,r.split(":"))}catch{if(e in mn)return mn[e];const n=e?.match(xv);return n?Vs(e,n.slice(1)):NaN}}const xv=/([+-]\d\d):?(\d\d)?/;function Vs(e,t){const n=+(t[0]||0),r=+(t[1]||0),o=+(t[2]||0)/60;return mn[e]=n*60+r>0?n*60+r+o:n*60-r-o}class ot extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(At(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),_c(this),xo(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new ot(...n,t):new ot(Date.now(),t)}withTimeZone(t){return new ot(+this,t)}getTimezoneOffset(){const t=-At(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),xo(this),+this}[Symbol.for("constructDateFrom")](t){return new ot(+new Date(t),this.timeZone)}}const qs=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!qs.test(e))return;const t=e.replace(qs,"$1UTC");ot.prototype[t]&&(e.startsWith("get")?ot.prototype[e]=function(){return this.internal[t]()}:(ot.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),_v(this),+this},ot.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),xo(this),+this}))});function xo(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-At(e.timeZone,e)*60))}function _v(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),_c(e)}function _c(e){const t=At(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),s=-new Date(+r).getTimezoneOffset(),a=o-s,i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const c=o-n;c&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+c);const u=new Date(+e);u.setUTCSeconds(0);const f=o>0?u.getSeconds():(u.getSeconds()-60)%60,h=Math.round(-(At(e.timeZone,e)*60))%60;(h||f)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+h),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+h+f));const g=At(e.timeZone,e),m=g>0?Math.floor(g):Math.ceil(g),p=-new Date(+e).getTimezoneOffset()-m,v=m!==n,y=p-c;if(v&&y){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+y);const x=At(e.timeZone,e),_=x>0?Math.floor(x):Math.ceil(x),C=m-_;C&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+C),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+C))}}class De extends ot{static tz(t,...n){return n.length?new De(...n,t):new De(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),o=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,o]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${t} GMT${n}${r}${o} (${wv(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[n,r,o]}withTimeZone(t){return new De(+this,t)}[Symbol.for("constructDateFrom")](t){return new De(+new Date(t),this.timeZone)}}const Cc=6048e5,Cv=864e5,Gs=Symbol.for("constructDateFrom");function xe(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Gs in e?e[Gs](t):e instanceof Date?new e.constructor(t):new Date(t)}function de(e,t){return xe(t||e,e)}function kc(e,t,n){const r=de(e,n?.in);return isNaN(t)?xe(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Ec(e,t,n){const r=de(e,n?.in);if(isNaN(t))return xe(e,NaN);if(!t)return r;const o=r.getDate(),s=xe(e,r.getTime());s.setMonth(r.getMonth()+t+1,0);const a=s.getDate();return o>=a?s:(r.setFullYear(s.getFullYear(),s.getMonth(),o),r)}let kv={};function Rn(){return kv}function rn(e,t){const n=Rn(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=de(e,t?.in),s=o.getDay(),a=(s<r?7:0)+s-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function xn(e,t){return rn(e,{...t,weekStartsOn:1})}function Sc(e,t){const n=de(e,t?.in),r=n.getFullYear(),o=xe(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=xn(o),a=xe(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const i=xn(a);return n.getTime()>=s.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function Us(e){const t=de(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function an(e,...t){const n=xe.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function _n(e,t){const n=de(e,t?.in);return n.setHours(0,0,0,0),n}function Zo(e,t,n){const[r,o]=an(n?.in,e,t),s=_n(r),a=_n(o),i=+s-Us(s),c=+a-Us(a);return Math.round((i-c)/Cv)}function Ev(e,t){const n=Sc(e,t),r=xe(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),xn(r)}function Sv(e,t,n){return kc(e,t*7,n)}function Nv(e,t,n){return Ec(e,t*12,n)}function Mv(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=xe.bind(null,o));const s=de(o,r);(!n||n<s||isNaN(+s))&&(n=s)}),xe(r,n||NaN)}function jv(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=xe.bind(null,o));const s=de(o,r);(!n||n>s||isNaN(+s))&&(n=s)}),xe(r,n||NaN)}function Ov(e,t,n){const[r,o]=an(n?.in,e,t);return+_n(r)==+_n(o)}function Nc(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Dv(e){return!(!Nc(e)&&typeof e!="number"||isNaN(+de(e)))}function Mc(e,t,n){const[r,o]=an(n?.in,e,t),s=r.getFullYear()-o.getFullYear(),a=r.getMonth()-o.getMonth();return s*12+a}function Pv(e,t){const n=de(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function jc(e,t){const[n,r]=an(e,t.start,t.end);return{start:n,end:r}}function Rv(e,t){const{start:n,end:r}=jc(t?.in,e);let o=+n>+r;const s=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setDate(1);let i=1;const c=[];for(;+a<=s;)c.push(xe(n,a)),a.setMonth(a.getMonth()+i);return o?c.reverse():c}function Tv(e,t){const n=de(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Av(e,t){const n=de(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Oc(e,t){const n=de(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Iv(e,t){const{start:n,end:r}=jc(t?.in,e);let o=+n>+r;const s=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setMonth(0,1);let i=1;const c=[];for(;+a<=s;)c.push(xe(n,a)),a.setFullYear(a.getFullYear()+i);return o?c.reverse():c}function Dc(e,t){const n=Rn(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=de(e,t?.in),s=o.getDay(),a=(s<r?-7:0)+6-(s-r);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function Lv(e,t){return Dc(e,{...t,weekStartsOn:1})}const Wv={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Fv=(e,t,n)=>{let r;const o=Wv[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function eo(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Bv={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},$v={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},zv={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Hv={date:eo({formats:Bv,defaultWidth:"full"}),time:eo({formats:$v,defaultWidth:"full"}),dateTime:eo({formats:zv,defaultWidth:"full"})},Yv={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Vv=(e,t,n,r)=>Yv[e];function un(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):a;o=e.formattingValues[i]||e.formattingValues[a]}else{const a=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;o=e.values[i]||e.values[a]}const s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}const qv={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Gv={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Uv={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Zv={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Xv={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Kv={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Qv=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Jv={ordinalNumber:Qv,era:un({values:qv,defaultWidth:"wide"}),quarter:un({values:Gv,defaultWidth:"wide",argumentCallback:e=>e-1}),month:un({values:Uv,defaultWidth:"wide"}),day:un({values:Zv,defaultWidth:"wide"}),dayPeriod:un({values:Xv,defaultWidth:"wide",formattingValues:Kv,defaultFormattingWidth:"wide"})};function fn(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;const a=s[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(i)?t2(i,h=>h.test(a)):e2(i,h=>h.test(a));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(a.length);return{value:u,rest:f}}}function e2(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function t2(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function n2(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],s=t.match(e.parsePattern);if(!s)return null;let a=e.valueCallback?e.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;const i=t.slice(o.length);return{value:a,rest:i}}}const r2=/^(\d+)(th|st|nd|rd)?/i,o2=/\d+/i,s2={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},a2={any:[/^b/i,/^(a|c)/i]},i2={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c2={any:[/1/i,/2/i,/3/i,/4/i]},l2={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},d2={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},u2={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},f2={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},h2={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m2={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},p2={ordinalNumber:n2({matchPattern:r2,parsePattern:o2,valueCallback:e=>parseInt(e,10)}),era:fn({matchPatterns:s2,defaultMatchWidth:"wide",parsePatterns:a2,defaultParseWidth:"any"}),quarter:fn({matchPatterns:i2,defaultMatchWidth:"wide",parsePatterns:c2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:fn({matchPatterns:l2,defaultMatchWidth:"wide",parsePatterns:d2,defaultParseWidth:"any"}),day:fn({matchPatterns:u2,defaultMatchWidth:"wide",parsePatterns:f2,defaultParseWidth:"any"}),dayPeriod:fn({matchPatterns:h2,defaultMatchWidth:"any",parsePatterns:m2,defaultParseWidth:"any"})},Zt={code:"en-US",formatDistance:Fv,formatLong:Hv,formatRelative:Vv,localize:Jv,match:p2,options:{weekStartsOn:0,firstWeekContainsDate:1}};function g2(e,t){const n=de(e,t?.in);return Zo(n,Oc(n))+1}function Xo(e,t){const n=de(e,t?.in),r=+xn(n)-+Ev(n);return Math.round(r/Cc)+1}function Pc(e,t){const n=de(e,t?.in),r=n.getFullYear(),o=Rn(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=xe(t?.in||e,0);a.setFullYear(r+1,0,s),a.setHours(0,0,0,0);const i=rn(a,t),c=xe(t?.in||e,0);c.setFullYear(r,0,s),c.setHours(0,0,0,0);const u=rn(c,t);return+n>=+i?r+1:+n>=+u?r:r-1}function v2(e,t){const n=Rn(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Pc(e,t),s=xe(t?.in||e,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),rn(s,t)}function Ko(e,t){const n=de(e,t?.in),r=+rn(n,t)-+v2(n,t);return Math.round(r/Cc)+1}function ie(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ct={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ie(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ie(n+1,2)},d(e,t){return ie(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return ie(e.getHours()%12||12,t.length)},H(e,t){return ie(e.getHours(),t.length)},m(e,t){return ie(e.getMinutes(),t.length)},s(e,t){return ie(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return ie(o,t.length)}},Gt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Zs={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Ct.y(e,t)},Y:function(e,t,n,r){const o=Pc(e,r),s=o>0?o:1-o;if(t==="YY"){const a=s%100;return ie(a,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):ie(s,t.length)},R:function(e,t){const n=Sc(e);return ie(n,t.length)},u:function(e,t){const n=e.getFullYear();return ie(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ie(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ie(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Ct.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return ie(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Ko(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):ie(o,t.length)},I:function(e,t,n){const r=Xo(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ie(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ct.d(e,t)},D:function(e,t,n){const r=g2(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ie(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return ie(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return ie(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return ie(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Gt.noon:r===0?o=Gt.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Gt.evening:r>=12?o=Gt.afternoon:r>=4?o=Gt.morning:o=Gt.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Ct.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ct.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ie(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ie(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ct.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ct.s(e,t)},S:function(e,t){return Ct.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Ks(r);case"XXXX":case"XX":return Tt(r);default:return Tt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Ks(r);case"xxxx":case"xx":return Tt(r);default:return Tt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Xs(r,":");default:return"GMT"+Tt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Xs(r,":");default:return"GMT"+Tt(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return ie(r,t.length)},T:function(e,t,n){return ie(+e,t.length)}};function Xs(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),s=r%60;return s===0?n+String(o):n+String(o)+t+ie(s,2)}function Ks(e,t){return e%60===0?(e>0?"-":"+")+ie(Math.abs(e)/60,2):Tt(e,t)}function Tt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=ie(Math.trunc(r/60),2),s=ie(r%60,2);return n+o+t+s}const Qs=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Rc=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},b2=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Qs(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",Qs(r,t)).replace("{{time}}",Rc(o,t))},w2={p:Rc,P:b2},y2=/^D+$/,x2=/^Y+$/,_2=["D","DD","YY","YYYY"];function C2(e){return y2.test(e)}function k2(e){return x2.test(e)}function E2(e,t,n){const r=S2(e,t,n);if(console.warn(r),_2.includes(e))throw new RangeError(r)}function S2(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const N2=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,M2=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,j2=/^'([^]*?)'?$/,O2=/''/g,D2=/[a-zA-Z]/;function pn(e,t,n){const r=Rn(),o=n?.locale??r.locale??Zt,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=de(e,n?.in);if(!Dv(i))throw new RangeError("Invalid time value");let c=t.match(M2).map(f=>{const h=f[0];if(h==="p"||h==="P"){const g=w2[h];return g(f,o.formatLong)}return f}).join("").match(N2).map(f=>{if(f==="''")return{isToken:!1,value:"'"};const h=f[0];if(h==="'")return{isToken:!1,value:P2(f)};if(Zs[h])return{isToken:!0,value:f};if(h.match(D2))throw new RangeError("Format string contains an unescaped latin alphabet character `"+h+"`");return{isToken:!1,value:f}});o.localize.preprocessor&&(c=o.localize.preprocessor(i,c));const u={firstWeekContainsDate:s,weekStartsOn:a,locale:o};return c.map(f=>{if(!f.isToken)return f.value;const h=f.value;(!n?.useAdditionalWeekYearTokens&&k2(h)||!n?.useAdditionalDayOfYearTokens&&C2(h))&&E2(h,t,String(e));const g=Zs[h[0]];return g(i,h,o.localize,u)}).join("")}function P2(e){const t=e.match(j2);return t?t[1].replace(O2,"'"):e}function R2(e,t){const n=de(e,t?.in),r=n.getFullYear(),o=n.getMonth(),s=xe(n,0);return s.setFullYear(r,o+1,0),s.setHours(0,0,0,0),s.getDate()}function T2(e,t){return de(e,t?.in).getMonth()}function A2(e,t){return de(e,t?.in).getFullYear()}function I2(e,t){return+de(e)>+de(t)}function L2(e,t){return+de(e)<+de(t)}function W2(e,t,n){const[r,o]=an(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function F2(e,t,n){const[r,o]=an(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function B2(e,t,n){const r=de(e,n?.in),o=r.getFullYear(),s=r.getDate(),a=xe(e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);const i=R2(a);return r.setMonth(t,Math.min(s,i)),r}function $2(e,t,n){const r=de(e,n?.in);return isNaN(+r)?xe(e,NaN):(r.setFullYear(t),r)}const Js=5,z2=4;function H2(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),s=t.addDays(o,Js*7-1);return t.getMonth(e)===t.getMonth(s)?Js:z2}function Tc(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function Y2(e,t){const n=Tc(e,t),r=H2(e,t);return t.addDays(n,r*7-1)}const Ac={...Zt,labels:{labelDayButton:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,i)=>pn(a,i,{locale:Zt,...n});let s=o(e,"PPPP");return t.today&&(s=`Today, ${s}`),t.selected&&(s=`${s}, selected`),s},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,s)=>pn(o,s,{locale:Zt,...t}),r(e,"LLLL yyyy")},labelGridcell:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,i)=>pn(a,i,{locale:Zt,...n});let s=o(e,"PPPP");return t?.today&&(s=`Today, ${s}`),s},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,s)=>pn(o,s,{locale:Zt,...t}),r(e,"cccc")}}};class $e{constructor(t,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?De.tz(this.options.timeZone):new this.Date,this.newDate=(r,o,s)=>this.overrides?.newDate?this.overrides.newDate(r,o,s):this.options.timeZone?new De(r,o,s,this.options.timeZone):new Date(r,o,s),this.addDays=(r,o)=>this.overrides?.addDays?this.overrides.addDays(r,o):kc(r,o),this.addMonths=(r,o)=>this.overrides?.addMonths?this.overrides.addMonths(r,o):Ec(r,o),this.addWeeks=(r,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(r,o):Sv(r,o),this.addYears=(r,o)=>this.overrides?.addYears?this.overrides.addYears(r,o):Nv(r,o),this.differenceInCalendarDays=(r,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):Zo(r,o),this.differenceInCalendarMonths=(r,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):Mc(r,o),this.eachMonthOfInterval=r=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):Rv(r),this.eachYearOfInterval=r=>{const o=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):Iv(r),s=new Set(o.map(i=>this.getYear(i)));if(s.size===o.length)return o;const a=[];return s.forEach(i=>{a.push(new Date(i,0,1))}),a},this.endOfBroadcastWeek=r=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):Y2(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):Lv(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):Pv(r),this.endOfWeek=(r,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(r,o):Dc(r,this.options),this.endOfYear=r=>this.overrides?.endOfYear?this.overrides.endOfYear(r):Av(r),this.format=(r,o,s)=>{const a=this.overrides?.format?this.overrides.format(r,o,this.options):pn(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(a):a},this.getISOWeek=r=>this.overrides?.getISOWeek?this.overrides.getISOWeek(r):Xo(r),this.getMonth=(r,o)=>this.overrides?.getMonth?this.overrides.getMonth(r,this.options):T2(r,this.options),this.getYear=(r,o)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):A2(r,this.options),this.getWeek=(r,o)=>this.overrides?.getWeek?this.overrides.getWeek(r,this.options):Ko(r,this.options),this.isAfter=(r,o)=>this.overrides?.isAfter?this.overrides.isAfter(r,o):I2(r,o),this.isBefore=(r,o)=>this.overrides?.isBefore?this.overrides.isBefore(r,o):L2(r,o),this.isDate=r=>this.overrides?.isDate?this.overrides.isDate(r):Nc(r),this.isSameDay=(r,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(r,o):Ov(r,o),this.isSameMonth=(r,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,o):W2(r,o),this.isSameYear=(r,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,o):F2(r,o),this.max=r=>this.overrides?.max?this.overrides.max(r):Mv(r),this.min=r=>this.overrides?.min?this.overrides.min(r):jv(r),this.setMonth=(r,o)=>this.overrides?.setMonth?this.overrides.setMonth(r,o):B2(r,o),this.setYear=(r,o)=>this.overrides?.setYear?this.overrides.setYear(r,o):$2(r,o),this.startOfBroadcastWeek=(r,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):Tc(r,this),this.startOfDay=r=>this.overrides?.startOfDay?this.overrides.startOfDay(r):_n(r),this.startOfISOWeek=r=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(r):xn(r),this.startOfMonth=r=>this.overrides?.startOfMonth?this.overrides.startOfMonth(r):Tv(r),this.startOfWeek=(r,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(r,this.options):rn(r,this.options),this.startOfYear=r=>this.overrides?.startOfYear?this.overrides.startOfYear(r):Oc(r),this.options={locale:Ac,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){const t=this.options.locale?.code;return t&&$e.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:r,numerals:o}=this.options,s=n?.code;if(s&&$e.yearFirstLocales.has(s))try{return new Intl.DateTimeFormat(s,{month:"long",year:"numeric",timeZone:r,numberingSystem:o}).format(t)}catch{}const a=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,a)}}$e.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const ct=new $e;class Ic{constructor(t,n,r=ct){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r,this.isoDate=r.format(t,"yyyy-MM-dd"),this.displayMonthId=r.format(n,"yyyy-MM"),this.dateMonthId=r.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class V2{constructor(t,n){this.date=t,this.weeks=n}}class q2{constructor(t,n){this.days=n,this.weekNumber=t}}function G2(e){return b.createElement("button",{...e})}function U2(e){return b.createElement("span",{...e})}function Z2(e){const{size:t=24,orientation:n="left",className:r}=e;return b.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&b.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&b.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&b.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&b.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function X2(e){const{day:t,modifiers:n,...r}=e;return b.createElement("td",{...r})}function K2(e){const{day:t,modifiers:n,...r}=e,o=b.useRef(null);return b.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),b.createElement("button",{ref:o,...r})}var z;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(z||(z={}));var ve;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(ve||(ve={}));var Ue;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Ue||(Ue={}));var We;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(We||(We={}));function Q2(e){const{options:t,className:n,components:r,classNames:o,...s}=e,a=[o[z.Dropdown],n].join(" "),i=t?.find(({value:c})=>c===s.value);return b.createElement("span",{"data-disabled":s.disabled,className:o[z.DropdownRoot]},b.createElement(r.Select,{className:a,...s},t?.map(({value:c,label:u,disabled:f})=>b.createElement(r.Option,{key:c,value:c,disabled:f},u))),b.createElement("span",{className:o[z.CaptionLabel],"aria-hidden":!0},i?.label,b.createElement(r.Chevron,{orientation:"down",size:18,className:o[z.Chevron]})))}function J2(e){return b.createElement("div",{...e})}function eb(e){return b.createElement("div",{...e})}function tb(e){const{calendarMonth:t,displayIndex:n,...r}=e;return b.createElement("div",{...r},e.children)}function nb(e){const{calendarMonth:t,displayIndex:n,...r}=e;return b.createElement("div",{...r})}function rb(e){return b.createElement("table",{...e})}function ob(e){return b.createElement("div",{...e})}const Lc=b.createContext(void 0);function Tn(){const e=b.useContext(Lc);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function sb(e){const{components:t}=Tn();return b.createElement(t.Dropdown,{...e})}function ab(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...s}=e,{components:a,classNames:i,labels:{labelPrevious:c,labelNext:u}}=Tn(),f=b.useCallback(g=>{o&&n?.(g)},[o,n]),h=b.useCallback(g=>{r&&t?.(g)},[r,t]);return b.createElement("nav",{...s},b.createElement(a.PreviousMonthButton,{type:"button",className:i[z.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":c(r),onClick:h},b.createElement(a.Chevron,{disabled:r?void 0:!0,className:i[z.Chevron],orientation:"left"})),b.createElement(a.NextMonthButton,{type:"button",className:i[z.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":u(o),onClick:f},b.createElement(a.Chevron,{disabled:o?void 0:!0,orientation:"right",className:i[z.Chevron]})))}function ib(e){const{components:t}=Tn();return b.createElement(t.Button,{...e})}function cb(e){return b.createElement("option",{...e})}function lb(e){const{components:t}=Tn();return b.createElement(t.Button,{...e})}function db(e){const{rootRef:t,...n}=e;return b.createElement("div",{...n,ref:t})}function ub(e){return b.createElement("select",{...e})}function fb(e){const{week:t,...n}=e;return b.createElement("tr",{...n})}function hb(e){return b.createElement("th",{...e})}function mb(e){return b.createElement("thead",{"aria-hidden":!0},b.createElement("tr",{...e}))}function pb(e){const{week:t,...n}=e;return b.createElement("th",{...n})}function gb(e){return b.createElement("th",{...e})}function vb(e){return b.createElement("tbody",{...e})}function bb(e){const{components:t}=Tn();return b.createElement(t.Dropdown,{...e})}const wb=Object.freeze(Object.defineProperty({__proto__:null,Button:G2,CaptionLabel:U2,Chevron:Z2,Day:X2,DayButton:K2,Dropdown:Q2,DropdownNav:J2,Footer:eb,Month:tb,MonthCaption:nb,MonthGrid:rb,Months:ob,MonthsDropdown:sb,Nav:ab,NextMonthButton:ib,Option:cb,PreviousMonthButton:lb,Root:db,Select:ub,Week:fb,WeekNumber:pb,WeekNumberHeader:gb,Weekday:hb,Weekdays:mb,Weeks:vb,YearsDropdown:bb},Symbol.toStringTag,{value:"Module"}));function pt(e,t,n=!1,r=ct){let{from:o,to:s}=e;const{differenceInCalendarDays:a,isSameDay:i}=r;return o&&s?(a(s,o)<0&&([o,s]=[s,o]),a(t,o)>=(n?1:0)&&a(s,t)>=(n?1:0)):!n&&s?i(s,t):!n&&o?i(o,t):!1}function Qo(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Or(e){return!!(e&&typeof e=="object"&&"from"in e)}function Jo(e){return!!(e&&typeof e=="object"&&"after"in e)}function es(e){return!!(e&&typeof e=="object"&&"before"in e)}function Wc(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Fc(e,t){return Array.isArray(e)&&e.every(t.isDate)}function gt(e,t,n=ct){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:s,isAfter:a}=n;return r.some(i=>{if(typeof i=="boolean")return i;if(n.isDate(i))return o(e,i);if(Fc(i,n))return i.some(c=>o(e,c));if(Or(i))return pt(i,e,!1,n);if(Wc(i))return Array.isArray(i.dayOfWeek)?i.dayOfWeek.includes(e.getDay()):i.dayOfWeek===e.getDay();if(Qo(i)){const c=s(i.before,e),u=s(i.after,e),f=c>0,h=u<0;return a(i.before,i.after)?h&&f:f||h}return Jo(i)?s(e,i.after)>0:es(i)?s(i.before,e)>0:typeof i=="function"?i(e):!1})}function yb(e,t,n,r,o){const{disabled:s,hidden:a,modifiers:i,showOutsideDays:c,broadcastCalendar:u,today:f=o.today()}=t,{isSameDay:h,isSameMonth:g,startOfMonth:m,isBefore:w,endOfMonth:p,isAfter:v}=o,y=n&&m(n),x=r&&p(r),_={[ve.focused]:[],[ve.outside]:[],[ve.disabled]:[],[ve.hidden]:[],[ve.today]:[]},C={};for(const E of e){const{date:k,displayMonth:S}=E,N=!!(S&&!g(k,S)),D=!!(y&&w(k,y)),j=!!(x&&v(k,x)),L=!!(s&>(k,s,o)),P=!!(a&>(k,a,o))||D||j||!u&&!c&&N||u&&c===!1&&N,T=h(k,f);N&&_.outside.push(E),L&&_.disabled.push(E),P&&_.hidden.push(E),T&&_.today.push(E),i&&Object.keys(i).forEach(W=>{const V=i?.[W];V&>(k,V,o)&&(C[W]?C[W].push(E):C[W]=[E])})}return E=>{const k={[ve.focused]:!1,[ve.disabled]:!1,[ve.hidden]:!1,[ve.outside]:!1,[ve.today]:!1},S={};for(const N in _){const D=_[N];k[N]=D.some(j=>j===E)}for(const N in C)S[N]=C[N].some(D=>D===E);return{...k,...S}}}function xb(e,t,n={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[s])=>(n[s]?o.push(n[s]):t[ve[s]]?o.push(t[ve[s]]):t[Ue[s]]&&o.push(t[Ue[s]]),o),[t[z.Day]])}function _b(e){return{...wb,...e}}function Cb(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function ts(){const e={};for(const t in z)e[z[t]]=`rdp-${z[t]}`;for(const t in ve)e[ve[t]]=`rdp-${ve[t]}`;for(const t in Ue)e[Ue[t]]=`rdp-${Ue[t]}`;for(const t in We)e[We[t]]=`rdp-${We[t]}`;return e}function Bc(e,t,n){return(n??new $e(t)).formatMonthYear(e)}const kb=Bc;function Eb(e,t,n){return(n??new $e(t)).format(e,"d")}function Sb(e,t=ct){return t.format(e,"LLLL")}function Nb(e,t,n){return(n??new $e(t)).format(e,"cccccc")}function Mb(e,t=ct){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function jb(){return""}function $c(e,t=ct){return t.format(e,"yyyy")}const Ob=$c,Db=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:Bc,formatDay:Eb,formatMonthCaption:kb,formatMonthDropdown:Sb,formatWeekNumber:Mb,formatWeekNumberHeader:jb,formatWeekdayName:Nb,formatYearCaption:Ob,formatYearDropdown:$c},Symbol.toStringTag,{value:"Module"}));function Pb(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...Db,...e}}function ns(e,t,n,r){let o=(r??new $e(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const Rb=ns;function rs(e,t,n){return(n??new $e(t)).formatMonthYear(e)}const Tb=rs;function zc(e,t,n,r){let o=(r??new $e(n)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function Hc(e){return"Choose the Month"}function Yc(){return""}const Ab="Go to the Next Month";function Vc(e,t){return Ab}function qc(e){return"Go to the Previous Month"}function Gc(e,t,n){return(n??new $e(t)).format(e,"cccc")}function Uc(e,t){return`Week ${e}`}function Zc(e){return"Week Number"}function Xc(e){return"Choose the Year"}const Ib=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:Tb,labelDay:Rb,labelDayButton:ns,labelGrid:rs,labelGridcell:zc,labelMonthDropdown:Hc,labelNav:Yc,labelNext:Vc,labelPrevious:qc,labelWeekNumber:Uc,labelWeekNumberHeader:Zc,labelWeekday:Gc,labelYearDropdown:Xc},Symbol.toStringTag,{value:"Module"})),Ge=(e,t,n)=>t||(n?typeof n=="function"?n:(...r)=>n:e);function Lb(e,t){const n=t.locale?.labels??{};return{...Ib,...e??{},labelDayButton:Ge(ns,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:Ge(Hc,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:Ge(Vc,e?.labelNext,n.labelNext),labelPrevious:Ge(qc,e?.labelPrevious,n.labelPrevious),labelWeekNumber:Ge(Uc,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:Ge(Xc,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:Ge(rs,e?.labelGrid,n.labelGrid),labelGridcell:Ge(zc,e?.labelGridcell,n.labelGridcell),labelNav:Ge(Yc,e?.labelNav,n.labelNav),labelWeekNumberHeader:Ge(Zc,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:Ge(Gc,e?.labelWeekday,n.labelWeekday)}}function Wb(e,t,n,r,o){const{startOfMonth:s,startOfYear:a,endOfYear:i,eachMonthOfInterval:c,getMonth:u}=o;return c({start:a(e),end:i(e)}).map(g=>{const m=r.formatMonthDropdown(g,o),w=u(g),p=t&&g<s(t)||n&&g>s(n)||!1;return{value:w,label:m,disabled:p}})}function Fb(e,t={},n={}){let r={...t?.[z.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n?.[o]}}),r}function Bb(e,t,n,r){const o=r??e.today(),s=n?e.startOfBroadcastWeek(o,e):t?e.startOfISOWeek(o):e.startOfWeek(o),a=[];for(let i=0;i<7;i++){const c=e.addDays(s,i);a.push(c)}return a}function $b(e,t,n,r,o=!1){if(!e||!t)return;const{startOfYear:s,endOfYear:a,eachYearOfInterval:i,getYear:c}=r,u=s(e),f=a(t),h=i({start:u,end:f});return o&&h.reverse(),h.map(g=>{const m=n.formatYearDropdown(g,r);return{value:c(g),label:m,disabled:!1}})}function zb(e,t={}){const{weekStartsOn:n,locale:r}=t,o=n??r?.options?.weekStartsOn??0,s=i=>{const c=typeof i=="number"||typeof i=="string"?new Date(i):i;return new De(c.getFullYear(),c.getMonth(),c.getDate(),12,0,0,e)},a=i=>{const c=s(i);return new Date(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0,0)};return{today:()=>s(De.tz(e)),newDate:(i,c,u)=>new De(i,c,u,12,0,0,e),startOfDay:i=>s(i),startOfWeek:(i,c)=>{const u=s(i),f=c?.weekStartsOn??o,h=(u.getDay()-f+7)%7;return u.setDate(u.getDate()-h),u},startOfISOWeek:i=>{const c=s(i),u=(c.getDay()-1+7)%7;return c.setDate(c.getDate()-u),c},startOfMonth:i=>{const c=s(i);return c.setDate(1),c},startOfYear:i=>{const c=s(i);return c.setMonth(0,1),c},endOfWeek:(i,c)=>{const u=s(i),g=(((c?.weekStartsOn??o)+6)%7-u.getDay()+7)%7;return u.setDate(u.getDate()+g),u},endOfISOWeek:i=>{const c=s(i),u=(7-c.getDay())%7;return c.setDate(c.getDate()+u),c},endOfMonth:i=>{const c=s(i);return c.setMonth(c.getMonth()+1,0),c},endOfYear:i=>{const c=s(i);return c.setMonth(11,31),c},eachMonthOfInterval:i=>{const c=s(i.start),u=s(i.end),f=[],h=new De(c.getFullYear(),c.getMonth(),1,12,0,0,e),g=u.getFullYear()*12+u.getMonth();for(;h.getFullYear()*12+h.getMonth()<=g;)f.push(new De(h,e)),h.setMonth(h.getMonth()+1,1);return f},addDays:(i,c)=>{const u=s(i);return u.setDate(u.getDate()+c),u},addWeeks:(i,c)=>{const u=s(i);return u.setDate(u.getDate()+c*7),u},addMonths:(i,c)=>{const u=s(i);return u.setMonth(u.getMonth()+c),u},addYears:(i,c)=>{const u=s(i);return u.setFullYear(u.getFullYear()+c),u},eachYearOfInterval:i=>{const c=s(i.start),u=s(i.end),f=[],h=new De(c.getFullYear(),0,1,12,0,0,e);for(;h.getFullYear()<=u.getFullYear();)f.push(new De(h,e)),h.setFullYear(h.getFullYear()+1,0,1);return f},getWeek:(i,c)=>{const u=a(i);return Ko(u,{weekStartsOn:c?.weekStartsOn??o,firstWeekContainsDate:c?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1})},getISOWeek:i=>{const c=a(i);return Xo(c)},differenceInCalendarDays:(i,c)=>{const u=a(i),f=a(c);return Zo(u,f)},differenceInCalendarMonths:(i,c)=>{const u=a(i),f=a(c);return Mc(u,f)}}}const An=e=>e instanceof HTMLElement?e:null,to=e=>[...e.querySelectorAll("[data-animated-month]")??[]],Hb=e=>An(e.querySelector("[data-animated-month]")),no=e=>An(e.querySelector("[data-animated-caption]")),ro=e=>An(e.querySelector("[data-animated-weeks]")),Yb=e=>An(e.querySelector("[data-animated-nav]")),Vb=e=>An(e.querySelector("[data-animated-weekdays]"));function qb(e,t,{classNames:n,months:r,focused:o,dateLib:s}){const a=b.useRef(null),i=b.useRef(r),c=b.useRef(!1);b.useLayoutEffect(()=>{const u=i.current;if(i.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||u.length===0||r.length!==u.length)return;const f=s.isSameMonth(r[0].date,u[0].date),h=s.isAfter(r[0].date,u[0].date),g=h?n[We.caption_after_enter]:n[We.caption_before_enter],m=h?n[We.weeks_after_enter]:n[We.weeks_before_enter],w=a.current,p=e.current.cloneNode(!0);if(p instanceof HTMLElement?(to(p).forEach(_=>{if(!(_ instanceof HTMLElement))return;const C=Hb(_);C&&_.contains(C)&&_.removeChild(C);const E=no(_);E&&E.classList.remove(g);const k=ro(_);k&&k.classList.remove(m)}),a.current=p):a.current=null,c.current||f||o)return;const v=w instanceof HTMLElement?to(w):[],y=to(e.current);if(y?.every(x=>x instanceof HTMLElement)&&v&&v.every(x=>x instanceof HTMLElement)){c.current=!0,e.current.style.isolation="isolate";const x=Yb(e.current);x&&(x.style.zIndex="1"),y.forEach((_,C)=>{const E=v[C];if(!E)return;_.style.position="relative",_.style.overflow="hidden";const k=no(_);k&&k.classList.add(g);const S=ro(_);S&&S.classList.add(m);const N=()=>{c.current=!1,e.current&&(e.current.style.isolation=""),x&&(x.style.zIndex=""),k&&k.classList.remove(g),S&&S.classList.remove(m),_.style.position="",_.style.overflow="",_.contains(E)&&_.removeChild(E)};E.style.pointerEvents="none",E.style.position="absolute",E.style.overflow="hidden",E.setAttribute("aria-hidden","true");const D=Vb(E);D&&(D.style.opacity="0");const j=no(E);j&&(j.classList.add(h?n[We.caption_before_exit]:n[We.caption_after_exit]),j.addEventListener("animationend",N));const L=ro(E);L&&L.classList.add(h?n[We.weeks_before_exit]:n[We.weeks_after_exit]),_.insertBefore(E,_.firstChild)})}})}function Gb(e,t,n,r){const o=e[0],s=e[e.length-1],{ISOWeek:a,fixedWeeks:i,broadcastCalendar:c}=n??{},{addDays:u,differenceInCalendarDays:f,differenceInCalendarMonths:h,endOfBroadcastWeek:g,endOfISOWeek:m,endOfMonth:w,endOfWeek:p,isAfter:v,startOfBroadcastWeek:y,startOfISOWeek:x,startOfWeek:_}=r,C=c?y(o,r):a?x(o):_(o),E=c?g(s):a?m(w(s)):p(w(s)),k=t&&(c?g(t):a?m(t):p(t)),S=k&&v(E,k)?k:E,N=f(S,C),D=h(s,o)+1,j=[];for(let T=0;T<=N;T++){const W=u(C,T);j.push(W)}const P=(c?35:42)*D;if(i&&j.length<P){const T=P-j.length;for(let W=0;W<T;W++){const V=u(j[j.length-1],1);j.push(V)}}return j}function Ub(e){const t=[];return e.reduce((n,r)=>{const o=r.weeks.reduce((s,a)=>s.concat(a.days.slice()),t.slice());return n.concat(o.slice())},t.slice())}function Zb(e,t,n,r){const{numberOfMonths:o=1}=n,s=[];for(let a=0;a<o;a++){const i=r.addMonths(e,a);if(t&&i>t)break;s.push(i)}return s}function ea(e,t,n,r){const{month:o,defaultMonth:s,today:a=r.today(),numberOfMonths:i=1}=e;let c=o||s||a;const{differenceInCalendarMonths:u,addMonths:f,startOfMonth:h}=r;if(n&&u(n,c)<i-1){const g=-1*(i-1);c=f(n,g)}return t&&u(c,t)<0&&(c=t),h(c)}function Xb(e,t,n,r){const{addDays:o,endOfBroadcastWeek:s,endOfISOWeek:a,endOfMonth:i,endOfWeek:c,getISOWeek:u,getWeek:f,startOfBroadcastWeek:h,startOfISOWeek:g,startOfWeek:m}=r,w=e.reduce((p,v)=>{const y=n.broadcastCalendar?h(v,r):n.ISOWeek?g(v):m(v),x=n.broadcastCalendar?s(v):n.ISOWeek?a(i(v)):c(i(v)),_=t.filter(S=>S>=y&&S<=x),C=n.broadcastCalendar?35:42;if(n.fixedWeeks&&_.length<C){const S=t.filter(N=>{const D=C-_.length;return N>x&&N<=o(x,D)});_.push(...S)}const E=_.reduce((S,N)=>{const D=n.ISOWeek?u(N):f(N),j=S.find(P=>P.weekNumber===D),L=new Ic(N,v,r);return j?j.days.push(L):S.push(new q2(D,[L])),S},[]),k=new V2(v,E);return p.push(k),p},[]);return n.reverseMonths?w.reverse():w}function Kb(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:s,startOfMonth:a,endOfMonth:i,addYears:c,endOfYear:u,newDate:f,today:h}=t,{fromYear:g,toYear:m,fromMonth:w,toMonth:p}=e;!n&&w&&(n=w),!n&&g&&(n=t.newDate(g,0,1)),!r&&p&&(r=p),!r&&m&&(r=f(m,11,31));const v=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=a(n):g?n=f(g,0,1):!n&&v&&(n=o(c(e.today??h(),-100))),r?r=i(r):m?r=f(m,11,31):!r&&v&&(r=u(e.today??h())),[n&&s(n),r&&s(r)]}function Qb(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:s=1}=n,{startOfMonth:a,addMonths:i,differenceInCalendarMonths:c}=r,u=o?s:1,f=a(e);if(!t)return i(f,u);if(!(c(t,e)<s))return i(f,u)}function Jb(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:s}=n,{startOfMonth:a,addMonths:i,differenceInCalendarMonths:c}=r,u=o?s??1:1,f=a(e);if(!t)return i(f,-u);if(!(c(f,t)<=0))return i(f,-u)}function ew(e){const t=[];return e.reduce((n,r)=>n.concat(r.weeks.slice()),t.slice())}function Dr(e,t){const[n,r]=b.useState(e);return[t===void 0?n:t,r]}function tw(e,t){const[n,r]=Kb(e,t),{startOfMonth:o,endOfMonth:s}=t,a=ea(e,n,r,t),[i,c]=Dr(a,e.month?a:void 0);b.useEffect(()=>{const C=ea(e,n,r,t);c(C)},[e.timeZone]);const{months:u,weeks:f,days:h,previousMonth:g,nextMonth:m}=b.useMemo(()=>{const C=Zb(i,r,{numberOfMonths:e.numberOfMonths},t),E=Gb(C,e.endMonth?s(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),k=Xb(C,E,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),S=ew(k),N=Ub(k),D=Jb(i,n,e,t),j=Qb(i,r,e,t);return{months:k,weeks:S,days:N,previousMonth:D,nextMonth:j}},[t,i.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:w,onMonthChange:p}=e,v=C=>f.some(E=>E.days.some(k=>k.isEqualTo(C))),y=C=>{if(w)return;let E=o(C);n&&E<o(n)&&(E=o(n)),r&&E>o(r)&&(E=o(r)),c(E),p?.(E)};return{months:u,weeks:f,days:h,navStart:n,navEnd:r,previousMonth:g,nextMonth:m,goToMonth:y,goToDay:C=>{v(C)||y(C.date)}}}var tt;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(tt||(tt={}));function ta(e){return!e[ve.disabled]&&!e[ve.hidden]&&!e[ve.outside]}function nw(e,t,n,r){let o,s=-1;for(const a of e){const i=t(a);ta(i)&&(i[ve.focused]&&s<tt.FocusedModifier?(o=a,s=tt.FocusedModifier):r?.isEqualTo(a)&&s<tt.LastFocused?(o=a,s=tt.LastFocused):n(a.date)&&s<tt.Selected?(o=a,s=tt.Selected):i[ve.today]&&s<tt.Today&&(o=a,s=tt.Today))}return o||(o=e.find(a=>ta(t(a)))),o}function rw(e,t,n,r,o,s,a){const{ISOWeek:i,broadcastCalendar:c}=s,{addDays:u,addMonths:f,addWeeks:h,addYears:g,endOfBroadcastWeek:m,endOfISOWeek:w,endOfWeek:p,max:v,min:y,startOfBroadcastWeek:x,startOfISOWeek:_,startOfWeek:C}=a;let k={day:u,week:h,month:f,year:g,startOfWeek:S=>c?x(S,a):i?_(S):C(S),endOfWeek:S=>c?m(S):i?w(S):p(S)}[e](n,t==="after"?1:-1);return t==="before"&&r?k=v([r,k]):t==="after"&&o&&(k=y([o,k])),k}function Kc(e,t,n,r,o,s,a,i=0){if(i>365)return;const c=rw(e,t,n.date,r,o,s,a),u=!!(s.disabled&>(c,s.disabled,a)),f=!!(s.hidden&>(c,s.hidden,a)),h=c,g=new Ic(c,h,a);return!u&&!f?g:Kc(e,t,g,r,o,s,a,i+1)}function ow(e,t,n,r,o){const{autoFocus:s}=e,[a,i]=b.useState(),c=nw(t.days,n,r||(()=>!1),a),[u,f]=b.useState(s?c:void 0);return{isFocusTarget:p=>!!c?.isEqualTo(p),setFocused:f,focused:u,blur:()=>{i(u),f(void 0)},moveFocus:(p,v)=>{if(!u)return;const y=Kc(p,v,u,t.navStart,t.navEnd,e,o);y&&(e.disableNavigation&&!t.days.some(_=>_.isEqualTo(y))||(t.goToDay(y),f(y)))}}}function sw(e,t){const{selected:n,required:r,onSelect:o}=e,[s,a]=Dr(n,o?n:void 0),i=o?n:s,{isSameDay:c}=t,u=m=>i?.some(w=>c(w,m))??!1,{min:f,max:h}=e;return{selected:i,select:(m,w,p)=>{let v=[...i??[]];if(u(m)){if(i?.length===f||r&&i?.length===1)return;v=i?.filter(y=>!c(y,m))}else i?.length===h?v=[m]:v=[...v,m];return o||a(v),o?.(v,m,w,p),v},isSelected:u}}function aw(e,t,n=0,r=0,o=!1,s=ct){const{from:a,to:i}=t||{},{isSameDay:c,isAfter:u,isBefore:f}=s;let h;if(!a&&!i)h={from:e,to:n>0?void 0:e};else if(a&&!i)c(a,e)?n===0?h={from:a,to:e}:o?h={from:a,to:void 0}:h=void 0:f(e,a)?h={from:e,to:a}:h={from:a,to:e};else if(a&&i)if(c(a,e)&&c(i,e))o?h={from:a,to:i}:h=void 0;else if(c(a,e))h={from:a,to:n>0?void 0:e};else if(c(i,e))h={from:e,to:n>0?void 0:e};else if(f(e,a))h={from:e,to:i};else if(u(e,a))h={from:a,to:e};else if(u(e,i))h={from:a,to:e};else throw new Error("Invalid range");if(h?.from&&h?.to){const g=s.differenceInCalendarDays(h.to,h.from);r>0&&g>r?h={from:e,to:void 0}:n>1&&g<n&&(h={from:e,to:void 0})}return h}function iw(e,t,n=ct){const r=Array.isArray(t)?t:[t];let o=e.from;const s=n.differenceInCalendarDays(e.to,e.from),a=Math.min(s,6);for(let i=0;i<=a;i++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function na(e,t,n=ct){return pt(e,t.from,!1,n)||pt(e,t.to,!1,n)||pt(t,e.from,!1,n)||pt(t,e.to,!1,n)}function cw(e,t,n=ct){const r=Array.isArray(t)?t:[t];if(r.filter(i=>typeof i!="function").some(i=>typeof i=="boolean"?i:n.isDate(i)?pt(e,i,!1,n):Fc(i,n)?i.some(c=>pt(e,c,!1,n)):Or(i)?i.from&&i.to?na(e,{from:i.from,to:i.to},n):!1:Wc(i)?iw(e,i.dayOfWeek,n):Qo(i)?n.isAfter(i.before,i.after)?na(e,{from:n.addDays(i.after,1),to:n.addDays(i.before,-1)},n):gt(e.from,i,n)||gt(e.to,i,n):Jo(i)||es(i)?gt(e.from,i,n)||gt(e.to,i,n):!1))return!0;const a=r.filter(i=>typeof i=="function");if(a.length){let i=e.from;const c=n.differenceInCalendarDays(e.to,e.from);for(let u=0;u<=c;u++){if(a.some(f=>f(i)))return!0;i=n.addDays(i,1)}}return!1}function lw(e,t){const{disabled:n,excludeDisabled:r,resetOnSelect:o,selected:s,required:a,onSelect:i}=e,[c,u]=Dr(s,i?s:void 0),f=i?s:c;return{selected:f,select:(m,w,p)=>{const{min:v,max:y}=e;let x;if(m){const _=f?.from,C=f?.to,E=!!_&&!!C,k=!!_&&!!C&&t.isSameDay(_,C)&&t.isSameDay(m,_);o&&(E||!f?.from)?!a&&k?x=void 0:x={from:m,to:void 0}:x=aw(m,f,v,y,a,t)}return r&&n&&x?.from&&x.to&&cw({from:x.from,to:x.to},n,t)&&(x.from=m,x.to=void 0),i||u(x),i?.(x,m,w,p),x},isSelected:m=>f&&pt(f,m,!1,t)}}function dw(e,t){const{selected:n,required:r,onSelect:o}=e,[s,a]=Dr(n,o?n:void 0),i=o?n:s,{isSameDay:c}=t;return{selected:i,select:(h,g,m)=>{let w=h;return!r&&i&&i&&c(h,i)&&(w=void 0),o||a(w),o?.(w,h,g,m),w},isSelected:h=>i?c(i,h):!1}}function uw(e,t){const n=dw(e,t),r=sw(e,t),o=lw(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function He(e,t){return e instanceof De&&e.timeZone===t?e:new De(e,t)}function Ut(e,t,n){return He(e,t)}function ra(e,t,n){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?Ut(e,t):Array.isArray(e)?e.map(r=>r instanceof Date?Ut(r,t):r):Or(e)?{...e,from:e.from?He(e.from,t):e.from,to:e.to?He(e.to,t):e.to}:Qo(e)?{before:Ut(e.before,t),after:Ut(e.after,t)}:Jo(e)?{after:Ut(e.after,t)}:es(e)?{before:Ut(e.before,t)}:e}function oo(e,t,n){return e&&(Array.isArray(e)?e.map(r=>ra(r,t)):ra(e,t))}function fw(e){let t=e;const n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=He(t.today,n)),t.month&&(t.month=He(t.month,n)),t.defaultMonth&&(t.defaultMonth=He(t.defaultMonth,n)),t.startMonth&&(t.startMonth=He(t.startMonth,n)),t.endMonth&&(t.endMonth=He(t.endMonth,n)),t.mode==="single"&&t.selected?t.selected=He(t.selected,n):t.mode==="multiple"&&t.selected?t.selected=t.selected?.map(X=>He(X,n)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?He(t.selected.from,n):t.selected.from,to:t.selected.to?He(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=oo(t.disabled,n)),t.hidden!==void 0&&(t.hidden=oo(t.hidden,n)),t.modifiers)){const X={};Object.keys(t.modifiers).forEach(se=>{X[se]=oo(t.modifiers?.[se],n)}),t.modifiers=X}const{components:r,formatters:o,labels:s,dateLib:a,locale:i,classNames:c}=b.useMemo(()=>{const X={...Ac,...t.locale},se=t.broadcastCalendar?1:t.weekStartsOn,G=t.noonSafe&&t.timeZone?zb(t.timeZone,{weekStartsOn:se,locale:X}):void 0,oe=t.dateLib&&G?{...G,...t.dateLib}:t.dateLib??G,Ie=new $e({locale:X,weekStartsOn:se,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},oe);return{dateLib:Ie,components:_b(t.components),formatters:Pb(t.formatters),labels:Lb(t.labels,Ie.options),locale:X,classNames:{...ts(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:a.today()});const{captionLayout:u,mode:f,navLayout:h,numberOfMonths:g=1,onDayBlur:m,onDayClick:w,onDayFocus:p,onDayKeyDown:v,onDayMouseEnter:y,onDayMouseLeave:x,onNextClick:_,onPrevClick:C,showWeekNumber:E,styles:k}=t,{formatCaption:S,formatDay:N,formatMonthDropdown:D,formatWeekNumber:j,formatWeekNumberHeader:L,formatWeekdayName:P,formatYearDropdown:T}=o,W=tw(t,a),{days:V,months:R,navStart:q,navEnd:Y,previousMonth:U,nextMonth:M,goToMonth:J}=W,ue=yb(V,t,q,Y,a),{isSelected:he,select:pe,selected:Z}=uw(t,a)??{},{blur:ee,focused:fe,isFocusTarget:Se,moveFocus:re,setFocused:F}=ow(t,W,ue,he??(()=>!1),a),{labelDayButton:be,labelGridcell:Ne,labelGrid:Te,labelMonthDropdown:Ye,labelNav:ae,labelPrevious:Me,labelNext:lt,labelWeekday:Ln,labelWeekNumber:Wn,labelWeekNumberHeader:zt,labelYearDropdown:Pr}=s,Rr=b.useMemo(()=>Bb(a,t.ISOWeek,t.broadcastCalendar,t.today),[a,t.ISOWeek,t.broadcastCalendar,t.today]),Fn=f!==void 0||w!==void 0,cn=b.useCallback(()=>{U&&(J(U),C?.(U))},[U,J,C]),$=b.useCallback(()=>{M&&(J(M),_?.(M))},[J,M,_]),ge=b.useCallback((X,se)=>G=>{G.preventDefault(),G.stopPropagation(),F(X),!se.disabled&&(pe?.(X.date,se,G),w?.(X.date,se,G))},[pe,w,F]),ce=b.useCallback((X,se)=>G=>{F(X),p?.(X.date,se,G)},[p,F]),_e=b.useCallback((X,se)=>G=>{ee(),m?.(X.date,se,G)},[ee,m]),je=b.useCallback((X,se)=>G=>{const oe={ArrowLeft:[G.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[G.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[G.shiftKey?"year":"week","after"],ArrowUp:[G.shiftKey?"year":"week","before"],PageUp:[G.shiftKey?"year":"month","before"],PageDown:[G.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(oe[G.key]){G.preventDefault(),G.stopPropagation();const[Ie,ne]=oe[G.key];re(Ie,ne)}v?.(X.date,se,G)},[re,v,t.dir]),Ve=b.useCallback((X,se)=>G=>{y?.(X.date,se,G)},[y]),Oe=b.useCallback((X,se)=>G=>{x?.(X.date,se,G)},[x]),Ce=b.useCallback(X=>se=>{const G=Number(se.target.value),oe=a.setMonth(a.startOfMonth(X),G);J(oe)},[a,J]),dt=b.useCallback(X=>se=>{const G=Number(se.target.value),oe=a.setYear(a.startOfMonth(X),G);J(oe)},[a,J]),{className:ut,style:qe}=b.useMemo(()=>({className:[c[z.Root],t.className].filter(Boolean).join(" "),style:{...k?.[z.Root],...t.style}}),[c,t.className,t.style,k]),Qe=Cb(t),Bn=b.useRef(null);qb(Bn,!!t.animate,{classNames:c,months:R,focused:fe,dateLib:a});const al={dayPickerProps:t,selected:Z,select:pe,isSelected:he,months:R,nextMonth:M,previousMonth:U,goToMonth:J,getModifiers:ue,components:r,classNames:c,styles:k,labels:s,formatters:o};return b.createElement(Lc.Provider,{value:al},b.createElement(r.Root,{rootRef:t.animate?Bn:void 0,className:ut,style:qe,dir:t.dir,id:t.id,lang:t.lang??i.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...Qe},b.createElement(r.Months,{className:c[z.Months],style:k?.[z.Months]},!t.hideNavigation&&!h&&b.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:c[z.Nav],style:k?.[z.Nav],"aria-label":ae(),onPreviousClick:cn,onNextClick:$,previousMonth:U,nextMonth:M}),R.map((X,se)=>b.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:c[z.Month],style:k?.[z.Month],key:se,displayIndex:se,calendarMonth:X},h==="around"&&!t.hideNavigation&&se===0&&b.createElement(r.PreviousMonthButton,{type:"button",className:c[z.PreviousMonthButton],tabIndex:U?void 0:-1,"aria-disabled":U?void 0:!0,"aria-label":Me(U),onClick:cn,"data-animated-button":t.animate?"true":void 0},b.createElement(r.Chevron,{disabled:U?void 0:!0,className:c[z.Chevron],orientation:t.dir==="rtl"?"right":"left"})),b.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:c[z.MonthCaption],style:k?.[z.MonthCaption],calendarMonth:X,displayIndex:se},u?.startsWith("dropdown")?b.createElement(r.DropdownNav,{className:c[z.Dropdowns],style:k?.[z.Dropdowns]},(()=>{const G=u==="dropdown"||u==="dropdown-months"?b.createElement(r.MonthsDropdown,{key:"month",className:c[z.MonthsDropdown],"aria-label":Ye(),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:Ce(X.date),options:Wb(X.date,q,Y,o,a),style:k?.[z.Dropdown],value:a.getMonth(X.date)}):b.createElement("span",{key:"month"},D(X.date,a)),oe=u==="dropdown"||u==="dropdown-years"?b.createElement(r.YearsDropdown,{key:"year",className:c[z.YearsDropdown],"aria-label":Pr(a.options),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:dt(X.date),options:$b(q,Y,o,a,!!t.reverseYears),style:k?.[z.Dropdown],value:a.getYear(X.date)}):b.createElement("span",{key:"year"},T(X.date,a));return a.getMonthYearOrder()==="year-first"?[oe,G]:[G,oe]})(),b.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},S(X.date,a.options,a))):b.createElement(r.CaptionLabel,{className:c[z.CaptionLabel],role:"status","aria-live":"polite"},S(X.date,a.options,a))),h==="around"&&!t.hideNavigation&&se===g-1&&b.createElement(r.NextMonthButton,{type:"button",className:c[z.NextMonthButton],tabIndex:M?void 0:-1,"aria-disabled":M?void 0:!0,"aria-label":lt(M),onClick:$,"data-animated-button":t.animate?"true":void 0},b.createElement(r.Chevron,{disabled:M?void 0:!0,className:c[z.Chevron],orientation:t.dir==="rtl"?"left":"right"})),se===g-1&&h==="after"&&!t.hideNavigation&&b.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:c[z.Nav],style:k?.[z.Nav],"aria-label":ae(),onPreviousClick:cn,onNextClick:$,previousMonth:U,nextMonth:M}),b.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":f==="multiple"||f==="range","aria-label":Te(X.date,a.options,a)||void 0,className:c[z.MonthGrid],style:k?.[z.MonthGrid]},!t.hideWeekdays&&b.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:c[z.Weekdays],style:k?.[z.Weekdays]},E&&b.createElement(r.WeekNumberHeader,{"aria-label":zt(a.options),className:c[z.WeekNumberHeader],style:k?.[z.WeekNumberHeader],scope:"col"},L()),Rr.map(G=>b.createElement(r.Weekday,{"aria-label":Ln(G,a.options,a),className:c[z.Weekday],key:String(G),style:k?.[z.Weekday],scope:"col"},P(G,a.options,a)))),b.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:c[z.Weeks],style:k?.[z.Weeks]},X.weeks.map(G=>b.createElement(r.Week,{className:c[z.Week],key:G.weekNumber,style:k?.[z.Week],week:G},E&&b.createElement(r.WeekNumber,{week:G,style:k?.[z.WeekNumber],"aria-label":Wn(G.weekNumber,{locale:i}),className:c[z.WeekNumber],scope:"row",role:"rowheader"},j(G.weekNumber,a)),G.days.map(oe=>{const{date:Ie}=oe,ne=ue(oe);if(ne[ve.focused]=!ne.hidden&&!!fe?.isEqualTo(oe),ne[Ue.selected]=he?.(Ie)||ne.selected,Or(Z)){const{from:Tr,to:Ar}=Z;ne[Ue.range_start]=!!(Tr&&Ar&&a.isSameDay(Ie,Tr)),ne[Ue.range_end]=!!(Tr&&Ar&&a.isSameDay(Ie,Ar)),ne[Ue.range_middle]=pt(Z,Ie,!0,a)}const il=Fb(ne,k,t.modifiersStyles),cl=xb(ne,c,t.modifiersClassNames),ll=!Fn&&!ne.hidden?Ne(Ie,ne,a.options,a):void 0;return b.createElement(r.Day,{key:`${oe.isoDate}_${oe.displayMonthId}`,day:oe,modifiers:ne,className:cl.join(" "),style:il,role:"gridcell","aria-selected":ne.selected||void 0,"aria-label":ll,"data-day":oe.isoDate,"data-month":oe.outside?oe.dateMonthId:void 0,"data-selected":ne.selected||void 0,"data-disabled":ne.disabled||void 0,"data-hidden":ne.hidden||void 0,"data-outside":oe.outside||void 0,"data-focused":ne.focused||void 0,"data-today":ne.today||void 0},!ne.hidden&&Fn?b.createElement(r.DayButton,{className:c[z.DayButton],style:k?.[z.DayButton],type:"button",day:oe,modifiers:ne,disabled:!ne.focused&&ne.disabled||void 0,"aria-disabled":ne.focused&&ne.disabled||void 0,tabIndex:Se(oe)?0:-1,"aria-label":be(Ie,ne,a.options,a),onClick:ge(oe,ne),onBlur:_e(oe,ne),onFocus:ce(oe,ne),onKeyDown:je(oe,ne),onMouseEnter:Ve(oe,ne),onMouseLeave:Oe(oe,ne)},N(Ie,a.options,a)):!ne.hidden&&N(oe.date,a.options,a))})))))))),t.footer&&b.createElement(r.Footer,{className:c[z.Footer],style:k?.[z.Footer],role:"status","aria-live":"polite"},t.footer)))}function hw({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r="label",buttonVariant:o="ghost",formatters:s,components:a,...i}){const c=ts();return l.jsx(fw,{showOutsideDays:n,className:K("bg-background group/calendar p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:r,formatters:{formatMonthDropdown:u=>u.toLocaleString("default",{month:"short"}),...s},classNames:{root:K("w-fit",c.root),months:K("relative flex flex-col gap-4 md:flex-row",c.months),month:K("flex w-full flex-col gap-4",c.month),nav:K("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",c.nav),button_previous:K(ao({variant:o}),"h-(--cell-size) w-(--cell-size) select-none p-0 aria-disabled:opacity-50",c.button_previous),button_next:K(ao({variant:o}),"h-(--cell-size) w-(--cell-size) select-none p-0 aria-disabled:opacity-50",c.button_next),month_caption:K("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)",c.month_caption),dropdowns:K("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",c.dropdowns),dropdown_root:K("has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",c.dropdown_root),dropdown:K("bg-popover absolute inset-0 opacity-0",c.dropdown),caption_label:K("select-none font-medium",r==="label"?"text-sm":"[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",c.caption_label),table:"w-full border-collapse",weekdays:K("flex",c.weekdays),weekday:K("text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal",c.weekday),week:K("mt-2 flex w-full",c.week),week_number_header:K("w-(--cell-size) select-none",c.week_number_header),week_number:K("text-muted-foreground select-none text-[0.8rem]",c.week_number),day:K("group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",c.day),range_start:K("bg-accent rounded-l-md",c.range_start),range_middle:K("rounded-none",c.range_middle),range_end:K("bg-accent rounded-r-md",c.range_end),today:K("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",c.today),outside:K("text-muted-foreground aria-selected:text-muted-foreground",c.outside),disabled:K("text-muted-foreground opacity-50",c.disabled),hidden:K("invisible",c.hidden),...t},components:{Root:({className:u,rootRef:f,...h})=>l.jsx("div",{"data-slot":"calendar",ref:f,className:K(u),...h}),Chevron:({className:u,orientation:f,...h})=>f==="left"?l.jsx(mp,{className:K("size-4",u),...h}):f==="right"?l.jsx(gp,{className:K("size-4",u),...h}):l.jsx(fp,{className:K("size-4",u),...h}),DayButton:mw,WeekNumber:({children:u,...f})=>l.jsx("td",{...f,children:l.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:u})}),...a},...i})}function mw({className:e,day:t,modifiers:n,...r}){const o=ts(),s=d.useRef(null);return d.useEffect(()=>{n.focused&&s.current?.focus()},[n.focused]),l.jsx(mr,{ref:s,variant:"ghost",size:"icon","data-day":t.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:K("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-(--cell-size) flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",o.day,e),...r})}const Qt=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),pw=()=>Qt(new Date),fr=e=>String(e).padStart(2,"0"),Qc=e=>`${e.getFullYear()}-${fr(e.getMonth()+1)}-${fr(e.getDate())}`,gw=e=>`${fr(e.getDate())}.${fr(e.getMonth()+1)}.${e.getFullYear()}`,Jc=e=>{if(e==null||e==="")return;const t=String(e).trim(),n=/^(\d{4})-(\d{2})-(\d{2})/.exec(t);if(n){const o=Number(n[1]),s=Number(n[2])-1,a=Number(n[3]),i=new Date(o,s,a);return Number.isNaN(i.getTime())?void 0:i}const r=new Date(t);if(!Number.isNaN(r.getTime()))return Qt(r)},vw="_wrapper_1sqfs_1",bw="_trigger_1sqfs_8",ww="_error_1sqfs_37",yw="_triggerValue_1sqfs_44",xw="_triggerIcon_1sqfs_51",hn={wrapper:vw,trigger:bw,error:ww,triggerValue:yw,triggerIcon:xw},_w=({label:e,required:t,value:n,onChange:r,minDate:o,error:s,disabled:a,tooltipContent:i,tooltipPopperClassName:c,className:u})=>{const[f,h]=b.useState(!1),g=b.useMemo(()=>Jc(n??void 0),[n]),m=b.useMemo(()=>g?gw(g):"",[g]),w=o?Qt(o):void 0;return l.jsxs("div",{className:O(hn.wrapper,u),children:[l.jsx(jn,{required:t,tooltipContent:i,tooltipPopperClassName:c,children:e}),l.jsxs(po,{open:f,onOpenChange:h,children:[l.jsx(go,{asChild:!0,children:l.jsxs("button",{type:"button",disabled:a,className:O(hn.trigger,{[hn.error]:!!s},!m&&"text-muted-foreground"),children:[l.jsx("span",{className:hn.triggerValue,children:m||"Выберите дату"}),l.jsx(dp,{className:hn.triggerIcon,"aria-hidden":!0})]})}),l.jsx(Yo,{className:K("w-auto border border-slate-200 bg-white p-0 text-slate-900 shadow-lg"),align:"start",children:l.jsx(hw,{mode:"single",selected:g,onSelect:p=>{r(p?Qc(Qt(p)):null),h(!1)},disabled:w?p=>Qt(p).getTime()<w.getTime():void 0,initialFocus:!0})})]}),s?l.jsx($t,{variant:"error",children:s}):null]})},Cw="_wrapper_166fe_1",kw="_field_166fe_8",Ew="_disabled_166fe_16",Sw="_nativeInput_166fe_20",Nw="_box_166fe_32",Mw="_error_166fe_65",jw="_checkIcon_166fe_79",Ow="_labelText_166fe_92",Et={wrapper:Cw,field:kw,disabled:Ew,nativeInput:Sw,box:Nw,error:Mw,checkIcon:jw,labelText:Ow},Dw=()=>l.jsx("svg",{className:Et.checkIcon,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:l.jsx("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})}),el=b.forwardRef(({label:e,error:t,disabled:n,className:r,checkboxClassName:o,id:s,...a},i)=>{const c=b.useId(),u=s??c,f=l.jsxs("label",{htmlFor:u,className:O(Et.field,{[Et.disabled]:n}),children:[l.jsx("input",{ref:i,id:u,type:"checkbox",disabled:n,"aria-invalid":t?!0:void 0,className:Et.nativeInput,...a}),l.jsx("span",{className:O(Et.box,{[Et.error]:!!t},o),children:l.jsx(Dw,{})}),e&&l.jsx("span",{className:Et.labelText,children:e})]});return l.jsxs("div",{className:O(Et.wrapper,r),children:[f,t&&l.jsx($t,{children:t})]})});el.displayName="Checkbox";const Pw="_root_osjxx_1",Rw="_header_osjxx_11",Tw="_headerText_osjxx_21",Aw="_eyebrow_osjxx_27",Iw="_title_osjxx_35",Lw="_timeline_osjxx_42",Ww="_level_osjxx_47",Fw="_rail_osjxx_58",Bw="_railLine_osjxx_65",$w="_railLine_completed_osjxx_74",zw="_railLine_toCurrent_osjxx_78",Hw="_marker_osjxx_82",Yw="_marker_completed_osjxx_101",Vw="_marker_current_osjxx_107",qw="_body_osjxx_120",Gw="_levelHeader_osjxx_125",Uw="_levelName_osjxx_132",Zw="_levelName_current_osjxx_141",Xw="_levelName_completed_osjxx_147",Kw="_iconButton_osjxx_152",Qw="_iconButton_danger_osjxx_176",Jw="_stages_osjxx_182",ey="_stage_osjxx_182",ty="_stage_current_osjxx_199",ny="_stageHeader_osjxx_204",ry="_stageName_osjxx_212",oy="_stageActions_osjxx_220",sy="_approvers_osjxx_227",ay="_approver_osjxx_227",iy="_approverMain_osjxx_242",cy="_approverName_osjxx_249",ly="_approverName_pending_osjxx_255",dy="_approverName_rejected_osjxx_259",uy="_approverName_approved_osjxx_264",fy="_approverDate_osjxx_268",hy="_rejectReason_osjxx_273",my="_empty_osjxx_283",py="_addStage_osjxx_300",gy="_addLevel_osjxx_323",vy="_dialogContent_osjxx_327",by="_dialogInput_osjxx_333",wy="_dialogActions_osjxx_348",yy="_approverPickerWrap_osjxx_354",xy="_approverPickerInput_osjxx_361",H={root:Pw,header:Rw,headerText:Tw,eyebrow:Aw,title:Iw,timeline:Lw,level:Ww,rail:Fw,railLine:Bw,railLine_completed:$w,railLine_toCurrent:zw,marker:Hw,marker_completed:Yw,marker_current:Vw,body:qw,levelHeader:Gw,levelName:Uw,levelName_current:Zw,levelName_completed:Xw,iconButton:Kw,iconButton_danger:Qw,stages:Jw,stage:ey,stage_current:ty,stageHeader:ny,stageName:ry,stageActions:oy,approvers:sy,approver:ay,approverMain:iy,approverName:cy,approverName_pending:ly,approverName_rejected:dy,approverName_approved:uy,approverDate:fy,rejectReason:hy,empty:my,addStage:py,addLevel:gy,dialogContent:vy,dialogInput:by,dialogActions:wy,approverPickerWrap:yy,approverPickerInput:xy},er=({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 oa({open:e,title:t,placeholder:n,onSubmit:r,onClose:o}){const[s,a]=b.useState("");b.useEffect(()=>{e||a("")},[e]);const i=()=>{const c=s.trim();c&&(r(c),o())};return l.jsx(Mr,{open:e,onOpenChange:c=>!c&&o(),children:l.jsxs(On,{className:"sm:rounded-2xl",children:[l.jsx(Dn,{children:l.jsx(Pn,{children:t})}),l.jsxs("div",{className:H.dialogContent,children:[l.jsx("input",{autoFocus:!0,className:H.dialogInput,placeholder:n,value:s,onChange:c=>a(c.target.value),onKeyDown:c=>{c.key==="Enter"&&i(),c.key==="Escape"&&o()}}),l.jsxs("div",{className:H.dialogActions,children:[l.jsx(ye,{variant:"secondary",onClick:o,children:"Отмена"}),l.jsx(ye,{variant:"primary",onClick:i,disabled:!s.trim(),children:"Добавить"})]})]})]})})}const _y=({levels:e,editable:t=!1,title:n="Маршрут согласования",eyebrow:r="Workflow",className:o,loadApprovers:s,onAddLevel:a,onRemoveLevel:i,onAddStage:c,onRemoveStage:u,onAddApprover:f,onRemoveApprover:h})=>{const[g,m]=b.useState(!1),[w,p]=b.useState(null);return l.jsxs("div",{className:O(H.root,o),children:[l.jsx("div",{className:H.header,children:l.jsxs("div",{className:H.headerText,children:[l.jsx("span",{className:H.eyebrow,children:r}),l.jsx("span",{className:H.title,children:n})]})}),l.jsxs("div",{className:H.timeline,children:[e.map((v,y)=>{const x=e[y+1],_=O(H.railLine,{[H.railLine_completed]:v.status==="completed"&&x?.status==="completed",[H.railLine_toCurrent]:v.status==="completed"&&x?.status==="current"});return l.jsxs("div",{className:H.level,children:[l.jsxs("div",{className:H.rail,children:[y<e.length-1&&l.jsx("span",{className:_}),l.jsx("span",{className:O(H.marker,{[H.marker_completed]:v.status==="completed",[H.marker_current]:v.status==="current"}),children:v.status==="completed"&&l.jsx(Co,{})})]}),l.jsxs("div",{className:H.body,children:[l.jsxs("div",{className:H.levelHeader,children:[l.jsx("span",{className:O(H.levelName,{[H.levelName_current]:v.status==="current",[H.levelName_completed]:v.status==="completed"}),children:v.name}),t&&l.jsxs(l.Fragment,{children:[l.jsx("button",{type:"button",className:H.iconButton,onClick:()=>p(v.id),"aria-label":"Добавить этап",title:"Добавить этап",children:l.jsx(er,{})}),l.jsx("button",{type:"button",className:O(H.iconButton,H.iconButton_danger),onClick:()=>i?.(v.id),"aria-label":"Удалить уровень",title:"Удалить уровень",children:l.jsx(st,{})})]})]}),v.stages.length>0&&l.jsx("div",{className:H.stages,children:v.stages.map(C=>l.jsxs("div",{className:O(H.stage,{[H.stage_current]:v.status==="current"}),children:[l.jsxs("div",{className:H.stageHeader,children:[l.jsx("span",{className:H.stageName,children:C.name}),l.jsx("div",{className:H.stageActions,children:t&&l.jsxs(l.Fragment,{children:[s?l.jsx(Uo,{value:null,placeholder:"",title:"Добавить согласующего",searchPlaceholder:"Поиск сотрудника",loadOptions:s,onChange:E=>f?.(v.id,C.id,E),className:H.approverPickerWrap,inputClassName:H.approverPickerInput,selectedOptionRender:()=>l.jsx(er,{})}):null,l.jsx("button",{type:"button",className:O(H.iconButton,H.iconButton_danger),onClick:()=>u?.(v.id,C.id),"aria-label":"Удалить этап",title:"Удалить этап",children:l.jsx(st,{})})]})})]}),C.approvers.length===0?l.jsxs("span",{className:H.empty,children:[l.jsx(da,{}),"Согласующий не назначен"]}):l.jsx("div",{className:H.approvers,children:C.approvers.map(E=>{const k=E.status??"pending";return l.jsxs("div",{className:H.approver,children:[l.jsxs("div",{className:H.approverMain,children:[l.jsx("span",{className:O(H.approverName,{[H.approverName_pending]:k==="pending",[H.approverName_approved]:k==="approved",[H.approverName_rejected]:k==="rejected"}),children:E.fullName}),E.actedAt&&k!=="pending"&&l.jsx("span",{className:H.approverDate,children:E.actedAt}),k==="rejected"&&E.rejectReason&&l.jsxs("span",{className:H.rejectReason,children:["Причина: ",E.rejectReason]})]}),t&&l.jsx("button",{type:"button",className:O(H.iconButton,H.iconButton_danger),onClick:()=>h?.(v.id,C.id,E.id),"aria-label":"Удалить согласующего",title:"Удалить согласующего",children:l.jsx(st,{})})]},E.id)})})]},C.id))}),t&&l.jsxs("button",{type:"button",className:H.addStage,onClick:()=>p(v.id),children:[l.jsx(er,{})," Добавить этап"]})]})]},v.id)}),t&&l.jsxs("div",{className:H.level,children:[l.jsx("div",{className:H.rail,children:l.jsx("span",{className:O(H.marker),"aria-hidden":!0})}),l.jsx("div",{className:H.body,children:l.jsxs("button",{type:"button",className:O(H.addStage,H.addLevel),onClick:()=>m(!0),children:[l.jsx(er,{})," Добавить уровень"]})})]})]}),l.jsx(oa,{open:g,title:"Новый уровень",placeholder:"Название уровня",onClose:()=>m(!1),onSubmit:v=>a?.(v)}),l.jsx(oa,{open:w!==null,title:"Новый этап",placeholder:"Название этапа",onClose:()=>p(null),onSubmit:v=>w&&c?.(w,v)})]})},Cy="_root_1426e_1",ky="_card_1426e_8",Ey="_size_lg_1426e_15",Sy="_section_1426e_19",Ny="_sectionHeader_1426e_29",My="_sectionTitle_1426e_36",jy="_sectionDescription_1426e_46",Oy="_fields_1426e_54",Dy="_fields_2col_1426e_62",Py="_field_1426e_54",Ry="_field_span2_1426e_84",Ty="_field_interactive_1426e_88",Ay="_label_1426e_92",Iy="_value_1426e_100",Ly="_valueRow_1426e_113",Wy="_copyTrigger_1426e_120",Fy="_copyableValue_1426e_126",By="_hint_1426e_131",$y="_empty_1426e_139",zy="_divider_1426e_143",Hy="_loading_1426e_150",we={root:Cy,card:ky,size_lg:Ey,section:Sy,sectionHeader:Ny,sectionTitle:My,sectionDescription:jy,fields:Oy,fields_2col:Dy,field:Py,field_span2:Ry,field_interactive:Ty,label:Ay,value:Iy,valueRow:Ly,copyTrigger:Wy,copyableValue:Fy,hint:By,empty:$y,divider:zy,loading:Hy},Yy=e=>e==null||e===""||typeof e=="number"&&Number.isNaN(e),Vy=e=>e==null?"":typeof e=="string"||typeof e=="number"?String(e):"",tl=({label:e,value:t,children:n,hint:r,copyable:o,copyText:s,render:a,hidden:i,span:c,emptyPlaceholder:u="—",className:f})=>{const[h,g]=b.useState(!1),m=b.useCallback(()=>{const v=s??Vy(n??t);!v||typeof navigator>"u"||!navigator.clipboard||navigator.clipboard.writeText(v).then(()=>{g(!0),window.setTimeout(()=>g(!1),1400)})},[s,t,n]);if(i)return null;const w=n??t,p=Yy(w)?l.jsx("span",{className:we.empty,children:u}):w;return a?l.jsx(l.Fragment,{children:a({label:e,value:p})}):l.jsxs("div",{className:O(we.field,c===2&&we.field_span2,o&&we.field_interactive,f),children:[l.jsx("div",{className:we.label,children:e}),l.jsxs("div",{className:we.value,children:[l.jsx("div",{className:we.valueRow,children:o?l.jsxs(l.Fragment,{children:[l.jsx("span",{className:we.copyableValue,children:p}),l.jsx("span",{className:we.copyTrigger,children:l.jsx(No,{iconOnly:!0,copied:h,onClick:m,ariaLabel:"Скопировать значение"})})]}):p}),r&&l.jsx("div",{className:we.hint,children:r})]})]})},nl=({id:e,title:t,description:n,fields:r,children:o,columns:s=1,className:a})=>{const i=(r??[]).filter(c=>!c.hidden);return l.jsxs("section",{id:e,className:O(we.section,a),children:[(t||n)&&l.jsxs("div",{className:we.sectionHeader,children:[t&&l.jsx("div",{className:we.sectionTitle,children:t}),n&&l.jsx("div",{className:we.sectionDescription,children:n})]}),(i.length>0||o)&&l.jsxs("div",{className:O(we.fields,s===2&&we.fields_2col),children:[i.map((c,u)=>l.jsx(tl,{...c},(typeof c.label=="string"?c.label:null)??`field-${u}`)),o]})]})},qy=({className:e})=>l.jsx("hr",{className:O(we.divider,e)}),Gy=({sections:e,children:t,variant:n="card",labelWidth:r="14rem",size:o="md",loading:s,emptyState:a,className:i,id:c})=>{const u=typeof r=="number"?`${r}px`:r,f=O(we.root,n==="card"&&we.card,o==="lg"&&we.size_lg,i),h={"--cozy-detail-label-width":u};if(s)return l.jsx("div",{className:f,style:h,id:c,children:l.jsx("div",{className:we.loading,children:l.jsx(Ze,{})})});const g=e&&e.length>0,m=b.Children.count(t)>0;return!g&&!m?l.jsx("div",{className:f,style:h,id:c,children:a??l.jsx(Bt,{})}):l.jsxs("div",{className:f,style:h,id:c,children:[g&&e.map((w,p)=>l.jsx(nl,{...w},w.id??`section-${p}`)),m&&b.Children.map(t,w=>(b.isValidElement(w),w))]})},In=b.memo(Gy);In.Section=nl;In.Field=tl;In.Divider=qy;In.displayName="DetailView";const Uy="_root_1z0dx_1",Zy="_header_1z0dx_14",Xy="_headerText_1z0dx_23",Ky="_eyebrow_1z0dx_29",Qy="_title_1z0dx_37",Jy="_counter_1z0dx_44",ex="_list_1z0dx_53",tx="_loadOlderBtn_1z0dx_59",nx="_expandBtn_1z0dx_84",rx="_item_1z0dx_102",ox="_avatar_1z0dx_109",sx="_body_1z0dx_125",ax="_bubble_1z0dx_132",ix="_actions_1z0dx_144",cx="_bubble_deleted_1z0dx_148",lx="_meta_1z0dx_154",dx="_author_1z0dx_162",ux="_date_1z0dx_168",fx="_editedTag_1z0dx_173",hx="_text_1z0dx_179",mx="_recipients_1z0dx_187",px="_attachments_1z0dx_203",gx="_attachment_1z0dx_203",vx="_attachmentName_1z0dx_227",bx="_attachmentSize_1z0dx_234",wx="_attachmentRemove_1z0dx_239",yx="_iconButton_1z0dx_278",xx="_iconButton_danger_1z0dx_302",_x="_children_1z0dx_309",Cx="_form_1z0dx_320",kx="_form_root_1z0dx_330",Ex="_form_inline_1z0dx_335",Sx="_textarea_1z0dx_339",Nx="_formRow_1z0dx_359",Mx="_formTools_1z0dx_367",jx="_formActions_1z0dx_374",Ox="_toolBtn_1z0dx_380",Dx="_recipientsPickerWrap_1z0dx_403",Px="_recipientsPickerInput_1z0dx_410",Rx="_recipientsChips_1z0dx_459",Tx="_chip_1z0dx_465",Ax="_empty_1z0dx_496",Ix="_skeleton_1z0dx_500",Lx="_skeletonLine_1z0dx_507",Wx="_dialogContent_1z0dx_523",Fx="_dialogActions_1z0dx_531",Bx="_branchSpinner_1z0dx_537",$x="_hiddenInput_1z0dx_543",B={root:Uy,header:Zy,headerText:Xy,eyebrow:Ky,title:Qy,counter:Jy,list:ex,loadOlderBtn:tx,expandBtn:nx,item:rx,avatar:ox,body:sx,bubble:ax,actions:ix,bubble_deleted:cx,meta:lx,author:dx,date:ux,editedTag:fx,text:hx,recipients:mx,attachments:px,attachment:gx,attachmentName:vx,attachmentSize:bx,attachmentRemove:wx,iconButton:yx,iconButton_danger:xx,children:_x,form:Cx,form_root:kx,form_inline:Ex,textarea:Sx,formRow:Nx,formTools:Mx,formActions:jx,toolBtn:Ox,recipientsPickerWrap:Dx,recipientsPickerInput:Px,recipientsChips:Rx,chip:Tx,empty:Ax,skeleton:Ix,skeletonLine:Lx,dialogContent:Wx,dialogActions:Fx,branchSpinner:Bx,hiddenInput:$x},zx=10,Hx=10*6e4,gn="__root__",vn=e=>e??gn;function Yx(e){return e.trim().split(/\s+/).slice(0,2).map(n=>n[0]?.toUpperCase()??"").join("")}function rl(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function sa(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 tr(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 Vx(e,t){const[n,r]=b.useState({}),o=b.useRef({}),s=b.useCallback((m,w)=>{const p=vn(m);r(v=>{const y=v[p]??{items:[],total:0,loadedFrom:0,loading:!1,loaded:!1};return{...v,[p]:w(y)}})},[]),a=b.useCallback(async m=>{const w=vn(m),p=(o.current[w]??0)+1;o.current[w]=p,s(m,_=>({..._,loading:!0}));const v=await t({parentId:m,skip:0,take:e});if(o.current[w]!==p)return;if(v.total<=e){s(m,()=>({items:tr(v.items),total:v.total,loadedFrom:0,loading:!1,loaded:!0}));return}const y=v.total-e,x=await t({parentId:m,skip:y,take:e});o.current[w]===p&&s(m,()=>({items:tr(x.items),total:x.total,loadedFrom:y,loading:!1,loaded:!0}))},[t,e,s]),i=b.useCallback(async m=>{const w=vn(m),p=n[w];if(!p||p.loading||p.loadedFrom<=0)return;const v=Math.min(e,p.loadedFrom),y=p.loadedFrom-v,x=(o.current[w]??0)+1;o.current[w]=x,s(m,C=>({...C,loading:!0}));const _=await t({parentId:m,skip:y,take:v});o.current[w]===x&&s(m,C=>({...C,items:tr([..._.items,...C.items]),total:_.total,loadedFrom:y,loading:!1}))},[n,t,e,s]),c=b.useCallback((m,w)=>{s(m,p=>{const v=tr([...p.items,w]);return{...p,items:v,total:p.total+1,loaded:!0}})},[s]),u=b.useCallback((m,w,p)=>{s(m,v=>({...v,items:v.items.map(y=>y.id===w?p(y):y)}))},[s]),f=b.useCallback((m,w)=>{s(m,p=>({...p,items:p.items.filter(v=>v.id!==w),total:Math.max(0,p.total-1)}))},[s]),h=b.useCallback(m=>{const w=vn(m);o.current[w]=(o.current[w]??0)+1,r(p=>{const v={...p};return delete v[w],v})},[]),g=b.useCallback(()=>{o.current={},r({})},[]);return{branches:n,loadInitial:a,loadOlder:i,appendLocal:c,replaceLocal:u,removeLocal:f,resetBranch:h,resetAll:g}}function ol({open:e,title:t,message:n,confirmText:r="Удалить",cancelText:o="Отмена",danger:s=!0,onConfirm:a,onClose:i}){return l.jsx(Mr,{open:e,onOpenChange:c=>!c&&i(),children:l.jsxs(On,{className:"sm:rounded-2xl",children:[l.jsx(Dn,{children:l.jsx(Pn,{children:t})}),l.jsx("div",{className:B.dialogContent,children:n}),l.jsxs(jr,{className:B.dialogActions,children:[l.jsx(ye,{variant:"secondary",onClick:i,children:o}),l.jsx(ye,{variant:s?"danger":"primary",onClick:a,children:r})]})]})})}function _o({mode:e,initialText:t="",initialAttachments:n=[],initialRecipients:r=[],placeholder:o,submitLabel:s,recipientsSource:a,onUploadAttachment:i,onDeleteAttachment:c,onSubmit:u,onCancel:f,submitting:h}){const[g,m]=b.useState(t),[w,p]=b.useState(n),[v,y]=b.useState(r),[x,_]=b.useState(!1),[C,E]=b.useState(null),k=b.useRef(null),S=async j=>{if(!(!j||!i)){_(!0);try{for(const L of Array.from(j)){const P=await i(L);p(T=>[...T,P])}}finally{_(!1),k.current&&(k.current.value="")}}},N=async()=>{if(!C)return;const j=C;if(E(null),c)try{await c(j)}catch{}p(L=>L.filter(P=>P.id!==j.id))},D=async()=>{const j=g.trim();j&&(await u({text:j,attachments:w,recipients:v}),e!=="edit"&&(m(""),p([]),y([])))};return l.jsxs("div",{className:O(B.form,{[B.form_root]:e==="root",[B.form_inline]:e!=="root"}),children:[l.jsx("textarea",{className:B.textarea,placeholder:o??"Напишите комментарий...",value:g,onChange:j=>m(j.target.value)}),v.length>0&&l.jsx("div",{className:B.recipientsChips,children:v.map(j=>l.jsxs("span",{className:B.chip,children:[j.name,l.jsx("button",{type:"button","aria-label":"Удалить получателя",onClick:()=>y(L=>L.filter(P=>P.id!==j.id)),children:l.jsx(st,{})})]},j.id))}),w.length>0&&l.jsx("div",{className:B.attachments,children:w.map(j=>l.jsxs("span",{className:B.attachment,children:[l.jsx("span",{className:B.attachmentName,children:j.name}),l.jsx("span",{className:B.attachmentSize,children:rl(j.size)}),l.jsx("button",{type:"button",className:B.attachmentRemove,"aria-label":"Удалить вложение",onClick:()=>E(j),children:l.jsx(st,{})})]},j.id))}),l.jsxs("div",{className:B.formRow,children:[l.jsxs("div",{className:B.formTools,children:[i&&l.jsxs(l.Fragment,{children:[l.jsxs("button",{type:"button",className:B.toolBtn,onClick:()=>k.current?.click(),disabled:x,children:[l.jsx(ga,{style:{transform:"rotate(180deg)"}}),x?"Загрузка...":"Прикрепить файл"]}),l.jsx("input",{ref:k,type:"file",multiple:!0,className:B.hiddenInput,onChange:j=>S(j.target.files)})]}),a&&l.jsx(Uo,{value:null,placeholder:v.length>0?`Ознакомители (${v.length})`:"Ознакомители",title:"Добавить ознакомителя",searchPlaceholder:"Поиск сотрудника",selectButtonText:"",loadOptions:a,onChange:j=>{const L=j.meta,P=L||{id:String(j.value),name:String(j.label)};y(T=>T.some(W=>W.id===P.id)?T:[...T,P])},className:B.recipientsPickerWrap,inputClassName:B.recipientsPickerInput})]}),l.jsxs("div",{className:B.formActions,children:[f&&l.jsx(ye,{variant:"secondary",size:"small",onClick:f,children:"Отмена"}),l.jsx(ye,{variant:"primary",size:"small",onClick:D,loading:h,disabled:!g.trim()||h,children:s??(e==="edit"?"Сохранить":"Отправить")})]})]}),l.jsx(ol,{open:!!C,title:"Удалить вложение?",message:`«${C?.name??""}» будет удалено без возможности восстановления.`,onConfirm:N,onClose:()=>E(null)})]})}function sl({comment:e,ctx:t}){const[n,r]=b.useState(!1),[o,s]=b.useState(!1),[a,i]=b.useState(!1),[c,u]=b.useState(!1),[f,h]=b.useState(!1),g=vn(e.id),m=t.branches[g],w=e.author.id===t.currentUser.id,p=new Date(e.createdAt).getTime(),v=Number.isNaN(p)?!1:Date.now()-p<t.editWindowMs;t.nowTick;const y=!e.deleted&&(e.permissions?.canEdit??(w&&v)),x=!e.deleted&&(e.permissions?.canDelete??w),_=!e.deleted&&(e.permissions?.canReply??t.permissions.canReply??!0),C=async()=>{const S=!n;r(S),S&&!m?.loaded&&await t.loadInitial(e.id)},E=async S=>{h(!0);try{m?.loaded,await t.createReply(e.id,{parentId:e.id,text:S.text,attachments:S.attachments,recipients:S.recipients}),r(!0),s(!1)}finally{h(!1)}},k=async S=>{h(!0);try{await t.editComment(e,{id:e.id,text:S.text,attachments:S.attachments,recipients:S.recipients}),i(!1)}finally{h(!1)}};return l.jsxs("div",{className:B.item,children:[l.jsx("div",{className:B.avatar,"aria-hidden":!0,children:e.author.avatarUrl?l.jsx("img",{src:e.author.avatarUrl,alt:"",style:{width:"100%",height:"100%",borderRadius:"50%",objectFit:"cover"}}):Yx(e.author.name)}),l.jsxs("div",{className:B.body,children:[a?l.jsx(_o,{mode:"edit",initialText:e.text,initialAttachments:e.attachments??[],initialRecipients:e.recipients??[],recipientsSource:t.recipientsSource,onUploadAttachment:t.onUploadAttachment,onDeleteAttachment:t.onDeleteAttachment,onSubmit:k,onCancel:()=>i(!1),submitting:f}):l.jsxs("div",{className:O(B.bubble,{[B.bubble_deleted]:e.deleted}),children:[l.jsxs("div",{className:B.meta,children:[l.jsx("span",{className:B.author,children:e.author.name}),l.jsx("span",{className:B.date,children:sa(e.createdAt)}),e.editedAt&&!e.deleted&&l.jsxs("span",{className:B.editedTag,children:["(изм. ",sa(e.editedAt),")"]})]}),l.jsx("div",{className:B.text,children:e.deleted?"Комментарий удалён":e.text}),!e.deleted&&e.attachments&&e.attachments.length>0&&l.jsx("div",{className:B.attachments,children:e.attachments.map(S=>l.jsxs("span",{className:B.attachment,children:[l.jsx("span",{className:B.attachmentName,onClick:()=>t.onDownloadAttachment?.(S),title:S.name,children:S.name}),l.jsx("span",{className:B.attachmentSize,children:rl(S.size)})]},S.id))}),!e.deleted&&e.recipients&&e.recipients.length>0&&l.jsxs("div",{className:B.recipients,title:e.recipients.map(S=>S.name).join(", "),children:[l.jsx(ua,{}),"Уведомлены: ",e.recipients.map(S=>S.name).join(", ")]}),!e.deleted&&l.jsxs("div",{className:B.actions,children:[_&&l.jsx("button",{type:"button",className:B.iconButton,onClick:()=>s(S=>!S),title:"Ответить","aria-label":"Ответить",children:l.jsx(ca,{})}),y&&l.jsx("button",{type:"button",className:B.iconButton,onClick:()=>i(!0),title:"Редактировать","aria-label":"Редактировать",children:l.jsx(ma,{})}),x&&l.jsx("button",{type:"button",className:O(B.iconButton,B.iconButton_danger),onClick:()=>u(!0),title:"Удалить","aria-label":"Удалить",children:l.jsx(la,{})})]})]}),e.repliesCount>0&&l.jsxs("button",{type:"button",className:B.expandBtn,onClick:C,children:[l.jsx(It,{style:{width:12,height:12,transform:n?"rotate(180deg)":"rotate(0)",transition:"transform 0.15s ease"}}),n?"Скрыть ответы":`Показать ответы (${e.repliesCount})`,m?.loading&&l.jsx("span",{className:B.branchSpinner,children:l.jsx(Ze,{size:"extraSmall"})})]}),o&&l.jsx(_o,{mode:"reply",placeholder:`Ответить ${e.author.name}…`,recipientsSource:t.recipientsSource,onUploadAttachment:t.onUploadAttachment,onDeleteAttachment:t.onDeleteAttachment,onSubmit:E,onCancel:()=>s(!1),submitting:f}),n&&m&&l.jsxs("div",{className:B.children,children:[m.loadedFrom>0&&l.jsxs("button",{type:"button",className:B.loadOlderBtn,onClick:()=>t.loadOlder(e.id),disabled:m.loading,children:[m.loading?l.jsx(Ze,{size:"extraSmall"}):l.jsx(It,{style:{transform:"rotate(180deg)",width:12,height:12}}),"Показать предыдущие (",m.loadedFrom,")"]}),m.items.map(S=>l.jsx(sl,{comment:S,ctx:t},S.id))]})]}),l.jsx(ol,{open:c,title:"Удалить комментарий?",message:"Это действие нельзя отменить.",onConfirm:async()=>{u(!1),await t.deleteComment(e)},onClose:()=>u(!1)})]})}const qx=b.forwardRef(function({loadComments:t,currentUser:n,recipientsSource:r,onCreate:o,onEdit:s,onDelete:a,onUploadAttachment:i,onDownloadAttachment:c,onDeleteAttachment:u,permissions:f={canCreate:!0,canReply:!0},editWindowMs:h=Hx,pageSize:g=zx,title:m="Комментарии",eyebrow:w="Discussion",className:p},v){const{branches:y,loadInitial:x,loadOlder:_,appendLocal:C,replaceLocal:E,removeLocal:k,resetBranch:S,resetAll:N}=Vx(g,t),[D,j]=b.useState(!1),[L,P]=b.useState(0);b.useEffect(()=>{const M=window.setInterval(()=>P(J=>J+1),3e4);return()=>window.clearInterval(M)},[]),b.useEffect(()=>{y[gn]||x(null)},[]),b.useImperativeHandle(v,()=>({refresh:M=>{M===void 0?(N(),x(null)):(S(M),x(M))}}),[x,N,S]);const T=b.useCallback(async(M,J)=>{if(!o)return;const ue=await o(J);if(C(M,ue),M!==null){for(const he of Object.keys(y))if(y[he].items.some(Z=>Z.id===M)){E(he===gn?null:he,M,Z=>({...Z,repliesCount:Z.repliesCount+1}));break}}},[C,y,o,E]),W=b.useCallback(async(M,J)=>{if(!s)return;const ue=await s(J);E(M.parentId,M.id,()=>ue)},[s,E]),V=b.useCallback(async M=>{if(a){if(await a(M.id),M.repliesCount>0)E(M.parentId,M.id,J=>({...J,deleted:!0,text:"",attachments:[],recipients:[]}));else if(k(M.parentId,M.id),M.parentId!==null){for(const J of Object.keys(y))if(y[J].items.some(he=>he.id===M.parentId)){E(J===gn?null:J,M.parentId,he=>({...he,repliesCount:Math.max(0,he.repliesCount-1)}));break}}}},[y,a,k,E]),R=y[gn],q=b.useMemo(()=>({currentUser:n,permissions:f,editWindowMs:h,recipientsSource:r,onUploadAttachment:i,onDeleteAttachment:u,onDownloadAttachment:c,branches:y,loadInitial:x,loadOlder:_,createReply:T,editComment:W,deleteComment:V,nowTick:L}),[y,T,n,V,W,h,x,_,L,u,c,i,f,r]),Y=async M=>{j(!0);try{await T(null,{parentId:null,text:M.text,attachments:M.attachments,recipients:M.recipients})}finally{j(!1)}},U=f.canCreate??!0;return l.jsxs("div",{className:O(B.root,p),children:[l.jsxs("div",{className:B.header,children:[l.jsxs("div",{className:B.headerText,children:[l.jsx("span",{className:B.eyebrow,children:w}),l.jsx("span",{className:B.title,children:m})]}),R&&l.jsx("span",{className:B.counter,children:R.total})]}),U&&o&&l.jsx(_o,{mode:"root",placeholder:"Поделитесь мнением или задайте вопрос...",submitLabel:"Опубликовать",recipientsSource:r,onUploadAttachment:i,onDeleteAttachment:u,onSubmit:Y,submitting:D}),!R&&l.jsx("div",{className:B.skeleton,children:[0,1,2].map(M=>l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[l.jsx("div",{className:B.skeletonLine,style:{width:"30%"}}),l.jsx("div",{className:B.skeletonLine,style:{width:"85%"}}),l.jsx("div",{className:B.skeletonLine,style:{width:"60%"}})]},M))}),R&&R.loadedFrom>0&&l.jsxs("button",{type:"button",className:B.loadOlderBtn,onClick:()=>_(null),disabled:R.loading,children:[R.loading?l.jsx(Ze,{size:"extraSmall"}):l.jsx(It,{style:{transform:"rotate(180deg)",width:12,height:12}}),"Показать предыдущие (",R.loadedFrom,")"]}),R&&R.items.length===0&&!R.loading&&l.jsx("div",{className:B.empty,children:l.jsx(Bt,{title:"Пока нет комментариев",subtitle:"Будьте первым, кто напишет."})}),R&&R.items.length>0&&l.jsx("div",{className:B.list,children:R.items.map(M=>l.jsx(sl,{comment:M,ctx:q},M.id))})]})});exports.ApprovalRoute=_y;exports.ArrowDownBlueIcon=Tl;exports.ArrowDownIcon=It;exports.ArrowRightIcon=Rl;exports.BaseBlock=Jl;exports.Button=ye;exports.Calendar=_w;exports.CameraIcon=Bl;exports.CancelIcon=la;exports.Card=fu;exports.Carousel=Mu;exports.ChartIcon=Nl;exports.ChatIcon=ca;exports.CheckGreen=Il;exports.Checkbox=el;exports.ClockFilledIcon=Hl;exports.ClockIcon=ul;exports.CloseRed=Al;exports.CollapsableBlock=Pm;exports.Collapse=Zi;exports.Colors=va;exports.CommentFeed=qx;exports.CopyIcon=fa;exports.CopyTextTrigger=No;exports.CrossIcon=st;exports.DetailView=In;exports.DialogSelect=Uo;exports.DoneIcon=Co;exports.DownloadIcon=ga;exports.EditIcon=ma;exports.EmptyComponent=Bt;exports.EmptyIcon=pa;exports.EnvelopIcon=ua;exports.FeedbackIcon=Ml;exports.FileReloadIcon=fl;exports.FileSync=Pl;exports.FilterIcon=$l;exports.FolderEditIcon=hl;exports.GraduateIcon=ml;exports.GridIcon=pl;exports.HeartIcon=gl;exports.HelpIcon=vl;exports.HistoryBlue=Ll;exports.HomeIcon=dl;exports.InfoIcon=ha;exports.Input=xc;exports.InputCaption=$t;exports.IslandIcon=ql;exports.Label=yo;exports.ListIcon=bl;exports.MarketIcon=wl;exports.MegaphoneIcon=Ol;exports.MessageIcon=Wl;exports.NotebookIcon=Sl;exports.PhoneIcon=Fl;exports.PlaneIcon=yl;exports.Popover=gm;exports.ProfileIcon=xl;exports.ProfileSearchIcon=_l;exports.RadioGroupButton=lu;exports.ReloadIcon=zl;exports.SchoolIcon=Vl;exports.SearchIcon=hr;exports.Select=m0;exports.SettingsIcon=Yl;exports.Spinner=Ze;exports.Stepper=rv;exports.Tabs=hv;exports.TabsRounded=qg;exports.Tag=ec;exports.TaskListIcon=jl;exports.TimesheetIcon=El;exports.TooltipDark=So;exports.TooltipLight=Bo;exports.TreeDialogSelect=Lg;exports.TrendUpIcon=Cl;exports.UserSwitchIcon=Dl;exports.WalletIcon=kl;exports.WarnIcon=da;exports.parseYmdToLocalDay=Jc;exports.startOfLocalDay=Qt;exports.toYmdString=Qc;exports.todayLocalDay=pw;exports.useDropdownPosition=su;exports.useMeasureElement=La;
|
|
46
46
|
//# sourceMappingURL=ui-library.cjs.js.map
|