diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/assets/index-CBd-LMC0.css b/assets/index-CBd-LMC0.css new file mode 100644 index 0000000..27927bb --- /dev/null +++ b/assets/index-CBd-LMC0.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Lora:ital,wght@0,400;0,700;1,400;1,700&display=swap";.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 7%;--foreground: 0 0% 100%;--card: 0 0% 9%;--card-foreground: 0 0% 100%;--popover: 0 0% 9%;--popover-foreground: 0 0% 100%;--primary: 180 100% 50%;--primary-foreground: 0 0% 100%;--secondary: 0 0% 15%;--secondary-foreground: 0 0% 100%;--muted: 0 0% 15%;--muted-foreground: 0 0% 70%;--accent: 180 100% 50%;--accent-foreground: 0 0% 100%;--destructive: 0 100% 50%;--destructive-foreground: 0 0% 100%;--border: 0 0% 20%;--input: 0 0% 20%;--ring: 180 100% 50%;--radius: .75rem}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-family:Inter,sans-serif}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-12{bottom:-3rem}.-left-12{left:-3rem}.-right-12{right:-3rem}.-top-12{top:-3rem}.bottom-0{bottom:0}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.top-0{top:0}.top-1\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.top-\[1px\]{top:1px}.top-\[50\%\]{top:50%}.top-\[60\%\]{top:60%}.top-full{top:100%}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.z-\[1000\]{z-index:1000}.z-\[1001\]{z-index:1001}.z-\[1002\]{z-index:1002}.z-\[100\]{z-index:100}.z-\[1\]{z-index:1}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-16{margin-top:4rem;margin-bottom:4rem}.-ml-4{margin-left:-1rem}.-mt-4{margin-top:-1rem}.mb-1{margin-bottom:.25rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-32{height:8rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-96{max-height:24rem}.max-h-\[300px\]{max-height:300px}.max-h-screen{max-height:100vh}.min-h-\[80px\]{min-height:80px}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-\[100px\]{width:100px}.w-\[1px\]{width:1px}.w-\[280px\]{width:280px}.w-auto{width:auto}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-\[12rem\]{min-width:12rem}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-6xl{max-width:72rem}.max-w-lg{max-width:32rem}.max-w-max{max-width:-moz-max-content;max-width:max-content}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-full{flex-basis:100%}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-3xl{border-radius:1.5rem}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-2{border-width:2px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\/50{border-color:hsl(var(--destructive) / .5)}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-transparent{border-color:transparent}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-accent{background-color:hsl(var(--accent))}.bg-background{background-color:hsl(var(--background))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-black\/80{background-color:#000c}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-cyan-400{--tw-bg-opacity: 1;background-color:rgb(34 211 238 / var(--tw-bg-opacity))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-foreground{background-color:hsl(var(--foreground))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-gray-900\/95{background-color:#111827f2}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-0{--tw-bg-opacity: 0}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-90{--tw-bg-opacity: .9}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-gray-800{--tw-gradient-from: #1f2937 var(--tw-gradient-from-position);--tw-gradient-to: rgb(31 41 55 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-900{--tw-gradient-from: #14532d var(--tw-gradient-from-position);--tw-gradient-to: rgb(20 83 45 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-transparent{--tw-gradient-from: transparent var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-blue-900{--tw-gradient-to: #1e3a8a var(--tw-gradient-to-position)}.to-gray-900{--tw-gradient-to: #111827 var(--tw-gradient-to-position)}.bg-cover{background-size:cover}.bg-center{background-position:center}.bg-no-repeat{background-repeat:no-repeat}.fill-current{fill:currentColor}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[1px\]{padding:1px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-4{padding-bottom:1rem}.pl-2\.5{padding-left:.625rem}.pl-4{padding-left:1rem}.pl-8{padding-left:2rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-6xl{font-size:3.75rem;line-height:1}.text-\[0\.8rem\]{font-size:.8rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-accent-foreground{color:hsl(var(--accent-foreground))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-cyan-300{--tw-text-opacity: 1;color:rgb(103 232 249 / var(--tw-text-opacity))}.text-cyan-400{--tw-text-opacity: 1;color:rgb(34 211 238 / var(--tw-text-opacity))}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\/50{color:hsl(var(--foreground) / .5)}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-90{opacity:.9}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-ring{--tw-ring-color: hsl(var(--ring))}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-1000{transition-duration:1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in,.fade-in-0{--tw-enter-opacity: 0}.fade-in-80{--tw-enter-opacity: .8}.zoom-in-95{--tw-enter-scale: .95}.duration-1000{animation-duration:1s}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.duration-500{animation-duration:.5s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}html{scroll-behavior:smooth}body{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}h1,h2,h3,h4,h5,h6{font-family:Inter,sans-serif;letter-spacing:-.025em}p{font-family:Lora,serif}.gradient-text{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #22d3ee var(--tw-gradient-from-position);--tw-gradient-to: rgb(34 211 238 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #3b82f6 var(--tw-gradient-to-position);-webkit-background-clip:text;background-clip:text;color:transparent}.hover-lift{transition-property:transform;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);animation-duration:.3s;animation-timing-function:cubic-bezier(.4,0,.2,1)}.hover-lift:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.animated-bg{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops));--tw-gradient-from: #111827 var(--tw-gradient-from-position);--tw-gradient-to: rgb(17 24 39 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: rgb(31 41 55 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #1f2937 var(--tw-gradient-via-position), var(--tw-gradient-to);--tw-gradient-to: #111827 var(--tw-gradient-to-position);animation:bg-animate 15s ease infinite;background-size:400% 400%}@keyframes bg-animate{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}.bg-animate{animation:bg-animate 15s ease infinite;background-size:400% 400%}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:inset-y-0:after{content:var(--tw-content);top:0;bottom:0}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:w-1:after{content:var(--tw-content);width:.25rem}.after\:-translate-x-1\/2:after{content:var(--tw-content);--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.first\:rounded-l-md:first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.first\:border-l:first-child{border-left-width:1px}.last\:rounded-r-md:last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.focus-within\:relative:focus-within{position:relative}.focus-within\:z-20:focus-within{z-index:20}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-green-600:hover{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-primary:hover{background-color:hsl(var(--primary))}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary) / .8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:bg-opacity-30:hover{--tw-bg-opacity: .3}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-cyan-400:hover{--tw-text-opacity: 1;color:rgb(34 211 238 / var(--tw-text-opacity))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-gray-300:hover{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.hover\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:bg-primary:focus{background-color:hsl(var(--primary))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:text-primary-foreground:focus{color:hsl(var(--primary-foreground))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-green-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(34 197 94 / var(--tw-ring-opacity))}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-1:focus-visible{--tw-ring-offset-width: 1px}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--background))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.group.destructive .group-\[\.destructive\]\:border-muted\/40{border-color:hsl(var(--muted) / .4)}.group.toaster .group-\[\.toaster\]\:border-border{border-color:hsl(var(--border))}.group.toast .group-\[\.toast\]\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\[\.toast\]\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\[\.toaster\]\:bg-background{background-color:hsl(var(--background))}.group.destructive .group-\[\.destructive\]\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.group.toast .group-\[\.toast\]\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\[\.toast\]\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\[\.toaster\]\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.group.destructive .group-\[\.destructive\]\:hover\:border-destructive\/30:hover{border-color:hsl(var(--destructive) / .3)}.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover{background-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover{--tw-text-opacity: 1;color:rgb(254 242 242 / var(--tw-text-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus{--tw-ring-color: hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity))}.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus{--tw-ring-offset-color: #dc2626}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.has-\[\:disabled\]\:opacity-50:has(:disabled){opacity:.5}.aria-selected\:bg-accent[aria-selected=true]{background-color:hsl(var(--accent))}.aria-selected\:bg-accent\/50[aria-selected=true]{background-color:hsl(var(--accent) / .5)}.aria-selected\:text-accent-foreground[aria-selected=true]{color:hsl(var(--accent-foreground))}.aria-selected\:text-muted-foreground[aria-selected=true]{color:hsl(var(--muted-foreground))}.aria-selected\:opacity-100[aria-selected=true]{opacity:1}.aria-selected\:opacity-30[aria-selected=true]{opacity:.3}.data-\[disabled\=true\]\:pointer-events-none[data-disabled=true],.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[panel-group-direction\=vertical\]\:h-px[data-panel-group-direction=vertical]{height:1px}.data-\[panel-group-direction\=vertical\]\:w-full[data-panel-group-direction=vertical]{width:100%}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-5[data-state=checked]{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked],.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x: var(--radix-toast-swipe-end-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x: var(--radix-toast-swipe-move-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\[panel-group-direction\=vertical\]\:flex-col[data-panel-group-direction=vertical]{flex-direction:column}.data-\[active\]\:bg-accent\/50[data-active]{background-color:hsl(var(--accent) / .5)}.data-\[selected\=true\]\:bg-accent[data-selected=true]{background-color:hsl(var(--accent))}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=on\]\:bg-accent[data-state=on],.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:hsl(var(--accent) / .5)}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[selected\=true\]\:text-accent-foreground[data-selected=true]{color:hsl(var(--accent-foreground))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=on\]\:text-accent-foreground[data-state=on],.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\=true\]\:opacity-50[data-disabled=true],.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow-sm[data-state=active]{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[motion\^\=from-\]\:animate-in[data-motion^=from-],.data-\[state\=open\]\:animate-in[data-state=open],.data-\[state\=visible\]\:animate-in[data-state=visible]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[motion\^\=to-\]\:animate-out[data-motion^=to-],.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[state\=hidden\]\:animate-out[data-state=hidden],.data-\[swipe\=end\]\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity: 0}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-],.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity: .8}.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open],.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale: .9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x: 13rem}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x: -13rem}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x: 13rem}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x: -13rem}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed],.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed]{--tw-exit-translate-x: 100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y: -100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.data-\[panel-group-direction\=vertical\]\:after\:left-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);left:0}.data-\[panel-group-direction\=vertical\]\:after\:h-1[data-panel-group-direction=vertical]:after{content:var(--tw-content);height:.25rem}.data-\[panel-group-direction\=vertical\]\:after\:w-full[data-panel-group-direction=vertical]:after{content:var(--tw-content);width:100%}.data-\[panel-group-direction\=vertical\]\:after\:-translate-y-1\/2[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[panel-group-direction\=vertical\]\:after\:translate-x-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group[data-state=open] .group-data-\[state\=open\]\:rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}@media (min-width: 640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:top-auto{top:auto}.sm\:mt-0{margin-top:0}.sm\:max-w-sm{max-width:24rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:justify-end{justify-content:flex-end}.sm\:gap-2\.5{gap:.625rem}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}.data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y: 100%}}@media (min-width: 768px){.md\:absolute{position:absolute}.md\:w-\[var\(--radix-navigation-menu-viewport-width\)\]{width:var(--radix-navigation-menu-viewport-width)}.md\:w-auto{width:auto}.md\:max-w-\[420px\]{max-width:420px}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.\[\&\:has\(\[aria-selected\]\)\]\:bg-accent:has([aria-selected]){background-color:hsl(var(--accent))}.first\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-l-md:has([aria-selected]):first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.last\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-r-md:has([aria-selected]):last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\.day-outside\)\]\:bg-accent\/50:has([aria-selected].day-outside){background-color:hsl(var(--accent) / .5)}.\[\&\:has\(\[aria-selected\]\.day-range-end\)\]\:rounded-r-md:has([aria-selected].day-range-end){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y: -3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:size-3\.5>svg{width:.875rem;height:.875rem}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0px}.\[\&\[data-panel-group-direction\=vertical\]\>div\]\:rotate-90[data-panel-group-direction=vertical]>div{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-top:.375rem;padding-bottom:.375rem}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{font-weight:500}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:hsl(var(--muted-foreground))}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:3rem}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-top:.75rem;padding-bottom:.75rem}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:1.25rem}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:1.25rem}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px} diff --git a/assets/index-gFzjs9Hz.js b/assets/index-gFzjs9Hz.js new file mode 100644 index 0000000..8a21410 --- /dev/null +++ b/assets/index-gFzjs9Hz.js @@ -0,0 +1,177 @@ +var mg=t=>{throw TypeError(t)};var sd=(t,e,n)=>e.has(t)||mg("Cannot "+n);var A=(t,e,n)=>(sd(t,e,"read from private field"),n?n.call(t):e.get(t)),at=(t,e,n)=>e.has(t)?mg("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),X=(t,e,n,i)=>(sd(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n),vt=(t,e,n)=>(sd(t,e,"access private method"),n);var xl=(t,e,n,i)=>({set _(o){X(t,e,o,n)},get _(){return A(t,e,i)}});function Sb(t,e){for(var n=0;ni[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&i(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function bb(t,e){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;const n=document.implementation.createHTMLDocument(),i=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(i),n.body.appendChild(o),e&&(i.href=e),o.href=t,o.href}const Cb=(()=>{let t=0;const e=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(t+=1,`u${e()}${t}`)})();function ei(t){const e=[];for(let n=0,i=t.length;nze||t.height>ze)&&(t.width>ze&&t.height>ze?t.width>t.height?(t.height*=ze/t.width,t.width=ze):(t.width*=ze/t.height,t.height=ze):t.width>ze?(t.height*=ze/t.width,t.width=ze):(t.width*=ze/t.height,t.height=ze))}function pu(t){return new Promise((e,n)=>{const i=new Image;i.decode=()=>e(i),i.onload=()=>e(i),i.onerror=n,i.crossOrigin="anonymous",i.decoding="async",i.src=t})}async function Mb(t){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(t)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function Rb(t,e,n){const i="http://www.w3.org/2000/svg",o=document.createElementNS(i,"svg"),s=document.createElementNS(i,"foreignObject");return o.setAttribute("width",`${e}`),o.setAttribute("height",`${n}`),o.setAttribute("viewBox",`0 0 ${e} ${n}`),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),o.appendChild(s),s.appendChild(t),Mb(o)}const ke=(t,e)=>{if(t instanceof e)return!0;const n=Object.getPrototypeOf(t);return n===null?!1:n.constructor.name===e.name||ke(n,e)};function Ab(t){const e=t.getPropertyValue("content");return`${t.cssText} content: '${e.replace(/'|"/g,"")}';`}function Ob(t){return ei(t).map(e=>{const n=t.getPropertyValue(e),i=t.getPropertyPriority(e);return`${e}: ${n}${i?" !important":""};`}).join(" ")}function Nb(t,e,n){const i=`.${t}:${e}`,o=n.cssText?Ab(n):Ob(n);return document.createTextNode(`${i}{${o}}`)}function gg(t,e,n){const i=window.getComputedStyle(t,n),o=i.getPropertyValue("content");if(o===""||o==="none")return;const s=Cb();try{e.className=`${e.className} ${s}`}catch{return}const l=document.createElement("style");l.appendChild(Nb(s,n,i)),e.appendChild(l)}function zb(t,e){gg(t,e,":before"),gg(t,e,":after")}const vg="application/font-woff",yg="image/jpeg",Db={woff:vg,woff2:vg,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:yg,jpeg:yg,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Ib(t){const e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""}function Of(t){const e=Ib(t).toLowerCase();return Db[e]||""}function jb(t){return t.split(/,/)[1]}function qd(t){return t.search(/^(data:)/)!==-1}function Bb(t,e){return`data:${e};base64,${t}`}async function $0(t,e,n){const i=await fetch(t,e);if(i.status===404)throw new Error(`Resource "${i.url}" not found`);const o=await i.blob();return new Promise((s,l)=>{const c=new FileReader;c.onerror=l,c.onloadend=()=>{try{s(n({res:i,result:c.result}))}catch(d){l(d)}},c.readAsDataURL(o)})}const ad={};function Fb(t,e,n){let i=t.replace(/\?.*/,"");return n&&(i=t),/ttf|otf|eot|woff2?/i.test(i)&&(i=i.replace(/.*\//,"")),e?`[${e}]${i}`:i}async function Nf(t,e,n){const i=Fb(t,e,n.includeQueryParams);if(ad[i]!=null)return ad[i];n.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+new Date().getTime());let o;try{const s=await $0(t,n.fetchRequestInit,({res:l,result:c})=>(e||(e=l.headers.get("Content-Type")||""),jb(c)));o=Bb(s,e)}catch(s){o=n.imagePlaceholder||"";let l=`Failed to fetch resource: ${t}`;s&&(l=typeof s=="string"?s:s.message),l&&console.warn(l)}return ad[i]=o,o}async function Vb(t){const e=t.toDataURL();return e==="data:,"?t.cloneNode(!1):pu(e)}async function Ub(t,e){if(t.currentSrc){const s=document.createElement("canvas"),l=s.getContext("2d");s.width=t.clientWidth,s.height=t.clientHeight,l==null||l.drawImage(t,0,0,s.width,s.height);const c=s.toDataURL();return pu(c)}const n=t.poster,i=Of(n),o=await Nf(n,i,e);return pu(o)}async function $b(t){var e;try{if(!((e=t==null?void 0:t.contentDocument)===null||e===void 0)&&e.body)return await qu(t.contentDocument.body,{},!0)}catch{}return t.cloneNode(!1)}async function Wb(t,e){return ke(t,HTMLCanvasElement)?Vb(t):ke(t,HTMLVideoElement)?Ub(t,e):ke(t,HTMLIFrameElement)?$b(t):t.cloneNode(!1)}const Hb=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SLOT";async function Zb(t,e,n){var i,o;let s=[];return Hb(t)&&t.assignedNodes?s=ei(t.assignedNodes()):ke(t,HTMLIFrameElement)&&(!((i=t.contentDocument)===null||i===void 0)&&i.body)?s=ei(t.contentDocument.body.childNodes):s=ei(((o=t.shadowRoot)!==null&&o!==void 0?o:t).childNodes),s.length===0||ke(t,HTMLVideoElement)||await s.reduce((l,c)=>l.then(()=>qu(c,n)).then(d=>{d&&e.appendChild(d)}),Promise.resolve()),e}function Gb(t,e){const n=e.style;if(!n)return;const i=window.getComputedStyle(t);i.cssText?(n.cssText=i.cssText,n.transformOrigin=i.transformOrigin):ei(i).forEach(o=>{let s=i.getPropertyValue(o);o==="font-size"&&s.endsWith("px")&&(s=`${Math.floor(parseFloat(s.substring(0,s.length-2)))-.1}px`),ke(t,HTMLIFrameElement)&&o==="display"&&s==="inline"&&(s="block"),o==="d"&&e.getAttribute("d")&&(s=`path(${e.getAttribute("d")})`),n.setProperty(o,s,i.getPropertyPriority(o))})}function Kb(t,e){ke(t,HTMLTextAreaElement)&&(e.innerHTML=t.value),ke(t,HTMLInputElement)&&e.setAttribute("value",t.value)}function Qb(t,e){if(ke(t,HTMLSelectElement)){const n=e,i=Array.from(n.children).find(o=>t.value===o.getAttribute("value"));i&&i.setAttribute("selected","")}}function Yb(t,e){return ke(e,Element)&&(Gb(t,e),zb(t,e),Kb(t,e),Qb(t,e)),e}async function qb(t,e){const n=t.querySelectorAll?t.querySelectorAll("use"):[];if(n.length===0)return t;const i={};for(let s=0;sWb(i,e)).then(i=>Zb(t,i,e)).then(i=>Yb(t,i)).then(i=>qb(i,e))}const W0=/url\((['"]?)([^'"]+?)\1\)/g,Xb=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Jb=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function tC(t){const e=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function eC(t){const e=[];return t.replace(W0,(n,i,o)=>(e.push(o),n)),e.filter(n=>!qd(n))}async function nC(t,e,n,i,o){try{const s=n?bb(e,n):e,l=Of(e);let c;return o||(c=await Nf(s,l,i)),t.replace(tC(e),`$1${c}$3`)}catch{}return t}function iC(t,{preferredFontFormat:e}){return e?t.replace(Jb,n=>{for(;;){const[i,,o]=Xb.exec(n)||[];if(!o)return"";if(o===e)return`src: ${i};`}}):t}function H0(t){return t.search(W0)!==-1}async function Z0(t,e,n){if(!H0(t))return t;const i=iC(t,n);return eC(i).reduce((s,l)=>s.then(c=>nC(c,l,e,n)),Promise.resolve(i))}async function Pl(t,e,n){var i;const o=(i=e.style)===null||i===void 0?void 0:i.getPropertyValue(t);if(o){const s=await Z0(o,null,n);return e.style.setProperty(t,s,e.style.getPropertyPriority(t)),!0}return!1}async function rC(t,e){await Pl("background",t,e)||await Pl("background-image",t,e),await Pl("mask",t,e)||await Pl("mask-image",t,e)}async function oC(t,e){const n=ke(t,HTMLImageElement);if(!(n&&!qd(t.src))&&!(ke(t,SVGImageElement)&&!qd(t.href.baseVal)))return;const i=n?t.src:t.href.baseVal,o=await Nf(i,Of(i),e);await new Promise((s,l)=>{t.onload=s,t.onerror=l;const c=t;c.decode&&(c.decode=s),c.loading==="lazy"&&(c.loading="eager"),n?(t.srcset="",t.src=o):t.href.baseVal=o})}async function sC(t,e){const i=ei(t.childNodes).map(o=>G0(o,e));await Promise.all(i).then(()=>t)}async function G0(t,e){ke(t,Element)&&(await rC(t,e),await oC(t,e),await sC(t,e))}function aC(t,e){const{style:n}=t;e.backgroundColor&&(n.backgroundColor=e.backgroundColor),e.width&&(n.width=`${e.width}px`),e.height&&(n.height=`${e.height}px`);const i=e.style;return i!=null&&Object.keys(i).forEach(o=>{n[o]=i[o]}),t}const _g={};async function wg(t){let e=_g[t];if(e!=null)return e;const i=await(await fetch(t)).text();return e={url:t,cssText:i},_g[t]=e,e}async function xg(t,e){let n=t.cssText;const i=/url\(["']?([^"')]+)["']?\)/g,s=(n.match(/url\([^)]+\)/g)||[]).map(async l=>{let c=l.replace(i,"$1");return c.startsWith("https://")||(c=new URL(c,t.url).href),$0(c,e.fetchRequestInit,({result:d})=>(n=n.replace(l,`url(${d})`),[l,d]))});return Promise.all(s).then(()=>n)}function Pg(t){if(t==null)return[];const e=[],n=/(\/\*[\s\S]*?\*\/)/gi;let i=t.replace(n,"");const o=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const d=o.exec(i);if(d===null)break;e.push(d[0])}i=i.replace(o,"");const s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,l="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",c=new RegExp(l,"gi");for(;;){let d=s.exec(i);if(d===null){if(d=c.exec(i),d===null)break;s.lastIndex=c.lastIndex}else c.lastIndex=s.lastIndex;e.push(d[0])}return e}async function lC(t,e){const n=[],i=[];return t.forEach(o=>{if("cssRules"in o)try{ei(o.cssRules||[]).forEach((s,l)=>{if(s.type===CSSRule.IMPORT_RULE){let c=l+1;const d=s.href,f=wg(d).then(g=>xg(g,e)).then(g=>Pg(g).forEach(m=>{try{o.insertRule(m,m.startsWith("@import")?c+=1:o.cssRules.length)}catch(p){console.error("Error inserting rule from remote css",{rule:m,error:p})}})).catch(g=>{console.error("Error loading remote css",g.toString())});i.push(f)}})}catch(s){const l=t.find(c=>c.href==null)||document.styleSheets[0];o.href!=null&&i.push(wg(o.href).then(c=>xg(c,e)).then(c=>Pg(c).forEach(d=>{l.insertRule(d,o.cssRules.length)})).catch(c=>{console.error("Error loading remote stylesheet",c)})),console.error("Error inlining remote css file",s)}}),Promise.all(i).then(()=>(t.forEach(o=>{if("cssRules"in o)try{ei(o.cssRules||[]).forEach(s=>{n.push(s)})}catch(s){console.error(`Error while reading CSS rules from ${o.href}`,s)}}),n))}function uC(t){return t.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>H0(e.style.getPropertyValue("src")))}async function cC(t,e){if(t.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=ei(t.ownerDocument.styleSheets),i=await lC(n,e);return uC(i)}async function dC(t,e){const n=await cC(t,e);return(await Promise.all(n.map(o=>{const s=o.parentStyleSheet?o.parentStyleSheet.href:null;return Z0(o.cssText,s,e)}))).join(` +`)}async function hC(t,e){const n=e.fontEmbedCSS!=null?e.fontEmbedCSS:e.skipFonts?null:await dC(t,e);if(n){const i=document.createElement("style"),o=document.createTextNode(n);i.appendChild(o),t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i)}}async function fC(t,e={}){const{width:n,height:i}=U0(t,e),o=await qu(t,e,!0);return await hC(o,e),await G0(o,e),aC(o,e),await Rb(o,n,i)}async function pC(t,e={}){const{width:n,height:i}=U0(t,e),o=await fC(t,e),s=await pu(o),l=document.createElement("canvas"),c=l.getContext("2d"),d=e.pixelRatio||Lb(),f=e.canvasWidth||n,g=e.canvasHeight||i;return l.width=f*d,l.height=g*d,e.skipAutoScale||kb(l),l.style.width=`${f}`,l.style.height=`${g}`,e.backgroundColor&&(c.fillStyle=e.backgroundColor,c.fillRect(0,0,l.width,l.height)),c.drawImage(s,0,0,l.width,l.height),l}async function mC(t,e={}){return(await pC(t,e)).toDataURL()}const gC=()=>{window.addEventListener("blur",()=>{mC(document.body).then(t=>{window.top.postMessage({type:"USER_SNAPSHOT",snapshot:t},"http://localhost:3000"),window.top.postMessage({type:"USER_SNAPSHOT",snapshot:t},"https://gptengineer.app")})})},vC=()=>{const t=()=>{let e=document.location.href;const n=document.querySelector("body");new MutationObserver(()=>{e!==document.location.href&&(e=document.location.href,window.top.postMessage({type:"URL_CHANGED",url:document.location.href},"https://run.gptengineer.app"),window.top.postMessage({type:"URL_CHANGED",url:document.location.href},"http://localhost:3000"))}).observe(n,{childList:!0,subtree:!0})};window.addEventListener("load",t)},Sl=t=>{window.top.postMessage(t,"https://gptengineer.app"),window.top.postMessage(t,"http://localhost:3000")},yC=t=>{const e=window.fetch;window.fetch=async function(...n){var i,o;try{const s=await e(...n);if(!s.ok){const l=s!=null&&s.text?await s.text():void 0;t("non_200_response",{...s,status:s.status,url:(n==null?void 0:n[0])||s.url,body:l,method:((i=n==null?void 0:n[1])==null?void 0:i.method)||"GET",origin:window.location.origin})}return s}catch(s){throw t("fetch_error",{message:s==null?void 0:s.message,stack:s==null?void 0:s.stack,url:n==null?void 0:n[0],method:((o=n==null?void 0:n[1])==null?void 0:o.method)||"GET",origin:window.location.origin}),s}}},_C=(()=>{let t=!1;const e=({message:n,lineno:i,colno:o,filename:s,error:l})=>({message:n,lineno:i,colno:o,filename:s,stack:l==null?void 0:l.stack});return()=>{if(t)return;const n=new Set,i=c=>{const{lineno:d,colno:f,filename:g,message:m}=c;return`${m}|${g}|${d}|${f}`};yC(async(c,d)=>{c==="non_200_response"?Sl({type:"FETCH_ERROR",error:{message:`failed to call url ${d.url} with status ${d.status} and statusText ${d.statusText}`,status:d.status,statusText:d.statusText,url:d.url,body:d.body}}):c==="fetch_error"&&Sl({type:"FETCH_ERROR",error:d})});const s=c=>n.has(c)?!0:(n.add(c),setTimeout(()=>n.delete(c),5e3),!1),l=c=>{const d=i(c);if(s(d))return;const f=e(c);Sl({type:"RUNTIME_ERROR",error:f})};window.addEventListener("error",l),window.addEventListener("unhandledrejection",c=>{var g,m,p,y,P;if(!((g=c.reason)!=null&&g.stack))return;const d=((m=c.reason)==null?void 0:m.stack)||((p=c.reason)==null?void 0:p.message)||String(c.reason);if(s(d))return;const f={message:((y=c.reason)==null?void 0:y.message)||"Unhandled promise rejection",stack:((P=c.reason)==null?void 0:P.stack)||String(c.reason)};Sl({type:"UNHANDLED_PROMISE_REJECTION",error:f})}),t=!0}})(),wC=()=>{window.top!==window.self&&(gC(),vC(),_C())};wC();var xC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function K0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Q0={exports:{}},Xu={},Y0={exports:{}},gt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ua=Symbol.for("react.element"),PC=Symbol.for("react.portal"),SC=Symbol.for("react.fragment"),bC=Symbol.for("react.strict_mode"),CC=Symbol.for("react.profiler"),TC=Symbol.for("react.provider"),EC=Symbol.for("react.context"),LC=Symbol.for("react.forward_ref"),kC=Symbol.for("react.suspense"),MC=Symbol.for("react.memo"),RC=Symbol.for("react.lazy"),Sg=Symbol.iterator;function AC(t){return t===null||typeof t!="object"?null:(t=Sg&&t[Sg]||t["@@iterator"],typeof t=="function"?t:null)}var q0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},X0=Object.assign,J0={};function os(t,e,n){this.props=t,this.context=e,this.refs=J0,this.updater=n||q0}os.prototype.isReactComponent={};os.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};os.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function t_(){}t_.prototype=os.prototype;function zf(t,e,n){this.props=t,this.context=e,this.refs=J0,this.updater=n||q0}var Df=zf.prototype=new t_;Df.constructor=zf;X0(Df,os.prototype);Df.isPureReactComponent=!0;var bg=Array.isArray,e_=Object.prototype.hasOwnProperty,If={current:null},n_={key:!0,ref:!0,__self:!0,__source:!0};function i_(t,e,n){var i,o={},s=null,l=null;if(e!=null)for(i in e.ref!==void 0&&(l=e.ref),e.key!==void 0&&(s=""+e.key),e)e_.call(e,i)&&!n_.hasOwnProperty(i)&&(o[i]=e[i]);var c=arguments.length-2;if(c===1)o.children=n;else if(1>>1,Q=N[U];if(0>>1;Uo(ct,V))qo(Vt,ct)?(N[U]=Vt,N[q]=V,U=q):(N[U]=ct,N[ht]=V,U=ht);else if(qo(Vt,V))N[U]=Vt,N[q]=V,U=q;else break t}}return G}function o(N,G){var V=N.sortIndex-G.sortIndex;return V!==0?V:N.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}var d=[],f=[],g=1,m=null,p=3,y=!1,P=!1,b=!1,T=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(N){for(var G=n(f);G!==null;){if(G.callback===null)i(f);else if(G.startTime<=N)i(f),G.sortIndex=G.expirationTime,e(d,G);else break;G=n(f)}}function M(N){if(b=!1,S(N),!P)if(n(d)!==null)P=!0,tt(R);else{var G=n(f);G!==null&&nt(M,G.startTime-N)}}function R(N,G){P=!1,b&&(b=!1,x(z),z=-1),y=!0;var V=p;try{for(S(G),m=n(d);m!==null&&(!(m.expirationTime>G)||N&&!J());){var U=m.callback;if(typeof U=="function"){m.callback=null,p=m.priorityLevel;var Q=U(m.expirationTime<=G);G=t.unstable_now(),typeof Q=="function"?m.callback=Q:m===n(d)&&i(d),S(G)}else i(d);m=n(d)}if(m!==null)var st=!0;else{var ht=n(f);ht!==null&&nt(M,ht.startTime-G),st=!1}return st}finally{m=null,p=V,y=!1}}var I=!1,j=null,z=-1,H=5,$=-1;function J(){return!(t.unstable_now()-$N||125U?(N.sortIndex=V,e(f,N),n(d)===null&&N===n(f)&&(b?(x(z),z=-1):b=!0,nt(M,V-U))):(N.sortIndex=Q,e(d,N),P||y||(P=!0,tt(R))),N},t.unstable_shouldYield=J,t.unstable_wrapCallback=function(N){var G=p;return function(){var V=p;p=G;try{return N.apply(this,arguments)}finally{p=V}}}})(l_);a_.exports=l_;var WC=a_.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var HC=C,$e=WC;function F(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jd=Object.prototype.hasOwnProperty,ZC=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Tg={},Eg={};function GC(t){return Jd.call(Eg,t)?!0:Jd.call(Tg,t)?!1:ZC.test(t)?Eg[t]=!0:(Tg[t]=!0,!1)}function KC(t,e,n,i){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function QC(t,e,n,i){if(e===null||typeof e>"u"||KC(t,e,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function be(t,e,n,i,o,s,l){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=i,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=l}var ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){ue[t]=new be(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];ue[e]=new be(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){ue[t]=new be(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){ue[t]=new be(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){ue[t]=new be(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){ue[t]=new be(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){ue[t]=new be(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){ue[t]=new be(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){ue[t]=new be(t,5,!1,t.toLowerCase(),null,!1,!1)});var Bf=/[\-:]([a-z])/g;function Ff(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Bf,Ff);ue[e]=new be(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Bf,Ff);ue[e]=new be(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Bf,Ff);ue[e]=new be(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){ue[t]=new be(t,1,!1,t.toLowerCase(),null,!1,!1)});ue.xlinkHref=new be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){ue[t]=new be(t,1,!1,t.toLowerCase(),null,!0,!0)});function Vf(t,e,n,i){var o=ue.hasOwnProperty(e)?ue[e]:null;(o!==null?o.type!==0:i||!(2c||o[l]!==s[c]){var d=` +`+o[l].replace(" at new "," at ");return t.displayName&&d.includes("")&&(d=d.replace("",t.displayName)),d}while(1<=l&&0<=c);break}}}finally{cd=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Ws(t):""}function YC(t){switch(t.tag){case 5:return Ws(t.type);case 16:return Ws("Lazy");case 13:return Ws("Suspense");case 19:return Ws("SuspenseList");case 0:case 2:case 15:return t=dd(t.type,!1),t;case 11:return t=dd(t.type.render,!1),t;case 1:return t=dd(t.type,!0),t;default:return""}}function ih(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case lo:return"Fragment";case ao:return"Portal";case th:return"Profiler";case Uf:return"StrictMode";case eh:return"Suspense";case nh:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case d_:return(t.displayName||"Context")+".Consumer";case c_:return(t._context.displayName||"Context")+".Provider";case $f:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Wf:return e=t.displayName||null,e!==null?e:ih(t.type)||"Memo";case Ti:e=t._payload,t=t._init;try{return ih(t(e))}catch{}}return null}function qC(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ih(e);case 8:return e===Uf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Qi(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function f_(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function XC(t){var e=f_(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),i=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(l){i=""+l,s.call(this,l)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(l){i=""+l},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Tl(t){t._valueTracker||(t._valueTracker=XC(t))}function p_(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=f_(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function mu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function rh(t,e){var n=e.checked;return jt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function kg(t,e){var n=e.defaultValue==null?"":e.defaultValue,i=e.checked!=null?e.checked:e.defaultChecked;n=Qi(e.value!=null?e.value:n),t._wrapperState={initialChecked:i,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function m_(t,e){e=e.checked,e!=null&&Vf(t,"checked",e,!1)}function oh(t,e){m_(t,e);var n=Qi(e.value),i=e.type;if(n!=null)i==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(i==="submit"||i==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?sh(t,e.type,n):e.hasOwnProperty("defaultValue")&&sh(t,e.type,Qi(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Mg(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var i=e.type;if(!(i!=="submit"&&i!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function sh(t,e,n){(e!=="number"||mu(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Hs=Array.isArray;function Co(t,e,n,i){if(t=t.options,e){e={};for(var o=0;o"+e.valueOf().toString()+"",e=El.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function fa(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var qs={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},JC=["Webkit","ms","Moz","O"];Object.keys(qs).forEach(function(t){JC.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),qs[e]=qs[t]})});function __(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||qs.hasOwnProperty(t)&&qs[t]?(""+e).trim():e+"px"}function w_(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var i=n.indexOf("--")===0,o=__(n,e[n],i);n==="float"&&(n="cssFloat"),i?t.setProperty(n,o):t[n]=o}}var tT=jt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function uh(t,e){if(e){if(tT[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(F(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(F(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(F(61))}if(e.style!=null&&typeof e.style!="object")throw Error(F(62))}}function ch(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dh=null;function Hf(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var hh=null,To=null,Eo=null;function Og(t){if(t=Ha(t)){if(typeof hh!="function")throw Error(F(280));var e=t.stateNode;e&&(e=ic(e),hh(t.stateNode,t.type,e))}}function x_(t){To?Eo?Eo.push(t):Eo=[t]:To=t}function P_(){if(To){var t=To,e=Eo;if(Eo=To=null,Og(t),e)for(t=0;t>>=0,t===0?32:31-(dT(t)/hT|0)|0}var Ll=64,kl=4194304;function Zs(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function _u(t,e){var n=t.pendingLanes;if(n===0)return 0;var i=0,o=t.suspendedLanes,s=t.pingedLanes,l=n&268435455;if(l!==0){var c=l&~o;c!==0?i=Zs(c):(s&=l,s!==0&&(i=Zs(s)))}else l=n&~o,l!==0?i=Zs(l):s!==0&&(i=Zs(s));if(i===0)return 0;if(e!==0&&e!==i&&!(e&o)&&(o=i&-i,s=e&-e,o>=s||o===16&&(s&4194240)!==0))return e;if(i&4&&(i|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=i;0n;n++)e.push(t);return e}function $a(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-xn(e),t[e]=n}function gT(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var i=t.eventTimes;for(t=t.expirationTimes;0=Js),Ug=" ",$g=!1;function U_(t,e){switch(t){case"keyup":return WT.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $_(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var uo=!1;function ZT(t,e){switch(t){case"compositionend":return $_(e);case"keypress":return e.which!==32?null:($g=!0,Ug);case"textInput":return t=e.data,t===Ug&&$g?null:t;default:return null}}function GT(t,e){if(uo)return t==="compositionend"||!Jf&&U_(t,e)?(t=F_(),Xl=Yf=Di=null,uo=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Gg(n)}}function G_(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?G_(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function K_(){for(var t=window,e=mu();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=mu(t.document)}return e}function tp(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function nE(t){var e=K_(),n=t.focusedElem,i=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&G_(n.ownerDocument.documentElement,n)){if(i!==null&&tp(n)){if(e=i.start,t=i.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var o=n.textContent.length,s=Math.min(i.start,o);i=i.end===void 0?s:Math.min(i.end,o),!t.extend&&s>i&&(o=i,i=s,s=o),o=Kg(n,s);var l=Kg(n,i);o&&l&&(t.rangeCount!==1||t.anchorNode!==o.node||t.anchorOffset!==o.offset||t.focusNode!==l.node||t.focusOffset!==l.offset)&&(e=e.createRange(),e.setStart(o.node,o.offset),t.removeAllRanges(),s>i?(t.addRange(e),t.extend(l.node,l.offset)):(e.setEnd(l.node,l.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,co=null,yh=null,ea=null,_h=!1;function Qg(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_h||co==null||co!==mu(i)||(i=co,"selectionStart"in i&&tp(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ea&&_a(ea,i)||(ea=i,i=Pu(yh,"onSelect"),0po||(t.current=Ch[po],Ch[po]=null,po--)}function kt(t,e){po++,Ch[po]=t.current,t.current=e}var Yi={},ve=ir(Yi),Me=ir(!1),Br=Yi;function Go(t,e){var n=t.type.contextTypes;if(!n)return Yi;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=e[s];return i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function Re(t){return t=t.childContextTypes,t!=null}function bu(){At(Me),At(ve)}function nv(t,e,n){if(ve.current!==Yi)throw Error(F(168));kt(ve,e),kt(Me,n)}function iw(t,e,n){var i=t.stateNode;if(e=e.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var o in i)if(!(o in e))throw Error(F(108,qC(t)||"Unknown",o));return jt({},n,i)}function Cu(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Yi,Br=ve.current,kt(ve,t),kt(Me,Me.current),!0}function iv(t,e,n){var i=t.stateNode;if(!i)throw Error(F(169));n?(t=iw(t,e,Br),i.__reactInternalMemoizedMergedChildContext=t,At(Me),At(ve),kt(ve,t)):At(Me),kt(Me,n)}var qn=null,rc=!1,Cd=!1;function rw(t){qn===null?qn=[t]:qn.push(t)}function pE(t){rc=!0,rw(t)}function rr(){if(!Cd&&qn!==null){Cd=!0;var t=0,e=Tt;try{var n=qn;for(Tt=1;t>=l,o-=l,Xn=1<<32-xn(e)+o|n<z?(H=j,j=null):H=j.sibling;var $=p(x,j,S[z],M);if($===null){j===null&&(j=H);break}t&&j&&$.alternate===null&&e(x,j),_=s($,_,z),I===null?R=$:I.sibling=$,I=$,j=H}if(z===S.length)return n(x,j),Ot&&_r(x,z),R;if(j===null){for(;zz?(H=j,j=null):H=j.sibling;var J=p(x,j,$.value,M);if(J===null){j===null&&(j=H);break}t&&j&&J.alternate===null&&e(x,j),_=s(J,_,z),I===null?R=J:I.sibling=J,I=J,j=H}if($.done)return n(x,j),Ot&&_r(x,z),R;if(j===null){for(;!$.done;z++,$=S.next())$=m(x,$.value,M),$!==null&&(_=s($,_,z),I===null?R=$:I.sibling=$,I=$);return Ot&&_r(x,z),R}for(j=i(x,j);!$.done;z++,$=S.next())$=y(j,x,z,$.value,M),$!==null&&(t&&$.alternate!==null&&j.delete($.key===null?z:$.key),_=s($,_,z),I===null?R=$:I.sibling=$,I=$);return t&&j.forEach(function(Z){return e(x,Z)}),Ot&&_r(x,z),R}function T(x,_,S,M){if(typeof S=="object"&&S!==null&&S.type===lo&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Cl:t:{for(var R=S.key,I=_;I!==null;){if(I.key===R){if(R=S.type,R===lo){if(I.tag===7){n(x,I.sibling),_=o(I,S.props.children),_.return=x,x=_;break t}}else if(I.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Ti&&sv(R)===I.type){n(x,I.sibling),_=o(I,S.props),_.ref=Is(x,I,S),_.return=x,x=_;break t}n(x,I);break}else e(x,I);I=I.sibling}S.type===lo?(_=Dr(S.props.children,x.mode,M,S.key),_.return=x,x=_):(M=su(S.type,S.key,S.props,null,x.mode,M),M.ref=Is(x,_,S),M.return=x,x=M)}return l(x);case ao:t:{for(I=S.key;_!==null;){if(_.key===I)if(_.tag===4&&_.stateNode.containerInfo===S.containerInfo&&_.stateNode.implementation===S.implementation){n(x,_.sibling),_=o(_,S.children||[]),_.return=x,x=_;break t}else{n(x,_);break}else e(x,_);_=_.sibling}_=Od(S,x.mode,M),_.return=x,x=_}return l(x);case Ti:return I=S._init,T(x,_,I(S._payload),M)}if(Hs(S))return P(x,_,S,M);if(As(S))return b(x,_,S,M);Dl(x,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,_!==null&&_.tag===6?(n(x,_.sibling),_=o(_,S),_.return=x,x=_):(n(x,_),_=Ad(S,x.mode,M),_.return=x,x=_),l(x)):n(x,_)}return T}var Qo=lw(!0),uw=lw(!1),Lu=ir(null),ku=null,vo=null,rp=null;function op(){rp=vo=ku=null}function sp(t){var e=Lu.current;At(Lu),t._currentValue=e}function Lh(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function ko(t,e){ku=t,rp=vo=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Le=!0),t.firstContext=null)}function an(t){var e=t._currentValue;if(rp!==t)if(t={context:t,memoizedValue:e,next:null},vo===null){if(ku===null)throw Error(F(308));vo=t,ku.dependencies={lanes:0,firstContext:t}}else vo=vo.next=t;return e}var br=null;function ap(t){br===null?br=[t]:br.push(t)}function cw(t,e,n,i){var o=e.interleaved;return o===null?(n.next=n,ap(e)):(n.next=o.next,o.next=n),e.interleaved=n,li(t,i)}function li(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var Ei=!1;function lp(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function dw(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function ni(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function $i(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,xt&2){var o=i.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),i.pending=e,li(t,n)}return o=i.interleaved,o===null?(e.next=e,ap(i)):(e.next=o.next,o.next=e),i.interleaved=e,li(t,n)}function tu(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Gf(t,n)}}function av(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=l:s=s.next=l,n=n.next}while(n!==null);s===null?o=s=e:s=s.next=e}else o=s=e;n={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:i.shared,effects:i.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Mu(t,e,n,i){var o=t.updateQueue;Ei=!1;var s=o.firstBaseUpdate,l=o.lastBaseUpdate,c=o.shared.pending;if(c!==null){o.shared.pending=null;var d=c,f=d.next;d.next=null,l===null?s=f:l.next=f,l=d;var g=t.alternate;g!==null&&(g=g.updateQueue,c=g.lastBaseUpdate,c!==l&&(c===null?g.firstBaseUpdate=f:c.next=f,g.lastBaseUpdate=d))}if(s!==null){var m=o.baseState;l=0,g=f=d=null,c=s;do{var p=c.lane,y=c.eventTime;if((i&p)===p){g!==null&&(g=g.next={eventTime:y,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});t:{var P=t,b=c;switch(p=e,y=n,b.tag){case 1:if(P=b.payload,typeof P=="function"){m=P.call(y,m,p);break t}m=P;break t;case 3:P.flags=P.flags&-65537|128;case 0:if(P=b.payload,p=typeof P=="function"?P.call(y,m,p):P,p==null)break t;m=jt({},m,p);break t;case 2:Ei=!0}}c.callback!==null&&c.lane!==0&&(t.flags|=64,p=o.effects,p===null?o.effects=[c]:p.push(c))}else y={eventTime:y,lane:p,tag:c.tag,payload:c.payload,callback:c.callback,next:null},g===null?(f=g=y,d=m):g=g.next=y,l|=p;if(c=c.next,c===null){if(c=o.shared.pending,c===null)break;p=c,c=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(g===null&&(d=m),o.baseState=d,o.firstBaseUpdate=f,o.lastBaseUpdate=g,e=o.shared.interleaved,e!==null){o=e;do l|=o.lane,o=o.next;while(o!==e)}else s===null&&(o.shared.lanes=0);Ur|=l,t.lanes=l,t.memoizedState=m}}function lv(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;en?n:4,t(!0);var i=Ed.transition;Ed.transition={};try{t(!1),e()}finally{Tt=n,Ed.transition=i}}function Lw(){return ln().memoizedState}function yE(t,e,n){var i=Hi(t);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},kw(t))Mw(e,n);else if(n=cw(t,e,n,i),n!==null){var o=Pe();Pn(n,t,i,o),Rw(n,e,i)}}function _E(t,e,n){var i=Hi(t),o={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(kw(t))Mw(e,o);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var l=e.lastRenderedState,c=s(l,n);if(o.hasEagerState=!0,o.eagerState=c,Sn(c,l)){var d=e.interleaved;d===null?(o.next=o,ap(e)):(o.next=d.next,d.next=o),e.interleaved=o;return}}catch{}finally{}n=cw(t,e,o,i),n!==null&&(o=Pe(),Pn(n,t,i,o),Rw(n,e,i))}}function kw(t){var e=t.alternate;return t===It||e!==null&&e===It}function Mw(t,e){na=Au=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Rw(t,e,n){if(n&4194240){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Gf(t,n)}}var Ou={readContext:an,useCallback:de,useContext:de,useEffect:de,useImperativeHandle:de,useInsertionEffect:de,useLayoutEffect:de,useMemo:de,useReducer:de,useRef:de,useState:de,useDebugValue:de,useDeferredValue:de,useTransition:de,useMutableSource:de,useSyncExternalStore:de,useId:de,unstable_isNewReconciler:!1},wE={readContext:an,useCallback:function(t,e){return Rn().memoizedState=[t,e===void 0?null:e],t},useContext:an,useEffect:cv,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,nu(4194308,4,Sw.bind(null,e,t),n)},useLayoutEffect:function(t,e){return nu(4194308,4,t,e)},useInsertionEffect:function(t,e){return nu(4,2,t,e)},useMemo:function(t,e){var n=Rn();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var i=Rn();return e=n!==void 0?n(e):e,i.memoizedState=i.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},i.queue=t,t=t.dispatch=yE.bind(null,It,t),[i.memoizedState,t]},useRef:function(t){var e=Rn();return t={current:t},e.memoizedState=t},useState:uv,useDebugValue:gp,useDeferredValue:function(t){return Rn().memoizedState=t},useTransition:function(){var t=uv(!1),e=t[0];return t=vE.bind(null,t[1]),Rn().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var i=It,o=Rn();if(Ot){if(n===void 0)throw Error(F(407));n=n()}else{if(n=e(),ne===null)throw Error(F(349));Vr&30||mw(i,e,n)}o.memoizedState=n;var s={value:n,getSnapshot:e};return o.queue=s,cv(vw.bind(null,i,s,t),[t]),i.flags|=2048,Ea(9,gw.bind(null,i,s,n,e),void 0,null),n},useId:function(){var t=Rn(),e=ne.identifierPrefix;if(Ot){var n=Jn,i=Xn;n=(i&~(1<<32-xn(i)-1)).toString(32)+n,e=":"+e+"R"+n,n=Ca++,0<\/script>",t=t.removeChild(t.firstChild)):typeof i.is=="string"?t=l.createElement(n,{is:i.is}):(t=l.createElement(n),n==="select"&&(l=t,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):t=l.createElementNS(t,n),t[Dn]=e,t[Pa]=i,Vw(t,e,!1,!1),e.stateNode=t;t:{switch(l=ch(n,i),n){case"dialog":Rt("cancel",t),Rt("close",t),o=i;break;case"iframe":case"object":case"embed":Rt("load",t),o=i;break;case"video":case"audio":for(o=0;oXo&&(e.flags|=128,i=!0,js(s,!1),e.lanes=4194304)}else{if(!i)if(t=Ru(l),t!==null){if(e.flags|=128,i=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),js(s,!0),s.tail===null&&s.tailMode==="hidden"&&!l.alternate&&!Ot)return he(e),null}else 2*Wt()-s.renderingStartTime>Xo&&n!==1073741824&&(e.flags|=128,i=!0,js(s,!1),e.lanes=4194304);s.isBackwards?(l.sibling=e.child,e.child=l):(n=s.last,n!==null?n.sibling=l:e.child=l,s.last=l)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Wt(),e.sibling=null,n=zt.current,kt(zt,i?n&1|2:n&1),e):(he(e),null);case 22:case 23:return Pp(),i=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==i&&(e.flags|=8192),i&&e.mode&1?je&1073741824&&(he(e),e.subtreeFlags&6&&(e.flags|=8192)):he(e),null;case 24:return null;case 25:return null}throw Error(F(156,e.tag))}function LE(t,e){switch(np(e),e.tag){case 1:return Re(e.type)&&bu(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Yo(),At(Me),At(ve),dp(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return cp(e),null;case 13:if(At(zt),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(F(340));Ko()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return At(zt),null;case 4:return Yo(),null;case 10:return sp(e.type._context),null;case 22:case 23:return Pp(),null;case 24:return null;default:return null}}var jl=!1,me=!1,kE=typeof WeakSet=="function"?WeakSet:Set,Y=null;function yo(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){Ft(t,e,i)}else n.current=null}function Ih(t,e,n){try{n()}catch(i){Ft(t,e,i)}}var xv=!1;function ME(t,e){if(wh=wu,t=K_(),tp(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var o=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break t}var l=0,c=-1,d=-1,f=0,g=0,m=t,p=null;e:for(;;){for(var y;m!==n||o!==0&&m.nodeType!==3||(c=l+o),m!==s||i!==0&&m.nodeType!==3||(d=l+i),m.nodeType===3&&(l+=m.nodeValue.length),(y=m.firstChild)!==null;)p=m,m=y;for(;;){if(m===t)break e;if(p===n&&++f===o&&(c=l),p===s&&++g===i&&(d=l),(y=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=y}n=c===-1||d===-1?null:{start:c,end:d}}else n=null}n=n||{start:0,end:0}}else n=null;for(xh={focusedElem:t,selectionRange:n},wu=!1,Y=e;Y!==null;)if(e=Y,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Y=t;else for(;Y!==null;){e=Y;try{var P=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var b=P.memoizedProps,T=P.memoizedState,x=e.stateNode,_=x.getSnapshotBeforeUpdate(e.elementType===e.type?b:gn(e.type,b),T);x.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var S=e.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(M){Ft(e,e.return,M)}if(t=e.sibling,t!==null){t.return=e.return,Y=t;break}Y=e.return}return P=xv,xv=!1,P}function ia(t,e,n){var i=e.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var o=i=i.next;do{if((o.tag&t)===t){var s=o.destroy;o.destroy=void 0,s!==void 0&&Ih(e,n,s)}o=o.next}while(o!==i)}}function ac(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var i=n.create;n.destroy=i()}n=n.next}while(n!==e)}}function jh(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function Ww(t){var e=t.alternate;e!==null&&(t.alternate=null,Ww(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Dn],delete e[Pa],delete e[bh],delete e[hE],delete e[fE])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Hw(t){return t.tag===5||t.tag===3||t.tag===4}function Pv(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Hw(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Bh(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Su));else if(i!==4&&(t=t.child,t!==null))for(Bh(t,e,n),t=t.sibling;t!==null;)Bh(t,e,n),t=t.sibling}function Fh(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(t=t.child,t!==null))for(Fh(t,e,n),t=t.sibling;t!==null;)Fh(t,e,n),t=t.sibling}var oe=null,yn=!1;function wi(t,e,n){for(n=n.child;n!==null;)Zw(t,e,n),n=n.sibling}function Zw(t,e,n){if(jn&&typeof jn.onCommitFiberUnmount=="function")try{jn.onCommitFiberUnmount(Ju,n)}catch{}switch(n.tag){case 5:me||yo(n,e);case 6:var i=oe,o=yn;oe=null,wi(t,e,n),oe=i,yn=o,oe!==null&&(yn?(t=oe,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):oe.removeChild(n.stateNode));break;case 18:oe!==null&&(yn?(t=oe,n=n.stateNode,t.nodeType===8?bd(t.parentNode,n):t.nodeType===1&&bd(t,n),va(t)):bd(oe,n.stateNode));break;case 4:i=oe,o=yn,oe=n.stateNode.containerInfo,yn=!0,wi(t,e,n),oe=i,yn=o;break;case 0:case 11:case 14:case 15:if(!me&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){o=i=i.next;do{var s=o,l=s.destroy;s=s.tag,l!==void 0&&(s&2||s&4)&&Ih(n,e,l),o=o.next}while(o!==i)}wi(t,e,n);break;case 1:if(!me&&(yo(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(c){Ft(n,e,c)}wi(t,e,n);break;case 21:wi(t,e,n);break;case 22:n.mode&1?(me=(i=me)||n.memoizedState!==null,wi(t,e,n),me=i):wi(t,e,n);break;default:wi(t,e,n)}}function Sv(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new kE),e.forEach(function(i){var o=BE.bind(null,t,i);n.has(i)||(n.add(i),i.then(o,o))})}}function mn(t,e){var n=e.deletions;if(n!==null)for(var i=0;io&&(o=l),i&=~s}if(i=o,i=Wt()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*AE(i/1960))-i,10t?16:t,Ii===null)var i=!1;else{if(t=Ii,Ii=null,Du=0,xt&6)throw Error(F(331));var o=xt;for(xt|=4,Y=t.current;Y!==null;){var s=Y,l=s.child;if(Y.flags&16){var c=s.deletions;if(c!==null){for(var d=0;dWt()-wp?zr(t,0):_p|=n),Ae(t,e)}function tx(t,e){e===0&&(t.mode&1?(e=kl,kl<<=1,!(kl&130023424)&&(kl=4194304)):e=1);var n=Pe();t=li(t,e),t!==null&&($a(t,e,n),Ae(t,n))}function jE(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),tx(t,n)}function BE(t,e){var n=0;switch(t.tag){case 13:var i=t.stateNode,o=t.memoizedState;o!==null&&(n=o.retryLane);break;case 19:i=t.stateNode;break;default:throw Error(F(314))}i!==null&&i.delete(e),tx(t,n)}var ex;ex=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Me.current)Le=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Le=!1,TE(t,e,n);Le=!!(t.flags&131072)}else Le=!1,Ot&&e.flags&1048576&&ow(e,Eu,e.index);switch(e.lanes=0,e.tag){case 2:var i=e.type;iu(t,e),t=e.pendingProps;var o=Go(e,ve.current);ko(e,n),o=fp(null,e,i,t,o,n);var s=pp();return e.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Re(i)?(s=!0,Cu(e)):s=!1,e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,lp(e),o.updater=sc,e.stateNode=o,o._reactInternals=e,Mh(e,i,t,n),e=Oh(null,e,i,!0,s,n)):(e.tag=0,Ot&&s&&ep(e),xe(null,e,o,n),e=e.child),e;case 16:i=e.elementType;t:{switch(iu(t,e),t=e.pendingProps,o=i._init,i=o(i._payload),e.type=i,o=e.tag=VE(i),t=gn(i,t),o){case 0:e=Ah(null,e,i,t,n);break t;case 1:e=yv(null,e,i,t,n);break t;case 11:e=gv(null,e,i,t,n);break t;case 14:e=vv(null,e,i,gn(i.type,t),n);break t}throw Error(F(306,i,""))}return e;case 0:return i=e.type,o=e.pendingProps,o=e.elementType===i?o:gn(i,o),Ah(t,e,i,o,n);case 1:return i=e.type,o=e.pendingProps,o=e.elementType===i?o:gn(i,o),yv(t,e,i,o,n);case 3:t:{if(jw(e),t===null)throw Error(F(387));i=e.pendingProps,s=e.memoizedState,o=s.element,dw(t,e),Mu(e,i,null,n);var l=e.memoizedState;if(i=l.element,s.isDehydrated)if(s={element:i,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){o=qo(Error(F(423)),e),e=_v(t,e,i,n,o);break t}else if(i!==o){o=qo(Error(F(424)),e),e=_v(t,e,i,n,o);break t}else for(Fe=Ui(e.stateNode.containerInfo.firstChild),Ve=e,Ot=!0,_n=null,n=uw(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ko(),i===o){e=ui(t,e,n);break t}xe(t,e,i,n)}e=e.child}return e;case 5:return hw(e),t===null&&Eh(e),i=e.type,o=e.pendingProps,s=t!==null?t.memoizedProps:null,l=o.children,Ph(i,o)?l=null:s!==null&&Ph(i,s)&&(e.flags|=32),Iw(t,e),xe(t,e,l,n),e.child;case 6:return t===null&&Eh(e),null;case 13:return Bw(t,e,n);case 4:return up(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=Qo(e,null,i,n):xe(t,e,i,n),e.child;case 11:return i=e.type,o=e.pendingProps,o=e.elementType===i?o:gn(i,o),gv(t,e,i,o,n);case 7:return xe(t,e,e.pendingProps,n),e.child;case 8:return xe(t,e,e.pendingProps.children,n),e.child;case 12:return xe(t,e,e.pendingProps.children,n),e.child;case 10:t:{if(i=e.type._context,o=e.pendingProps,s=e.memoizedProps,l=o.value,kt(Lu,i._currentValue),i._currentValue=l,s!==null)if(Sn(s.value,l)){if(s.children===o.children&&!Me.current){e=ui(t,e,n);break t}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var c=s.dependencies;if(c!==null){l=s.child;for(var d=c.firstContext;d!==null;){if(d.context===i){if(s.tag===1){d=ni(-1,n&-n),d.tag=2;var f=s.updateQueue;if(f!==null){f=f.shared;var g=f.pending;g===null?d.next=d:(d.next=g.next,g.next=d),f.pending=d}}s.lanes|=n,d=s.alternate,d!==null&&(d.lanes|=n),Lh(s.return,n,e),c.lanes|=n;break}d=d.next}}else if(s.tag===10)l=s.type===e.type?null:s.child;else if(s.tag===18){if(l=s.return,l===null)throw Error(F(341));l.lanes|=n,c=l.alternate,c!==null&&(c.lanes|=n),Lh(l,n,e),l=s.sibling}else l=s.child;if(l!==null)l.return=s;else for(l=s;l!==null;){if(l===e){l=null;break}if(s=l.sibling,s!==null){s.return=l.return,l=s;break}l=l.return}s=l}xe(t,e,o.children,n),e=e.child}return e;case 9:return o=e.type,i=e.pendingProps.children,ko(e,n),o=an(o),i=i(o),e.flags|=1,xe(t,e,i,n),e.child;case 14:return i=e.type,o=gn(i,e.pendingProps),o=gn(i.type,o),vv(t,e,i,o,n);case 15:return zw(t,e,e.type,e.pendingProps,n);case 17:return i=e.type,o=e.pendingProps,o=e.elementType===i?o:gn(i,o),iu(t,e),e.tag=1,Re(i)?(t=!0,Cu(e)):t=!1,ko(e,n),Aw(e,i,o),Mh(e,i,o,n),Oh(null,e,i,!0,t,n);case 19:return Fw(t,e,n);case 22:return Dw(t,e,n)}throw Error(F(156,e.tag))};function nx(t,e){return k_(t,e)}function FE(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function on(t,e,n,i){return new FE(t,e,n,i)}function bp(t){return t=t.prototype,!(!t||!t.isReactComponent)}function VE(t){if(typeof t=="function")return bp(t)?1:0;if(t!=null){if(t=t.$$typeof,t===$f)return 11;if(t===Wf)return 14}return 2}function Zi(t,e){var n=t.alternate;return n===null?(n=on(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function su(t,e,n,i,o,s){var l=2;if(i=t,typeof t=="function")bp(t)&&(l=1);else if(typeof t=="string")l=5;else t:switch(t){case lo:return Dr(n.children,o,s,e);case Uf:l=8,o|=8;break;case th:return t=on(12,n,e,o|2),t.elementType=th,t.lanes=s,t;case eh:return t=on(13,n,e,o),t.elementType=eh,t.lanes=s,t;case nh:return t=on(19,n,e,o),t.elementType=nh,t.lanes=s,t;case h_:return uc(n,o,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case c_:l=10;break t;case d_:l=9;break t;case $f:l=11;break t;case Wf:l=14;break t;case Ti:l=16,i=null;break t}throw Error(F(130,t==null?t:typeof t,""))}return e=on(l,n,e,o),e.elementType=t,e.type=i,e.lanes=s,e}function Dr(t,e,n,i){return t=on(7,t,i,e),t.lanes=n,t}function uc(t,e,n,i){return t=on(22,t,i,e),t.elementType=h_,t.lanes=n,t.stateNode={isHidden:!1},t}function Ad(t,e,n){return t=on(6,t,null,e),t.lanes=n,t}function Od(t,e,n){return e=on(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function UE(t,e,n,i,o){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fd(0),this.expirationTimes=fd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fd(0),this.identifierPrefix=i,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Cp(t,e,n,i,o,s,l,c,d){return t=new UE(t,e,n,c,d),e===1?(e=1,s===!0&&(e|=8)):e=0,s=on(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},lp(s),t}function $E(t,e,n){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sx)}catch(t){console.error(t)}}sx(),s_.exports=He;var ls=s_.exports;const KE=K0(ls);var Rv=ls;Xd.createRoot=Rv.createRoot,Xd.hydrateRoot=Rv.hydrateRoot;var Av=["light","dark"],QE="(prefers-color-scheme: dark)",YE=C.createContext(void 0),qE={setTheme:t=>{},themes:[]},XE=()=>{var t;return(t=C.useContext(YE))!=null?t:qE};C.memo(({forcedTheme:t,storageKey:e,attribute:n,enableSystem:i,enableColorScheme:o,defaultTheme:s,value:l,attrs:c,nonce:d})=>{let f=s==="system",g=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${c.map(P=>`'${P}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,m=o?Av.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(P,b=!1,T=!0)=>{let x=l?l[P]:P,_=b?P+"|| ''":`'${x}'`,S="";return o&&T&&!b&&Av.includes(P)&&(S+=`d.style.colorScheme = '${P}';`),n==="class"?b||x?S+=`c.add(${_})`:S+="null":x&&(S+=`d[s](n,${_})`),S},y=t?`!function(){${g}${p(t)}}()`:i?`!function(){try{${g}var e=localStorage.getItem('${e}');if('system'===e||(!e&&${f})){var t='${QE}',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${l?`var x=${JSON.stringify(l)};`:""}${p(l?"x[e]":"e",!0)}}${f?"":"else{"+p(s,!1,!1)+"}"}${m}}catch(e){}}()`:`!function(){try{${g}var e=localStorage.getItem('${e}');if(e){${l?`var x=${JSON.stringify(l)};`:""}${p(l?"x[e]":"e",!0)}}else{${p(s,!1,!1)};}${m}}catch(t){}}();`;return C.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:y}})});var JE=t=>{switch(t){case"success":return nL;case"info":return rL;case"warning":return iL;case"error":return oL;default:return null}},tL=Array(12).fill(0),eL=({visible:t})=>W.createElement("div",{className:"sonner-loading-wrapper","data-visible":t},W.createElement("div",{className:"sonner-spinner"},tL.map((e,n)=>W.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),nL=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},W.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),iL=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},W.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),rL=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},W.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),oL=W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},W.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),sL=()=>{let[t,e]=W.useState(document.hidden);return W.useEffect(()=>{let n=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),t},Hh=1,aL=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:n,...i}=t,o=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:Hh++,s=this.toasts.find(c=>c.id===o),l=t.dismissible===void 0?!0:t.dismissible;return s?this.toasts=this.toasts.map(c=>c.id===o?(this.publish({...c,...t,id:o,title:n}),{...c,...t,id:o,dismissible:l,title:n}):c):this.addToast({title:n,...i,dismissible:l,id:o}),o},this.dismiss=t=>(t||this.toasts.forEach(e=>{this.subscribers.forEach(n=>n({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let n;e.loading!==void 0&&(n=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let i=t instanceof Promise?t:t(),o=n!==void 0;return i.then(async s=>{if(uL(s)&&!s.ok){o=!1;let l=typeof e.error=="function"?await e.error(`HTTP error! status: ${s.status}`):e.error,c=typeof e.description=="function"?await e.description(`HTTP error! status: ${s.status}`):e.description;this.create({id:n,type:"error",message:l,description:c})}else if(e.success!==void 0){o=!1;let l=typeof e.success=="function"?await e.success(s):e.success,c=typeof e.description=="function"?await e.description(s):e.description;this.create({id:n,type:"success",message:l,description:c})}}).catch(async s=>{if(e.error!==void 0){o=!1;let l=typeof e.error=="function"?await e.error(s):e.error,c=typeof e.description=="function"?await e.description(s):e.description;this.create({id:n,type:"error",message:l,description:c})}}).finally(()=>{var s;o&&(this.dismiss(n),n=void 0),(s=e.finally)==null||s.call(e)}),n},this.custom=(t,e)=>{let n=(e==null?void 0:e.id)||Hh++;return this.create({jsx:t(n),id:n,...e}),n},this.subscribers=[],this.toasts=[]}},Ie=new aL,lL=(t,e)=>{let n=(e==null?void 0:e.id)||Hh++;return Ie.addToast({title:t,...e,id:n}),n},uL=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",cL=lL,dL=()=>Ie.toasts;Object.assign(cL,{success:Ie.success,info:Ie.info,warning:Ie.warning,error:Ie.error,custom:Ie.custom,message:Ie.message,promise:Ie.promise,dismiss:Ie.dismiss,loading:Ie.loading},{getHistory:dL});function hL(t,{insertAt:e}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",e==="top"&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}hL(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} +`);function Vl(t){return t.label!==void 0}var fL=3,pL="32px",mL=4e3,gL=356,vL=14,yL=20,_L=200;function wL(...t){return t.filter(Boolean).join(" ")}var xL=t=>{var e,n,i,o,s,l,c,d,f,g;let{invert:m,toast:p,unstyled:y,interacting:P,setHeights:b,visibleToasts:T,heights:x,index:_,toasts:S,expanded:M,removeToast:R,defaultRichColors:I,closeButton:j,style:z,cancelButtonStyle:H,actionButtonStyle:$,className:J="",descriptionClassName:Z="",duration:wt,position:lt,gap:it,loadingIcon:tt,expandByDefault:nt,classNames:N,icons:G,closeButtonAriaLabel:V="Close toast",pauseWhenPageIsHidden:U,cn:Q}=t,[st,ht]=W.useState(!1),[ct,q]=W.useState(!1),[Vt,ie]=W.useState(!1),[cn,Ge]=W.useState(!1),[mi,Ke]=W.useState(0),[dn,ar]=W.useState(0),lr=W.useRef(null),hn=W.useRef(null),ur=_===0,gi=_+1<=T,Qt=p.type,Un=p.dismissible!==!1,ms=p.className||"",Ja=p.descriptionClassName||"",cr=W.useMemo(()=>x.findIndex(ut=>ut.toastId===p.id)||0,[x,p.id]),Rc=W.useMemo(()=>{var ut;return(ut=p.closeButton)!=null?ut:j},[p.closeButton,j]),tl=W.useMemo(()=>p.duration||wt||mL,[p.duration,wt]),dr=W.useRef(0),$n=W.useRef(0),gs=W.useRef(0),vi=W.useRef(null),[vs,el]=lt.split("-"),nl=W.useMemo(()=>x.reduce((ut,Et,Ct)=>Ct>=cr?ut:ut+Et.height,0),[x,cr]),ys=sL(),_s=p.invert||m,Kr=Qt==="loading";$n.current=W.useMemo(()=>cr*it+nl,[cr,nl]),W.useEffect(()=>{ht(!0)},[]),W.useLayoutEffect(()=>{if(!st)return;let ut=hn.current,Et=ut.style.height;ut.style.height="auto";let Ct=ut.getBoundingClientRect().height;ut.style.height=Et,ar(Ct),b(Oe=>Oe.find(Ne=>Ne.toastId===p.id)?Oe.map(Ne=>Ne.toastId===p.id?{...Ne,height:Ct}:Ne):[{toastId:p.id,height:Ct,position:p.position},...Oe])},[st,p.title,p.description,b,p.id]);let Cn=W.useCallback(()=>{q(!0),Ke($n.current),b(ut=>ut.filter(Et=>Et.toastId!==p.id)),setTimeout(()=>{R(p)},_L)},[p,R,b,$n]);W.useEffect(()=>{if(p.promise&&Qt==="loading"||p.duration===1/0||p.type==="loading")return;let ut,Et=tl;return M||P||U&&ys?(()=>{if(gs.current{var Ct;(Ct=p.onAutoClose)==null||Ct.call(p,p),Cn()},Et)),()=>clearTimeout(ut)},[M,P,nt,p,tl,Cn,p.promise,Qt,U,ys]),W.useEffect(()=>{let ut=hn.current;if(ut){let Et=ut.getBoundingClientRect().height;return ar(Et),b(Ct=>[{toastId:p.id,height:Et,position:p.position},...Ct]),()=>b(Ct=>Ct.filter(Oe=>Oe.toastId!==p.id))}},[b,p.id]),W.useEffect(()=>{p.delete&&Cn()},[Cn,p.delete]);function hr(){return G!=null&&G.loading?W.createElement("div",{className:"sonner-loader","data-visible":Qt==="loading"},G.loading):tt?W.createElement("div",{className:"sonner-loader","data-visible":Qt==="loading"},tt):W.createElement(eL,{visible:Qt==="loading"})}return W.createElement("li",{"aria-live":p.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:hn,className:Q(J,ms,N==null?void 0:N.toast,(e=p==null?void 0:p.classNames)==null?void 0:e.toast,N==null?void 0:N.default,N==null?void 0:N[Qt],(n=p==null?void 0:p.classNames)==null?void 0:n[Qt]),"data-sonner-toast":"","data-rich-colors":(i=p.richColors)!=null?i:I,"data-styled":!(p.jsx||p.unstyled||y),"data-mounted":st,"data-promise":!!p.promise,"data-removed":ct,"data-visible":gi,"data-y-position":vs,"data-x-position":el,"data-index":_,"data-front":ur,"data-swiping":Vt,"data-dismissible":Un,"data-type":Qt,"data-invert":_s,"data-swipe-out":cn,"data-expanded":!!(M||nt&&st),style:{"--index":_,"--toasts-before":_,"--z-index":S.length-_,"--offset":`${ct?mi:$n.current}px`,"--initial-height":nt?"auto":`${dn}px`,...z,...p.style},onPointerDown:ut=>{Kr||!Un||(lr.current=new Date,Ke($n.current),ut.target.setPointerCapture(ut.pointerId),ut.target.tagName!=="BUTTON"&&(ie(!0),vi.current={x:ut.clientX,y:ut.clientY}))},onPointerUp:()=>{var ut,Et,Ct,Oe;if(cn||!Un)return;vi.current=null;let Ne=Number(((ut=hn.current)==null?void 0:ut.style.getPropertyValue("--swipe-amount").replace("px",""))||0),Qr=new Date().getTime()-((Et=lr.current)==null?void 0:Et.getTime()),Ac=Math.abs(Ne)/Qr;if(Math.abs(Ne)>=yL||Ac>.11){Ke($n.current),(Ct=p.onDismiss)==null||Ct.call(p,p),Cn(),Ge(!0);return}(Oe=hn.current)==null||Oe.style.setProperty("--swipe-amount","0px"),ie(!1)},onPointerMove:ut=>{var Et;if(!vi.current||!Un)return;let Ct=ut.clientY-vi.current.y,Oe=ut.clientX-vi.current.x,Ne=(vs==="top"?Math.min:Math.max)(0,Ct),Qr=ut.pointerType==="touch"?10:2;Math.abs(Ne)>Qr?(Et=hn.current)==null||Et.style.setProperty("--swipe-amount",`${Ct}px`):Math.abs(Oe)>Qr&&(vi.current=null)}},Rc&&!p.jsx?W.createElement("button",{"aria-label":V,"data-disabled":Kr,"data-close-button":!0,onClick:Kr||!Un?()=>{}:()=>{var ut;Cn(),(ut=p.onDismiss)==null||ut.call(p,p)},className:Q(N==null?void 0:N.closeButton,(o=p==null?void 0:p.classNames)==null?void 0:o.closeButton)},W.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},W.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),W.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,p.jsx||W.isValidElement(p.title)?p.jsx||p.title:W.createElement(W.Fragment,null,Qt||p.icon||p.promise?W.createElement("div",{"data-icon":"",className:Q(N==null?void 0:N.icon,(s=p==null?void 0:p.classNames)==null?void 0:s.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||hr():null,p.type!=="loading"?p.icon||(G==null?void 0:G[Qt])||JE(Qt):null):null,W.createElement("div",{"data-content":"",className:Q(N==null?void 0:N.content,(l=p==null?void 0:p.classNames)==null?void 0:l.content)},W.createElement("div",{"data-title":"",className:Q(N==null?void 0:N.title,(c=p==null?void 0:p.classNames)==null?void 0:c.title)},p.title),p.description?W.createElement("div",{"data-description":"",className:Q(Z,Ja,N==null?void 0:N.description,(d=p==null?void 0:p.classNames)==null?void 0:d.description)},p.description):null),W.isValidElement(p.cancel)?p.cancel:p.cancel&&Vl(p.cancel)?W.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||H,onClick:ut=>{var Et,Ct;Vl(p.cancel)&&Un&&((Ct=(Et=p.cancel).onClick)==null||Ct.call(Et,ut),Cn())},className:Q(N==null?void 0:N.cancelButton,(f=p==null?void 0:p.classNames)==null?void 0:f.cancelButton)},p.cancel.label):null,W.isValidElement(p.action)?p.action:p.action&&Vl(p.action)?W.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||$,onClick:ut=>{var Et,Ct;Vl(p.action)&&(ut.defaultPrevented||((Ct=(Et=p.action).onClick)==null||Ct.call(Et,ut),Cn()))},className:Q(N==null?void 0:N.actionButton,(g=p==null?void 0:p.classNames)==null?void 0:g.actionButton)},p.action.label):null))};function Ov(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}var PL=t=>{let{invert:e,position:n="bottom-right",hotkey:i=["altKey","KeyT"],expand:o,closeButton:s,className:l,offset:c,theme:d="light",richColors:f,duration:g,style:m,visibleToasts:p=fL,toastOptions:y,dir:P=Ov(),gap:b=vL,loadingIcon:T,icons:x,containerAriaLabel:_="Notifications",pauseWhenPageIsHidden:S,cn:M=wL}=t,[R,I]=W.useState([]),j=W.useMemo(()=>Array.from(new Set([n].concat(R.filter(U=>U.position).map(U=>U.position)))),[R,n]),[z,H]=W.useState([]),[$,J]=W.useState(!1),[Z,wt]=W.useState(!1),[lt,it]=W.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),tt=W.useRef(null),nt=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=W.useRef(null),G=W.useRef(!1),V=W.useCallback(U=>{var Q;(Q=R.find(st=>st.id===U.id))!=null&&Q.delete||Ie.dismiss(U.id),I(st=>st.filter(({id:ht})=>ht!==U.id))},[R]);return W.useEffect(()=>Ie.subscribe(U=>{if(U.dismiss){I(Q=>Q.map(st=>st.id===U.id?{...st,delete:!0}:st));return}setTimeout(()=>{KE.flushSync(()=>{I(Q=>{let st=Q.findIndex(ht=>ht.id===U.id);return st!==-1?[...Q.slice(0,st),{...Q[st],...U},...Q.slice(st+1)]:[U,...Q]})})})}),[]),W.useEffect(()=>{if(d!=="system"){it(d);return}d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?it("dark"):it("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:U})=>{it(U?"dark":"light")})},[d]),W.useEffect(()=>{R.length<=1&&J(!1)},[R]),W.useEffect(()=>{let U=Q=>{var st,ht;i.every(ct=>Q[ct]||Q.code===ct)&&(J(!0),(st=tt.current)==null||st.focus()),Q.code==="Escape"&&(document.activeElement===tt.current||(ht=tt.current)!=null&&ht.contains(document.activeElement))&&J(!1)};return document.addEventListener("keydown",U),()=>document.removeEventListener("keydown",U)},[i]),W.useEffect(()=>{if(tt.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,G.current=!1)}},[tt.current]),R.length?W.createElement("section",{"aria-label":`${_} ${nt}`,tabIndex:-1},j.map((U,Q)=>{var st;let[ht,ct]=U.split("-");return W.createElement("ol",{key:U,dir:P==="auto"?Ov():P,tabIndex:-1,ref:tt,className:l,"data-sonner-toaster":!0,"data-theme":lt,"data-y-position":ht,"data-x-position":ct,style:{"--front-toast-height":`${((st=z[0])==null?void 0:st.height)||0}px`,"--offset":typeof c=="number"?`${c}px`:c||pL,"--width":`${gL}px`,"--gap":`${b}px`,...m},onBlur:q=>{G.current&&!q.currentTarget.contains(q.relatedTarget)&&(G.current=!1,N.current&&(N.current.focus({preventScroll:!0}),N.current=null))},onFocus:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||G.current||(G.current=!0,N.current=q.relatedTarget)},onMouseEnter:()=>J(!0),onMouseMove:()=>J(!0),onMouseLeave:()=>{Z||J(!1)},onPointerDown:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||wt(!0)},onPointerUp:()=>wt(!1)},R.filter(q=>!q.position&&Q===0||q.position===U).map((q,Vt)=>{var ie,cn;return W.createElement(xL,{key:q.id,icons:x,index:Vt,toast:q,defaultRichColors:f,duration:(ie=y==null?void 0:y.duration)!=null?ie:g,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:e,visibleToasts:p,closeButton:(cn=y==null?void 0:y.closeButton)!=null?cn:s,interacting:Z,position:U,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,removeToast:V,toasts:R.filter(Ge=>Ge.position==q.position),heights:z.filter(Ge=>Ge.position==q.position),setHeights:H,expandByDefault:o,gap:b,loadingIcon:T,expanded:$,pauseWhenPageIsHidden:S,cn:M})}))})):null};const SL=({...t})=>{const{theme:e="system"}=XE();return E.jsx(PL,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t})};function so(t,e,{checkForDefaultPrevented:n=!0}={}){return function(o){if(t==null||t(o),n===!1||!o.defaultPrevented)return e==null?void 0:e(o)}}function bL(t,e){typeof t=="function"?t(e):t!=null&&(t.current=e)}function CL(...t){return e=>t.forEach(n=>bL(n,e))}function ax(...t){return C.useCallback(CL(...t),t)}function TL(t,e=[]){let n=[];function i(s,l){const c=C.createContext(l),d=n.length;n=[...n,l];function f(m){const{scope:p,children:y,...P}=m,b=(p==null?void 0:p[t][d])||c,T=C.useMemo(()=>P,Object.values(P));return E.jsx(b.Provider,{value:T,children:y})}function g(m,p){const y=(p==null?void 0:p[t][d])||c,P=C.useContext(y);if(P)return P;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${s}\``)}return f.displayName=s+"Provider",[f,g]}const o=()=>{const s=n.map(l=>C.createContext(l));return function(c){const d=(c==null?void 0:c[t])||s;return C.useMemo(()=>({[`__scope${t}`]:{...c,[t]:d}}),[c,d])}};return o.scopeName=t,[i,EL(o,...e)]}function EL(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const i=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const l=i.reduce((c,{useScope:d,scopeName:f})=>{const m=d(s)[`__scope${f}`];return{...c,...m}},{});return C.useMemo(()=>({[`__scope${e.scopeName}`]:l}),[l])}};return n.scopeName=e.scopeName,n}function Nd(t,e,{checkForDefaultPrevented:n=!0}={}){return function(o){if(t==null||t(o),n===!1||!o.defaultPrevented)return e==null?void 0:e(o)}}function LL(t,e){typeof t=="function"?t(e):t!=null&&(t.current=e)}function kL(...t){return e=>t.forEach(n=>LL(n,e))}var us=C.forwardRef((t,e)=>{const{children:n,...i}=t,o=C.Children.toArray(n),s=o.find(ML);if(s){const l=s.props.children,c=o.map(d=>d===s?C.Children.count(l)>1?C.Children.only(null):C.isValidElement(l)?l.props.children:null:d);return E.jsx(Zh,{...i,ref:e,children:C.isValidElement(l)?C.cloneElement(l,void 0,c):null})}return E.jsx(Zh,{...i,ref:e,children:n})});us.displayName="Slot";var Zh=C.forwardRef((t,e)=>{const{children:n,...i}=t;if(C.isValidElement(n)){const o=AL(n);return C.cloneElement(n,{...RL(i,n.props),ref:e?kL(e,o):o})}return C.Children.count(n)>1?C.Children.only(null):null});Zh.displayName="SlotClone";var lx=({children:t})=>E.jsx(E.Fragment,{children:t});function ML(t){return C.isValidElement(t)&&t.type===lx}function RL(t,e){const n={...e};for(const i in e){const o=t[i],s=e[i];/^on[A-Z]/.test(i)?o&&s?n[i]=(...c)=>{s(...c),o(...c)}:o&&(n[i]=o):i==="style"?n[i]={...o,...s}:i==="className"&&(n[i]=[o,s].filter(Boolean).join(" "))}return{...t,...n}}function AL(t){var i,o;let e=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var OL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ux=OL.reduce((t,e)=>{const n=C.forwardRef((i,o)=>{const{asChild:s,...l}=i,c=s?us:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(c,{...l,ref:o})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function NL(t,e){t&&ls.flushSync(()=>t.dispatchEvent(e))}function zL(t,e){typeof t=="function"?t(e):t!=null&&(t.current=e)}function DL(...t){return e=>t.forEach(n=>zL(n,e))}function cx(...t){return C.useCallback(DL(...t),t)}function dx(t){const e=C.useRef(t);return C.useEffect(()=>{e.current=t}),C.useMemo(()=>(...n)=>{var i;return(i=e.current)==null?void 0:i.call(e,...n)},[])}function IL(t){const e=C.useRef(t);return C.useEffect(()=>{e.current=t}),C.useMemo(()=>(...n)=>{var i;return(i=e.current)==null?void 0:i.call(e,...n)},[])}function jL(t,e=globalThis==null?void 0:globalThis.document){const n=IL(t);C.useEffect(()=>{const i=o=>{o.key==="Escape"&&n(o)};return e.addEventListener("keydown",i,{capture:!0}),()=>e.removeEventListener("keydown",i,{capture:!0})},[n,e])}var BL="DismissableLayer",Gh="dismissableLayer.update",FL="dismissableLayer.pointerDownOutside",VL="dismissableLayer.focusOutside",Nv,hx=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fx=C.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...d}=t,f=C.useContext(hx),[g,m]=C.useState(null),p=(g==null?void 0:g.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=C.useState({}),P=cx(e,j=>m(j)),b=Array.from(f.layers),[T]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),x=b.indexOf(T),_=g?b.indexOf(g):-1,S=f.layersWithOutsidePointerEventsDisabled.size>0,M=_>=x,R=WL(j=>{const z=j.target,H=[...f.branches].some($=>$.contains(z));!M||H||(o==null||o(j),l==null||l(j),j.defaultPrevented||c==null||c())},p),I=HL(j=>{const z=j.target;[...f.branches].some($=>$.contains(z))||(s==null||s(j),l==null||l(j),j.defaultPrevented||c==null||c())},p);return jL(j=>{_===f.layers.size-1&&(i==null||i(j),!j.defaultPrevented&&c&&(j.preventDefault(),c()))},p),C.useEffect(()=>{if(g)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Nv=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(g)),f.layers.add(g),zv(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Nv)}},[g,p,n,f]),C.useEffect(()=>()=>{g&&(f.layers.delete(g),f.layersWithOutsidePointerEventsDisabled.delete(g),zv())},[g,f]),C.useEffect(()=>{const j=()=>y({});return document.addEventListener(Gh,j),()=>document.removeEventListener(Gh,j)},[]),E.jsx(ux.div,{...d,ref:P,style:{pointerEvents:S?M?"auto":"none":void 0,...t.style},onFocusCapture:Nd(t.onFocusCapture,I.onFocusCapture),onBlurCapture:Nd(t.onBlurCapture,I.onBlurCapture),onPointerDownCapture:Nd(t.onPointerDownCapture,R.onPointerDownCapture)})});fx.displayName=BL;var UL="DismissableLayerBranch",$L=C.forwardRef((t,e)=>{const n=C.useContext(hx),i=C.useRef(null),o=cx(e,i);return C.useEffect(()=>{const s=i.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),E.jsx(ux.div,{...t,ref:o})});$L.displayName=UL;function WL(t,e=globalThis==null?void 0:globalThis.document){const n=dx(t),i=C.useRef(!1),o=C.useRef(()=>{});return C.useEffect(()=>{const s=c=>{if(c.target&&!i.current){let d=function(){px(FL,n,f,{discrete:!0})};const f={originalEvent:c};c.pointerType==="touch"?(e.removeEventListener("click",o.current),o.current=d,e.addEventListener("click",o.current,{once:!0})):d()}else e.removeEventListener("click",o.current);i.current=!1},l=window.setTimeout(()=>{e.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),e.removeEventListener("pointerdown",s),e.removeEventListener("click",o.current)}},[e,n]),{onPointerDownCapture:()=>i.current=!0}}function HL(t,e=globalThis==null?void 0:globalThis.document){const n=dx(t),i=C.useRef(!1);return C.useEffect(()=>{const o=s=>{s.target&&!i.current&&px(VL,n,{originalEvent:s},{discrete:!1})};return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function zv(){const t=new CustomEvent(Gh);document.dispatchEvent(t)}function px(t,e,n,{discrete:i}){const o=n.originalEvent.target,s=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&o.addEventListener(t,e,{once:!0}),i?NL(o,s):o.dispatchEvent(s)}const ZL=["top","right","bottom","left"],qi=Math.min,Be=Math.max,Bu=Math.round,Ul=Math.floor,Xi=t=>({x:t,y:t}),GL={left:"right",right:"left",bottom:"top",top:"bottom"},KL={start:"end",end:"start"};function Kh(t,e,n){return Be(t,qi(e,n))}function ci(t,e){return typeof t=="function"?t(e):t}function di(t){return t.split("-")[0]}function cs(t){return t.split("-")[1]}function kp(t){return t==="x"?"y":"x"}function Mp(t){return t==="y"?"height":"width"}function ds(t){return["top","bottom"].includes(di(t))?"y":"x"}function Rp(t){return kp(ds(t))}function QL(t,e,n){n===void 0&&(n=!1);const i=cs(t),o=Rp(t),s=Mp(o);let l=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(l=Fu(l)),[l,Fu(l)]}function YL(t){const e=Fu(t);return[Qh(t),e,Qh(e)]}function Qh(t){return t.replace(/start|end/g,e=>KL[e])}function qL(t,e,n){const i=["left","right"],o=["right","left"],s=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?s:l;default:return[]}}function XL(t,e,n,i){const o=cs(t);let s=qL(di(t),n==="start",i);return o&&(s=s.map(l=>l+"-"+o),e&&(s=s.concat(s.map(Qh)))),s}function Fu(t){return t.replace(/left|right|bottom|top/g,e=>GL[e])}function JL(t){return{top:0,right:0,bottom:0,left:0,...t}}function mx(t){return typeof t!="number"?JL(t):{top:t,right:t,bottom:t,left:t}}function Vu(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Dv(t,e,n){let{reference:i,floating:o}=t;const s=ds(e),l=Rp(e),c=Mp(l),d=di(e),f=s==="y",g=i.x+i.width/2-o.width/2,m=i.y+i.height/2-o.height/2,p=i[c]/2-o[c]/2;let y;switch(d){case"top":y={x:g,y:i.y-o.height};break;case"bottom":y={x:g,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:m};break;case"left":y={x:i.x-o.width,y:m};break;default:y={x:i.x,y:i.y}}switch(cs(e)){case"start":y[l]-=p*(n&&f?-1:1);break;case"end":y[l]+=p*(n&&f?-1:1);break}return y}const tk=async(t,e,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:l}=n,c=s.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(e));let f=await l.getElementRects({reference:t,floating:e,strategy:o}),{x:g,y:m}=Dv(f,i,d),p=i,y={},P=0;for(let b=0;b({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:o,rects:s,platform:l,elements:c,middlewareData:d}=e,{element:f,padding:g=0}=ci(t,e)||{};if(f==null)return{};const m=mx(g),p={x:n,y:i},y=Rp(o),P=Mp(y),b=await l.getDimensions(f),T=y==="y",x=T?"top":"left",_=T?"bottom":"right",S=T?"clientHeight":"clientWidth",M=s.reference[P]+s.reference[y]-p[y]-s.floating[P],R=p[y]-s.reference[y],I=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f));let j=I?I[S]:0;(!j||!await(l.isElement==null?void 0:l.isElement(I)))&&(j=c.floating[S]||s.floating[P]);const z=M/2-R/2,H=j/2-b[P]/2-1,$=qi(m[x],H),J=qi(m[_],H),Z=$,wt=j-b[P]-J,lt=j/2-b[P]/2+z,it=Kh(Z,lt,wt),tt=!d.arrow&&cs(o)!=null&<!==it&&s.reference[P]/2-(ltZ<=0)){var H,$;const Z=(((H=s.flip)==null?void 0:H.index)||0)+1,wt=R[Z];if(wt)return{data:{index:Z,overflows:z},reset:{placement:wt}};let lt=($=z.filter(it=>it.overflows[0]<=0).sort((it,tt)=>it.overflows[1]-tt.overflows[1])[0])==null?void 0:$.placement;if(!lt)switch(y){case"bestFit":{var J;const it=(J=z.map(tt=>[tt.placement,tt.overflows.filter(nt=>nt>0).reduce((nt,N)=>nt+N,0)]).sort((tt,nt)=>tt[1]-nt[1])[0])==null?void 0:J[0];it&&(lt=it);break}case"initialPlacement":lt=c;break}if(o!==lt)return{reset:{placement:lt}}}return{}}}};function Iv(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function jv(t){return ZL.some(e=>t[e]>=0)}const ik=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:i="referenceHidden",...o}=ci(t,e);switch(i){case"referenceHidden":{const s=await ka(e,{...o,elementContext:"reference"}),l=Iv(s,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:jv(l)}}}case"escaped":{const s=await ka(e,{...o,altBoundary:!0}),l=Iv(s,n.floating);return{data:{escapedOffsets:l,escaped:jv(l)}}}default:return{}}}}};async function rk(t,e){const{placement:n,platform:i,elements:o}=t,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),l=di(n),c=cs(n),d=ds(n)==="y",f=["left","top"].includes(l)?-1:1,g=s&&d?-1:1,m=ci(e,t);let{mainAxis:p,crossAxis:y,alignmentAxis:P}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return c&&typeof P=="number"&&(y=c==="end"?P*-1:P),d?{x:y*g,y:p*f}:{x:p*f,y:y*g}}const ok=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:o,y:s,placement:l,middlewareData:c}=e,d=await rk(e,t);return l===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:o+d.x,y:s+d.y,data:{...d,placement:l}}}}},sk=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:T=>{let{x,y:_}=T;return{x,y:_}}},...d}=ci(t,e),f={x:n,y:i},g=await ka(e,d),m=ds(di(o)),p=kp(m);let y=f[p],P=f[m];if(s){const T=p==="y"?"top":"left",x=p==="y"?"bottom":"right",_=y+g[T],S=y-g[x];y=Kh(_,y,S)}if(l){const T=m==="y"?"top":"left",x=m==="y"?"bottom":"right",_=P+g[T],S=P-g[x];P=Kh(_,P,S)}const b=c.fn({...e,[p]:y,[m]:P});return{...b,data:{x:b.x-n,y:b.y-i}}}}},ak=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:i,placement:o,rects:s,middlewareData:l}=e,{offset:c=0,mainAxis:d=!0,crossAxis:f=!0}=ci(t,e),g={x:n,y:i},m=ds(o),p=kp(m);let y=g[p],P=g[m];const b=ci(c,e),T=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(d){const S=p==="y"?"height":"width",M=s.reference[p]-s.floating[S]+T.mainAxis,R=s.reference[p]+s.reference[S]-T.mainAxis;yR&&(y=R)}if(f){var x,_;const S=p==="y"?"width":"height",M=["top","left"].includes(di(o)),R=s.reference[m]-s.floating[S]+(M&&((x=l.offset)==null?void 0:x[m])||0)+(M?0:T.crossAxis),I=s.reference[m]+s.reference[S]+(M?0:((_=l.offset)==null?void 0:_[m])||0)-(M?T.crossAxis:0);PI&&(P=I)}return{[p]:y,[m]:P}}}},lk=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:i,platform:o,elements:s}=e,{apply:l=()=>{},...c}=ci(t,e),d=await ka(e,c),f=di(n),g=cs(n),m=ds(n)==="y",{width:p,height:y}=i.floating;let P,b;f==="top"||f==="bottom"?(P=f,b=g===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(b=f,P=g==="end"?"top":"bottom");const T=y-d[P],x=p-d[b],_=!e.middlewareData.shift;let S=T,M=x;if(m){const I=p-d.left-d.right;M=g||_?qi(x,I):I}else{const I=y-d.top-d.bottom;S=g||_?qi(T,I):I}if(_&&!g){const I=Be(d.left,0),j=Be(d.right,0),z=Be(d.top,0),H=Be(d.bottom,0);m?M=p-2*(I!==0||j!==0?I+j:Be(d.left,d.right)):S=y-2*(z!==0||H!==0?z+H:Be(d.top,d.bottom))}await l({...e,availableWidth:M,availableHeight:S});const R=await o.getDimensions(s.floating);return p!==R.width||y!==R.height?{reset:{rects:!0}}:{}}}};function Ji(t){return gx(t)?(t.nodeName||"").toLowerCase():"#document"}function Ue(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function pi(t){var e;return(e=(gx(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function gx(t){return t instanceof Node||t instanceof Ue(t).Node}function hi(t){return t instanceof Element||t instanceof Ue(t).Element}function Vn(t){return t instanceof HTMLElement||t instanceof Ue(t).HTMLElement}function Bv(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ue(t).ShadowRoot}function Ga(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=un(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(o)}function uk(t){return["table","td","th"].includes(Ji(t))}function Ap(t){const e=Op(),n=un(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function ck(t){let e=Jo(t);for(;Vn(e)&&!pc(e);){if(Ap(e))return e;e=Jo(e)}return null}function Op(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function pc(t){return["html","body","#document"].includes(Ji(t))}function un(t){return Ue(t).getComputedStyle(t)}function mc(t){return hi(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Jo(t){if(Ji(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Bv(t)&&t.host||pi(t);return Bv(e)?e.host:e}function vx(t){const e=Jo(t);return pc(e)?t.ownerDocument?t.ownerDocument.body:t.body:Vn(e)&&Ga(e)?e:vx(e)}function Ma(t,e,n){var i;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=vx(t),s=o===((i=t.ownerDocument)==null?void 0:i.body),l=Ue(o);return s?e.concat(l,l.visualViewport||[],Ga(o)?o:[],l.frameElement&&n?Ma(l.frameElement):[]):e.concat(o,Ma(o,[],n))}function yx(t){const e=un(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=Vn(t),s=o?t.offsetWidth:n,l=o?t.offsetHeight:i,c=Bu(n)!==s||Bu(i)!==l;return c&&(n=s,i=l),{width:n,height:i,$:c}}function Np(t){return hi(t)?t:t.contextElement}function Ro(t){const e=Np(t);if(!Vn(e))return Xi(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:s}=yx(e);let l=(s?Bu(n.width):n.width)/i,c=(s?Bu(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const dk=Xi(0);function _x(t){const e=Ue(t);return!Op()||!e.visualViewport?dk:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function hk(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Ue(t)?!1:e}function Wr(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),s=Np(t);let l=Xi(1);e&&(i?hi(i)&&(l=Ro(i)):l=Ro(t));const c=hk(s,n,i)?_x(s):Xi(0);let d=(o.left+c.x)/l.x,f=(o.top+c.y)/l.y,g=o.width/l.x,m=o.height/l.y;if(s){const p=Ue(s),y=i&&hi(i)?Ue(i):i;let P=p,b=P.frameElement;for(;b&&i&&y!==P;){const T=Ro(b),x=b.getBoundingClientRect(),_=un(b),S=x.left+(b.clientLeft+parseFloat(_.paddingLeft))*T.x,M=x.top+(b.clientTop+parseFloat(_.paddingTop))*T.y;d*=T.x,f*=T.y,g*=T.x,m*=T.y,d+=S,f+=M,P=Ue(b),b=P.frameElement}}return Vu({width:g,height:m,x:d,y:f})}const fk=[":popover-open",":modal"];function wx(t){return fk.some(e=>{try{return t.matches(e)}catch{return!1}})}function pk(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const s=o==="fixed",l=pi(i),c=e?wx(e.floating):!1;if(i===l||c&&s)return n;let d={scrollLeft:0,scrollTop:0},f=Xi(1);const g=Xi(0),m=Vn(i);if((m||!m&&!s)&&((Ji(i)!=="body"||Ga(l))&&(d=mc(i)),Vn(i))){const p=Wr(i);f=Ro(i),g.x=p.x+i.clientLeft,g.y=p.y+i.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+g.x,y:n.y*f.y-d.scrollTop*f.y+g.y}}function mk(t){return Array.from(t.getClientRects())}function xx(t){return Wr(pi(t)).left+mc(t).scrollLeft}function gk(t){const e=pi(t),n=mc(t),i=t.ownerDocument.body,o=Be(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),s=Be(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let l=-n.scrollLeft+xx(t);const c=-n.scrollTop;return un(i).direction==="rtl"&&(l+=Be(e.clientWidth,i.clientWidth)-o),{width:o,height:s,x:l,y:c}}function vk(t,e){const n=Ue(t),i=pi(t),o=n.visualViewport;let s=i.clientWidth,l=i.clientHeight,c=0,d=0;if(o){s=o.width,l=o.height;const f=Op();(!f||f&&e==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:s,height:l,x:c,y:d}}function yk(t,e){const n=Wr(t,!0,e==="fixed"),i=n.top+t.clientTop,o=n.left+t.clientLeft,s=Vn(t)?Ro(t):Xi(1),l=t.clientWidth*s.x,c=t.clientHeight*s.y,d=o*s.x,f=i*s.y;return{width:l,height:c,x:d,y:f}}function Fv(t,e,n){let i;if(e==="viewport")i=vk(t,n);else if(e==="document")i=gk(pi(t));else if(hi(e))i=yk(e,n);else{const o=_x(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return Vu(i)}function Px(t,e){const n=Jo(t);return n===e||!hi(n)||pc(n)?!1:un(n).position==="fixed"||Px(n,e)}function _k(t,e){const n=e.get(t);if(n)return n;let i=Ma(t,[],!1).filter(c=>hi(c)&&Ji(c)!=="body"),o=null;const s=un(t).position==="fixed";let l=s?Jo(t):t;for(;hi(l)&&!pc(l);){const c=un(l),d=Ap(l);!d&&c.position==="fixed"&&(o=null),(s?!d&&!o:!d&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ga(l)&&!d&&Px(t,l))?i=i.filter(g=>g!==l):o=c,l=Jo(l)}return e.set(t,i),i}function wk(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const l=[...n==="clippingAncestors"?_k(e,this._c):[].concat(n),i],c=l[0],d=l.reduce((f,g)=>{const m=Fv(e,g,o);return f.top=Be(m.top,f.top),f.right=qi(m.right,f.right),f.bottom=qi(m.bottom,f.bottom),f.left=Be(m.left,f.left),f},Fv(e,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function xk(t){const{width:e,height:n}=yx(t);return{width:e,height:n}}function Pk(t,e,n){const i=Vn(e),o=pi(e),s=n==="fixed",l=Wr(t,!0,s,e);let c={scrollLeft:0,scrollTop:0};const d=Xi(0);if(i||!i&&!s)if((Ji(e)!=="body"||Ga(o))&&(c=mc(e)),i){const m=Wr(e,!0,s,e);d.x=m.x+e.clientLeft,d.y=m.y+e.clientTop}else o&&(d.x=xx(o));const f=l.left+c.scrollLeft-d.x,g=l.top+c.scrollTop-d.y;return{x:f,y:g,width:l.width,height:l.height}}function Vv(t,e){return!Vn(t)||un(t).position==="fixed"?null:e?e(t):t.offsetParent}function Sx(t,e){const n=Ue(t);if(!Vn(t)||wx(t))return n;let i=Vv(t,e);for(;i&&uk(i)&&un(i).position==="static";)i=Vv(i,e);return i&&(Ji(i)==="html"||Ji(i)==="body"&&un(i).position==="static"&&!Ap(i))?n:i||ck(t)||n}const Sk=async function(t){const e=this.getOffsetParent||Sx,n=this.getDimensions;return{reference:Pk(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await n(t.floating)}}};function bk(t){return un(t).direction==="rtl"}const Ck={convertOffsetParentRelativeRectToViewportRelativeRect:pk,getDocumentElement:pi,getClippingRect:wk,getOffsetParent:Sx,getElementRects:Sk,getClientRects:mk,getDimensions:xk,getScale:Ro,isElement:hi,isRTL:bk};function Tk(t,e){let n=null,i;const o=pi(t);function s(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function l(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),s();const{left:f,top:g,width:m,height:p}=t.getBoundingClientRect();if(c||e(),!m||!p)return;const y=Ul(g),P=Ul(o.clientWidth-(f+m)),b=Ul(o.clientHeight-(g+p)),T=Ul(f),_={rootMargin:-y+"px "+-P+"px "+-b+"px "+-T+"px",threshold:Be(0,qi(1,d))||1};let S=!0;function M(R){const I=R[0].intersectionRatio;if(I!==d){if(!S)return l();I?l(!1,I):i=setTimeout(()=>{l(!1,1e-7)},100)}S=!1}try{n=new IntersectionObserver(M,{..._,root:o.ownerDocument})}catch{n=new IntersectionObserver(M,_)}n.observe(t)}return l(!0),s}function Ek(t,e,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=i,f=Np(t),g=o||s?[...f?Ma(f):[],...Ma(e)]:[];g.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const m=f&&c?Tk(f,n):null;let p=-1,y=null;l&&(y=new ResizeObserver(x=>{let[_]=x;_&&_.target===f&&y&&(y.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var S;(S=y)==null||S.observe(e)})),n()}),f&&!d&&y.observe(f),y.observe(e));let P,b=d?Wr(t):null;d&&T();function T(){const x=Wr(t);b&&(x.x!==b.x||x.y!==b.y||x.width!==b.width||x.height!==b.height)&&n(),b=x,P=requestAnimationFrame(T)}return n(),()=>{var x;g.forEach(_=>{o&&_.removeEventListener("scroll",n),s&&_.removeEventListener("resize",n)}),m==null||m(),(x=y)==null||x.disconnect(),y=null,d&&cancelAnimationFrame(P)}}const Lk=sk,kk=nk,Mk=lk,Rk=ik,Uv=ek,Ak=ak,Ok=(t,e,n)=>{const i=new Map,o={platform:Ck,...n},s={...o.platform,_c:i};return tk(t,e,{...o,platform:s})},Nk=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:i,padding:o}=typeof t=="function"?t(n):t;return i&&e(i)?i.current!=null?Uv({element:i.current,padding:o}).fn(n):{}:i?Uv({element:i,padding:o}).fn(n):{}}}};var au=typeof document<"u"?C.useLayoutEffect:C.useEffect;function Uu(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,i,o;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(i=n;i--!==0;)if(!Uu(t[i],e[i]))return!1;return!0}if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(e,o[i]))return!1;for(i=n;i--!==0;){const s=o[i];if(!(s==="_owner"&&t.$$typeof)&&!Uu(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function bx(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function $v(t,e){const n=bx(t);return Math.round(e*n)/n}function Wv(t){const e=C.useRef(t);return au(()=>{e.current=t}),e}function zk(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:s,floating:l}={},transform:c=!0,whileElementsMounted:d,open:f}=t,[g,m]=C.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[p,y]=C.useState(i);Uu(p,i)||y(i);const[P,b]=C.useState(null),[T,x]=C.useState(null),_=C.useCallback(nt=>{nt!==I.current&&(I.current=nt,b(nt))},[]),S=C.useCallback(nt=>{nt!==j.current&&(j.current=nt,x(nt))},[]),M=s||P,R=l||T,I=C.useRef(null),j=C.useRef(null),z=C.useRef(g),H=d!=null,$=Wv(d),J=Wv(o),Z=C.useCallback(()=>{if(!I.current||!j.current)return;const nt={placement:e,strategy:n,middleware:p};J.current&&(nt.platform=J.current),Ok(I.current,j.current,nt).then(N=>{const G={...N,isPositioned:!0};wt.current&&!Uu(z.current,G)&&(z.current=G,ls.flushSync(()=>{m(G)}))})},[p,e,n,J]);au(()=>{f===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,m(nt=>({...nt,isPositioned:!1})))},[f]);const wt=C.useRef(!1);au(()=>(wt.current=!0,()=>{wt.current=!1}),[]),au(()=>{if(M&&(I.current=M),R&&(j.current=R),M&&R){if($.current)return $.current(M,R,Z);Z()}},[M,R,Z,$,H]);const lt=C.useMemo(()=>({reference:I,floating:j,setReference:_,setFloating:S}),[_,S]),it=C.useMemo(()=>({reference:M,floating:R}),[M,R]),tt=C.useMemo(()=>{const nt={position:n,left:0,top:0};if(!it.floating)return nt;const N=$v(it.floating,g.x),G=$v(it.floating,g.y);return c?{...nt,transform:"translate("+N+"px, "+G+"px)",...bx(it.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:G}},[n,c,it.floating,g.x,g.y]);return C.useMemo(()=>({...g,update:Z,refs:lt,elements:it,floatingStyles:tt}),[g,Z,lt,it,tt])}var Dk=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ik=Dk.reduce((t,e)=>{const n=C.forwardRef((i,o)=>{const{asChild:s,...l}=i,c=s?us:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(c,{...l,ref:o})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{}),jk="Arrow",Cx=C.forwardRef((t,e)=>{const{children:n,width:i=10,height:o=5,...s}=t;return E.jsx(Ik.svg,{...s,ref:e,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:E.jsx("polygon",{points:"0,0 30,0 15,10"})})});Cx.displayName=jk;var Bk=Cx;function Fk(t,e){typeof t=="function"?t(e):t!=null&&(t.current=e)}function Vk(...t){return e=>t.forEach(n=>Fk(n,e))}function Tx(...t){return C.useCallback(Vk(...t),t)}function Uk(t,e=[]){let n=[];function i(s,l){const c=C.createContext(l),d=n.length;n=[...n,l];function f(m){const{scope:p,children:y,...P}=m,b=(p==null?void 0:p[t][d])||c,T=C.useMemo(()=>P,Object.values(P));return E.jsx(b.Provider,{value:T,children:y})}function g(m,p){const y=(p==null?void 0:p[t][d])||c,P=C.useContext(y);if(P)return P;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${s}\``)}return f.displayName=s+"Provider",[f,g]}const o=()=>{const s=n.map(l=>C.createContext(l));return function(c){const d=(c==null?void 0:c[t])||s;return C.useMemo(()=>({[`__scope${t}`]:{...c,[t]:d}}),[c,d])}};return o.scopeName=t,[i,$k(o,...e)]}function $k(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const i=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const l=i.reduce((c,{useScope:d,scopeName:f})=>{const m=d(s)[`__scope${f}`];return{...c,...m}},{});return C.useMemo(()=>({[`__scope${e.scopeName}`]:l}),[l])}};return n.scopeName=e.scopeName,n}var Wk=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ex=Wk.reduce((t,e)=>{const n=C.forwardRef((i,o)=>{const{asChild:s,...l}=i,c=s?us:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(c,{...l,ref:o})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function Hk(t){const e=C.useRef(t);return C.useEffect(()=>{e.current=t}),C.useMemo(()=>(...n)=>{var i;return(i=e.current)==null?void 0:i.call(e,...n)},[])}var Hv=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{},Zk=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{};function Gk(t){const[e,n]=C.useState(void 0);return Zk(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let l,c;if("borderBoxSize"in s){const d=s.borderBoxSize,f=Array.isArray(d)?d[0]:d;l=f.inlineSize,c=f.blockSize}else l=t.offsetWidth,c=t.offsetHeight;n({width:l,height:c})});return i.observe(t,{box:"border-box"}),()=>i.unobserve(t)}else n(void 0)},[t]),e}var Lx="Popper",[kx,Mx]=Uk(Lx),[CI,Rx]=kx(Lx),Ax="PopperAnchor",Ox=C.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:i,...o}=t,s=Rx(Ax,n),l=C.useRef(null),c=Tx(e,l);return C.useEffect(()=>{s.onAnchorChange((i==null?void 0:i.current)||l.current)}),i?null:E.jsx(Ex.div,{...o,ref:c})});Ox.displayName=Ax;var zp="PopperContent",[Kk,Qk]=kx(zp),Nx=C.forwardRef((t,e)=>{var Vt,ie,cn,Ge,mi,Ke;const{__scopePopper:n,side:i="bottom",sideOffset:o=0,align:s="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:g=0,sticky:m="partial",hideWhenDetached:p=!1,updatePositionStrategy:y="optimized",onPlaced:P,...b}=t,T=Rx(zp,n),[x,_]=C.useState(null),S=Tx(e,dn=>_(dn)),[M,R]=C.useState(null),I=Gk(M),j=(I==null?void 0:I.width)??0,z=(I==null?void 0:I.height)??0,H=i+(s!=="center"?"-"+s:""),$=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},J=Array.isArray(f)?f:[f],Z=J.length>0,wt={padding:$,boundary:J.filter(qk),altBoundary:Z},{refs:lt,floatingStyles:it,placement:tt,isPositioned:nt,middlewareData:N}=zk({strategy:"fixed",placement:H,whileElementsMounted:(...dn)=>Ek(...dn,{animationFrame:y==="always"}),elements:{reference:T.anchor},middleware:[ok({mainAxis:o+z,alignmentAxis:l}),d&&Lk({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?Ak():void 0,...wt}),d&&kk({...wt}),Mk({...wt,apply:({elements:dn,rects:ar,availableWidth:lr,availableHeight:hn})=>{const{width:ur,height:gi}=ar.reference,Qt=dn.floating.style;Qt.setProperty("--radix-popper-available-width",`${lr}px`),Qt.setProperty("--radix-popper-available-height",`${hn}px`),Qt.setProperty("--radix-popper-anchor-width",`${ur}px`),Qt.setProperty("--radix-popper-anchor-height",`${gi}px`)}}),M&&Nk({element:M,padding:c}),Xk({arrowWidth:j,arrowHeight:z}),p&&Rk({strategy:"referenceHidden",...wt})]}),[G,V]=Ix(tt),U=Hk(P);Hv(()=>{nt&&(U==null||U())},[nt,U]);const Q=(Vt=N.arrow)==null?void 0:Vt.x,st=(ie=N.arrow)==null?void 0:ie.y,ht=((cn=N.arrow)==null?void 0:cn.centerOffset)!==0,[ct,q]=C.useState();return Hv(()=>{x&&q(window.getComputedStyle(x).zIndex)},[x]),E.jsx("div",{ref:lt.setFloating,"data-radix-popper-content-wrapper":"",style:{...it,transform:nt?it.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ct,"--radix-popper-transform-origin":[(Ge=N.transformOrigin)==null?void 0:Ge.x,(mi=N.transformOrigin)==null?void 0:mi.y].join(" "),...((Ke=N.hide)==null?void 0:Ke.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:E.jsx(Kk,{scope:n,placedSide:G,onArrowChange:R,arrowX:Q,arrowY:st,shouldHideArrow:ht,children:E.jsx(Ex.div,{"data-side":G,"data-align":V,...b,ref:S,style:{...b.style,animation:nt?void 0:"none"}})})})});Nx.displayName=zp;var zx="PopperArrow",Yk={top:"bottom",right:"left",bottom:"top",left:"right"},Dx=C.forwardRef(function(e,n){const{__scopePopper:i,...o}=e,s=Qk(zx,i),l=Yk[s.placedSide];return E.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[l]: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:E.jsx(Bk,{...o,ref:n,style:{...o.style,display:"block"}})})});Dx.displayName=zx;function qk(t){return t!==null}var Xk=t=>({name:"transformOrigin",options:t,fn(e){var T,x,_;const{placement:n,rects:i,middlewareData:o}=e,l=((T=o.arrow)==null?void 0:T.centerOffset)!==0,c=l?0:t.arrowWidth,d=l?0:t.arrowHeight,[f,g]=Ix(n),m={start:"0%",center:"50%",end:"100%"}[g],p=(((x=o.arrow)==null?void 0:x.x)??0)+c/2,y=(((_=o.arrow)==null?void 0:_.y)??0)+d/2;let P="",b="";return f==="bottom"?(P=l?m:`${p}px`,b=`${-d}px`):f==="top"?(P=l?m:`${p}px`,b=`${i.floating.height+d}px`):f==="right"?(P=`${-d}px`,b=l?m:`${y}px`):f==="left"&&(P=`${i.floating.width+d}px`,b=l?m:`${y}px`),{data:{x:P,y:b}}}});function Ix(t){const[e,n="center"]=t.split("-");return[e,n]}var Jk=Ox,tM=Nx,eM=Dx;function nM(t,e){typeof t=="function"?t(e):t!=null&&(t.current=e)}function iM(...t){return e=>t.forEach(n=>nM(n,e))}function rM(...t){return C.useCallback(iM(...t),t)}var Zv=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{};function oM(t,e){return C.useReducer((n,i)=>e[n][i]??n,t)}var jx=t=>{const{present:e,children:n}=t,i=sM(e),o=typeof n=="function"?n({present:i.isPresent}):C.Children.only(n),s=rM(i.ref,aM(o));return typeof n=="function"||i.isPresent?C.cloneElement(o,{ref:s}):null};jx.displayName="Presence";function sM(t){const[e,n]=C.useState(),i=C.useRef({}),o=C.useRef(t),s=C.useRef("none"),l=t?"mounted":"unmounted",[c,d]=oM(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const f=$l(i.current);s.current=c==="mounted"?f:"none"},[c]),Zv(()=>{const f=i.current,g=o.current;if(g!==t){const p=s.current,y=$l(f);t?d("MOUNT"):y==="none"||(f==null?void 0:f.display)==="none"?d("UNMOUNT"):d(g&&p!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,d]),Zv(()=>{if(e){const f=m=>{const y=$l(i.current).includes(m.animationName);m.target===e&&y&&ls.flushSync(()=>d("ANIMATION_END"))},g=m=>{m.target===e&&(s.current=$l(i.current))};return e.addEventListener("animationstart",g),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{e.removeEventListener("animationstart",g),e.removeEventListener("animationcancel",f),e.removeEventListener("animationend",f)}}else d("ANIMATION_END")},[e,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:C.useCallback(f=>{f&&(i.current=getComputedStyle(f)),n(f)},[])}}function $l(t){return(t==null?void 0:t.animationName)||"none"}function aM(t){var i,o;let e=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var lM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],uM=lM.reduce((t,e)=>{const n=C.forwardRef((i,o)=>{const{asChild:s,...l}=i,c=s?us:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(c,{...l,ref:o})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{}),cM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],dM=cM.reduce((t,e)=>{const n=C.forwardRef((i,o)=>{const{asChild:s,...l}=i,c=s?us:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(c,{...l,ref:o})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{}),hM="VisuallyHidden",Bx=C.forwardRef((t,e)=>E.jsx(dM.span,{...t,ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}}));Bx.displayName=hM;var fM=Bx,[gc,TI]=TL("Tooltip",[Mx]),Dp=Mx(),Fx="TooltipProvider",pM=700,Gv="tooltip.open",[mM,Vx]=gc(Fx),Ux=t=>{const{__scopeTooltip:e,delayDuration:n=pM,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:s}=t,[l,c]=C.useState(!0),d=C.useRef(!1),f=C.useRef(0);return C.useEffect(()=>{const g=f.current;return()=>window.clearTimeout(g)},[]),E.jsx(mM,{scope:e,isOpenDelayed:l,delayDuration:n,onOpen:C.useCallback(()=>{window.clearTimeout(f.current),c(!1)},[]),onClose:C.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>c(!0),i)},[i]),isPointerInTransitRef:d,onPointerInTransitChange:C.useCallback(g=>{d.current=g},[]),disableHoverableContent:o,children:s})};Ux.displayName=Fx;var $x="Tooltip",[EI,vc]=gc($x),Yh="TooltipTrigger",gM=C.forwardRef((t,e)=>{const{__scopeTooltip:n,...i}=t,o=vc(Yh,n),s=Vx(Yh,n),l=Dp(n),c=C.useRef(null),d=ax(e,c,o.onTriggerChange),f=C.useRef(!1),g=C.useRef(!1),m=C.useCallback(()=>f.current=!1,[]);return C.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),E.jsx(Jk,{asChild:!0,...l,children:E.jsx(uM.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...i,ref:d,onPointerMove:so(t.onPointerMove,p=>{p.pointerType!=="touch"&&!g.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),g.current=!0)}),onPointerLeave:so(t.onPointerLeave,()=>{o.onTriggerLeave(),g.current=!1}),onPointerDown:so(t.onPointerDown,()=>{f.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:so(t.onFocus,()=>{f.current||o.onOpen()}),onBlur:so(t.onBlur,o.onClose),onClick:so(t.onClick,o.onClose)})})});gM.displayName=Yh;var vM="TooltipPortal",[LI,yM]=gc(vM,{forceMount:void 0}),ts="TooltipContent",Wx=C.forwardRef((t,e)=>{const n=yM(ts,t.__scopeTooltip),{forceMount:i=n.forceMount,side:o="top",...s}=t,l=vc(ts,t.__scopeTooltip);return E.jsx(jx,{present:i||l.open,children:l.disableHoverableContent?E.jsx(Hx,{side:o,...s,ref:e}):E.jsx(_M,{side:o,...s,ref:e})})}),_M=C.forwardRef((t,e)=>{const n=vc(ts,t.__scopeTooltip),i=Vx(ts,t.__scopeTooltip),o=C.useRef(null),s=ax(e,o),[l,c]=C.useState(null),{trigger:d,onClose:f}=n,g=o.current,{onPointerInTransitChange:m}=i,p=C.useCallback(()=>{c(null),m(!1)},[m]),y=C.useCallback((P,b)=>{const T=P.currentTarget,x={x:P.clientX,y:P.clientY},_=SM(x,T.getBoundingClientRect()),S=bM(x,_),M=CM(b.getBoundingClientRect()),R=EM([...S,...M]);c(R),m(!0)},[m]);return C.useEffect(()=>()=>p(),[p]),C.useEffect(()=>{if(d&&g){const P=T=>y(T,g),b=T=>y(T,d);return d.addEventListener("pointerleave",P),g.addEventListener("pointerleave",b),()=>{d.removeEventListener("pointerleave",P),g.removeEventListener("pointerleave",b)}}},[d,g,y,p]),C.useEffect(()=>{if(l){const P=b=>{const T=b.target,x={x:b.clientX,y:b.clientY},_=(d==null?void 0:d.contains(T))||(g==null?void 0:g.contains(T)),S=!TM(x,l);_?p():S&&(p(),f())};return document.addEventListener("pointermove",P),()=>document.removeEventListener("pointermove",P)}},[d,g,l,f,p]),E.jsx(Hx,{...t,ref:s})}),[wM,xM]=gc($x,{isInside:!1}),Hx=C.forwardRef((t,e)=>{const{__scopeTooltip:n,children:i,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:l,...c}=t,d=vc(ts,n),f=Dp(n),{onClose:g}=d;return C.useEffect(()=>(document.addEventListener(Gv,g),()=>document.removeEventListener(Gv,g)),[g]),C.useEffect(()=>{if(d.trigger){const m=p=>{const y=p.target;y!=null&&y.contains(d.trigger)&&g()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[d.trigger,g]),E.jsx(fx,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:m=>m.preventDefault(),onDismiss:g,children:E.jsxs(tM,{"data-state":d.stateAttribute,...f,...c,ref:e,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:[E.jsx(lx,{children:i}),E.jsx(wM,{scope:n,isInside:!0,children:E.jsx(fM,{id:d.contentId,role:"tooltip",children:o||i})})]})})});Wx.displayName=ts;var Zx="TooltipArrow",PM=C.forwardRef((t,e)=>{const{__scopeTooltip:n,...i}=t,o=Dp(n);return xM(Zx,n).isInside?null:E.jsx(eM,{...o,...i,ref:e})});PM.displayName=Zx;function SM(t,e){const n=Math.abs(e.top-t.y),i=Math.abs(e.bottom-t.y),o=Math.abs(e.right-t.x),s=Math.abs(e.left-t.x);switch(Math.min(n,i,o,s)){case s:return"left";case o:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function bM(t,e,n=5){const i=[];switch(e){case"top":i.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":i.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":i.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":i.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return i}function CM(t){const{top:e,right:n,bottom:i,left:o}=t;return[{x:o,y:e},{x:n,y:e},{x:n,y:i},{x:o,y:i}]}function TM(t,e){const{x:n,y:i}=t;let o=!1;for(let s=0,l=e.length-1;si!=g>i&&n<(f-c)*(i-d)/(g-d)+c&&(o=!o)}return o}function EM(t){const e=t.slice();return e.sort((n,i)=>n.xi.x?1:n.yi.y?1:0),LM(e)}function LM(t){if(t.length<=1)return t.slice();const e=[];for(let i=0;i=2;){const s=e[e.length-1],l=e[e.length-2];if((s.x-l.x)*(o.y-l.y)>=(s.y-l.y)*(o.x-l.x))e.pop();else break}e.push(o)}e.pop();const n=[];for(let i=t.length-1;i>=0;i--){const o=t[i];for(;n.length>=2;){const s=n[n.length-1],l=n[n.length-2];if((s.x-l.x)*(o.y-l.y)>=(s.y-l.y)*(o.x-l.x))n.pop();else break}n.push(o)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var kM=Ux,Gx=Wx;function Kx(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;ec(s)))==null?void 0:l.classGroupId}const Kv=/^\[(.+)\]$/;function AM(t){if(Kv.test(t)){const e=Kv.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}}function OM(t){const{theme:e,prefix:n}=t,i={nextPart:new Map,validators:[]};return zM(Object.entries(t.classGroups),n).forEach(([s,l])=>{qh(l,i,s,e)}),i}function qh(t,e,n,i){t.forEach(o=>{if(typeof o=="string"){const s=o===""?e:Qv(e,o);s.classGroupId=n;return}if(typeof o=="function"){if(NM(o)){qh(o(i),e,n,i);return}e.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,l])=>{qh(l,Qv(e,s),n,i)})})}function Qv(t,e){let n=t;return e.split(Ip).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n}function NM(t){return t.isThemeGetter}function zM(t,e){return e?t.map(([n,i])=>{const o=i.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,c])=>[e+l,c])):s);return[n,o]}):t}function DM(t){if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,i=new Map;function o(s,l){n.set(s,l),e++,e>t&&(e=0,i=n,n=new Map)}return{get(s){let l=n.get(s);if(l!==void 0)return l;if((l=i.get(s))!==void 0)return o(s,l),l},set(s,l){n.has(s)?n.set(s,l):o(s,l)}}}const Yx="!";function IM(t){const{separator:e,experimentalParseClassName:n}=t,i=e.length===1,o=e[0],s=e.length;function l(c){const d=[];let f=0,g=0,m;for(let T=0;Tg?m-g:void 0;return{modifiers:d,hasImportantModifier:y,baseClassName:P,maybePostfixModifierPosition:b}}return n?function(d){return n({className:d,parseClassName:l})}:l}function jM(t){if(t.length<=1)return t;const e=[];let n=[];return t.forEach(i=>{i[0]==="["?(e.push(...n.sort(),i),n=[]):n.push(i)}),e.push(...n.sort()),e}function BM(t){return{cache:DM(t.cacheSize),parseClassName:IM(t),...RM(t)}}const FM=/\s+/;function VM(t,e){const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:o}=e,s=new Set;return t.trim().split(FM).map(l=>{const{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:g}=n(l);let m=!!g,p=i(m?f.substring(0,g):f);if(!p){if(!m)return{isTailwindClass:!1,originalClassName:l};if(p=i(f),!p)return{isTailwindClass:!1,originalClassName:l};m=!1}const y=jM(c).join(":");return{isTailwindClass:!0,modifierId:d?y+Yx:y,classGroupId:p,originalClassName:l,hasPostfixModifier:m}}).reverse().filter(l=>{if(!l.isTailwindClass)return!0;const{modifierId:c,classGroupId:d,hasPostfixModifier:f}=l,g=c+d;return s.has(g)?!1:(s.add(g),o(d,f).forEach(m=>s.add(c+m)),!0)}).reverse().map(l=>l.originalClassName).join(" ")}function UM(){let t=0,e,n,i="";for(;tm(g),t());return n=BM(f),i=n.cache.get,o=n.cache.set,s=c,c(d)}function c(d){const f=i(d);if(f)return f;const g=VM(d,n);return o(d,g),g}return function(){return s(UM.apply(null,arguments))}}function Mt(t){const e=n=>n[t]||[];return e.isThemeGetter=!0,e}const Xx=/^\[(?:([a-z-]+):)?(.+)\]$/i,WM=/^\d+\/\d+$/,HM=new Set(["px","full","screen"]),ZM=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,GM=/\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$/,KM=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,QM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,YM=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Kn(t){return Tr(t)||HM.has(t)||WM.test(t)}function xi(t){return hs(t,"length",rR)}function Tr(t){return!!t&&!Number.isNaN(Number(t))}function Wl(t){return hs(t,"number",Tr)}function Fs(t){return!!t&&Number.isInteger(Number(t))}function qM(t){return t.endsWith("%")&&Tr(t.slice(0,-1))}function ft(t){return Xx.test(t)}function Pi(t){return ZM.test(t)}const XM=new Set(["length","size","percentage"]);function JM(t){return hs(t,XM,Jx)}function tR(t){return hs(t,"position",Jx)}const eR=new Set(["image","url"]);function nR(t){return hs(t,eR,sR)}function iR(t){return hs(t,"",oR)}function Vs(){return!0}function hs(t,e,n){const i=Xx.exec(t);return i?i[1]?typeof e=="string"?i[1]===e:e.has(i[1]):n(i[2]):!1}function rR(t){return GM.test(t)&&!KM.test(t)}function Jx(){return!1}function oR(t){return QM.test(t)}function sR(t){return YM.test(t)}function aR(){const t=Mt("colors"),e=Mt("spacing"),n=Mt("blur"),i=Mt("brightness"),o=Mt("borderColor"),s=Mt("borderRadius"),l=Mt("borderSpacing"),c=Mt("borderWidth"),d=Mt("contrast"),f=Mt("grayscale"),g=Mt("hueRotate"),m=Mt("invert"),p=Mt("gap"),y=Mt("gradientColorStops"),P=Mt("gradientColorStopPositions"),b=Mt("inset"),T=Mt("margin"),x=Mt("opacity"),_=Mt("padding"),S=Mt("saturate"),M=Mt("scale"),R=Mt("sepia"),I=Mt("skew"),j=Mt("space"),z=Mt("translate"),H=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto",ft,e],Z=()=>[ft,e],wt=()=>["",Kn,xi],lt=()=>["auto",Tr,ft],it=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],tt=()=>["solid","dashed","dotted","double","none"],nt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],G=()=>["","0",ft],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[Tr,Wl],Q=()=>[Tr,ft];return{cacheSize:500,separator:":",theme:{colors:[Vs],spacing:[Kn,xi],blur:["none","",Pi,ft],brightness:U(),borderColor:[t],borderRadius:["none","","full",Pi,ft],borderSpacing:Z(),borderWidth:wt(),contrast:U(),grayscale:G(),hueRotate:Q(),invert:G(),gap:Z(),gradientColorStops:[t],gradientColorStopPositions:[qM,xi],inset:J(),margin:J(),opacity:U(),padding:Z(),saturate:U(),scale:U(),sepia:G(),skew:Q(),space:Z(),translate:Z()},classGroups:{aspect:[{aspect:["auto","square","video",ft]}],container:["container"],columns:[{columns:[Pi]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"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"],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:[...it(),ft]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Fs,ft]}],basis:[{basis:J()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ft]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",Fs,ft]}],"grid-cols":[{"grid-cols":[Vs]}],"col-start-end":[{col:["auto",{span:["full",Fs,ft]},ft]}],"col-start":[{"col-start":lt()}],"col-end":[{"col-end":lt()}],"grid-rows":[{"grid-rows":[Vs]}],"row-start-end":[{row:["auto",{span:[Fs,ft]},ft]}],"row-start":[{"row-start":lt()}],"row-end":[{"row-end":lt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ft]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ft]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],mt:[{mt:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ft,e]}],"min-w":[{"min-w":[ft,e,"min","max","fit"]}],"max-w":[{"max-w":[ft,e,"none","full","min","max","fit","prose",{screen:[Pi]},Pi]}],h:[{h:[ft,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ft,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ft,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ft,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Pi,xi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Wl]}],"font-family":[{font:[Vs]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ft]}],"line-clamp":[{"line-clamp":["none",Tr,Wl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Kn,ft]}],"list-image":[{"list-image":["none",ft]}],"list-style-type":[{list:["none","disc","decimal",ft]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...tt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Kn,xi]}],"underline-offset":[{"underline-offset":["auto",Kn,ft]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ft]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ft]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...it(),tR]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",JM]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},nR]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[P]}],"gradient-via-pos":[{via:[P]}],"gradient-to-pos":[{to:[P]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...tt(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:tt()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...tt()]}],"outline-offset":[{"outline-offset":[Kn,ft]}],"outline-w":[{outline:[Kn,xi]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:wt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Kn,xi]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Pi,iR]}],"shadow-color":[{shadow:[Vs]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...nt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":nt()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[i]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Pi,ft]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[m]}],saturate:[{saturate:[S]}],sepia:[{sepia:[R]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ft]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",ft]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",ft]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[Fs,ft]}],"translate-x":[{"translate-x":[z]}],"translate-y":[{"translate-y":[z]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ft]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],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",ft]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Z()}],"scroll-mx":[{"scroll-mx":Z()}],"scroll-my":[{"scroll-my":Z()}],"scroll-ms":[{"scroll-ms":Z()}],"scroll-me":[{"scroll-me":Z()}],"scroll-mt":[{"scroll-mt":Z()}],"scroll-mr":[{"scroll-mr":Z()}],"scroll-mb":[{"scroll-mb":Z()}],"scroll-ml":[{"scroll-ml":Z()}],"scroll-p":[{"scroll-p":Z()}],"scroll-px":[{"scroll-px":Z()}],"scroll-py":[{"scroll-py":Z()}],"scroll-ps":[{"scroll-ps":Z()}],"scroll-pe":[{"scroll-pe":Z()}],"scroll-pt":[{"scroll-pt":Z()}],"scroll-pr":[{"scroll-pr":Z()}],"scroll-pb":[{"scroll-pb":Z()}],"scroll-pl":[{"scroll-pl":Z()}],"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",ft]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Kn,xi,Wl]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-s","border-w-e","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-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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-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"]}}}const lR=$M(aR);function uR(...t){return lR(MM(t))}const cR=kM,dR=C.forwardRef(({className:t,sideOffset:e=4,...n},i)=>E.jsx(Gx,{ref:i,sideOffset:e,className:uR("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md 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",t),...n}));dR.displayName=Gx.displayName;var Ka=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},es=typeof window>"u"||"Deno"in globalThis;function en(){}function hR(t,e){return typeof t=="function"?t(e):t}function Xh(t){return typeof t=="number"&&t>=0&&t!==1/0}function t1(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Ao(t,e){return typeof t=="function"?t(e):t}function wn(t,e){return typeof t=="function"?t(e):t}function Yv(t,e){const{type:n="all",exact:i,fetchStatus:o,predicate:s,queryKey:l,stale:c}=t;if(l){if(i){if(e.queryHash!==jp(l,e.options))return!1}else if(!Aa(e.queryKey,l))return!1}if(n!=="all"){const d=e.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof c=="boolean"&&e.isStale()!==c||o&&o!==e.state.fetchStatus||s&&!s(e))}function qv(t,e){const{exact:n,status:i,predicate:o,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(n){if(Ra(e.options.mutationKey)!==Ra(s))return!1}else if(!Aa(e.options.mutationKey,s))return!1}return!(i&&e.state.status!==i||o&&!o(e))}function jp(t,e){return((e==null?void 0:e.queryKeyHashFn)||Ra)(t)}function Ra(t){return JSON.stringify(t,(e,n)=>tf(n)?Object.keys(n).sort().reduce((i,o)=>(i[o]=n[o],i),{}):n)}function Aa(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(n=>!Aa(t[n],e[n])):!1}function e1(t,e){if(t===e)return t;const n=Xv(t)&&Xv(e);if(n||tf(t)&&tf(e)){const i=n?t:Object.keys(t),o=i.length,s=n?e:Object.keys(e),l=s.length,c=n?[]:{};let d=0;for(let f=0;f{setTimeout(e,t)})}function ef(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?e1(t,e):e}function pR(t,e,n=0){const i=[...t,e];return n&&i.length>n?i.slice(1):i}function mR(t,e,n=0){const i=[e,...t];return n&&i.length>n?i.slice(0,-1):i}var n1=Symbol();function i1(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===n1?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var Lr,Mi,Oo,O0,gR=(O0=class extends Ka{constructor(){super();at(this,Lr);at(this,Mi);at(this,Oo);X(this,Oo,e=>{if(!es&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){A(this,Mi)||this.setEventListener(A(this,Oo))}onUnsubscribe(){var e;this.hasListeners()||((e=A(this,Mi))==null||e.call(this),X(this,Mi,void 0))}setEventListener(e){var n;X(this,Oo,e),(n=A(this,Mi))==null||n.call(this),X(this,Mi,e(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(e){A(this,Lr)!==e&&(X(this,Lr,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof A(this,Lr)=="boolean"?A(this,Lr):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Lr=new WeakMap,Mi=new WeakMap,Oo=new WeakMap,O0),Bp=new gR,No,Ri,zo,N0,vR=(N0=class extends Ka{constructor(){super();at(this,No,!0);at(this,Ri);at(this,zo);X(this,zo,e=>{if(!es&&window.addEventListener){const n=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){A(this,Ri)||this.setEventListener(A(this,zo))}onUnsubscribe(){var e;this.hasListeners()||((e=A(this,Ri))==null||e.call(this),X(this,Ri,void 0))}setEventListener(e){var n;X(this,zo,e),(n=A(this,Ri))==null||n.call(this),X(this,Ri,e(this.setOnline.bind(this)))}setOnline(e){A(this,No)!==e&&(X(this,No,e),this.listeners.forEach(i=>{i(e)}))}isOnline(){return A(this,No)}},No=new WeakMap,Ri=new WeakMap,zo=new WeakMap,N0),$u=new vR;function yR(t){return Math.min(1e3*2**t,3e4)}function r1(t){return(t??"online")==="online"?$u.isOnline():!0}var o1=class{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function zd(t){return t instanceof o1}function s1(t){let e=!1,n=0,i=!1,o,s,l;const c=new Promise((x,_)=>{s=x,l=_}),d=x=>{var _;i||(P(new o1(x)),(_=t.abort)==null||_.call(t))},f=()=>{e=!0},g=()=>{e=!1},m=()=>Bp.isFocused()&&(t.networkMode==="always"||$u.isOnline())&&t.canRun(),p=()=>r1(t.networkMode)&&t.canRun(),y=x=>{var _;i||(i=!0,(_=t.onSuccess)==null||_.call(t,x),o==null||o(),s(x))},P=x=>{var _;i||(i=!0,(_=t.onError)==null||_.call(t,x),o==null||o(),l(x))},b=()=>new Promise(x=>{var _;o=S=>{(i||m())&&x(S)},(_=t.onPause)==null||_.call(t)}).then(()=>{var x;o=void 0,i||(x=t.onContinue)==null||x.call(t)}),T=()=>{if(i)return;let x;const _=n===0?t.initialPromise:void 0;try{x=_??t.fn()}catch(S){x=Promise.reject(S)}Promise.resolve(x).then(y).catch(S=>{var z;if(i)return;const M=t.retry??(es?0:3),R=t.retryDelay??yR,I=typeof R=="function"?R(n,S):R,j=M===!0||typeof M=="number"&&nm()?void 0:b()).then(()=>{e?P(S):T()})})};return{promise:c,cancel:d,continue:()=>(o==null||o(),c),cancelRetry:f,continueRetry:g,canStart:p,start:()=>(p()?T():b().then(T),c)}}function _R(){let t=[],e=0,n=p=>{p()},i=p=>{p()},o=p=>setTimeout(p,0);const s=p=>{o=p},l=p=>{let y;e++;try{y=p()}finally{e--,e||f()}return y},c=p=>{e?t.push(p):o(()=>{n(p)})},d=p=>(...y)=>{c(()=>{p(...y)})},f=()=>{const p=t;t=[],p.length&&o(()=>{i(()=>{p.forEach(y=>{n(y)})})})};return{batch:l,batchCalls:d,schedule:c,setNotifyFunction:p=>{n=p},setBatchNotifyFunction:p=>{i=p},setScheduler:s}}var se=_R(),kr,z0,a1=(z0=class{constructor(){at(this,kr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Xh(this.gcTime)&&X(this,kr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(es?1/0:5*60*1e3))}clearGcTimeout(){A(this,kr)&&(clearTimeout(A(this,kr)),X(this,kr,void 0))}},kr=new WeakMap,z0),Do,Io,tn,fe,ja,Mr,vn,Qn,D0,wR=(D0=class extends a1{constructor(e){super();at(this,vn);at(this,Do);at(this,Io);at(this,tn);at(this,fe);at(this,ja);at(this,Mr);X(this,Mr,!1),X(this,ja,e.defaultOptions),this.setOptions(e.options),this.observers=[],X(this,tn,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,X(this,Do,e.state||xR(this.options)),this.state=A(this,Do),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=A(this,fe))==null?void 0:e.promise}setOptions(e){this.options={...A(this,ja),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&A(this,tn).remove(this)}setData(e,n){const i=ef(this.state.data,e,this.options);return vt(this,vn,Qn).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(e,n){vt(this,vn,Qn).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var i,o;const n=(i=A(this,fe))==null?void 0:i.promise;return(o=A(this,fe))==null||o.cancel(e),n?n.then(en).catch(en):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(A(this,Do))}isActive(){return this.observers.some(e=>wn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!t1(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(i=>i.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=A(this,fe))==null||n.continue()}onOnline(){var n;const e=this.observers.find(i=>i.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=A(this,fe))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),A(this,tn).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(A(this,fe)&&(A(this,Mr)?A(this,fe).cancel({revert:!0}):A(this,fe).cancelRetry()),this.scheduleGc()),A(this,tn).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||vt(this,vn,Qn).call(this,{type:"invalidate"})}fetch(e,n){var d,f,g;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(A(this,fe))return A(this,fe).continueRetry(),A(this,fe).promise}if(e&&this.setOptions(e),!this.options.queryFn){const m=this.observers.find(p=>p.options.queryFn);m&&this.setOptions(m.options)}const i=new AbortController,o=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(X(this,Mr,!0),i.signal)})},s=()=>{const m=i1(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return o(p),X(this,Mr,!1),this.options.persister?this.options.persister(m,p,this):m(p)},l={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};o(l),(d=this.options.behavior)==null||d.onFetch(l,this),X(this,Io,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=l.fetchOptions)==null?void 0:f.meta))&&vt(this,vn,Qn).call(this,{type:"fetch",meta:(g=l.fetchOptions)==null?void 0:g.meta});const c=m=>{var p,y,P,b;zd(m)&&m.silent||vt(this,vn,Qn).call(this,{type:"error",error:m}),zd(m)||((y=(p=A(this,tn).config).onError)==null||y.call(p,m,this),(b=(P=A(this,tn).config).onSettled)==null||b.call(P,this.state.data,m,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return X(this,fe,s1({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:i.abort.bind(i),onSuccess:m=>{var p,y,P,b;if(m===void 0){c(new Error(`${this.queryHash} data is undefined`));return}this.setData(m),(y=(p=A(this,tn).config).onSuccess)==null||y.call(p,m,this),(b=(P=A(this,tn).config).onSettled)==null||b.call(P,m,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:c,onFail:(m,p)=>{vt(this,vn,Qn).call(this,{type:"failed",failureCount:m,error:p})},onPause:()=>{vt(this,vn,Qn).call(this,{type:"pause"})},onContinue:()=>{vt(this,vn,Qn).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),A(this,fe).start()}},Do=new WeakMap,Io=new WeakMap,tn=new WeakMap,fe=new WeakMap,ja=new WeakMap,Mr=new WeakMap,vn=new WeakSet,Qn=function(e){const n=i=>{switch(e.type){case"failed":return{...i,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...l1(i.data,this.options),fetchMeta:e.meta??null};case"success":return{...i,data:e.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return zd(o)&&o.revert&&A(this,Io)?{...A(this,Io),fetchStatus:"idle"}:{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...e.state}}};this.state=n(this.state),se.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),A(this,tn).notify({query:this,type:"updated",action:e})})},D0);function l1(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:r1(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function xR(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,i=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var An,I0,PR=(I0=class extends Ka{constructor(e={}){super();at(this,An);this.config=e,X(this,An,new Map)}build(e,n,i){const o=n.queryKey,s=n.queryHash??jp(o,n);let l=this.get(s);return l||(l=new wR({cache:this,queryKey:o,queryHash:s,options:e.defaultQueryOptions(n),state:i,defaultOptions:e.getQueryDefaults(o)}),this.add(l)),l}add(e){A(this,An).has(e.queryHash)||(A(this,An).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=A(this,An).get(e.queryHash);n&&(e.destroy(),n===e&&A(this,An).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){se.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return A(this,An).get(e)}getAll(){return[...A(this,An).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(i=>Yv(n,i))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(i=>Yv(e,i)):n}notify(e){se.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){se.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){se.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},An=new WeakMap,I0),On,_e,Rr,Nn,Si,j0,SR=(j0=class extends a1{constructor(e){super();at(this,Nn);at(this,On);at(this,_e);at(this,Rr);this.mutationId=e.mutationId,X(this,_e,e.mutationCache),X(this,On,[]),this.state=e.state||bR(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){A(this,On).includes(e)||(A(this,On).push(e),this.clearGcTimeout(),A(this,_e).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){X(this,On,A(this,On).filter(n=>n!==e)),this.scheduleGc(),A(this,_e).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){A(this,On).length||(this.state.status==="pending"?this.scheduleGc():A(this,_e).remove(this))}continue(){var e;return((e=A(this,Rr))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var o,s,l,c,d,f,g,m,p,y,P,b,T,x,_,S,M,R,I,j;X(this,Rr,s1({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(z,H)=>{vt(this,Nn,Si).call(this,{type:"failed",failureCount:z,error:H})},onPause:()=>{vt(this,Nn,Si).call(this,{type:"pause"})},onContinue:()=>{vt(this,Nn,Si).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>A(this,_e).canRun(this)}));const n=this.state.status==="pending",i=!A(this,Rr).canStart();try{if(!n){vt(this,Nn,Si).call(this,{type:"pending",variables:e,isPaused:i}),await((s=(o=A(this,_e).config).onMutate)==null?void 0:s.call(o,e,this));const H=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,e));H!==this.state.context&&vt(this,Nn,Si).call(this,{type:"pending",context:H,variables:e,isPaused:i})}const z=await A(this,Rr).start();return await((f=(d=A(this,_e).config).onSuccess)==null?void 0:f.call(d,z,e,this.state.context,this)),await((m=(g=this.options).onSuccess)==null?void 0:m.call(g,z,e,this.state.context)),await((y=(p=A(this,_e).config).onSettled)==null?void 0:y.call(p,z,null,this.state.variables,this.state.context,this)),await((b=(P=this.options).onSettled)==null?void 0:b.call(P,z,null,e,this.state.context)),vt(this,Nn,Si).call(this,{type:"success",data:z}),z}catch(z){try{throw await((x=(T=A(this,_e).config).onError)==null?void 0:x.call(T,z,e,this.state.context,this)),await((S=(_=this.options).onError)==null?void 0:S.call(_,z,e,this.state.context)),await((R=(M=A(this,_e).config).onSettled)==null?void 0:R.call(M,void 0,z,this.state.variables,this.state.context,this)),await((j=(I=this.options).onSettled)==null?void 0:j.call(I,void 0,z,e,this.state.context)),z}finally{vt(this,Nn,Si).call(this,{type:"error",error:z})}}finally{A(this,_e).runNext(this)}}},On=new WeakMap,_e=new WeakMap,Rr=new WeakMap,Nn=new WeakSet,Si=function(e){const n=i=>{switch(e.type){case"failed":return{...i,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...i,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:e.error,failureCount:i.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),se.batch(()=>{A(this,On).forEach(i=>{i.onMutationUpdate(e)}),A(this,_e).notify({mutation:this,type:"updated",action:e})})},j0);function bR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var De,Ba,B0,CR=(B0=class extends Ka{constructor(e={}){super();at(this,De);at(this,Ba);this.config=e,X(this,De,new Map),X(this,Ba,Date.now())}build(e,n,i){const o=new SR({mutationCache:this,mutationId:++xl(this,Ba)._,options:e.defaultMutationOptions(n),state:i});return this.add(o),o}add(e){const n=Hl(e),i=A(this,De).get(n)??[];i.push(e),A(this,De).set(n,i),this.notify({type:"added",mutation:e})}remove(e){var i;const n=Hl(e);if(A(this,De).has(n)){const o=(i=A(this,De).get(n))==null?void 0:i.filter(s=>s!==e);o&&(o.length===0?A(this,De).delete(n):A(this,De).set(n,o))}this.notify({type:"removed",mutation:e})}canRun(e){var i;const n=(i=A(this,De).get(Hl(e)))==null?void 0:i.find(o=>o.state.status==="pending");return!n||n===e}runNext(e){var i;const n=(i=A(this,De).get(Hl(e)))==null?void 0:i.find(o=>o!==e&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){se.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...A(this,De).values()].flat()}find(e){const n={exact:!0,...e};return this.getAll().find(i=>qv(n,i))}findAll(e={}){return this.getAll().filter(n=>qv(e,n))}notify(e){se.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return se.batch(()=>Promise.all(e.map(n=>n.continue().catch(en))))}},De=new WeakMap,Ba=new WeakMap,B0);function Hl(t){var e;return((e=t.options.scope)==null?void 0:e.id)??String(t.mutationId)}function TR(t){return{onFetch:(e,n)=>{const i=async()=>{var P,b,T,x,_;const o=e.options,s=(T=(b=(P=e.fetchOptions)==null?void 0:P.meta)==null?void 0:b.fetchMore)==null?void 0:T.direction,l=((x=e.state.data)==null?void 0:x.pages)||[],c=((_=e.state.data)==null?void 0:_.pageParams)||[],d={pages:[],pageParams:[]};let f=!1;const g=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(e.signal.aborted?f=!0:e.signal.addEventListener("abort",()=>{f=!0}),e.signal)})},m=i1(e.options,e.fetchOptions),p=async(S,M,R)=>{if(f)return Promise.reject();if(M==null&&S.pages.length)return Promise.resolve(S);const I={queryKey:e.queryKey,pageParam:M,direction:R?"backward":"forward",meta:e.options.meta};g(I);const j=await m(I),{maxPages:z}=e.options,H=R?mR:pR;return{pages:H(S.pages,j,z),pageParams:H(S.pageParams,M,z)}};let y;if(s&&l.length){const S=s==="backward",M=S?ER:ty,R={pages:l,pageParams:c},I=M(o,R);y=await p(R,I,S)}else{y=await p(d,c[0]??o.initialPageParam);const S=t??l.length;for(let M=1;M{var o,s;return(s=(o=e.options).persister)==null?void 0:s.call(o,i,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=i}}}function ty(t,{pages:e,pageParams:n}){const i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,n[i],n):void 0}function ER(t,{pages:e,pageParams:n}){var i;return e.length>0?(i=t.getPreviousPageParam)==null?void 0:i.call(t,e[0],e,n[0],n):void 0}var Bt,Ai,Oi,jo,Bo,Ni,Fo,Vo,F0,LR=(F0=class{constructor(t={}){at(this,Bt);at(this,Ai);at(this,Oi);at(this,jo);at(this,Bo);at(this,Ni);at(this,Fo);at(this,Vo);X(this,Bt,t.queryCache||new PR),X(this,Ai,t.mutationCache||new CR),X(this,Oi,t.defaultOptions||{}),X(this,jo,new Map),X(this,Bo,new Map),X(this,Ni,0)}mount(){xl(this,Ni)._++,A(this,Ni)===1&&(X(this,Fo,Bp.subscribe(async t=>{t&&(await this.resumePausedMutations(),A(this,Bt).onFocus())})),X(this,Vo,$u.subscribe(async t=>{t&&(await this.resumePausedMutations(),A(this,Bt).onOnline())})))}unmount(){var t,e;xl(this,Ni)._--,A(this,Ni)===0&&((t=A(this,Fo))==null||t.call(this),X(this,Fo,void 0),(e=A(this,Vo))==null||e.call(this),X(this,Vo,void 0))}isFetching(t){return A(this,Bt).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return A(this,Ai).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=A(this,Bt).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);if(e===void 0)return this.fetchQuery(t);{const n=this.defaultQueryOptions(t),i=A(this,Bt).build(this,n);return t.revalidateIfStale&&i.isStaleByTime(Ao(n.staleTime,i))&&this.prefetchQuery(n),Promise.resolve(e)}}getQueriesData(t){return A(this,Bt).findAll(t).map(({queryKey:e,state:n})=>{const i=n.data;return[e,i]})}setQueryData(t,e,n){const i=this.defaultQueryOptions({queryKey:t}),o=A(this,Bt).get(i.queryHash),s=o==null?void 0:o.state.data,l=hR(e,s);if(l!==void 0)return A(this,Bt).build(this,i).setData(l,{...n,manual:!0})}setQueriesData(t,e,n){return se.batch(()=>A(this,Bt).findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=A(this,Bt).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=A(this,Bt);se.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=A(this,Bt),i={type:"active",...t};return se.batch(()=>(n.findAll(t).forEach(o=>{o.reset()}),this.refetchQueries(i,e)))}cancelQueries(t={},e={}){const n={revert:!0,...e},i=se.batch(()=>A(this,Bt).findAll(t).map(o=>o.cancel(n)));return Promise.all(i).then(en).catch(en)}invalidateQueries(t={},e={}){return se.batch(()=>{if(A(this,Bt).findAll(t).forEach(i=>{i.invalidate()}),t.refetchType==="none")return Promise.resolve();const n={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(n,e)})}refetchQueries(t={},e){const n={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},i=se.batch(()=>A(this,Bt).findAll(t).filter(o=>!o.isDisabled()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(en)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(i).then(en)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=A(this,Bt).build(this,e);return n.isStaleByTime(Ao(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(en).catch(en)}fetchInfiniteQuery(t){return t.behavior=TR(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(en).catch(en)}resumePausedMutations(){return $u.isOnline()?A(this,Ai).resumePausedMutations():Promise.resolve()}getQueryCache(){return A(this,Bt)}getMutationCache(){return A(this,Ai)}getDefaultOptions(){return A(this,Oi)}setDefaultOptions(t){X(this,Oi,t)}setQueryDefaults(t,e){A(this,jo).set(Ra(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...A(this,jo).values()];let n={};return e.forEach(i=>{Aa(t,i.queryKey)&&(n={...n,...i.defaultOptions})}),n}setMutationDefaults(t,e){A(this,Bo).set(Ra(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...A(this,Bo).values()];let n={};return e.forEach(i=>{Aa(t,i.mutationKey)&&(n={...n,...i.defaultOptions})}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...A(this,Oi).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=jp(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.enabled!==!0&&e.queryFn===n1&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...A(this,Oi).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){A(this,Bt).clear(),A(this,Ai).clear()}},Bt=new WeakMap,Ai=new WeakMap,Oi=new WeakMap,jo=new WeakMap,Bo=new WeakMap,Ni=new WeakMap,Fo=new WeakMap,Vo=new WeakMap,F0),Te,yt,Fa,we,Ar,Uo,zn,Va,$o,Wo,Or,Nr,zi,Ho,bt,Ks,nf,rf,of,sf,af,lf,uf,u1,V0,kR=(V0=class extends Ka{constructor(e,n){super();at(this,bt);at(this,Te);at(this,yt);at(this,Fa);at(this,we);at(this,Ar);at(this,Uo);at(this,zn);at(this,Va);at(this,$o);at(this,Wo);at(this,Or);at(this,Nr);at(this,zi);at(this,Ho,new Set);this.options=n,X(this,Te,e),X(this,zn,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(A(this,yt).addObserver(this),ey(A(this,yt),this.options)?vt(this,bt,Ks).call(this):this.updateResult(),vt(this,bt,sf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return cf(A(this,yt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return cf(A(this,yt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,vt(this,bt,af).call(this),vt(this,bt,lf).call(this),A(this,yt).removeObserver(this)}setOptions(e,n){const i=this.options,o=A(this,yt);if(this.options=A(this,Te).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof wn(this.options.enabled,A(this,yt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");vt(this,bt,uf).call(this),A(this,yt).setOptions(this.options),i._defaulted&&!Jh(this.options,i)&&A(this,Te).getQueryCache().notify({type:"observerOptionsUpdated",query:A(this,yt),observer:this});const s=this.hasListeners();s&&ny(A(this,yt),o,this.options,i)&&vt(this,bt,Ks).call(this),this.updateResult(n),s&&(A(this,yt)!==o||wn(this.options.enabled,A(this,yt))!==wn(i.enabled,A(this,yt))||Ao(this.options.staleTime,A(this,yt))!==Ao(i.staleTime,A(this,yt)))&&vt(this,bt,nf).call(this);const l=vt(this,bt,rf).call(this);s&&(A(this,yt)!==o||wn(this.options.enabled,A(this,yt))!==wn(i.enabled,A(this,yt))||l!==A(this,zi))&&vt(this,bt,of).call(this,l)}getOptimisticResult(e){const n=A(this,Te).getQueryCache().build(A(this,Te),e),i=this.createResult(n,e);return RR(this,i)&&(X(this,we,i),X(this,Uo,this.options),X(this,Ar,A(this,yt).state)),i}getCurrentResult(){return A(this,we)}trackResult(e,n){const i={};return Object.keys(e).forEach(o=>{Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),n==null||n(o),e[o])})}),i}trackProp(e){A(this,Ho).add(e)}getCurrentQuery(){return A(this,yt)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=A(this,Te).defaultQueryOptions(e),i=A(this,Te).getQueryCache().build(A(this,Te),n);return i.isFetchingOptimistic=!0,i.fetch().then(()=>this.createResult(i,n))}fetch(e){return vt(this,bt,Ks).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),A(this,we)))}createResult(e,n){var j;const i=A(this,yt),o=this.options,s=A(this,we),l=A(this,Ar),c=A(this,Uo),f=e!==i?e.state:A(this,Fa),{state:g}=e;let m={...g},p=!1,y;if(n._optimisticResults){const z=this.hasListeners(),H=!z&&ey(e,n),$=z&&ny(e,i,n,o);(H||$)&&(m={...m,...l1(g.data,e.options)}),n._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:P,errorUpdatedAt:b,status:T}=m;if(n.select&&m.data!==void 0)if(s&&m.data===(l==null?void 0:l.data)&&n.select===A(this,Va))y=A(this,$o);else try{X(this,Va,n.select),y=n.select(m.data),y=ef(s==null?void 0:s.data,y,n),X(this,$o,y),X(this,zn,null)}catch(z){X(this,zn,z)}else y=m.data;if(n.placeholderData!==void 0&&y===void 0&&T==="pending"){let z;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData))z=s.data;else if(z=typeof n.placeholderData=="function"?n.placeholderData((j=A(this,Wo))==null?void 0:j.state.data,A(this,Wo)):n.placeholderData,n.select&&z!==void 0)try{z=n.select(z),X(this,zn,null)}catch(H){X(this,zn,H)}z!==void 0&&(T="success",y=ef(s==null?void 0:s.data,z,n),p=!0)}A(this,zn)&&(P=A(this,zn),y=A(this,$o),b=Date.now(),T="error");const x=m.fetchStatus==="fetching",_=T==="pending",S=T==="error",M=_&&x,R=y!==void 0;return{status:T,fetchStatus:m.fetchStatus,isPending:_,isSuccess:T==="success",isError:S,isInitialLoading:M,isLoading:M,data:y,dataUpdatedAt:m.dataUpdatedAt,error:P,errorUpdatedAt:b,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>f.dataUpdateCount||m.errorUpdateCount>f.errorUpdateCount,isFetching:x,isRefetching:x&&!_,isLoadingError:S&&!R,isPaused:m.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:S&&R,isStale:Fp(e,n),refetch:this.refetch}}updateResult(e){const n=A(this,we),i=this.createResult(A(this,yt),this.options);if(X(this,Ar,A(this,yt).state),X(this,Uo,this.options),A(this,Ar).data!==void 0&&X(this,Wo,A(this,yt)),Jh(i,n))return;X(this,we,i);const o={},s=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,c=typeof l=="function"?l():l;if(c==="all"||!c&&!A(this,Ho).size)return!0;const d=new Set(c??A(this,Ho));return this.options.throwOnError&&d.add("error"),Object.keys(A(this,we)).some(f=>{const g=f;return A(this,we)[g]!==n[g]&&d.has(g)})};(e==null?void 0:e.listeners)!==!1&&s()&&(o.listeners=!0),vt(this,bt,u1).call(this,{...o,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&vt(this,bt,sf).call(this)}},Te=new WeakMap,yt=new WeakMap,Fa=new WeakMap,we=new WeakMap,Ar=new WeakMap,Uo=new WeakMap,zn=new WeakMap,Va=new WeakMap,$o=new WeakMap,Wo=new WeakMap,Or=new WeakMap,Nr=new WeakMap,zi=new WeakMap,Ho=new WeakMap,bt=new WeakSet,Ks=function(e){vt(this,bt,uf).call(this);let n=A(this,yt).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(en)),n},nf=function(){vt(this,bt,af).call(this);const e=Ao(this.options.staleTime,A(this,yt));if(es||A(this,we).isStale||!Xh(e))return;const i=t1(A(this,we).dataUpdatedAt,e)+1;X(this,Or,setTimeout(()=>{A(this,we).isStale||this.updateResult()},i))},rf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(A(this,yt)):this.options.refetchInterval)??!1},of=function(e){vt(this,bt,lf).call(this),X(this,zi,e),!(es||wn(this.options.enabled,A(this,yt))===!1||!Xh(A(this,zi))||A(this,zi)===0)&&X(this,Nr,setInterval(()=>{(this.options.refetchIntervalInBackground||Bp.isFocused())&&vt(this,bt,Ks).call(this)},A(this,zi)))},sf=function(){vt(this,bt,nf).call(this),vt(this,bt,of).call(this,vt(this,bt,rf).call(this))},af=function(){A(this,Or)&&(clearTimeout(A(this,Or)),X(this,Or,void 0))},lf=function(){A(this,Nr)&&(clearInterval(A(this,Nr)),X(this,Nr,void 0))},uf=function(){const e=A(this,Te).getQueryCache().build(A(this,Te),this.options);if(e===A(this,yt))return;const n=A(this,yt);X(this,yt,e),X(this,Fa,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},u1=function(e){se.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(A(this,we))}),A(this,Te).getQueryCache().notify({query:A(this,yt),type:"observerResultsUpdated"})})},V0);function MR(t,e){return wn(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function ey(t,e){return MR(t,e)||t.state.data!==void 0&&cf(t,e,e.refetchOnMount)}function cf(t,e,n){if(wn(e.enabled,t)!==!1){const i=typeof n=="function"?n(t):n;return i==="always"||i!==!1&&Fp(t,e)}return!1}function ny(t,e,n,i){return(t!==e||wn(i.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&Fp(t,n)}function Fp(t,e){return wn(e.enabled,t)!==!1&&t.isStaleByTime(Ao(e.staleTime,t))}function RR(t,e){return!Jh(t.getCurrentResult(),e)}var c1=C.createContext(void 0),AR=t=>{const e=C.useContext(c1);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},OR=({client:t,children:e})=>(C.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),E.jsx(c1.Provider,{value:t,children:e})),d1=C.createContext(!1),NR=()=>C.useContext(d1);d1.Provider;function zR(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var DR=C.createContext(zR()),IR=()=>C.useContext(DR);function jR(t,e){return typeof t=="function"?t(...e):!!t}var BR=(t,e)=>{(t.suspense||t.throwOnError)&&(e.isReset()||(t.retryOnMount=!1))},FR=t=>{C.useEffect(()=>{t.clearReset()},[t])},VR=({result:t,errorResetBoundary:e,throwOnError:n,query:i})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&jR(n,[t.error,i]),UR=t=>{t.suspense&&typeof t.staleTime!="number"&&(t.staleTime=1e3)},$R=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,WR=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function HR(t,e,n){var f,g,m,p;const i=AR(),o=NR(),s=IR(),l=i.defaultQueryOptions(t);(g=(f=i.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||g.call(f,l),l._optimisticResults=o?"isRestoring":"optimistic",UR(l),BR(l,s),FR(s);const[c]=C.useState(()=>new e(i,l)),d=c.getOptimisticResult(l);if(C.useSyncExternalStore(C.useCallback(y=>{const P=o?()=>{}:c.subscribe(se.batchCalls(y));return c.updateResult(),P},[c,o]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),C.useEffect(()=>{c.setOptions(l,{listeners:!1})},[l,c]),$R(l,d))throw WR(l,c,s);if(VR({result:d,errorResetBoundary:s,throwOnError:l.throwOnError,query:i.getQueryCache().get(l.queryHash)}))throw d.error;return(p=(m=i.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||p.call(m,l,d),l.notifyOnChangeProps?d:c.trackResult(d)}function h1(t,e){return HR(t,kR)}/** + * @remix-run/router v1.18.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Oa(){return Oa=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function f1(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function GR(){return Math.random().toString(36).substr(2,8)}function ry(t,e){return{usr:t.state,key:t.key,idx:e}}function df(t,e,n,i){return n===void 0&&(n=null),Oa({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?fs(e):e,{state:n,key:e&&e.key||i||GR()})}function p1(t){let{pathname:e="/",search:n="",hash:i=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function fs(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}function KR(t,e,n,i){i===void 0&&(i={});let{window:o=document.defaultView,v5Compat:s=!1}=i,l=o.history,c=ji.Pop,d=null,f=g();f==null&&(f=0,l.replaceState(Oa({},l.state,{idx:f}),""));function g(){return(l.state||{idx:null}).idx}function m(){c=ji.Pop;let T=g(),x=T==null?null:T-f;f=T,d&&d({action:c,location:b.location,delta:x})}function p(T,x){c=ji.Push;let _=df(b.location,T,x);f=g()+1;let S=ry(_,f),M=b.createHref(_);try{l.pushState(S,"",M)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;o.location.assign(M)}s&&d&&d({action:c,location:b.location,delta:1})}function y(T,x){c=ji.Replace;let _=df(b.location,T,x);f=g();let S=ry(_,f),M=b.createHref(_);l.replaceState(S,"",M),s&&d&&d({action:c,location:b.location,delta:0})}function P(T){let x=o.location.origin!=="null"?o.location.origin:o.location.href,_=typeof T=="string"?T:p1(T);return _=_.replace(/ $/,"%20"),Xt(x,"No window.location.(origin|href) available to create URL for href: "+_),new URL(_,x)}let b={get action(){return c},get location(){return t(o,l)},listen(T){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(iy,m),d=T,()=>{o.removeEventListener(iy,m),d=null}},createHref(T){return e(o,T)},createURL:P,encodeLocation(T){let x=P(T);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:y,go(T){return l.go(T)}};return b}var oy;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(oy||(oy={}));function QR(t,e,n){return n===void 0&&(n="/"),YR(t,e,n,!1)}function YR(t,e,n,i){let o=typeof e=="string"?fs(e):e,s=v1(o.pathname||"/",n);if(s==null)return null;let l=m1(t);qR(l);let c=null;for(let d=0;c==null&&d{let d={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};d.relativePath.startsWith("/")&&(Xt(d.relativePath.startsWith(i),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(i.length));let f=Ir([i,d.relativePath]),g=n.concat(d);s.children&&s.children.length>0&&(Xt(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),m1(s.children,e,g,f)),!(s.path==null&&!s.index)&&e.push({path:f,score:r2(f,s.index),routesMeta:g})};return t.forEach((s,l)=>{var c;if(s.path===""||!((c=s.path)!=null&&c.includes("?")))o(s,l);else for(let d of g1(s.path))o(s,l,d)}),e}function g1(t){let e=t.split("/");if(e.length===0)return[];let[n,...i]=e,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(i.length===0)return o?[s,""]:[s];let l=g1(i.join("/")),c=[];return c.push(...l.map(d=>d===""?s:[s,d].join("/"))),o&&c.push(...l),c.map(d=>t.startsWith("/")&&d===""?"/":d)}function qR(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:o2(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const XR=/^:[\w-]+$/,JR=3,t2=2,e2=1,n2=10,i2=-2,sy=t=>t==="*";function r2(t,e){let n=t.split("/"),i=n.length;return n.some(sy)&&(i+=i2),e&&(i+=t2),n.filter(o=>!sy(o)).reduce((o,s)=>o+(XR.test(s)?JR:s===""?e2:n2),i)}function o2(t,e){return t.length===e.length&&t.slice(0,-1).every((i,o)=>i===e[o])?t[t.length-1]-e[e.length-1]:0}function s2(t,e,n){let{routesMeta:i}=t,o={},s="/",l=[];for(let c=0;c{let{paramName:p,isOptional:y}=g;if(p==="*"){let b=c[m]||"";l=s.slice(0,s.length-b.length).replace(/(.)\/+$/,"$1")}const P=c[m];return y&&!P?f[p]=void 0:f[p]=(P||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:l,pattern:t}}function a2(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),f1(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let i=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,d)=>(i.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(i.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),i]}function l2(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return f1(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function v1(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&i!=="/"?null:t.slice(n)||"/"}function u2(t,e){e===void 0&&(e="/");let{pathname:n,search:i="",hash:o=""}=typeof t=="string"?fs(t):t;return{pathname:n?n.startsWith("/")?n:c2(n,e):e,search:m2(i),hash:g2(o)}}function c2(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Dd(t,e,n,i){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(i)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function d2(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function h2(t,e){let n=d2(t);return e?n.map((i,o)=>o===n.length-1?i.pathname:i.pathnameBase):n.map(i=>i.pathnameBase)}function f2(t,e,n,i){i===void 0&&(i=!1);let o;typeof t=="string"?o=fs(t):(o=Oa({},t),Xt(!o.pathname||!o.pathname.includes("?"),Dd("?","pathname","search",o)),Xt(!o.pathname||!o.pathname.includes("#"),Dd("#","pathname","hash",o)),Xt(!o.search||!o.search.includes("#"),Dd("#","search","hash",o)));let s=t===""||o.pathname==="",l=s?"/":o.pathname,c;if(l==null)c=n;else{let m=e.length-1;if(!i&&l.startsWith("..")){let p=l.split("/");for(;p[0]==="..";)p.shift(),m-=1;o.pathname=p.join("/")}c=m>=0?e[m]:"/"}let d=u2(o,c),f=l&&l!=="/"&&l.endsWith("/"),g=(s||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||g)&&(d.pathname+="/"),d}const Ir=t=>t.join("/").replace(/\/\/+/g,"/"),p2=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),m2=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,g2=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function v2(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const y1=["post","put","patch","delete"];new Set(y1);const y2=["get",...y1];new Set(y2);/** + * React Router v6.25.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Na(){return Na=Object.assign?Object.assign.bind():function(t){for(var e=1;e{c.current=!0}),C.useCallback(function(f,g){if(g===void 0&&(g={}),!c.current)return;if(typeof f=="number"){i.go(f);return}let m=f2(f,JSON.parse(l),s,g.relative==="path");t==null&&e!=="/"&&(m.pathname=m.pathname==="/"?e:Ir([e,m.pathname])),(g.replace?i.replace:i.push)(m,g.state,g)},[e,i,l,s,t])}function P2(){let{matches:t}=C.useContext(Gr),e=t[t.length-1];return e?e.params:{}}function S2(t,e){return b2(t,e)}function b2(t,e,n,i){wc()||Xt(!1);let{navigator:o}=C.useContext(yc),{matches:s}=C.useContext(Gr),l=s[s.length-1],c=l?l.params:{};l&&l.pathname;let d=l?l.pathnameBase:"/";l&&l.route;let f=w1(),g;if(e){var m;let T=typeof e=="string"?fs(e):e;d==="/"||(m=T.pathname)!=null&&m.startsWith(d)||Xt(!1),g=T}else g=f;let p=g.pathname||"/",y=p;if(d!=="/"){let T=d.replace(/^\//,"").split("/");y="/"+p.replace(/^\//,"").split("/").slice(T.length).join("/")}let P=QR(t,{pathname:y}),b=k2(P&&P.map(T=>Object.assign({},T,{params:Object.assign({},c,T.params),pathname:Ir([d,o.encodeLocation?o.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?d:Ir([d,o.encodeLocation?o.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),s,n,i);return e&&b?C.createElement(_c.Provider,{value:{location:Na({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:ji.Pop}},b):b}function C2(){let t=O2(),e=v2(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},e),n?C.createElement("pre",{style:o},n):null,null)}const T2=C.createElement(C2,null);class E2 extends C.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?C.createElement(Gr.Provider,{value:this.props.routeContext},C.createElement(_1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function L2(t){let{routeContext:e,match:n,children:i}=t,o=C.useContext(Vp);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(Gr.Provider,{value:e},i)}function k2(t,e,n,i){var o;if(e===void 0&&(e=[]),n===void 0&&(n=null),i===void 0&&(i=null),t==null){var s;if((s=n)!=null&&s.errors)t=n.matches;else return null}let l=t,c=(o=n)==null?void 0:o.errors;if(c!=null){let g=l.findIndex(m=>m.route.id&&(c==null?void 0:c[m.route.id])!==void 0);g>=0||Xt(!1),l=l.slice(0,Math.min(l.length,g+1))}let d=!1,f=-1;if(n&&i&&i.v7_partialHydration)for(let g=0;g=0?l=l.slice(0,f+1):l=[l[0]];break}}}return l.reduceRight((g,m,p)=>{let y,P=!1,b=null,T=null;n&&(y=c&&m.route.id?c[m.route.id]:void 0,b=m.route.errorElement||T2,d&&(f<0&&p===0?(P=!0,T=null):f===p&&(P=!0,T=m.route.hydrateFallbackElement||null)));let x=e.concat(l.slice(0,p+1)),_=()=>{let S;return y?S=b:P?S=T:m.route.Component?S=C.createElement(m.route.Component,null):m.route.element?S=m.route.element:S=g,C.createElement(L2,{match:m,routeContext:{outlet:g,matches:x,isDataRoute:n!=null},children:S})};return n&&(m.route.ErrorBoundary||m.route.errorElement||p===0)?C.createElement(E2,{location:n.location,revalidation:n.revalidation,component:b,error:y,children:_(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):_()},null)}var P1=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(P1||{}),Wu=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Wu||{});function M2(t){let e=C.useContext(Vp);return e||Xt(!1),e}function R2(t){let e=C.useContext(_2);return e||Xt(!1),e}function A2(t){let e=C.useContext(Gr);return e||Xt(!1),e}function S1(t){let e=A2(),n=e.matches[e.matches.length-1];return n.route.id||Xt(!1),n.route.id}function O2(){var t;let e=C.useContext(_1),n=R2(Wu.UseRouteError),i=S1(Wu.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[i]}function N2(){let{router:t}=M2(P1.UseNavigateStable),e=S1(Wu.UseNavigateStable),n=C.useRef(!1);return x1(()=>{n.current=!0}),C.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?t.navigate(o):t.navigate(o,Na({fromRouteId:e},s)))},[t,e])}function hf(t){Xt(!1)}function z2(t){let{basename:e="/",children:n=null,location:i,navigationType:o=ji.Pop,navigator:s,static:l=!1,future:c}=t;wc()&&Xt(!1);let d=e.replace(/^\/*/,"/"),f=C.useMemo(()=>({basename:d,navigator:s,static:l,future:Na({v7_relativeSplatPath:!1},c)}),[d,c,s,l]);typeof i=="string"&&(i=fs(i));let{pathname:g="/",search:m="",hash:p="",state:y=null,key:P="default"}=i,b=C.useMemo(()=>{let T=v1(g,d);return T==null?null:{location:{pathname:T,search:m,hash:p,state:y,key:P},navigationType:o}},[d,g,m,p,y,P,o]);return b==null?null:C.createElement(yc.Provider,{value:f},C.createElement(_c.Provider,{children:n,value:b}))}function D2(t){let{children:e,location:n}=t;return S2(ff(e),n)}new Promise(()=>{});function ff(t,e){e===void 0&&(e=[]);let n=[];return C.Children.forEach(t,(i,o)=>{if(!C.isValidElement(i))return;let s=[...e,o];if(i.type===C.Fragment){n.push.apply(n,ff(i.props.children,s));return}i.type!==hf&&Xt(!1),!i.props.index||!i.props.children||Xt(!1);let l={id:i.props.id||s.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(l.children=ff(i.props.children,s)),n.push(l)}),n}/** + * React Router DOM v6.25.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */const I2="6";try{window.__reactRouterVersion=I2}catch{}const j2="startTransition",ly=IC[j2];function B2(t){let{basename:e,children:n,future:i,window:o}=t,s=C.useRef();s.current==null&&(s.current=ZR({window:o,v5Compat:!0}));let l=s.current,[c,d]=C.useState({action:l.action,location:l.location}),{v7_startTransition:f}=i||{},g=C.useCallback(m=>{f&&ly?ly(()=>d(m)):d(m)},[d,f]);return C.useLayoutEffect(()=>l.listen(g),[l,g]),C.createElement(z2,{basename:e,children:n,location:c.location,navigationType:c.action,navigator:l,future:i})}var uy;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(uy||(uy={}));var cy;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(cy||(cy={}));function b1(t,e){const n=C.useRef(e);C.useEffect(function(){e!==n.current&&t.attributionControl!=null&&(n.current!=null&&t.attributionControl.removeAttribution(n.current),e!=null&&t.attributionControl.addAttribution(e)),n.current=e},[t,e])}const F2=1;function V2(t){return Object.freeze({__version:F2,map:t})}function U2(t,e){return Object.freeze({...t,...e})}const C1=C.createContext(null),T1=C1.Provider;function E1(){const t=C.useContext(C1);if(t==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of ");return t}function $2(t){function e(n,i){const{instance:o,context:s}=t(n).current;return C.useImperativeHandle(i,()=>o),n.children==null?null:W.createElement(T1,{value:s},n.children)}return C.forwardRef(e)}function W2(t){function e(n,i){const[o,s]=C.useState(!1),{instance:l}=t(n,s).current;C.useImperativeHandle(i,()=>l),C.useEffect(function(){o&&l.update()},[l,o,n.children]);const c=l._contentNode;return c?ls.createPortal(n.children,c):null}return C.forwardRef(e)}function H2(t){function e(n,i){const{instance:o}=t(n).current;return C.useImperativeHandle(i,()=>o),null}return C.forwardRef(e)}function L1(t,e){const n=C.useRef();C.useEffect(function(){return e!=null&&t.instance.on(e),n.current=e,function(){n.current!=null&&t.instance.off(n.current),n.current=null}},[t,e])}function Up(t,e){const n=t.pane??e.pane;return n?{...t,pane:n}:t}function Z2(t,e){return function(i,o){const s=E1(),l=t(Up(i,s),s);return b1(s.map,i.attribution),L1(l.current,i.eventHandlers),e(l.current,s,i,o),l}}var pf={exports:{}};/* @preserve + * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com + * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade + */(function(t,e){(function(n,i){i(e)})(xC,function(n){var i="1.9.4";function o(r){var a,u,h,v;for(u=1,h=arguments.length;u"u"||!L||!L.Mixin)){r=S(r)?r:[r];for(var a=0;a0?Math.floor(r):Math.ceil(r)};N.prototype={clone:function(){return new N(this.x,this.y)},add:function(r){return this.clone()._add(V(r))},_add:function(r){return this.x+=r.x,this.y+=r.y,this},subtract:function(r){return this.clone()._subtract(V(r))},_subtract:function(r){return this.x-=r.x,this.y-=r.y,this},divideBy:function(r){return this.clone()._divideBy(r)},_divideBy:function(r){return this.x/=r,this.y/=r,this},multiplyBy:function(r){return this.clone()._multiplyBy(r)},_multiplyBy:function(r){return this.x*=r,this.y*=r,this},scaleBy:function(r){return new N(this.x*r.x,this.y*r.y)},unscaleBy:function(r){return new N(this.x/r.x,this.y/r.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=G(this.x),this.y=G(this.y),this},distanceTo:function(r){r=V(r);var a=r.x-this.x,u=r.y-this.y;return Math.sqrt(a*a+u*u)},equals:function(r){return r=V(r),r.x===this.x&&r.y===this.y},contains:function(r){return r=V(r),Math.abs(r.x)<=Math.abs(this.x)&&Math.abs(r.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function V(r,a,u){return r instanceof N?r:S(r)?new N(r[0],r[1]):r==null?r:typeof r=="object"&&"x"in r&&"y"in r?new N(r.x,r.y):new N(r,a,u)}function U(r,a){if(r)for(var u=a?[r,a]:r,h=0,v=u.length;h=this.min.x&&u.x<=this.max.x&&a.y>=this.min.y&&u.y<=this.max.y},intersects:function(r){r=Q(r);var a=this.min,u=this.max,h=r.min,v=r.max,w=v.x>=a.x&&h.x<=u.x,k=v.y>=a.y&&h.y<=u.y;return w&&k},overlaps:function(r){r=Q(r);var a=this.min,u=this.max,h=r.min,v=r.max,w=v.x>a.x&&h.xa.y&&h.y=a.lat&&v.lat<=u.lat&&h.lng>=a.lng&&v.lng<=u.lng},intersects:function(r){r=ht(r);var a=this._southWest,u=this._northEast,h=r.getSouthWest(),v=r.getNorthEast(),w=v.lat>=a.lat&&h.lat<=u.lat,k=v.lng>=a.lng&&h.lng<=u.lng;return w&&k},overlaps:function(r){r=ht(r);var a=this._southWest,u=this._northEast,h=r.getSouthWest(),v=r.getNorthEast(),w=v.lat>a.lat&&h.lata.lng&&h.lng1,hS=function(){var r=!1;try{var a=Object.defineProperty({},"passive",{get:function(){r=!0}});window.addEventListener("testPassiveEventSupport",m,a),window.removeEventListener("testPassiveEventSupport",m,a)}catch{}return r}(),fS=function(){return!!document.createElement("canvas").getContext}(),Oc=!!(document.createElementNS&&lr("svg").createSVGRect),pS=!!Oc&&function(){var r=document.createElement("div");return r.innerHTML="",(r.firstChild&&r.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),mS=!Oc&&function(){try{var r=document.createElement("div");r.innerHTML='';var a=r.firstChild;return a.style.behavior="url(#default#VML)",a&&typeof a.adj=="object"}catch{return!1}}(),gS=navigator.platform.indexOf("Mac")===0,vS=navigator.platform.indexOf("Linux")===0;function Tn(r){return navigator.userAgent.toLowerCase().indexOf(r)>=0}var et={ie:gi,ielt9:Qt,edge:Un,webkit:ms,android:Ja,android23:cr,androidStock:tl,opera:dr,chrome:$n,gecko:gs,safari:vi,phantom:vs,opera12:el,win:nl,ie3d:ys,webkit3d:_s,gecko3d:Kr,any3d:Cn,mobile:hr,mobileWebkit:ut,mobileWebkit3d:Et,msPointer:Ct,pointer:Oe,touch:Qr,touchNative:Ne,mobileOpera:Ac,mobileGecko:cS,retina:dS,passiveEvents:hS,canvas:fS,svg:Oc,vml:mS,inlineSvg:pS,mac:gS,linux:vS},wm=et.msPointer?"MSPointerDown":"pointerdown",xm=et.msPointer?"MSPointerMove":"pointermove",Pm=et.msPointer?"MSPointerUp":"pointerup",Sm=et.msPointer?"MSPointerCancel":"pointercancel",Nc={touchstart:wm,touchmove:xm,touchend:Pm,touchcancel:Sm},bm={touchstart:SS,touchmove:il,touchend:il,touchcancel:il},Yr={},Cm=!1;function yS(r,a,u){return a==="touchstart"&&PS(),bm[a]?(u=bm[a].bind(this,u),r.addEventListener(Nc[a],u,!1),u):(console.warn("wrong event specified:",a),m)}function _S(r,a,u){if(!Nc[a]){console.warn("wrong event specified:",a);return}r.removeEventListener(Nc[a],u,!1)}function wS(r){Yr[r.pointerId]=r}function xS(r){Yr[r.pointerId]&&(Yr[r.pointerId]=r)}function Tm(r){delete Yr[r.pointerId]}function PS(){Cm||(document.addEventListener(wm,wS,!0),document.addEventListener(xm,xS,!0),document.addEventListener(Pm,Tm,!0),document.addEventListener(Sm,Tm,!0),Cm=!0)}function il(r,a){if(a.pointerType!==(a.MSPOINTER_TYPE_MOUSE||"mouse")){a.touches=[];for(var u in Yr)a.touches.push(Yr[u]);a.changedTouches=[a],r(a)}}function SS(r,a){a.MSPOINTER_TYPE_TOUCH&&a.pointerType===a.MSPOINTER_TYPE_TOUCH&&re(a),il(r,a)}function bS(r){var a={},u,h;for(h in r)u=r[h],a[h]=u&&u.bind?u.bind(r):u;return r=a,a.type="dblclick",a.detail=2,a.isTrusted=!1,a._simulated=!0,a}var CS=200;function TS(r,a){r.addEventListener("dblclick",a);var u=0,h;function v(w){if(w.detail!==1){h=w.detail;return}if(!(w.pointerType==="mouse"||w.sourceCapabilities&&!w.sourceCapabilities.firesTouchEvents)){var k=Rm(w);if(!(k.some(function(D){return D instanceof HTMLLabelElement&&D.attributes.for})&&!k.some(function(D){return D instanceof HTMLInputElement||D instanceof HTMLSelectElement}))){var O=Date.now();O-u<=CS?(h++,h===2&&a(bS(w))):h=1,u=O}}}return r.addEventListener("click",v),{dblclick:a,simDblclick:v}}function ES(r,a){r.removeEventListener("dblclick",a.dblclick),r.removeEventListener("click",a.simDblclick)}var zc=sl(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ws=sl(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Em=ws==="webkitTransition"||ws==="OTransition"?ws+"End":"transitionend";function Lm(r){return typeof r=="string"?document.getElementById(r):r}function xs(r,a){var u=r.style[a]||r.currentStyle&&r.currentStyle[a];if((!u||u==="auto")&&document.defaultView){var h=document.defaultView.getComputedStyle(r,null);u=h?h[a]:null}return u==="auto"?null:u}function St(r,a,u){var h=document.createElement(r);return h.className=a||"",u&&u.appendChild(h),h}function Nt(r){var a=r.parentNode;a&&a.removeChild(r)}function rl(r){for(;r.firstChild;)r.removeChild(r.firstChild)}function qr(r){var a=r.parentNode;a&&a.lastChild!==r&&a.appendChild(r)}function Xr(r){var a=r.parentNode;a&&a.firstChild!==r&&a.insertBefore(r,a.firstChild)}function Dc(r,a){if(r.classList!==void 0)return r.classList.contains(a);var u=ol(r);return u.length>0&&new RegExp("(^|\\s)"+a+"(\\s|$)").test(u)}function pt(r,a){if(r.classList!==void 0)for(var u=P(a),h=0,v=u.length;h0?2*window.devicePixelRatio:1;function Om(r){return et.edge?r.wheelDeltaY/2:r.deltaY&&r.deltaMode===0?-r.deltaY/MS:r.deltaY&&r.deltaMode===1?-r.deltaY*20:r.deltaY&&r.deltaMode===2?-r.deltaY*60:r.deltaX||r.deltaZ?0:r.wheelDelta?(r.wheelDeltaY||r.wheelDelta)/2:r.detail&&Math.abs(r.detail)<32765?-r.detail*20:r.detail?r.detail/-32765*60:0}function Kc(r,a){var u=a.relatedTarget;if(!u)return!0;try{for(;u&&u!==r;)u=u.parentNode}catch{return!1}return u!==r}var RS={__proto__:null,on:dt,off:Lt,stopPropagation:mr,disableScrollPropagation:Gc,disableClickPropagation:Cs,preventDefault:re,stop:gr,getPropagationPath:Rm,getMousePosition:Am,getWheelDelta:Om,isExternalTarget:Kc,addListener:dt,removeListener:Lt},Nm=nt.extend({run:function(r,a,u,h){this.stop(),this._el=r,this._inProgress=!0,this._duration=u||.25,this._easeOutPower=1/Math.max(h||.5,.2),this._startPos=pr(r),this._offset=a.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=J(this._animate,this),this._step()},_step:function(r){var a=+new Date-this._startTime,u=this._duration*1e3;athis.options.maxZoom)?this.setZoom(r):this},panInsideBounds:function(r,a){this._enforcingBounds=!0;var u=this.getCenter(),h=this._limitCenter(u,this._zoom,ht(r));return u.equals(h)||this.panTo(h,a),this._enforcingBounds=!1,this},panInside:function(r,a){a=a||{};var u=V(a.paddingTopLeft||a.padding||[0,0]),h=V(a.paddingBottomRight||a.padding||[0,0]),v=this.project(this.getCenter()),w=this.project(r),k=this.getPixelBounds(),O=Q([k.min.add(u),k.max.subtract(h)]),D=O.getSize();if(!O.contains(w)){this._enforcingBounds=!0;var B=w.subtract(O.getCenter()),K=O.extend(w).getSize().subtract(D);v.x+=B.x<0?-K.x:K.x,v.y+=B.y<0?-K.y:K.y,this.panTo(this.unproject(v),a),this._enforcingBounds=!1}return this},invalidateSize:function(r){if(!this._loaded)return this;r=o({animate:!1,pan:!0},r===!0?{animate:!0}:r);var a=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var u=this.getSize(),h=a.divideBy(2).round(),v=u.divideBy(2).round(),w=h.subtract(v);return!w.x&&!w.y?this:(r.animate&&r.pan?this.panBy(w):(r.pan&&this._rawPanBy(w),this.fire("move"),r.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(l(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:a,newSize:u}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(r){if(r=this._locateOptions=o({timeout:1e4,watch:!1},r),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var a=l(this._handleGeolocationResponse,this),u=l(this._handleGeolocationError,this);return r.watch?this._locationWatchId=navigator.geolocation.watchPosition(a,u,r):navigator.geolocation.getCurrentPosition(a,u,r),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(r){if(this._container._leaflet_id){var a=r.code,u=r.message||(a===1?"permission denied":a===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:a,message:"Geolocation error: "+u+"."})}},_handleGeolocationResponse:function(r){if(this._container._leaflet_id){var a=r.coords.latitude,u=r.coords.longitude,h=new ct(a,u),v=h.toBounds(r.coords.accuracy*2),w=this._locateOptions;if(w.setView){var k=this.getBoundsZoom(v);this.setView(h,w.maxZoom?Math.min(k,w.maxZoom):k)}var O={latlng:h,bounds:v,timestamp:r.timestamp};for(var D in r.coords)typeof r.coords[D]=="number"&&(O[D]=r.coords[D]);this.fire("locationfound",O)}},addHandler:function(r,a){if(!a)return this;var u=this[r]=new a(this);return this._handlers.push(u),this.options[r]&&u.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Nt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Z(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var r;for(r in this._layers)this._layers[r].remove();for(r in this._panes)Nt(this._panes[r]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(r,a){var u="leaflet-pane"+(r?" leaflet-"+r.replace("Pane","")+"-pane":""),h=St("div",u,a||this._mapPane);return r&&(this._panes[r]=h),h},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var r=this.getPixelBounds(),a=this.unproject(r.getBottomLeft()),u=this.unproject(r.getTopRight());return new st(a,u)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(r,a,u){r=ht(r),u=V(u||[0,0]);var h=this.getZoom()||0,v=this.getMinZoom(),w=this.getMaxZoom(),k=r.getNorthWest(),O=r.getSouthEast(),D=this.getSize().subtract(u),B=Q(this.project(O,h),this.project(k,h)).getSize(),K=et.any3d?this.options.zoomSnap:1,ot=D.x/B.x,mt=D.y/B.y,ye=a?Math.max(ot,mt):Math.min(ot,mt);return h=this.getScaleZoom(ye,h),K&&(h=Math.round(h/(K/100))*(K/100),h=a?Math.ceil(h/K)*K:Math.floor(h/K)*K),Math.max(v,Math.min(w,h))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new N(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(r,a){var u=this._getTopLeftPoint(r,a);return new U(u,u.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(r){return this.options.crs.getProjectedBounds(r===void 0?this.getZoom():r)},getPane:function(r){return typeof r=="string"?this._panes[r]:r},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(r,a){var u=this.options.crs;return a=a===void 0?this._zoom:a,u.scale(r)/u.scale(a)},getScaleZoom:function(r,a){var u=this.options.crs;a=a===void 0?this._zoom:a;var h=u.zoom(r*u.scale(a));return isNaN(h)?1/0:h},project:function(r,a){return a=a===void 0?this._zoom:a,this.options.crs.latLngToPoint(q(r),a)},unproject:function(r,a){return a=a===void 0?this._zoom:a,this.options.crs.pointToLatLng(V(r),a)},layerPointToLatLng:function(r){var a=V(r).add(this.getPixelOrigin());return this.unproject(a)},latLngToLayerPoint:function(r){var a=this.project(q(r))._round();return a._subtract(this.getPixelOrigin())},wrapLatLng:function(r){return this.options.crs.wrapLatLng(q(r))},wrapLatLngBounds:function(r){return this.options.crs.wrapLatLngBounds(ht(r))},distance:function(r,a){return this.options.crs.distance(q(r),q(a))},containerPointToLayerPoint:function(r){return V(r).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(r){return V(r).add(this._getMapPanePos())},containerPointToLatLng:function(r){var a=this.containerPointToLayerPoint(V(r));return this.layerPointToLatLng(a)},latLngToContainerPoint:function(r){return this.layerPointToContainerPoint(this.latLngToLayerPoint(q(r)))},mouseEventToContainerPoint:function(r){return Am(r,this._container)},mouseEventToLayerPoint:function(r){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(r))},mouseEventToLatLng:function(r){return this.layerPointToLatLng(this.mouseEventToLayerPoint(r))},_initContainer:function(r){var a=this._container=Lm(r);if(a){if(a._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");dt(a,"scroll",this._onScroll,this),this._containerId=d(a)},_initLayout:function(){var r=this._container;this._fadeAnimated=this.options.fadeAnimation&&et.any3d,pt(r,"leaflet-container"+(et.touch?" leaflet-touch":"")+(et.retina?" leaflet-retina":"")+(et.ielt9?" leaflet-oldie":"")+(et.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var a=xs(r,"position");a!=="absolute"&&a!=="relative"&&a!=="fixed"&&a!=="sticky"&&(r.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var r=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Zt(this._mapPane,new N(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(pt(r.markerPane,"leaflet-zoom-hide"),pt(r.shadowPane,"leaflet-zoom-hide"))},_resetView:function(r,a,u){Zt(this._mapPane,new N(0,0));var h=!this._loaded;this._loaded=!0,a=this._limitZoom(a),this.fire("viewprereset");var v=this._zoom!==a;this._moveStart(v,u)._move(r,a)._moveEnd(v),this.fire("viewreset"),h&&this.fire("load")},_moveStart:function(r,a){return r&&this.fire("zoomstart"),a||this.fire("movestart"),this},_move:function(r,a,u,h){a===void 0&&(a=this._zoom);var v=this._zoom!==a;return this._zoom=a,this._lastCenter=r,this._pixelOrigin=this._getNewPixelOrigin(r),h?u&&u.pinch&&this.fire("zoom",u):((v||u&&u.pinch)&&this.fire("zoom",u),this.fire("move",u)),this},_moveEnd:function(r){return r&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Z(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(r){Zt(this._mapPane,this._getMapPanePos().subtract(r))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(r){this._targets={},this._targets[d(this._container)]=this;var a=r?Lt:dt;a(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&a(window,"resize",this._onResize,this),et.any3d&&this.options.transform3DLimit&&(r?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Z(this._resizeRequest),this._resizeRequest=J(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var r=this._getMapPanePos();Math.max(Math.abs(r.x),Math.abs(r.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(r,a){for(var u=[],h,v=a==="mouseout"||a==="mouseover",w=r.target||r.srcElement,k=!1;w;){if(h=this._targets[d(w)],h&&(a==="click"||a==="preclick")&&this._draggableMoved(h)){k=!0;break}if(h&&h.listens(a,!0)&&(v&&!Kc(w,r)||(u.push(h),v))||w===this._container)break;w=w.parentNode}return!u.length&&!k&&!v&&this.listens(a,!0)&&(u=[this]),u},_isClickDisabled:function(r){for(;r&&r!==this._container;){if(r._leaflet_disable_click)return!0;r=r.parentNode}},_handleDOMEvent:function(r){var a=r.target||r.srcElement;if(!(!this._loaded||a._leaflet_disable_events||r.type==="click"&&this._isClickDisabled(a))){var u=r.type;u==="mousedown"&&Uc(a),this._fireDOMEvent(r,u)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(r,a,u){if(r.type==="click"){var h=o({},r);h.type="preclick",this._fireDOMEvent(h,h.type,u)}var v=this._findEventTargets(r,a);if(u){for(var w=[],k=0;k0?Math.round(r-a)/2:Math.max(0,Math.ceil(r))-Math.max(0,Math.floor(a))},_limitZoom:function(r){var a=this.getMinZoom(),u=this.getMaxZoom(),h=et.any3d?this.options.zoomSnap:1;return h&&(r=Math.round(r/h)*h),Math.max(a,Math.min(u,r))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Ut(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(r,a){var u=this._getCenterOffset(r)._trunc();return(a&&a.animate)!==!0&&!this.getSize().contains(u)?!1:(this.panBy(u,a),!0)},_createAnimProxy:function(){var r=this._proxy=St("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(r),this.on("zoomanim",function(a){var u=zc,h=this._proxy.style[u];fr(this._proxy,this.project(a.center,a.zoom),this.getZoomScale(a.zoom,1)),h===this._proxy.style[u]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Nt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var r=this.getCenter(),a=this.getZoom();fr(this._proxy,this.project(r,a),this.getZoomScale(a,1))},_catchTransitionEnd:function(r){this._animatingZoom&&r.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(r,a,u){if(this._animatingZoom)return!0;if(u=u||{},!this._zoomAnimated||u.animate===!1||this._nothingToAnimate()||Math.abs(a-this._zoom)>this.options.zoomAnimationThreshold)return!1;var h=this.getZoomScale(a),v=this._getCenterOffset(r)._divideBy(1-1/h);return u.animate!==!0&&!this.getSize().contains(v)?!1:(J(function(){this._moveStart(!0,u.noMoveStart||!1)._animateZoom(r,a,!0)},this),!0)},_animateZoom:function(r,a,u,h){this._mapPane&&(u&&(this._animatingZoom=!0,this._animateToCenter=r,this._animateToZoom=a,pt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:r,zoom:a,noUpdate:h}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(l(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Ut(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function AS(r,a){return new _t(r,a)}var fn=lt.extend({options:{position:"topright"},initialize:function(r){b(this,r)},getPosition:function(){return this.options.position},setPosition:function(r){var a=this._map;return a&&a.removeControl(this),this.options.position=r,a&&a.addControl(this),this},getContainer:function(){return this._container},addTo:function(r){this.remove(),this._map=r;var a=this._container=this.onAdd(r),u=this.getPosition(),h=r._controlCorners[u];return pt(a,"leaflet-control"),u.indexOf("bottom")!==-1?h.insertBefore(a,h.firstChild):h.appendChild(a),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Nt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(r){this._map&&r&&r.screenX>0&&r.screenY>0&&this._map.getContainer().focus()}}),Ts=function(r){return new fn(r)};_t.include({addControl:function(r){return r.addTo(this),this},removeControl:function(r){return r.remove(),this},_initControlPos:function(){var r=this._controlCorners={},a="leaflet-",u=this._controlContainer=St("div",a+"control-container",this._container);function h(v,w){var k=a+v+" "+a+w;r[v+w]=St("div",k,u)}h("top","left"),h("top","right"),h("bottom","left"),h("bottom","right")},_clearControlPos:function(){for(var r in this._controlCorners)Nt(this._controlCorners[r]);Nt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var zm=fn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(r,a,u,h){return u1,this._baseLayersList.style.display=r?"":"none"),this._separator.style.display=a&&r?"":"none",this},_onLayerChange:function(r){this._handlingClick||this._update();var a=this._getLayer(d(r.target)),u=a.overlay?r.type==="add"?"overlayadd":"overlayremove":r.type==="add"?"baselayerchange":null;u&&this._map.fire(u,a)},_createRadioElement:function(r,a){var u='",h=document.createElement("div");return h.innerHTML=u,h.firstChild},_addItem:function(r){var a=document.createElement("label"),u=this._map.hasLayer(r.layer),h;r.overlay?(h=document.createElement("input"),h.type="checkbox",h.className="leaflet-control-layers-selector",h.defaultChecked=u):h=this._createRadioElement("leaflet-base-layers_"+d(this),u),this._layerControlInputs.push(h),h.layerId=d(r.layer),dt(h,"click",this._onInputClick,this);var v=document.createElement("span");v.innerHTML=" "+r.name;var w=document.createElement("span");a.appendChild(w),w.appendChild(h),w.appendChild(v);var k=r.overlay?this._overlaysList:this._baseLayersList;return k.appendChild(a),this._checkDisabledLayers(),a},_onInputClick:function(){if(!this._preventClick){var r=this._layerControlInputs,a,u,h=[],v=[];this._handlingClick=!0;for(var w=r.length-1;w>=0;w--)a=r[w],u=this._getLayer(a.layerId).layer,a.checked?h.push(u):a.checked||v.push(u);for(w=0;w=0;v--)a=r[v],u=this._getLayer(a.layerId).layer,a.disabled=u.options.minZoom!==void 0&&hu.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var r=this._section;this._preventClick=!0,dt(r,"click",re),this.expand();var a=this;setTimeout(function(){Lt(r,"click",re),a._preventClick=!1})}}),OS=function(r,a,u){return new zm(r,a,u)},Qc=fn.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(r){var a="leaflet-control-zoom",u=St("div",a+" leaflet-bar"),h=this.options;return this._zoomInButton=this._createButton(h.zoomInText,h.zoomInTitle,a+"-in",u,this._zoomIn),this._zoomOutButton=this._createButton(h.zoomOutText,h.zoomOutTitle,a+"-out",u,this._zoomOut),this._updateDisabled(),r.on("zoomend zoomlevelschange",this._updateDisabled,this),u},onRemove:function(r){r.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(r){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(r.shiftKey?3:1))},_createButton:function(r,a,u,h,v){var w=St("a",u,h);return w.innerHTML=r,w.href="#",w.title=a,w.setAttribute("role","button"),w.setAttribute("aria-label",a),Cs(w),dt(w,"click",gr),dt(w,"click",v,this),dt(w,"click",this._refocusOnMap,this),w},_updateDisabled:function(){var r=this._map,a="leaflet-disabled";Ut(this._zoomInButton,a),Ut(this._zoomOutButton,a),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||r._zoom===r.getMinZoom())&&(pt(this._zoomOutButton,a),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||r._zoom===r.getMaxZoom())&&(pt(this._zoomInButton,a),this._zoomInButton.setAttribute("aria-disabled","true"))}});_t.mergeOptions({zoomControl:!0}),_t.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Qc,this.addControl(this.zoomControl))});var NS=function(r){return new Qc(r)},Dm=fn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(r){var a="leaflet-control-scale",u=St("div",a),h=this.options;return this._addScales(h,a+"-line",u),r.on(h.updateWhenIdle?"moveend":"move",this._update,this),r.whenReady(this._update,this),u},onRemove:function(r){r.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(r,a,u){r.metric&&(this._mScale=St("div",a,u)),r.imperial&&(this._iScale=St("div",a,u))},_update:function(){var r=this._map,a=r.getSize().y/2,u=r.distance(r.containerPointToLatLng([0,a]),r.containerPointToLatLng([this.options.maxWidth,a]));this._updateScales(u)},_updateScales:function(r){this.options.metric&&r&&this._updateMetric(r),this.options.imperial&&r&&this._updateImperial(r)},_updateMetric:function(r){var a=this._getRoundNum(r),u=a<1e3?a+" m":a/1e3+" km";this._updateScale(this._mScale,u,a/r)},_updateImperial:function(r){var a=r*3.2808399,u,h,v;a>5280?(u=a/5280,h=this._getRoundNum(u),this._updateScale(this._iScale,h+" mi",h/u)):(v=this._getRoundNum(a),this._updateScale(this._iScale,v+" ft",v/a))},_updateScale:function(r,a,u){r.style.width=Math.round(this.options.maxWidth*u)+"px",r.innerHTML=a},_getRoundNum:function(r){var a=Math.pow(10,(Math.floor(r)+"").length-1),u=r/a;return u=u>=10?10:u>=5?5:u>=3?3:u>=2?2:1,a*u}}),zS=function(r){return new Dm(r)},DS='',Yc=fn.extend({options:{position:"bottomright",prefix:''+(et.inlineSvg?DS+" ":"")+"Leaflet"},initialize:function(r){b(this,r),this._attributions={}},onAdd:function(r){r.attributionControl=this,this._container=St("div","leaflet-control-attribution"),Cs(this._container);for(var a in r._layers)r._layers[a].getAttribution&&this.addAttribution(r._layers[a].getAttribution());return this._update(),r.on("layeradd",this._addAttribution,this),this._container},onRemove:function(r){r.off("layeradd",this._addAttribution,this)},_addAttribution:function(r){r.layer.getAttribution&&(this.addAttribution(r.layer.getAttribution()),r.layer.once("remove",function(){this.removeAttribution(r.layer.getAttribution())},this))},setPrefix:function(r){return this.options.prefix=r,this._update(),this},addAttribution:function(r){return r?(this._attributions[r]||(this._attributions[r]=0),this._attributions[r]++,this._update(),this):this},removeAttribution:function(r){return r?(this._attributions[r]&&(this._attributions[r]--,this._update()),this):this},_update:function(){if(this._map){var r=[];for(var a in this._attributions)this._attributions[a]&&r.push(a);var u=[];this.options.prefix&&u.push(this.options.prefix),r.length&&u.push(r.join(", ")),this._container.innerHTML=u.join(' ')}}});_t.mergeOptions({attributionControl:!0}),_t.addInitHook(function(){this.options.attributionControl&&new Yc().addTo(this)});var IS=function(r){return new Yc(r)};fn.Layers=zm,fn.Zoom=Qc,fn.Scale=Dm,fn.Attribution=Yc,Ts.layers=OS,Ts.zoom=NS,Ts.scale=zS,Ts.attribution=IS;var Ln=lt.extend({initialize:function(r){this._map=r},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ln.addTo=function(r,a){return r.addHandler(a,this),this};var jS={Events:tt},Im=et.touch?"touchstart mousedown":"mousedown",yi=nt.extend({options:{clickTolerance:3},initialize:function(r,a,u,h){b(this,h),this._element=r,this._dragStartTarget=a||r,this._preventOutline=u},enable:function(){this._enabled||(dt(this._dragStartTarget,Im,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(yi._dragging===this&&this.finishDrag(!0),Lt(this._dragStartTarget,Im,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(r){if(this._enabled&&(this._moved=!1,!Dc(this._element,"leaflet-zoom-anim"))){if(r.touches&&r.touches.length!==1){yi._dragging===this&&this.finishDrag();return}if(!(yi._dragging||r.shiftKey||r.which!==1&&r.button!==1&&!r.touches)&&(yi._dragging=this,this._preventOutline&&Uc(this._element),Bc(),Ps(),!this._moving)){this.fire("down");var a=r.touches?r.touches[0]:r,u=km(this._element);this._startPoint=new N(a.clientX,a.clientY),this._startPos=pr(this._element),this._parentScale=$c(u);var h=r.type==="mousedown";dt(document,h?"mousemove":"touchmove",this._onMove,this),dt(document,h?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(r){if(this._enabled){if(r.touches&&r.touches.length>1){this._moved=!0;return}var a=r.touches&&r.touches.length===1?r.touches[0]:r,u=new N(a.clientX,a.clientY)._subtract(this._startPoint);!u.x&&!u.y||Math.abs(u.x)+Math.abs(u.y)w&&(k=O,w=D);w>u&&(a[k]=1,Xc(r,a,u,h,k),Xc(r,a,u,k,v))}function US(r,a){for(var u=[r[0]],h=1,v=0,w=r.length;ha&&(u.push(r[h]),v=h);return va.max.x&&(u|=2),r.ya.max.y&&(u|=8),u}function $S(r,a){var u=a.x-r.x,h=a.y-r.y;return u*u+h*h}function Es(r,a,u,h){var v=a.x,w=a.y,k=u.x-v,O=u.y-w,D=k*k+O*O,B;return D>0&&(B=((r.x-v)*k+(r.y-w)*O)/D,B>1?(v=u.x,w=u.y):B>0&&(v+=k*B,w+=O*B)),k=r.x-v,O=r.y-w,h?k*k+O*O:new N(v,w)}function Ye(r){return!S(r[0])||typeof r[0][0]!="object"&&typeof r[0][0]<"u"}function Wm(r){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Ye(r)}function Hm(r,a){var u,h,v,w,k,O,D,B;if(!r||r.length===0)throw new Error("latlngs not passed");Ye(r)||(console.warn("latlngs are not flat! Only the first ring will be used"),r=r[0]);var K=q([0,0]),ot=ht(r),mt=ot.getNorthWest().distanceTo(ot.getSouthWest())*ot.getNorthEast().distanceTo(ot.getNorthWest());mt<1700&&(K=qc(r));var ye=r.length,Jt=[];for(u=0;uh){D=(w-h)/v,B=[O.x-D*(O.x-k.x),O.y-D*(O.y-k.y)];break}var Ce=a.unproject(V(B));return q([Ce.lat+K.lat,Ce.lng+K.lng])}var WS={__proto__:null,simplify:Fm,pointToSegmentDistance:Vm,closestPointOnSegment:FS,clipSegment:$m,_getEdgeIntersection:ul,_getBitCode:vr,_sqClosestPointOnSegment:Es,isFlat:Ye,_flat:Wm,polylineCenter:Hm},Jc={project:function(r){return new N(r.lng,r.lat)},unproject:function(r){return new ct(r.y,r.x)},bounds:new U([-180,-90],[180,90])},td={R:6378137,R_MINOR:6356752314245179e-9,bounds:new U([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(r){var a=Math.PI/180,u=this.R,h=r.lat*a,v=this.R_MINOR/u,w=Math.sqrt(1-v*v),k=w*Math.sin(h),O=Math.tan(Math.PI/4-h/2)/Math.pow((1-k)/(1+k),w/2);return h=-u*Math.log(Math.max(O,1e-10)),new N(r.lng*a*u,h)},unproject:function(r){for(var a=180/Math.PI,u=this.R,h=this.R_MINOR/u,v=Math.sqrt(1-h*h),w=Math.exp(-r.y/u),k=Math.PI/2-2*Math.atan(w),O=0,D=.1,B;O<15&&Math.abs(D)>1e-7;O++)B=v*Math.sin(k),B=Math.pow((1-B)/(1+B),v/2),D=Math.PI/2-2*Math.atan(w*B)-k,k+=D;return new ct(k*a,r.x*a/u)}},HS={__proto__:null,LonLat:Jc,Mercator:td,SphericalMercator:Ge},ZS=o({},ie,{code:"EPSG:3395",projection:td,transformation:function(){var r=.5/(Math.PI*td.R);return Ke(r,.5,-r,.5)}()}),Zm=o({},ie,{code:"EPSG:4326",projection:Jc,transformation:Ke(1/180,1,-1/180,.5)}),GS=o({},Vt,{projection:Jc,transformation:Ke(1,0,-1,0),scale:function(r){return Math.pow(2,r)},zoom:function(r){return Math.log(r)/Math.LN2},distance:function(r,a){var u=a.lng-r.lng,h=a.lat-r.lat;return Math.sqrt(u*u+h*h)},infinite:!0});Vt.Earth=ie,Vt.EPSG3395=ZS,Vt.EPSG3857=dn,Vt.EPSG900913=ar,Vt.EPSG4326=Zm,Vt.Simple=GS;var pn=nt.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(r){return r.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(r){return r&&r.removeLayer(this),this},getPane:function(r){return this._map.getPane(r?this.options[r]||r:this.options.pane)},addInteractiveTarget:function(r){return this._map._targets[d(r)]=this,this},removeInteractiveTarget:function(r){return delete this._map._targets[d(r)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(r){var a=r.target;if(a.hasLayer(this)){if(this._map=a,this._zoomAnimated=a._zoomAnimated,this.getEvents){var u=this.getEvents();a.on(u,this),this.once("remove",function(){a.off(u,this)},this)}this.onAdd(a),this.fire("add"),a.fire("layeradd",{layer:this})}}});_t.include({addLayer:function(r){if(!r._layerAdd)throw new Error("The provided object is not a Layer.");var a=d(r);return this._layers[a]?this:(this._layers[a]=r,r._mapToAdd=this,r.beforeAdd&&r.beforeAdd(this),this.whenReady(r._layerAdd,r),this)},removeLayer:function(r){var a=d(r);return this._layers[a]?(this._loaded&&r.onRemove(this),delete this._layers[a],this._loaded&&(this.fire("layerremove",{layer:r}),r.fire("remove")),r._map=r._mapToAdd=null,this):this},hasLayer:function(r){return d(r)in this._layers},eachLayer:function(r,a){for(var u in this._layers)r.call(a,this._layers[u]);return this},_addLayers:function(r){r=r?S(r)?r:[r]:[];for(var a=0,u=r.length;athis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&a[0]instanceof ct&&a[0].equals(a[u-1])&&a.pop(),a},_setLatLngs:function(r){Hn.prototype._setLatLngs.call(this,r),Ye(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Ye(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var r=this._renderer._bounds,a=this.options.weight,u=new N(a,a);if(r=new U(r.min.subtract(u),r.max.add(u)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(r))){if(this.options.noClip){this._parts=this._rings;return}for(var h=0,v=this._rings.length,w;hr.y!=v.y>r.y&&r.x<(v.x-h.x)*(r.y-h.y)/(v.y-h.y)+h.x&&(a=!a);return a||Hn.prototype._containsPoint.call(this,r,!0)}});function eb(r,a){return new eo(r,a)}var Zn=Wn.extend({initialize:function(r,a){b(this,a),this._layers={},r&&this.addData(r)},addData:function(r){var a=S(r)?r:r.features,u,h,v;if(a){for(u=0,h=a.length;u0&&v.push(v[0].slice()),v}function no(r,a){return r.feature?o({},r.feature,{geometry:a}):ml(a)}function ml(r){return r.type==="Feature"||r.type==="FeatureCollection"?r:{type:"Feature",properties:{},geometry:r}}var rd={toGeoJSON:function(r){return no(this,{type:"Point",coordinates:id(this.getLatLng(),r)})}};cl.include(rd),ed.include(rd),dl.include(rd),Hn.include({toGeoJSON:function(r){var a=!Ye(this._latlngs),u=pl(this._latlngs,a?1:0,!1,r);return no(this,{type:(a?"Multi":"")+"LineString",coordinates:u})}}),eo.include({toGeoJSON:function(r){var a=!Ye(this._latlngs),u=a&&!Ye(this._latlngs[0]),h=pl(this._latlngs,u?2:a?1:0,!0,r);return a||(h=[h]),no(this,{type:(u?"Multi":"")+"Polygon",coordinates:h})}}),Jr.include({toMultiPoint:function(r){var a=[];return this.eachLayer(function(u){a.push(u.toGeoJSON(r).geometry.coordinates)}),no(this,{type:"MultiPoint",coordinates:a})},toGeoJSON:function(r){var a=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(a==="MultiPoint")return this.toMultiPoint(r);var u=a==="GeometryCollection",h=[];return this.eachLayer(function(v){if(v.toGeoJSON){var w=v.toGeoJSON(r);if(u)h.push(w.geometry);else{var k=ml(w);k.type==="FeatureCollection"?h.push.apply(h,k.features):h.push(k)}}}),u?no(this,{geometries:h,type:"GeometryCollection"}):{type:"FeatureCollection",features:h}}});function Qm(r,a){return new Zn(r,a)}var nb=Qm,gl=pn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(r,a,u){this._url=r,this._bounds=ht(a),b(this,u)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(pt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Nt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(r){return this.options.opacity=r,this._image&&this._updateOpacity(),this},setStyle:function(r){return r.opacity&&this.setOpacity(r.opacity),this},bringToFront:function(){return this._map&&qr(this._image),this},bringToBack:function(){return this._map&&Xr(this._image),this},setUrl:function(r){return this._url=r,this._image&&(this._image.src=r),this},setBounds:function(r){return this._bounds=ht(r),this._map&&this._reset(),this},getEvents:function(){var r={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(r.zoomanim=this._animateZoom),r},setZIndex:function(r){return this.options.zIndex=r,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var r=this._url.tagName==="IMG",a=this._image=r?this._url:St("img");if(pt(a,"leaflet-image-layer"),this._zoomAnimated&&pt(a,"leaflet-zoom-animated"),this.options.className&&pt(a,this.options.className),a.onselectstart=m,a.onmousemove=m,a.onload=l(this.fire,this,"load"),a.onerror=l(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(a.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),r){this._url=a.src;return}a.src=this._url,a.alt=this.options.alt},_animateZoom:function(r){var a=this._map.getZoomScale(r.zoom),u=this._map._latLngBoundsToNewLayerBounds(this._bounds,r.zoom,r.center).min;fr(this._image,u,a)},_reset:function(){var r=this._image,a=new U(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),u=a.getSize();Zt(r,a.min),r.style.width=u.x+"px",r.style.height=u.y+"px"},_updateOpacity:function(){Qe(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var r=this.options.errorOverlayUrl;r&&this._url!==r&&(this._url=r,this._image.src=r)},getCenter:function(){return this._bounds.getCenter()}}),ib=function(r,a,u){return new gl(r,a,u)},Ym=gl.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var r=this._url.tagName==="VIDEO",a=this._image=r?this._url:St("video");if(pt(a,"leaflet-image-layer"),this._zoomAnimated&&pt(a,"leaflet-zoom-animated"),this.options.className&&pt(a,this.options.className),a.onselectstart=m,a.onmousemove=m,a.onloadeddata=l(this.fire,this,"load"),r){for(var u=a.getElementsByTagName("source"),h=[],v=0;v0?h:[a.src];return}S(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(a.style,"objectFit")&&(a.style.objectFit="fill"),a.autoplay=!!this.options.autoplay,a.loop=!!this.options.loop,a.muted=!!this.options.muted,a.playsInline=!!this.options.playsInline;for(var w=0;wv?(a.height=v+"px",pt(r,w)):Ut(r,w),this._containerWidth=this._container.offsetWidth},_animateZoom:function(r){var a=this._map._latLngToNewLayerPoint(this._latlng,r.zoom,r.center),u=this._getAnchor();Zt(this._container,a.add(u))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var r=this._map,a=parseInt(xs(this._container,"marginBottom"),10)||0,u=this._container.offsetHeight+a,h=this._containerWidth,v=new N(this._containerLeft,-u-this._containerBottom);v._add(pr(this._container));var w=r.layerPointToContainerPoint(v),k=V(this.options.autoPanPadding),O=V(this.options.autoPanPaddingTopLeft||k),D=V(this.options.autoPanPaddingBottomRight||k),B=r.getSize(),K=0,ot=0;w.x+h+D.x>B.x&&(K=w.x+h-B.x+D.x),w.x-K-O.x<0&&(K=w.x-O.x),w.y+u+D.y>B.y&&(ot=w.y+u-B.y+D.y),w.y-ot-O.y<0&&(ot=w.y-O.y),(K||ot)&&(this.options.keepInView&&(this._autopanning=!0),r.fire("autopanstart").panBy([K,ot]))}},_getAnchor:function(){return V(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),sb=function(r,a){return new vl(r,a)};_t.mergeOptions({closePopupOnClick:!0}),_t.include({openPopup:function(r,a,u){return this._initOverlay(vl,r,a,u).openOn(this),this},closePopup:function(r){return r=arguments.length?r:this._popup,r&&r.close(),this}}),pn.include({bindPopup:function(r,a){return this._popup=this._initOverlay(vl,this._popup,r,a),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(r){return this._popup&&(this instanceof Wn||(this._popup._source=this),this._popup._prepareOpen(r||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(r){return this._popup&&this._popup.setContent(r),this},getPopup:function(){return this._popup},_openPopup:function(r){if(!(!this._popup||!this._map)){gr(r);var a=r.layer||r.target;if(this._popup._source===a&&!(a instanceof _i)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(r.latlng);return}this._popup._source=a,this.openPopup(r.latlng)}},_movePopup:function(r){this._popup.setLatLng(r.latlng)},_onKeyPress:function(r){r.originalEvent.keyCode===13&&this._openPopup(r)}});var yl=kn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(r){kn.prototype.onAdd.call(this,r),this.setOpacity(this.options.opacity),r.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(r){kn.prototype.onRemove.call(this,r),r.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var r=kn.prototype.getEvents.call(this);return this.options.permanent||(r.preclick=this.close),r},_initLayout:function(){var r="leaflet-tooltip",a=r+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=St("div",a),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+d(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(r){var a,u,h=this._map,v=this._container,w=h.latLngToContainerPoint(h.getCenter()),k=h.layerPointToContainerPoint(r),O=this.options.direction,D=v.offsetWidth,B=v.offsetHeight,K=V(this.options.offset),ot=this._getAnchor();O==="top"?(a=D/2,u=B):O==="bottom"?(a=D/2,u=0):O==="center"?(a=D/2,u=B/2):O==="right"?(a=0,u=B/2):O==="left"?(a=D,u=B/2):k.xthis.options.maxZoom||uh?this._retainParent(v,w,k,h):!1)},_retainChildren:function(r,a,u,h){for(var v=2*r;v<2*r+2;v++)for(var w=2*a;w<2*a+2;w++){var k=new N(v,w);k.z=u+1;var O=this._tileCoordsToKey(k),D=this._tiles[O];if(D&&D.active){D.retain=!0;continue}else D&&D.loaded&&(D.retain=!0);u+1this.options.maxZoom||this.options.minZoom!==void 0&&v1){this._setView(r,u);return}for(var ot=v.min.y;ot<=v.max.y;ot++)for(var mt=v.min.x;mt<=v.max.x;mt++){var ye=new N(mt,ot);if(ye.z=this._tileZoom,!!this._isValidTile(ye)){var Jt=this._tiles[this._tileCoordsToKey(ye)];Jt?Jt.current=!0:k.push(ye)}}if(k.sort(function(Ce,ro){return Ce.distanceTo(w)-ro.distanceTo(w)}),k.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var qe=document.createDocumentFragment();for(mt=0;mtu.max.x)||!a.wrapLat&&(r.yu.max.y))return!1}if(!this.options.bounds)return!0;var h=this._tileCoordsToBounds(r);return ht(this.options.bounds).overlaps(h)},_keyToBounds:function(r){return this._tileCoordsToBounds(this._keyToTileCoords(r))},_tileCoordsToNwSe:function(r){var a=this._map,u=this.getTileSize(),h=r.scaleBy(u),v=h.add(u),w=a.unproject(h,r.z),k=a.unproject(v,r.z);return[w,k]},_tileCoordsToBounds:function(r){var a=this._tileCoordsToNwSe(r),u=new st(a[0],a[1]);return this.options.noWrap||(u=this._map.wrapLatLngBounds(u)),u},_tileCoordsToKey:function(r){return r.x+":"+r.y+":"+r.z},_keyToTileCoords:function(r){var a=r.split(":"),u=new N(+a[0],+a[1]);return u.z=+a[2],u},_removeTile:function(r){var a=this._tiles[r];a&&(Nt(a.el),delete this._tiles[r],this.fire("tileunload",{tile:a.el,coords:this._keyToTileCoords(r)}))},_initTile:function(r){pt(r,"leaflet-tile");var a=this.getTileSize();r.style.width=a.x+"px",r.style.height=a.y+"px",r.onselectstart=m,r.onmousemove=m,et.ielt9&&this.options.opacity<1&&Qe(r,this.options.opacity)},_addTile:function(r,a){var u=this._getTilePos(r),h=this._tileCoordsToKey(r),v=this.createTile(this._wrapCoords(r),l(this._tileReady,this,r));this._initTile(v),this.createTile.length<2&&J(l(this._tileReady,this,r,null,v)),Zt(v,u),this._tiles[h]={el:v,coords:r,current:!0},a.appendChild(v),this.fire("tileloadstart",{tile:v,coords:r})},_tileReady:function(r,a,u){a&&this.fire("tileerror",{error:a,tile:u,coords:r});var h=this._tileCoordsToKey(r);u=this._tiles[h],u&&(u.loaded=+new Date,this._map._fadeAnimated?(Qe(u.el,0),Z(this._fadeFrame),this._fadeFrame=J(this._updateOpacity,this)):(u.active=!0,this._pruneTiles()),a||(pt(u.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:u.el,coords:r})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),et.ielt9||!this._map._fadeAnimated?J(this._pruneTiles,this):setTimeout(l(this._pruneTiles,this),250)))},_getTilePos:function(r){return r.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(r){var a=new N(this._wrapX?g(r.x,this._wrapX):r.x,this._wrapY?g(r.y,this._wrapY):r.y);return a.z=r.z,a},_pxBoundsToTileRange:function(r){var a=this.getTileSize();return new U(r.min.unscaleBy(a).floor(),r.max.unscaleBy(a).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var r in this._tiles)if(!this._tiles[r].loaded)return!1;return!0}});function ub(r){return new ks(r)}var io=ks.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(r,a){this._url=r,a=b(this,a),a.detectRetina&&et.retina&&a.maxZoom>0?(a.tileSize=Math.floor(a.tileSize/2),a.zoomReverse?(a.zoomOffset--,a.minZoom=Math.min(a.maxZoom,a.minZoom+1)):(a.zoomOffset++,a.maxZoom=Math.max(a.minZoom,a.maxZoom-1)),a.minZoom=Math.max(0,a.minZoom)):a.zoomReverse?a.minZoom=Math.min(a.maxZoom,a.minZoom):a.maxZoom=Math.max(a.minZoom,a.maxZoom),typeof a.subdomains=="string"&&(a.subdomains=a.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(r,a){return this._url===r&&a===void 0&&(a=!0),this._url=r,a||this.redraw(),this},createTile:function(r,a){var u=document.createElement("img");return dt(u,"load",l(this._tileOnLoad,this,a,u)),dt(u,"error",l(this._tileOnError,this,a,u)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(u.referrerPolicy=this.options.referrerPolicy),u.alt="",u.src=this.getTileUrl(r),u},getTileUrl:function(r){var a={r:et.retina?"@2x":"",s:this._getSubdomain(r),x:r.x,y:r.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var u=this._globalTileRange.max.y-r.y;this.options.tms&&(a.y=u),a["-y"]=u}return _(this._url,o(a,this.options))},_tileOnLoad:function(r,a){et.ielt9?setTimeout(l(r,this,null,a),0):r(null,a)},_tileOnError:function(r,a,u){var h=this.options.errorTileUrl;h&&a.getAttribute("src")!==h&&(a.src=h),r(u,a)},_onTileRemove:function(r){r.tile.onload=null},_getZoomForUrl:function(){var r=this._tileZoom,a=this.options.maxZoom,u=this.options.zoomReverse,h=this.options.zoomOffset;return u&&(r=a-r),r+h},_getSubdomain:function(r){var a=Math.abs(r.x+r.y)%this.options.subdomains.length;return this.options.subdomains[a]},_abortLoading:function(){var r,a;for(r in this._tiles)if(this._tiles[r].coords.z!==this._tileZoom&&(a=this._tiles[r].el,a.onload=m,a.onerror=m,!a.complete)){a.src=R;var u=this._tiles[r].coords;Nt(a),delete this._tiles[r],this.fire("tileabort",{tile:a,coords:u})}},_removeTile:function(r){var a=this._tiles[r];if(a)return a.el.setAttribute("src",R),ks.prototype._removeTile.call(this,r)},_tileReady:function(r,a,u){if(!(!this._map||u&&u.getAttribute("src")===R))return ks.prototype._tileReady.call(this,r,a,u)}});function Jm(r,a){return new io(r,a)}var tg=io.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(r,a){this._url=r;var u=o({},this.defaultWmsParams);for(var h in a)h in this.options||(u[h]=a[h]);a=b(this,a);var v=a.detectRetina&&et.retina?2:1,w=this.getTileSize();u.width=w.x*v,u.height=w.y*v,this.wmsParams=u},onAdd:function(r){this._crs=this.options.crs||r.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var a=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[a]=this._crs.code,io.prototype.onAdd.call(this,r)},getTileUrl:function(r){var a=this._tileCoordsToNwSe(r),u=this._crs,h=Q(u.project(a[0]),u.project(a[1])),v=h.min,w=h.max,k=(this._wmsVersion>=1.3&&this._crs===Zm?[v.y,v.x,w.y,w.x]:[v.x,v.y,w.x,w.y]).join(","),O=io.prototype.getTileUrl.call(this,r);return O+T(this.wmsParams,O,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+k},setParams:function(r,a){return o(this.wmsParams,r),a||this.redraw(),this}});function cb(r,a){return new tg(r,a)}io.WMS=tg,Jm.wms=cb;var Gn=pn.extend({options:{padding:.1},initialize:function(r){b(this,r),d(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),pt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var r={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(r.zoomanim=this._onAnimZoom),r},_onAnimZoom:function(r){this._updateTransform(r.center,r.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(r,a){var u=this._map.getZoomScale(a,this._zoom),h=this._map.getSize().multiplyBy(.5+this.options.padding),v=this._map.project(this._center,a),w=h.multiplyBy(-u).add(v).subtract(this._map._getNewPixelOrigin(r,a));et.any3d?fr(this._container,w,u):Zt(this._container,w)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var r in this._layers)this._layers[r]._reset()},_onZoomEnd:function(){for(var r in this._layers)this._layers[r]._project()},_updatePaths:function(){for(var r in this._layers)this._layers[r]._update()},_update:function(){var r=this.options.padding,a=this._map.getSize(),u=this._map.containerPointToLayerPoint(a.multiplyBy(-r)).round();this._bounds=new U(u,u.add(a.multiplyBy(1+r*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),eg=Gn.extend({options:{tolerance:0},getEvents:function(){var r=Gn.prototype.getEvents.call(this);return r.viewprereset=this._onViewPreReset,r},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Gn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var r=this._container=document.createElement("canvas");dt(r,"mousemove",this._onMouseMove,this),dt(r,"click dblclick mousedown mouseup contextmenu",this._onClick,this),dt(r,"mouseout",this._handleMouseOut,this),r._leaflet_disable_events=!0,this._ctx=r.getContext("2d")},_destroyContainer:function(){Z(this._redrawRequest),delete this._ctx,Nt(this._container),Lt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var r;this._redrawBounds=null;for(var a in this._layers)r=this._layers[a],r._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Gn.prototype._update.call(this);var r=this._bounds,a=this._container,u=r.getSize(),h=et.retina?2:1;Zt(a,r.min),a.width=h*u.x,a.height=h*u.y,a.style.width=u.x+"px",a.style.height=u.y+"px",et.retina&&this._ctx.scale(2,2),this._ctx.translate(-r.min.x,-r.min.y),this.fire("update")}},_reset:function(){Gn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(r){this._updateDashArray(r),this._layers[d(r)]=r;var a=r._order={layer:r,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=a),this._drawLast=a,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(r){this._requestRedraw(r)},_removePath:function(r){var a=r._order,u=a.next,h=a.prev;u?u.prev=h:this._drawLast=h,h?h.next=u:this._drawFirst=u,delete r._order,delete this._layers[d(r)],this._requestRedraw(r)},_updatePath:function(r){this._extendRedrawBounds(r),r._project(),r._update(),this._requestRedraw(r)},_updateStyle:function(r){this._updateDashArray(r),this._requestRedraw(r)},_updateDashArray:function(r){if(typeof r.options.dashArray=="string"){var a=r.options.dashArray.split(/[, ]+/),u=[],h,v;for(v=0;v')}}catch{}return function(r){return document.createElement("<"+r+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),db={_initContainer:function(){this._container=St("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Gn.prototype._update.call(this),this.fire("update"))},_initPath:function(r){var a=r._container=Ms("shape");pt(a,"leaflet-vml-shape "+(this.options.className||"")),a.coordsize="1 1",r._path=Ms("path"),a.appendChild(r._path),this._updateStyle(r),this._layers[d(r)]=r},_addPath:function(r){var a=r._container;this._container.appendChild(a),r.options.interactive&&r.addInteractiveTarget(a)},_removePath:function(r){var a=r._container;Nt(a),r.removeInteractiveTarget(a),delete this._layers[d(r)]},_updateStyle:function(r){var a=r._stroke,u=r._fill,h=r.options,v=r._container;v.stroked=!!h.stroke,v.filled=!!h.fill,h.stroke?(a||(a=r._stroke=Ms("stroke")),v.appendChild(a),a.weight=h.weight+"px",a.color=h.color,a.opacity=h.opacity,h.dashArray?a.dashStyle=S(h.dashArray)?h.dashArray.join(" "):h.dashArray.replace(/( *, *)/g," "):a.dashStyle="",a.endcap=h.lineCap.replace("butt","flat"),a.joinstyle=h.lineJoin):a&&(v.removeChild(a),r._stroke=null),h.fill?(u||(u=r._fill=Ms("fill")),v.appendChild(u),u.color=h.fillColor||h.color,u.opacity=h.fillOpacity):u&&(v.removeChild(u),r._fill=null)},_updateCircle:function(r){var a=r._point.round(),u=Math.round(r._radius),h=Math.round(r._radiusY||u);this._setPath(r,r._empty()?"M0 0":"AL "+a.x+","+a.y+" "+u+","+h+" 0,"+65535*360)},_setPath:function(r,a){r._path.v=a},_bringToFront:function(r){qr(r._container)},_bringToBack:function(r){Xr(r._container)}},_l=et.vml?Ms:lr,Rs=Gn.extend({_initContainer:function(){this._container=_l("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=_l("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Nt(this._container),Lt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Gn.prototype._update.call(this);var r=this._bounds,a=r.getSize(),u=this._container;(!this._svgSize||!this._svgSize.equals(a))&&(this._svgSize=a,u.setAttribute("width",a.x),u.setAttribute("height",a.y)),Zt(u,r.min),u.setAttribute("viewBox",[r.min.x,r.min.y,a.x,a.y].join(" ")),this.fire("update")}},_initPath:function(r){var a=r._path=_l("path");r.options.className&&pt(a,r.options.className),r.options.interactive&&pt(a,"leaflet-interactive"),this._updateStyle(r),this._layers[d(r)]=r},_addPath:function(r){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(r._path),r.addInteractiveTarget(r._path)},_removePath:function(r){Nt(r._path),r.removeInteractiveTarget(r._path),delete this._layers[d(r)]},_updatePath:function(r){r._project(),r._update()},_updateStyle:function(r){var a=r._path,u=r.options;a&&(u.stroke?(a.setAttribute("stroke",u.color),a.setAttribute("stroke-opacity",u.opacity),a.setAttribute("stroke-width",u.weight),a.setAttribute("stroke-linecap",u.lineCap),a.setAttribute("stroke-linejoin",u.lineJoin),u.dashArray?a.setAttribute("stroke-dasharray",u.dashArray):a.removeAttribute("stroke-dasharray"),u.dashOffset?a.setAttribute("stroke-dashoffset",u.dashOffset):a.removeAttribute("stroke-dashoffset")):a.setAttribute("stroke","none"),u.fill?(a.setAttribute("fill",u.fillColor||u.color),a.setAttribute("fill-opacity",u.fillOpacity),a.setAttribute("fill-rule",u.fillRule||"evenodd")):a.setAttribute("fill","none"))},_updatePoly:function(r,a){this._setPath(r,hn(r._parts,a))},_updateCircle:function(r){var a=r._point,u=Math.max(Math.round(r._radius),1),h=Math.max(Math.round(r._radiusY),1)||u,v="a"+u+","+h+" 0 1,0 ",w=r._empty()?"M0 0":"M"+(a.x-u)+","+a.y+v+u*2+",0 "+v+-u*2+",0 ";this._setPath(r,w)},_setPath:function(r,a){r._path.setAttribute("d",a)},_bringToFront:function(r){qr(r._path)},_bringToBack:function(r){Xr(r._path)}});et.vml&&Rs.include(db);function ig(r){return et.svg||et.vml?new Rs(r):null}_t.include({getRenderer:function(r){var a=r.options.renderer||this._getPaneRenderer(r.options.pane)||this.options.renderer||this._renderer;return a||(a=this._renderer=this._createRenderer()),this.hasLayer(a)||this.addLayer(a),a},_getPaneRenderer:function(r){if(r==="overlayPane"||r===void 0)return!1;var a=this._paneRenderers[r];return a===void 0&&(a=this._createRenderer({pane:r}),this._paneRenderers[r]=a),a},_createRenderer:function(r){return this.options.preferCanvas&&ng(r)||ig(r)}});var rg=eo.extend({initialize:function(r,a){eo.prototype.initialize.call(this,this._boundsToLatLngs(r),a)},setBounds:function(r){return this.setLatLngs(this._boundsToLatLngs(r))},_boundsToLatLngs:function(r){return r=ht(r),[r.getSouthWest(),r.getNorthWest(),r.getNorthEast(),r.getSouthEast()]}});function hb(r,a){return new rg(r,a)}Rs.create=_l,Rs.pointsToPath=hn,Zn.geometryToLayer=hl,Zn.coordsToLatLng=nd,Zn.coordsToLatLngs=fl,Zn.latLngToCoords=id,Zn.latLngsToCoords=pl,Zn.getFeature=no,Zn.asFeature=ml,_t.mergeOptions({boxZoom:!0});var og=Ln.extend({initialize:function(r){this._map=r,this._container=r._container,this._pane=r._panes.overlayPane,this._resetStateTimeout=0,r.on("unload",this._destroy,this)},addHooks:function(){dt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Lt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Nt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(r){if(!r.shiftKey||r.which!==1&&r.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Ps(),Bc(),this._startPoint=this._map.mouseEventToContainerPoint(r),dt(document,{contextmenu:gr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(r){this._moved||(this._moved=!0,this._box=St("div","leaflet-zoom-box",this._container),pt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(r);var a=new U(this._point,this._startPoint),u=a.getSize();Zt(this._box,a.min),this._box.style.width=u.x+"px",this._box.style.height=u.y+"px"},_finish:function(){this._moved&&(Nt(this._box),Ut(this._container,"leaflet-crosshair")),Ss(),Fc(),Lt(document,{contextmenu:gr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(r){if(!(r.which!==1&&r.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(l(this._resetState,this),0);var a=new st(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(a).fire("boxzoomend",{boxZoomBounds:a})}},_onKeyDown:function(r){r.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});_t.addInitHook("addHandler","boxZoom",og),_t.mergeOptions({doubleClickZoom:!0});var sg=Ln.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(r){var a=this._map,u=a.getZoom(),h=a.options.zoomDelta,v=r.originalEvent.shiftKey?u-h:u+h;a.options.doubleClickZoom==="center"?a.setZoom(v):a.setZoomAround(r.containerPoint,v)}});_t.addInitHook("addHandler","doubleClickZoom",sg),_t.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var ag=Ln.extend({addHooks:function(){if(!this._draggable){var r=this._map;this._draggable=new yi(r._mapPane,r._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),r.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),r.on("zoomend",this._onZoomEnd,this),r.whenReady(this._onZoomEnd,this))}pt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Ut(this._map._container,"leaflet-grab"),Ut(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var r=this._map;if(r._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var a=ht(this._map.options.maxBounds);this._offsetLimit=Q(this._map.latLngToContainerPoint(a.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(a.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;r.fire("movestart").fire("dragstart"),r.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(r){if(this._map.options.inertia){var a=this._lastTime=+new Date,u=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(u),this._times.push(a),this._prunePositions(a)}this._map.fire("move",r).fire("drag",r)},_prunePositions:function(r){for(;this._positions.length>1&&r-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var r=this._map.getSize().divideBy(2),a=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=a.subtract(r).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(r,a){return r-(r-a)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var r=this._draggable._newPos.subtract(this._draggable._startPos),a=this._offsetLimit;r.xa.max.x&&(r.x=this._viscousLimit(r.x,a.max.x)),r.y>a.max.y&&(r.y=this._viscousLimit(r.y,a.max.y)),this._draggable._newPos=this._draggable._startPos.add(r)}},_onPreDragWrap:function(){var r=this._worldWidth,a=Math.round(r/2),u=this._initialWorldOffset,h=this._draggable._newPos.x,v=(h-a+u)%r+a-u,w=(h+a+u)%r-a-u,k=Math.abs(v+u)0?w:-w))-a;this._delta=0,this._startTime=null,k&&(r.options.scrollWheelZoom==="center"?r.setZoom(a+k):r.setZoomAround(this._lastMousePos,a+k))}});_t.addInitHook("addHandler","scrollWheelZoom",ug);var fb=600;_t.mergeOptions({tapHold:et.touchNative&&et.safari&&et.mobile,tapTolerance:15});var cg=Ln.extend({addHooks:function(){dt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Lt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(r){if(clearTimeout(this._holdTimeout),r.touches.length===1){var a=r.touches[0];this._startPos=this._newPos=new N(a.clientX,a.clientY),this._holdTimeout=setTimeout(l(function(){this._cancel(),this._isTapValid()&&(dt(document,"touchend",re),dt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",a))},this),fb),dt(document,"touchend touchcancel contextmenu",this._cancel,this),dt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function r(){Lt(document,"touchend",re),Lt(document,"touchend touchcancel",r)},_cancel:function(){clearTimeout(this._holdTimeout),Lt(document,"touchend touchcancel contextmenu",this._cancel,this),Lt(document,"touchmove",this._onMove,this)},_onMove:function(r){var a=r.touches[0];this._newPos=new N(a.clientX,a.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(r,a){var u=new MouseEvent(r,{bubbles:!0,cancelable:!0,view:window,screenX:a.screenX,screenY:a.screenY,clientX:a.clientX,clientY:a.clientY});u._simulated=!0,a.target.dispatchEvent(u)}});_t.addInitHook("addHandler","tapHold",cg),_t.mergeOptions({touchZoom:et.touch,bounceAtZoomLimits:!0});var dg=Ln.extend({addHooks:function(){pt(this._map._container,"leaflet-touch-zoom"),dt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Ut(this._map._container,"leaflet-touch-zoom"),Lt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(r){var a=this._map;if(!(!r.touches||r.touches.length!==2||a._animatingZoom||this._zooming)){var u=a.mouseEventToContainerPoint(r.touches[0]),h=a.mouseEventToContainerPoint(r.touches[1]);this._centerPoint=a.getSize()._divideBy(2),this._startLatLng=a.containerPointToLatLng(this._centerPoint),a.options.touchZoom!=="center"&&(this._pinchStartLatLng=a.containerPointToLatLng(u.add(h)._divideBy(2))),this._startDist=u.distanceTo(h),this._startZoom=a.getZoom(),this._moved=!1,this._zooming=!0,a._stop(),dt(document,"touchmove",this._onTouchMove,this),dt(document,"touchend touchcancel",this._onTouchEnd,this),re(r)}},_onTouchMove:function(r){if(!(!r.touches||r.touches.length!==2||!this._zooming)){var a=this._map,u=a.mouseEventToContainerPoint(r.touches[0]),h=a.mouseEventToContainerPoint(r.touches[1]),v=u.distanceTo(h)/this._startDist;if(this._zoom=a.getScaleZoom(v,this._startZoom),!a.options.bounceAtZoomLimits&&(this._zooma.getMaxZoom()&&v>1)&&(this._zoom=a._limitZoom(this._zoom)),a.options.touchZoom==="center"){if(this._center=this._startLatLng,v===1)return}else{var w=u._add(h)._divideBy(2)._subtract(this._centerPoint);if(v===1&&w.x===0&&w.y===0)return;this._center=a.unproject(a.project(this._pinchStartLatLng,this._zoom).subtract(w),this._zoom)}this._moved||(a._moveStart(!0,!1),this._moved=!0),Z(this._animRequest);var k=l(a._move,a,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=J(k,this,!0),re(r)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,Z(this._animRequest),Lt(document,"touchmove",this._onTouchMove,this),Lt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});_t.addInitHook("addHandler","touchZoom",dg),_t.BoxZoom=og,_t.DoubleClickZoom=sg,_t.Drag=ag,_t.Keyboard=lg,_t.ScrollWheelZoom=ug,_t.TapHold=cg,_t.TouchZoom=dg,n.Bounds=U,n.Browser=et,n.CRS=Vt,n.Canvas=eg,n.Circle=ed,n.CircleMarker=dl,n.Class=lt,n.Control=fn,n.DivIcon=Xm,n.DivOverlay=kn,n.DomEvent=RS,n.DomUtil=kS,n.Draggable=yi,n.Evented=nt,n.FeatureGroup=Wn,n.GeoJSON=Zn,n.GridLayer=ks,n.Handler=Ln,n.Icon=to,n.ImageOverlay=gl,n.LatLng=ct,n.LatLngBounds=st,n.Layer=pn,n.LayerGroup=Jr,n.LineUtil=WS,n.Map=_t,n.Marker=cl,n.Mixin=jS,n.Path=_i,n.Point=N,n.PolyUtil=BS,n.Polygon=eo,n.Polyline=Hn,n.Popup=vl,n.PosAnimation=Nm,n.Projection=HS,n.Rectangle=rg,n.Renderer=Gn,n.SVG=Rs,n.SVGOverlay=qm,n.TileLayer=io,n.Tooltip=yl,n.Transformation=mi,n.Util=wt,n.VideoOverlay=Ym,n.bind=l,n.bounds=Q,n.canvas=ng,n.circle=JS,n.circleMarker=XS,n.control=Ts,n.divIcon=lb,n.extend=o,n.featureGroup=QS,n.geoJSON=Qm,n.geoJson=nb,n.gridLayer=ub,n.icon=YS,n.imageOverlay=ib,n.latLng=q,n.latLngBounds=ht,n.layerGroup=KS,n.map=AS,n.marker=qS,n.point=V,n.polygon=eb,n.polyline=tb,n.popup=sb,n.rectangle=hb,n.setOptions=b,n.stamp=d,n.svg=ig,n.svgOverlay=ob,n.tileLayer=Jm,n.tooltip=ab,n.transformation=Ke,n.version=i,n.videoOverlay=rb;var pb=window.L;n.noConflict=function(){return window.L=pb,this},window.L=n})})(pf,pf.exports);var xc=pf.exports;function $p(t,e,n){return Object.freeze({instance:t,context:e,container:n})}function Wp(t,e){return e==null?function(i,o){const s=C.useRef();return s.current||(s.current=t(i,o)),s}:function(i,o){const s=C.useRef();s.current||(s.current=t(i,o));const l=C.useRef(i),{instance:c}=s.current;return C.useEffect(function(){l.current!==i&&(e(c,i,l.current),l.current=i)},[c,i,o]),s}}function G2(t,e){C.useEffect(function(){return(e.layerContainer??e.map).addLayer(t.instance),function(){var s;(s=e.layerContainer)==null||s.removeLayer(t.instance),e.map.removeLayer(t.instance)}},[e,t])}function k1(t){return function(n){const i=E1(),o=t(Up(n,i),i);return b1(i.map,n.attribution),L1(o.current,n.eventHandlers),G2(o.current,i),o}}function K2(t,e){const n=Wp(t,e),i=k1(n);return $2(i)}function Q2(t,e){const n=Wp(t),i=Z2(n,e);return W2(i)}function Y2(t,e){const n=Wp(t,e),i=k1(n);return H2(i)}function q2(t,e,n){const{opacity:i,zIndex:o}=e;i!=null&&i!==n.opacity&&t.setOpacity(i),o!=null&&o!==n.zIndex&&t.setZIndex(o)}function mf(){return mf=Object.assign||function(t){for(var e=1;e(y==null?void 0:y.map)??null,[y]);const b=C.useCallback(x=>{if(x!==null&&y===null){const _=new xc.Map(x,g);n!=null&&f!=null?_.setView(n,f):t!=null&&_.fitBounds(t,e),d!=null&&_.whenReady(d),P(V2(_))}},[]);C.useEffect(()=>()=>{y==null||y.map.remove()},[y]);const T=y?W.createElement(T1,{value:y},i):l??null;return W.createElement("div",mf({},p,{ref:b}),T)}const M1=C.forwardRef(X2),R1=K2(function({position:e,...n},i){const o=new xc.Marker(e,n);return $p(o,U2(i,{overlayContainer:o}))},function(e,n,i){n.position!==i.position&&e.setLatLng(n.position),n.icon!=null&&n.icon!==i.icon&&e.setIcon(n.icon),n.zIndexOffset!=null&&n.zIndexOffset!==i.zIndexOffset&&e.setZIndexOffset(n.zIndexOffset),n.opacity!=null&&n.opacity!==i.opacity&&e.setOpacity(n.opacity),e.dragging!=null&&n.draggable!==i.draggable&&(n.draggable===!0?e.dragging.enable():e.dragging.disable())}),A1=Q2(function(e,n){const i=new xc.Popup(e,n.overlayContainer);return $p(i,n)},function(e,n,{position:i},o){C.useEffect(function(){const{instance:l}=e;function c(f){f.popup===l&&(l.update(),o(!0))}function d(f){f.popup===l&&o(!1)}return n.map.on({popupopen:c,popupclose:d}),n.overlayContainer==null?(i!=null&&l.setLatLng(i),l.openOn(n.map)):n.overlayContainer.bindPopup(l),function(){var g;n.map.off({popupopen:c,popupclose:d}),(g=n.overlayContainer)==null||g.unbindPopup(),n.map.removeLayer(l)}},[e,n,o,i])}),O1=Y2(function({url:e,...n},i){const o=new xc.TileLayer(e,Up(n,i));return $p(o,i)},function(e,n,i){q2(e,n,i);const{url:o}=n;o!=null&&o!==i.url&&e.setUrl(o)}),Hp=C.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Pc=C.createContext({}),Zp=C.createContext(null),Gp=typeof window<"u",Kp=Gp?C.useLayoutEffect:C.useEffect,N1=C.createContext({strict:!1}),Sc=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),J2="framerAppearId",z1="data-"+Sc(J2),tA={skipAnimations:!1,useManualTiming:!1};function eA(t){let e=new Set,n=new Set,i=!1,o=!1;const s=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(f){s.has(f)&&(d.schedule(f),t()),f(l)}const d={schedule:(f,g=!1,m=!1)=>{const y=m&&i?e:n;return g&&s.add(f),y.has(f)||y.add(f),f},cancel:f=>{n.delete(f),s.delete(f)},process:f=>{if(l=f,i){o=!0;return}i=!0,[e,n]=[n,e],n.clear(),e.forEach(c),i=!1,o&&(o=!1,d.process(f))}};return d}const Zl=["read","resolveKeyframes","update","preRender","render","postRender"],nA=40;function D1(t,e){let n=!1,i=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,l=Zl.reduce((x,_)=>(x[_]=eA(s),x),{}),{read:c,resolveKeyframes:d,update:f,preRender:g,render:m,postRender:p}=l,y=()=>{const x=performance.now();n=!1,o.delta=i?1e3/60:Math.max(Math.min(x-o.timestamp,nA),1),o.timestamp=x,o.isProcessing=!0,c.process(o),d.process(o),f.process(o),g.process(o),m.process(o),p.process(o),o.isProcessing=!1,n&&e&&(i=!1,t(y))},P=()=>{n=!0,i=!0,o.isProcessing||t(y)};return{schedule:Zl.reduce((x,_)=>{const S=l[_];return x[_]=(M,R=!1,I=!1)=>(n||P(),S.schedule(M,R,I)),x},{}),cancel:x=>{for(let _=0;_{g&&g.update(n,c)});const p=C.useRef(!!(n[z1]&&!window.HandoffComplete));return Kp(()=>{g&&(g.updateFeatures(),Qp.render(g.render),p.current&&g.animationState&&g.animationState.animateChanges())}),C.useEffect(()=>{g&&(!p.current&&g.animationState&&g.animationState.animateChanges(),p.current&&(p.current=!1,dy||(dy=!0,queueMicrotask(rA))))}),g}function rA(){window.HandoffComplete=!0}function oA(t,e,n,i){const{layoutId:o,layout:s,drag:l,dragConstraints:c,layoutScroll:d,layoutRoot:f}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:j1(t.parent)),t.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!l||c&&wo(c),visualElement:t,animationType:typeof s=="string"?s:"both",initialPromotionConfig:i,layoutScroll:d,layoutRoot:f})}function j1(t){if(t)return t.options.allowProjection!==!1?t.projection:j1(t.parent)}function sA(t,e,n){return C.useCallback(i=>{i&&t.mount&&t.mount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):wo(n)&&(n.current=i))},[e])}function za(t){return typeof t=="string"||Array.isArray(t)}function Da(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Yp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],qp=["initial",...Yp];function bc(t){return Da(t.animate)||qp.some(e=>za(t[e]))}function B1(t){return!!(bc(t)||t.variants)}function aA(t,e){if(bc(t)){const{initial:n,animate:i}=t;return{initial:n===!1||za(n)?n:void 0,animate:za(i)?i:void 0}}return t.inherit!==!1?e:{}}function lA(t){const{initial:e,animate:n}=aA(t,C.useContext(Pc));return C.useMemo(()=>({initial:e,animate:n}),[hy(e),hy(n)])}function hy(t){return Array.isArray(t)?t.join(" "):t}const fy={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ns={};for(const t in fy)ns[t]={isEnabled:e=>fy[t].some(n=>!!e[n])};function uA(t){for(const e in t)ns[e]={...ns[e],...t[e]}}const F1=C.createContext({}),cA=Symbol.for("motionComponentSymbol"),le=t=>t;let dA=le,gf=le;function hA({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:o}){t&&uA(t);function s(c,d){let f;const g={...C.useContext(Hp),...c,layoutId:fA(c)},{isStatic:m}=g,p=lA(c),y=i(c,m);if(!m&&Gp){pA();const P=mA(g);f=P.MeasureLayout,p.visualElement=iA(o,y,g,e,P.ProjectionNode)}return E.jsxs(Pc.Provider,{value:p,children:[f&&p.visualElement?E.jsx(f,{visualElement:p.visualElement,...g}):null,n(o,c,sA(y,p.visualElement,d),y,m,p.visualElement)]})}const l=C.forwardRef(s);return l[cA]=o,l}function fA({layoutId:t}){const e=C.useContext(F1).id;return e&&t!==void 0?e+"-"+t:t}function pA(t,e){C.useContext(N1).strict}function mA(t){const{drag:e,layout:n}=ns;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function gA(t){function e(i,o={}){return hA(t(i,o))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(i,o)=>(n.has(o)||n.set(o,e(o)),n.get(o))})}const vA=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Xp(t){return typeof t!="string"||t.includes("-")?!1:!!(vA.indexOf(t)>-1||/[A-Z]/u.test(t))}const Hu={};function yA(t){Object.assign(Hu,t)}const Qa=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],or=new Set(Qa);function V1(t,{layout:e,layoutId:n}){return or.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Hu[t]||t==="opacity")}const ge=t=>!!(t&&t.getVelocity),_A={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wA=Qa.length;function xA(t,e,n){let i="";for(let o=0;oe=>typeof e=="string"&&e.startsWith(t),$1=U1("--"),PA=U1("var(--"),Jp=t=>PA(t)?SA.test(t.split("/*")[0].trim()):!1,SA=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,bA=(t,e)=>e&&typeof t=="number"?e.transform(t):t,tr=(t,e,n)=>n>e?e:ntypeof t=="number",parse:parseFloat,transform:t=>t},sa={...ps,transform:t=>tr(0,1,t)},Gl={...ps,default:1},aa=t=>Math.round(t*1e5)/1e5,tm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,CA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,TA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Ya(t){return typeof t=="string"}function EA(t){return t==null}const qa=t=>({test:e=>Ya(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),bi=qa("deg"),Fn=qa("%"),rt=qa("px"),LA=qa("vh"),kA=qa("vw"),py={...Fn,parse:t=>Fn.parse(t)/100,transform:t=>Fn.transform(t*100)},my={...ps,transform:Math.round},W1={borderWidth:rt,borderTopWidth:rt,borderRightWidth:rt,borderBottomWidth:rt,borderLeftWidth:rt,borderRadius:rt,radius:rt,borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomRightRadius:rt,borderBottomLeftRadius:rt,width:rt,maxWidth:rt,height:rt,maxHeight:rt,size:rt,top:rt,right:rt,bottom:rt,left:rt,padding:rt,paddingTop:rt,paddingRight:rt,paddingBottom:rt,paddingLeft:rt,margin:rt,marginTop:rt,marginRight:rt,marginBottom:rt,marginLeft:rt,rotate:bi,rotateX:bi,rotateY:bi,rotateZ:bi,scale:Gl,scaleX:Gl,scaleY:Gl,scaleZ:Gl,skew:bi,skewX:bi,skewY:bi,distance:rt,translateX:rt,translateY:rt,translateZ:rt,x:rt,y:rt,z:rt,perspective:rt,transformPerspective:rt,opacity:sa,originX:py,originY:py,originZ:rt,zIndex:my,backgroundPositionX:rt,backgroundPositionY:rt,fillOpacity:sa,strokeOpacity:sa,numOctaves:my};function em(t,e,n){const{style:i,vars:o,transform:s,transformOrigin:l}=t;let c=!1,d=!1,f=!0;for(const g in e){const m=e[g];if($1(g)){o[g]=m;continue}const p=W1[g],y=bA(m,p);if(or.has(g)){if(c=!0,s[g]=y,!f)continue;m!==(p.default||0)&&(f=!1)}else g.startsWith("origin")?(d=!0,l[g]=y):i[g]=y}if(e.transform||(c||n?i.transform=xA(t.transform,f,n):i.transform&&(i.transform="none")),d){const{originX:g="50%",originY:m="50%",originZ:p=0}=l;i.transformOrigin=`${g} ${m} ${p}`}}const nm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function H1(t,e,n){for(const i in e)!ge(e[i])&&!V1(i,n)&&(t[i]=e[i])}function MA({transformTemplate:t},e){return C.useMemo(()=>{const n=nm();return em(n,e,t),Object.assign({},n.vars,n.style)},[e])}function RA(t,e){const n=t.style||{},i={};return H1(i,n,t),Object.assign(i,MA(t,e)),i}function AA(t,e){const n={},i=RA(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const OA=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Zu(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||OA.has(t)}let Z1=t=>!Zu(t);function NA(t){t&&(Z1=e=>e.startsWith("on")?!Zu(e):t(e))}try{NA(require("@emotion/is-prop-valid").default)}catch{}function zA(t,e,n){const i={};for(const o in t)o==="values"&&typeof t.values=="object"||(Z1(o)||n===!0&&Zu(o)||!e&&!Zu(o)||t.draggable&&o.startsWith("onDrag"))&&(i[o]=t[o]);return i}function gy(t,e,n){return typeof t=="string"?t:rt.transform(e+n*t)}function DA(t,e,n){const i=gy(e,t.x,t.width),o=gy(n,t.y,t.height);return`${i} ${o}`}const IA={offset:"stroke-dashoffset",array:"stroke-dasharray"},jA={offset:"strokeDashoffset",array:"strokeDasharray"};function BA(t,e,n=1,i=0,o=!0){t.pathLength=1;const s=o?IA:jA;t[s.offset]=rt.transform(-i);const l=rt.transform(e),c=rt.transform(n);t[s.array]=`${l} ${c}`}function im(t,{attrX:e,attrY:n,attrScale:i,originX:o,originY:s,pathLength:l,pathSpacing:c=1,pathOffset:d=0,...f},g,m){if(em(t,f,m),g){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:p,style:y,dimensions:P}=t;p.transform&&(P&&(y.transform=p.transform),delete p.transform),P&&(o!==void 0||s!==void 0||y.transform)&&(y.transformOrigin=DA(P,o!==void 0?o:.5,s!==void 0?s:.5)),e!==void 0&&(p.x=e),n!==void 0&&(p.y=n),i!==void 0&&(p.scale=i),l!==void 0&&BA(p,l,c,d,!1)}const G1=()=>({...nm(),attrs:{}}),rm=t=>typeof t=="string"&&t.toLowerCase()==="svg";function FA(t,e,n,i){const o=C.useMemo(()=>{const s=G1();return im(s,e,rm(i),t.transformTemplate),{...s.attrs,style:{...s.style}}},[e]);if(t.style){const s={};H1(s,t.style,t),o.style={...s,...o.style}}return o}function VA(t=!1){return(n,i,o,{latestValues:s},l)=>{const d=(Xp(n)?FA:AA)(i,s,l,n),f=zA(i,typeof n=="string",t),g=n!==C.Fragment?{...f,...d,ref:o}:{},{children:m}=i,p=C.useMemo(()=>ge(m)?m.get():m,[m]);return C.createElement(n,{...g,children:p})}}function K1(t,{style:e,vars:n},i,o){Object.assign(t.style,e,o&&o.getProjectionStyles(i));for(const s in n)t.style.setProperty(s,n[s])}const Q1=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Y1(t,e,n,i){K1(t,e,void 0,i);for(const o in e.attrs)t.setAttribute(Q1.has(o)?o:Sc(o),e.attrs[o])}function om(t,e,n){var i;const{style:o}=t,s={};for(const l in o)(ge(o[l])||e.style&&ge(e.style[l])||V1(l,t)||((i=n==null?void 0:n.getValue(l))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(s[l]=o[l]);return n&&o&&typeof o.willChange=="string"&&(n.applyWillChange=!1),s}function q1(t,e,n){const i=om(t,e,n);for(const o in t)if(ge(t[o])||ge(e[o])){const s=Qa.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;i[s]=t[o]}return i}function vy(t){const e=[{},{}];return t==null||t.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function sm(t,e,n,i){if(typeof e=="function"){const[o,s]=vy(i);e=e(n!==void 0?n:t.custom,o,s)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[o,s]=vy(i);e=e(n!==void 0?n:t.custom,o,s)}return e}function Cc(t){const e=C.useRef(null);return e.current===null&&(e.current=t()),e.current}const vf=t=>Array.isArray(t),UA=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),$A=t=>vf(t)?t[t.length-1]||0:t;function lu(t){const e=ge(t)?t.get():t;return UA(e)?e.toValue():e}const X1=new Set(["opacity","clipPath","filter","transform"]);function J1(t){if(or.has(t))return"transform";if(X1.has(t))return Sc(t)}function Tc(t,e){t.indexOf(e)===-1&&t.push(e)}function Ec(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function WA({applyWillChange:t=!1,scrapeMotionValuesFromProps:e,createRenderState:n,onMount:i},o,s,l,c){const d={latestValues:ZA(o,s,l,c?!1:t,e),renderState:n()};return i&&(d.mount=f=>i(o,f,d)),d}const tP=t=>(e,n)=>{const i=C.useContext(Pc),o=C.useContext(Zp),s=()=>WA(t,e,i,o,n);return n?s():Cc(s)};function HA(t,e){const n=J1(e);n&&Tc(t,n)}function yy(t,e,n){const i=Array.isArray(e)?e:[e];for(let o=0;o{for(const _ in T){let S=T[_];if(Array.isArray(S)){const M=P?S.length-1:0;S=S[M]}S!==null&&(l[_]=S)}for(const _ in x)l[_]=x[_]}),d&&(m&&g!==!1&&!Da(m)&&yy(t,m,T=>{for(const x in T)HA(c,x)}),c.length&&(l.willChange=c.join(","))),l}const{schedule:Pt,cancel:bn,state:te,steps:Id}=D1(typeof requestAnimationFrame<"u"?requestAnimationFrame:le,!0),GA={useVisualState:tP({scrapeMotionValuesFromProps:q1,createRenderState:G1,onMount:(t,e,{renderState:n,latestValues:i})=>{Pt.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Pt.render(()=>{im(n,i,rm(e.tagName),t.transformTemplate),Y1(e,n)})}})},KA={useVisualState:tP({applyWillChange:!0,scrapeMotionValuesFromProps:om,createRenderState:nm})};function QA(t,{forwardMotionProps:e=!1},n,i){return{...Xp(t)?GA:KA,preloadedFeatures:n,useRender:VA(e),createVisualElement:i,Component:t}}function ti(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}const eP=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Lc(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}const YA=t=>e=>eP(e)&&t(e,Lc(e));function ii(t,e,n,i){return ti(t,e,YA(n),i)}const qA=(t,e)=>n=>e(t(n)),ri=(...t)=>t.reduce(qA);function nP(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const _y=nP("dragHorizontal"),wy=nP("dragVertical");function iP(t){let e=!1;if(t==="y")e=wy();else if(t==="x")e=_y();else{const n=_y(),i=wy();n&&i?e=()=>{n(),i()}:(n&&n(),i&&i())}return e}function rP(){const t=iP(!0);return t?(t(),!1):!0}class sr{constructor(e){this.isMounted=!1,this.node=e}update(){}}function xy(t,e){const n=e?"pointerenter":"pointerleave",i=e?"onHoverStart":"onHoverEnd",o=(s,l)=>{if(s.pointerType==="touch"||rP())return;const c=t.getProps();t.animationState&&c.whileHover&&t.animationState.setActive("whileHover",e);const d=c[i];d&&Pt.postRender(()=>d(s,l))};return ii(t.current,n,o,{passive:!t.getProps()[i]})}class XA extends sr{mount(){this.unmount=ri(xy(this.node,!0),xy(this.node,!1))}unmount(){}}class JA extends sr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ri(ti(this.node.current,"focus",()=>this.onFocus()),ti(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const oP=(t,e)=>e?t===e?!0:oP(t,e.parentElement):!1;function jd(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Lc(n))}class tO extends sr{constructor(){super(...arguments),this.removeStartListeners=le,this.removeEndListeners=le,this.removeAccessibleListeners=le,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const i=this.node.getProps(),s=ii(window,"pointerup",(c,d)=>{if(!this.checkPressEnd())return;const{onTap:f,onTapCancel:g,globalTapTarget:m}=this.node.getProps(),p=!m&&!oP(this.node.current,c.target)?g:f;p&&Pt.update(()=>p(c,d))},{passive:!(i.onTap||i.onPointerUp)}),l=ii(window,"pointercancel",(c,d)=>this.cancelPress(c,d),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=ri(s,l),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=s=>{if(s.key!=="Enter"||this.isPressing)return;const l=c=>{c.key!=="Enter"||!this.checkPressEnd()||jd("up",(d,f)=>{const{onTap:g}=this.node.getProps();g&&Pt.postRender(()=>g(d,f))})};this.removeEndListeners(),this.removeEndListeners=ti(this.node.current,"keyup",l),jd("down",(c,d)=>{this.startPress(c,d)})},n=ti(this.node.current,"keydown",e),i=()=>{this.isPressing&&jd("cancel",(s,l)=>this.cancelPress(s,l))},o=ti(this.node.current,"blur",i);this.removeAccessibleListeners=ri(n,o)}}startPress(e,n){this.isPressing=!0;const{onTapStart:i,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&Pt.postRender(()=>i(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!rP()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:i}=this.node.getProps();i&&Pt.postRender(()=>i(e,n))}mount(){const e=this.node.getProps(),n=ii(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),i=ti(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ri(n,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const yf=new WeakMap,Bd=new WeakMap,eO=t=>{const e=yf.get(t.target);e&&e(t)},nO=t=>{t.forEach(eO)};function iO({root:t,...e}){const n=t||document;Bd.has(n)||Bd.set(n,{});const i=Bd.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(nO,{root:t,...e})),i[o]}function rO(t,e,n){const i=iO(e);return yf.set(t,n),i.observe(t),()=>{yf.delete(t),i.unobserve(t)}}const oO={some:0,all:1};class sO extends sr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:o="some",once:s}=e,l={root:n?n.current:void 0,rootMargin:i,threshold:typeof o=="number"?o:oO[o]},c=d=>{const{isIntersecting:f}=d;if(this.isInView===f||(this.isInView=f,s&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:g,onViewportLeave:m}=this.node.getProps(),p=f?g:m;p&&p(d)};return rO(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(aO(e,n))&&this.startObserver()}unmount(){}}function aO({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const lO={inView:{Feature:sO},tap:{Feature:tO},focus:{Feature:JA},hover:{Feature:XA}};function sP(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;it*1e3,oi=t=>t/1e3,uO={type:"spring",stiffness:500,damping:25,restSpeed:10},cO=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),dO={type:"keyframes",duration:.8},hO={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fO=(t,{keyframes:e})=>e.length>2?dO:or.has(t)?t.startsWith("scale")?cO(e[1]):uO:hO;function pO({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:s,repeatType:l,repeatDelay:c,from:d,elapsed:f,...g}){return!!Object.keys(g).length}function am(t,e){return t[e]||t.default||t}const mO=t=>t!==null;function Mc(t,{repeat:e,repeatType:n="loop"},i){const o=t.filter(mO),s=e&&n!=="loop"&&e%2===1?0:o.length-1;return!s||i===void 0?o[s]:i}let uu;function gO(){uu=void 0}const Ki={now:()=>(uu===void 0&&Ki.set(te.isProcessing||tA.useManualTiming?te.timestamp:performance.now()),uu),set:t=>{uu=t,queueMicrotask(gO)}},aP=t=>/^0[^.\s]+$/u.test(t);function vO(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||aP(t):!0}const lP=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),yO=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function _O(t){const e=yO.exec(t);if(!e)return[,];const[,n,i,o]=e;return[`--${n??i}`,o]}function uP(t,e,n=1){const[i,o]=_O(t);if(!i)return;const s=window.getComputedStyle(e).getPropertyValue(i);if(s){const l=s.trim();return lP(l)?parseFloat(l):l}return Jp(o)?uP(o,e,n+1):o}const wO=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Py=t=>t===ps||t===rt,Sy=(t,e)=>parseFloat(t.split(", ")[e]),by=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/u);if(o)return Sy(o[1],e);{const s=i.match(/^matrix\((.+)\)$/u);return s?Sy(s[1],t):0}},xO=new Set(["x","y","z"]),PO=Qa.filter(t=>!xO.has(t));function SO(t){const e=[];return PO.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const is={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:by(4,13),y:by(5,14)};is.translateX=is.x;is.translateY=is.y;const cP=t=>e=>e.test(t),bO={test:t=>t==="auto",parse:t=>t},dP=[ps,rt,Fn,bi,kA,LA,bO],Cy=t=>dP.find(cP(t)),jr=new Set;let _f=!1,wf=!1;function hP(){if(wf){const t=Array.from(jr).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const o=SO(i);o.length&&(n.set(i,o),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const o=n.get(i);o&&o.forEach(([s,l])=>{var c;(c=i.getValue(s))===null||c===void 0||c.set(l)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}wf=!1,_f=!1,jr.forEach(t=>t.complete()),jr.clear()}function fP(){jr.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(wf=!0)})}function CO(){fP(),hP()}class lm{constructor(e,n,i,o,s,l=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=o,this.element=s,this.isAsync=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(jr.add(this),_f||(_f=!0,Pt.read(fP),Pt.resolveKeyframes(hP))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:o}=this;for(let s=0;sn=>!!(Ya(n)&&TA.test(n)&&n.startsWith(t)||e&&!EA(n)&&Object.prototype.hasOwnProperty.call(n,e)),pP=(t,e,n)=>i=>{if(!Ya(i))return i;const[o,s,l,c]=i.match(tm);return{[t]:parseFloat(o),[e]:parseFloat(s),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},TO=t=>tr(0,255,t),Fd={...ps,transform:t=>Math.round(TO(t))},Er={test:um("rgb","red"),parse:pP("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Fd.transform(t)+", "+Fd.transform(e)+", "+Fd.transform(n)+", "+aa(sa.transform(i))+")"};function EO(t){let e="",n="",i="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,i+=i,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}}const xf={test:um("#"),parse:EO,transform:Er.transform},xo={test:um("hsl","hue"),parse:pP("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+Fn.transform(aa(e))+", "+Fn.transform(aa(n))+", "+aa(sa.transform(i))+")"},pe={test:t=>Er.test(t)||xf.test(t)||xo.test(t),parse:t=>Er.test(t)?Er.parse(t):xo.test(t)?xo.parse(t):xf.parse(t),transform:t=>Ya(t)?t:t.hasOwnProperty("red")?Er.transform(t):xo.transform(t)};function LO(t){var e,n;return isNaN(t)&&Ya(t)&&(((e=t.match(tm))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(CA))===null||n===void 0?void 0:n.length)||0)>0}const mP="number",gP="color",kO="var",MO="var(",Ty="${}",RO=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ia(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},o=[];let s=0;const c=e.replace(RO,d=>(pe.test(d)?(i.color.push(s),o.push(gP),n.push(pe.parse(d))):d.startsWith(MO)?(i.var.push(s),o.push(kO),n.push(d)):(i.number.push(s),o.push(mP),n.push(parseFloat(d))),++s,Ty)).split(Ty);return{values:n,split:c,indexes:i,types:o}}function vP(t){return Ia(t).values}function yP(t){const{split:e,types:n}=Ia(t),i=e.length;return o=>{let s="";for(let l=0;ltypeof t=="number"?0:t;function OO(t){const e=vP(t);return yP(t)(e.map(AO))}const er={test:LO,parse:vP,createTransformer:yP,getAnimatableNone:OO},NO=new Set(["brightness","contrast","saturate","opacity"]);function zO(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(tm)||[];if(!i)return t;const o=n.replace(i,"");let s=NO.has(e)?1:0;return i!==n&&(s*=100),e+"("+s+o+")"}const DO=/\b([a-z-]*)\(.*?\)/gu,Pf={...er,getAnimatableNone:t=>{const e=t.match(DO);return e?e.map(zO).join(" "):t}},IO={...W1,color:pe,backgroundColor:pe,outlineColor:pe,fill:pe,stroke:pe,borderColor:pe,borderTopColor:pe,borderRightColor:pe,borderBottomColor:pe,borderLeftColor:pe,filter:Pf,WebkitFilter:Pf},cm=t=>IO[t];function _P(t,e){let n=cm(t);return n!==Pf&&(n=er),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const jO=new Set(["auto","none","0"]);function BO(t,e,n){let i=0,o;for(;i{n.getValue(d).set(f)}),this.resolveNoneKeyframes()}}function xP(t){let e;return()=>(e===void 0&&(e=t()),e)}const Ey=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(er.test(t)||t==="0")&&!t.startsWith("url("));function FO(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n{this.resolveFinishedPromise=e})}}function dm(t,e){return e?t*(1e3/e):0}const UO=5;function SP(t,e,n){const i=Math.max(e-UO,0);return dm(n-t(i),e-i)}const Vd=.001,$O=.01,WO=10,HO=.05,ZO=1;function GO({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let o,s,l=1-e;l=tr(HO,ZO,l),t=tr($O,WO,oi(t)),l<1?(o=f=>{const g=f*l,m=g*t,p=g-n,y=Sf(f,l),P=Math.exp(-m);return Vd-p/y*P},s=f=>{const m=f*l*t,p=m*n+n,y=Math.pow(l,2)*Math.pow(f,2)*t,P=Math.exp(-m),b=Sf(Math.pow(f,2),l);return(-o(f)+Vd>0?-1:1)*((p-y)*P)/b}):(o=f=>{const g=Math.exp(-f*t),m=(f-n)*t+1;return-Vd+g*m},s=f=>{const g=Math.exp(-f*t),m=(n-f)*(t*t);return g*m});const c=5/t,d=QO(o,s,c);if(t=Gi(t),isNaN(d))return{stiffness:100,damping:10,duration:t};{const f=Math.pow(d,2)*i;return{stiffness:f,damping:l*2*Math.sqrt(i*f),duration:t}}}const KO=12;function QO(t,e,n){let i=n;for(let o=1;ot[n]!==void 0)}function XO(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Ly(t,qO)&&Ly(t,YO)){const n=GO(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function bP({keyframes:t,restDelta:e,restSpeed:n,...i}){const o=t[0],s=t[t.length-1],l={done:!1,value:o},{stiffness:c,damping:d,mass:f,duration:g,velocity:m,isResolvedFromDuration:p}=XO({...i,velocity:-oi(i.velocity||0)}),y=m||0,P=d/(2*Math.sqrt(c*f)),b=s-o,T=oi(Math.sqrt(c/f)),x=Math.abs(b)<5;n||(n=x?.01:2),e||(e=x?.005:.5);let _;if(P<1){const S=Sf(T,P);_=M=>{const R=Math.exp(-P*T*M);return s-R*((y+P*T*b)/S*Math.sin(S*M)+b*Math.cos(S*M))}}else if(P===1)_=S=>s-Math.exp(-T*S)*(b+(y+T*b)*S);else{const S=T*Math.sqrt(P*P-1);_=M=>{const R=Math.exp(-P*T*M),I=Math.min(S*M,300);return s-R*((y+P*T*b)*Math.sinh(I)+S*b*Math.cosh(I))/S}}return{calculatedDuration:p&&g||null,next:S=>{const M=_(S);if(p)l.done=S>=g;else{let R=y;S!==0&&(P<1?R=SP(_,S,M):R=0);const I=Math.abs(R)<=n,j=Math.abs(s-M)<=e;l.done=I&&j}return l.value=l.done?s:M,l}}}function ky({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:l,min:c,max:d,restDelta:f=.5,restSpeed:g}){const m=t[0],p={done:!1,value:m},y=z=>c!==void 0&&zd,P=z=>c===void 0?d:d===void 0||Math.abs(c-z)-b*Math.exp(-z/i),S=z=>x+_(z),M=z=>{const H=_(z),$=S(z);p.done=Math.abs(H)<=f,p.value=p.done?x:$};let R,I;const j=z=>{y(p.value)&&(R=z,I=bP({keyframes:[p.value,P(p.value)],velocity:SP(S,z,p.value),damping:o,stiffness:s,restDelta:f,restSpeed:g}))};return j(0),{calculatedDuration:null,next:z=>{let H=!1;return!I&&R===void 0&&(H=!0,M(z),j(z)),R!==void 0&&z>=R?I.next(z-R):(!H&&M(z),p)}}}const CP=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,JO=1e-7,tN=12;function eN(t,e,n,i,o){let s,l,c=0;do l=e+(n-e)/2,s=CP(l,i,o)-t,s>0?n=l:e=l;while(Math.abs(s)>JO&&++ceN(s,0,1,t,n);return s=>s===0||s===1?s:CP(o(s),e,i)}const nN=Xa(.42,0,1,1),iN=Xa(0,0,.58,1),TP=Xa(.42,0,.58,1),rN=t=>Array.isArray(t)&&typeof t[0]!="number",EP=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,LP=t=>e=>1-t(1-e),hm=t=>1-Math.sin(Math.acos(t)),kP=LP(hm),oN=EP(hm),MP=Xa(.33,1.53,.69,.99),fm=LP(MP),sN=EP(fm),aN=t=>(t*=2)<1?.5*fm(t):.5*(2-Math.pow(2,-10*(t-1))),My={linear:le,easeIn:nN,easeInOut:TP,easeOut:iN,circIn:hm,circInOut:oN,circOut:kP,backIn:fm,backInOut:sN,backOut:MP,anticipate:aN},Ry=t=>{if(Array.isArray(t)){gf(t.length===4);const[e,n,i,o]=t;return Xa(e,n,i,o)}else if(typeof t=="string")return gf(My[t]!==void 0),My[t];return t},rs=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},Dt=(t,e,n)=>t+(e-t)*n;function Ud(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function lN({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let o=0,s=0,l=0;if(!e)o=s=l=n;else{const c=n<.5?n*(1+e):n+e-n*e,d=2*n-c;o=Ud(d,c,t+1/3),s=Ud(d,c,t),l=Ud(d,c,t-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:i}}function Gu(t,e){return n=>n>0?e:t}const $d=(t,e,n)=>{const i=t*t,o=n*(e*e-i)+i;return o<0?0:Math.sqrt(o)},uN=[xf,Er,xo],cN=t=>uN.find(e=>e.test(t));function Ay(t){const e=cN(t);if(!e)return!1;let n=e.parse(t);return e===xo&&(n=lN(n)),n}const Oy=(t,e)=>{const n=Ay(t),i=Ay(e);if(!n||!i)return Gu(t,e);const o={...n};return s=>(o.red=$d(n.red,i.red,s),o.green=$d(n.green,i.green,s),o.blue=$d(n.blue,i.blue,s),o.alpha=Dt(n.alpha,i.alpha,s),Er.transform(o))},bf=new Set(["none","hidden"]);function dN(t,e){return bf.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function hN(t,e){return n=>Dt(t,e,n)}function pm(t){return typeof t=="number"?hN:typeof t=="string"?Jp(t)?Gu:pe.test(t)?Oy:mN:Array.isArray(t)?RP:typeof t=="object"?pe.test(t)?Oy:fN:Gu}function RP(t,e){const n=[...t],i=n.length,o=t.map((s,l)=>pm(s)(s,e[l]));return s=>{for(let l=0;l{for(const s in i)n[s]=i[s](o);return n}}function pN(t,e){var n;const i=[],o={color:0,var:0,number:0};for(let s=0;s{const n=er.createTransformer(e),i=Ia(t),o=Ia(e);return i.indexes.var.length===o.indexes.var.length&&i.indexes.color.length===o.indexes.color.length&&i.indexes.number.length>=o.indexes.number.length?bf.has(t)&&!o.values.length||bf.has(e)&&!i.values.length?dN(t,e):ri(RP(pN(i,o),o.values),n):Gu(t,e)};function AP(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Dt(t,e,n):pm(t)(t,e)}function gN(t,e,n){const i=[],o=n||AP,s=t.length-1;for(let l=0;le[0];if(s===2&&t[0]===t[1])return()=>e[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const l=gN(e,i,o),c=l.length,d=f=>{let g=0;if(c>1)for(;gd(tr(t[0],t[s-1],f)):d}function vN(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const o=rs(0,e,i);t.push(Dt(n,1,o))}}function OP(t){const e=[0];return vN(e,t.length-1),e}function yN(t,e){return t.map(n=>n*e)}function _N(t,e){return t.map(()=>e||TP).splice(0,t.length-1)}function Ku({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const o=rN(i)?i.map(Ry):Ry(i),s={done:!1,value:e[0]},l=yN(n&&n.length===e.length?n:OP(e),t),c=mm(l,e,{ease:Array.isArray(o)?o:_N(e,o)});return{calculatedDuration:t,next:d=>(s.value=c(d),s.done=d>=t,s)}}const Ny=2e4;function wN(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e=Ny?1/0:e}const xN=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Pt.update(e,!0),stop:()=>bn(e),now:()=>te.isProcessing?te.timestamp:Ki.now()}},PN={decay:ky,inertia:ky,tween:Ku,keyframes:Ku,spring:bP},SN=t=>t/100;class gm extends PP{constructor({KeyframeResolver:e=lm,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:i,motionValue:o,keyframes:s}=this.options,l=(c,d)=>this.onKeyframesResolved(c,d);i&&o&&o.owner?this.resolver=o.owner.resolveKeyframes(s,l,i,o):this.resolver=new e(s,l,i,o),this.resolver.scheduleResolve()}initPlayback(e){const{type:n="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s,velocity:l=0}=this.options,c=PN[n]||Ku;let d,f;c!==Ku&&typeof e[0]!="number"&&(d=ri(SN,AP(e[0],e[1])),e=[0,100]);const g=c({...this.options,keyframes:e});s==="mirror"&&(f=c({...this.options,keyframes:[...e].reverse(),velocity:-l})),g.calculatedDuration===null&&(g.calculatedDuration=wN(g));const{calculatedDuration:m}=g,p=m+o,y=p*(i+1)-o;return{generator:g,mirroredGenerator:f,mapPercentToKeyframes:d,calculatedDuration:m,resolvedDuration:p,totalDuration:y}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:i}=this;if(!i){const{keyframes:z}=this.options;return{done:!0,value:z[z.length-1]}}const{finalKeyframe:o,generator:s,mirroredGenerator:l,mapPercentToKeyframes:c,keyframes:d,calculatedDuration:f,totalDuration:g,resolvedDuration:m}=i;if(this.startTime===null)return s.next(0);const{delay:p,repeat:y,repeatType:P,repeatDelay:b,onUpdate:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-g/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const x=this.currentTime-p*(this.speed>=0?1:-1),_=this.speed>=0?x<0:x>g;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=g);let S=this.currentTime,M=s;if(y){const z=Math.min(this.currentTime,g)/m;let H=Math.floor(z),$=z%1;!$&&z>=1&&($=1),$===1&&H--,H=Math.min(H,y+1),!!(H%2)&&(P==="reverse"?($=1-$,b&&($-=b/m)):P==="mirror"&&(M=l)),S=tr(0,1,$)*m}const R=_?{done:!1,value:d[0]}:M.next(S);c&&(R.value=c(R.value));let{done:I}=R;!_&&f!==null&&(I=this.speed>=0?this.currentTime>=g:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return j&&o!==void 0&&(R.value=Mc(d,this.options,o)),T&&T(R.value),j&&this.finish(),R}get duration(){const{resolved:e}=this;return e?oi(e.calculatedDuration):0}get time(){return oi(this.currentTime)}set time(e){e=Gi(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=oi(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=xN,onPlay:n}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=i),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const NP=t=>Array.isArray(t)&&typeof t[0]=="number";function zP(t){return!!(!t||typeof t=="string"&&t in vm||NP(t)||Array.isArray(t)&&t.every(zP))}const Qs=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,vm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Qs([0,.65,.55,1]),circOut:Qs([.55,0,1,.45]),backIn:Qs([.31,.01,.66,-.59]),backOut:Qs([.33,1.53,.69,.99])};function bN(t){return DP(t)||vm.easeOut}function DP(t){if(t)return NP(t)?Qs(t):Array.isArray(t)?t.map(bN):vm[t]}function CN(t,e,n,{delay:i=0,duration:o=300,repeat:s=0,repeatType:l="loop",ease:c,times:d}={}){const f={[e]:n};d&&(f.offset=d);const g=DP(c);return Array.isArray(g)&&(f.easing=g),t.animate(f,{delay:i,duration:o,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:s+1,direction:l==="reverse"?"alternate":"normal"})}const TN=xP(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Qu=10,EN=2e4;function LN(t){return t.type==="spring"||!zP(t.ease)}function kN(t,e){const n=new gm({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const o=[];let s=0;for(;!i.done&&sthis.onKeyframesResolved(s,l),n,i),this.resolver.scheduleResolve()}initPlayback(e,n){var i;let{duration:o=300,times:s,ease:l,type:c,motionValue:d,name:f}=this.options;if(!(!((i=d.owner)===null||i===void 0)&&i.current))return!1;if(LN(this.options)){const{onComplete:m,onUpdate:p,motionValue:y,...P}=this.options,b=kN(e,P);e=b.keyframes,e.length===1&&(e[1]=e[0]),o=b.duration,s=b.times,l=b.ease,c="keyframes"}const g=CN(d.owner.current,f,e,{...this.options,duration:o,times:s,ease:l});return g.startTime=Ki.now(),this.pendingTimeline?(g.timeline=this.pendingTimeline,this.pendingTimeline=void 0):g.onfinish=()=>{const{onComplete:m}=this.options;d.set(Mc(e,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:g,duration:o,times:s,type:c,ease:l,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return oi(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return oi(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Gi(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return le;const{animation:i}=n;i.timeline=e,i.onfinish=null}return le}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:i,duration:o,type:s,ease:l,times:c}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:f,onUpdate:g,onComplete:m,...p}=this.options,y=new gm({...p,keyframes:i,duration:o,type:s,ease:l,times:c,isGenerator:!0}),P=Gi(this.time);f.setWithVelocity(y.sample(P-Qu).value,y.sample(P).value,Qu)}const{onStop:d}=this.options;d&&d(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:i,repeatDelay:o,repeatType:s,damping:l,type:c}=e;return TN()&&i&&X1.has(i)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&s!=="mirror"&&l!==0&&c!=="inertia"}}function MN(t,e){let n;const i=()=>{const{currentTime:o}=e,l=(o===null?0:o.value)/100;n!==l&&t(l),n=l};return Pt.update(i,!0),()=>bn(i)}const RN=xP(()=>window.ScrollTimeline!==void 0);class AN{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,n){return Promise.all(this.animations).then(e).catch(n)}getAll(e){return this.animations[0][e]}setAll(e,n){for(let i=0;i{if(RN()&&i.attachTimeline)i.attachTimeline(e);else return i.pause(),MN(o=>{i.time=i.duration*o},e)});return()=>{n.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get duration(){let e=0;for(let n=0;nn[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const ym=(t,e,n,i={},o,s,l)=>c=>{const d=am(i,t)||{},f=d.delay||i.delay||0;let{elapsed:g=0}=i;g=g-Gi(f);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...d,delay:-g,onUpdate:y=>{e.set(y),d.onUpdate&&d.onUpdate(y)},onComplete:()=>{c(),d.onComplete&&d.onComplete(),l&&l()},onStop:l,name:t,motionValue:e,element:s?void 0:o};pO(d)||(m={...m,...fO(t,m)}),m.duration&&(m.duration=Gi(m.duration)),m.repeatDelay&&(m.repeatDelay=Gi(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let p=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(p=!0)),p&&!s&&e.get()!==void 0){const y=Mc(m.keyframes,d);if(y!==void 0)return Pt.update(()=>{m.onUpdate(y),m.onComplete()}),new AN([])}return!s&&zy.supports(m)?new zy(m):new gm(m)};class _m{constructor(){this.subscriptions=[]}add(e){return Tc(this.subscriptions,e),()=>Ec(this.subscriptions,e)}notify(e,n,i){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](e,n,i);else for(let s=0;s!isNaN(parseFloat(t)),la={current:void 0};class IP{constructor(e,n={}){this.version="11.3.19",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,o=!0)=>{const s=Ki.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Ki.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ON(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new _m);const i=this.events[e].add(n);return e==="change"?()=>{i(),Pt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return la.current&&la.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=Ki.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Dy)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Dy);return dm(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function In(t,e){return new IP(t,e)}function NN(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,In(n))}function zN(t,e){const n=kc(t,e);let{transitionEnd:i={},transition:o={},...s}=n||{};s={...s,...i};for(const l in s){const c=$A(s[l]);NN(t,l,c)}}function jP(t){return t.getProps()[z1]}class DN extends IP{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(e){const n=J1(e);if(!n)return;const i=this.counts.get(n)||0;this.counts.set(n,i+1),i===0&&(this.output.push(n),this.update());let o=!1;return()=>{if(o)return;o=!0;const s=this.counts.get(n)-1;this.counts.set(n,s),s===0&&(Ec(this.output,n),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function IN(t){return!!(ge(t)&&t.add)}function Cf(t,e){var n;if(!t.applyWillChange)return;let i=t.getValue("willChange");if(!i&&!(!((n=t.props.style)===null||n===void 0)&&n.willChange)&&(i=new DN("auto"),t.addValue("willChange",i)),IN(i))return i.add(e)}function jN({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function BP(t,e,{delay:n=0,transitionOverride:i,type:o}={}){var s;let{transition:l=t.getDefaultTransition(),transitionEnd:c,...d}=e;i&&(l=i);const f=[],g=o&&t.animationState&&t.animationState.getState()[o];for(const m in d){const p=t.getValue(m,(s=t.latestValues[m])!==null&&s!==void 0?s:null),y=d[m];if(y===void 0||g&&jN(g,m))continue;const P={delay:n,elapsed:0,...am(l||{},m)};let b=!1;if(window.HandoffAppearAnimations){const x=jP(t);if(x){const _=window.HandoffAppearAnimations(x,m,p,Pt);_!==null&&(P.elapsed=_,b=!0)}}p.start(ym(m,p,y,t.shouldReduceMotion&&or.has(m)?{type:!1}:P,t,b,Cf(t,m)));const T=p.animation;T&&f.push(T)}return c&&Promise.all(f).then(()=>{Pt.update(()=>{c&&zN(t,c)})}),f}function Tf(t,e,n={}){var i;const o=kc(t,e,n.type==="exit"?(i=t.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const l=o?()=>Promise.all(BP(t,o,n)):()=>Promise.resolve(),c=t.variantChildren&&t.variantChildren.size?(f=0)=>{const{delayChildren:g=0,staggerChildren:m,staggerDirection:p}=s;return BN(t,e,g+f,m,p,n)}:()=>Promise.resolve(),{when:d}=s;if(d){const[f,g]=d==="beforeChildren"?[l,c]:[c,l];return f().then(()=>g())}else return Promise.all([l(),c(n.delay)])}function BN(t,e,n=0,i=0,o=1,s){const l=[],c=(t.variantChildren.size-1)*i,d=o===1?(f=0)=>f*i:(f=0)=>c-f*i;return Array.from(t.variantChildren).sort(FN).forEach((f,g)=>{f.notify("AnimationStart",e),l.push(Tf(f,e,{...s,delay:n+d(g)}).then(()=>f.notify("AnimationComplete",e)))}),Promise.all(l)}function FN(t,e){return t.sortNodePosition(e)}function VN(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const o=e.map(s=>Tf(t,s,n));i=Promise.all(o)}else if(typeof e=="string")i=Tf(t,e,n);else{const o=typeof e=="function"?kc(t,e,n.custom):e;i=Promise.all(BP(t,o,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}const UN=[...Yp].reverse(),$N=Yp.length;function WN(t){return e=>Promise.all(e.map(({animation:n,options:i})=>VN(t,n,i)))}function HN(t){let e=WN(t),n=Iy(),i=!0;const o=d=>(f,g)=>{var m;const p=kc(t,g,d==="exit"?(m=t.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:y,transitionEnd:P,...b}=p;f={...f,...b,...P}}return f};function s(d){e=d(t)}function l(d){const f=t.getProps(),g=t.getVariantContext(!0)||{},m=[],p=new Set;let y={},P=1/0;for(let T=0;T<$N;T++){const x=UN[T],_=n[x],S=f[x]!==void 0?f[x]:g[x],M=za(S),R=x===d?_.isActive:null;R===!1&&(P=T);let I=S===g[x]&&S!==f[x]&&M;if(I&&i&&t.manuallyAnimateOnMount&&(I=!1),_.protectedKeys={...y},!_.isActive&&R===null||!S&&!_.prevProp||Da(S)||typeof S=="boolean")continue;let z=ZN(_.prevProp,S)||x===d&&_.isActive&&!I&&M||T>P&&M,H=!1;const $=Array.isArray(S)?S:[S];let J=$.reduce(o(x),{});R===!1&&(J={});const{prevResolvedValues:Z={}}=_,wt={...Z,...J},lt=it=>{z=!0,p.has(it)&&(H=!0,p.delete(it)),_.needsAnimating[it]=!0;const tt=t.getValue(it);tt&&(tt.liveStyle=!1)};for(const it in wt){const tt=J[it],nt=Z[it];if(y.hasOwnProperty(it))continue;let N=!1;vf(tt)&&vf(nt)?N=!sP(tt,nt):N=tt!==nt,N?tt!=null?lt(it):p.add(it):tt!==void 0&&p.has(it)?lt(it):_.protectedKeys[it]=!0}_.prevProp=S,_.prevResolvedValues=J,_.isActive&&(y={...y,...J}),i&&t.blockInitialAnimation&&(z=!1),z&&(!I||H)&&m.push(...$.map(it=>({animation:it,options:{type:x}})))}if(p.size){const T={};p.forEach(x=>{const _=t.getBaseTarget(x),S=t.getValue(x);S&&(S.liveStyle=!0),T[x]=_??null}),m.push({animation:T})}let b=!!m.length;return i&&(f.initial===!1||f.initial===f.animate)&&!t.manuallyAnimateOnMount&&(b=!1),i=!1,b?e(m):Promise.resolve()}function c(d,f){var g;if(n[d].isActive===f)return Promise.resolve();(g=t.variantChildren)===null||g===void 0||g.forEach(p=>{var y;return(y=p.animationState)===null||y===void 0?void 0:y.setActive(d,f)}),n[d].isActive=f;const m=l(d);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:l,setActive:c,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Iy(),i=!0}}}function ZN(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!sP(e,t):!1}function yr(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Iy(){return{animate:yr(!0),whileInView:yr(),whileHover:yr(),whileTap:yr(),whileDrag:yr(),whileFocus:yr(),exit:yr()}}class GN extends sr{constructor(e){super(e),e.animationState||(e.animationState=HN(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Da(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let KN=0;class QN extends sr{constructor(){super(...arguments),this.id=KN++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const o=this.node.animationState.setActive("exit",!e);n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const YN={animation:{Feature:GN},exit:{Feature:QN}},jy=(t,e)=>Math.abs(t-e);function qN(t,e){const n=jy(t.x,e.x),i=jy(t.y,e.y);return Math.sqrt(n**2+i**2)}class FP{constructor(e,n,{transformPagePoint:i,contextWindow:o,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=Hd(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,y=qN(m.offset,{x:0,y:0})>=3;if(!p&&!y)return;const{point:P}=m,{timestamp:b}=te;this.history.push({...P,timestamp:b});const{onStart:T,onMove:x}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=Wd(p,this.transformPagePoint),Pt.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:y,onSessionEnd:P,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=Hd(m.type==="pointercancel"?this.lastMoveEventInfo:Wd(p,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,T),P&&P(m,T)},!eP(e))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=i,this.contextWindow=o||window;const l=Lc(e),c=Wd(l,this.transformPagePoint),{point:d}=c,{timestamp:f}=te;this.history=[{...d,timestamp:f}];const{onSessionStart:g}=n;g&&g(e,Hd(c,this.history)),this.removeListeners=ri(ii(this.contextWindow,"pointermove",this.handlePointerMove),ii(this.contextWindow,"pointerup",this.handlePointerUp),ii(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),bn(this.updatePoint)}}function Wd(t,e){return e?{point:e(t.point)}:t}function By(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Hd({point:t},e){return{point:t,delta:By(t,VP(e)),offset:By(t,XN(e)),velocity:JN(e,.1)}}function XN(t){return t[0]}function VP(t){return t[t.length-1]}function JN(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const o=VP(t);for(;n>=0&&(i=t[n],!(o.timestamp-i.timestamp>Gi(e)));)n--;if(!i)return{x:0,y:0};const s=oi(o.timestamp-i.timestamp);if(s===0)return{x:0,y:0};const l={x:(o.x-i.x)/s,y:(o.y-i.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}const UP=1e-4,tz=1-UP,ez=1+UP,$P=.01,nz=0-$P,iz=0+$P;function We(t){return t.max-t.min}function rz(t,e,n){return Math.abs(t-e)<=n}function Fy(t,e,n,i=.5){t.origin=i,t.originPoint=Dt(e.min,e.max,t.origin),t.scale=We(n)/We(e),t.translate=Dt(n.min,n.max,t.origin)-t.originPoint,(t.scale>=tz&&t.scale<=ez||isNaN(t.scale))&&(t.scale=1),(t.translate>=nz&&t.translate<=iz||isNaN(t.translate))&&(t.translate=0)}function ua(t,e,n,i){Fy(t.x,e.x,n.x,i?i.originX:void 0),Fy(t.y,e.y,n.y,i?i.originY:void 0)}function Vy(t,e,n){t.min=n.min+e.min,t.max=t.min+We(e)}function oz(t,e,n){Vy(t.x,e.x,n.x),Vy(t.y,e.y,n.y)}function Uy(t,e,n){t.min=e.min-n.min,t.max=t.min+We(e)}function ca(t,e,n){Uy(t.x,e.x,n.x),Uy(t.y,e.y,n.y)}function sz(t,{min:e,max:n},i){return e!==void 0&&tn&&(t=i?Dt(n,t,i.max):Math.min(t,n)),t}function $y(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function az(t,{top:e,left:n,bottom:i,right:o}){return{x:$y(t.x,n,o),y:$y(t.y,e,i)}}function Wy(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.mini?n=rs(e.min,e.max-i,t.min):i>o&&(n=rs(t.min,t.max-o,e.min)),tr(0,1,n)}function cz(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Ef=.35;function dz(t=Ef){return t===!1?t=0:t===!0&&(t=Ef),{x:Hy(t,"left","right"),y:Hy(t,"top","bottom")}}function Hy(t,e,n){return{min:Zy(t,e),max:Zy(t,n)}}function Zy(t,e){return typeof t=="number"?t:t[e]||0}const Gy=()=>({translate:0,scale:1,origin:0,originPoint:0}),Po=()=>({x:Gy(),y:Gy()}),Ky=()=>({min:0,max:0}),$t=()=>({x:Ky(),y:Ky()});function Je(t){return[t("x"),t("y")]}function WP({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function hz({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function fz(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Zd(t){return t===void 0||t===1}function Lf({scale:t,scaleX:e,scaleY:n}){return!Zd(t)||!Zd(e)||!Zd(n)}function xr(t){return Lf(t)||HP(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function HP(t){return Qy(t.x)||Qy(t.y)}function Qy(t){return t&&t!=="0%"}function Yu(t,e,n){const i=t-n,o=e*i;return n+o}function Yy(t,e,n,i,o){return o!==void 0&&(t=Yu(t,o,i)),Yu(t,n,i)+e}function kf(t,e=0,n=1,i,o){t.min=Yy(t.min,e,n,i,o),t.max=Yy(t.max,e,n,i,o)}function ZP(t,{x:e,y:n}){kf(t.x,e.translate,e.scale,e.originPoint),kf(t.y,n.translate,n.scale,n.originPoint)}const qy=.999999999999,Xy=1.0000000000001;function pz(t,e,n,i=!1){const o=n.length;if(!o)return;e.x=e.y=1;let s,l;for(let c=0;cqy&&(e.x=1),e.yqy&&(e.y=1)}function So(t,e){t.min=t.min+e,t.max=t.max+e}function Jy(t,e,n,i,o=.5){const s=Dt(t.min,t.max,o);kf(t,e,n,s,i)}function bo(t,e){Jy(t.x,e.x,e.scaleX,e.scale,e.originX),Jy(t.y,e.y,e.scaleY,e.scale,e.originY)}function GP(t,e){return WP(fz(t.getBoundingClientRect(),e))}function mz(t,e,n){const i=GP(t,n),{scroll:o}=e;return o&&(So(i.x,o.offset.x),So(i.y,o.offset.y)),i}const KP=({current:t})=>t?t.ownerDocument.defaultView:null,gz=new WeakMap;class vz{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$t(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=g=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Lc(g,"page").point)},s=(g,m)=>{var p;const{drag:y,dragPropagation:P,onDragStart:b}=this.getProps();if(y&&!P&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=iP(y),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Je(x=>{let _=this.getAxisMotionValue(x).get()||0;if(Fn.test(_)){const{projection:S}=this.visualElement;if(S&&S.layout){const M=S.layout.layoutBox[x];M&&(_=We(M)*(parseFloat(_)/100))}}this.originPoint[x]=_}),b&&Pt.postRender(()=>b(g,m)),(p=this.removeWillChange)===null||p===void 0||p.call(this),this.removeWillChange=Cf(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},l=(g,m)=>{const{dragPropagation:p,dragDirectionLock:y,onDirectionLock:P,onDrag:b}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:T}=m;if(y&&this.currentDirection===null){this.currentDirection=yz(T),this.currentDirection!==null&&P&&P(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),b&&b(g,m)},c=(g,m)=>this.stop(g,m),d=()=>Je(g=>{var m;return this.getAnimationState(g)==="paused"&&((m=this.getAxisMotionValue(g).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:f}=this.getProps();this.panSession=new FP(e,{onSessionStart:o,onStart:s,onMove:l,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:KP(this.visualElement)})}stop(e,n){var i;(i=this.removeWillChange)===null||i===void 0||i.call(this);const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:l}=this.getProps();l&&Pt.postRender(()=>l(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:o}=this.getProps();if(!i||!Kl(e,o,this.currentDirection))return;const s=this.getAxisMotionValue(e);let l=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(l=sz(l,this.constraints[e],this.elastic[e])),s.set(l)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,s=this.constraints;n&&wo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=az(o.layoutBox,n):this.constraints=!1,this.elastic=dz(i),s!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Je(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=cz(o.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!wo(e))return!1;const i=e.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=mz(i,o.root,this.visualElement.getTransformPagePoint());let l=lz(o.layout.layoutBox,s);if(n){const c=n(hz(l));this.hasMutatedConstraints=!!c,c&&(l=WP(c))}return l}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:o,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),d=this.constraints||{},f=Je(g=>{if(!Kl(g,n,this.currentDirection))return;let m=d&&d[g]||{};l&&(m={min:0,max:0});const p=o?200:1e6,y=o?40:1e7,P={type:"inertia",velocity:i?e[g]:0,bounceStiffness:p,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...s,...m};return this.startAxisValueAnimation(g,P)});return Promise.all(f).then(c)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return i.start(ym(e,i,0,n,this.visualElement,!1,Cf(this.visualElement,e)))}stopAnimation(){Je(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Je(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),o=i[n];return o||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){Je(n=>{const{drag:i}=this.getProps();if(!Kl(n,i,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:l,max:c}=o.layout.layoutBox[n];s.set(e[n]-Dt(l,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!wo(n)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Je(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const d=c.get();o[l]=uz({min:d,max:d},this.constraints[l])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Je(l=>{if(!Kl(l,e,null))return;const c=this.getAxisMotionValue(l),{min:d,max:f}=this.constraints[l];c.set(Dt(d,f,o[l]))})}addListeners(){if(!this.visualElement.current)return;gz.set(this.visualElement,this);const e=this.visualElement.current,n=ii(e,"pointerdown",d=>{const{drag:f,dragListener:g=!0}=this.getProps();f&&g&&this.start(d)}),i=()=>{const{dragConstraints:d}=this.getProps();wo(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Pt.read(i);const l=ti(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f})=>{this.isDragging&&f&&(Je(g=>{const m=this.getAxisMotionValue(g);m&&(this.originPoint[g]+=d[g].translate,m.set(m.get()+d[g].translate))}),this.visualElement.render())});return()=>{l(),n(),s(),c&&c()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:l=Ef,dragMomentum:c=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:s,dragElastic:l,dragMomentum:c}}}function Kl(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function yz(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class _z extends sr{constructor(e){super(e),this.removeGroupControls=le,this.removeListeners=le,this.controls=new vz(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||le}unmount(){this.removeGroupControls(),this.removeListeners()}}const t0=t=>(e,n)=>{t&&Pt.postRender(()=>t(e,n))};class wz extends sr{constructor(){super(...arguments),this.removePointerDownListener=le}onPointerDown(e){this.session=new FP(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:KP(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:o}=this.node.getProps();return{onSessionStart:t0(e),onStart:t0(n),onMove:i,onEnd:(s,l)=>{delete this.session,o&&Pt.postRender(()=>o(s,l))}}}mount(){this.removePointerDownListener=ii(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function xz(){const t=C.useContext(Zp);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:i}=t,o=C.useId();C.useEffect(()=>i(o),[]);const s=C.useCallback(()=>n&&n(o),[o,n]);return!e&&n?[!1,s]:[!0]}const cu={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function e0(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Us={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(rt.test(t))t=parseFloat(t);else return t;const n=e0(t,e.target.x),i=e0(t,e.target.y);return`${n}% ${i}%`}},Pz={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,o=er.parse(t);if(o.length>5)return i;const s=er.createTransformer(t),l=typeof o[0]!="number"?1:0,c=n.x.scale*e.x,d=n.y.scale*e.y;o[0+l]/=c,o[1+l]/=d;const f=Dt(c,d,.5);return typeof o[2+l]=="number"&&(o[2+l]/=f),typeof o[3+l]=="number"&&(o[3+l]/=f),s(o)}};class Sz extends C.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:o}=this.props,{projection:s}=e;yA(bz),s&&(n.group&&n.group.add(s),i&&i.register&&o&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),cu.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:o,isPresent:s}=this.props,l=i.projection;return l&&(l.isPresent=s,o||e.layoutDependency!==n||n===void 0?l.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?l.promote():l.relegate()||Pt.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Qp.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:o}=e;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),i&&i.deregister&&i.deregister(o))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function QP(t){const[e,n]=xz(),i=C.useContext(F1);return E.jsx(Sz,{...t,layoutGroup:i,switchLayoutGroup:C.useContext(I1),isPresent:e,safeToRemove:n})}const bz={borderRadius:{...Us,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Us,borderTopRightRadius:Us,borderBottomLeftRadius:Us,borderBottomRightRadius:Us,boxShadow:Pz},YP=["TopLeft","TopRight","BottomLeft","BottomRight"],Cz=YP.length,n0=t=>typeof t=="string"?parseFloat(t):t,i0=t=>typeof t=="number"||rt.test(t);function Tz(t,e,n,i,o,s){o?(t.opacity=Dt(0,n.opacity!==void 0?n.opacity:1,Ez(i)),t.opacityExit=Dt(e.opacity!==void 0?e.opacity:1,0,Lz(i))):s&&(t.opacity=Dt(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let l=0;lie?1:n(rs(t,e,i))}function o0(t,e){t.min=e.min,t.max=e.max}function Xe(t,e){o0(t.x,e.x),o0(t.y,e.y)}function s0(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function a0(t,e,n,i,o){return t-=e,t=Yu(t,1/n,i),o!==void 0&&(t=Yu(t,1/o,i)),t}function kz(t,e=0,n=1,i=.5,o,s=t,l=t){if(Fn.test(e)&&(e=parseFloat(e),e=Dt(l.min,l.max,e/100)-l.min),typeof e!="number")return;let c=Dt(s.min,s.max,i);t===s&&(c-=e),t.min=a0(t.min,e,n,c,o),t.max=a0(t.max,e,n,c,o)}function l0(t,e,[n,i,o],s,l){kz(t,e[n],e[i],e[o],e.scale,s,l)}const Mz=["x","scaleX","originX"],Rz=["y","scaleY","originY"];function u0(t,e,n,i){l0(t.x,e,Mz,n?n.x:void 0,i?i.x:void 0),l0(t.y,e,Rz,n?n.y:void 0,i?i.y:void 0)}function c0(t){return t.translate===0&&t.scale===1}function XP(t){return c0(t.x)&&c0(t.y)}function d0(t,e){return t.min===e.min&&t.max===e.max}function Az(t,e){return d0(t.x,e.x)&&d0(t.y,e.y)}function h0(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function JP(t,e){return h0(t.x,e.x)&&h0(t.y,e.y)}function f0(t){return We(t.x)/We(t.y)}function p0(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Oz{constructor(){this.members=[]}add(e){Tc(this.members,e),e.scheduleRender()}remove(e){if(Ec(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(o=>e===o);if(n===0)return!1;let i;for(let o=n;o>=0;o--){const s=this.members[o];if(s.isPresent!==!1){i=s;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:o}=e.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Nz(t,e,n){let i="";const o=t.x.translate/e.x,s=t.y.translate/e.y,l=(n==null?void 0:n.z)||0;if((o||s||l)&&(i=`translate3d(${o}px, ${s}px, ${l}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:f,rotate:g,rotateX:m,rotateY:p,skewX:y,skewY:P}=n;f&&(i=`perspective(${f}px) ${i}`),g&&(i+=`rotate(${g}deg) `),m&&(i+=`rotateX(${m}deg) `),p&&(i+=`rotateY(${p}deg) `),y&&(i+=`skewX(${y}deg) `),P&&(i+=`skewY(${P}deg) `)}const c=t.x.scale*e.x,d=t.y.scale*e.y;return(c!==1||d!==1)&&(i+=`scale(${c}, ${d})`),i||"none"}const zz=(t,e)=>t.depth-e.depth;class Dz{constructor(){this.children=[],this.isDirty=!1}add(e){Tc(this.children,e),this.isDirty=!0}remove(e){Ec(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(zz),this.isDirty=!1,this.children.forEach(e)}}function Iz(t,e){const n=Ki.now(),i=({timestamp:o})=>{const s=o-n;s>=e&&(bn(i),t(s-e))};return Pt.read(i,!0),()=>bn(i)}function jz(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Bz(t,e,n){const i=ge(t)?t:In(t);return i.start(ym("",i,e,n)),i.animation}const Pr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ys=typeof window<"u"&&window.MotionDebug!==void 0,Gd=["","X","Y","Z"],Fz={visibility:"hidden"},m0=1e3;let Vz=0;function Kd(t,e,n,i){const{latestValues:o}=e;o[t]&&(n[t]=o[t],e.setStaticValue(t,0),i&&(i[t]=0))}function tS(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return!1;const{visualElement:e}=t.options;return e?jP(e)?!0:t.parent&&!t.parent.hasCheckedOptimisedAppear?tS(t.parent):!1:!1}function eS({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(l={},c=e==null?void 0:e()){this.id=Vz++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ys&&(Pr.totalNodes=Pr.resolvedTargetDeltas=Pr.recalculatedProjection=0),this.nodes.forEach(Wz),this.nodes.forEach(Qz),this.nodes.forEach(Yz),this.nodes.forEach(Hz),Ys&&window.MotionDebug.record(Pr)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let d=0;dthis.root.updateBlockedByResize=!1;t(l,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=Iz(p,250),cu.hasAnimatedSinceResize&&(cu.hasAnimatedSinceResize=!1,this.nodes.forEach(v0))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&g&&(d||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeTargetChanged:y,layout:P})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||g.getDefaultTransition()||eD,{onLayoutAnimationStart:T,onLayoutAnimationComplete:x}=g.getProps(),_=!this.targetLayout||!JP(this.targetLayout,P)||y,S=!p&&y;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||p&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,S);const M={...am(b,"layout"),onPlay:T,onComplete:x};(g.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=!1),this.startAnimation(M)}else p||v0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=P})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,bn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(qz),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&tS(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d{const R=M/1e3;y0(m.x,l.x,R),y0(m.y,l.y,R),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ca(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Jz(this.relativeTarget,this.relativeTargetOrigin,p,R),S&&Az(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=$t()),Xe(S,this.relativeTarget)),b&&(this.animationValues=g,Tz(g,f,this.latestValues,R,_,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(bn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Pt.update(()=>{cu.hasAnimatedSinceResize=!0,this.currentAnimation=Bz(0,m0,{...l,onUpdate:c=>{this.mixTargetDelta(c),l.onUpdate&&l.onUpdate(c)},onComplete:()=>{l.onComplete&&l.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(m0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:c,target:d,layout:f,latestValues:g}=l;if(!(!c||!d||!f)){if(this!==l&&this.layout&&f&&nS(this.options.animationType,this.layout.layoutBox,f.layoutBox)){d=this.target||$t();const m=We(this.layout.layoutBox.x);d.x.min=l.target.x.min,d.x.max=d.x.min+m;const p=We(this.layout.layoutBox.y);d.y.min=l.target.y.min,d.y.max=d.y.min+p}Xe(c,d),bo(c,g),ua(this.projectionDeltaWithTransform,this.layoutCorrected,c,g)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new Oz),this.sharedNodes.get(l).add(c);const f=c.options.initialPromotionConfig;c.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(c):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:c}=this.options;return c?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:c}=this.options;return c?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:c,preserveFollowOpacity:d}={}){const f=this.getStack();f&&f.promote(this,d),l&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let c=!1;const{latestValues:d}=l;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(c=!0),!c)return;const f={};d.z&&Kd("z",l,f,this.animationValues);for(let g=0;g{var c;return(c=l.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(g0),this.root.sharedNodes.clear()}}}function Uz(t){t.updateLayout()}function $z(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:o}=t.layout,{animationType:s}=t.options,l=n.source!==t.layout.source;s==="size"?Je(m=>{const p=l?n.measuredBox[m]:n.layoutBox[m],y=We(p);p.min=i[m].min,p.max=p.min+y}):nS(s,n.layoutBox,i)&&Je(m=>{const p=l?n.measuredBox[m]:n.layoutBox[m],y=We(i[m]);p.max=p.min+y,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[m].max=t.relativeTarget[m].min+y)});const c=Po();ua(c,i,n.layoutBox);const d=Po();l?ua(d,t.applyTransform(o,!0),n.measuredBox):ua(d,i,n.layoutBox);const f=!XP(c);let g=!1;if(!t.resumeFrom){const m=t.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:y}=m;if(p&&y){const P=$t();ca(P,n.layoutBox,p.layoutBox);const b=$t();ca(b,i,y.layoutBox),JP(P,b)||(g=!0),m.options.layoutRoot&&(t.relativeTarget=b,t.relativeTargetOrigin=P,t.relativeParent=m)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:d,layoutDelta:c,hasLayoutChanged:f,hasRelativeTargetChanged:g})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function Wz(t){Ys&&Pr.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Hz(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Zz(t){t.clearSnapshot()}function g0(t){t.clearMeasurements()}function Gz(t){t.isLayoutDirty=!1}function Kz(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function v0(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Qz(t){t.resolveTargetDelta()}function Yz(t){t.calcProjection()}function qz(t){t.resetSkewAndRotation()}function Xz(t){t.removeLeadSnapshot()}function y0(t,e,n){t.translate=Dt(e.translate,0,n),t.scale=Dt(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function _0(t,e,n,i){t.min=Dt(e.min,n.min,i),t.max=Dt(e.max,n.max,i)}function Jz(t,e,n,i){_0(t.x,e.x,n.x,i),_0(t.y,e.y,n.y,i)}function tD(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const eD={duration:.45,ease:[.4,0,.1,1]},w0=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),x0=w0("applewebkit/")&&!w0("chrome/")?Math.round:le;function P0(t){t.min=x0(t.min),t.max=x0(t.max)}function nD(t){P0(t.x),P0(t.y)}function nS(t,e,n){return t==="position"||t==="preserve-aspect"&&!rz(f0(e),f0(n),.2)}function iD(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const rD=eS({attachResizeListener:(t,e)=>ti(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Qd={current:void 0},iS=eS({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Qd.current){const t=new rD({});t.mount(window),t.setOptions({layoutScroll:!0}),Qd.current=t}return Qd.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),oD={pan:{Feature:wz},drag:{Feature:_z,ProjectionNode:iS,MeasureLayout:QP}},Mf={current:null},rS={current:!1};function sD(){if(rS.current=!0,!!Gp)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Mf.current=t.matches;t.addListener(e),e()}else Mf.current=!1}function aD(t,e,n){for(const i in e){const o=e[i],s=n[i];if(ge(o))t.addValue(i,o);else if(ge(s))t.addValue(i,In(o,{owner:t}));else if(s!==o)if(t.hasValue(i)){const l=t.getValue(i);l.liveStyle===!0?l.jump(o):l.hasAnimated||l.set(o)}else{const l=t.getStaticValue(i);t.addValue(i,In(l!==void 0?l:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const S0=new WeakMap,lD=[...dP,pe,er],uD=t=>lD.find(cP(t)),b0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],cD=qp.length;class dD{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:o,blockInitialAnimation:s,visualState:l},c={}){this.applyWillChange=!1,this.resolveKeyframes=(p,y,P,b)=>new this.KeyframeResolver(p,y,P,b,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=lm,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,Pt.render(this.render,!1,!0))};const{latestValues:d,renderState:f}=l;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=f,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=c,this.blockInitialAnimation=!!s,this.isControllingVariants=bc(n),this.isVariantNode=B1(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:g,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in m){const y=m[p];d[p]!==void 0&&ge(y)&&y.set(d[p],!1)}}mount(e){this.current=e,S0.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),rS.current||sD(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Mf.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){S0.delete(this.current),this.projection&&this.projection.unmount(),bn(this.notifyUpdate),bn(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){const i=or.has(e),o=n.on("change",l=>{this.latestValues[e]=l,this.props.onUpdate&&Pt.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{o(),s(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ns){const n=ns[e];if(!n)continue;const{isEnabled:i,Feature:o}=n;if(!this.features[e]&&o&&i(this.props)&&(this.features[e]=new o(this)),this.features[e]){const s=this.features[e];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$t()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;in.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=In(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){var i;let o=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,e,this.options);return o!=null&&(typeof o=="string"&&(lP(o)||aP(o))?o=parseFloat(o):!uD(o)&&er.test(n)&&(o=_P(e,n)),this.setBaseTarget(e,ge(o)?o.get():o)),ge(o)?o.get():o}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props;let o;if(typeof i=="string"||typeof i=="object"){const l=sm(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);l&&(o=l[e])}if(i&&o!==void 0)return o;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!ge(s)?s:this.initialValues[e]!==void 0&&o===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new _m),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class oS extends dD{constructor(){super(...arguments),this.KeyframeResolver=wP}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}}function hD(t){return window.getComputedStyle(t)}class fD extends oS{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=K1}readValueFromInstance(e,n){if(or.has(n)){const i=cm(n);return i&&i.default||0}else{const i=hD(e),o=($1(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return GP(e,n)}build(e,n,i){em(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return om(e,n,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ge(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class pD extends oS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$t}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(or.has(n)){const i=cm(n);return i&&i.default||0}return n=Q1.has(n)?n:Sc(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return q1(e,n,i)}build(e,n,i){im(e,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,i,o){Y1(e,n,i,o)}mount(e){this.isSVGTag=rm(e.tagName),super.mount(e)}}const mD=(t,e)=>Xp(t)?new pD(e):new fD(e,{allowProjection:t!==C.Fragment}),gD={layout:{ProjectionNode:iS,MeasureLayout:QP}},vD={...YN,...lO,...oD,...gD},Ht=gA((t,e)=>QA(t,e,vD,mD));function yD(t){const e=Cc(()=>In(t)),{isStatic:n}=C.useContext(Hp);if(n){const[,i]=C.useState(t);C.useEffect(()=>e.on("change",i),[])}return e}const _D=t=>t&&typeof t=="object"&&t.mix,wD=t=>_D(t)?t.mix:void 0;function xD(...t){const e=!Array.isArray(t[0]),n=e?0:-1,i=t[0+n],o=t[1+n],s=t[2+n],l=t[3+n],c=mm(o,s,{mixer:wD(s[0]),...l});return e?c(i):c}function sS(t,e){const n=yD(e()),i=()=>n.set(e());return i(),Kp(()=>{const o=()=>Pt.preRender(i,!1,!0),s=t.map(l=>l.on("change",o));return()=>{s.forEach(l=>l()),bn(i)}}),n}function PD(t){la.current=[],t();const e=sS(la.current,t);return la.current=void 0,e}function Rf(t,e,n,i){if(typeof t=="function")return PD(t);const o=typeof e=="function"?e:xD(e,n,i);return Array.isArray(t)?C0(t,o):C0([t],([s])=>o(s))}function C0(t,e){const n=Cc(()=>[]);return sS(t,()=>{n.length=0;const i=t.length;for(let o=0;o{o({target:t,contentSize:e,get size(){return bD(t,n)}})})}function TD(t){t.forEach(CD)}function ED(){typeof ResizeObserver>"u"||(Ci=new ResizeObserver(TD))}function LD(t,e){Ci||ED();const n=SD(t);return n.forEach(i=>{let o=du.get(i);o||(o=new Set,du.set(i,o)),o.add(e),Ci==null||Ci.observe(i)}),()=>{n.forEach(i=>{const o=du.get(i);o==null||o.delete(e),o!=null&&o.size||Ci==null||Ci.unobserve(i)})}}const hu=new Set;let da;function kD(){da=()=>{const t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};hu.forEach(n=>n(e))},window.addEventListener("resize",da)}function MD(t){return hu.add(t),da||kD(),()=>{hu.delete(t),!hu.size&&da&&(da=void 0)}}function RD(t,e){return typeof t=="function"?MD(t):LD(t,e)}const AD=50,T0=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),OD=()=>({time:0,x:T0(),y:T0()}),ND={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function E0(t,e,n,i){const o=n[e],{length:s,position:l}=ND[e],c=o.current,d=n.time;o.current=t[`scroll${l}`],o.scrollLength=t[`scroll${s}`]-t[`client${s}`],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=rs(0,o.scrollLength,o.current);const f=i-d;o.velocity=f>AD?0:dm(o.current-c,f)}function zD(t,e,n){E0(t,"x",e,n),E0(t,"y",e,n),e.time=n}function DD(t,e){const n={x:0,y:0};let i=t;for(;i&&i!==e;)if(i instanceof HTMLElement)n.x+=i.offsetLeft,n.y+=i.offsetTop,i=i.offsetParent;else if(i.tagName==="svg"){const o=i.getBoundingClientRect();i=i.parentElement;const s=i.getBoundingClientRect();n.x+=o.left-s.left,n.y+=o.top-s.top}else if(i instanceof SVGGraphicsElement){const{x:o,y:s}=i.getBBox();n.x+=o,n.y+=s;let l=null,c=i.parentNode;for(;!l;)c.tagName==="svg"&&(l=c),c=i.parentNode;i=l}else break;return n}const ID={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Af={start:0,center:.5,end:1};function L0(t,e,n=0){let i=0;if(t in Af&&(t=Af[t]),typeof t=="string"){const o=parseFloat(t);t.endsWith("px")?i=o:t.endsWith("%")?t=o/100:t.endsWith("vw")?i=o/100*document.documentElement.clientWidth:t.endsWith("vh")?i=o/100*document.documentElement.clientHeight:t=o}return typeof t=="number"&&(i=e*t),n+i}const jD=[0,0];function BD(t,e,n,i){let o=Array.isArray(t)?t:jD,s=0,l=0;return typeof t=="number"?o=[t,t]:typeof t=="string"&&(t=t.trim(),t.includes(" ")?o=t.split(" "):o=[t,Af[t]?t:"0"]),s=L0(o[0],n,i),l=L0(o[1],e),s-l}const FD={x:0,y:0};function VD(t){return"getBBox"in t&&t.tagName!=="svg"?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}function UD(t,e,n){const{offset:i=ID.All}=n,{target:o=t,axis:s="y"}=n,l=s==="y"?"height":"width",c=o!==t?DD(o,t):FD,d=o===t?{width:t.scrollWidth,height:t.scrollHeight}:VD(o),f={width:t.clientWidth,height:t.clientHeight};e[s].offset.length=0;let g=!e[s].interpolate;const m=i.length;for(let p=0;p$D(t,i.target,n),update:o=>{zD(t,n,o),(i.offset||i.target)&&UD(t,n,i)},notify:()=>e(n)}}const $s=new WeakMap,k0=new WeakMap,Yd=new WeakMap,M0=t=>t===document.documentElement?window:t;function HD(t,{container:e=document.documentElement,...n}={}){let i=Yd.get(e);i||(i=new Set,Yd.set(e,i));const o=OD(),s=WD(e,t,o,n);if(i.add(s),!$s.has(e)){const c=()=>{for(const p of i)p.measure()},d=()=>{for(const p of i)p.update(te.timestamp)},f=()=>{for(const p of i)p.notify()},g=()=>{Pt.read(c,!1,!0),Pt.read(d,!1,!0),Pt.update(f,!1,!0)};$s.set(e,g);const m=M0(e);window.addEventListener("resize",g,{passive:!0}),e!==document.documentElement&&k0.set(e,RD(e,g)),m.addEventListener("scroll",g,{passive:!0})}const l=$s.get(e);return Pt.read(l,!1,!0),()=>{var c;bn(l);const d=Yd.get(e);if(!d||(d.delete(s),d.size))return;const f=$s.get(e);$s.delete(e),f&&(M0(e).removeEventListener("scroll",f),(c=k0.get(e))===null||c===void 0||c(),window.removeEventListener("resize",f))}}function R0(t,e){dA(!!(!e||e.current))}const ZD=()=>({scrollX:In(0),scrollY:In(0),scrollXProgress:In(0),scrollYProgress:In(0)});function aS({container:t,target:e,layoutEffect:n=!0,...i}={}){const o=Cc(ZD);return(n?Kp:C.useEffect)(()=>(R0("target",e),R0("container",t),HD(({x:l,y:c})=>{o.scrollX.set(l.current),o.scrollXProgress.set(l.progress),o.scrollY.set(c.current),o.scrollYProgress.set(c.progress)},{...i,container:(t==null?void 0:t.current)||void 0,target:(e==null?void 0:e.current)||void 0})),[t,e,JSON.stringify(i.offset)]),o}/** + * @license lucide-react v0.417.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const GD=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),lS=(...t)=>t.filter((e,n,i)=>!!e&&i.indexOf(e)===n).join(" ");/** + * @license lucide-react v0.417.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var KD={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"};/** + * @license lucide-react v0.417.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const QD=C.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:o="",children:s,iconNode:l,...c},d)=>C.createElement("svg",{ref:d,...KD,width:e,height:e,stroke:t,strokeWidth:i?Number(n)*24/Number(e):n,className:lS("lucide",o),...c},[...l.map(([f,g])=>C.createElement(f,g)),...Array.isArray(s)?s:[s]]));/** + * @license lucide-react v0.417.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ce=(t,e)=>{const n=C.forwardRef(({className:i,...o},s)=>C.createElement(QD,{ref:s,iconNode:e,className:lS(`lucide-${GD(t)}`,i),...o}));return n.displayName=`${t}`,n};/** + * @license lucide-react v0.417.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const YD=ce("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** + * @license lucide-react v0.417.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qD=ce("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** + * @license lucide-react v0.417.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const XD=ce("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** + * @license lucide-react v0.417.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const JD=ce("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/** + * @license lucide-react v0.417.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const tI=ce("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/** + * @license lucide-react v0.417.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const eI=ce("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** + * @license lucide-react v0.417.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const nI=ce("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/** + * @license lucide-react v0.417.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const iI=ce("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** + * @license lucide-react v0.417.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const rI=ce("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** + * @license lucide-react v0.417.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const oI=ce("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** + * @license lucide-react v0.417.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const sI=ce("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** + * @license lucide-react v0.417.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const aI=ce("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/** + * @license lucide-react v0.417.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const lI=ce("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/** + * @license lucide-react v0.417.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const uI=ce("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** + * @license lucide-react v0.417.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const cI=ce("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/** + * @license lucide-react v0.417.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const uS=ce("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** + * @license lucide-react v0.417.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const dI=ce("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]),hI=async()=>[{id:1,name:"EcoGuardians",slug:"eco-guardians",logo:"https://picsum.photos/seed/eco1/150",description:"Protecting indigenous lands through innovative technology.",latitude:-3.4653,longitude:-62.2159},{id:2,name:"TerraDefenders",slug:"terra-defenders",logo:"https://picsum.photos/seed/terra2/150",description:"Empowering communities to preserve their natural heritage.",latitude:-5.2744,longitude:-60.3756}],fI=()=>{const{data:t,isLoading:e,error:n}=h1({queryKey:["partners"],queryFn:hI}),[i,o]=C.useState(""),[s,l]=C.useState(!1),c=C.useRef(null),d=C.useRef(null),f=C.useRef(null),{scrollY:g}=aS(),m=Rf(g,[0,500],[0,150]);C.useEffect(()=>{const P=()=>{const T=window.pageYOffset;c.current&&c.current.style.setProperty("--scroll-offset",`${T*.5}px`)},b=T=>{f.current&&!f.current.contains(T.target)&&l(!1)};return window.addEventListener("scroll",P),document.addEventListener("mousedown",b),()=>{window.removeEventListener("scroll",P),document.removeEventListener("mousedown",b)}},[]);const p=()=>{var P;(P=d.current)==null||P.scrollIntoView({behavior:"smooth"})};if(e)return E.jsx("div",{className:"text-white text-center py-20",children:"Loading..."});if(n)return E.jsxs("div",{className:"text-white text-center py-20",children:["An error occurred: ",n.message]});const y=t.filter(P=>P.name.toLowerCase().includes(i.toLowerCase()));return E.jsxs("div",{className:"min-h-screen",children:[E.jsxs("header",{ref:c,className:"hero-parallax relative h-screen flex items-center justify-center overflow-hidden",children:[E.jsxs("video",{autoPlay:!0,loop:!0,muted:!0,className:"absolute w-full h-full object-cover",children:[E.jsx("source",{src:"https://videos.pexels.com/video-files/4051989/4051989-sd_640_360_30fps.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),E.jsx("div",{className:"absolute inset-0 bg-black opacity-50"}),E.jsxs(Ht.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:1},className:"text-center z-10",children:[E.jsx("h1",{className:"text-6xl font-bold mb-4 fade-in text-white",children:"Defending Indigenous Lands"}),E.jsx("p",{className:"text-xl mb-8 fade-in text-white",children:"Together with our partners, we're preserving our planet's heritage."}),E.jsx("button",{onClick:p,className:"text-lg px-8 py-3 rounded-full bg-primary text-primary-foreground hover:bg-primary/90 neon-glow",children:"Partner Map"}),E.jsx(Ht.div,{initial:{y:10,opacity:0},animate:{y:0,opacity:1},transition:{delay:1,duration:1,repeat:1/0,repeatType:"reverse"},className:"mt-8 flex justify-center",children:E.jsx(XD,{size:32,className:"text-white"})})]}),E.jsx(Ht.div,{className:"absolute inset-0 z-0",style:{y:m}})]}),E.jsxs("div",{ref:d,className:"h-screen w-full relative",children:[E.jsxs(M1,{center:[-4.5,-60],zoom:5,style:{height:"100%",width:"100%"},children:[E.jsx(O1,{url:"https://tiles.stadiamaps.com/tiles/alidade_smooth_dark/{z}/{x}/{y}{r}.png",attribution:'© OpenStreetMap contributors'}),y.map(P=>E.jsx(R1,{position:[P.latitude,P.longitude],children:E.jsx(A1,{children:E.jsxs("div",{className:"text-center",children:[E.jsx("img",{src:P.logo,alt:P.name,className:"w-16 h-16 mx-auto mb-2 rounded-full"}),E.jsx("h3",{className:"font-bold",children:P.name}),E.jsx("p",{className:"text-sm",children:P.description}),E.jsx("button",{className:"mt-2 bg-green-500 text-white px-4 py-1 rounded hover:bg-green-600 transition-colors",onClick:()=>window.location.href=`/partners/${P.slug}`,children:"Learn More"})]})})},P.id))]}),E.jsxs("div",{className:"absolute top-4 right-4 flex items-center z-[1000]",children:[E.jsxs("div",{className:"mr-2 relative",children:[E.jsx("input",{type:"text",placeholder:"Search partners...",value:i,onChange:P=>o(P.target.value),className:"px-4 py-2 rounded-full shadow-md focus:outline-none focus:ring-2 focus:ring-green-500 pr-10"}),E.jsx(sI,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 h-5 w-5 text-gray-400"})]}),E.jsx("button",{onClick:()=>l(!s),className:"p-2 bg-white rounded-full shadow-md",children:E.jsx(oI,{className:"h-6 w-6 text-gray-700"})})]}),s&&E.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-[1001]",onClick:()=>l(!1)}),E.jsx(Ht.div,{ref:f,className:"fixed top-0 right-0 h-full w-80 bg-white shadow-lg z-[1002] overflow-y-auto",initial:{x:"100%"},animate:{x:s?0:"100%"},transition:{duration:.3},children:E.jsxs("div",{className:"p-4",children:[E.jsxs("div",{className:"flex justify-between items-center mb-4",children:[E.jsx("h2",{className:"text-2xl font-bold text-gray-800",children:"Partners"}),E.jsx("button",{onClick:()=>l(!1),className:"p-1 hover:bg-gray-200 rounded-full",children:E.jsx(uS,{className:"h-6 w-6 text-gray-700"})})]}),E.jsx("div",{className:"space-y-4",children:t.map(P=>E.jsxs("div",{className:"bg-gray-100 rounded-lg p-4 shadow hover:shadow-md transition-shadow",children:[E.jsxs("div",{className:"flex items-center space-x-4",children:[E.jsx("img",{src:P.logo,alt:P.name,className:"w-12 h-12 rounded-full"}),E.jsxs("div",{children:[E.jsx("h3",{className:"font-semibold text-gray-800",children:P.name}),E.jsx("p",{className:"text-sm text-gray-600",children:P.description})]})]}),E.jsx("a",{href:`/partners/${P.slug}`,className:"mt-2 block text-center bg-green-500 text-white px-4 py-2 rounded hover:bg-green-600 transition-colors",children:"View Details"})]},P.id))})]})})]})]})},pI=()=>{const[t,e]=C.useState(!1),n=w2();return C.useEffect(()=>{const i=()=>{e(window.scrollY>50)};return window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)},[]),E.jsx(Ht.nav,{className:`fixed top-0 left-0 right-0 z-50 px-6 py-4 transition-all duration-300 ${t?"bg-gray-900/95 shadow-lg":"bg-transparent"}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.5},children:E.jsx("div",{className:"container mx-auto flex justify-between items-center",children:E.jsx("button",{onClick:()=>n("/"),className:"text-white hover:text-cyan-400 transition-colors duration-300",children:E.jsx(YD,{size:24})})})})},mI=({partner:t})=>{const e=C.useRef(null),{scrollYProgress:n}=aS({target:e,offset:["start start","end start"]}),i=Rf(n,[0,1],["0%","50%"]),o=Rf(n,[0,1],[1,0]);return E.jsxs("header",{ref:e,className:"relative h-screen flex items-center justify-center overflow-hidden",children:[E.jsx(Ht.div,{className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{y:i,opacity:o,backgroundImage:`url(${t.heroImage||"https://source.unsplash.com/random/1920x1080?rainforest"})`}}),E.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent to-gray-900 opacity-75"}),E.jsxs(Ht.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:1},className:"relative z-10 text-center px-4",children:[E.jsx("img",{src:t.logo,alt:t.name,className:"w-32 h-32 object-cover mb-8 mx-auto rounded-full shadow-lg"}),E.jsx("h1",{className:"text-6xl font-bold mb-4 text-white tracking-tight",children:t.name}),E.jsx("p",{className:"text-xl mb-8 max-w-2xl mx-auto text-gray-300",children:t.description})]})]})},gI=({project:t})=>E.jsxs("section",{className:"mb-16 px-4",children:[E.jsx(Ht.h2,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"text-4xl font-bold mb-8 text-white text-center",children:"Project Highlight"}),E.jsx("div",{className:"max-w-4xl mx-auto bg-gradient-to-br from-gray-800 to-gray-900 rounded-3xl overflow-hidden shadow-2xl",children:E.jsxs("div",{className:"p-8",children:[E.jsx("h3",{className:"text-3xl font-semibold mb-4 text-cyan-400",children:t.title}),E.jsx("p",{className:"text-xl mb-6 text-gray-300",children:t.summary}),E.jsx("h4",{className:"text-2xl font-semibold mb-4 text-white",children:"Objectives:"}),E.jsx("ul",{className:"space-y-4 mb-6",children:t.objectives.map((e,n)=>E.jsxs(Ht.li,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.5,delay:n*.1},className:"flex items-start",children:[E.jsx(qD,{className:"text-cyan-400 mr-2 mt-1 flex-shrink-0"}),E.jsx("span",{className:"text-lg text-gray-300",children:e})]},n))}),E.jsx("h4",{className:"text-2xl font-semibold mb-4 text-white",children:"Tools Used:"}),E.jsx("div",{className:"flex flex-wrap gap-4 mb-6",children:t.tools_used.map((e,n)=>E.jsxs(Ht.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.3,delay:n*.1},className:"flex items-center bg-gray-700 rounded-full px-4 py-2",children:[E.jsx(cI,{className:"text-cyan-400 mr-2",size:16}),E.jsx("span",{className:"text-sm text-gray-300",children:e})]},n))}),E.jsx("h4",{className:"text-2xl font-semibold mb-4 text-white",children:"Results:"}),E.jsx("p",{className:"text-lg text-gray-300",children:t.results})]})})]}),vI=({partner:t})=>E.jsxs("section",{className:"mb-16 px-4",children:[E.jsx(Ht.h2,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"text-4xl font-bold mb-8 text-white text-center",children:"Territory Overview"}),E.jsxs("div",{className:"max-w-6xl mx-auto grid grid-cols-1 md:grid-cols-2 gap-8",children:[E.jsx(Ht.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.5},className:"bg-gray-800 rounded-3xl overflow-hidden shadow-2xl",children:E.jsxs(M1,{center:[t.latitude,t.longitude],zoom:8,style:{height:"400px",width:"100%"},children:[E.jsx(O1,{url:"https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png",attribution:'© OpenStreetMap contributors © CARTO'}),E.jsx(R1,{position:[t.latitude,t.longitude],children:E.jsx(A1,{children:t.name})})]})}),E.jsxs(Ht.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.5},className:"bg-gradient-to-br from-gray-800 to-gray-900 rounded-3xl overflow-hidden shadow-2xl p-8",children:[E.jsx("h3",{className:"text-3xl font-semibold mb-6 text-white",children:"Territory Statistics"}),E.jsxs("ul",{className:"space-y-6",children:[E.jsxs("li",{className:"flex items-center",children:[E.jsx(eI,{className:"text-cyan-400 mr-4",size:24}),E.jsxs("div",{children:[E.jsx("span",{className:"text-lg font-medium text-gray-300",children:"Size:"}),E.jsxs("span",{className:"block text-2xl font-bold text-white",children:[t.territory_size," hectares"]})]})]}),E.jsxs("li",{className:"flex items-center",children:[E.jsx(uI,{className:"text-cyan-400 mr-4",size:24}),E.jsxs("div",{children:[E.jsx("span",{className:"text-lg font-medium text-gray-300",children:"Population:"}),E.jsx("span",{className:"block text-2xl font-bold text-white",children:t.population})]})]}),E.jsxs("li",{className:"flex items-center",children:[E.jsx(nI,{className:"text-cyan-400 mr-4",size:24}),E.jsxs("div",{children:[E.jsx("span",{className:"text-lg font-medium text-gray-300",children:"Villages:"}),E.jsx("span",{className:"block text-2xl font-bold text-white",children:t.villages})]})]}),E.jsxs("li",{children:[E.jsx("span",{className:"text-lg font-medium text-gray-300",children:"Ethnic Groups:"}),E.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:t.ethnic_groups.map((e,n)=>E.jsx("span",{className:"bg-gray-700 text-white px-3 py-1 rounded-full text-sm",children:e},n))})]})]})]})]})]}),yI=({media:t})=>{const[e,n]=C.useState(null),i=s=>{n(s)},o=()=>{n(null)};return E.jsxs("section",{className:"mb-16",children:[E.jsx("h2",{className:"text-4xl font-bold mb-8 text-white text-center",children:"Media Gallery"}),E.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:[t.images.map((s,l)=>E.jsxs(Ht.div,{whileHover:{scale:1.05},whileTap:{scale:.95},className:"relative overflow-hidden rounded-lg shadow-lg cursor-pointer",onClick:()=>i(s),children:[E.jsx("img",{src:s,alt:`Gallery image ${l+1}`,className:"w-full h-64 object-cover"}),E.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-0 hover:bg-opacity-30 transition-opacity duration-300"})]},l)),t.videos.map((s,l)=>E.jsxs(Ht.div,{whileHover:{scale:1.05},whileTap:{scale:.95},className:"relative overflow-hidden rounded-lg shadow-lg cursor-pointer",onClick:()=>i(s),children:[E.jsx("div",{className:"w-full h-64 bg-gray-800 flex items-center justify-center",children:E.jsxs("svg",{className:"w-16 h-16 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"}),E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})]})}),E.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-0 hover:bg-opacity-30 transition-opacity duration-300"})]},`video-${l}`))]}),e&&E.jsx(Ht.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black bg-opacity-90 flex items-center justify-center z-50",onClick:o,children:E.jsxs("div",{className:"relative max-w-4xl w-full",children:[E.jsx("button",{onClick:o,className:"absolute top-4 right-4 text-white hover:text-gray-300 transition-colors",children:E.jsx(uS,{size:24})}),e.includes("youtube.com")?E.jsx("iframe",{width:"100%",height:"480",src:e,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"rounded-lg"}):E.jsx("img",{src:e,alt:"Selected media",className:"w-full h-auto rounded-lg"})]})})]})},_I=({donation:t})=>{const e=t.totalRaised/t.goal*100;return E.jsx(Ht.section,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"py-16 bg-gradient-to-r from-green-900 to-blue-900 rounded-3xl overflow-hidden shadow-2xl my-16",children:E.jsxs("div",{className:"container mx-auto px-4",children:[E.jsx("h2",{className:"text-4xl font-bold mb-4 text-center text-white",children:"Support Our Mission"}),E.jsx("p",{className:"text-xl text-center text-gray-300 mb-8",children:"Help us safeguard the Amazon rainforest and empower indigenous communities by making a donation. Every contribution counts!"}),E.jsxs("div",{className:"flex flex-wrap justify-center items-center gap-8",children:[E.jsxs(Ht.a,{href:t.openCollectiveUrl,target:"_blank",rel:"noopener noreferrer",className:"bg-green-500 hover:bg-green-600 text-white font-bold py-3 px-6 rounded-full inline-flex items-center transition-all duration-300 transform hover:scale-105",whileHover:{scale:1.05},whileTap:{scale:.95},children:[E.jsx(JD,{className:"mr-2"}),"Donate via Open Collective"]}),E.jsxs("div",{className:"text-center",children:[E.jsx("h3",{className:"text-xl font-semibold mb-2 text-white",children:"Donate with PIX"}),E.jsx("div",{className:"bg-white p-2 rounded-lg shadow-lg inline-block",children:E.jsx("img",{src:t.pixQrCode,alt:"PIX QR Code",className:"w-40 h-40"})}),E.jsx("p",{className:"mt-2 text-sm text-gray-300",children:"Scan the code to donate directly via PIX"})]})]}),E.jsxs("div",{className:"mt-12 max-w-2xl mx-auto",children:[E.jsx("h3",{className:"text-2xl font-semibold mb-2 text-center text-white",children:"Our Progress"}),E.jsx("div",{className:"bg-gray-700 h-4 rounded-full overflow-hidden",children:E.jsx("div",{className:"bg-cyan-400 h-full rounded-full transition-all duration-500 ease-out",style:{width:`${e}%`}})}),E.jsxs("p",{className:"text-center mt-2 text-gray-300",children:["Raised: $",t.totalRaised.toLocaleString()," / Goal: $",t.goal.toLocaleString()]})]}),E.jsxs("div",{className:"mt-8 text-center",children:[E.jsx("h3",{className:"text-xl font-semibold mb-2 text-white",children:"Share Our Cause"}),E.jsx("div",{className:"flex justify-center space-x-4",children:E.jsx(Ht.a,{href:"#",className:"text-gray-300 hover:text-white transition-colors",whileHover:{scale:1.1},whileTap:{scale:.9},children:E.jsx(aI,{size:24})})})]})]})})},wI=async t=>({name:"EcoGuardians",slug:"eco-guardians",logo:"https://picsum.photos/seed/eco1/150",heroImage:"https://picsum.photos/seed/rainforest/1920/1080",description:"EcoGuardians is at the forefront of protecting indigenous lands through innovative technology and community engagement.",project_highlight:{title:"Project Rainforest Shield",summary:"An initiative to protect 1 million acres of Amazon rainforest using advanced satellite monitoring and community-led conservation efforts.",objectives:["Implement real-time deforestation alerts","Train 500 indigenous rangers in conservation technology","Establish sustainable agroforestry practices"],tools_used:["Mapeo","TerraStories","Satellite Imagery Analysis"],results:"Reduced deforestation by 75% in target areas and improved livelihoods for 10,000 indigenous community members.",impact_statement:"Project Rainforest Shield has not only preserved critical ecosystems but has also empowered indigenous communities to become the guardians of their ancestral lands, ensuring a sustainable future for generations to come."},media_gallery:{images:["https://picsum.photos/seed/amazon/800/600","https://picsum.photos/seed/forest/800/600","https://picsum.photos/seed/indigenous/800/600"],videos:["https://www.youtube.com/embed/dQw4w9WgXcQ"]},latitude:-3.4653,longitude:-62.2159,territory_size:1e6,population:5e4,villages:25,ethnic_groups:["Yanomami","Ye'kwana"],social_media:{facebook:"https://facebook.com/ecoguardians",twitter:"https://twitter.com/ecoguardians",instagram:"https://instagram.com/ecoguardians",linkedin:"https://linkedin.com/company/ecoguardians",youtube:"https://youtube.com/ecoguardians"},donation:{openCollectiveUrl:"https://opencollective.com/ecoguardians",pixQrCode:"https://picsum.photos/seed/pix/200/200",totalRaised:75e3,goal:1e5}}),xI=()=>{const{slug:t}=P2(),{data:e,isLoading:n,error:i}=h1({queryKey:["partner",t],queryFn:()=>wI()});return n?E.jsx("div",{className:"text-white text-center py-20",children:"Loading..."}):i?E.jsxs("div",{className:"text-white text-center py-20",children:["An error occurred: ",i.message]}):E.jsxs("div",{className:"min-h-screen bg-gray-900 text-white",children:[E.jsx(pI,{}),E.jsx(mI,{partner:e}),E.jsxs("main",{className:"container mx-auto px-4 py-16",children:[E.jsx(gI,{project:e.project_highlight}),E.jsx(vI,{partner:e}),E.jsxs(Ht.section,{initial:{opacity:0},animate:{opacity:1},transition:{duration:1},className:"relative py-24 my-16 bg-gradient-to-r from-green-900 to-blue-900 overflow-hidden",children:[E.jsx("div",{className:"absolute inset-0 bg-cover bg-center opacity-20",style:{backgroundImage:"url('https://picsum.photos/seed/amazon-rainforest/1920/1080')"}}),E.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[E.jsx("h2",{className:"text-4xl font-bold mb-8 text-center text-cyan-300",children:"Impact Statement"}),E.jsxs(Ht.blockquote,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.5,duration:.8},className:"text-3xl italic text-center text-white max-w-4xl mx-auto leading-relaxed",children:['"',e.project_highlight.impact_statement,'"']})]})]}),E.jsx(yI,{media:e.media_gallery}),E.jsx(_I,{donation:e.donation})]}),E.jsx("footer",{className:"bg-gray-800 py-12 mt-16",children:E.jsx("div",{className:"container mx-auto px-4",children:E.jsxs("div",{className:"flex flex-col items-center",children:[E.jsxs("h3",{className:"text-2xl font-semibold mb-6 text-cyan-400",children:["Connect With ",e.name]}),E.jsxs("div",{className:"flex space-x-6",children:[e.social_media.facebook&&E.jsx("a",{href:e.social_media.facebook,target:"_blank",rel:"noopener noreferrer",className:"text-gray-400 hover:text-white transition-colors transform hover:scale-110",children:E.jsx(tI,{size:32})}),e.social_media.twitter&&E.jsx("a",{href:e.social_media.twitter,target:"_blank",rel:"noopener noreferrer",className:"text-gray-400 hover:text-white transition-colors transform hover:scale-110",children:E.jsx(lI,{size:32})}),e.social_media.instagram&&E.jsx("a",{href:e.social_media.instagram,target:"_blank",rel:"noopener noreferrer",className:"text-gray-400 hover:text-white transition-colors transform hover:scale-110",children:E.jsx(iI,{size:32})}),e.social_media.linkedin&&E.jsx("a",{href:e.social_media.linkedin,target:"_blank",rel:"noopener noreferrer",className:"text-gray-400 hover:text-white transition-colors transform hover:scale-110",children:E.jsx(rI,{size:32})}),e.social_media.youtube&&E.jsx("a",{href:e.social_media.youtube,target:"_blank",rel:"noopener noreferrer",className:"text-gray-400 hover:text-white transition-colors transform hover:scale-110",children:E.jsx(dI,{size:32})})]}),E.jsxs("p",{className:"mt-8 text-gray-400 text-center",children:["© 2024 ",e.name,". All rights reserved."]})]})})})]})},A0="/brazil-program",PI=new LR,SI=()=>E.jsx(OR,{client:PI,children:E.jsxs(cR,{children:[E.jsx(SL,{}),E.jsx(B2,{children:E.jsxs(D2,{children:[E.jsx(hf,{path:`${A0}`,element:E.jsx(fI,{})}),E.jsx(hf,{path:`${A0}partners/:slug`,element:E.jsx(xI,{})})]})})]})});Xd.createRoot(document.getElementById("root")).render(E.jsx(SI,{})); diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..efdeb31 Binary files /dev/null and b/favicon.ico differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..502d462 --- /dev/null +++ b/index.html @@ -0,0 +1,16 @@ + + + + + + Brazil Program + + + + + + + +
+ + diff --git a/og-image.svg b/og-image.svg new file mode 100644 index 0000000..4ade444 --- /dev/null +++ b/og-image.svg @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/placeholder.svg b/placeholder.svg new file mode 100644 index 0000000..e763910 --- /dev/null +++ b/placeholder.svg @@ -0,0 +1 @@ + \ No newline at end of file