diff --git a/lama_cleaner/app/build/asset-manifest.json b/lama_cleaner/app/build/asset-manifest.json index bd519ac..164e03d 100644 --- a/lama_cleaner/app/build/asset-manifest.json +++ b/lama_cleaner/app/build/asset-manifest.json @@ -1,17 +1,17 @@ { "files": { - "main.css": "/static/css/main.466cfae4.chunk.css", - "main.js": "/static/js/main.10498a27.chunk.js", + "main.css": "/static/css/main.77e9be72.chunk.css", + "main.js": "/static/js/main.02edcea0.chunk.js", "runtime-main.js": "/static/js/runtime-main.5e86ac81.js", - "static/js/2.f399df96.chunk.js": "/static/js/2.f399df96.chunk.js", + "static/js/2.17f9840f.chunk.js": "/static/js/2.17f9840f.chunk.js", "index.html": "/index.html", - "static/js/2.f399df96.chunk.js.LICENSE.txt": "/static/js/2.f399df96.chunk.js.LICENSE.txt", + "static/js/2.17f9840f.chunk.js.LICENSE.txt": "/static/js/2.17f9840f.chunk.js.LICENSE.txt", "static/media/_index.scss": "/static/media/WorkSans-SemiBold.1e98db4e.ttf" }, "entrypoints": [ "static/js/runtime-main.5e86ac81.js", - "static/js/2.f399df96.chunk.js", - "static/css/main.466cfae4.chunk.css", - "static/js/main.10498a27.chunk.js" + "static/js/2.17f9840f.chunk.js", + "static/css/main.77e9be72.chunk.css", + "static/js/main.02edcea0.chunk.js" ] } \ No newline at end of file diff --git a/lama_cleaner/app/build/index.html b/lama_cleaner/app/build/index.html index 30d40ea..365d8ef 100644 --- a/lama_cleaner/app/build/index.html +++ b/lama_cleaner/app/build/index.html @@ -1 +1 @@ -lama-cleaner - Image inpainting powered by LaMa
\ No newline at end of file +lama-cleaner - Image inpainting powered by SOTA AI model
\ No newline at end of file diff --git a/lama_cleaner/app/build/static/css/main.466cfae4.chunk.css b/lama_cleaner/app/build/static/css/main.466cfae4.chunk.css deleted file mode 100644 index 4ad2207..0000000 --- a/lama_cleaner/app/build/static/css/main.466cfae4.chunk.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-family:"WorkSans";src:url(/static/media/WorkSans-Regular.bb287b89.ttf)}@font-face{font-family:"WorkSans-Semibold";src:url(/static/media/WorkSans-SemiBold.1e98db4e.ttf)}@font-face{font-family:"WorkSans-Bold";src:url(/static/media/WorkSans-Bold.2bea7a7f.ttf)}@font-face{font-family:"WorkSans-Black";src:url(/static/media/WorkSans-Black.67c2c5a1.ttf)}:root{--page-bg:#fff;--page-bg-light:hsla(0,0%,100%,0.5);--page-text-color:#040404;--link-color:#000;--border-color:#646478;--border-color-light:rgba(100,100,120,0.5);--tooltip-bg:#e6e6ea;--tooltip-text-color:#000;--error-color:#ef4444;--success-color:#10b981;--editor-toolkit-bg:hsla(0,0%,100%,0.5);--editor-options-bg:#e6e6ea;--editor-size-border-color:var(--border-color);--editor-toolkit-panel-border:0;--modal-bg:var(--page-bg);--modal-text-color:#000;--modal-hotkey-border-color:#000;--model-mask-bg:rgba(209,213,219,0.4);--text-color:#040404;--text-color-gray:#6b6f76;--btn-text-color:var(--text-color);--btn-text-hover-color:#040404;--btn-border-color:#646478;--btn-primary-hover-bg:var(--yellow-accent);--animation-pulsing-bg:hsla(0,0%,100%,0.5);--switch-root-background-color:#dfe1e4;--switch-thumb-color:var(--page-bg);--switch-thumb-checked-color:var(--page-bg);--tooltip-bg:var(--page-bg);--badge-background-color:#f1f3f5;--badge-color:#687076;--box-shadow:inset 0 0.5px hsla(0,0%,100%,0.1),inset 0 1px 5px #f8f9fa,0px 0px 0px 0.5px #c1c8cd,0px 2px 1px -1px #c1c8cd,0 1px #c1c8cd}:root,[data-theme=dark]{--yellow-accent:#fc0;--yellow-accent-light:rgba(255,204,0,0.3333333333333333);--options-text-color:var(--page-text-color);--slider-background-color:var(--switch-root-background-color);--croper-bg:rgba(0,0,0,0.5)}[data-theme=dark]{--page-bg:#040404;--page-bg-light:rgba(4,4,4,0.5333333333333333);--page-text-color:#f9f9f9;--link-color:var(--yellow-accent);--border-color:#646478;--border-color-light:#666;--tooltip-bg:#212121;--tooltip-text-color:#d2d2d2;--editor-toolkit-bg:rgba(0,0,0,0.5);--editor-options-bg:#212121;--editor-size-border-color:var(--yellow-accent);--editor-toolkit-panel-border:1px solid rgba(100,100,120,0.4);--modal-bg:var(--page-bg);--modal-text-color:var(--page-text-color);--modal-hotkey-border-color:var(--page-text-color);--model-mask-bg:rgba(76,76,87,0.4);--text-color:#fff;--text-color-gray:#8a8f98;--btn-text-color:var(--text-color);--btn-text-hover-color:var(--page-bg);--btn-border-color:var(--yellow-accent);--btn-primary-hover-bg:var(--yellow-accent);--animation-pulsing-bg:#f0f0ff;--switch-root-background-color:#3c3f44;--switch-thumb-color:#1f2023;--switch-thumb-checked-color:#fff;--tooltip-bg:#202425;--badge-background-color:#202425;--badge-color:#9ba1a6;--box-shadow:inset 0 0.5px hsla(0,0%,100%,0.1),inset 0 1px 5px #1a1d1e,0px 0px 0px 0.5px #4c5155,0px 2px 1px -1px #4c5155,0 1px #4c5155}@-webkit-keyframes pulsing{0%{opacity:1}50%{opacity:.75;background-color:hsla(0,0%,100%,.5);background-color:var(--animation-pulsing-bg)}to{opacity:1}}@keyframes pulsing{0%{opacity:1}50%{opacity:.75;background-color:hsla(0,0%,100%,.5);background-color:var(--animation-pulsing-bg)}to{opacity:1}}@-webkit-keyframes opacityReveal{0%{opacity:0}to{opacity:1}}@keyframes opacityReveal{0%{opacity:0}to{opacity:1}}@-webkit-keyframes slideDown{0%{-webkit-transform:translateY(-100%);transform:translateY(-100%)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes slideDown{0%{-webkit-transform:translateY(-100%);transform:translateY(-100%)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes slideUp{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes slideUp{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes slideIn{0%{-webkit-transform:translateX(calc(100% + 25px));transform:translateX(calc(100% + 25px))}to{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes slideIn{0%{-webkit-transform:translateX(calc(100% + 25px));transform:translateX(calc(100% + 25px))}to{-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes slideUpAndFade{0%{opacity:0;-webkit-transform:translateY(2px);transform:translateY(2px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes slideUpAndFade{0%{opacity:0;-webkit-transform:translateY(2px);transform:translateY(2px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes slideDownAndFade{0%{opacity:0;-webkit-transform:translateY(-2px);transform:translateY(-2px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes slideDownAndFade{0%{opacity:0;-webkit-transform:translateY(-2px);transform:translateY(-2px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}.lama-cleaner{display:grid;grid-template-areas:"main-content";width:100vw;height:100vh;background-color:#fff;background-color:var(--page-bg);color:#040404;color:var(--page-text-color);transition-property:background-color,color;transition-duration:.2s;transition-timing-function:repeat(2,ease-out)}.editor-container{display:flex;width:100vw;height:100vh;justify-content:center;align-items:center}.react-transform-wrapper{display:grid!important;width:100%!important;height:100%!important}.editor-canvas-container{display:grid;grid-template-areas:"editor-content";grid-row-gap:1rem;row-gap:1rem}.editor-canvas{grid-area:editor-content;z-index:2}.original-image-container{grid-area:editor-content;pointer-events:none;display:grid;grid-template-areas:"original-image-content"}.original-image-container img{grid-area:original-image-content}.original-image-container .editor-slider{grid-area:original-image-content;height:100%;width:6px;justify-self:end;background-color:#fc0;background-color:var(--yellow-accent);transition:all .3s cubic-bezier(.4,0,.2,1);z-index:2}.editor-canvas-loading{pointer-events:none;-webkit-animation:pulsing .75s infinite;animation:pulsing .75s infinite}.editor-toolkit-panel{position:fixed;bottom:.5rem;border-radius:3rem;padding:.6rem 3rem;display:grid;grid-template-areas:"toolkit-size-selector toolkit-brush-slider toolkit-btns";grid-column-gap:2rem;-webkit-column-gap:2rem;column-gap:2rem;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background-color:hsla(0,0%,100%,.5);background-color:var(--page-bg-light);-webkit-animation:slideUp .2s ease-out;animation:slideUp .2s ease-out;border:0;border:var(--editor-toolkit-panel-border);box-shadow:0 0 0 1px rgba(0,0,0,.1019607843),0 3px 16px rgba(0,0,0,.0784313725),0 2px 6px 1px rgba(0,0,0,.0901960784)}@media screen and (max-width:767px){.editor-toolkit-panel{padding:1rem 2rem;grid-template-areas:"toolkit-size-selector toolkit-size-selector" "toolkit-brush-slider toolkit-brush-slider" "toolkit-btns toolkit-btns";grid-row-gap:2rem;row-gap:2rem;justify-items:center}}.editor-toolkit-panel .eyeicon-active{background-color:#fc0;background-color:var(--yellow-accent);color:#040404;color:var(--btn-text-hover-color)}.editor-brush-slider{grid-area:toolkit-brush-slider;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:grid;grid-template-columns:repeat(2,-webkit-max-content);grid-template-columns:repeat(2,max-content);height:-webkit-max-content;height:max-content;grid-column-gap:1rem;-webkit-column-gap:1rem;column-gap:1rem;align-items:center}.editor-brush-slider input[type=range]{-webkit-appearance:none;appearance:none;width:100%;cursor:pointer;background:transparent;border-color:transparent;color:transparent}.editor-brush-slider input[type=range]:focus{outline:none}.editor-brush-slider input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;height:1.2rem;width:1.2rem;border-radius:50%;border:1px solid #000;z-index:2;background:#fc0;background:var(--yellow-accent);margin-top:-.5rem}.editor-brush-slider input[type=range]::-webkit-slider-runnable-track{border-radius:2rem;height:.2rem;background:#dfe1e4;background:var(--slider-background-color)}.editor-brush-slider input[type=range]::-moz-range-track{border-radius:2rem;background:#dfe1e4;background:var(--slider-background-color)}.editor-brush-slider input[type=range]::-moz-range-progress{background:#fc0;background:var(--yellow-accent)}.editor-toolkit-btns{grid-area:toolkit-btns;display:grid;grid-auto-flow:column;grid-column-gap:1rem;-webkit-column-gap:1rem;column-gap:1rem}.brush-shape{position:absolute;border-radius:50%;background-color:rgba(255,204,0,.7333333333);border:1px solid #fc0;border:1px solid var(--yellow-accent);pointer-events:none}.landing-page{display:grid;place-self:center;justify-items:center;grid-row-gap:2rem;row-gap:2rem;grid-auto-rows:-webkit-max-content;grid-auto-rows:max-content}@media screen and (max-width:767px){.landing-page{padding:1rem}}.landing-page h1{text-align:center;font-size:1.4rem}@media screen and (max-width:767px){.landing-page h1{font-size:1.2rem}}.landing-page a{color:#000;color:var(--link-color)}.landing-file-selector{display:grid}header{height:60px;padding:1rem 1.5rem;position:absolute;top:0;display:flex;justify-content:space-between;align-items:center;width:100%;z-index:20;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid rgba(100,100,120,.2);background-color:hsla(0,0%,100%,.5);background-color:var(--page-bg-light)}.shortcuts{z-index:1}.header-icons-wrapper{grid-gap:12px;gap:12px}.header-icons,.header-icons-wrapper{display:flex;justify-content:center;align-items:center;justify-self:end}.header-icons{grid-gap:6px;gap:6px}.prompt-wrapper{display:flex;grid-gap:12px;gap:12px}.prompt-wrapper input{all:unset;border-width:0;border-radius:.5rem;min-width:600px;padding:0 .8rem;outline:1px solid #646478;outline:1px solid var(--border-color)}.prompt-wrapper input:focus-visible{border-width:0;outline:1px solid #fc0;outline:1px solid var(--yellow-accent)}.theme-toggle-ui{z-index:10;transition:all .2s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.theme-toggle-ui .theme-btn{display:flex;justify-content:center;align-items:center;cursor:pointer;outline:none}.theme-toggle-ui .theme-btn svg{width:22px;height:22px}.modal-shortcuts{grid-area:main-content;background-color:#fff;background-color:var(--modal-bg);color:#000;color:var(--modal-text-color);box-shadow:0 0 20px rgba(0,0,40,.2)}@media screen and (max-width:767px){.modal-shortcuts{display:grid;width:100%;height:auto;-webkit-animation:slideDown .2s ease-out;animation:slideDown .2s ease-out}}.shortcut-options{display:grid;grid-row-gap:1rem;row-gap:1rem}.shortcut-options .shortcut-option{display:grid;grid-template-columns:repeat(2,auto);grid-column-gap:6rem;-webkit-column-gap:6rem;column-gap:6rem;align-items:center}@media screen and (max-width:767px){.shortcut-options .shortcut-option{grid-column-gap:0;-webkit-column-gap:0;column-gap:0;grid-row-gap:.6rem;row-gap:.6rem}}.shortcut-options .shortcut-key{justify-self:end;padding-left:.5rem;padding-right:.5rem;width:-webkit-max-content;width:max-content;border-radius:6px;-webkit-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;color:#000;color:var(--modal-text-color);background-color:#fff;background-color:var(--page-bg);box-sizing:border-box;box-shadow:inset 0 .5px hsla(0,0%,100%,.1),inset 0 1px 5px #f8f9fa,0 0 0 .5px #c1c8cd,0 2px 1px -1px #c1c8cd,0 1px #c1c8cd;box-shadow:var(--box-shadow);text-shadow:0 0 1px hsla(0,0%,100%,.5);font-family:inherit;font-weight:400;line-height:1.5}@media screen and (max-width:767px){.shortcut-options .shortcut-key{padding:.2rem .4rem}}.shortcut-options .shortcut-description{justify-self:start;text-align:left}@media screen and (max-width:767px){.shortcut-options .shortcut-description{text-align:left;width:auto;justify-self:start}}.setting-block,.setting-block .option-desc{display:flex;flex-direction:column}.setting-block .option-desc{color:#6b6f76;color:var(--text-color-gray);margin-top:12px;border:1px solid #646478;border:1px solid var(--border-color);border-radius:.3rem;padding:1rem;grid-gap:8px;gap:8px}.setting-block .option-desc .sub-setting-block{color:#040404;color:var(--text-color)}.setting-block-content{display:flex;justify-content:space-between;align-items:center;grid-gap:12rem;gap:12rem}.setting-block-content-title{display:flex;flex-direction:row;justify-content:center;align-items:center;grid-gap:8px;gap:8px}.setting-block-desc{font-size:1rem;margin-top:8px;color:#6b6f76;color:var(--text-color-gray)}.hd-setting-block .inline-tip{display:inline;cursor:pointer;color:#040404;color:var(--text-color)}.model-desc-link{display:flex;justify-items:center;color:#687076;color:var(--badge-color);padding-left:5px;padding-right:5px;border-radius:999px;text-decoration:none}.modal-setting{grid-area:main-content;background-color:#fff;background-color:var(--modal-bg);color:#000;color:var(--modal-text-color);box-shadow:0 0 20px rgba(0,0,40,.2);width:600px}@media screen and (max-width:767px){.modal-setting{display:grid;width:100%;height:auto;margin-top:-11rem;-webkit-animation:slideDown .2s ease-out;animation:slideDown .2s ease-out}}.side-panel{position:absolute;top:68px;right:1.5rem;padding:.3rem;z-index:4;border-radius:.8rem;border:1px solid #646478;border-color:var(--border-color)}.side-panel-trigger{font-family:"WorkSans",sans-serif;font-size:16px;border:0}.side-panel-content{position:relative;font-family:"WorkSans",sans-serif;font-size:14px;top:1rem;right:1.5rem;padding:1rem;z-index:9;color:#040404;color:var(--text-color);background-color:#fff;background-color:var(--page-bg);border-radius:.8rem;border:1px solid #646478;border-color:var(--border-color);display:flex;flex-direction:column;grid-gap:12px;gap:12px}.side-panel-content .setting-block-content{grid-gap:1rem;gap:1rem}.crop-border{outline-color:#fc0;outline-color:var(--yellow-accent);outline-style:dashed}.info-bar{position:absolute;pointer-events:auto;font-size:1rem;padding:.2rem .8rem;display:flex;align-items:center;justify-content:center;grid-gap:12px;gap:12px;color:#040404;color:var(--text-color);background-color:#fff;background-color:var(--page-bg);border-radius:9999px;border:0;border:var(--editor-toolkit-panel-border);box-shadow:0 0 0 1px rgba(0,0,0,.1019607843),0 3px 16px rgba(0,0,0,.0784313725),0 2px 6px 1px rgba(0,0,0,.0901960784)}.info-bar:hover{cursor:move}.croper-wrapper{position:absolute;height:100%;width:100%;overflow:hidden}.croper,.croper-wrapper{z-index:2;pointer-events:none}.croper{position:relative;top:0;bottom:0;left:0;right:0;box-shadow:0 0 0 9999px rgba(0,0,0,.5)}.drag-bar{position:absolute;pointer-events:auto}.drag-bar.ord-top{top:0;left:0;width:100%;height:12px;margin-top:-6px;cursor:ns-resize}.drag-bar.ord-right{right:0;top:0;width:12px;height:100%;margin-right:-6px;cursor:ew-resize}.drag-bar.ord-bottom{bottom:0;left:0;width:100%;height:12px;margin-bottom:-6px;cursor:ns-resize}.drag-bar.ord-left{top:0;left:0;width:12px;height:100%;margin-left:-6px;cursor:ew-resize}.drag-handle{width:12px;height:12px;z-index:4;position:absolute;display:block;content:"";border:2px solid #fc0;border:2px solid var(--yellow-accent);background-color:rgba(255,204,0,.3333333333333333);background-color:var(--yellow-accent-light);pointer-events:auto}.drag-handle:hover{background-color:#fc0;background-color:var(--yellow-accent)}.drag-handle.ord-topleft{cursor:nw-resize;top:-7px;left:-7px}.drag-handle.ord-topright{cursor:ne-resize;top:-7px;right:-7px}.drag-handle.ord-bottomright{cursor:se-resize;bottom:-7px;right:-7px}.drag-handle.ord-bottomleft{cursor:sw-resize;bottom:-7px;left:-7px}.drag-handle.ord-bottom,.drag-handle.ord-top{left:calc(50% - 6px);cursor:ns-resize}.drag-handle.ord-top{top:-7px}.drag-handle.ord-bottom{bottom:-7px}.drag-handle.ord-left,.drag-handle.ord-right{top:calc(50% - 6px);cursor:ew-resize}.drag-handle.ord-left{left:-7px}.drag-handle.ord-right{right:-7px}.file-select-label{display:grid;cursor:pointer;border:2px dashed #646478;border:2px dashed var(--border-color);border-radius:.5rem;min-width:600px}@media screen and (max-width:767px){.file-select-label{min-width:300px}}.file-select-label .file-select-label-hover,.file-select-label:hover{color:#000;background-color:#fc0;background-color:var(--yellow-accent)}.file-select-container{display:grid;padding:4rem;width:100%;height:100%}.file-select-container input{display:none}.file-select-message{font-family:"WorkSans";text-align:center}.btn-primary{display:grid;grid-auto-flow:column;grid-column-gap:1rem;-webkit-column-gap:1rem;column-gap:1rem;background-color:#fff;background-color:var(--page-bg);color:#040404;color:var(--btn-text-color);font-family:"WorkSans",sans-serif;width:-webkit-max-content;width:max-content;padding:.5rem;place-items:center;border-radius:.5rem;z-index:1;cursor:pointer}.btn-primary:hover{background-color:#fc0;background-color:var(--btn-primary-hover-bg);color:#040404;color:var(--btn-text-hover-color)}.btn-primary svg{width:20px;height:auto}.btn-primary-disabled{background-color:#fff;background-color:var(--page-bg);pointer-events:none;opacity:.5}.btn-border{border:1px solid #646478;border-color:var(--btn-border-color)}.modal-mask{position:fixed;z-index:9998;inset:0;background-color:rgba(209,213,219,.4);background-color:var(--model-mask-bg);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}@media(prefers-reduced-motion:no-preference){.modal-mask{-webkit-animation:opacityReveal .15s cubic-bezier(.16,1,.3,1) forwards;animation:opacityReveal .15s cubic-bezier(.16,1,.3,1) forwards}}@-webkit-keyframes contentShow{0%{opacity:0;-webkit-transform:translate(-50%,-48%) scale(.96);transform:translate(-50%,-48%) scale(.96)}to{opacity:1;-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}}@keyframes contentShow{0%{opacity:0;-webkit-transform:translate(-50%,-48%) scale(.96);transform:translate(-50%,-48%) scale(.96)}to{opacity:1;-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}}.modal{background-color:#fff;background-color:var(--page-bg);z-index:9999;position:fixed;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);display:grid;grid-auto-rows:-webkit-max-content;grid-auto-rows:max-content;grid-row-gap:1rem;row-gap:1rem;place-self:center;padding:2rem;border-radius:.95rem}.modal:focus{outline:none}.modal .modal-header{display:grid;grid-template-columns:repeat(2,auto);align-items:center}.modal .modal-header .btn-primary{justify-self:end}@media(prefers-reduced-motion:no-preference){.modal{-webkit-animation:contentShow .15s cubic-bezier(.16,1,.3,1) forwards;animation:contentShow .15s cubic-bezier(.16,1,.3,1) forwards}}.select-trigger{all:unset;display:inline-flex;align-items:center;justify-content:space-between;border-radius:.5rem;height:32px;grid-gap:8px;gap:8px;padding:0 .8rem;border:1px solid #646478;border:1px solid var(--border-color);background-color:#fff;background-color:var(--page-bg);color:#040404;color:var(--options-text-color)}.select-trigger svg{width:1rem;height:1rem;margin-top:.25rem}.select-trigger:hover{border-color:#fc0;border-color:var(--yellow-accent)}.select-content{overflow:hidden;background-color:#fff;background-color:var(--page-bg);border-radius:.5rem}.select-viewport{border:1px solid #646478;border:1px solid var(--border-color);border-radius:.5rem;padding:5px}.select-item{all:unset;background-color:#fff;background-color:var(--page-bg);color:#040404;color:var(--options-text-color);display:flex;align-items:center;border-radius:.5rem;padding:6px 6px 6px 25px;position:relative;-webkit-user-select:none;-ms-user-select:none;user-select:none}.select-item:focus{color:#040404;color:var(--btn-text-hover-color);background-color:#fc0;background-color:var(--yellow-accent)}.select-item-indicator{position:absolute;left:0;width:25px;padding-right:4px;display:inline-flex;align-items:center;justify-content:center}.switch-root{all:"unset";width:42px;height:25px;background-color:#dfe1e4;background-color:var(--switch-root-background-color);border-radius:9999px;border:none;position:relative;transition:background-color .1s;-webkit-tap-highlight-color:rgba(0,0,0,0)}.switch-root:focus-visible{outline:none}.switch-root[data-state=checked]{background-color:#fc0;background-color:var(--yellow-accent)}.switch-thumb{display:block;width:17px;height:17px;background-color:#fff;background-color:var(--switch-thumb-color);border-radius:9999px;transition:-webkit-transform .1s;transition:transform .1s;transition:transform .1s,-webkit-transform .1s;-webkit-transform:translateX(4px);transform:translateX(4px);will-change:transform}.switch-thumb[data-state=checked]{-webkit-transform:translateX(21px);transform:translateX(21px);background-color:#fff;background-color:var(--switch-thumb-checked-color);outline:1px solid rgba(100,100,120,.5)}.number-input{all:unset;flex:1 0 auto;border-radius:.5rem;padding:0 .8rem;outline:1px solid #646478;outline:1px solid var(--border-color);height:32px;text-align:right}.number-input:focus-visible{outline:1px solid #fc0;outline:1px solid var(--yellow-accent)}.number-input:disabled{color:#646478;color:var(--border-color)}.toast-viewpoint{position:fixed;bottom:48px;right:1.5rem;display:flex;flex-direction:row;padding:25px;grid-gap:10px;gap:10px;max-width:100vw;margin:0;z-index:999999}.toast-viewpoint:focus-visible{outline:none}.toast-root{border:1px solid rgba(100,100,120,.5);border:1px solid var(--border-color-light);background-color:#fff;background-color:var(--page-bg);border-radius:.6rem;padding:15px;display:flex;align-items:center;grid-gap:12px;gap:12px}.toast-root[data-state=open]{-webkit-animation:slideIn .15s cubic-bezier(.16,1,.3,1);animation:slideIn .15s cubic-bezier(.16,1,.3,1)}.toast-root[data-state=close]{-webkit-animation:opacityReveal .1s ease-in forwards;animation:opacityReveal .1s ease-in forwards}.toast-root[data-state=cancel]{-webkit-transform:translateX(0);transform:translateX(0);-webkit-animation:transform .1s ease-out;animation:transform .1s ease-out}.toast-root.error{border:1px solid #ef4444;border:1px solid var(--error-color)}.toast-root.success{border:1px solid #10b981;border:1px solid var(--success-color)}.error-icon{height:24px;width:24px;color:#ef4444;color:var(--error-color)}.success-icon{height:24px;width:24px;color:#10b981;color:var(--success-color)}.loading-icon{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:1.5s;animation-duration:1.5s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-transform-origin:center center;transform-origin:center center;-webkit-animation-timing-function:linear;animation-timing-function:linear}.loading-icon,.toast-desc,.toast-icon{display:flex;align-items:center}.toast-desc{margin:0;color:#040404;color:var(--text-color);min-width:240px}.info-tooltip:hover:before{content:attr(data-tooltip);position:absolute;background-color:#fff;background-color:var(--tooltip-bg);color:#000;color:var(--tooltip-text-color);padding:.5rem;border-radius:.3rem;z-index:2;opacity:0;-webkit-animation-name:opacityReveal;animation-name:opacityReveal;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:1s;animation-delay:1s;box-shadow:0 10px 38px -10px rgba(14,18,22,.35),0 10px 20px -15px rgba(14,18,22,.2)}.info-tooltip-top:hover:before{-webkit-transform:translateY(-100%);transform:translateY(-100%);margin-bottom:1.5rem}.info-tooltip-bottom:hover:before{-webkit-transform:translateY(100%);transform:translateY(100%);margin-top:1.5rem}.tooltip-trigger{all:unset;display:flex;justify-content:center;align-items:center}.tooltip-content{color:#000;color:var(--tooltip-text-color);background-color:#fff;background-color:var(--tooltip-bg);padding:10px 15px;border-radius:4px;box-shadow:0 10px 38px -10px rgba(14,18,22,.35),0 10px 20px -15px rgba(14,18,22,.2)}@media(prefers-reduced-motion:no-preference){.tooltip-content{-webkit-animation-duration:.4s;animation-duration:.4s;-webkit-animation-timing-function:cubic-bezier(.16,1,.3,1);animation-timing-function:cubic-bezier(.16,1,.3,1);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;will-change:transform,opacity}.tooltip-content[data-state=delayed-open][data-side=top]{-webkit-animation-name:slideDownAndFade;animation-name:slideDownAndFade}.tooltip-content[data-state=delayed-open][data-side=bottom]{-webkit-animation-name:slideUpAndFade;animation-name:slideUpAndFade}}.tooltip-arrow{fill:#fff;fill:var(--tooltip-bg)}*,:after,:before{box-sizing:border-box;margin:0;padding:0}body,html{font-family:"WorkSans",sans-serif} \ No newline at end of file diff --git a/lama_cleaner/app/build/static/css/main.77e9be72.chunk.css b/lama_cleaner/app/build/static/css/main.77e9be72.chunk.css new file mode 100644 index 0000000..7392c17 --- /dev/null +++ b/lama_cleaner/app/build/static/css/main.77e9be72.chunk.css @@ -0,0 +1 @@ +@font-face{font-family:"WorkSans";src:url(/static/media/WorkSans-Regular.bb287b89.ttf)}@font-face{font-family:"WorkSans-Semibold";src:url(/static/media/WorkSans-SemiBold.1e98db4e.ttf)}@font-face{font-family:"WorkSans-Bold";src:url(/static/media/WorkSans-Bold.2bea7a7f.ttf)}@font-face{font-family:"WorkSans-Black";src:url(/static/media/WorkSans-Black.67c2c5a1.ttf)}:root{--page-bg:#fff;--page-bg-light:hsla(0,0%,100%,0.5);--page-text-color:#040404;--link-color:#000;--border-color:#646478;--border-color-light:rgba(100,100,120,0.5);--tooltip-bg:#e6e6ea;--tooltip-text-color:#000;--error-color:#ef4444;--success-color:#10b981;--editor-toolkit-bg:hsla(0,0%,100%,0.5);--editor-options-bg:#e6e6ea;--editor-size-border-color:var(--border-color);--editor-toolkit-panel-border:0;--modal-bg:var(--page-bg);--modal-text-color:#000;--modal-hotkey-border-color:#000;--model-mask-bg:rgba(209,213,219,0.4);--text-color:#040404;--text-color-gray:#6b6f76;--btn-text-color:var(--text-color);--btn-text-hover-color:#040404;--btn-border-color:#646478;--btn-primary-hover-bg:var(--yellow-accent);--animation-pulsing-bg:hsla(0,0%,100%,0.5);--switch-root-background-color:#dfe1e4;--switch-thumb-color:var(--page-bg);--switch-thumb-checked-color:var(--page-bg);--tooltip-bg:var(--page-bg);--badge-background-color:#f1f3f5;--badge-color:#687076;--box-shadow:inset 0 0.5px hsla(0,0%,100%,0.1),inset 0 1px 5px #f8f9fa,0px 0px 0px 0.5px #c1c8cd,0px 2px 1px -1px #c1c8cd,0 1px #c1c8cd}:root,[data-theme=dark]{--yellow-accent:#fc0;--yellow-accent-light:rgba(255,204,0,0.3333333333333333);--options-text-color:var(--page-text-color);--slider-background-color:var(--switch-root-background-color);--croper-bg:rgba(0,0,0,0.5)}[data-theme=dark]{--page-bg:#040404;--page-bg-light:rgba(4,4,4,0.5333333333333333);--page-text-color:#f9f9f9;--link-color:var(--yellow-accent);--border-color:#646478;--border-color-light:#666;--tooltip-bg:#212121;--tooltip-text-color:#d2d2d2;--editor-toolkit-bg:rgba(0,0,0,0.5);--editor-options-bg:#212121;--editor-size-border-color:var(--yellow-accent);--editor-toolkit-panel-border:1px solid rgba(100,100,120,0.4);--modal-bg:var(--page-bg);--modal-text-color:var(--page-text-color);--modal-hotkey-border-color:var(--page-text-color);--model-mask-bg:rgba(76,76,87,0.4);--text-color:#fff;--text-color-gray:#8a8f98;--btn-text-color:var(--text-color);--btn-text-hover-color:var(--page-bg);--btn-border-color:var(--yellow-accent);--btn-primary-hover-bg:var(--yellow-accent);--animation-pulsing-bg:#f0f0ff;--switch-root-background-color:#3c3f44;--switch-thumb-color:#1f2023;--switch-thumb-checked-color:#fff;--tooltip-bg:#202425;--badge-background-color:#202425;--badge-color:#9ba1a6;--box-shadow:inset 0 0.5px hsla(0,0%,100%,0.1),inset 0 1px 5px #1a1d1e,0px 0px 0px 0.5px #4c5155,0px 2px 1px -1px #4c5155,0 1px #4c5155}@-webkit-keyframes pulsing{0%{opacity:1}50%{opacity:.75;background-color:hsla(0,0%,100%,.5);background-color:var(--animation-pulsing-bg)}to{opacity:1}}@keyframes pulsing{0%{opacity:1}50%{opacity:.75;background-color:hsla(0,0%,100%,.5);background-color:var(--animation-pulsing-bg)}to{opacity:1}}@-webkit-keyframes opacityReveal{0%{opacity:0}to{opacity:1}}@keyframes opacityReveal{0%{opacity:0}to{opacity:1}}@-webkit-keyframes slideDown{0%{-webkit-transform:translateY(-100%);transform:translateY(-100%)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes slideDown{0%{-webkit-transform:translateY(-100%);transform:translateY(-100%)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes slideUp{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes slideUp{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes slideIn{0%{-webkit-transform:translateX(calc(100% + 25px));transform:translateX(calc(100% + 25px))}to{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes slideIn{0%{-webkit-transform:translateX(calc(100% + 25px));transform:translateX(calc(100% + 25px))}to{-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes slideUpAndFade{0%{opacity:0;-webkit-transform:translateY(2px);transform:translateY(2px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes slideUpAndFade{0%{opacity:0;-webkit-transform:translateY(2px);transform:translateY(2px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes slideDownAndFade{0%{opacity:0;-webkit-transform:translateY(-2px);transform:translateY(-2px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes slideDownAndFade{0%{opacity:0;-webkit-transform:translateY(-2px);transform:translateY(-2px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}.lama-cleaner{display:grid;grid-template-areas:"main-content";width:100vw;height:100vh;background-color:#fff;background-color:var(--page-bg);color:#040404;color:var(--page-text-color);transition-property:background-color,color;transition-duration:.2s;transition-timing-function:repeat(2,ease-out)}a{color:inherit;text-decoration:inherit}.editor-container{display:flex;width:100vw;height:100vh;justify-content:center;align-items:center}.react-transform-wrapper{display:grid!important;width:100%!important;height:100%!important}.editor-canvas-container{display:grid;grid-template-areas:"editor-content";grid-row-gap:1rem;row-gap:1rem}.editor-canvas{grid-area:editor-content;z-index:2}.original-image-container{grid-area:editor-content;pointer-events:none;display:grid;grid-template-areas:"original-image-content"}.original-image-container img{grid-area:original-image-content}.original-image-container .editor-slider{grid-area:original-image-content;height:100%;width:6px;justify-self:end;background-color:#fc0;background-color:var(--yellow-accent);transition:all .3s cubic-bezier(.4,0,.2,1);z-index:2}.editor-canvas-loading{pointer-events:none;-webkit-animation:pulsing .75s infinite;animation:pulsing .75s infinite}.editor-toolkit-panel{position:fixed;bottom:.5rem;border-radius:3rem;padding:.6rem 3rem;display:grid;grid-template-areas:"toolkit-size-selector toolkit-brush-slider toolkit-btns";grid-column-gap:2rem;-webkit-column-gap:2rem;column-gap:2rem;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background-color:hsla(0,0%,100%,.5);background-color:var(--page-bg-light);-webkit-animation:slideUp .2s ease-out;animation:slideUp .2s ease-out;border:0;border:var(--editor-toolkit-panel-border);box-shadow:0 0 0 1px rgba(0,0,0,.1019607843),0 3px 16px rgba(0,0,0,.0784313725),0 2px 6px 1px rgba(0,0,0,.0901960784)}@media screen and (max-width:767px){.editor-toolkit-panel{padding:1rem 2rem;grid-template-areas:"toolkit-size-selector toolkit-size-selector" "toolkit-brush-slider toolkit-brush-slider" "toolkit-btns toolkit-btns";grid-row-gap:2rem;row-gap:2rem;justify-items:center}}.editor-toolkit-panel .eyeicon-active{background-color:#fc0;background-color:var(--yellow-accent);color:#040404;color:var(--btn-text-hover-color)}.editor-brush-slider{grid-area:toolkit-brush-slider;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:grid;grid-template-columns:repeat(2,-webkit-max-content);grid-template-columns:repeat(2,max-content);height:-webkit-max-content;height:max-content;grid-column-gap:1rem;-webkit-column-gap:1rem;column-gap:1rem;align-items:center}.editor-brush-slider input[type=range]{-webkit-appearance:none;appearance:none;width:100%;cursor:pointer;background:transparent;border-color:transparent;color:transparent}.editor-brush-slider input[type=range]:focus{outline:none}.editor-brush-slider input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;height:1.2rem;width:1.2rem;border-radius:50%;border:1px solid #000;z-index:2;background:#fc0;background:var(--yellow-accent);margin-top:-.5rem}.editor-brush-slider input[type=range]::-webkit-slider-runnable-track{border-radius:2rem;height:.2rem;background:#dfe1e4;background:var(--slider-background-color)}.editor-brush-slider input[type=range]::-moz-range-track{border-radius:2rem;background:#dfe1e4;background:var(--slider-background-color)}.editor-brush-slider input[type=range]::-moz-range-progress{background:#fc0;background:var(--yellow-accent)}.editor-toolkit-btns{grid-area:toolkit-btns;display:grid;grid-auto-flow:column;grid-column-gap:1rem;-webkit-column-gap:1rem;column-gap:1rem}.brush-shape{position:absolute;border-radius:50%;background-color:rgba(255,204,0,.7333333333);border:1px solid #fc0;border:1px solid var(--yellow-accent);pointer-events:none}.landing-page{display:grid;place-self:center;justify-items:center;grid-row-gap:2rem;row-gap:2rem;grid-auto-rows:-webkit-max-content;grid-auto-rows:max-content}@media screen and (max-width:767px){.landing-page{padding:1rem}}.landing-page h1{text-align:center;font-size:1.4rem}@media screen and (max-width:767px){.landing-page h1{font-size:1.2rem}}.landing-page a{color:#000;color:var(--link-color)}.landing-file-selector{display:grid}header{height:60px;padding:1rem 1.5rem;position:absolute;top:0;display:flex;justify-content:space-between;align-items:center;width:100%;z-index:20;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid rgba(100,100,120,.2);background-color:hsla(0,0%,100%,.5);background-color:var(--page-bg-light)}.shortcuts{z-index:1}.header-icons-wrapper{grid-gap:12px;gap:12px}.header-icons,.header-icons-wrapper{display:flex;justify-content:center;align-items:center;justify-self:end}.header-icons{grid-gap:6px;gap:6px}.prompt-wrapper{display:flex;grid-gap:12px;gap:12px}.prompt-wrapper input{all:unset;border-width:0;border-radius:.5rem;min-width:600px;padding:0 .8rem;outline:1px solid #646478;outline:1px solid var(--border-color)}.prompt-wrapper input:focus-visible{border-width:0;outline:1px solid #fc0;outline:1px solid var(--yellow-accent)}.theme-toggle-ui{z-index:10;transition:all .2s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.theme-toggle-ui .theme-btn{display:flex;justify-content:center;align-items:center;cursor:pointer;outline:none}.theme-toggle-ui .theme-btn svg{width:22px;height:22px}.modal-shortcuts{grid-area:main-content;background-color:#fff;background-color:var(--modal-bg);color:#000;color:var(--modal-text-color);box-shadow:0 0 20px rgba(0,0,40,.2)}@media screen and (max-width:767px){.modal-shortcuts{display:grid;width:100%;height:auto;-webkit-animation:slideDown .2s ease-out;animation:slideDown .2s ease-out}}.shortcut-options{display:grid;grid-row-gap:1rem;row-gap:1rem}.shortcut-options .shortcut-option{display:grid;grid-template-columns:repeat(2,auto);grid-column-gap:6rem;-webkit-column-gap:6rem;column-gap:6rem;align-items:center}@media screen and (max-width:767px){.shortcut-options .shortcut-option{grid-column-gap:0;-webkit-column-gap:0;column-gap:0;grid-row-gap:.6rem;row-gap:.6rem}}.shortcut-options .shortcut-key{justify-self:end;padding-left:.5rem;padding-right:.5rem;width:-webkit-max-content;width:max-content;border-radius:6px;-webkit-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;color:#000;color:var(--modal-text-color);background-color:#fff;background-color:var(--page-bg);box-sizing:border-box;box-shadow:inset 0 .5px hsla(0,0%,100%,.1),inset 0 1px 5px #f8f9fa,0 0 0 .5px #c1c8cd,0 2px 1px -1px #c1c8cd,0 1px #c1c8cd;box-shadow:var(--box-shadow);text-shadow:0 0 1px hsla(0,0%,100%,.5);font-family:inherit;font-weight:400;line-height:1.5}@media screen and (max-width:767px){.shortcut-options .shortcut-key{padding:.2rem .4rem}}.shortcut-options .shortcut-description{justify-self:start;text-align:left}@media screen and (max-width:767px){.shortcut-options .shortcut-description{text-align:left;width:auto;justify-self:start}}.setting-block,.setting-block .option-desc{display:flex;flex-direction:column}.setting-block .option-desc{color:#6b6f76;color:var(--text-color-gray);margin-top:12px;border:1px solid #646478;border:1px solid var(--border-color);border-radius:.3rem;padding:1rem;grid-gap:8px;gap:8px}.setting-block .option-desc .sub-setting-block{color:#040404;color:var(--text-color)}.setting-block-content{display:flex;justify-content:space-between;align-items:center;grid-gap:12rem;gap:12rem}.setting-block-content-title{display:flex;flex-direction:row;justify-content:center;align-items:center;grid-gap:8px;gap:8px}.setting-block-desc{font-size:1rem;margin-top:8px;color:#6b6f76;color:var(--text-color-gray)}.hd-setting-block .inline-tip{display:inline;cursor:pointer;color:#040404;color:var(--text-color)}.model-desc-link{display:flex;justify-items:center;color:#687076;color:var(--badge-color);padding-left:5px;padding-right:5px;border-radius:999px;text-decoration:none}.modal-setting{grid-area:main-content;background-color:#fff;background-color:var(--modal-bg);color:#000;color:var(--modal-text-color);box-shadow:0 0 20px rgba(0,0,40,.2);width:600px}@media screen and (max-width:767px){.modal-setting{display:grid;width:100%;height:auto;margin-top:-11rem;-webkit-animation:slideDown .2s ease-out;animation:slideDown .2s ease-out}}.side-panel{position:absolute;top:68px;right:1.5rem;padding:.3rem;z-index:4;border-radius:.8rem;border:1px solid #646478;border-color:var(--border-color)}.side-panel-trigger{font-family:"WorkSans",sans-serif;font-size:16px;border:0}.side-panel-content{position:relative;font-family:"WorkSans",sans-serif;font-size:14px;top:1rem;right:1.5rem;padding:1rem;z-index:9;color:#040404;color:var(--text-color);background-color:#fff;background-color:var(--page-bg);border-radius:.8rem;border:1px solid #646478;border-color:var(--border-color);display:flex;flex-direction:column;grid-gap:12px;gap:12px}.side-panel-content .setting-block-content{grid-gap:1rem;gap:1rem}.crop-border{outline-color:#fc0;outline-color:var(--yellow-accent);outline-style:dashed}.info-bar{position:absolute;pointer-events:auto;font-size:1rem;padding:.2rem .8rem;display:flex;align-items:center;justify-content:center;grid-gap:12px;gap:12px;color:#040404;color:var(--text-color);background-color:#fff;background-color:var(--page-bg);border-radius:9999px;border:0;border:var(--editor-toolkit-panel-border);box-shadow:0 0 0 1px rgba(0,0,0,.1019607843),0 3px 16px rgba(0,0,0,.0784313725),0 2px 6px 1px rgba(0,0,0,.0901960784)}.info-bar:hover{cursor:move}.croper-wrapper{position:absolute;height:100%;width:100%;overflow:hidden}.croper,.croper-wrapper{z-index:2;pointer-events:none}.croper{position:relative;top:0;bottom:0;left:0;right:0;box-shadow:0 0 0 9999px rgba(0,0,0,.5)}.drag-bar{position:absolute;pointer-events:auto}.drag-bar.ord-top{top:0;left:0;width:100%;height:12px;margin-top:-6px;cursor:ns-resize}.drag-bar.ord-right{right:0;top:0;width:12px;height:100%;margin-right:-6px;cursor:ew-resize}.drag-bar.ord-bottom{bottom:0;left:0;width:100%;height:12px;margin-bottom:-6px;cursor:ns-resize}.drag-bar.ord-left{top:0;left:0;width:12px;height:100%;margin-left:-6px;cursor:ew-resize}.drag-handle{width:12px;height:12px;z-index:4;position:absolute;display:block;content:"";border:2px solid #fc0;border:2px solid var(--yellow-accent);background-color:rgba(255,204,0,.3333333333333333);background-color:var(--yellow-accent-light);pointer-events:auto}.drag-handle:hover{background-color:#fc0;background-color:var(--yellow-accent)}.drag-handle.ord-topleft{cursor:nw-resize;top:-7px;left:-7px}.drag-handle.ord-topright{cursor:ne-resize;top:-7px;right:-7px}.drag-handle.ord-bottomright{cursor:se-resize;bottom:-7px;right:-7px}.drag-handle.ord-bottomleft{cursor:sw-resize;bottom:-7px;left:-7px}.drag-handle.ord-bottom,.drag-handle.ord-top{left:calc(50% - 6px);cursor:ns-resize}.drag-handle.ord-top{top:-7px}.drag-handle.ord-bottom{bottom:-7px}.drag-handle.ord-left,.drag-handle.ord-right{top:calc(50% - 6px);cursor:ew-resize}.drag-handle.ord-left{left:-7px}.drag-handle.ord-right{right:-7px}.file-select-label{display:grid;cursor:pointer;border:2px dashed #646478;border:2px dashed var(--border-color);border-radius:.5rem;min-width:600px}@media screen and (max-width:767px){.file-select-label{min-width:300px}}.file-select-label .file-select-label-hover,.file-select-label:hover{color:#000;background-color:#fc0;background-color:var(--yellow-accent)}.file-select-container{display:grid;padding:4rem;width:100%;height:100%}.file-select-container input{display:none}.file-select-message{font-family:"WorkSans";text-align:center}.btn-primary{display:grid;grid-auto-flow:column;grid-column-gap:1rem;-webkit-column-gap:1rem;column-gap:1rem;background-color:#fff;background-color:var(--page-bg);color:#040404;color:var(--btn-text-color);font-family:"WorkSans",sans-serif;width:-webkit-max-content;width:max-content;padding:.5rem;place-items:center;border-radius:.5rem;z-index:1;cursor:pointer}.btn-primary:hover{background-color:#fc0;background-color:var(--btn-primary-hover-bg);color:#040404;color:var(--btn-text-hover-color)}.btn-primary svg{width:20px;height:auto}.btn-primary-disabled{background-color:#fff;background-color:var(--page-bg);pointer-events:none;opacity:.5}.btn-border{border:1px solid #646478;border-color:var(--btn-border-color)}.modal-mask{position:fixed;z-index:9998;inset:0;background-color:rgba(209,213,219,.4);background-color:var(--model-mask-bg);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}@media(prefers-reduced-motion:no-preference){.modal-mask{-webkit-animation:opacityReveal .15s cubic-bezier(.16,1,.3,1) forwards;animation:opacityReveal .15s cubic-bezier(.16,1,.3,1) forwards}}@-webkit-keyframes contentShow{0%{opacity:0;-webkit-transform:translate(-50%,-48%) scale(.96);transform:translate(-50%,-48%) scale(.96)}to{opacity:1;-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}}@keyframes contentShow{0%{opacity:0;-webkit-transform:translate(-50%,-48%) scale(.96);transform:translate(-50%,-48%) scale(.96)}to{opacity:1;-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}}.modal{background-color:#fff;background-color:var(--page-bg);z-index:9999;position:fixed;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);display:grid;grid-auto-rows:-webkit-max-content;grid-auto-rows:max-content;grid-row-gap:1rem;row-gap:1rem;place-self:center;padding:2rem;border-radius:.95rem}.modal:focus{outline:none}.modal .modal-header{display:grid;grid-template-columns:repeat(2,auto);align-items:center}.modal .modal-header .btn-primary{justify-self:end}@media(prefers-reduced-motion:no-preference){.modal{-webkit-animation:contentShow .15s cubic-bezier(.16,1,.3,1) forwards;animation:contentShow .15s cubic-bezier(.16,1,.3,1) forwards}}.select-trigger{all:unset;display:inline-flex;align-items:center;justify-content:space-between;border-radius:.5rem;height:32px;grid-gap:8px;gap:8px;padding:0 .8rem;border:1px solid #646478;border:1px solid var(--border-color);background-color:#fff;background-color:var(--page-bg);color:#040404;color:var(--options-text-color)}.select-trigger svg{width:1rem;height:1rem;margin-top:.25rem}.select-trigger:hover{border-color:#fc0;border-color:var(--yellow-accent)}.select-content{overflow:hidden;background-color:#fff;background-color:var(--page-bg);border-radius:.5rem}.select-viewport{border:1px solid #646478;border:1px solid var(--border-color);border-radius:.5rem;padding:5px}.select-item{all:unset;background-color:#fff;background-color:var(--page-bg);color:#040404;color:var(--options-text-color);display:flex;align-items:center;border-radius:.5rem;padding:6px 6px 6px 25px;position:relative;-webkit-user-select:none;-ms-user-select:none;user-select:none}.select-item:focus{color:#040404;color:var(--btn-text-hover-color);background-color:#fc0;background-color:var(--yellow-accent)}.select-item-indicator{position:absolute;left:0;width:25px;padding-right:4px;display:inline-flex;align-items:center;justify-content:center}.switch-root{all:"unset";width:42px;height:25px;background-color:#dfe1e4;background-color:var(--switch-root-background-color);border-radius:9999px;border:none;position:relative;transition:background-color .1s;-webkit-tap-highlight-color:rgba(0,0,0,0)}.switch-root:focus-visible{outline:none}.switch-root[data-state=checked]{background-color:#fc0;background-color:var(--yellow-accent)}.switch-thumb{display:block;width:17px;height:17px;background-color:#fff;background-color:var(--switch-thumb-color);border-radius:9999px;transition:-webkit-transform .1s;transition:transform .1s;transition:transform .1s,-webkit-transform .1s;-webkit-transform:translateX(4px);transform:translateX(4px);will-change:transform}.switch-thumb[data-state=checked]{-webkit-transform:translateX(21px);transform:translateX(21px);background-color:#fff;background-color:var(--switch-thumb-checked-color);outline:1px solid rgba(100,100,120,.5)}.number-input{all:unset;flex:1 0 auto;border-radius:.5rem;padding:0 .8rem;outline:1px solid #646478;outline:1px solid var(--border-color);height:32px;text-align:right}.number-input:focus-visible{outline:1px solid #fc0;outline:1px solid var(--yellow-accent)}.number-input:disabled{color:#646478;color:var(--border-color)}.toast-viewpoint{position:fixed;bottom:48px;right:1.5rem;display:flex;flex-direction:row;padding:25px;grid-gap:10px;gap:10px;max-width:100vw;margin:0;z-index:999999}.toast-viewpoint:focus-visible{outline:none}.toast-root{border:1px solid rgba(100,100,120,.5);border:1px solid var(--border-color-light);background-color:#fff;background-color:var(--page-bg);border-radius:.6rem;padding:15px;display:flex;align-items:center;grid-gap:12px;gap:12px}.toast-root[data-state=open]{-webkit-animation:slideIn .15s cubic-bezier(.16,1,.3,1);animation:slideIn .15s cubic-bezier(.16,1,.3,1)}.toast-root[data-state=close]{-webkit-animation:opacityReveal .1s ease-in forwards;animation:opacityReveal .1s ease-in forwards}.toast-root[data-state=cancel]{-webkit-transform:translateX(0);transform:translateX(0);-webkit-animation:transform .1s ease-out;animation:transform .1s ease-out}.toast-root.error{border:1px solid #ef4444;border:1px solid var(--error-color)}.toast-root.success{border:1px solid #10b981;border:1px solid var(--success-color)}.error-icon{height:24px;width:24px;color:#ef4444;color:var(--error-color)}.success-icon{height:24px;width:24px;color:#10b981;color:var(--success-color)}.loading-icon{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:1.5s;animation-duration:1.5s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-transform-origin:center center;transform-origin:center center;-webkit-animation-timing-function:linear;animation-timing-function:linear}.loading-icon,.toast-desc,.toast-icon{display:flex;align-items:center}.toast-desc{margin:0;color:#040404;color:var(--text-color);min-width:240px}.info-tooltip:hover:before{content:attr(data-tooltip);position:absolute;background-color:#fff;background-color:var(--tooltip-bg);color:#000;color:var(--tooltip-text-color);padding:.5rem;border-radius:.3rem;z-index:2;opacity:0;-webkit-animation-name:opacityReveal;animation-name:opacityReveal;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:.2s;animation-delay:.2s;box-shadow:0 10px 38px -10px rgba(14,18,22,.35),0 10px 20px -15px rgba(14,18,22,.2)}.info-tooltip-top:hover:before{-webkit-transform:translateY(-100%);transform:translateY(-100%);margin-bottom:1.5rem}.info-tooltip-bottom:hover:before{-webkit-transform:translateY(100%);transform:translateY(100%);margin-top:1.5rem}.tooltip-trigger{all:unset;display:flex;justify-content:center;align-items:center}.tooltip-content{color:#000;color:var(--tooltip-text-color);background-color:#fff;background-color:var(--tooltip-bg);padding:10px 15px;border-radius:4px;box-shadow:0 10px 38px -10px rgba(14,18,22,.35),0 10px 20px -15px rgba(14,18,22,.2)}@media(prefers-reduced-motion:no-preference){.tooltip-content{-webkit-animation-duration:.4s;animation-duration:.4s;-webkit-animation-timing-function:cubic-bezier(.16,1,.3,1);animation-timing-function:cubic-bezier(.16,1,.3,1);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;will-change:transform,opacity}.tooltip-content[data-state=delayed-open][data-side=top]{-webkit-animation-name:slideDownAndFade;animation-name:slideDownAndFade}.tooltip-content[data-state=delayed-open][data-side=bottom]{-webkit-animation-name:slideUpAndFade;animation-name:slideUpAndFade}}.tooltip-arrow{fill:#fff;fill:var(--tooltip-bg)}*,:after,:before{box-sizing:border-box;margin:0;padding:0}body,html{font-family:"WorkSans",sans-serif} \ No newline at end of file diff --git a/lama_cleaner/app/build/static/js/2.17f9840f.chunk.js b/lama_cleaner/app/build/static/js/2.17f9840f.chunk.js new file mode 100644 index 0000000..4422f8d --- /dev/null +++ b/lama_cleaner/app/build/static/js/2.17f9840f.chunk.js @@ -0,0 +1,2 @@ +/*! For license information please see 2.17f9840f.chunk.js.LICENSE.txt */ +(this["webpackJsonplama-cleaner"]=this["webpackJsonplama-cleaner"]||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(61)},function(e,t,n){"use strict";e.exports=n(67)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(7);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{};return n.error,null},ge=ye,we=function e(){j(this,e)},Oe=new we,_e=function(e){g(n,e);var t=_(n);function n(e){return j(this,n),t.call(this,"Tried to set the value of Recoil selector ".concat(e," using an updater function, but it is an async selector in a pending or error state; this is not supported."))}return n}(d(Error)),je=new Map,Ee=new Map;var Se=function(e){g(n,e);var t=_(n);function n(){return j(this,n),t.apply(this,arguments)}return n}(d(Error));var ke=new Map;function xe(e){return ke.get(e)}var Ce={nodes:je,recoilValues:Ee,registerNode:function(e){if(je.has(e.key)){var t='Duplicate atom key "'.concat(e.key,'". This is a FATAL ERROR in\n production. But it is safe to ignore this warning if it occurred because of\n hot module replacement.');console.warn(t)}je.set(e.key,e);var n=null==e.set?new de.RecoilValueReadOnly(e.key):new de.RecoilState(e.key);return Ee.set(e.key,n),n},getNode:function(e){var t=je.get(e);if(null==t)throw new Se('Missing definition for RecoilValue: "'.concat(e,'""'));return t},getNodeMaybe:function(e){return je.get(e)},deleteNodeConfigIfPossible:function(e){var t;if(me("recoil_memory_managament_2020")){var n,r=je.get(e);if(null!==r&&void 0!==r&&null!==(t=r.shouldDeleteConfigOnRelease)&&void 0!==t&&t.call(r))je.delete(e),null===(n=xe(e))||void 0===n||n(),ke.delete(e)}},setConfigDeletionHandler:function(e,t){me("recoil_memory_managament_2020")&&(void 0===t?ke.delete(e):ke.set(e,t))},getConfigDeletionHandler:xe,recoilValuesForKeys:function(e){return be(e,(function(e){return I(Ee.get(e))}))},NodeMissingError:Se,DefaultValue:we,DEFAULT_VALUE:Oe,RecoilValueNotReady:_e};var Te={enqueueExecution:function(e,t){t()}};var Re=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n={},r=Math.pow(2,5),o=r-1,a=r/2,i=r/4,u={},c=function(e){return function(){return e}},l=n.hash=function(e){var n="undefined"===typeof e?"undefined":t(e);if("number"===n)return e;"string"!==n&&(e+="");for(var r=0,o=0,a=e.length;o>>e&o},f=function(e){return 1<>1&1431655765))+(n>>2&858993459))+(n>>4)&252645135,127&(n+=n>>8)+(n>>16);var n},p=function(e,t,n,r){var o=r;if(!e){var a=r.length;o=new Array(a);for(var i=0;i1?y(e,this.hash,c):c[0]}var l=r();return l===u?this:(++i.value,O(e,n,this.hash,this,o,b(e,o,a,l)))},S=function(e,t,n,r,o,i,u){var c=this.mask,l=this.children,b=s(n,o),y=f(b),O=d(c,y),j=c&y,E=j?l[O]:h,S=E._modify(e,t,n+5,r,o,i,u);if(E===S)return this;var k,x=_(e,this),C=c,T=void 0;if(j&&m(S)){if(!(C&=~y))return h;if(l.length<=2&&((k=l[1^O])===h||1===k.type||2===k.type))return l[1^O];T=v(x,O,l)}else if(j||m(S))T=p(x,O,S,l);else{if(l.length>=a)return function(e,t,n,r,o){for(var a=[],i=r,u=0,c=0;i;++c)1&i&&(a[c]=o[u++]),i>>>=1;return a[t]=n,w(e,u+1,a)}(e,b,S,c,l);C|=y,T=function(e,t,n,r){var o=r.length;if(e){for(var a=o;a>=t;)r[a--]=r[a];return r[t]=n,r}for(var i=0,u=0,c=new Array(o+1);i1?n-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:e.getState().currentTree,i=e.getState();a.version!==i.currentTree.version&&a.version!==(null===(n=i.nextTree)||void 0===n?void 0:n.version)&&a.version!==(null===(r=i.previousTree)||void 0===r?void 0:r.version)&&ge("Tried to read from a discarded tree");var u=Pt(e,a,o);return"loading"===u.state&&u.contents.catch((function(){})),u},setRecoilValue:Qt,setRecoilValueLoadable:function(e,t,n){if(n instanceof Dt)return Qt(e,t,n);Yt(e,{type:"setLoadable",recoilValue:t,loadable:n})},markRecoilValueModified:function(e,t){Yt(e,{type:"markModified",recoilValue:t})},setUnvalidatedRecoilValue:function(e,t,n){Yt(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})},subscribeToRecoilValue:function(e,t,n){var r=t.key,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=Lt(),i=e.getState();i.nodeToComponentSubscriptions.has(r)||i.nodeToComponentSubscriptions.set(r,new Map),I(i.nodeToComponentSubscriptions.get(r)).set(a,[null!==o&&void 0!==o?o:"",n]);var u=zt();if(u.early&&("LEGACY"===u.mode||"MUTABLE_SOURCE"===u.mode)){var c=e.getState().nextTree;c&&c.dirtyAtoms.has(r)&&n(c)}return{release:function(){var t=e.getState(),n=t.nodeToComponentSubscriptions.get(r);void 0!==n&&n.has(a)?(n.delete(a),0===n.size&&t.nodeToComponentSubscriptions.delete(r)):ge("Subscription missing at release time for atom ".concat(r,". This is a bug in Recoil."))}}},isRecoilValue:Vt,applyAtomValueWrites:function(e,t){var n=e.clone();return t.forEach((function(e,t){"hasValue"===e.state&&e.contents instanceof Dt?n.delete(t):n.set(t,e)})),n},batchStart:function(){var e=new Map;return Xt.push(e),function(){var t,n=Object(h.a)(e);try{for(n.s();!(t=n.n()).done;){var r=Object(u.a)(t.value,2);Kt(r[0],r[1])}}catch(o){n.e(o)}finally{n.f()}Xt.pop()!==e&&ge("Incorrect order of batch popping")}},writeLoadableToTreeState:Ht,invalidateDownstreams:$t,copyTreeState:qt,refreshRecoilValue:function(e,t){var n,r=e.getState().currentTree,o=Nt(t.key);null===(n=o.clearCache)||void 0===n||n.call(o,e,r)},invalidateDownstreams_FOR_TESTING:$t};var Gt=function(e,t,n){for(var r=e.entries(),o=r.next();!o.done;){var a=o.value;if(t.call(n,a[1],a[0],e))return!0;o=r.next()}return!1},Jt=_t,en=Ce.deleteNodeConfigIfPossible,tn=Ce.getNode,nn=Je,rn=new Set;function on(e,t){var n=e.getState(),r=n.currentTree;if(n.nextTree)ge("releaseNodesNowOnCurrentTree should only be called at the end of a batch");else{var o,a=new Set,i=Object(h.a)(t);try{for(i.s();!(o=i.n()).done;){var u=o.value;if(u instanceof nn){var c,l=Object(h.a)(un(n,u));try{for(l.s();!(c=l.n()).done;){var s=c.value;a.add(s)}}catch(v){l.e(v)}finally{l.f()}}else a.add(u)}}catch(v){i.e(v)}finally{i.f()}var f,d=function(e,t){var n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),a=new Set,i=new Set;return u(t),a;function u(t){var c,l=new Set,s=function(e,t,n,r,o){var a=e.getGraph(t.version),i=[],u=new Set;for(;n.size>0;)c(I(n.values().next().value));return i;function c(e){if(r.has(e)||o.has(e))n.delete(e);else if(!u.has(e)){var t=a.nodeToNodeSubscriptions.get(e);if(t){var l,s=Object(h.a)(t);try{for(s.s();!(l=s.n()).done;){c(l.value)}}catch(v){s.e(v)}finally{s.f()}}u.add(e),n.delete(e),i.push(e)}}}(e,r,t,a,i),f=Object(h.a)(s);try{for(f.s();!(c=f.n()).done;){var d,p=c.value;if("recoilRoot"!==tn(p).retainedBy)if((null!==(d=n.retention.referenceCounts.get(p))&&void 0!==d?d:0)>0)i.add(p);else if(cn(p).some((function(e){return n.retention.referenceCounts.get(e)})))i.add(p);else{var m=o.nodeToNodeSubscriptions.get(p);m&&Gt(m,(function(e){return i.has(e)}))?i.add(p):(a.add(p),l.add(p))}else i.add(p)}}catch(v){f.e(v)}finally{f.f()}var b,y=new Set,g=Object(h.a)(l);try{for(g.s();!(b=g.n()).done;){var w,O=b.value,_=Object(h.a)(null!==(j=o.nodeDeps.get(O))&&void 0!==j?j:rn);try{for(_.s();!(w=_.n()).done;){var j,E=w.value;a.has(E)||y.add(E)}}catch(v){_.e(v)}finally{_.f()}}}catch(v){g.e(v)}finally{g.f()}y.size&&u(y)}}(e,a),p=Object(h.a)(d);try{for(p.s();!(f=p.n()).done;){an(e,r,f.value)}}catch(v){p.e(v)}finally{p.f()}}}function an(e,t,n){if(me("recoil_memory_managament_2020")){Jt(e,n);var r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);var o,a=cn(n),i=Object(h.a)(a);try{for(i.s();!(o=i.n()).done;){var u,c=o.value;null===(u=r.retention.nodesRetainedByZone.get(c))||void 0===u||u.delete(n)}}catch(m){i.e(m)}finally{i.f()}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);var l=r.graphsByVersion.get(t.version);if(l){var s=l.nodeDeps.get(n);if(void 0!==s){l.nodeDeps.delete(n);var f,d=Object(h.a)(s);try{for(d.s();!(f=d.n()).done;){var p,v=f.value;null===(p=l.nodeToNodeSubscriptions.get(v))||void 0===p||p.delete(n)}}catch(m){d.e(m)}finally{d.f()}}l.nodeToNodeSubscriptions.delete(n)}en(n)}}function un(e,t){var n;return null!==(n=e.retention.nodesRetainedByZone.get(t))&&void 0!==n?n:rn}function cn(e){var t=tn(e).retainedBy;return void 0===t||"components"===t||"recoilRoot"===t?[]:t instanceof nn?[t]:t}function ln(e,t){me("recoil_memory_managament_2020")&&(e.getState().retention.referenceCounts.delete(t),function(e,t){var n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):on(e,new Set([t]))}(e,t))}var sn=12e4,fn=function(e,t,n){var r;if(me("recoil_memory_managament_2020")){var o=e.getState().retention.referenceCounts,a=(null!==(r=o.get(t))&&void 0!==r?r:0)+n;0===a?ln(e,t):o.set(t,a)}},dn=function(e){if(me("recoil_memory_managament_2020")){var t=e.getState();on(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}},pn=function(e){return void 0===e?"recoilRoot":e},vn=T.a.unstable_batchedUpdates,hn=Zt.batchStart,mn={unstable_batchedUpdates:{unstable_batchedUpdates:vn}.unstable_batchedUpdates}.unstable_batchedUpdates,bn=function(e){mn((function(){var t=function(){};try{t=hn(),e()}finally{t()}}))};function yn(e){var t,n,r,o,a,i;return v.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:t=Object(h.a)(e),u.prev=1,t.s();case 3:if((n=t.n()).done){u.next=24;break}r=n.value,o=Object(h.a)(r),u.prev=6,o.s();case 8:if((a=o.n()).done){u.next=14;break}return i=a.value,u.next=12,i;case 12:u.next=8;break;case 14:u.next=19;break;case 16:u.prev=16,u.t0=u.catch(6),o.e(u.t0);case 19:return u.prev=19,o.f(),u.finish(19);case 22:u.next=3;break;case 24:u.next=29;break;case 26:u.prev=26,u.t1=u.catch(1),t.e(u.t1);case 29:return u.prev=29,t.f(),u.finish(29);case 32:case"end":return u.stop()}}),N,null,[[1,26,29,32],[6,16,19,22]])}var gn=yn,wn={isSSR:"undefined"===typeof window,isReactNative:"undefined"!==typeof navigator&&"ReactNative"===navigator.product};var On=function(e,t){var n,r,o=this;return[function(){for(var a=arguments.length,i=new Array(a),u=0;u0}},{key:"checkRefCount_INTERNAL",value:function(){me("recoil_memory_managament_2020")&&this._refCount}},{key:"getStore_INTERNAL",value:function(){return this.checkRefCount_INTERNAL(),this._store}},{key:"getID",value:function(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}}]),e}();function Un(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.getState(),o=n?Mn():t.version;return{currentTree:n?{version:o,stateID:o,transactionMetadata:Object(b.a)({},t.transactionMetadata),dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()}:t,commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:(new Map).set(o,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(be(r.nodeCleanupFunctions.entries(),(function(e){return[Object(u.a)(e,1)[0],function(){}]})))}}var Bn=zn((function(e,t){var n=e.getState(),r="current"===t?n.currentTree:I(n.previousTree);return new Fn(Un(e,r))}),(function(e,t){var n;return String(t)+String(e.storeID)+String(e.getState().currentTree.version)+String(null===(n=e.getState().previousTree)||void 0===n?void 0:n.version)})),Vn=Object(u.a)(Bn,2),Wn=Vn[0],Hn=Vn[1];var Kn=function(e){g(n,e);var t=_(n);function n(e,r){var o;return j(this,n),z(y(o=t.call(this,Un(e.getStore_INTERNAL(),e.getStore_INTERNAL().getState().currentTree,!0))),"_batch",void 0),z(y(o),"set",(function(e,t){o.checkRefCount_INTERNAL();var n=o.getStore_INTERNAL();o._batch((function(){Nn(n,e.key,1),An(o.getStore_INTERNAL(),e,t)}))})),z(y(o),"reset",(function(e){o.checkRefCount_INTERNAL();var t=o.getStore_INTERNAL();o._batch((function(){Nn(t,e.key,1),An(o.getStore_INTERNAL(),e,xn)}))})),z(y(o),"setUnvalidatedAtomValues_DEPRECATED",(function(e){o.checkRefCount_INTERNAL();var t=o.getStore_INTERNAL();_n((function(){var n,r=Object(h.a)(e.entries());try{for(r.s();!(n=r.n()).done;){var o=Object(u.a)(n.value,2),a=o[0],i=o[1];Nn(t,a,1),Ln(t,new Rn(a),i)}}catch(c){r.e(c)}finally{r.f()}}))})),o._batch=r,o}return n}(Fn),Yn={Snapshot:Fn,MutableSnapshot:Kn,freshSnapshot:function(e){var t=new Fn(Dn());return null!=e?t.map(e):t},cloneSnapshot:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"current",n=Wn(e,t);return n.isRetained()?n:(Hn(),Wn(e,t))}},Xn=Yn.Snapshot,qn=Yn.MutableSnapshot,$n=Yn.freshSnapshot,Qn=Yn.cloneSnapshot,Zn=Object.freeze({__proto__:null,Snapshot:Xn,MutableSnapshot:qn,freshSnapshot:$n,cloneSnapshot:Qn});var Gn=function(){for(var e=new Set,t=arguments.length,n=new Array(t),r=0;r component.")}var jr=Object.freeze({storeID:sr(),getState:_r,replaceState:_r,getGraph:_r,subscribeToTransactions:_r,addTransactionMetadata:_r}),Er=!1;function Sr(e){if(Er)throw M("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");var t=e.getState();if(null===t.nextTree){me("recoil_memory_managament_2020")&&me("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&vr(e);var n=t.currentTree.version,r=tr();t.nextTree=Object(b.a)(Object(b.a)({},t.currentTree),{},{version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}}),t.graphsByVersion.set(r,lr(I(t.graphsByVersion.get(n))))}}var kr=x.a.createContext({current:jr}),xr=function(){return br(kr)},Cr=x.a.createContext(null);function Tr(e,t,n){var r,o=or(e,n,n.dirtyAtoms),a=Object(h.a)(o);try{for(a.s();!(r=a.n()).done;){var i=r.value,c=t.nodeToComponentSubscriptions.get(i);if(c){var l,s=Object(h.a)(c);try{for(s.s();!(l=s.n()).done;){var f=Object(u.a)(l.value,2),d=(f[0],Object(u.a)(f[1],2));d[0];(0,d[1])(n)}}catch(p){s.e(p)}finally{s.f()}}}}catch(p){a.e(p)}finally{a.f()}}function Rr(e){var t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){var o,a=Object(h.a)(t.nodeTransactionSubscriptions);try{for(a.s();!(o=a.n()).done;){var i=Object(u.a)(o.value,2),c=i[0],l=i[1];if(r.has(c)){var s,f=Object(h.a)(l);try{for(f.s();!(s=f.n()).done;){var d=Object(u.a)(s.value,2);d[0];(0,d[1])(e)}}catch(b){f.e(b)}finally{f.f()}}}}catch(b){a.e(b)}finally{a.f()}var p,v=Object(h.a)(t.transactionSubscriptions);try{for(v.s();!(p=v.n()).done;){var m=Object(u.a)(p.value,2);m[0];(0,m[1])(e)}}catch(b){v.e(b)}finally{v.f()}(!dr().early||t.suspendedComponentResolvers.size>0)&&(Tr(e,t,n),t.suspendedComponentResolvers.forEach((function(e){return e()})),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach((function(e){return e(n)})),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function Pr(e){var t=e.setNotifyBatcherOfChange,n=xr(),r=Or([]),o=Object(u.a)(r,2)[1];return t((function(){return o({})})),yr((function(){return t((function(){return o({})})),function(){t((function(){}))}}),[t]),yr((function(){Te.enqueueExecution("Batcher",(function(){!function(e){var t=e.getState();t.commitDepth++;try{var n=t.nextTree;if(null===n)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,Rr(e),null!=t.previousTree?t.graphsByVersion.delete(t.previousTree.version):ge("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,me("recoil_memory_managament_2020")&&vr(e)}finally{t.commitDepth--}}(n.current)}))})),null}var Ar=0;function Lr(e){var t,n=e.initializeState_DEPRECATED,r=e.initializeState,o=e.store_INTERNAL,a=e.children,i=function(e){var n=t.current.graphsByVersion;if(n.has(e))return I(n.get(e));var r=cr();return n.set(e,r),r},u=function(e,t){if(null==t){var n=d.current.getState().transactionSubscriptions,r=Ar++;return n.set(r,e),{release:function(){n.delete(r)}}}var o=d.current.getState().nodeTransactionSubscriptions;o.has(t)||o.set(t,new Map);var a=Ar++;return I(o.get(t)).set(a,e),{release:function(){var e=o.get(t);e&&(e.delete(a),0===e.size&&o.delete(t))}}},c=function(e){Sr(d.current);for(var t=0,n=Object.keys(e);t. must be an ancestor of any component that uses Recoil hooks."),e},Ir=function(){return xr().current.storeID};var zr=function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(var n=0,r=e.length;n"},Gr=Ce.DEFAULT_VALUE,Jr=Tt.reactMode,eo=Tt.useMutableSource,to=Tt.useSyncExternalStore,no=Dr,ro=Mr,oo=(de.isRecoilValue,Zt.getRecoilValueAsLoadable),ao=Zt.setRecoilValue,io=Zt.subscribeToRecoilValue,uo=x.a.useCallback,co=x.a.useEffect,lo=x.a.useMemo,so=x.a.useRef,fo=x.a.useState;function po(e,t,n){if("hasValue"===e.state)return e.contents;if("loading"===e.state)throw new Promise((function(e){n.current.getState().suspendedComponentResolvers.add(e)}));throw"hasError"===e.state?e.contents:M('Invalid value of loadable atom "'.concat(t.key,'"'))}function vo(e){var t=ro(),n=Zr(),r=uo((function(){var n;var r=t.current,o=r.getState(),a=Jr().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return{loadable:oo(r,e,a),key:e.key}}),[t,e]),o=uo((function(e){var t;return function(){var n,r,o=e();return null!==(n=t)&&void 0!==n&&n.loadable.is(o.loadable)&&(null===(r=t)||void 0===r?void 0:r.key)===o.key?t:(t=o,o)}}),[]),a=lo((function(){return o(r)}),[r,o]),i=uo((function(r){var o=t.current;return io(o,e,r,n).release}),[t,e,n]);return to(i,a,a).loadable}function ho(e){var t=ro(),n=uo((function(){var n,r=t.current,o=r.getState(),a=Jr().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return oo(r,e,a)}),[t,e]),r=uo((function(){return n()}),[n]),o=Zr(),a=uo((function(r,a){var i=t.current;return io(i,e,(function(){if(!me("recoil_suppress_rerender_in_callback"))return a();var e=n();c.current.is(e)||a(),c.current=e}),o).release}),[t,e,o,n]),i=no();if(null==i)throw M("Recoil hooks must be used in components contained within a component.");var u=eo(i,r,a),c=so(u);return co((function(){c.current=u})),u}function mo(e){var t=ro(),n=Zr(),r=uo((function(){var n;var r=t.current,o=r.getState(),a=Jr().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return oo(r,e,a)}),[t,e]),o=uo((function(){return{loadable:r(),key:e.key}}),[r,e.key]),a=uo((function(e){var t=o();return e.loadable.is(t.loadable)&&e.key===t.key?e:t}),[o]);co((function(){var r=io(t.current,e,(function(e){s(a)}),n);return s(a),r.release}),[n,e,t,a]);var i=fo(o),c=Object(u.a)(i,2),l=c[0],s=c[1];return l.key!==e.key?o().loadable:l.loadable}function bo(e){var t=ro(),n=fo([]),r=Object(u.a)(n,2)[1],o=Zr(),a=uo((function(){var n;var r=t.current,o=r.getState(),a=Jr().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return oo(r,e,a)}),[t,e]),i=a(),c=so(i);return co((function(){c.current=i})),co((function(){var n=t.current,i=n.getState(),u=io(n,e,(function(e){var t;if(!me("recoil_suppress_rerender_in_callback"))return r([]);var n=a();null!==(t=c.current)&&void 0!==t&&t.is(n)||r(n),c.current=n}),o);if(i.nextTree)n.getState().queuedComponentCallbacks_DEPRECATED.push((function(){c.current=null,r([])}));else{var l;if(!me("recoil_suppress_rerender_in_callback"))return r([]);var s=a();null!==(l=c.current)&&void 0!==l&&l.is(s)||r(s),c.current=s}return u.release}),[o,a,e,t]),i}function yo(e){return me("recoil_memory_managament_2020")&&$r(e),{TRANSITION_SUPPORT:mo,SYNC_EXTERNAL_STORE:vo,MUTABLE_SOURCE:ho,LEGACY:bo}[Jr().mode](e)}function go(e){var t=ro();return po(yo(e),e,t)}function wo(e){var t=ro();return uo((function(n){ao(t.current,e,n)}),[t,e])}function Oo(e){return me("recoil_memory_managament_2020")&&$r(e),mo(e)}function _o(e){var t=ro();return po(Oo(e),e,t)}var jo=function(e){return[go(e),wo(e)]},Eo=function(e){return[yo(e),wo(e)]},So=go,ko=yo,xo=function(e){var t=ro();return uo((function(){ao(t.current,e,Gr)}),[t,e])},Co=wo,To=Oo,Ro=_o,Po=function(e){return[_o(e),wo(e)]};var Ao=bn,Lo=Ce.DEFAULT_VALUE,No=Ce.getNode,Mo=Mr,Do=Zt.AbstractRecoilValue,Io=Zt.setRecoilValueLoadable,zo=sn,Fo=Zn.cloneSnapshot,Uo=x.a.useCallback,Bo=x.a.useEffect,Vo=x.a.useRef,Wo=x.a.useState,Ho=wn.isSSR;function Ko(e){var t=Mo();Bo((function(){return t.current.subscribeToTransactions(e).release}),[e,t])}function Yo(e,t){var n,r=e.getState(),o=null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree,a=t.getStore_INTERNAL().getState().currentTree;Ao((function(){for(var n=new Set,r=0,i=[o.atomValues.keys(),a.atomValues.keys()];rthis.maxSize()&&this.deleteLru()}},{key:"deleteLru",value:function(){var e=this.tail();e&&this.delete(e.key)}},{key:"delete",value:function(e){var t=this._keyMapper(e);if(this._size&&this._map.has(t)){var n=I(this._map.get(t)),r=n.right,o=n.left;r&&(r.left=n.left),o&&(o.right=n.right),n===this.head()&&(this._head=r),n===this.tail()&&(this._tail=o),this._map.delete(t),this._size--}}},{key:"clear",value:function(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}]),e}()}.LRUCache,$a=Object.freeze({__proto__:null,LRUCache:qa}),Qa=$a.LRUCache,Za=Xa.TreeCache;var Ga=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=new Qa({maxSize:e}),r=new Za({mapNodeValue:t,onHit:function(e){n.set(e,!0)},onSet:function(t){var o=n.tail();n.set(t,!0),o&&r.size()>e&&r.delete(o.key)}});return r};function Ja(e,t,n){if("string"===typeof e&&!e.includes('"')&&!e.includes("\\"))return'"'.concat(e,'"');switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if(!0!==(null===t||void 0===t?void 0:t.allowFunctions))throw M("Attempt to serialize function in a Recoil cache key");return"__FUNCTION(".concat(e.name,")__")}if(null===e)return"null";var r;if("object"!==typeof e)return null!==(r=JSON.stringify(e))&&void 0!==r?r:"";if(D(e))return"__PROMISE__";if(Array.isArray(e))return"[".concat(e.map((function(e,n){return Ja(e,t,n.toString())})),"]");if("function"===typeof e.toJSON)return Ja(e.toJSON(n),t,n);if(e instanceof Map){var o,a={},i=Object(h.a)(e);try{for(i.s();!(o=i.n()).done;){var c=Object(u.a)(o.value,2),l=c[0],s=c[1];a["string"===typeof l?l:Ja(l,t)]=s}}catch(f){i.e(f)}finally{i.f()}return Ja(a,t,n)}return e instanceof Set?Ja(Array.from(e).sort((function(e,n){return Ja(e,t).localeCompare(Ja(n,t))})),t,n):void 0!==Symbol&&null!=e[Symbol.iterator]&&"function"===typeof e[Symbol.iterator]?Ja(Array.from(e),t,n):"{".concat(Object.keys(e).filter((function(t){return void 0!==e[t]})).sort().map((function(n){return"".concat(Ja(n,t),":").concat(Ja(e[n],t,n))})).join(","),"}")}var ei=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{allowFunctions:!1};return Ja(e,t)},ti=Xa.TreeCache,ni={equality:"reference",eviction:"keep-all",maxSize:1/0};function ri(e){switch(e){case"reference":return function(e){return e};case"value":return function(e){return ei(e)}}throw M("Unrecognized equality policy ".concat(e))}function oi(e,t,n){switch(e){case"keep-all":return new ti({mapNodeValue:n});case"lru":return Ga(I(t),n);case"most-recent":return Ga(1,n)}throw M("Unrecognized eviction policy ".concat(e))}var ai=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ni,t=e.equality,n=void 0===t?ni.equality:t,r=e.eviction,o=void 0===r?ni.eviction:r,a=e.maxSize,i=void 0===a?ni.maxSize:a,u=ri(n),c=oi(o,i,u);return c};var ii=function(e){return function(){return null}},ui=re.loadableWithError,ci=re.loadableWithPromise,li=re.loadableWithValue,si=yt,fi=gt,di=wt,pi=Ue,vi=Ce.DEFAULT_VALUE,hi=Ce.RecoilValueNotReady,mi=Ce.getConfigDeletionHandler,bi=Ce.getNode,yi=Ce.registerNode,gi=de.isRecoilValue,wi=Zt.markRecoilValueModified,Oi=pn,_i=Ra,ji=ii,Ei=function e(){j(this,e)},Si=new Ei,ki=[],xi=new Map,Ci=function(){var e=0;return function(){return e++}}();var Ti=function(e){var t=null,n=e.key,r=e.get,o=e.cachePolicy_UNSTABLE,a=null!=e.set?e.set:void 0,i=new Set,c=ai(null!==o&&void 0!==o?o:{equality:"reference",eviction:"keep-all"}),l=Oi(e.retainedBy_UNSTABLE),s=new Map,f=0;function d(){return!me("recoil_memory_managament_2020")||f>0}function p(e){return e.getState().knownSelectors.add(n),f++,function(){f--}}function v(){return void 0!==mi(n)&&!d()}function m(e,t,n,r,o){P(t,r,o),O(e,t,new Set(o.keys()),n),b(e,n)}function b(e,n){R(e,n)&&T(e);var r=xi.get(n);if(void 0!==r){var o,a=Object(h.a)(r);try{for(a.s();!(o=a.n()).done;){var i=o.value;wi(i,I(t))}}catch(u){a.e(u)}finally{a.f()}xi.delete(n)}}function y(e,t){var n=xi.get(t);null==n&&xi.set(t,n=new Set),n.add(e)}function g(e,t,n){var r=e.getState().knownSelectors.has(n);if(r&&t.atomValues.has(n))return I(t.atomValues.get(n));var o=si(e,t,n);return"loading"!==o.state&&r&&t.atomValues.set(n,o),o}function w(e,t,n,r,o,a){return t.then((function(r){if(!d())throw T(e),Si;null!=a.loadingDepKey&&a.loadingDepPromise===t?n.atomValues.set(a.loadingDepKey,li(r)):e.getState().knownSelectors.forEach((function(e){n.atomValues.delete(e)}));var i=j(e,n);if(i&&"loading"!==i.state){if((R(e,o)||null==x(e))&&b(e,o),"hasValue"===i.state)return i.contents;throw i.contents}if(!R(e,o)){var c=S(n);if("loading"===(null===c||void 0===c?void 0:c.latestLoadable.state))return c.latestLoadable.contents}var l=_(e,n,o),s=Object(u.a)(l,2),f=s[0],p=s[1];if(C(e,o,p),"loading"!==f.state&&m(e,n,o,f,p),"hasError"===f.state)throw f.contents;return f.contents})).catch((function(t){if(t instanceof Ei)throw Si;if(!d())throw T(e),Si;var a=ui(t);throw m(e,n,o,a,r),t}))}function O(e,t,r,o){var a,u,c,l,s,f,d;(R(e,o)||t.version===(null===(a=e.getState())||void 0===a||null===(u=a.currentTree)||void 0===u?void 0:u.version)||t.version===(null===(c=e.getState())||void 0===c||null===(l=c.nextTree)||void 0===l?void 0:l.version))&&(pi(new Map([[n,r]]),e,null!==(s=null===(f=e.getState())||void 0===f||null===(d=f.nextTree)||void 0===d?void 0:d.version)&&void 0!==s?s:e.getState().currentTree.version),r.forEach((function(e){return i.add(e)})))}function _(e,o,a){var i,u=ji(n),c=!0,l=function(){u(),c=!1},s=!1,f={loadingDepKey:null,loadingDepPromise:null},p=new Map,v=new Set;function h(t){var n=t.key;!function(e,t,n,r,o){n.add(r),O(e,t,n,o)}(e,o,v,n,a);var r=g(e,o,n);switch(p.set(n,r),r.state){case"hasValue":return r.contents;case"hasError":throw r.contents;case"loading":throw f.loadingDepKey=n,f.loadingDepPromise=r.contents,r.contents}throw M("Invalid Loadable state")}O(e,o,v,a);try{i=r({get:h,getCallback:function(n){return function(){if(c)throw M("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");null==t&&ba(!1);for(var r=arguments.length,o=new Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:Gi,t=e.equality,n=void 0===t?Gi.equality:t,r=e.eviction,o=void 0===r?Gi.eviction:r,a=e.maxSize,i=void 0===a?Gi.maxSize:a,u=Ji(n),c=eu(o,i,u);return c},nu=Ce.setConfigDeletionHandler;var ru=function(e){var t,n,r=tu({equality:null!==(t=null===(n=e.cachePolicyForParams_UNSTABLE)||void 0===n?void 0:n.equality)&&void 0!==t?t:"value",eviction:"keep-all"});return function(t){var n,o,i=r.get(t);if(null!=i)return i;e.cachePolicyForParams_UNSTABLE;var u=Object(a.a)(e,A),c=Xi(Object(b.a)(Object(b.a)({},u),{},{key:"".concat(e.key,"__").concat(null!==(n=ei(t))&&void 0!==n?n:"void"),default:"function"===typeof e.default?e.default(t):e.default,retainedBy_UNSTABLE:"function"===typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE,effects:"function"===typeof e.effects?e.effects(t):"function"===typeof e.effects_UNSTABLE?e.effects_UNSTABLE(t):null!==(o=e.effects)&&void 0!==o?o:e.effects_UNSTABLE}));return r.set(t,c),nu(c.key,(function(){r.delete(t)})),c}},ou=Ce.setConfigDeletionHandler,au=0;var iu=function(e){var t,n,r=tu({equality:null!==(t=null===(n=e.cachePolicyForParams_UNSTABLE)||void 0===n?void 0:n.equality)&&void 0!==t?t:"value",eviction:"keep-all"});return function(t){var n,o=r.get(t);if(null!=o)return o;var a,i="".concat(e.key,"__selectorFamily/").concat(null!==(n=ei(t,{allowFunctions:!0}))&&void 0!==n?n:"void","/").concat(au++),u=function(n){return e.get(t)(n)},c=e.cachePolicy_UNSTABLE,l="function"===typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE;if(null!=e.set){var s=e.set;a=Ti({key:i,get:u,set:function(e,n){return s(t)(e,n)},cachePolicy_UNSTABLE:c,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:l})}else a=Ti({key:i,get:u,cachePolicy_UNSTABLE:c,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:l});return r.set(t,a),ou(a.key,(function(){r.delete(t)})),a}},uu=iu({key:"__constant",get:function(e){return function(){return e}},cachePolicyForParams_UNSTABLE:{equality:"reference"}});var cu=function(e){return uu(e)},lu=iu({key:"__error",get:function(e){return function(){throw M(e)}},cachePolicyForParams_UNSTABLE:{equality:"reference"}});var su=function(e){return lu(e)};var fu=function(e){return e},du=re.loadableWithError,pu=re.loadableWithPromise,vu=re.loadableWithValue;function hu(e,t){var n,r=Array(t.length).fill(void 0),o=Array(t.length).fill(void 0),a=Object(h.a)(t.entries());try{for(a.s();!(n=a.n()).done;){var i=Object(u.a)(n.value,2),c=i[0],l=i[1];try{r[c]=e(l)}catch(s){o[c]=s}}}catch(f){a.e(f)}finally{a.f()}return[r,o]}function mu(e){return null!=e&&!D(e)}function bu(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map((function(t){return e[t]}))}function yu(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((function(e,n,r){return Object(b.a)(Object(b.a)({},e),{},Object(m.a)({},n,t[r]))}),{})}function gu(e,t,n){return yu(e,n.map((function(e,n){return null==e?vu(t[n]):D(e)?pu(e):du(e)})))}var wu=iu({key:"__waitForNone",get:function(e){return function(t){var n=hu(t.get,bu(e)),r=Object(u.a)(n,2),o=r[0],a=r[1];return gu(e,o,a)}},dangerouslyAllowMutability:!0}),Ou=iu({key:"__waitForAny",get:function(e){return function(t){var n=hu(t.get,bu(e)),r=Object(u.a)(n,2),o=r[0],a=r[1];return a.some((function(e){return!D(e)}))?gu(e,o,a):new Promise((function(t){var n,r=Object(h.a)(a.entries());try{var i=function(){var r=Object(u.a)(n.value,2),i=r[0],c=r[1];D(c)&&c.then((function(n){o[i]=n,a[i]=void 0,t(gu(e,o,a))})).catch((function(n){a[i]=n,t(gu(e,o,a))}))};for(r.s();!(n=r.n()).done;)i()}catch(c){r.e(c)}finally{r.f()}}))}},dangerouslyAllowMutability:!0}),_u={waitForNone:wu,waitForAny:Ou,waitForAll:iu({key:"__waitForAll",get:function(e){return function(t){var n=hu(t.get,bu(e)),r=Object(u.a)(n,2),o=r[0],a=r[1];if(a.every((function(e){return null==e})))return yu(e,o);var i=a.find(mu);if(null!=i)throw i;return Promise.all(a).then((function(t){return yu(e,(n=o,t.map((function(e,t){return void 0===e?n[t]:e}))));var n}))}},dangerouslyAllowMutability:!0}),waitForAllSettled:iu({key:"__waitForAllSettled",get:function(e){return function(t){var n=hu(t.get,bu(e)),r=Object(u.a)(n,2),o=r[0],a=r[1];return a.every((function(e){return!D(e)}))?gu(e,o,a):Promise.all(a.map((function(e,t){return D(e)?e.then((function(e){o[t]=e,a[t]=void 0})).catch((function(e){o[t]=void 0,a[t]=e})):null}))).then((function(){return gu(e,o,a)}))}},dangerouslyAllowMutability:!0}),noWait:iu({key:"__noWait",get:function(e){return function(t){var n=t.get;try{return vu(n(e))}catch(r){return D(r)?pu(r):du(r)}}},dangerouslyAllowMutability:!0})},ju=re.RecoilLoadable,Eu=Ce.DefaultValue,Su=Nr,ku=Ir,xu=de.isRecoilValue,Cu=et,Tu=Zn.freshSnapshot,Ru={DefaultValue:Eu,isRecoilValue:xu,RecoilLoadable:ju,RecoilRoot:Su,useRecoilStoreID:ku,useRecoilBridgeAcrossReactRoots_UNSTABLE:oa,atom:Xi,selector:Ti,atomFamily:ru,selectorFamily:iu,constSelector:cu,errorSelector:su,readOnlySelector:fu,noWait:_u.noWait,waitForNone:_u.waitForNone,waitForAny:_u.waitForAny,waitForAll:_u.waitForAll,waitForAllSettled:_u.waitForAllSettled,useRecoilValue:So,useRecoilValueLoadable:ko,useRecoilState:jo,useRecoilStateLoadable:Eo,useSetRecoilState:Co,useResetRecoilState:xo,useGetRecoilValueInfo_UNSTABLE:Jo,useRecoilRefresher_UNSTABLE:Ma,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:To,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Ro,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Po,useRecoilCallback:Pa,useRecoilTransaction_UNSTABLE:Fa,useGotoRecoilSnapshot:$o,useRecoilSnapshot:Xo,useRecoilTransactionObserver_UNSTABLE:Qo,snapshot_UNSTABLE:Tu,useRetain:$r,retentionZone:Cu},Pu=Ru.RecoilRoot,Au=Ru.atom,Lu=Ru.selector,Nu=Ru.useRecoilValue,Mu=Ru.useRecoilState},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(31);var o=n(39),a=n(25);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(a.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){e.exports=n(66)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(25);function o(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Object(r.a)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var o=0,a=function(){};return{s:a,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw i}}}}},function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.checkForDefaultPrevented,o=void 0===r||r;return function(n){if(null==e||e(n),!1===o||!n.defaultPrevented)return null==t?void 0:t(n)}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(62)},function(e,t,n){"use strict";function r(e,t,n,r,o,a,i){try{var u=e[a](i),c=u.value}catch(l){return void n(l)}u.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function u(e){r(i,o,a,u,c,"next",e)}function c(e){r(i,o,a,u,c,"throw",e)}u(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(7),o=n(4),a=n(2),i=n(15),u=n(0),c=n(5),l=["children"],s=["children"],f=u.forwardRef((function(e,t){var n=e.children,r=Object(o.a)(e,l);return u.Children.toArray(n).some(v)?u.createElement(u.Fragment,null,u.Children.map(n,(function(e){return v(e)?u.createElement(d,Object(c.a)({},r,{ref:t}),e.props.children):e}))):u.createElement(d,Object(c.a)({},r,{ref:t}),n)}));f.displayName="Slot";var d=u.forwardRef((function(e,t){var n=e.children,r=Object(o.a)(e,s);return u.isValidElement(n)?u.cloneElement(n,Object(a.a)(Object(a.a)({},function(e,t){var n=Object(a.a)({},t),r=function(r){var o=e[r],i=t[r];/^on[A-Z]/.test(r)?n[r]=function(){null==i||i.apply(void 0,arguments),null==o||o.apply(void 0,arguments)}:"style"===r?n[r]=Object(a.a)(Object(a.a)({},o),i):"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))};for(var o in t)r(o);return Object(a.a)(Object(a.a)({},e),n)}(r,n.props)),{},{ref:Object(i.a)(t,n.ref)})):u.Children.count(n)>1?u.Children.only(null):null}));d.displayName="SlotClone";var p=function(e){var t=e.children;return u.createElement(u.Fragment,null,t)};function v(e){return u.isValidElement(e)&&e.type===p}var h=["asChild"],m=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((function(e,t){return Object(a.a)(Object(a.a)({},e),{},Object(r.a)({},t,u.forwardRef((function(e,n){var r=e.asChild,a=Object(o.a)(e,h),i=r?f:t;return u.useEffect((function(){window[Symbol.for("radix-ui")]=!0}),[]),u.createElement(i,Object(c.a)({},a,{ref:n}))}))))}),{})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=n(0);function o(){for(var e=arguments.length,t=new Array(e),n=0;n1?i.Children.only(null):Object(i.isValidElement)(l)?l.props.children:null:e}));return Object(i.createElement)(b,Object(a.a)({},r,{ref:t}),Object(i.isValidElement)(l)?Object(i.cloneElement)(l,void 0,s):null)}return Object(i.createElement)(b,Object(a.a)({},r,{ref:t}),n)}));m.displayName="Slot";var b=Object(i.forwardRef)((function(e,t){var n=e.children,a=Object(o.a)(e,p);return Object(i.isValidElement)(n)?Object(i.cloneElement)(n,Object(r.a)(Object(r.a)({},function(e,t){var n=Object(r.a)({},t),o=function(o){var a=e[o],i=t[o];/^on[A-Z]/.test(o)?n[o]=function(){null===i||void 0===i||i.apply(void 0,arguments),null===a||void 0===a||a.apply(void 0,arguments)}:"style"===o?n[o]=Object(r.a)(Object(r.a)({},a),i):"className"===o&&(n[o]=[a,i].filter(Boolean).join(" "))};for(var a in t)o(a);return Object(r.a)(Object(r.a)({},e),n)}(a,n.props)),{},{ref:s(t,n.ref)})):i.Children.count(n)>1?i.Children.only(null):null}));b.displayName="SlotClone";var y=function(e){var t=e.children;return Object(i.createElement)(i.Fragment,null,t)};function g(e){return Object(i.isValidElement)(e)&&e.type===y}var w=m},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}));var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&void 0!==arguments[1]?arguments[1]:[],n=[],c=function(){var t=n.map((function(e){return u.createContext(e)}));return function(n){var r=(null==n?void 0:n[e])||t;return u.useMemo((function(){return Object(o.a)({},"__scope".concat(e),Object(a.a)(Object(a.a)({},n),{},Object(o.a)({},e,r)))}),[n,r])}};return c.scopeName=e,[function(t,o){var a=u.createContext(o),c=n.length;function s(t){var n=t.scope,r=t.children,o=Object(i.a)(t,l),s=(null==n?void 0:n[e][c])||a,f=u.useMemo((function(){return o}),Object.values(o));return u.createElement(s.Provider,{value:f},r)}return n=[].concat(Object(r.a)(n),[o]),s.displayName=t+"Provider",[s,function(n,r){var i=(null==r?void 0:r[e][c])||a,l=u.useContext(i);if(l)return l;if(void 0!==o)return o;throw new Error("`".concat(n,"` must be used within `").concat(t,"`"))}]},d.apply(void 0,[c].concat(Object(r.a)(t)))]}function d(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:[],n=[];function o(t,r){var o=Object(l.createContext)(r),a=n.length;function u(t){var n=t.scope,r=t.children,u=Object(i.a)(t,y),c=(null===n||void 0===n?void 0:n[e][a])||o,s=Object(l.useMemo)((function(){return u}),Object.values(u));return Object(l.createElement)(c.Provider,{value:s},r)}return n=[].concat(Object(m.a)(n),[r]),u.displayName=t+"Provider",[u,function(n,i){var u=(null===i||void 0===i?void 0:i[e][a])||o,c=Object(l.useContext)(u);if(c)return c;if(void 0!==r)return r;throw new Error("`".concat(n,"` must be used within `").concat(t,"`"))}]}var a=function(){var t=n.map((function(e){return Object(l.createContext)(e)}));return function(n){var o=(null===n||void 0===n?void 0:n[e])||t;return Object(l.useMemo)((function(){return Object(h.a)({},"__scope".concat(e),Object(r.a)(Object(r.a)({},n),{},Object(h.a)({},e,o)))}),[n,o])}};return a.scopeName=e,[o,j.apply(void 0,[a].concat(Object(m.a)(t)))]}function j(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:[],n=[];function o(t,r){var o=Object(l.createContext)(r),a=n.length;function u(t){var n=t.scope,r=t.children,u=Object(i.a)(t,V),c=(null===n||void 0===n?void 0:n[e][a])||o,s=Object(l.useMemo)((function(){return u}),Object.values(u));return Object(l.createElement)(c.Provider,{value:s},r)}return n=[].concat(Object(m.a)(n),[r]),u.displayName=t+"Provider",[u,function(n,i){var u=(null===i||void 0===i?void 0:i[e][a])||o,c=Object(l.useContext)(u);if(c)return c;if(void 0!==r)return r;throw new Error("`".concat(n,"` must be used within `").concat(t,"`"))}]}var a=function(){var t=n.map((function(e){return Object(l.createContext)(e)}));return function(n){var o=(null===n||void 0===n?void 0:n[e])||t;return Object(l.useMemo)((function(){return Object(h.a)({},"__scope".concat(e),Object(r.a)(Object(r.a)({},n),{},Object(h.a)({},e,o)))}),[n,o])}};return a.scopeName=e,[o,X.apply(void 0,[a].concat(Object(m.a)(t)))]}function X(){for(var e=arguments.length,t=new Array(e),n=0;n1&&t.preventDefault()},onClick:function(t){var n;if(null===(n=e.onClick)||void 0===n||n.call(e,t),a.current&&!t.defaultPrevented){var r=a.current.contains(t.target),o=!0===t.isTrusted;!r&&o&&(a.current.click(),a.current.focus())}}})))})),de=function(e){var t=se("LabelConsumer"),n=t.controlRef;return Object(l.useEffect)((function(){e&&(n.current=e)}),[e,n]),t.id},pe=fe;!function(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}({},"useLayoutEffect",(function(){return ve}));var ve=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?l.useLayoutEffect:function(){},he=["containerRef","style"],me=["container"];function be(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var ye={};be(ye,"Portal",(function(){return ge})),be(ye,"UnstablePortal",(function(){return we})),be(ye,"Root",(function(){return Oe}));var ge=Object(l.forwardRef)((function(e,t){var n,o,a=e.containerRef,s=e.style,f=Object(i.a)(e,he),p=null!==(n=null===a||void 0===a?void 0:a.current)&&void 0!==n?n:null===globalThis||void 0===globalThis||null===(o=globalThis.document)||void 0===o?void 0:o.body,v=Object(l.useState)({}),h=Object(u.a)(v,2)[1];return ve((function(){h({})}),[]),p?d.a.createPortal(Object(l.createElement)(ee.div,Object(c.a)({"data-radix-portal":""},f,{ref:t,style:p===document.body?Object(r.a)({position:"absolute",top:0,left:0,zIndex:2147483647},s):void 0})),p):null})),we=Object(l.forwardRef)((function(e,t){var n,r=e.container,o=void 0===r?null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body:r,a=Object(i.a)(e,me);return o?d.a.createPortal(Object(l.createElement)(ee.div,Object(c.a)({},a,{ref:t})),o):null})),Oe=ge;function _e(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var je={};_e(je,"DirectionProvider",(function(){return Se})),_e(je,"useDirection",(function(){return ke})),_e(je,"Provider",(function(){return xe}));var Ee=Object(l.createContext)(void 0),Se=function(e){var t=e.dir,n=e.children;return Object(l.createElement)(Ee.Provider,{value:t},n)};function ke(e){var t=Object(l.useContext)(Ee);return e||t||"ltr"}var xe=Se,Ce=n(17);function Te(e){var t=e.prop,n=e.defaultProp,r=e.onChange,o=void 0===r?function(){}:r,a=function(e){var t=e.defaultProp,n=e.onChange,r=Object(l.useState)(t),o=Object(u.a)(r,1)[0],a=Object(l.useRef)(o),i=Object(Ce.a)(n);return Object(l.useEffect)((function(){a.current!==o&&(i(o),a.current=o)}),[o,a,i]),r}({defaultProp:n,onChange:o}),i=Object(u.a)(a,2),c=i[0],s=i[1],f=void 0!==t,d=f?t:c,p=Object(Ce.a)(o);return[d,Object(l.useCallback)((function(e){if(f){var n="function"===typeof e?e(t):e;n!==t&&p(n)}else s(e)}),[f,t,s,p])]}!function(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}({},"useControllableState",(function(){return Te}));function Re(e){var t=Object(l.useRef)({value:e,previous:e});return Object(l.useMemo)((function(){return t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous}),[e])}function Pe(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}!function(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}({},"usePrevious",(function(){return Re}));var Ae={};Pe(Ae,"VisuallyHidden",(function(){return Le})),Pe(Ae,"Root",(function(){return Ne}));var Le=Object(l.forwardRef)((function(e,t){return Object(l.createElement)(ee.span,Object(c.a)({},e,{ref:t,style:Object(r.a)({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"},e.style)}))})),Ne=Le,Me=n(26),De=n(80),Ie=["__scopeSelect","disabled","aria-labelledby"],ze=["__scopeSelect","className","style","children","placeholder"],Fe=["__scopeSelect","children"],Ue=["__scopeSelect","onCloseAutoFocus"],Be=["__scopeSelect"],Ve=["__scopeSelect"],We=["__scopeSelect"],He=["__scopeSelect","value","disabled","textValue"],Ke=["__scopeSelect","className","style"],Ye=["__scopeSelect"],Xe=["__scopeSelect","onAutoScroll"],qe=["__scopeSelect"],$e=["value"];function Qe(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Ze={};Qe(Ze,"createSelectScope",(function(){return ct})),Qe(Ze,"Select",(function(){return pt})),Qe(Ze,"SelectTrigger",(function(){return ht})),Qe(Ze,"SelectValue",(function(){return bt})),Qe(Ze,"SelectIcon",(function(){return yt})),Qe(Ze,"SelectContent",(function(){return wt})),Qe(Ze,"SelectViewport",(function(){return Ct})),Qe(Ze,"SelectGroup",(function(){return Nt})),Qe(Ze,"SelectLabel",(function(){return Dt})),Qe(Ze,"SelectItem",(function(){return Vt})),Qe(Ze,"SelectItemText",(function(){return Ht})),Qe(Ze,"SelectItemIndicator",(function(){return Yt})),Qe(Ze,"SelectScrollUpButton",(function(){return qt})),Qe(Ze,"SelectScrollDownButton",(function(){return Qt})),Qe(Ze,"SelectSeparator",(function(){return Gt})),Qe(Ze,"Root",(function(){return nn})),Qe(Ze,"Trigger",(function(){return rn})),Qe(Ze,"Value",(function(){return on})),Qe(Ze,"Icon",(function(){return an})),Qe(Ze,"Content",(function(){return un})),Qe(Ze,"Viewport",(function(){return cn})),Qe(Ze,"Group",(function(){return ln})),Qe(Ze,"Label",(function(){return sn})),Qe(Ze,"Item",(function(){return fn})),Qe(Ze,"ItemText",(function(){return dn})),Qe(Ze,"ItemIndicator",(function(){return pn})),Qe(Ze,"ScrollUpButton",(function(){return vn})),Qe(Ze,"ScrollDownButton",(function(){return hn})),Qe(Ze,"Separator",(function(){return mn}));var Ge=[" ","Enter","ArrowUp","ArrowDown"],Je=[" ","Enter"],et="Select",tt=M(et),nt=Object(u.a)(tt,3),rt=nt[0],ot=nt[1],at=Y(et,[nt[2]]),it=Object(u.a)(at,2),ut=it[0],ct=it[1],lt=ut(et),st=Object(u.a)(lt,2),ft=st[0],dt=st[1],pt=function(e){var t=e.__scopeSelect,n=e.children,r=e.open,o=e.defaultOpen,a=e.onOpenChange,i=e.value,c=e.defaultValue,s=e.onValueChange,f=e.dir,d=e.name,p=e.autoComplete,v=Object(l.useState)(null),h=Object(u.a)(v,2),m=h[0],b=h[1],y=Object(l.useState)(null),g=Object(u.a)(y,2),w=g[0],O=g[1],_=Object(l.useState)(!1),j=Object(u.a)(_,2),E=j[0],S=j[1],k=ke(f),x=Te({prop:r,defaultProp:o,onChange:a}),C=Object(u.a)(x,2),T=C[0],R=void 0!==T&&T,P=C[1],A=Te({prop:i,defaultProp:c,onChange:s}),L=Object(u.a)(A,2),N=L[0],M=L[1],D=!m||Boolean(m.closest("form")),I=Object(l.useState)(null),z=Object(u.a)(I,2),F=z[0],U=z[1],B=Object(l.useRef)(null);return Object(l.createElement)(ft,{scope:t,trigger:m,onTriggerChange:b,valueNode:w,onValueNodeChange:O,valueNodeHasChildren:E,onValueNodeHasChildrenChange:S,contentId:Object(Q.a)(),value:N,onValueChange:M,open:R,onOpenChange:P,dir:k,bubbleSelect:F,triggerPointerDownPosRef:B},Object(l.createElement)(rt.Provider,{scope:t},n),D?Object(l.createElement)(Jt,{ref:U,"aria-hidden":!0,tabIndex:-1,name:d,autoComplete:p,value:N,onChange:function(e){return M(e.target.value)}}):null)},vt="SelectTrigger",ht=Object(l.forwardRef)((function(e,t){var n=e.__scopeSelect,r=e.disabled,o=void 0!==r&&r,a=e["aria-labelledby"],s=Object(i.a)(e,Ie),f=dt(vt,n),d=U(t,f.onTriggerChange),p=ot(n),h=de(f.trigger),m=a||h,b=en((function(e){var t=p().filter((function(e){return!e.disabled})),n=t.find((function(e){return e.value===f.value})),r=tn(t,e,n);void 0!==r&&f.onValueChange(r.value)})),y=Object(u.a)(b,3),g=y[0],w=y[1],O=y[2],_=function(){o||(f.onOpenChange(!0),O())};return Object(l.createElement)(ee.button,Object(c.a)({type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-autocomplete":"none","aria-labelledby":m,dir:f.dir,"data-state":f.open?"open":"closed",disabled:o,"data-disabled":o?"":void 0,"data-placeholder":void 0===f.value?"":void 0},s,{ref:d,onPointerDown:Object(v.a)(s.onPointerDown,(function(e){e.target.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(_(),f.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:Object(v.a)(s.onKeyDown,(function(e){var t=""!==g.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||w(e.key),t&&" "===e.key||Ge.includes(e.key)&&(_(),e.preventDefault())}))}))})),mt="SelectValue",bt=Object(l.forwardRef)((function(e,t){var n=e.__scopeSelect,r=(e.className,e.style,e.children),o=e.placeholder,a=Object(i.a)(e,ze),u=dt(mt,n),s=u.onValueNodeHasChildrenChange,f=void 0!==r,d=U(t,u.onValueNodeChange);return ve((function(){s(f)}),[s,f]),Object(l.createElement)(ee.span,Object(c.a)({},a,{ref:d,style:{pointerEvents:"none"}}),void 0===u.value&&void 0!==o?o:r)})),yt=Object(l.forwardRef)((function(e,t){e.__scopeSelect;var n=e.children,r=Object(i.a)(e,Fe);return Object(l.createElement)(ee.span,Object(c.a)({"aria-hidden":!0},r,{ref:t}),n||"\u25bc")})),gt="SelectContent",wt=Object(l.forwardRef)((function(e,t){var n=dt(gt,e.__scopeSelect),r=Object(l.useState)(),o=Object(u.a)(r,2),a=o[0],i=o[1];return ve((function(){i(new DocumentFragment)}),[]),n.open?Object(l.createElement)(kt,Object(c.a)({},e,{ref:t})):a?Object(f.createPortal)(Object(l.createElement)(Et,{scope:e.__scopeSelect},Object(l.createElement)(rt.Slot,{scope:e.__scopeSelect},Object(l.createElement)("div",null,e.children))),a):null})),Ot=10,_t=ut(gt),jt=Object(u.a)(_t,2),Et=jt[0],St=jt[1],kt=Object(l.forwardRef)((function(e,t){var n=e.__scopeSelect,s=e.onCloseAutoFocus,f=Object(i.a)(e,Ue),d=dt(gt,n),h=Object(l.useState)(null),m=Object(u.a)(h,2),b=m[0],y=m[1],g=Object(l.useState)(null),w=Object(u.a)(g,2),O=w[0],_=w[1],j=Object(l.useState)(null),E=Object(u.a)(j,2),S=E[0],k=E[1],x=U(t,(function(e){return _(e)})),C=Object(l.useState)(null),T=Object(u.a)(C,2),R=T[0],P=T[1],A=Object(l.useState)(null),L=Object(u.a)(A,2),N=L[0],M=L[1],D=ot(n),I=Object(l.useState)(!1),z=Object(u.a)(I,2),F=z[0],B=z[1],V=Object(l.useRef)(!0),W=Object(l.useRef)(!1),H=Object(l.useRef)(!1);Object(l.useEffect)((function(){if(O)return Object(Me.a)(O)}),[O]);var K=Object(l.useCallback)((function(e){var t,n=D().map((function(e){return e.ref.current})),r=Object(a.a)(n),i=r[0],c=r.slice(1).slice(-1),l=Object(u.a)(c,1)[0],s=document.activeElement,f=Object(o.a)(e);try{for(f.s();!(t=f.n()).done;){var d=t.value;if(d===s)return;if(null===d||void 0===d||d.scrollIntoView({block:"nearest"}),d===i&&S&&(S.scrollTop=0),d===l&&S&&(S.scrollTop=S.scrollHeight),null===d||void 0===d||d.focus(),document.activeElement!==s)return}}catch(p){f.e(p)}finally{f.f()}}),[D,S]),Y=Object(l.useCallback)((function(){if(d.trigger&&d.valueNode&&b&&O&&S&&R&&N){var e=d.trigger.getBoundingClientRect(),t=O.getBoundingClientRect(),n=d.valueNode.getBoundingClientRect(),r=N.getBoundingClientRect();if("rtl"!==d.dir){var o=r.left-t.left,a=n.left-o,i=e.left-a,u=e.width+i,c=Math.max(u,t.width),l=window.innerWidth-Ot,s=p(a,[Ot,l-c]);b.style.minWidth=u+"px",b.style.left=s+"px"}else{var f=t.right-r.right,v=window.innerWidth-n.right-f,h=window.innerWidth-e.right-v,m=e.width+h,y=Math.max(m,t.width),g=window.innerWidth-Ot,w=p(v,[Ot,g-y]);b.style.minWidth=m+"px",b.style.right=w+"px"}var _=D(),j=window.innerHeight-20,E=S.scrollHeight,k=window.getComputedStyle(O),x=parseInt(k.borderTopWidth,10),C=parseInt(k.paddingTop,10),T=parseInt(k.borderBottomWidth,10),P=x+C+E+parseInt(k.paddingBottom,10)+T,A=Math.min(5*R.offsetHeight,P),L=window.getComputedStyle(S),M=parseInt(L.paddingTop,10),I=parseInt(L.paddingBottom,10),z=e.top+e.height/2-Ot,F=j-z,U=R.offsetHeight/2,V=x+C+(R.offsetTop+U),H=P-V;if(V<=z){var K=R===_[_.length-1].ref.current;b.style.bottom="0px";var Y=O.clientHeight-S.offsetTop-S.offsetHeight,X=V+Math.max(F,U+(K?I:0)+Y+T);b.style.height=X+"px"}else{var q=R===_[0].ref.current;b.style.top="0px";var $=Math.max(z,x+S.offsetTop+(q?M:0)+U)+H;b.style.height=$+"px",S.scrollTop=V-z+S.offsetTop}b.style.margin="".concat(Ot,"px 0"),b.style.minHeight=A+"px",b.style.maxHeight=j+"px",B(!0),requestAnimationFrame((function(){return W.current=!0}))}}),[D,d.trigger,d.valueNode,b,O,S,R,N,d.dir]);ve((function(){return Y()}),[Y]);var X=Object(l.useCallback)((function(){return K([R,O])}),[K,R,O]);Object(l.useEffect)((function(){F&&X()}),[F,X]);var Q=Object(l.useCallback)((function(e){e&&!0===V.current&&(Y(),X(),V.current=!1)}),[Y,X]),Z=d.onOpenChange,G=d.triggerPointerDownPosRef;Object(l.useEffect)((function(){if(O){var e={x:0,y:0},t=function(t){var n,r,o,a;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=G.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(a=G.current)||void 0===a?void 0:a.y)&&void 0!==o?o:0))}},n=function(n){e.x<=10&&e.y<=10?n.preventDefault():O.contains(n.target)||Z(!1),document.removeEventListener("pointermove",t),G.current=null};return null!==G.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),function(){document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[O,Z,G]),Object(l.useEffect)((function(){var e=function(){return Z(!1)};return window.addEventListener("blur",e),window.addEventListener("resize",e),function(){window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[Z]);var J=en((function(e){var t=D().filter((function(e){return!e.disabled})),n=t.find((function(e){return e.ref.current===document.activeElement})),r=tn(t,e,n);r&&setTimeout((function(){return r.ref.current.focus()}))})),ee=Object(u.a)(J,2),te=ee[0],ne=ee[1],re=Object(l.useCallback)((function(e,t,n){var r=!H.current&&!n;(void 0!==d.value&&d.value===t||r)&&(P(e),r&&(H.current=!0))}),[d.value]),oe=Object(l.useCallback)((function(){return null===O||void 0===O?void 0:O.focus()}),[O]),ae=Object(l.useCallback)((function(e,t,n){var r=!H.current&&!n;(void 0!==d.value&&d.value===t||r)&&M(e)}),[d.value]);return Object(l.createElement)(Et,{scope:n,contentWrapper:b,content:O,viewport:S,onViewportChange:k,itemRefCallback:re,selectedItem:R,onItemLeave:oe,itemTextRefCallback:ae,selectedItemText:N,onScrollButtonChange:Q,isPositioned:F,shouldExpandOnScrollRef:W,searchRef:te},Object(l.createElement)(ge,null,Object(l.createElement)(De.a,null,Object(l.createElement)("div",{ref:y,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:0}},Object(l.createElement)($.a,{asChild:!0,trapped:d.open,onMountAutoFocus:function(e){e.preventDefault()},onUnmountAutoFocus:Object(v.a)(s,(function(e){var t;null===(t=d.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},Object(l.createElement)(q.a,Object(c.a)({role:"listbox",id:d.contentId,"data-state":d.open?"open":"closed",dir:d.dir,onContextMenu:function(e){return e.preventDefault()}},f,{ref:x,style:Object(r.a)({display:"flex",flexDirection:"column",boxSizing:"border-box",maxHeight:"100%",outline:"none"},f.style),disableOutsidePointerEvents:!0,onFocusOutside:function(e){return e.preventDefault()},onDismiss:function(){return d.onOpenChange(!1)},onKeyDown:Object(v.a)(f.onKeyDown,(function(e){var t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||ne(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){var n=D().filter((function(e){return!e.disabled})).map((function(e){return e.ref.current}));if(["ArrowUp","End"].includes(e.key)&&(n=n.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){var r=e.target,o=n.indexOf(r);n=n.slice(o+1)}setTimeout((function(){return K(n)})),e.preventDefault()}}))})))))))})),xt="SelectViewport",Ct=Object(l.forwardRef)((function(e,t){var n=e.__scopeSelect,o=Object(i.a)(e,Be),a=St(xt,n),u=U(t,a.onViewportChange),s=Object(l.useRef)(0);return Object(l.createElement)(l.Fragment,null,Object(l.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),Object(l.createElement)(rt.Slot,{scope:n},Object(l.createElement)(ee.div,Object(c.a)({"data-radix-select-viewport":"",role:"presentation"},o,{ref:u,style:Object(r.a)({position:"relative",flex:1,overflow:"auto"},o.style),onScroll:Object(v.a)(o.onScroll,(function(e){var t=e.currentTarget,n=a.contentWrapper,r=a.shouldExpandOnScrollRef;if(null!==r&&void 0!==r&&r.current&&n){var o=Math.abs(s.current-t.scrollTop);if(o>0){var i=window.innerHeight-20,u=parseFloat(n.style.minHeight),c=parseFloat(n.style.height),l=Math.max(u,c);if(l0?p:0,n.style.justifyContent="flex-end")}}}s.current=t.scrollTop}))}))))})),Tt="SelectGroup",Rt=ut(Tt),Pt=Object(u.a)(Rt,2),At=Pt[0],Lt=Pt[1],Nt=Object(l.forwardRef)((function(e,t){var n=e.__scopeSelect,r=Object(i.a)(e,Ve),o=Object(Q.a)();return Object(l.createElement)(At,{scope:n,id:o},Object(l.createElement)(ee.div,Object(c.a)({role:"group","aria-labelledby":o},r,{ref:t})))})),Mt="SelectLabel",Dt=Object(l.forwardRef)((function(e,t){var n=e.__scopeSelect,r=Object(i.a)(e,We),o=Lt(Mt,n);return Object(l.createElement)(ee.div,Object(c.a)({id:o.id},r,{ref:t}))})),It="SelectItem",zt=ut(It),Ft=Object(u.a)(zt,2),Ut=Ft[0],Bt=Ft[1],Vt=Object(l.forwardRef)((function(e,t){var n=e.__scopeSelect,r=e.value,o=e.disabled,a=void 0!==o&&o,s=e.textValue,f=Object(i.a)(e,He),d=dt(It,n),p=St(It,n),h=d.value===r,m=Object(l.useState)(null!==s&&void 0!==s?s:""),b=Object(u.a)(m,2),y=b[0],g=b[1],w=Object(l.useState)(!1),O=Object(u.a)(w,2),_=O[0],j=O[1],E=U(t,(function(e){var t;return null===(t=p.itemRefCallback)||void 0===t?void 0:t.call(p,e,r,a)})),S=Object(Q.a)(),k=function(){a||(d.onValueChange(r),d.onOpenChange(!1))};return Object(l.createElement)(Ut,{scope:n,value:r,disabled:a,textId:S,isSelected:h,onItemTextChange:Object(l.useCallback)((function(e){g((function(t){var n;return t||(null!==(n=null===e||void 0===e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},Object(l.createElement)(rt.ItemSlot,{scope:n,value:r,disabled:a,textValue:y},Object(l.createElement)(ee.div,Object(c.a)({role:"option","aria-labelledby":S,"data-highlighted":_?"":void 0,"aria-selected":h&&_,"data-state":h?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1},f,{ref:E,onFocus:Object(v.a)(f.onFocus,(function(){return j(!0)})),onBlur:Object(v.a)(f.onBlur,(function(){return j(!1)})),onPointerUp:Object(v.a)(f.onPointerUp,k),onPointerMove:Object(v.a)(f.onPointerMove,(function(e){var t;a?null===(t=p.onItemLeave)||void 0===t||t.call(p):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:Object(v.a)(f.onPointerLeave,(function(e){var t;e.currentTarget===document.activeElement&&(null===(t=p.onItemLeave)||void 0===t||t.call(p))})),onKeyDown:Object(v.a)(f.onKeyDown,(function(e){var t;""!==(null===(t=p.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(Je.includes(e.key)&&k()," "===e.key&&e.preventDefault())}))}))))})),Wt="SelectItemText",Ht=Object(l.forwardRef)((function(e,t){var n,r=e.__scopeSelect,o=(e.className,e.style,Object(i.a)(e,Ke)),a=dt(Wt,r),u=St(Wt,r),s=Bt(Wt,r),d=Object(l.useRef)(null),p=U(t,d,s.onItemTextChange,(function(e){var t;return null===(t=u.itemTextRefCallback)||void 0===t?void 0:t.call(u,e,s.value,s.disabled)}));return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(ee.span,Object(c.a)({id:s.textId},o,{ref:p})),s.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Object(f.createPortal)(o.children,a.valueNode):null,a.bubbleSelect?Object(f.createPortal)(Object(l.createElement)("option",{value:s.value},null===(n=d.current)||void 0===n?void 0:n.textContent),a.bubbleSelect):null)})),Kt="SelectItemIndicator",Yt=Object(l.forwardRef)((function(e,t){var n=e.__scopeSelect,r=Object(i.a)(e,Ye);return Bt(Kt,n).isSelected?Object(l.createElement)(ee.span,Object(c.a)({"aria-hidden":!0},r,{ref:t})):null})),Xt="SelectScrollUpButton",qt=Object(l.forwardRef)((function(e,t){var n=St(Xt,e.__scopeSelect),r=Object(l.useState)(!1),o=Object(u.a)(r,2),a=o[0],i=o[1],s=U(t,n.onScrollButtonChange);return ve((function(){if(n.viewport&&n.isPositioned){var e=function(){var e=t.scrollTop>0;i(e)},t=n.viewport;return e(),t.addEventListener("scroll",e),function(){return t.removeEventListener("scroll",e)}}}),[n.viewport,n.isPositioned]),a?Object(l.createElement)(Zt,Object(c.a)({},e,{ref:s,onAutoScroll:function(){var e=n.viewport,t=n.selectedItem;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),$t="SelectScrollDownButton",Qt=Object(l.forwardRef)((function(e,t){var n=St($t,e.__scopeSelect),r=Object(l.useState)(!1),o=Object(u.a)(r,2),a=o[0],i=o[1],s=U(t,n.onScrollButtonChange);return ve((function(){if(n.viewport&&n.isPositioned){var e=function(){var e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)1&&Array.from(t).every((function(e){return e===t[0]}))?t[0]:t,i=n?e.indexOf(n):-1,u=(r=e,o=Math.max(i,0),r.map((function(e,t){return r[(o+t)%r.length]})));1===a.length&&(u=u.filter((function(e){return e!==n})));var c=u.find((function(e){return e.textValue.toLowerCase().startsWith(a.toLowerCase())}));return c!==n?c:void 0}var nn=pt,rn=ht,on=bt,an=yt,un=wt,cn=Ct,ln=Nt,sn=Dt,fn=Vt,dn=Ht,pn=Yt,vn=qt,hn=Qt,mn=Gt},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(31);function o(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=new WeakMap,o=new WeakMap,a={},i=0,u=function(e,t,n){void 0===t&&(t=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e)),void 0===n&&(n="data-aria-hidden");var u=Array.isArray(e)?e:[e];a[n]||(a[n]=new WeakMap);var c=a[n],l=[],s=new Set;u.forEach((function e(t){t&&!s.has(t)&&(s.add(t),e(t.parentNode))}));return function e(t){!t||u.indexOf(t)>=0||Array.prototype.forEach.call(t.children,(function(t){if(s.has(t))e(t);else{var a=t.getAttribute("aria-hidden"),i=null!==a&&"false"!==a,u=(r.get(t)||0)+1,f=(c.get(t)||0)+1;r.set(t,u),c.set(t,f),l.push(t),1===u&&i&&o.set(t,!0),1===f&&t.setAttribute(n,"true"),i||t.setAttribute("aria-hidden","true")}}))}(t),s.clear(),i++,function(){l.forEach((function(e){var t=r.get(e)-1,a=c.get(e)-1;r.set(e,t),c.set(e,a),t||(o.has(e)||e.removeAttribute("aria-hidden"),o.delete(e)),a||e.removeAttribute(n)})),--i||(r=new WeakMap,r=new WeakMap,o=new WeakMap,a={})}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(3),o=n(0);function a(e){var t=o.useRef(e);return o.useEffect((function(){t.current=e})),o.useMemo((function(){return function(){for(var e,n,r=arguments.length,o=new Array(r),a=0;a1&&void 0!==arguments[1]?arguments[1]:[],n=[];function a(t,r){var a=Object(u.createContext)(r),i=n.length;function c(t){var n=t.scope,r=t.children,c=Object(o.a)(t,b),l=(null===n||void 0===n?void 0:n[e][i])||a,s=Object(u.useMemo)((function(){return c}),Object.values(c));return Object(u.createElement)(l.Provider,{value:s},r)}return n=[].concat(Object(h.a)(n),[r]),c.displayName=t+"Provider",[c,function(n,o){var c=(null===o||void 0===o?void 0:o[e][i])||a,l=Object(u.useContext)(c);if(l)return l;if(void 0!==r)return r;throw new Error("`".concat(n,"` must be used within `").concat(t,"`"))}]}var i=function(){var t=n.map((function(e){return Object(u.createContext)(e)}));return function(n){var o=(null===n||void 0===n?void 0:n[e])||t;return Object(u.useMemo)((function(){return Object(v.a)({},"__scope".concat(e),Object(r.a)(Object(r.a)({},n),{},Object(v.a)({},e,o)))}),[n,o])}};return i.scopeName=e,[a,_.apply(void 0,[i].concat(Object(h.a)(t)))]}function _(){for(var e=arguments.length,t=new Array(e),n=0;n1?u.Children.only(null):null}));m.displayName="SlotClone";var b=function(e){var t=e.children;return u.createElement(u.Fragment,null,t)};function y(e){return u.isValidElement(e)&&e.type===b}var g,w=n(43),O=n(14),_=["children","width","height"],j=u.forwardRef((function(e,t){var n=e.children,r=e.width,a=void 0===r?10:r,i=e.height,c=void 0===i?5:i,l=Object(o.a)(e,_);return u.createElement(O.a.svg,Object(d.a)({},l,{ref:t,width:a,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:u.createElement("polygon",{points:"0,0 30,0 15,10"}))})),E=n(33);var S=new Map;function k(){var e=[];S.forEach((function(t,n){var r,o,a=n.getBoundingClientRect();o=a,((r=t.rect).width!==o.width||r.height!==o.height||r.top!==o.top||r.right!==o.right||r.bottom!==o.bottom||r.left!==o.left)&&(t.rect=a,e.push(t))})),e.forEach((function(e){e.callbacks.forEach((function(t){return t(e.rect)}))})),g=requestAnimationFrame(k)}function x(e){var t=u.useState(),n=Object(a.a)(t,2),r=n[0],o=n[1];return u.useEffect((function(){if(e){var t=function(e,t){var n=S.get(e);return void 0===n?(S.set(e,{rect:{},callbacks:[t]}),1===S.size&&(g=requestAnimationFrame(k))):(n.callbacks.push(t),t(e.getBoundingClientRect())),function(){var n=S.get(e);if(void 0!==n){var r=n.callbacks.indexOf(t);r>-1&&n.callbacks.splice(r,1),0===n.callbacks.length&&(S.delete(e),0===S.size&&cancelAnimationFrame(g))}}}(e,o);return function(){o(void 0),t()}}}),[e]),r}var C=n(22),T=n(7);function R(e,t,n){var r=e["x"===n?"left":"top"],o="x"===n?"width":"height",a=e[o],i=t[o];return{before:r-i,start:r,center:r+(a-i)/2,end:r+a-i,after:r+a}}function P(e){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:"translate3d(".concat(Math.round(e.x+window.scrollX),"px, ").concat(Math.round(e.y+window.scrollY),"px, 0)")}}function A(e,t,n,r,o){var a="top"===t||"bottom"===t,i=o?o.width:0,u=o?o.height:0,c=i/2+r,l="",s="";return a?(l={start:"".concat(c,"px"),center:"center",end:e.width-c+"px"}[n],s="top"===t?"".concat(e.height+u,"px"):-u+"px"):(l="left"===t?"".concat(e.width+u,"px"):-u+"px",s={start:"".concat(c,"px"),center:"center",end:e.height-c+"px"}[n]),"".concat(l," ").concat(s)}var L={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},N={position:"absolute",opacity:0};function M(e){var t,n=e.popperSize,r=e.arrowSize,o=e.arrowOffset,a=e.side,i=e.align,u=(n.width-r.width)/2,c=(n.height-r.width)/2,l={top:0,right:90,bottom:180,left:-90}[a],s=Math.max(r.width,r.height),f=(t={width:"".concat(s,"px"),height:"".concat(s,"px"),transform:"rotate(".concat(l,"deg)"),willChange:"transform",position:"absolute"},Object(T.a)(t,a,"100%"),Object(T.a)(t,"direction",function(e,t){return("top"!==e&&"right"!==e||"end"!==t)&&("bottom"!==e&&"left"!==e||"end"===t)?"ltr":"rtl"}(a,i)),t);return"top"!==a&&"bottom"!==a||("start"===i&&(f.left="".concat(o,"px")),"center"===i&&(f.left="".concat(u,"px")),"end"===i&&(f.right="".concat(o,"px"))),"left"!==a&&"right"!==a||("start"===i&&(f.top="".concat(o,"px")),"center"===i&&(f.top="".concat(c,"px")),"end"===i&&(f.bottom="".concat(o,"px"))),f}function D(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function I(e,t){return{top:e.topt.right,bottom:e.bottom>t.bottom,left:e.left2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0,a=o?o.height:0,i=R(t,e,"x"),u=R(t,e,"y"),c=u.before-n-a,l=u.after+n+a,s=i.before-n-a,f=i.after+n+a;return{top:{start:{x:i.start+r,y:c},center:{x:i.center,y:c},end:{x:i.end-r,y:c}},right:{start:{x:f,y:u.start+r},center:{x:f,y:u.center},end:{x:f,y:u.end-r}},bottom:{start:{x:i.start+r,y:l},center:{x:i.center,y:l},end:{x:i.end-r,y:l}},left:{start:{x:s,y:u.start+r},center:{x:s,y:u.center},end:{x:s,y:u.end-r}}}}(n,t,l,d,o),g=y[u][s];if(!1===v){var w=P(g),O=N;return o&&(O=M({popperSize:n,arrowSize:o,arrowOffset:i,side:u,align:s})),{popperStyles:Object(r.a)(Object(r.a)({},w),{},{"--radix-popper-transform-origin":A(n,u,s,i,o)}),arrowStyles:O,placedSide:u,placedAlign:s}}var _,j,E=DOMRect.fromRect(Object(r.a)(Object(r.a)({},n),g)),S=(_=h,j=b,DOMRect.fromRect({width:_.width-2*j,height:_.height-2*j,x:_.left+j,y:_.top+j})),k=I(E,S),x=y[D(u)][s],C=function(e,t,n){var r=D(e);return t[e]&&!n[r]?r:e}(u,k,I(DOMRect.fromRect(Object(r.a)(Object(r.a)({},n),x)),S)),T=function(e,t,n,r,o){var a="top"===n||"bottom"===n,i=a?"left":"top",u=a?"right":"bottom",c=a?"width":"height",l=t[c]>e[c];return"start"!==r&&"center"!==r||!(o[i]&&l||o[u]&&!l)?"end"!==r&&"center"!==r||!(o[u]&&l||o[i]&&!l)?r:"start":"end"}(n,t,u,s,k),z=P(y[C][T]),F=N;return o&&(F=M({popperSize:n,arrowSize:o,arrowOffset:i,side:C,align:T})),{popperStyles:Object(r.a)(Object(r.a)({},z),{},{"--radix-popper-transform-origin":A(n,C,T,i,o)}),arrowStyles:F,placedSide:C,placedAlign:T}}({anchorRect:k,popperSize:B,arrowSize:Y,arrowOffset:j,side:c,sideOffset:l,align:p,alignOffset:v,shouldAvoidCollisions:b,collisionBoundariesRect:$?DOMRect.fromRect(Object(r.a)(Object(r.a)({},$),{},{x:0,y:0})):void 0,collisionTolerance:h}),Z=Q.popperStyles,J=Q.arrowStyles,ee=Q.placedSide,te=Q.placedAlign,ne=void 0!==ee;return u.createElement("div",{style:Z,"data-radix-popper-content-wrapper":""},u.createElement(G,{scope:n,arrowStyles:J,onArrowChange:K,onArrowOffsetChange:S},u.createElement(O.a.div,Object(d.a)({"data-side":ee,"data-align":te},y,{style:Object(r.a)(Object(r.a)({},y.style),{},{animation:ne?void 0:"none"}),ref:X}))))})),te=function(e){var t=e.__scopePopper,n=e.children,r=u.useState(null),o=Object(a.a)(r,2),i=o[0],c=o[1];return u.createElement(X,{scope:t,anchor:i,onAnchorChange:c},n)},ne=$,re=ee,oe=u.forwardRef((function(e,t){var n=e.__scopePopper,a=e.offset,i=Object(o.a)(e,U),c=J("PopperArrow",n),l=c.onArrowOffsetChange;return u.useEffect((function(){return l(a)}),[l,a]),u.createElement("span",{style:Object(r.a)(Object(r.a)({},c.arrowStyles),{},{pointerEvents:"none"})},u.createElement("span",{ref:c.onArrowChange,style:{display:"inline-block",verticalAlign:"top",pointerEvents:"auto"}},u.createElement(j,Object(d.a)({},i,{ref:t,style:Object(r.a)(Object(r.a)({},i.style),{},{display:"block"})}))))})),ae=n(42),ie=n(34),ue=n(47),ce=n(27),le=n(11),se=["__scopeTooltip"],fe=["forceMount"],de=["__scopeTooltip","children","aria-label","portalled"],pe=["__scopeTooltip"],ve=Object(C.b)("Tooltip",[H]),he=Object(a.a)(ve,2),me=he[0],be=(he[1],H()),ye=me("TooltipProvider",{isOpenDelayed:!0,delayDuration:700,onOpen:function(){},onClose:function(){}}),ge=Object(a.a)(ye,2),we=ge[0],Oe=ge[1],_e=me("Tooltip"),je=Object(a.a)(_e,2),Ee=je[0],Se=je[1],ke=u.forwardRef((function(e,t){var n=e.__scopeTooltip,r=Object(o.a)(e,se),a=Se("TooltipTrigger",n),i=be(n),c=Object(f.b)(t,a.onTriggerChange),l=u.useRef(!1),s=u.useCallback((function(){return l.current=!1}),[]);return u.useEffect((function(){return function(){return document.removeEventListener("mouseup",s)}}),[s]),u.createElement(ne,Object(d.a)({asChild:!0},i),u.createElement(O.a.button,Object(d.a)({"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute},r,{ref:c,onMouseEnter:Object(le.a)(e.onMouseEnter,a.onTriggerEnter),onMouseLeave:Object(le.a)(e.onMouseLeave,a.onClose),onMouseDown:Object(le.a)(e.onMouseDown,(function(){a.onClose(),l.current=!0,document.addEventListener("mouseup",s,{once:!0})})),onFocus:Object(le.a)(e.onFocus,(function(){l.current||a.onOpen()})),onBlur:Object(le.a)(e.onBlur,a.onClose),onClick:Object(le.a)(e.onClick,(function(e){0===e.detail&&a.onClose()}))})))})),xe=u.forwardRef((function(e,t){var n=e.forceMount,r=Object(o.a)(e,fe),a=Se("TooltipContent",e.__scopeTooltip);return u.createElement(ae.a,{present:n||a.open},u.createElement(Ce,Object(d.a)({ref:t},r)))})),Ce=u.forwardRef((function(e,t){var n=e.__scopeTooltip,a=e.children,i=e["aria-label"],c=e.portalled,l=void 0===c||c,f=Object(o.a)(e,de),p=Se("TooltipContent",n),v=be(n),h=l?w.a:u.Fragment,m=p.onClose;return Object(ue.a)((function(){return m()})),u.useEffect((function(){return document.addEventListener("tooltip.open",m),function(){return document.removeEventListener("tooltip.open",m)}}),[m]),u.createElement(h,null,u.createElement(Te,{__scopeTooltip:n}),u.createElement(re,Object(d.a)({"data-state":p.stateAttribute},v,f,{ref:t,style:Object(r.a)(Object(r.a)({},f.style),{},{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"})}),u.createElement(b,null,a),u.createElement(s.a,{id:p.contentId,role:"tooltip"},i||a)))}));function Te(e){var t=e.__scopeTooltip,n=Se("CheckTriggerMoved",t),r=x(n.trigger),o=null==r?void 0:r.left,a=Object(ie.a)(o),i=null==r?void 0:r.top,c=Object(ie.a)(i),l=n.onClose;return u.useEffect((function(){(void 0!==a&&a!==o||void 0!==c&&c!==i)&&l()}),[l,a,c,o,i]),null}var Re=function(e){var t=e.__scopeTooltip,n=e.delayDuration,r=void 0===n?700:n,o=e.skipDelayDuration,i=void 0===o?300:o,c=e.children,l=u.useState(!0),s=Object(a.a)(l,2),f=s[0],d=s[1],p=u.useRef(0);return u.useEffect((function(){var e=p.current;return function(){return window.clearTimeout(e)}}),[]),u.createElement(we,{scope:t,isOpenDelayed:f,delayDuration:r,onOpen:u.useCallback((function(){window.clearTimeout(p.current),d(!1)}),[]),onClose:u.useCallback((function(){window.clearTimeout(p.current),p.current=window.setTimeout((function(){return d(!0)}),i)}),[i])},c)},Pe=function(e){var t=e.__scopeTooltip,n=e.children,r=e.open,o=e.defaultOpen,s=void 0!==o&&o,f=e.onOpenChange,d=e.delayDuration,p=Oe("Tooltip",t),v=be(t),h=u.useState(null),m=Object(a.a)(h,2),b=m[0],y=m[1],g=function(e){var t=u.useState(c()),n=Object(a.a)(t,2),r=n[0],o=n[1];return Object(i.a)((function(){e||o((function(e){return null!=e?e:String(l++)}))}),[e]),e||(r?"radix-".concat(r):"")}(),w=u.useRef(0),O=null!=d?d:p.delayDuration,_=u.useRef(!1),j=p.onOpen,E=p.onClose,S=Object(ce.a)({prop:r,defaultProp:s,onChange:function(e){e&&(document.dispatchEvent(new CustomEvent("tooltip.open")),j()),null==f||f(e)}}),k=Object(a.a)(S,2),x=k[0],C=void 0!==x&&x,T=k[1],R=u.useMemo((function(){return C?_.current?"delayed-open":"instant-open":"closed"}),[C]),P=u.useCallback((function(){window.clearTimeout(w.current),_.current=!1,T(!0)}),[T]),A=u.useCallback((function(){window.clearTimeout(w.current),w.current=window.setTimeout((function(){_.current=!0,T(!0)}),O)}),[O,T]);return u.useEffect((function(){return function(){return window.clearTimeout(w.current)}}),[]),u.createElement(te,v,u.createElement(Ee,{scope:t,contentId:g,open:C,stateAttribute:R,trigger:b,onTriggerChange:y,onTriggerEnter:u.useCallback((function(){p.isOpenDelayed?A():P()}),[p.isOpenDelayed,A,P]),onOpen:u.useCallback(P,[P]),onClose:u.useCallback((function(){window.clearTimeout(w.current),T(!1),E()}),[T,E])},n))},Ae=ke,Le=xe,Ne=u.forwardRef((function(e,t){var n=e.__scopeTooltip,r=Object(o.a)(e,pe),a=be(n);return u.createElement(oe,Object(d.a)({},a,r,{ref:t}))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(38),o=n(39),a=n(25),i=n(40);function u(e){return Object(r.a)(e)||Object(o.a)(e)||Object(a.a)(e)||Object(i.a)()}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:{},r=n.checkForDefaultPrevented,o=void 0===r||r;return function(n){if(null===e||void 0===e||e(n),!1===o||!n.defaultPrevented)return null===t||void 0===t?void 0:t(n)}}function s(e,t){"function"===typeof e?e(t):null!==e&&void 0!==e&&(e.current=t)}function f(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:[],n=[];function i(t,r){var o=Object(c.createContext)(r),i=n.length;function u(t){var n=t.scope,r=t.children,u=Object(a.a)(t,v),l=(null===n||void 0===n?void 0:n[e][i])||o,s=Object(c.useMemo)((function(){return u}),Object.values(u));return Object(c.createElement)(l.Provider,{value:s},r)}return n=[].concat(Object(p.a)(n),[r]),u.displayName=t+"Provider",[u,function(n,a){var u=(null===a||void 0===a?void 0:a[e][i])||o,l=Object(c.useContext)(u);if(l)return l;if(void 0!==r)return r;throw new Error("`".concat(n,"` must be used within `").concat(t,"`"))}]}var u=function(){var t=n.map((function(e){return Object(c.createContext)(e)}));return function(n){var a=(null===n||void 0===n?void 0:n[e])||t;return Object(c.useMemo)((function(){return Object(r.a)({},"__scope".concat(e),Object(o.a)(Object(o.a)({},n),{},Object(r.a)({},e,a)))}),[n,a])}};return u.scopeName=e,[i,m.apply(void 0,[u].concat(Object(p.a)(t)))]}function m(){for(var e=arguments.length,t=new Array(e),n=0;n1?c.Children.only(null):Object(c.isValidElement)(l)?l.props.children:null:e}));return Object(c.createElement)(_,Object(u.a)({},r,{ref:t}),Object(c.isValidElement)(l)?Object(c.cloneElement)(l,void 0,s):null)}return Object(c.createElement)(_,Object(u.a)({},r,{ref:t}),n)}));O.displayName="Slot";var _=Object(c.forwardRef)((function(e,t){var n=e.children,r=Object(a.a)(e,w);return Object(c.isValidElement)(n)?Object(c.cloneElement)(n,Object(o.a)(Object(o.a)({},function(e,t){var n=Object(o.a)({},t),r=function(r){var a=e[r],i=t[r];/^on[A-Z]/.test(r)?n[r]=function(){null===i||void 0===i||i.apply(void 0,arguments),null===a||void 0===a||a.apply(void 0,arguments)}:"style"===r?n[r]=Object(o.a)(Object(o.a)({},a),i):"className"===r&&(n[r]=[a,i].filter(Boolean).join(" "))};for(var a in t)r(a);return Object(o.a)(Object(o.a)({},e),n)}(r,n.props)),{},{ref:f(t,n.ref)})):c.Children.count(n)>1?c.Children.only(null):null}));_.displayName="SlotClone";var j=function(e){var t=e.children;return Object(c.createElement)(c.Fragment,null,t)};function E(e){return Object(c.isValidElement)(e)&&e.type===j}var S=["asChild"],k=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((function(e,t){var n=Object(c.forwardRef)((function(e,n){var r=e.asChild,o=Object(a.a)(e,S),i=r?O:t;return Object(c.useEffect)((function(){window[Symbol.for("radix-ui")]=!0}),[]),Object(c.createElement)(i,Object(u.a)({},o,{ref:n}))}));return n.displayName="Primitive.".concat(t),Object(o.a)(Object(o.a)({},e),{},Object(r.a)({},t,n))}),{});function x(e){var t=Object(c.useRef)(e);return Object(c.useEffect)((function(){t.current=e})),Object(c.useMemo)((function(){return function(){for(var e,n,r=arguments.length,o=new Array(r),a=0;a0,V=U>=F,W=function(e){var t=x(e),n=Object(c.useRef)(!1),r=Object(c.useRef)((function(){}));return Object(c.useEffect)((function(){var e=function(e){if(e.target&&!n.current){var o=function(){D(P,t,a,{discrete:!0})},a={originalEvent:e};"touch"===e.pointerType?(document.removeEventListener("click",r.current),r.current=o,document.addEventListener("click",r.current,{once:!0})):o()}n.current=!1},o=window.setTimeout((function(){document.addEventListener("pointerdown",e)}),0);return function(){window.clearTimeout(o),document.removeEventListener("pointerdown",e),document.removeEventListener("click",r.current)}}),[t]),{onPointerDownCapture:function(){return n.current=!0}}}((function(e){var t=e.target,n=Object(p.a)(y.branches).some((function(e){return e.contains(t)}));V&&!n&&(null===f||void 0===f||f(e),null===h||void 0===h||h(e),e.defaultPrevented||null===m||void 0===m||m())})),H=function(e){var t=x(e),n=Object(c.useRef)(!1);return Object(c.useEffect)((function(){var e=function(e){e.target&&!n.current&&D(A,t,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),function(){return document.removeEventListener("focusin",e)}}),[t]),{onFocusCapture:function(){return n.current=!0},onBlurCapture:function(){return n.current=!1}}}((function(e){var t=e.target;Object(p.a)(y.branches).some((function(e){return e.contains(t)}))||(null===v||void 0===v||v(e),null===h||void 0===h||h(e),e.defaultPrevented||null===m||void 0===m||m())}));return function(e){var t=x(e);Object(c.useEffect)((function(){var e=function(e){"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}),[t])}((function(e){U===y.layers.size-1&&(null===s||void 0===s||s(e),!e.defaultPrevented&&m&&(e.preventDefault(),m()))})),Object(c.useEffect)((function(){if(O)return r&&(0===y.layersWithOutsidePointerEventsDisabled.size&&(C=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(O)),y.layers.add(O),M(),function(){r&&1===y.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=C)}}),[O,r,y]),Object(c.useEffect)((function(){return function(){O&&(y.layers.delete(O),y.layersWithOutsidePointerEventsDisabled.delete(O),M())}}),[O,y]),Object(c.useEffect)((function(){var e=function(){return E({})};return document.addEventListener(R,e),function(){return document.removeEventListener(R,e)}}),[]),Object(c.createElement)(k.div,Object(u.a)({},b,{ref:S,style:Object(o.a)({pointerEvents:B?V?"auto":"none":void 0},e.style),onFocusCapture:l(e.onFocusCapture,H.onFocusCapture),onBlurCapture:l(e.onBlurCapture,H.onBlurCapture),onPointerDownCapture:l(e.onPointerDownCapture,W.onPointerDownCapture)}))}));function M(){var e=new CustomEvent(R);document.dispatchEvent(e)}function D(e,t,n,r){var o=r.discrete,a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),o?function(e,t){e&&Object(b.flushSync)((function(){return e.dispatchEvent(t)}))}(a,i):a.dispatchEvent(i)}var I=0;function z(){Object(c.useEffect)((function(){var e,t,n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:F()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:F()),I++,function(){1===I&&document.querySelectorAll("[data-radix-focus-guard]").forEach((function(e){return e.remove()})),I--}}),[])}function F(){var e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var U=n(10),B=["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"],V="focusScope.autoFocusOnMount",W="focusScope.autoFocusOnUnmount",H={bubbles:!1,cancelable:!0},K=Object(c.forwardRef)((function(e,t){var n=e.loop,r=void 0!==n&&n,o=e.trapped,l=void 0!==o&&o,s=e.onMountAutoFocus,f=e.onUnmountAutoFocus,p=Object(a.a)(e,B),v=Object(c.useState)(null),h=Object(i.a)(v,2),m=h[0],b=h[1],y=x(s),g=x(f),w=Object(c.useRef)(null),O=d(t,(function(e){return b(e)})),_=Object(c.useRef)({paused:!1,pause:function(){this.paused=!0},resume:function(){this.paused=!1}}).current;Object(c.useEffect)((function(){if(l){var e=function(e){if(!_.paused&&m){var t=e.target;m.contains(t)?w.current=t:Q(w.current,{select:!0})}},t=function(e){!_.paused&&m&&(m.contains(e.relatedTarget)||Q(w.current,{select:!0}))};return document.addEventListener("focusin",e),document.addEventListener("focusout",t),function(){document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[l,m,_.paused]),Object(c.useEffect)((function(){if(m){Z.add(_);var e=document.activeElement;if(!m.contains(e)){var t=new CustomEvent(V,H);m.addEventListener(V,y),m.dispatchEvent(t),t.defaultPrevented||(!function(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).select,r=void 0!==n&&n,o=document.activeElement,a=Object(U.a)(e);try{for(a.s();!(t=a.n()).done;){if(Q(t.value,{select:r}),document.activeElement!==o)return}}catch(i){a.e(i)}finally{a.f()}}((n=Y(m),n.filter((function(e){return"A"!==e.tagName}))),{select:!0}),document.activeElement===e&&Q(m))}return function(){m.removeEventListener(V,y),setTimeout((function(){var t=new CustomEvent(W,H);m.addEventListener(W,g),m.dispatchEvent(t),t.defaultPrevented||Q(null!==e&&void 0!==e?e:document.body,{select:!0}),m.removeEventListener(W,g),Z.remove(_)}),0)}}var n}),[m,y,g,_]);var j=Object(c.useCallback)((function(e){if((r||l)&&!_.paused){var t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){var o=e.currentTarget,a=function(e){var t=Y(e),n=X(t,e),r=X(t.reverse(),e);return[n,r]}(o),u=Object(i.a)(a,2),c=u[0],s=u[1];c&&s?e.shiftKey||n!==s?e.shiftKey&&n===c&&(e.preventDefault(),r&&Q(s,{select:!0})):(e.preventDefault(),r&&Q(c,{select:!0})):n===o&&e.preventDefault()}}}),[r,l,_.paused]);return Object(c.createElement)(k.div,Object(u.a)({tabIndex:-1},p,{ref:O,onKeyDown:j}))}));function Y(e){for(var t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){var t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});n.nextNode();)t.push(n.currentNode);return t}function X(e,t){var n,r=Object(U.a)(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(!q(o,{upTo:t}))return o}}catch(a){r.e(a)}finally{r.f()}}function q(e,t){var n=t.upTo;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==n&&e===n)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function $(e){return e instanceof HTMLInputElement&&"select"in e}function Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.select,r=void 0!==n&&n;if(e&&e.focus){var o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&$(e)&&r&&e.select()}}var Z=function(){var e=[];return{add:function(t){var n=e[0];t!==n&&(null===n||void 0===n||n.pause()),(e=G(e,t)).unshift(t)},remove:function(t){var n;null===(n=(e=G(e,t))[0])||void 0===n||n.resume()}}}();function G(e,t){var n=Object(p.a)(e),r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var J=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?c.useLayoutEffect:function(){},ee=c["useId".toString()]||function(){},te=0;function ne(e){var t=c.useState(ee()),n=Object(i.a)(t,2),r=n[0],o=n[1];return J((function(){e||o((function(e){return null!==e&&void 0!==e?e:String(te++)}))}),[e]),e||(r?"radix-".concat(r):"")}var re=n(9),oe=n.n(re),ae=n(13),ie=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"],ue=["strategy"],ce=["mainAxis","crossAxis","limiter"];function le(e){return e.split("-")[0]}function se(e){return e.split("-")[1]}function fe(e){return["top","bottom"].includes(le(e))?"x":"y"}function de(e){return"y"===e?"height":"width"}function pe(e,t,n){var r,o=e.reference,a=e.floating,i=o.x+o.width/2-a.width/2,u=o.y+o.height/2-a.height/2,c=fe(t),l=de(c),s=o[l]/2-a[l]/2,f="x"===c;switch(le(t)){case"top":r={x:i,y:o.y-a.height};break;case"bottom":r={x:i,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:u};break;case"left":r={x:o.x-a.width,y:u};break;default:r={x:o.x,y:o.y}}switch(se(t)){case"start":r[c]-=s*(n&&f?-1:1);break;case"end":r[c]+=s*(n&&f?-1:1)}return r}var ve=function(){var e=Object(ae.a)(oe.a.mark((function e(t,n,a){var i,u,c,l,s,f,d,p,v,h,m,b,y,g,w,O,_,j,E,S,k,x,C,T,R;return oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=a.placement,u=void 0===i?"bottom":i,c=a.strategy,l=void 0===c?"absolute":c,s=a.middleware,f=void 0===s?[]:s,d=a.platform,e.next=3,null==d.isRTL?void 0:d.isRTL(n);case 3:p=e.sent,e.next=8;break;case 8:return e.next=10,d.getElementRects({reference:t,floating:n,strategy:l});case 10:v=e.sent,h=pe(v,u,p),m=h.x,b=h.y,y=u,g={},w=0,O=0;case 16:if(!(O0&&R!==P&&p.reference[g]<=p.floating[g],N=L?Rt.floating[a]&&(i=Ee(i)),{main:i,cross:Ee(i)}}var ke={start:"end",end:"start"};function xe(e){return e.replace(/start|end/g,(function(e){return ke[e]}))}var Ce=["top","right","bottom","left"];function Te(e){var t=Ee(e);return[xe(e),t,xe(t)]}var Re=function(e){return void 0===e&&(e={}),{name:"flip",options:e,fn:function(t){return Object(ae.a)(oe.a.mark((function n(){var r,o,i,u,c,l,s,f,d,v,h,m,b,y,g,w,O,_,j,E,S,k,x,C,T,R,P,A,L,N,M,D,I,z,F;return oe.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=t.placement,i=t.middlewareData,u=t.rects,c=t.initialPlacement,l=t.platform,s=t.elements,d=(f=e).mainAxis,v=void 0===d||d,h=f.crossAxis,m=void 0===h||h,b=f.fallbackPlacements,y=f.fallbackStrategy,g=void 0===y?"bestFit":y,w=f.flipAlignment,O=void 0===w||w,_=Object(a.a)(f,ie),j=le(o),E=j===c,S=b||(E||!O?[Ee(c)]:Te(c)),k=[c].concat(Object(p.a)(S)),n.next=8,be(t,_);case 8:if(x=n.sent,C=[],T=(null==(r=i.flip)?void 0:r.overflows)||[],v&&C.push(x[j]),!m){n.next=23;break}return n.t0=Se,n.t1=o,n.t2=u,n.next=18,null==l.isRTL?void 0:l.isRTL(s.floating);case 18:n.t3=n.sent,R=(0,n.t0)(n.t1,n.t2,n.t3),P=R.main,A=R.cross,C.push(x[P],x[A]);case 23:if(T=[].concat(Object(p.a)(T),[{placement:o,overflows:C}]),C.every((function(e){return e<=0}))){n.next=40;break}if(M=(null!=(L=null==(N=i.flip)?void 0:N.index)?L:0)+1,!(D=k[M])){n.next=29;break}return n.abrupt("return",{data:{index:M,overflows:T},reset:{placement:D}});case 29:I="bottom",n.t4=g,n.next="bestFit"===n.t4?33:"initialPlacement"===n.t4?36:38;break;case 33:return F=null==(z=T.map((function(e){return[e,e.overflows.filter((function(e){return e>0})).reduce((function(e,t){return e+t}),0)]})).sort((function(e,t){return e[1]-t[1]}))[0])?void 0:z[0].placement,F&&(I=F),n.abrupt("break",38);case 36:return I=c,n.abrupt("break",38);case 38:if(o===I){n.next=40;break}return n.abrupt("return",{reset:{placement:I}});case 40:return n.abrupt("return",{});case 41:case"end":return n.stop()}}),n)})))()}}};function Pe(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ae(e){return Ce.some((function(t){return e[t]>=0}))}var Le=function(e){var t=void 0===e?{}:e,n=t.strategy,r=void 0===n?"referenceHidden":n,i=Object(a.a)(t,ue);return{name:"hide",fn:function(e){return Object(ae.a)(oe.a.mark((function t(){var n,a,u,c,l;return oe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.rects,t.t0=r,t.next="referenceHidden"===t.t0?4:"escaped"===t.t0?9:14;break;case 4:return t.next=6,be(e,Object(o.a)(Object(o.a)({},i),{},{elementContext:"reference"}));case 6:return a=t.sent,u=Pe(a,n.reference),t.abrupt("return",{data:{referenceHiddenOffsets:u,referenceHidden:Ae(u)}});case 9:return t.next=11,be(e,Object(o.a)(Object(o.a)({},i),{},{altBoundary:!0}));case 11:return c=t.sent,l=Pe(c,n.floating),t.abrupt("return",{data:{escapedOffsets:l,escaped:Ae(l)}});case 14:return t.abrupt("return",{});case 15:case"end":return t.stop()}}),t)})))()}}};function Ne(e,t){return Me.apply(this,arguments)}function Me(){return(Me=Object(ae.a)(oe.a.mark((function e(t,n){var r,a,i,u,c,l,s,f,d,p,v,h,m,b;return oe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.placement,a=t.platform,i=t.elements,e.next=3,null==a.isRTL?void 0:a.isRTL(i.floating);case 3:return u=e.sent,c=le(r),l=se(r),s="x"===fe(r),f=["left","top"].includes(c)?-1:1,d=u&&s?-1:1,p="function"===typeof n?n(t):n,v="number"===typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:Object(o.a)({mainAxis:0,crossAxis:0,alignmentAxis:null},p),h=v.mainAxis,m=v.crossAxis,b=v.alignmentAxis,l&&"number"===typeof b&&(m="end"===l?-1*b:b),e.abrupt("return",s?{x:m*d,y:h*f}:{x:h*f,y:m*d});case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function De(e){return"x"===e?"y":"x"}var Ie=function(e){return void 0===e&&(e={}),{name:"shift",options:e,fn:function(t){return Object(ae.a)(oe.a.mark((function n(){var i,u,c,l,s,f,d,p,v,h,m,b,y,g,w,O,_,j,E,S,k,x,C,T,R;return oe.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=t.x,c=t.y,l=t.placement,f=(s=e).mainAxis,d=void 0===f||f,p=s.crossAxis,v=void 0!==p&&p,h=s.limiter,m=void 0===h?{fn:function(e){return{x:e.x,y:e.y}}}:h,b=Object(a.a)(s,ce),y={x:u,y:c},n.next=5,be(t,b);case 5:return g=n.sent,w=fe(le(l)),O=De(w),_=y[w],j=y[O],d&&(E="y"===w?"bottom":"right",S=_+g["y"===w?"top":"left"],k=_-g[E],_=Oe(S,_,k)),v&&(x="y"===O?"bottom":"right",C=j+g["y"===O?"top":"left"],T=j-g[x],j=Oe(C,j,T)),R=m.fn(Object(o.a)(Object(o.a)({},t),{},(i={},Object(r.a)(i,w,_),Object(r.a)(i,O,j),i))),n.abrupt("return",Object(o.a)(Object(o.a)({},R),{},{data:{x:R.x-u,y:R.y-c}}));case 14:case"end":return n.stop()}}),n)})))()}}};function ze(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Fe(e){if(null==e)return window;if(!ze(e)){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ue(e){return Fe(e).getComputedStyle(e)}function Be(e){return ze(e)?"":e?(e.nodeName||"").toLowerCase():""}function Ve(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function We(e){return e instanceof Fe(e).HTMLElement}function He(e){return e instanceof Fe(e).Element}function Ke(e){return"undefined"!==typeof ShadowRoot&&(e instanceof Fe(e).ShadowRoot||e instanceof ShadowRoot)}function Ye(e){var t=Ue(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Xe(e){return["table","td","th"].includes(Be(e))}function qe(e){var t=/firefox/i.test(Ve()),n=Ue(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function $e(){return!/^((?!chrome|android).)*safari/i.test(Ve())}var Qe=Math.min,Ze=Math.max,Ge=Math.round;function Je(e,t,n){var r,o,a,i;void 0===t&&(t=!1),void 0===n&&(n=!1);var u=e.getBoundingClientRect(),c=1,l=1;t&&We(e)&&(c=e.offsetWidth>0&&Ge(u.width)/e.offsetWidth||1,l=e.offsetHeight>0&&Ge(u.height)/e.offsetHeight||1);var s=He(e)?Fe(e):window,f=!$e()&&n,d=(u.left+(f&&null!=(r=null==(o=s.visualViewport)?void 0:o.offsetLeft)?r:0))/c,p=(u.top+(f&&null!=(a=null==(i=s.visualViewport)?void 0:i.offsetTop)?a:0))/l,v=u.width/c,h=u.height/l;return{width:v,height:h,top:p,right:d+v,bottom:p+h,left:d,x:d,y:p}}function et(e){return(t=e,(t instanceof Fe(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function tt(e){return He(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function nt(e){return Je(et(e)).left+tt(e).scrollLeft}function rt(e,t,n){var r=We(t),o=et(t),a=Je(e,r&&function(e){var t=Je(e);return Ge(t.width)!==e.offsetWidth||Ge(t.height)!==e.offsetHeight}(t),"fixed"===n),i={scrollLeft:0,scrollTop:0},u={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==Be(t)||Ye(o))&&(i=tt(t)),We(t)){var c=Je(t,!0);u.x=c.x+t.clientLeft,u.y=c.y+t.clientTop}else o&&(u.x=nt(o));return{x:a.left+i.scrollLeft-u.x,y:a.top+i.scrollTop-u.y,width:a.width,height:a.height}}function ot(e){return"html"===Be(e)?e:e.assignedSlot||e.parentNode||(Ke(e)?e.host:null)||et(e)}function at(e){return We(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function it(e){for(var t=Fe(e),n=at(e);n&&Xe(n)&&"static"===getComputedStyle(n).position;)n=at(n);return n&&("html"===Be(n)||"body"===Be(n)&&"static"===getComputedStyle(n).position&&!qe(n))?t:n||function(e){var t=ot(e);for(Ke(t)&&(t=t.host);We(t)&&!["html","body"].includes(Be(t));){if(qe(t))return t;t=t.parentNode}return null}(e)||t}function ut(e){if(We(e))return{width:e.offsetWidth,height:e.offsetHeight};var t=Je(e);return{width:t.width,height:t.height}}function ct(e){var t=ot(e);return["html","body","#document"].includes(Be(t))?e.ownerDocument.body:We(t)&&Ye(t)?t:ct(t)}function lt(e,t){var n;void 0===t&&(t=[]);var r=ct(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Fe(r),i=o?[a].concat(a.visualViewport||[],Ye(r)?r:[]):r,u=t.concat(i);return o?u:u.concat(lt(i))}function st(e,t,n){return"viewport"===t?me(function(e,t){var n=Fe(e),r=et(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,u=0,c=0;if(o){a=o.width,i=o.height;var l=$e();(l||!l&&"fixed"===t)&&(u=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:u,y:c}}(e,n)):He(t)?function(e,t){var n=Je(e,!1,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:r,left:o,x:o,y:r,right:o+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):me(function(e){var t,n=et(e),r=tt(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Ze(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Ze(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+nt(e),c=-r.scrollTop;return"rtl"===Ue(o||n).direction&&(u+=Ze(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:u,y:c}}(et(e)))}function ft(e){var t=lt(e),n=["absolute","fixed"].includes(Ue(e).position)&&We(e)?it(e):e;return He(n)?t.filter((function(e){return He(e)&&function(e,t){var n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ke(n)){var r=t;do{if(r&&e===r)return!0;r=r.parentNode||r.host}while(r)}return!1}(e,n)&&"body"!==Be(e)})):[]}var dt={getClippingRect:function(e){var t=e.element,n=e.boundary,r=e.rootBoundary,o=e.strategy,a="clippingAncestors"===n?ft(t):[].concat(n),i=[].concat(Object(p.a)(a),[r]),u=i[0],c=i.reduce((function(e,n){var r=st(t,n,o);return e.top=Ze(r.top,e.top),e.right=Qe(r.right,e.right),e.bottom=Qe(r.bottom,e.bottom),e.left=Ze(r.left,e.left),e}),st(t,u,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){var t=e.rect,n=e.offsetParent,r=e.strategy,a=We(n),i=et(n);if(n===i)return t;var u={scrollLeft:0,scrollTop:0},c={x:0,y:0};if((a||!a&&"fixed"!==r)&&(("body"!==Be(n)||Ye(i))&&(u=tt(n)),We(n))){var l=Je(n,!0);c.x=l.x+n.clientLeft,c.y=l.y+n.clientTop}return Object(o.a)(Object(o.a)({},t),{},{x:t.x-u.scrollLeft+c.x,y:t.y-u.scrollTop+c.y})},isElement:He,getDimensions:ut,getOffsetParent:it,getDocumentElement:et,getElementRects:function(e){var t=e.reference,n=e.floating,r=e.strategy;return{reference:rt(t,it(n),r),floating:Object(o.a)(Object(o.a)({},ut(n)),{},{x:0,y:0})}},getClientRects:function(e){return Array.from(e.getClientRects())},isRTL:function(e){return"rtl"===Ue(e).direction}};function pt(e,t,n,r){void 0===r&&(r={});var o=r,a=o.ancestorScroll,i=void 0===a||a,u=o.ancestorResize,c=void 0===u||u,l=o.elementResize,s=void 0===l||l,f=o.animationFrame,d=void 0!==f&&f,v=i&&!d,h=c&&!d,m=v||h?[].concat(Object(p.a)(He(e)?lt(e):[]),Object(p.a)(lt(t))):[];m.forEach((function(e){v&&e.addEventListener("scroll",n,{passive:!0}),h&&e.addEventListener("resize",n)}));var b,y=null;if(s){var g=!0;y=new ResizeObserver((function(){g||n(),g=!1})),He(e)&&!d&&y.observe(e),y.observe(t)}var w=d?Je(e):null;return d&&function t(){var r=Je(e);!w||r.x===w.x&&r.y===w.y&&r.width===w.width&&r.height===w.height||n();w=r,b=requestAnimationFrame(t)}(),n(),function(){var e;m.forEach((function(e){v&&e.removeEventListener("scroll",n),h&&e.removeEventListener("resize",n)})),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(b)}}var vt="undefined"!==typeof document?c.useLayoutEffect:c.useEffect;function ht(e,t){if(e===t)return!0;if(typeof e!==typeof t)return!1;if("function"===typeof e&&e.toString()===t.toString())return!0;var n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!==r--;)if(!ht(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){var a=o[r];if(("_owner"!==a||!e.$$typeof)&&!ht(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function mt(e){var t=void 0===e?{}:e,n=t.middleware,r=t.placement,a=void 0===r?"bottom":r,u=t.strategy,l=void 0===u?"absolute":u,s=t.whileElementsMounted,f=c.useRef(null),d=c.useRef(null),p=function(e){var t=c.useRef(e);return vt((function(){t.current=e})),t}(s),v=c.useRef(null),h=c.useState({x:null,y:null,strategy:l,placement:a,middlewareData:{}}),m=Object(i.a)(h,2),y=m[0],g=m[1],w=c.useState(n),O=Object(i.a)(w,2),_=O[0],j=O[1];ht(null==_?void 0:_.map((function(e){return e.options})),null==n?void 0:n.map((function(e){return e.options})))||j(n);var E=c.useCallback((function(){f.current&&d.current&&function(e,t,n){return ve(e,t,Object(o.a)({platform:dt},n))}(f.current,d.current,{middleware:_,placement:a,strategy:l}).then((function(e){S.current&&b.flushSync((function(){g(e)}))}))}),[_,a,l]);vt((function(){S.current&&E()}),[E]);var S=c.useRef(!1);vt((function(){return S.current=!0,function(){S.current=!1}}),[]);var k=c.useCallback((function(){if("function"===typeof v.current&&(v.current(),v.current=null),f.current&&d.current)if(p.current){var e=p.current(f.current,d.current,E);v.current=e}else E()}),[E,p]),x=c.useCallback((function(e){f.current=e,k()}),[k]),C=c.useCallback((function(e){d.current=e,k()}),[k]),T=c.useMemo((function(){return{reference:f,floating:d}}),[]);return c.useMemo((function(){return Object(o.a)(Object(o.a)({},y),{},{update:E,refs:T,reference:x,floating:C})}),[y,E,T,x,C])}var bt=function(e){var t=e.element,n=e.padding;return{name:"arrow",options:e,fn:function(e){return r=t,Object.prototype.hasOwnProperty.call(r,"current")?null!=t.current?_e({element:t.current,padding:n}).fn(e):{}:t?_e({element:t,padding:n}).fn(e):{};var r}}};var yt=["__scopePopper","virtualRef"],gt=["__scopePopper","side","sideOffset","align","alignOffset","arrowPadding","collisionBoundary","collisionPadding","sticky","hideWhenDetached","avoidCollisions"],wt="Popper",Ot=h(wt),_t=Object(i.a)(Ot,2),jt=_t[0],Et=_t[1],St=jt(wt),kt=Object(i.a)(St,2),xt=kt[0],Ct=kt[1],Tt=function(e){var t=e.__scopePopper,n=e.children,r=Object(c.useState)(null),o=Object(i.a)(r,2),a=o[0],u=o[1];return Object(c.createElement)(xt,{scope:t,anchor:a,onAnchorChange:u},n)},Rt="PopperAnchor",Pt=Object(c.forwardRef)((function(e,t){var n=e.__scopePopper,r=e.virtualRef,o=Object(a.a)(e,yt),i=Ct(Rt,n),l=Object(c.useRef)(null),s=d(t,l);return Object(c.useEffect)((function(){i.onAnchorChange((null===r||void 0===r?void 0:r.current)||l.current)})),r?null:Object(c.createElement)(k.div,Object(u.a)({},o,{ref:s}))})),At="PopperContent",Lt=jt(At),Nt=Object(i.a)(Lt,2),Mt=Nt[0],Dt=(Nt[1],jt(At,{hasParent:!1,positionUpdateFns:new Set})),It=Object(i.a)(Dt,2),zt=It[0],Ft=It[1],Ut=Object(c.forwardRef)((function(e,t){var n,u,l,s,f,p,v,h,m,b,y=e.__scopePopper,g=e.side,w=void 0===g?"bottom":g,O=e.sideOffset,_=void 0===O?0:O,j=e.align,E=void 0===j?"center":j,S=e.alignOffset,x=void 0===S?0:S,C=e.arrowPadding,T=void 0===C?0:C,R=e.collisionBoundary,P=void 0===R?[]:R,A=e.collisionPadding,L=void 0===A?0:A,N=e.sticky,M=void 0===N?"partial":N,D=e.hideWhenDetached,I=void 0!==D&&D,z=e.avoidCollisions,F=void 0===z||z,U=Object(a.a)(e,gt),B=Ct(At,y),V=Object(c.useState)(null),W=Object(i.a)(V,2),H=W[0],K=W[1],Y=d(t,(function(e){return K(e)})),X=Object(c.useState)(null),q=Object(i.a)(X,2),$=q[0],Q=q[1],Z=function(e){var t=Object(c.useState)(void 0),n=Object(i.a)(t,2),r=n[0],o=n[1];return J((function(){if(e){o({width:e.offsetWidth,height:e.offsetHeight});var t=new ResizeObserver((function(t){if(Array.isArray(t)&&t.length){var n,r,a=t[0];if("borderBoxSize"in a){var i=a.borderBoxSize,u=Array.isArray(i)?i[0]:i;n=u.inlineSize,r=u.blockSize}else n=e.offsetWidth,r=e.offsetHeight;o({width:n,height:r})}}));return t.observe(e,{box:"border-box"}),function(){return t.unobserve(e)}}o(void 0)}),[e]),r}($),G=null!==(n=null===Z||void 0===Z?void 0:Z.width)&&void 0!==n?n:0,ee=null!==(u=null===Z||void 0===Z?void 0:Z.height)&&void 0!==u?u:0,te=w+("center"!==E?"-"+E:""),ne="number"===typeof L?L:Object(o.a)({top:0,right:0,bottom:0,left:0},L),re=Array.isArray(P)?P:[P],ie=re.length>0,ue={padding:ne,boundary:re.filter(Vt),altBoundary:ie},ce=mt({strategy:"fixed",placement:te,whileElementsMounted:pt,middleware:[(b={mainAxis:_+ee,alignmentAxis:x},void 0===b&&(b=0),{name:"offset",options:b,fn:function(e){return Object(ae.a)(oe.a.mark((function t(){var n,r,o;return oe.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.x,r=e.y,t.next=3,Ne(e,b);case 3:return o=t.sent,t.abrupt("return",{x:n+o.x,y:r+o.y,data:o});case 5:case"end":return t.stop()}}),t)})))()}}),F?Ie(Object(o.a)({mainAxis:!0,crossAxis:!1,limiter:"partial"===M?(void 0===m&&(m={}),{options:m,fn:function(e){var t,n=e.x,a=e.y,i=e.placement,u=e.rects,c=e.middlewareData,l=m,s=l.offset,f=void 0===s?0:s,d=l.mainAxis,p=void 0===d||d,v=l.crossAxis,h=void 0===v||v,b={x:n,y:a},y=fe(i),g=De(y),w=b[y],O=b[g],_="function"===typeof f?f(Object(o.a)(Object(o.a)({},u),{},{placement:i})):f,j="number"===typeof _?{mainAxis:_,crossAxis:0}:Object(o.a)({mainAxis:0,crossAxis:0},_);if(p){var E="y"===y?"height":"width",S=u.reference[y]-u.floating[E]+j.mainAxis,k=u.reference[y]+u.reference[E]-j.mainAxis;wk&&(w=k)}if(h){var x,C,T,R,P="y"===y?"width":"height",A=["top","left"].includes(le(i)),L=u.reference[g]-u.floating[P]+(A&&null!=(x=null==(C=c.offset)?void 0:C[g])?x:0)+(A?0:j.crossAxis),N=u.reference[g]+u.reference[P]+(A?0:null!=(T=null==(R=c.offset)?void 0:R[g])?T:0)-(A?j.crossAxis:0);ON&&(O=N)}return t={},Object(r.a)(t,y,w),Object(r.a)(t,g,O),t}}):void 0},ue)):void 0,$?bt({element:$,padding:T}):void 0,F?Re(Object(o.a)({},ue)):void 0,Wt({arrowWidth:G,arrowHeight:ee}),I?Le({strategy:"referenceHidden"}):void 0].filter(Bt)}),se=ce.reference,de=ce.floating,pe=ce.strategy,ve=ce.x,he=ce.y,me=ce.placement,be=ce.middlewareData,ye=ce.update;J((function(){se(B.anchor)}),[se,B.anchor]);var ge=null!==ve&&null!==he,we=Ht(me),Oe=Object(i.a)(we,2),_e=Oe[0],je=Oe[1],Ee=null===(l=be.arrow)||void 0===l?void 0:l.x,Se=null===(s=be.arrow)||void 0===s?void 0:s.y,ke=0!==(null===(f=be.arrow)||void 0===f?void 0:f.centerOffset),xe=Object(c.useState)(),Ce=Object(i.a)(xe,2),Te=Ce[0],Pe=Ce[1];J((function(){H&&Pe(window.getComputedStyle(H).zIndex)}),[H]);var Ae=Ft(At,y),Me=Ae.hasParent,ze=Ae.positionUpdateFns,Fe=!Me;Object(c.useLayoutEffect)((function(){if(!Fe)return ze.add(ye),function(){ze.delete(ye)}}),[Fe,ze,ye]),Object(c.useLayoutEffect)((function(){Fe&&ge&&Array.from(ze).reverse().forEach((function(e){return requestAnimationFrame(e)}))}),[Fe,ge,ze]);var Ue=Object(o.a)(Object(o.a)({"data-side":_e,"data-align":je},U),{},{ref:Y,style:Object(o.a)(Object(o.a)({},U.style),{},{animation:ge?void 0:"none",opacity:null!==(p=be.hide)&&void 0!==p&&p.referenceHidden?0:void 0})});return Object(c.createElement)("div",{ref:de,"data-radix-popper-content-wrapper":"",style:Object(r.a)({position:pe,left:0,top:0,transform:ge?"translate3d(".concat(Math.round(ve),"px, ").concat(Math.round(he),"px, 0)"):"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Te},"--radix-popper-transform-origin",[null===(v=be.transformOrigin)||void 0===v?void 0:v.x,null===(h=be.transformOrigin)||void 0===h?void 0:h.y].join(" "))},Object(c.createElement)(Mt,{scope:y,placedSide:_e,onArrowChange:Q,arrowX:Ee,arrowY:Se,shouldHideArrow:ke},Fe?Object(c.createElement)(zt,{scope:y,hasParent:!0,positionUpdateFns:ze},Object(c.createElement)(k.div,Ue)):Object(c.createElement)(k.div,Ue)))}));function Bt(e){return void 0!==e}function Vt(e){return null!==e}var Wt=function(e){return{name:"transformOrigin",options:e,fn:function(t){var n,r,o,a,u,c=t.placement,l=t.rects,s=t.middlewareData,f=0!==(null===(n=s.arrow)||void 0===n?void 0:n.centerOffset),d=f?0:e.arrowWidth,p=f?0:e.arrowHeight,v=Ht(c),h=Object(i.a)(v,2),m=h[0],b={start:"0%",center:"50%",end:"100%"}[h[1]],y=(null!==(r=null===(o=s.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(a=null===(u=s.arrow)||void 0===u?void 0:u.y)&&void 0!==a?a:0)+p/2,w="",O="";return"bottom"===m?(w=f?b:"".concat(y,"px"),O="".concat(-p,"px")):"top"===m?(w=f?b:"".concat(y,"px"),O="".concat(l.floating.height+p,"px")):"right"===m?(w="".concat(-p,"px"),O=f?b:"".concat(g,"px")):"left"===m&&(w="".concat(l.floating.width+p,"px"),O=f?b:"".concat(g,"px")),{data:{x:w,y:O}}}}};function Ht(e){var t=e.split("-"),n=Object(i.a)(t,2),r=n[0],o=n[1];return[r,void 0===o?"center":o]}var Kt=Tt,Yt=Pt,Xt=Ut,qt=["container"],$t=Object(c.forwardRef)((function(e,t){var n,r=e.container,o=void 0===r?null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body:r,i=Object(a.a)(e,qt);return o?y.a.createPortal(Object(c.createElement)(k.div,Object(u.a)({},i,{ref:t})),o):null}));var Qt=function(e){var t=e.present,n=e.children,r=function(e){var t=Object(c.useState)(),n=Object(i.a)(t,2),r=n[0],o=n[1],a=Object(c.useRef)({}),u=Object(c.useRef)(e),l=Object(c.useRef)("none"),s=function(e,t){return Object(c.useReducer)((function(e,n){var r=t[e][n];return null!==r&&void 0!==r?r:e}),e)}(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),f=Object(i.a)(s,2),d=f[0],p=f[1];return Object(c.useEffect)((function(){var e=Zt(a.current);l.current="mounted"===d?e:"none"}),[d]),J((function(){var t=a.current,n=u.current;if(n!==e){var r=l.current,o=Zt(t);if(e)p("MOUNT");else if("none"===o||"none"===(null===t||void 0===t?void 0:t.display))p("UNMOUNT");else{p(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}u.current=e}}),[e,p]),J((function(){if(r){var e=function(e){var t=Zt(a.current).includes(e.animationName);e.target===r&&t&&Object(b.flushSync)((function(){return p("ANIMATION_END")}))},t=function(e){e.target===r&&(l.current=Zt(a.current))};return r.addEventListener("animationstart",t),r.addEventListener("animationcancel",e),r.addEventListener("animationend",e),function(){r.removeEventListener("animationstart",t),r.removeEventListener("animationcancel",e),r.removeEventListener("animationend",e)}}p("ANIMATION_END")}),[r,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:Object(c.useCallback)((function(e){e&&(a.current=getComputedStyle(e)),o(e)}),[])}}(t),o="function"===typeof n?n({present:r.isPresent}):c.Children.only(n),a=d(r.ref,o.ref);return"function"===typeof n||r.isPresent?Object(c.cloneElement)(o,{ref:a}):null};function Zt(e){return(null===e||void 0===e?void 0:e.animationName)||"none"}function Gt(e){var t=e.prop,n=e.defaultProp,r=e.onChange,o=void 0===r?function(){}:r,a=function(e){var t=e.defaultProp,n=e.onChange,r=Object(c.useState)(t),o=Object(i.a)(r,1)[0],a=Object(c.useRef)(o),u=x(n);return Object(c.useEffect)((function(){a.current!==o&&(u(o),a.current=o)}),[o,a,u]),r}({defaultProp:n,onChange:o}),u=Object(i.a)(a,2),l=u[0],s=u[1],f=void 0!==t,d=f?t:l,p=x(o);return[d,Object(c.useCallback)((function(e){if(f){var n="function"===typeof e?e(t):e;n!==t&&p(n)}else s(e)}),[f,t,s,p])]}Qt.displayName="Presence";var Jt=n(26),en=n(21),tn="right-scroll-bar-position",nn="width-before-scroll-bar",rn=n(83),on=n(76),an=Object(on.a)(),un=function(){},cn=c.forwardRef((function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:un,onWheelCapture:un,onTouchMoveCapture:un}),o=r[0],a=r[1],i=e.forwardProps,u=e.children,l=e.className,s=e.removeScrollBar,f=e.enabled,d=e.shards,p=e.sideCar,v=e.noIsolation,h=e.inert,m=e.allowPinchZoom,b=e.as,y=void 0===b?"div":b,g=Object(en.b)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=p,O=Object(rn.a)([n,t]),_=Object(en.a)(Object(en.a)({},g),o);return c.createElement(c.Fragment,null,f&&c.createElement(w,{sideCar:an,removeScrollBar:s,shards:d,noIsolation:v,inert:h,setCallbacks:a,allowPinchZoom:!!m,lockRef:n}),i?c.cloneElement(c.Children.only(u),Object(en.a)(Object(en.a)({},_),{ref:O})):c.createElement(y,Object(en.a)({},_,{className:l,ref:O}),u))}));cn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},cn.classNames={fullWidth:nn,zeroRight:tn};var ln=n(75),sn=n(41);var fn=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Object(sn.a)();return t&&e.setAttribute("nonce",t),e}())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},dn=function(){var e=function(){var e=fn();return function(t,n){c.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}}();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},pn={left:0,top:0,right:0,gap:0},vn=function(e){return parseInt(e||"",10)||0},hn=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return pn;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[vn(n),vn(r),vn(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},mn=dn(),bn=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(tn," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(nn," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(tn," .").concat(tn," {\n right: 0 ").concat(r,";\n }\n \n .").concat(nn," .").concat(nn," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},yn=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,a=c.useMemo((function(){return hn(o)}),[o]);return c.createElement(mn,{styles:bn(a,!t,o,n?"":"!important")})},gn=!1;if("undefined"!==typeof window)try{var wn=Object.defineProperty({},"passive",{get:function(){return gn=!0,!0}});window.addEventListener("test",wn,wn),window.removeEventListener("test",wn,wn)}catch(fr){gn=!1}var On=!!gn&&{passive:!1},_n=function(e,t){var n=t;do{if("undefined"!==typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),jn(e,n)){var r=En(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},jn=function(e,t){return"v"===e?function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)}(t):function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)}(t)},En=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Sn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},kn=function(e){return[e.deltaX,e.deltaY]},xn=function(e){return e&&"current"in e?e.current:e},Cn=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Tn=0,Rn=[];var Pn=Object(ln.a)(an,(function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(Tn++)[0],a=c.useState((function(){return dn()}))[0],i=c.useRef(e);c.useEffect((function(){i.current=e}),[e]),c.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=Object(en.c)([e.lockRef.current],(e.shards||[]).map(xn),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var u=c.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!i.current.allowPinchZoom;var o,a=Sn(e),u=n.current,c="deltaX"in e?e.deltaX:u[0]-a[0],l="deltaY"in e?e.deltaY:u[1]-a[1],s=e.target,f=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===s.type)return!1;var d=_n(f,s);if(!d)return!0;if(d?o=f:(o="v"===f?"h":"v",d=_n(f,s)),!d)return!1;if(!r.current&&"changedTouches"in e&&(c||l)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=a*r,u=n.target,c=t.contains(u),l=!1,s=i>0,f=0,d=0;do{var p=En(e,u),v=p[0],h=p[1]-p[2]-a*v;(v||h)&&jn(e,u)&&(f+=h,d+=v),u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return(s&&(o&&0===f||!o&&i>f)||!s&&(o&&0===d||!o&&-i>d))&&(l=!0),l}(p,t,e,"h"===p?c:l,!0)}),[]),l=c.useCallback((function(e){var n=e;if(Rn.length&&Rn[Rn.length-1]===a){var r="deltaY"in n?kn(n):Sn(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.preventDefault();else if(!o){var c=(i.current.shards||[]).map(xn).filter(Boolean).filter((function(e){return e.contains(n.target)}));(c.length>0?u(n,c[0]):!i.current.noIsolation)&&n.preventDefault()}}}),[]),s=c.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),f=c.useCallback((function(e){n.current=Sn(e),r.current=void 0}),[]),d=c.useCallback((function(t){s(t.type,kn(t),t.target,u(t,e.lockRef.current))}),[]),p=c.useCallback((function(t){s(t.type,Sn(t),t.target,u(t,e.lockRef.current))}),[]);c.useEffect((function(){return Rn.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,On),document.addEventListener("touchmove",l,On),document.addEventListener("touchstart",f,On),function(){Rn=Rn.filter((function(e){return e!==a})),document.removeEventListener("wheel",l,On),document.removeEventListener("touchmove",l,On),document.removeEventListener("touchstart",f,On)}}),[]);var v=e.removeScrollBar,h=e.inert;return c.createElement(c.Fragment,null,h?c.createElement(a,{styles:Cn(o)}):null,v?c.createElement(yn,{gapMode:"margin"}):null)})),An=c.forwardRef((function(e,t){return c.createElement(cn,Object(en.a)({},e,{ref:t,sideCar:Pn}))}));An.classNames=cn.classNames;var Ln=An,Nn=["__scopePopover"],Mn=["forceMount"],Dn=["__scopePopover","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"],In="Popover",zn=h(In,[Et]),Fn=Object(i.a)(zn,2),Un=Fn[0],Bn=(Fn[1],Et()),Vn=Un(In),Wn=Object(i.a)(Vn,2),Hn=Wn[0],Kn=Wn[1],Yn=function(e){var t=e.__scopePopover,n=e.children,r=e.open,o=e.defaultOpen,a=e.onOpenChange,u=e.modal,l=void 0!==u&&u,s=Bn(t),f=Object(c.useRef)(null),d=Object(c.useState)(!1),p=Object(i.a)(d,2),v=p[0],h=p[1],m=Gt({prop:r,defaultProp:o,onChange:a}),b=Object(i.a)(m,2),y=b[0],g=void 0!==y&&y,w=b[1];return Object(c.createElement)(Kt,s,Object(c.createElement)(Hn,{scope:t,contentId:ne(),triggerRef:f,open:g,onOpenChange:w,onOpenToggle:Object(c.useCallback)((function(){return w((function(e){return!e}))}),[w]),hasCustomAnchor:v,onCustomAnchorAdd:Object(c.useCallback)((function(){return h(!0)}),[]),onCustomAnchorRemove:Object(c.useCallback)((function(){return h(!1)}),[]),modal:l},n))},Xn="PopoverTrigger",qn=Object(c.forwardRef)((function(e,t){var n=e.__scopePopover,r=Object(a.a)(e,Nn),o=Kn(Xn,n),i=Bn(n),s=d(t,o.triggerRef),f=Object(c.createElement)(k.button,Object(u.a)({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ir(o.open)},r,{ref:s,onClick:l(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?f:Object(c.createElement)(Yt,Object(u.a)({asChild:!0},i),f)})),$n="PopoverPortal",Qn=Un($n,{forceMount:void 0}),Zn=Object(i.a)(Qn,2),Gn=Zn[0],Jn=Zn[1],er=function(e){var t=e.__scopePopover,n=e.forceMount,r=e.children,o=e.container,a=Kn($n,t);return Object(c.createElement)(Gn,{scope:t,forceMount:n},Object(c.createElement)(Qt,{present:n||a.open},Object(c.createElement)($t,{asChild:!0,container:o},r)))},tr="PopoverContent",nr=Object(c.forwardRef)((function(e,t){var n=Jn(tr,e.__scopePopover),r=e.forceMount,o=void 0===r?n.forceMount:r,i=Object(a.a)(e,Mn),l=Kn(tr,e.__scopePopover);return Object(c.createElement)(Qt,{present:o||l.open},l.modal?Object(c.createElement)(rr,Object(u.a)({},i,{ref:t})):Object(c.createElement)(or,Object(u.a)({},i,{ref:t})))})),rr=Object(c.forwardRef)((function(e,t){var n=Kn(tr,e.__scopePopover),r=Object(c.useRef)(null),o=d(t,r),a=Object(c.useRef)(!1);return Object(c.useEffect)((function(){var e=r.current;if(e)return Object(Jt.a)(e)}),[]),Object(c.createElement)(Ln,{as:O,allowPinchZoom:!0},Object(c.createElement)(ar,Object(u.a)({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:l(e.onCloseAutoFocus,(function(e){var t;e.preventDefault(),a.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:l(e.onPointerDownOutside,(function(e){var t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:l(e.onFocusOutside,(function(e){return e.preventDefault()}),{checkForDefaultPrevented:!1})})))})),or=Object(c.forwardRef)((function(e,t){var n=Kn(tr,e.__scopePopover),r=Object(c.useRef)(!1);return Object(c.createElement)(ar,Object(u.a)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:function(t){var o,a;(null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented)||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault());r.current=!1},onInteractOutside:function(t){var o,a;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0);var i=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(i))&&t.preventDefault()}}))})),ar=Object(c.forwardRef)((function(e,t){var n=e.__scopePopover,i=e.trapFocus,l=e.onOpenAutoFocus,s=e.onCloseAutoFocus,f=e.disableOutsidePointerEvents,d=e.onEscapeKeyDown,p=e.onPointerDownOutside,v=e.onFocusOutside,h=e.onInteractOutside,m=Object(a.a)(e,Dn),b=Kn(tr,n),y=Bn(n);return z(),Object(c.createElement)(K,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:l,onUnmountAutoFocus:s},Object(c.createElement)(N,{asChild:!0,disableOutsidePointerEvents:f,onInteractOutside:h,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:v,onDismiss:function(){return b.onOpenChange(!1)}},Object(c.createElement)(Xt,Object(u.a)({"data-state":ir(b.open),role:"dialog",id:b.contentId},y,m,{ref:t,style:Object(o.a)(Object(o.a)({},m.style),{},Object(r.a)({},"--radix-popover-content-transform-origin","var(--radix-popper-transform-origin)"))}))))}));function ir(e){return e?"open":"closed"}var ur=Yn,cr=qn,lr=er,sr=nr},function(e,t,n){"use strict";n.d(t,"b",(function(){return re})),n.d(t,"d",(function(){return oe})),n.d(t,"c",(function(){return ae})),n.d(t,"a",(function(){return ie}));var r=n(2),o=n(8),a=n(4),i=n(3),u=n(44),c=n(19),l=n(27),s=n(0);function f(e){var t=s.useRef(e);return s.useEffect((function(){t.current=e})),s.useMemo((function(){return function(){for(var e,n,r=arguments.length,o=new Array(r),a=0;a0,V=U>=F,W=function(e){var t=f((function(e){var t=e.target,n=Object(o.a)(C.branches).some((function(e){return e.contains(t)}));V&&!n&&(null==v||v(e),null==S||S(e),e.defaultPrevented||null==k||k())})),n=s.useRef(!1);return s.useEffect((function(){var e=function(e){e.target&&!n.current&&E("dismissableLayer.pointerDownOutside",t,{originalEvent:e}),n.current=!1},r=window.setTimeout((function(){document.addEventListener("pointerdown",e)}),0);return function(){window.clearTimeout(r),document.removeEventListener("pointerdown",e)}}),[t]),{onPointerDownCapture:function(){return n.current=!0}}}(),H=function(e){var t=f((function(e){var t=e.target;Object(o.a)(C.branches).some((function(e){return e.contains(t)}))||(null==h||h(e),null==S||S(e),e.defaultPrevented||null==k||k())})),n=s.useRef(!1);return s.useEffect((function(){var e=function(e){e.target&&!n.current&&E("dismissableLayer.focusOutside",t,{originalEvent:e})};return document.addEventListener("focusin",e),function(){return document.removeEventListener("focusin",e)}}),[t]),{onFocusCapture:function(){return n.current=!0},onBlurCapture:function(){return n.current=!1}}}();return Object(m.a)((function(e){U===C.layers.size-1&&(null==l||l(e),e.defaultPrevented||null==k||k())})),function(e){var t=e.disabled,n=s.useRef(!1);Object(c.a)((function(){if(t){var e=function(){0===--b&&(document.body.style.pointerEvents=d)},r=function(e){n.current="mouse"!==e.pointerType};return 0===b&&(d=document.body.style.pointerEvents),document.body.style.pointerEvents="none",b++,document.addEventListener("pointerup",r),function(){n.current?document.addEventListener("click",e,{once:!0}):e(),document.removeEventListener("pointerup",r)}}}),[t])}({disabled:u}),s.useEffect((function(){P&&(u&&C.layersWithOutsidePointerEventsDisabled.add(P),C.layers.add(P),j())}),[P,u,C]),s.useEffect((function(){return function(){P&&(C.layers.delete(P),C.layersWithOutsidePointerEventsDisabled.delete(P),j())}}),[P,C]),s.useEffect((function(){var e=function(){return N({})};return document.addEventListener("dismissableLayer.update",e),function(){return document.removeEventListener("dismissableLayer.update",e)}}),[]),s.createElement(p.a.div,Object(w.a)({},x,{ref:M,style:Object(r.a)({pointerEvents:B?V?"auto":"none":void 0},e.style),onFocusCapture:Object(g.a)(e.onFocusCapture,H.onFocusCapture),onBlurCapture:Object(g.a)(e.onBlurCapture,H.onBlurCapture),onPointerDownCapture:Object(g.a)(e.onPointerDownCapture,W.onPointerDownCapture)}))})),k=s.forwardRef((function(e,t){var n=s.useContext(_),r=s.useRef(null),o=Object(y.b)(t,r);return s.useEffect((function(){var e=r.current;if(e)return n.branches.add(e),function(){n.branches.delete(e)}}),[n.branches]),s.createElement(p.a.div,Object(w.a)({},e,{ref:o}))})),x=n(22),C=n(12),T=["__scopeToast","hotkey","label"],R=["forceMount","open","defaultOpen","onOpenChange"],P=["__scopeToast","type","duration","open","onClose","onEscapeKeyDown","onSwipeStart","onSwipeMove","onSwipeCancel","onSwipeEnd"],A=["__scopeToast"],L=["__scopeToast"],N=["altText"],M=["__scopeToast"],D=Object(x.b)("Toast"),I=Object(i.a)(D,2),z=I[0],F=(I[1],z("ToastProvider")),U=Object(i.a)(F,2),B=U[0],V=U[1],W=["F8"],H=s.forwardRef((function(e,t){var n=e.__scopeToast,r=e.hotkey,u=void 0===r?W:r,c=e.label,l=void 0===c?"Notifications ({hotkey})":c,f=Object(a.a)(e,T),d=V("ToastViewport",n),v=s.useRef(null),h=s.useRef(null),m=Object(y.b)(t,h,d.onViewportChange),b=u.join("+").replace(/Key/g,"").replace(/Digit/g,"");return s.useEffect((function(){var e=function(e){var t;u.every((function(t){return e[t]||e.code===t}))&&(null===(t=h.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}),[u]),s.useEffect((function(){var e=v.current,t=h.current;if(e&&t){var n=function(){var e=new Event("toast.viewportPause");t.dispatchEvent(e),d.isClosePausedRef.current=!0},r=function(){var e=new Event("toast.viewportResume");t.dispatchEvent(e),d.isClosePausedRef.current=!1};return e.addEventListener("focusin",n),e.addEventListener("focusout",r),e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),window.addEventListener("blur",n),window.addEventListener("focus",r),function(){e.removeEventListener("focusin",n),e.removeEventListener("focusout",r),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}}),[d.isClosePausedRef]),s.useEffect((function(){var e=h.current;if(e){var t=[],n=new MutationObserver((function(n){Object(i.a)(n,1)[0].addedNodes.forEach((function(n){t.includes(n)||(e.prepend(n),t=[].concat(Object(o.a)(t),[n]))}))}));return n.observe(e,{childList:!0}),function(){return n.disconnect()}}}),[]),s.createElement(k,{ref:v,role:"region","aria-label":l.replace("{hotkey}",b),tabIndex:-1,style:{pointerEvents:d.toastCount>0?void 0:"none"}},s.createElement(p.a.ol,Object(w.a)({tabIndex:-1},f,{ref:m})))})),K=s.forwardRef((function(e,t){var n=e.forceMount,r=e.open,o=e.defaultOpen,u=e.onOpenChange,c=Object(a.a)(e,R),f=Object(l.a)({prop:r,defaultProp:o,onChange:u}),d=Object(i.a)(f,2),p=d[0],h=void 0===p||p,m=d[1];return s.createElement(v.a,{present:n||h},s.createElement(Q,Object(w.a)({open:h},c,{ref:t,onClose:function(){return m(!1)},onSwipeStart:Object(g.a)(e.onSwipeStart,(function(e){e.currentTarget.setAttribute("data-swipe","start")})),onSwipeMove:Object(g.a)(e.onSwipeMove,(function(e){var t=e.detail.delta,n=t.x,r=t.y;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(n,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(r,"px"))})),onSwipeCancel:Object(g.a)(e.onSwipeCancel,(function(e){e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")})),onSwipeEnd:Object(g.a)(e.onSwipeEnd,(function(e){var t=e.detail.delta,n=t.x,r=t.y;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x","".concat(n,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(r,"px")),m(!1)}))})))})),Y=z("Toast",{isInteractive:!1,onClose:function(){}}),X=Object(i.a)(Y,2),q=X[0],$=X[1],Q=s.forwardRef((function(e,t){var n=e.__scopeToast,o=e.type,i=void 0===o?"foreground":o,u=e.duration,c=e.open,l=e.onClose,d=e.onEscapeKeyDown,v=e.onSwipeStart,h=e.onSwipeMove,m=e.onSwipeCancel,b=e.onSwipeEnd,O=Object(a.a)(e,P),_=V("Toast",n),j=s.useRef(null),E=Object(y.b)(t,j),k=s.useRef(null),x=s.useRef(null),T=u||_.duration,R=s.useRef(0),A=s.useRef(T),L=s.useRef(0),N=_.onToastAdd,M=_.onToastRemove,D=f((function(){var e,t;(null===(e=j.current)||void 0===e?void 0:e.contains(document.activeElement))&&(null===(t=_.viewport)||void 0===t||t.focus()),l()})),I=s.useCallback((function(e){e&&e!==1/0&&(window.clearTimeout(L.current),R.current=(new Date).getTime(),L.current=window.setTimeout(D,e))}),[D]);return s.useEffect((function(){var e=_.viewport;if(e){var t=function(){I(A.current)},n=function(){var e=(new Date).getTime()-R.current;A.current=A.current-e,window.clearTimeout(L.current)};return e.addEventListener("toast.viewportPause",n),e.addEventListener("toast.viewportResume",t),function(){e.removeEventListener("toast.viewportPause",n),e.removeEventListener("toast.viewportResume",t)}}}),[_.viewport,T,I]),s.useEffect((function(){c&&!_.isClosePausedRef.current&&I(T)}),[c,T,_.isClosePausedRef,I]),s.useEffect((function(){return N(),function(){return M()}}),[N,M]),_.viewport?s.createElement(s.Fragment,null,s.createElement(Z,{__scopeToast:n,role:"status","aria-live":"foreground"===i?"assertive":"polite","aria-atomic":!0},e.children),s.createElement(q,{scope:n,isInteractive:!0,onClose:D},C.createPortal(s.createElement(S,{asChild:!0,onEscapeKeyDown:Object(g.a)(d,(function(){_.isFocusedToastEscapeKeyDownRef.current||D(),_.isFocusedToastEscapeKeyDownRef.current=!1}))},s.createElement(p.a.li,Object(w.a)({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":c?"open":"closed","data-swipe-direction":_.swipeDirection},O,{ref:E,style:Object(r.a)({userSelect:"none",touchAction:"none"},e.style),onKeyDown:Object(g.a)(e.onKeyDown,(function(e){"Escape"===e.key&&(null==d||d(e.nativeEvent),e.nativeEvent.defaultPrevented||(_.isFocusedToastEscapeKeyDownRef.current=!0,D()))})),onPointerDown:Object(g.a)(e.onPointerDown,(function(e){0===e.button&&(k.current={x:e.clientX,y:e.clientY})})),onPointerMove:Object(g.a)(e.onPointerMove,(function(e){if(k.current){var t=e.clientX-k.current.x,n=e.clientY-k.current.y,r=Boolean(x.current),o=["left","right"].includes(_.swipeDirection),a=["left","up"].includes(_.swipeDirection)?Math.min:Math.max,i=o?a(0,t):0,u=o?0:a(0,n),c="touch"===e.pointerType?10:2,l={x:i,y:u},s={originalEvent:e,delta:l};r?(x.current=l,te("toast.swipeMove",h,s)):ne(l,_.swipeDirection,c)?(x.current=l,te("toast.swipeStart",v,s),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(k.current=null)}})),onPointerUp:Object(g.a)(e.onPointerUp,(function(e){var t=x.current;if(e.target.releasePointerCapture(e.pointerId),x.current=null,k.current=null,t){var n=e.currentTarget,r={originalEvent:e,delta:t};ne(t,_.swipeDirection,_.swipeThreshold)?te("toast.swipeEnd",b,r):te("toast.swipeCancel",m,r),n.addEventListener("click",(function(e){return e.preventDefault()}),{once:!0})}}))}))),_.viewport))):null}));Q.propTypes={type:function(e){if(e.type&&!["foreground","background"].includes(e.type))throw new Error("Invalid prop `type` supplied to `Toast`. Expected `foreground | background`.");return null}};var Z=function(e){var t=e.__scopeToast,n=Object(a.a)(e,A),r=V("Toast",t),o=s.useState(!1),l=Object(i.a)(o,2),d=l[0],p=l[1],v=s.useState(!1),m=Object(i.a)(v,2),b=m[0],y=m[1];return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=f(e);Object(c.a)((function(){var e,n=0;return e=window.requestAnimationFrame((function(){return n=window.requestAnimationFrame(t)})),function(){window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])}((function(){return p(!0)})),s.useEffect((function(){var e=window.setTimeout((function(){return y(!0)}),1e3);return function(){return window.clearTimeout(e)}}),[]),b?null:s.createElement(h.b,{asChild:!0},s.createElement(u.b,{asChild:!0},s.createElement("div",n,d&&s.createElement(s.Fragment,null,r.label," ",e.children))))},G=s.forwardRef((function(e,t){e.__scopeToast;var n=Object(a.a)(e,L);return s.createElement(p.a.div,Object(w.a)({},n,{ref:t}))})),J=s.forwardRef((function(e,t){var n=e.altText,r=Object(a.a)(e,N),o=$("ToastAction",e.__scopeToast);return n?o.isInteractive?s.createElement(ee,Object(w.a)({},r,{ref:t})):s.createElement("span",null,n):null}));J.propTypes={altText:function(e){if(!e.altText)throw new Error("Missing prop `altText` expected on `ToastAction`");return null}};var ee=s.forwardRef((function(e,t){var n=e.__scopeToast,r=Object(a.a)(e,M),o=$("ToastClose",n);return o.isInteractive?s.createElement(p.a.button,Object(w.a)({type:"button"},r,{ref:t,onClick:Object(g.a)(e.onClick,o.onClose)})):null}));function te(e,t,n){var r=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(o)}var ne=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return"left"===t||"right"===t?a&&r>n:!a&&o>n},re=function(e){var t=e.__scopeToast,n=e.label,r=void 0===n?"Notification":n,o=e.duration,a=void 0===o?5e3:o,u=e.swipeDirection,c=void 0===u?"right":u,l=e.swipeThreshold,f=void 0===l?50:l,d=e.children,p=s.useState(null),v=Object(i.a)(p,2),h=v[0],m=v[1],b=s.useState(0),y=Object(i.a)(b,2),g=y[0],w=y[1],O=s.useRef(!1),_=s.useRef(!1);return s.createElement(B,{scope:t,label:r,duration:a,swipeDirection:c,swipeThreshold:f,toastCount:g,viewport:h,onViewportChange:m,onToastAdd:s.useCallback((function(){return w((function(e){return e+1}))}),[]),onToastRemove:s.useCallback((function(){return w((function(e){return e-1}))}),[]),isFocusedToastEscapeKeyDownRef:O,isClosePausedRef:_},d)},oe=H,ae=K,ie=G},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return o}));var o=function(){return r||n.nc}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(3),o=n(19),a=n(15),i=n(0),u=function(e){var t=e.present,n=e.children,u=function(e){var t=i.useState(),n=Object(r.a)(t,2),a=n[0],u=n[1],l=i.useRef({}),s=i.useRef(e),f=i.useRef("none"),d=function(e,t){return i.useReducer((function(e,n){var r=t[e][n];return null!=r?r:e}),e)}(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),p=Object(r.a)(d,2),v=p[0],h=p[1];return i.useEffect((function(){var e=c(l.current);f.current="mounted"===v?e:"none"}),[v]),Object(o.a)((function(){var t=l.current,n=s.current;if(n!==e){var r=f.current,o=c(t);if(e)h("MOUNT");else if("none"===o||"none"===(null==t?void 0:t.display))h("UNMOUNT");else{h(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}s.current=e}}),[e,h]),Object(o.a)((function(){if(a){var e=function(e){var t=c(l.current).includes(e.animationName);e.target===a&&t&&h("ANIMATION_END")},t=function(e){e.target===a&&(f.current=c(l.current))};return a.addEventListener("animationstart",t),a.addEventListener("animationcancel",e),a.addEventListener("animationend",e),function(){a.removeEventListener("animationstart",t),a.removeEventListener("animationcancel",e),a.removeEventListener("animationend",e)}}h("ANIMATION_END")}),[a,h]),{isPresent:["mounted","unmountSuspended"].includes(v),ref:i.useCallback((function(e){e&&(l.current=getComputedStyle(e)),u(e)}),[])}}(t),l="function"==typeof n?n({present:u.isPresent}):i.Children.only(n),s=Object(a.b)(u.ref,l.ref);return"function"==typeof n||u.isPresent?i.cloneElement(l,{ref:s}):null};function c(e){return(null==e?void 0:e.animationName)||"none"}u.displayName="Presence"},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return h}));var r=n(2),o=n(3),a=n(4),i=n(14),u=n(19),c=n(12),l=n.n(c),s=n(0),f=n(5),d=["containerRef","style"],p=["container"],v=s.forwardRef((function(e,t){var n,c,p=e.containerRef,v=e.style,h=Object(a.a)(e,d),m=null!==(n=null==p?void 0:p.current)&&void 0!==n?n:null===globalThis||void 0===globalThis||null===(c=globalThis.document)||void 0===c?void 0:c.body,b=s.useState({}),y=Object(o.a)(b,2)[1];return Object(u.a)((function(){y({})}),[]),m?l.a.createPortal(s.createElement(i.a.div,Object(f.a)({"data-radix-portal":""},h,{ref:t,style:m===document.body?Object(r.a)({position:"absolute",top:0,left:0,zIndex:2147483647},v):void 0})),m):null})),h=s.forwardRef((function(e,t){var n,r=e.container,o=void 0===r?null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body:r,u=Object(a.a)(e,p);return o?l.a.createPortal(s.createElement(i.a.div,Object(f.a)({},u,{ref:t})),o):null}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n(2),o=n(14),a=n(0),i=n(5),u=a.forwardRef((function(e,t){return a.createElement(o.a.span,Object(i.a)({},e,{ref:t,style:Object(r.a)({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"},e.style)}))})),c=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return B}));var r=n(2),o=n(8),a=n(3),i=n(4),u=n(5),c=n(0),l=n(11),s=n(7),f=n(12),d=n(20),p=["asChild"];function v(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var h={};v(h,"Primitive",(function(){return m})),v(h,"dispatchDiscreteCustomEvent",(function(){return b})),v(h,"Root",(function(){return y}));var m=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((function(e,t){return Object(r.a)(Object(r.a)({},e),{},Object(s.a)({},t,Object(c.forwardRef)((function(e,n){var r=e.asChild,o=Object(i.a)(e,p),a=r?d.a:t;return Object(c.useEffect)((function(){window[Symbol.for("radix-ui")]=!0}),[]),Object(c.createElement)(a,Object(u.a)({},o,{ref:n}))}))))}),{});function b(e,t){e&&Object(f.flushSync)((function(){return e.dispatchEvent(t)}))}var y=m;function g(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var w={};function O(e,t){"function"===typeof e?e(t):null!==e&&void 0!==e&&(e.current=t)}function _(){for(var e=arguments.length,t=new Array(e),n=0;n0,B=M>=R,V=function(e){var t=Object(A.a)(e),n=Object(c.useRef)(!1);return Object(c.useEffect)((function(){var e=function(e){e.target&&!n.current&&H(z,t,{originalEvent:e},{discrete:!0});n.current=!1},r=window.setTimeout((function(){document.addEventListener("pointerdown",e)}),0);return function(){window.clearTimeout(r),document.removeEventListener("pointerdown",e)}}),[t]),{onPointerDownCapture:function(){return n.current=!0}}}((function(e){var t=e.target,n=Object(o.a)(y.branches).some((function(e){return e.contains(t)}));B&&!n&&(null===d||void 0===d||d(e),null===v||void 0===v||v(e),e.defaultPrevented||null===h||void 0===h||h())})),K=function(e){var t=Object(A.a)(e),n=Object(c.useRef)(!1);return Object(c.useEffect)((function(){var e=function(e){e.target&&!n.current&&H(F,t,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),function(){return document.removeEventListener("focusin",e)}}),[t]),{onFocusCapture:function(){return n.current=!0},onBlurCapture:function(){return n.current=!1}}}((function(e){var t=e.target;Object(o.a)(y.branches).some((function(e){return e.contains(t)}))||(null===p||void 0===p||p(e),null===v||void 0===v||v(e),e.defaultPrevented||null===h||void 0===h||h())}));return L((function(e){M===y.layers.size-1&&(null===f||void 0===f||f(e),e.defaultPrevented||null===h||void 0===h||h())})),P({disabled:s}),Object(c.useEffect)((function(){O&&(s&&y.layersWithOutsidePointerEventsDisabled.add(O),y.layers.add(O),W())}),[O,s,y]),Object(c.useEffect)((function(){return function(){O&&(y.layers.delete(O),y.layersWithOutsidePointerEventsDisabled.delete(O),W())}}),[O,y]),Object(c.useEffect)((function(){var e=function(){return S({})};return document.addEventListener(I,e),function(){return document.removeEventListener(I,e)}}),[]),Object(c.createElement)(m.div,Object(u.a)({},b,{ref:k,style:Object(r.a)({pointerEvents:D?B?"auto":"none":void 0},e.style),onFocusCapture:Object(l.a)(e.onFocusCapture,K.onFocusCapture),onBlurCapture:Object(l.a)(e.onBlurCapture,K.onBlurCapture),onPointerDownCapture:Object(l.a)(e.onPointerDownCapture,V.onPointerDownCapture)}))})),V=Object(c.forwardRef)((function(e,t){var n=Object(c.useContext)(U),r=Object(c.useRef)(null),o=j(t,r);return Object(c.useEffect)((function(){var e=r.current;if(e)return n.branches.add(e),function(){n.branches.delete(e)}}),[n.branches]),Object(c.createElement)(m.div,Object(u.a)({},e,{ref:o}))}));function W(){var e=new CustomEvent(I);document.dispatchEvent(e)}function H(e,t,n,r){var o=r.discrete,a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),o?b(a,i):a.dispatchEvent(i)}var K=B,Y=V},function(e,t,n){"use strict";n.d(t,"a",(function(){return P}));var r=n(8),o=n(10),a=n(3),i=n(4),u=n(5),c=n(0);function l(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var s={};function f(e,t){"function"===typeof e?e(t):null!==e&&void 0!==e&&(e.current=t)}function d(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{}).select,r=void 0!==n&&n,a=document.activeElement,i=Object(o.a)(e);try{for(i.s();!(t=i.n()).done;){if(D(t.value,{select:r}),document.activeElement!==a)return}}catch(u){i.e(u)}finally{i.f()}}((n=A(b),n.filter((function(e){return"A"!==e.tagName}))),{select:!0}),document.activeElement===e&&D(b))}return function(){b.removeEventListener(C,g),setTimeout((function(){var t=new CustomEvent(T,R);b.addEventListener(T,w),b.dispatchEvent(t),t.defaultPrevented||D(null!==e&&void 0!==e?e:document.body,{select:!0}),b.removeEventListener(T,w),I.remove(k)}),0)}}var n}),[b,g,w,k]);var x=Object(c.useCallback)((function(e){if((r||s)&&!k.paused){var t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){var o=e.currentTarget,i=function(e){var t=A(e),n=L(t,e),r=L(t.reverse(),e);return[n,r]}(o),u=Object(a.a)(i,2),c=u[0],l=u[1];c&&l?e.shiftKey||n!==l?e.shiftKey&&n===c&&(e.preventDefault(),r&&D(l,{select:!0})):(e.preventDefault(),r&&D(c,{select:!0})):n===o&&e.preventDefault()}}}),[r,s,k.paused]);return Object(c.createElement)(O.div,Object(u.a)({tabIndex:-1},v,{ref:j,onKeyDown:x}))}));function A(e){for(var t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){var t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});n.nextNode();)t.push(n.currentNode);return t}function L(e,t){var n,r=Object(o.a)(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(!N(a,{upTo:t}))return a}}catch(i){r.e(i)}finally{r.f()}}function N(e,t){var n=t.upTo;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==n&&e===n)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function M(e){return e instanceof HTMLInputElement&&"select"in e}function D(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.select,r=void 0!==n&&n;if(e&&e.focus){var o=document.activeElement;e.focus({preventScroll:!0}),e!==o&&M(e)&&r&&e.select()}}var I=function(){var e=[];return{add:function(t){var n=e[0];t!==n&&(null===n||void 0===n||n.pause()),(e=z(e,t)).unshift(t)},remove:function(t){var n;null===(n=(e=z(e,t))[0])||void 0===n||n.resume()}}}();function z(e,t){var n=Object(r.a)(e),o=n.indexOf(t);return-1!==o&&n.splice(o,1),n}var F=P},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0);function o(e){var t=function(e){var t=r.useRef(e);return r.useEffect((function(){t.current=e})),r.useMemo((function(){return function(){for(var e,n,r=arguments.length,o=new Array(r),a=0;a=n?(r(1),e.animation=null):e.animation&&(r(i),requestAnimationFrame(e.animation))},requestAnimationFrame(e.animation)}}function v(e,t,n,r){var o=function(e){var t=e.scale,n=e.positionX,r=e.positionY;if(isNaN(t)||isNaN(n)||isNaN(r))return!1;return!0}(t);if(e.mounted&&o){var a=e.setTransformState,i=e.transformState,u=i.scale,c=i.positionX,l=i.positionY,s=t.scale-u,f=t.positionX-c,d=t.positionY-l;0===n?a(t.scale,t.positionX,t.positionY):p(e,r,n,(function(e){a(u+s*e,c+f*e,l+d*e)}))}}var h=function(e,t){var n=e.wrapperComponent,r=e.contentComponent,o=e.setup.centerZoomedOut;if(!n||!r)throw new Error("Components are not mounted");var a=function(e,t,n){var r=e.offsetWidth,o=e.offsetHeight,a=t.offsetWidth*n,i=t.offsetHeight*n;return{wrapperWidth:r,wrapperHeight:o,newContentWidth:a,newDiffWidth:r-a,newContentHeight:i,newDiffHeight:o-i}}(n,r,t),i=a.wrapperWidth,u=a.wrapperHeight,c=function(e,t,n,r,o,a,i){var u=e>t?n*(i?1:.5):0,c=r>o?a*(i?1:.5):0;return{minPositionX:e-t-u,maxPositionX:u,minPositionY:r-o-c,maxPositionY:c}}(i,a.newContentWidth,a.newDiffWidth,u,a.newContentHeight,a.newDiffHeight,Boolean(o));return c},m=function(e,t){var n=h(e,t);return e.bounds=n,n};function b(e,t,n,r,o,a,i){var u=n.minPositionX,c=n.minPositionY,l=n.maxPositionX,s=n.maxPositionY,f=0,d=0;return i&&(f=o,d=a),{x:y(e,u-f,l+f,r),y:y(t,c-d,s+d,r)}}var y=function(e,t,n,r){return c(r?en?n:e:e,2)};function g(e,t,n,r,o,a){var i=e.transformState,u=i.scale,c=i.positionX,l=i.positionY,s=r-u;return"number"!==typeof t||"number"!==typeof n?(console.error("Mouse X and Y position were not provided!"),{x:c,y:l}):b(c-t*s,l-n*s,o,a,0,0,null)}function w(e,t,n,r,o){var a=t-(o?r:0);return!isNaN(n)&&e>=n?n:!isNaN(t)&&e<=a?a:e}var O=function(e,t){var n=e.setup.panning.excluded,r=e.isInitialized,o=e.wrapperComponent,a=t.target,i=null===o||void 0===o?void 0:o.contains(a);return!!(r&&a&&i)&&!q(a,n)},_=function(e){var t=e.isInitialized,n=e.isPanning,r=e.setup.panning.disabled;return!(!t||!n||r)};var j=function(e,t){var n=e.setup,r=e.transformState.scale,o=n.minScale;return t>0&&r>=o?t:0};function E(e,t,n,r,o,a,i,u,c,l){if(o){var s;if(t>i&&n>i)return(s=i+(e-i)*l)>c?c:sa?a:s}return r?t:y(e,a,i,o)}function S(e,t){var n=function(e){var t=e.mounted,n=e.setup,r=n.disabled,o=n.velocityAnimation,a=e.transformState.scale;return!(o.disabled&&!(a>1)&&r&&!t)}(e);if(n){var r=e.lastMousePosition,o=e.velocityTime,a=e.setup,i=e.wrapperComponent,u=a.velocityAnimation.equalToMove,c=Date.now();if(r&&o&&i){var l=function(e,t){return t?Math.min(1,e.offsetWidth/window.innerWidth):1}(i,u),s=t.x-r.x,f=t.y-r.y,d=s/l,p=f/l,v=c-o,h=s*s+f*f,m=Math.sqrt(h)/v;e.velocity={velocityX:d,velocityY:p,total:m}}e.lastMousePosition=t,e.velocityTime=c}}function k(e,t){var n=e.transformState.scale;d(e),m(e,n),t.touches?function(e,t){var n=t.touches,r=e.transformState,o=r.positionX,a=r.positionY;if(e.isPanning=!0,1===n.length){var i=n[0].clientX,u=n[0].clientY;e.startCoords={x:i-o,y:u-a}}}(e,t):function(e,t){var n=e.transformState,r=n.positionX,o=n.positionY;e.isPanning=!0;var a=t.clientX,i=t.clientY;e.startCoords={x:a-r,y:i-o}}(e,t)}function x(e,t,n){var r=e.startCoords,o=e.setup.alignmentAnimation,a=o.sizeX,i=o.sizeY;if(r){var u=function(e,t,n){var r=e.startCoords,o=e.transformState,a=e.setup.panning,i=a.lockAxisX,u=a.lockAxisY,c=o.positionX,l=o.positionY;if(!r)return{x:c,y:l};var s=t-r.x,f=n-r.y;return{x:i?c:s,y:u?l:f}}(e,t,n),c=u.x,l=u.y,s=j(e,a),f=j(e,i);S(e,{x:c,y:l}),function(e,t,n,r,o){var a=e.setup.limitToBounds,i=e.wrapperComponent,u=e.bounds,c=e.transformState,l=c.scale,s=c.positionX,f=c.positionY;if(i&&t!==s&&n!==f&&u){var d=b(t,n,u,a,r,o,i),p=d.x,v=d.y;e.setTransformState(l,p,v)}}(e,c,l,s,f)}}function C(e){if(e.isPanning){var t=e.setup.panning.velocityDisabled,n=e.velocity,r=e.wrapperComponent,o=e.contentComponent;e.isPanning=!1,e.animate=!1,e.animation=null;var a=null===r||void 0===r?void 0:r.getBoundingClientRect(),i=null===o||void 0===o?void 0:o.getBoundingClientRect(),u=(null===a||void 0===a?void 0:a.width)||0,c=(null===a||void 0===a?void 0:a.height)||0,l=(null===i||void 0===i?void 0:i.width)||0,f=(null===i||void 0===i?void 0:i.height)||0,d=u.1&&d?function(e){var t=e.velocity,n=e.bounds,r=e.setup,o=e.wrapperComponent,a=function(e){var t=e.mounted,n=e.velocity,r=e.bounds,o=e.setup,a=o.disabled,i=o.velocityAnimation,u=e.transformState.scale;return!(i.disabled&&!(u>1)&&a&&!t)&&!(!n||!r)}(e);if(a&&t&&n&&o){var i=t.velocityX,u=t.velocityY,c=t.total,l=n.maxPositionX,f=n.minPositionX,d=n.maxPositionY,v=n.minPositionY,h=r.limitToBounds,m=r.alignmentAnimation,b=r.zoomAnimation,y=r.panning,g=y.lockAxisY,w=y.lockAxisX,O=b.animationType,_=m.sizeX,S=m.sizeY,k=m.velocityAlignmentTime,x=function(e,t){var n=e.setup.velocityAnimation,r=n.equalToMove,o=n.animationTime,a=n.sensitivity;return r?o*t*a:o}(e,c),C=Math.max(x,k),T=j(e,_),R=j(e,S),P=T*o.offsetWidth/100,A=R*o.offsetHeight/100,L=l+P,N=f-P,M=d+A,D=v-A,I=e.transformState,z=(new Date).getTime();p(e,O,C,(function(t){var n=e.transformState,r=n.scale,o=n.positionX,a=n.positionY,c=((new Date).getTime()-z)/k,p=1-(0,s[m.animationType])(Math.min(1,c)),b=1-t,y=o+i*b,O=a+u*b,_=E(y,I.positionX,o,w,h,f,l,N,L,p),j=E(O,I.positionY,a,g,h,v,d,D,M,p);o===y&&a===O||e.setTransformState(r,_,j)}))}}(e):T(e)}}function T(e){var t=e.transformState.scale,n=e.setup,r=n.minScale,o=n.alignmentAnimation,a=o.disabled,i=o.sizeX,u=o.sizeY,c=o.animationTime,l=o.animationType;if(!(a||tf||np||rf?l.offsetWidth:e.setup.minPositionX||0,r>p?l.offsetHeight:e.setup.minPositionY||0,o,e.bounds,u||c),y=b.x,w=b.y;return{scale:o,positionX:h?y:n,positionY:m?w:r}}}(e);s&&v(e,s,c,l)}}function R(e,t,n){var r=e.transformState.scale,o=e.wrapperComponent,a=e.setup,i=a.minScale,u=a.limitToBounds,c=a.zoomAnimation,l=c.disabled,s=c.animationTime,f=c.animationType,d=l||r>=i;if((r>=1||u)&&T(e),!d&&o&&e.mounted){var p=P(e,i,t||o.offsetWidth/2,n||o.offsetHeight/2);p&&v(e,p,s,f)}}function P(e,t,n,r){var o=e.setup,a=o.minScale,i=o.maxScale,u=o.limitToBounds,l=w(c(t,2),a,i,0,!1),s=g(e,n,r,l,m(e,l),u);return{scale:l,positionX:s.x,positionY:s.y}}var A={previousScale:1,scale:1,positionX:0,positionY:0},L=i(i({},A),{setComponents:function(){},contextInstance:null}),N={disabled:!1,minPositionX:null,maxPositionX:null,minPositionY:null,maxPositionY:null,minScale:1,maxScale:8,limitToBounds:!0,centerZoomedOut:!1,centerOnInit:!1,wheel:{step:.2,disabled:!1,wheelDisabled:!1,touchPadDisabled:!1,activationKeys:[],excluded:[]},panning:{disabled:!1,velocityDisabled:!1,lockAxisX:!1,lockAxisY:!1,activationKeys:[],excluded:[]},pinch:{step:5,disabled:!1,excluded:[]},doubleClick:{disabled:!1,step:.7,mode:"zoomIn",animationType:"easeOut",animationTime:200,excluded:[]},zoomAnimation:{disabled:!1,size:.4,animationTime:200,animationType:"easeOut"},alignmentAnimation:{disabled:!1,sizeX:100,sizeY:100,animationTime:200,velocityAlignmentTime:400,animationType:"easeOut"},velocityAnimation:{disabled:!1,sensitivity:1,animationTime:400,animationType:"easeOut",equalToMove:!0}},M=function(e){var t,n,r,o;return{previousScale:null!==(t=e.initialScale)&&void 0!==t?t:A.scale,scale:null!==(n=e.initialScale)&&void 0!==n?n:A.scale,positionX:null!==(r=e.initialPositionX)&&void 0!==r?r:A.positionX,positionY:null!==(o=e.initialPositionY)&&void 0!==o?o:A.positionY}},D=function(e){var t=i({},N);return Object.keys(e).forEach((function(n){var r="undefined"!==typeof e[n];if("undefined"!==typeof N[n]&&r){var o=Object.prototype.toString.call(N[n]),a="[object Object]"===o,c="[object Array]"===o;t[n]=a?i(i({},N[n]),e[n]):c?u(u([],N[n]),e[n]):e[n]}})),t},I=function(e,t,n){var r=e.transformState.scale,o=e.wrapperComponent,a=e.setup,i=a.maxScale,u=a.minScale,l=a.zoomAnimation.size;if(!o)throw new Error("Wrapper is not mounted");var s=r*Math.exp(t*n);return w(c(s,3),u,i,l,!1)};function z(e,t,n,r,o){var a=e.wrapperComponent,i=e.transformState,u=i.scale,c=i.positionX,l=i.positionY;if(!a)return console.error("No WrapperComponent found");var s=(a.offsetWidth/2-c)/u,f=(a.offsetHeight/2-l)/u,d=P(e,I(e,t,n),s,f);if(!d)return console.error("Error during zoom event. New transformation state was not calculated.");v(e,d,r,o)}function F(e,t,n){var r=e.setup,o=e.wrapperComponent,a=r.limitToBounds,i=M(e.props),u=e.transformState,c=u.scale,l=u.positionX,s=u.positionY;if(o){var f=h(e,i.scale),d=b(i.positionX,i.positionY,f,a,0,0,o),p={scale:i.scale,positionX:d.x,positionY:d.y};c===i.scale&&l===i.positionX&&s===i.positionY||v(e,p,t,n)}}var U=function(e){return function(t,n,r){void 0===t&&(t=.5),void 0===n&&(n=300),void 0===r&&(r="easeOut"),z(e,1,t,n,r)}},B=function(e){return function(t,n,r){void 0===t&&(t=.5),void 0===n&&(n=300),void 0===r&&(r="easeOut"),z(e,-1,t,n,r)}},V=function(e){return function(t,n,r,o,a){void 0===o&&(o=300),void 0===a&&(a="easeOut");var i=e.transformState,u=i.positionX,c=i.positionY,l=i.scale,s=e.wrapperComponent,f=e.contentComponent;if(!e.setup.disabled&&s&&f){var d={positionX:isNaN(t)?u:t,positionY:isNaN(n)?c:n,scale:isNaN(r)?l:r};v(e,d,o,a)}}},W=function(e){return function(t,n){void 0===t&&(t=200),void 0===n&&(n="easeOut"),F(e,t,n)}},H=function(e){return function(t,n,r){void 0===n&&(n=200),void 0===r&&(r="easeOut");var o=e.transformState,a=e.wrapperComponent,i=e.contentComponent;if(a&&i){var u=Z(t||o.scale,a,i);v(e,u,n,r)}}},K=function(e){return function(t,n,r,o){void 0===r&&(r=600),void 0===o&&(o="easeOut"),d(e);var a=e.wrapperComponent,i="string"===typeof t?document.getElementById(t):t;if(a&&function(e){return e?void 0!==(null===e||void 0===e?void 0:e.offsetWidth)&&void 0!==(null===e||void 0===e?void 0:e.offsetHeight)||(console.error("Zoom node is not valid - it must contain offsetWidth and offsetHeight"),!1):(console.error("Zoom node not found"),!1)}(i)&&i&&a.contains(i)){var u=function(e,t,n){var r=e.wrapperComponent,o=e.setup,a=o.limitToBounds,i=o.minScale,u=o.maxScale;if(!r)return A;var c=r.getBoundingClientRect(),l=function(e){for(var t=e,n=0,r=0;t;)n+=t.offsetLeft,r+=t.offsetTop,t=t.offsetParent;return{x:n,y:r}}(t),s=l.x,f=l.y,d=t.offsetWidth,p=t.offsetHeight,v=r.offsetWidth/d,m=r.offsetHeight/p,y=w(n||Math.min(v,m),i,u,0,!1),g=(c.width-d*y)/2,O=(c.height-p*y)/2,_=b((c.left-s)*y+g,(c.top-f)*y+O,h(e,y),a,0,0,r);return{positionX:_.x,positionY:_.y,scale:y}}(e,i,n);v(e,u,r,o)}}},Y=function(e){return{instance:e,state:e.transformState,zoomIn:U(e),zoomOut:B(e),setTransform:V(e),resetTransform:W(e),centerView:H(e),zoomToElement:K(e)}};function X(){try{return{get passive(){return!0,!1}}}catch(e){return!1}}var q=function(e,t){var n=e.tagName.toUpperCase();return!!t.find((function(e){return e.toUpperCase()===n}))||!!t.find((function(t){return e.classList.contains(t)}))},$=function(e){e&&clearTimeout(e)},Q=function(e,t,n){return"translate3d("+e+"px, "+t+"px, 0) scale("+n+")"},Z=function(e,t,n){var r=n.offsetWidth*e,o=n.offsetHeight*e;return{scale:e,positionX:(t.offsetWidth-r)/2,positionY:(t.offsetHeight-o)/2}},G=function(e,t){var n=e.setup.wheel,r=n.disabled,o=n.wheelDisabled,a=n.touchPadDisabled,i=n.excluded,u=e.isInitialized,c=e.isPanning,l=t.target;return!(!u||c||r||!l)&&(!(o&&!t.ctrlKey)&&((!a||!t.ctrlKey)&&!q(l,i)))};function J(e,t,n){var r=t.getBoundingClientRect(),o=0,a=0;if("clientX"in e)o=(e.clientX-r.left)/n,a=(e.clientY-r.top)/n;else{var i=e.touches[0];o=(i.clientX-r.left)/n,a=(i.clientY-r.top)/n}return(isNaN(o)||isNaN(a))&&console.error("No mouse or touch offset found"),{x:o,y:a}}var ee=function(e,t){var n=e.setup.pinch,r=n.disabled,o=n.excluded,a=e.isInitialized,i=t.target;return!(!a||r||!i)&&!q(i,o)},te=function(e){var t=e.setup.pinch.disabled,n=e.isInitialized,r=e.pinchStartDistance;return!(!n||t||!r)},ne=function(e){return Math.sqrt(Math.pow(e.touches[0].pageX-e.touches[1].pageX,2)+Math.pow(e.touches[0].pageY-e.touches[1].pageY,2))},re=function(e,t){var n=e.props,r=n.onWheelStart,o=n.onZoomStart;e.wheelStopEventTimer||(d(e),l(Y(e),t,r),l(Y(e),t,o))},oe=function(e,t){var n=e.props,r=n.onWheel,o=n.onZoom,a=e.contentComponent,i=e.setup,u=e.transformState.scale,s=i.limitToBounds,f=i.centerZoomedOut,d=i.zoomAnimation,p=i.wheel,v=d.size,h=d.disabled,b=p.step;if(!a)throw new Error("Component not mounted");t.preventDefault(),t.stopPropagation();var y=function(e,t){var n,r,o=e?e.deltaY<0?1:-1:0;return r=o,"number"===typeof(n=t)?n:r}(t,null),O=function(e,t,n,r,o){var a=e.transformState.scale,i=e.wrapperComponent,u=e.setup,l=u.maxScale,s=u.minScale,f=u.zoomAnimation,d=f.size,p=f.disabled;if(!i)throw new Error("Wrapper is not mounted");var v=a+t*(a-a*n)*n;if(o)return v;var h=!r&&!p;return w(c(v,3),s,l,d,h)}(e,y,b,!t.ctrlKey);if(u!==O){var _=m(e,O),j=J(t,a,u),E=s&&(h||0===v||f),S=g(e,j.x,j.y,O,_,E),k=S.x,x=S.y;e.previousWheelEvent=t,e.setTransformState(O,k,x),l(Y(e),t,r),l(Y(e),t,o)}},ae=function(e,t){var n=e.props,r=n.onWheelStop,o=n.onZoomStop;$(e.wheelAnimationTimer),e.wheelAnimationTimer=setTimeout((function(){e.mounted&&(R(e,t.x,t.y),e.wheelAnimationTimer=null)}),100);var a=function(e,t){var n=e.previousWheelEvent,r=e.transformState.scale,o=e.setup,a=o.maxScale,i=o.minScale;return!!n&&(ri||Math.sign(n.deltaY)!==Math.sign(t.deltaY)||n.deltaY>0&&n.deltaYt.deltaY||Math.sign(n.deltaY)!==Math.sign(t.deltaY))}(e,t);a&&($(e.wheelStopEventTimer),e.wheelStopEventTimer=setTimeout((function(){e.mounted&&(e.wheelStopEventTimer=null,l(Y(e),t,r),l(Y(e),t,o))}),160))},ie=function(e,t){var n=ne(t);e.pinchStartDistance=n,e.lastDistance=n,e.pinchStartScale=e.transformState.scale,e.isPanning=!1,d(e)},ue=function(e,t){var n=e.contentComponent,r=e.pinchStartDistance,o=e.transformState.scale,a=e.setup,i=a.limitToBounds,u=a.centerZoomedOut,l=a.zoomAnimation,s=l.disabled,f=l.size;if(null!==r&&n){var d=function(e,t,n){var r=n.getBoundingClientRect(),o=e.touches,a=c(o[0].clientX-r.left,5),i=c(o[0].clientY-r.top,5);return{x:(a+c(o[1].clientX-r.left,5))/2/t,y:(i+c(o[1].clientY-r.top,5))/2/t}}(t,o,n);if(isFinite(d.x)&&isFinite(d.y)){var p=ne(t),v=function(e,t){var n=e.pinchStartScale,r=e.pinchStartDistance,o=e.setup,a=o.maxScale,i=o.minScale,u=o.zoomAnimation,l=u.size,s=u.disabled;if(!n||null===r||!t)throw new Error("Pinch touches distance was not provided");return t<0?e.transformState.scale:w(c(t/r*n,2),i,a,l,!s)}(e,p);if(v!==o){var h=m(e,v),b=i&&(s||0===f||u),y=g(e,d.x,d.y,v,h,b),O=y.x,_=y.y;e.pinchMidpoint=d,e.lastDistance=p,e.setTransformState(v,O,_)}}}},ce=function(e){var t=e.pinchMidpoint;e.velocity=null,e.lastDistance=null,e.pinchMidpoint=null,e.pinchStartScale=null,e.pinchStartDistance=null,R(e,null===t||void 0===t?void 0:t.x,null===t||void 0===t?void 0:t.y)};function le(e,t){var n=e.setup.doubleClick,r=n.disabled,o=n.mode,a=n.step,i=n.animationTime,u=n.animationType;if(!r){if("reset"===o)return F(e,i,u);var c=e.transformState.scale,l=e.contentComponent;if(!l)return console.error("No ContentComponent found");var s=I(e,"zoomOut"===o?-1:1,a),f=J(t,l,c),d=P(e,s,f.x,f.y);if(!d)return console.error("Error during zoom event. New transformation state was not calculated.");v(e,d,i,u)}}var se=function(e,t){var n=e.isInitialized,r=e.setup,o=e.wrapperComponent,a=r.doubleClick,i=a.disabled,u=a.excluded,c=t.target,l=null===o||void 0===o?void 0:o.contains(c),s=n&&c&&l&&!i;return!!s&&(!q(c,u)&&!!s)},fe=o.a.createContext(L),de=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mounted=!0,t.transformState=M(t.props),t.setup=D(t.props),t.wrapperComponent=null,t.contentComponent=null,t.isInitialized=!1,t.bounds=null,t.previousWheelEvent=null,t.wheelStopEventTimer=null,t.wheelAnimationTimer=null,t.isPanning=!1,t.startCoords=null,t.lastTouch=null,t.distance=null,t.lastDistance=null,t.pinchStartDistance=null,t.pinchStartScale=null,t.pinchMidpoint=null,t.velocity=null,t.velocityTime=null,t.lastMousePosition=null,t.animate=!1,t.animation=null,t.maxBounds=null,t.pressedKeys={},t.handleInitializeWrapperEvents=function(e){var n=X();e.addEventListener("wheel",t.onWheelZoom,n),e.addEventListener("dblclick",t.onDoubleClick,n),e.addEventListener("touchstart",t.onTouchPanningStart,n),e.addEventListener("touchmove",t.onTouchPanning,n),e.addEventListener("touchend",t.onTouchPanningStop,n)},t.handleInitialize=function(){var e=t.setup.centerOnInit;t.applyTransformation(),t.forceUpdate(),e&&(setTimeout((function(){t.mounted&&t.setCenter()}),50),setTimeout((function(){t.mounted&&t.setCenter()}),100),setTimeout((function(){t.mounted&&t.setCenter()}),200))},t.onWheelZoom=function(e){t.setup.disabled||G(t,e)&&t.isPressingKeys(t.setup.wheel.activationKeys)&&(re(t,e),oe(t,e),ae(t,e))},t.onPanningStart=function(e){var n=t.setup.disabled,r=t.props.onPanningStart;n||O(t,e)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(e.preventDefault(),e.stopPropagation(),d(t),k(t,e),l(Y(t),e,r))},t.onPanning=function(e){var n=t.setup.disabled,r=t.props.onPanning;n||_(t)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(e.preventDefault(),e.stopPropagation(),x(t,e.clientX,e.clientY),l(Y(t),e,r))},t.onPanningStop=function(e){var n=t.props.onPanningStop;t.isPanning&&(C(t),l(Y(t),e,n))},t.onPinchStart=function(e){var n=t.setup.disabled,r=t.props,o=r.onPinchingStart,a=r.onZoomStart;n||ee(t,e)&&(ie(t,e),d(t),l(Y(t),e,o),l(Y(t),e,a))},t.onPinch=function(e){var n=t.setup.disabled,r=t.props,o=r.onPinching,a=r.onZoom;n||te(t)&&(e.preventDefault(),e.stopPropagation(),ue(t,e),l(Y(t),e,o),l(Y(t),e,a))},t.onPinchStop=function(e){var n=t.props,r=n.onPinchingStop,o=n.onZoomStop;t.pinchStartScale&&(ce(t),l(Y(t),e,r),l(Y(t),e,o))},t.onTouchPanningStart=function(e){var n=t.setup.disabled,r=t.props.onPanningStart;if(!n&&O(t,e))if(t.lastTouch&&+new Date-t.lastTouch<200&&1===e.touches.length)t.onDoubleClick(e);else{t.lastTouch=+new Date,d(t);var o=e.touches,a=1===o.length,i=2===o.length;a&&(d(t),k(t,e),l(Y(t),e,r)),i&&t.onPinchStart(e)}},t.onTouchPanning=function(e){var n=t.setup.disabled,r=t.props.onPanning;if(t.isPanning&&1===e.touches.length){if(n)return;if(!_(t))return;e.preventDefault(),e.stopPropagation();var o=e.touches[0];x(t,o.clientX,o.clientY),l(Y(t),e,r)}else e.touches.length>1&&t.onPinch(e)},t.onTouchPanningStop=function(e){t.onPanningStop(e),t.onPinchStop(e)},t.onDoubleClick=function(e){t.setup.disabled||se(t,e)&&le(t,e)},t.clearPanning=function(e){t.isPanning&&t.onPanningStop(e)},t.setKeyPressed=function(e){t.pressedKeys[e.key]=!0},t.setKeyUnPressed=function(e){t.pressedKeys[e.key]=!1},t.isPressingKeys=function(e){return!e.length||Boolean(e.find((function(e){return t.pressedKeys[e]})))},t.setComponents=function(e,n){t.wrapperComponent=e,t.contentComponent=n,m(t,t.transformState.scale),t.handleInitializeWrapperEvents(e),t.handleInitialize(),t.handleRef(),t.isInitialized=!0,l(Y(t),void 0,t.props.onInit)},t.setTransformState=function(e,n,r){isNaN(e)||isNaN(n)||isNaN(r)?console.error("Detected NaN set state values"):(e!==t.transformState.scale&&(t.transformState.previousScale=t.transformState.scale,t.transformState.scale=e),t.transformState.positionX=n,t.transformState.positionY=r,t.applyTransformation())},t.setCenter=function(){if(t.wrapperComponent&&t.contentComponent){var e=Z(t.transformState.scale,t.wrapperComponent,t.contentComponent);t.setTransformState(e.scale,e.positionX,e.positionY)}},t.applyTransformation=function(){if(t.mounted&&t.contentComponent){var e=t.transformState,n=e.scale,r=e.positionX,o=e.positionY,a=Q(r,o,n);t.contentComponent.style.transform=a,t.handleRef()}},t.handleRef=function(){t.props.setRef(Y(t))},t}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){var e=X();window.addEventListener("mousedown",this.onPanningStart,e),window.addEventListener("mousemove",this.onPanning,e),window.addEventListener("mouseup",this.onPanningStop,e),document.addEventListener("mouseleave",this.clearPanning,e),window.addEventListener("keyup",this.setKeyUnPressed,e),window.addEventListener("keydown",this.setKeyPressed,e),this.handleRef()},t.prototype.componentWillUnmount=function(){var e=X();window.removeEventListener("mousedown",this.onPanningStart,e),window.removeEventListener("mousemove",this.onPanning,e),window.removeEventListener("mouseup",this.onPanningStop,e),window.removeEventListener("keyup",this.setKeyUnPressed,e),window.removeEventListener("keydown",this.setKeyPressed,e),d(this)},t.prototype.componentDidUpdate=function(e){e!==this.props&&(m(this,this.transformState.scale),this.setup=D(this.props))},t.prototype.render=function(){var e=Y(this),t=this.props.children,n="function"===typeof t?t(e):t;return o.a.createElement(fe.Provider,{value:i(i({},this.transformState),{setComponents:this.setComponents,contextInstance:this})},n)},t}(r.Component),pe=o.a.forwardRef((function(e,t){var n=Object(r.useState)(null),a=n[0],u=n[1];return Object(r.useImperativeHandle)(t,(function(){return a}),[a]),o.a.createElement(de,i({},e,{setRef:u}))}));var ve="transform-component-module_wrapper__1_Fgj",he="transform-component-module_content__2jYgh";!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".transform-component-module_wrapper__1_Fgj {\n position: relative;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n overflow: hidden;\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n margin: 0;\n padding: 0;\n}\n.transform-component-module_content__2jYgh {\n display: flex;\n flex-wrap: wrap;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n margin: 0;\n padding: 0;\n transform-origin: 0% 0%;\n}\n.transform-component-module_content__2jYgh img {\n pointer-events: none;\n}\n");var me=function(e){var t=e.children,n=e.wrapperClass,a=void 0===n?"":n,i=e.contentClass,u=void 0===i?"":i,c=e.wrapperStyle,l=e.contentStyle,s=Object(r.useContext)(fe).setComponents,f=Object(r.useRef)(null),d=Object(r.useRef)(null);return Object(r.useEffect)((function(){var e=f.current,t=d.current;null!==e&&null!==t&&s&&s(e,t)}),[]),o.a.createElement("div",{ref:f,className:"react-transform-wrapper "+ve+" "+a,style:c},o.a.createElement("div",{ref:d,className:"react-transform-component "+he+" "+u,style:l},t))}},function(e,t,n){(function(e,r){var o;(function(){var a,i="Expected a function",u="__lodash_hash_undefined__",c="__lodash_placeholder__",l=16,s=32,f=64,d=128,p=256,v=1/0,h=9007199254740991,m=NaN,b=4294967295,y=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",s],["partialRight",f],["rearg",p]],g="[object Arguments]",w="[object Array]",O="[object Boolean]",_="[object Date]",j="[object Error]",E="[object Function]",S="[object GeneratorFunction]",k="[object Map]",x="[object Number]",C="[object Object]",T="[object Promise]",R="[object RegExp]",P="[object Set]",A="[object String]",L="[object Symbol]",N="[object WeakMap]",M="[object ArrayBuffer]",D="[object DataView]",I="[object Float32Array]",z="[object Float64Array]",F="[object Int8Array]",U="[object Int16Array]",B="[object Int32Array]",V="[object Uint8Array]",W="[object Uint8ClampedArray]",H="[object Uint16Array]",K="[object Uint32Array]",Y=/\b__p \+= '';/g,X=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,Q=/[&<>"']/g,Z=RegExp($.source),G=RegExp(Q.source),J=/<%-([\s\S]+?)%>/g,ee=/<%([\s\S]+?)%>/g,te=/<%=([\s\S]+?)%>/g,ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,re=/^\w*$/,oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ae=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(ae.source),ue=/^\s+/,ce=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,fe=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,ve=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,be=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,we=/^0o[0-7]+$/i,Oe=/^(?:0|[1-9]\d*)$/,_e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,je=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",xe="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\ufe0e\\ufe0f",Re="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pe="['\u2019]",Ae="[\\ud800-\\udfff]",Le="["+Re+"]",Ne="["+Se+"]",Me="\\d+",De="[\\u2700-\\u27bf]",Ie="["+xe+"]",ze="[^\\ud800-\\udfff"+Re+Me+ke+xe+Ce+"]",Fe="\\ud83c[\\udffb-\\udfff]",Ue="[^\\ud800-\\udfff]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Ve="[\\ud800-\\udbff][\\udc00-\\udfff]",We="["+Ce+"]",He="(?:"+Ie+"|"+ze+")",Ke="(?:"+We+"|"+ze+")",Ye="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Xe="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",qe="(?:"+Ne+"|"+Fe+")"+"?",$e="[\\ufe0e\\ufe0f]?",Qe=$e+qe+("(?:\\u200d(?:"+[Ue,Be,Ve].join("|")+")"+$e+qe+")*"),Ze="(?:"+[De,Be,Ve].join("|")+")"+Qe,Ge="(?:"+[Ue+Ne+"?",Ne,Be,Ve,Ae].join("|")+")",Je=RegExp(Pe,"g"),et=RegExp(Ne,"g"),tt=RegExp(Fe+"(?="+Fe+")|"+Ge+Qe,"g"),nt=RegExp([We+"?"+Ie+"+"+Ye+"(?="+[Le,We,"$"].join("|")+")",Ke+"+"+Xe+"(?="+[Le,We+He,"$"].join("|")+")",We+"?"+He+"+"+Ye,We+"+"+Xe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Me,Ze].join("|"),"g"),rt=RegExp("[\\u200d\\ud800-\\udfff"+Se+Te+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,ut={};ut[I]=ut[z]=ut[F]=ut[U]=ut[B]=ut[V]=ut[W]=ut[H]=ut[K]=!0,ut[g]=ut[w]=ut[M]=ut[O]=ut[D]=ut[_]=ut[j]=ut[E]=ut[k]=ut[x]=ut[C]=ut[R]=ut[P]=ut[A]=ut[N]=!1;var ct={};ct[g]=ct[w]=ct[M]=ct[D]=ct[O]=ct[_]=ct[I]=ct[z]=ct[F]=ct[U]=ct[B]=ct[k]=ct[x]=ct[C]=ct[R]=ct[P]=ct[A]=ct[L]=ct[V]=ct[W]=ct[H]=ct[K]=!0,ct[j]=ct[E]=ct[N]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ft=parseInt,dt="object"==typeof e&&e&&e.Object===Object&&e,pt="object"==typeof self&&self&&self.Object===Object&&self,vt=dt||pt||Function("return this")(),ht=t&&!t.nodeType&&t,mt=ht&&"object"==typeof r&&r&&!r.nodeType&&r,bt=mt&&mt.exports===ht,yt=bt&&dt.process,gt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(t){}}(),wt=gt&>.isArrayBuffer,Ot=gt&>.isDate,_t=gt&>.isMap,jt=gt&>.isRegExp,Et=gt&>.isSet,St=gt&>.isTypedArray;function kt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function xt(e,t,n,r){for(var o=-1,a=null==e?0:e.length;++o-1}function Lt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function nn(e,t){for(var n=e.length;n--&&Vt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var on=Xt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),an=Xt({"&":"&","<":"<",">":">",'"':""","'":"'"});function un(e){return"\\"+lt[e]}function cn(e){return rt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function fn(e,t){for(var n=-1,r=e.length,o=0,a=[];++n",""":'"',"'":"'"});var yn=function e(t){var n=(t=null==t?vt:yn.defaults(vt.Object(),t,yn.pick(vt,at))).Array,r=t.Date,o=t.Error,ce=t.Function,Se=t.Math,ke=t.Object,xe=t.RegExp,Ce=t.String,Te=t.TypeError,Re=n.prototype,Pe=ce.prototype,Ae=ke.prototype,Le=t["__core-js_shared__"],Ne=Pe.toString,Me=Ae.hasOwnProperty,De=0,Ie=function(){var e=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ze=Ae.toString,Fe=Ne.call(ke),Ue=vt._,Be=xe("^"+Ne.call(Me).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=bt?t.Buffer:a,We=t.Symbol,He=t.Uint8Array,Ke=Ve?Ve.allocUnsafe:a,Ye=sn(ke.getPrototypeOf,ke),Xe=ke.create,qe=Ae.propertyIsEnumerable,$e=Re.splice,Qe=We?We.isConcatSpreadable:a,Ze=We?We.iterator:a,Ge=We?We.toStringTag:a,tt=function(){try{var e=pa(ke,"defineProperty");return e({},"",{}),e}catch(t){}}(),rt=t.clearTimeout!==vt.clearTimeout&&t.clearTimeout,lt=r&&r.now!==vt.Date.now&&r.now,dt=t.setTimeout!==vt.setTimeout&&t.setTimeout,pt=Se.ceil,ht=Se.floor,mt=ke.getOwnPropertySymbols,yt=Ve?Ve.isBuffer:a,gt=t.isFinite,Ft=Re.join,Xt=sn(ke.keys,ke),gn=Se.max,wn=Se.min,On=r.now,_n=t.parseInt,jn=Se.random,En=Re.reverse,Sn=pa(t,"DataView"),kn=pa(t,"Map"),xn=pa(t,"Promise"),Cn=pa(t,"Set"),Tn=pa(t,"WeakMap"),Rn=pa(ke,"create"),Pn=Tn&&new Tn,An={},Ln=Ua(Sn),Nn=Ua(kn),Mn=Ua(xn),Dn=Ua(Cn),In=Ua(Tn),zn=We?We.prototype:a,Fn=zn?zn.valueOf:a,Un=zn?zn.toString:a;function Bn(e){if(ru(e)&&!Yi(e)&&!(e instanceof Kn)){if(e instanceof Hn)return e;if(Me.call(e,"__wrapped__"))return Ba(e)}return new Hn(e)}var Vn=function(){function e(){}return function(t){if(!nu(t))return{};if(Xe)return Xe(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function Wn(){}function Hn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function Kn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=b,this.__views__=[]}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function lr(e,t,n,r,o,i){var u,c=1&t,l=2&t,s=4&t;if(n&&(u=o?n(e,r,o,i):n(e)),u!==a)return u;if(!nu(e))return e;var f=Yi(e);if(f){if(u=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Me.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Po(e,u)}else{var d=ma(e),p=d==E||d==S;if(Qi(e))return So(e,c);if(d==C||d==g||p&&!o){if(u=l||p?{}:ya(e),!c)return l?function(e,t){return Ao(e,ha(e),t)}(e,function(e,t){return e&&Ao(t,Nu(t),e)}(u,e)):function(e,t){return Ao(e,va(e),t)}(e,ar(u,e))}else{if(!ct[d])return o?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case M:return ko(e);case O:case _:return new r(+e);case D:return function(e,t){var n=t?ko(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case z:case F:case U:case B:case V:case W:case H:case K:return xo(e,n);case k:case P:return new r;case x:case A:return new r(e);case R:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case L:return o=e,Fn?ke(Fn.call(o)):{}}var o}(e,d,c)}}i||(i=new Qn);var v=i.get(e);if(v)return v;i.set(e,u),cu(e)?e.forEach((function(r){u.add(lr(r,t,n,r,e,i))})):ou(e)&&e.forEach((function(r,o){u.set(o,lr(r,t,n,o,e,i))}));var h=f?a:(s?l?ia:aa:l?Nu:Lu)(e);return Ct(h||e,(function(r,o){h&&(r=e[o=r]),nr(u,o,lr(r,t,n,o,e,i))})),u}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=ke(e);r--;){var o=n[r],i=t[o],u=e[o];if(u===a&&!(o in e)||!i(u))return!1}return!0}function fr(e,t,n){if("function"!=typeof e)throw new Te(i);return La((function(){e.apply(a,n)}),t)}function dr(e,t,n,r){var o=-1,a=At,i=!0,u=e.length,c=[],l=t.length;if(!u)return c;n&&(t=Nt(t,Gt(n))),r?(a=Lt,i=!1):t.length>=200&&(a=en,i=!1,t=new $n(t));e:for(;++o-1},Xn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(kn||Xn),string:new Yn}},qn.prototype.delete=function(e){var t=fa(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return fa(this,e).get(e)},qn.prototype.has=function(e){return fa(this,e).has(e)},qn.prototype.set=function(e,t){var n=fa(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},$n.prototype.add=$n.prototype.push=function(e){return this.__data__.set(e,u),this},$n.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.clear=function(){this.__data__=new Xn,this.size=0},Qn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Qn.prototype.get=function(e){return this.__data__.get(e)},Qn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Xn){var r=n.__data__;if(!kn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var pr=Mo(Or),vr=Mo(_r,!0);function hr(e,t){var n=!0;return pr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function mr(e,t,n){for(var r=-1,o=e.length;++r0&&n(u)?t>1?yr(u,t-1,n,r,o):Mt(o,u):r||(o[o.length]=u)}return o}var gr=Do(),wr=Do(!0);function Or(e,t){return e&&gr(e,t,Lu)}function _r(e,t){return e&&wr(e,t,Lu)}function jr(e,t){return Pt(t,(function(t){return Ji(e[t])}))}function Er(e,t){for(var n=0,r=(t=Oo(t,e)).length;null!=e&&nt}function Cr(e,t){return null!=e&&Me.call(e,t)}function Tr(e,t){return null!=e&&t in ke(e)}function Rr(e,t,r){for(var o=r?Lt:At,i=e[0].length,u=e.length,c=u,l=n(u),s=1/0,f=[];c--;){var d=e[c];c&&t&&(d=Nt(d,Gt(t))),s=wn(d.length,s),l[c]=!r&&(t||i>=120&&d.length>=120)?new $n(c&&d):a}d=e[0];var p=-1,v=l[0];e:for(;++p=u?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Yr(e,t,n){for(var r=-1,o=t.length,a={};++r-1;)u!==e&&$e.call(u,c,1),$e.call(e,c,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==a){var a=o;wa(o)?$e.call(e,o,1):po(e,o)}}return e}function $r(e,t){return e+ht(jn()*(t-e+1))}function Qr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=ht(t/2))&&(e+=e)}while(t);return n}function Zr(e,t){return Na(Ca(e,t,ac),e+"")}function Gr(e){return Gn(Vu(e))}function Jr(e,t){var n=Vu(e);return Ia(n,cr(t,0,n.length))}function eo(e,t,n,r){if(!nu(e))return e;for(var o=-1,i=(t=Oo(t,e)).length,u=i-1,c=e;null!=c&&++oa?0:a+t),(r=r>a?a:r)<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=n(a);++o>>1,i=e[a];null!==i&&!su(i)&&(n?i<=t:i=200){var l=t?null:Zo(e);if(l)return dn(l);i=!1,o=en,c=new $n}else c=t?[]:u;e:for(;++r=r?e:oo(e,t,n)}var Eo=rt||function(e){return vt.clearTimeout(e)};function So(e,t){if(t)return e.slice();var n=e.length,r=Ke?Ke(n):new e.constructor(n);return e.copy(r),r}function ko(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function xo(e,t){var n=t?ko(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Co(e,t){if(e!==t){var n=e!==a,r=null===e,o=e===e,i=su(e),u=t!==a,c=null===t,l=t===t,s=su(t);if(!c&&!s&&!i&&e>t||i&&u&&l&&!c&&!s||r&&u&&l||!n&&l||!o)return 1;if(!r&&!i&&!s&&e1?n[o-1]:a,u=o>2?n[2]:a;for(i=e.length>3&&"function"==typeof i?(o--,i):a,u&&Oa(n[0],n[1],u)&&(i=o<3?a:i,o=1),t=ke(t);++r-1?o[i?t[u]:u]:a}}function Bo(e){return oa((function(t){var n=t.length,r=n,o=Hn.prototype.thru;for(e&&t.reverse();r--;){var u=t[r];if("function"!=typeof u)throw new Te(i);if(o&&!c&&"wrapper"==ca(u))var c=new Hn([],!0)}for(r=c?r:n;++r1&&g.reverse(),p&&sc))return!1;var s=i.get(e),f=i.get(t);if(s&&f)return s==t&&f==e;var d=-1,p=!0,v=2&n?new $n:a;for(i.set(e,t),i.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ct(y,(function(n){var r="_."+n[0];t&n[1]&&!At(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(fe):[]}(r),n)))}function Da(e){var t=0,n=0;return function(){var r=On(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Ia(e,t){var n=-1,r=e.length,o=r-1;for(t=t===a?r:t;++n1?e[t-1]:a;return n="function"==typeof n?(e.pop(),n):a,ui(e,n)}));function vi(e){var t=Bn(e);return t.__chain__=!0,t}function hi(e,t){return t(e)}var mi=oa((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ur(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Kn&&wa(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:hi,args:[o],thisArg:a}),new Hn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(o)}));var bi=Lo((function(e,t,n){Me.call(e,n)?++e[n]:ir(e,n,1)}));var yi=Uo(Ka),gi=Uo(Ya);function wi(e,t){return(Yi(e)?Ct:pr)(e,sa(t,3))}function Oi(e,t){return(Yi(e)?Tt:vr)(e,sa(t,3))}var _i=Lo((function(e,t,n){Me.call(e,n)?e[n].push(t):ir(e,n,[t])}));var ji=Zr((function(e,t,r){var o=-1,a="function"==typeof t,i=qi(e)?n(e.length):[];return pr(e,(function(e){i[++o]=a?kt(t,e,r):Pr(e,t,r)})),i})),Ei=Lo((function(e,t,n){ir(e,n,t)}));function Si(e,t){return(Yi(e)?Nt:Ur)(e,sa(t,3))}var ki=Lo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var xi=Zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Oa(e,t[0],t[1])?t=[]:n>2&&Oa(t[0],t[1],t[2])&&(t=[t[0]]),Kr(e,yr(t,1),[])})),Ci=lt||function(){return vt.Date.now()};function Ti(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Jo(e,d,a,a,a,a,t)}function Ri(e,t){var n;if("function"!=typeof t)throw new Te(i);return e=mu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}var Pi=Zr((function(e,t,n){var r=1;if(n.length){var o=fn(n,la(Pi));r|=s}return Jo(e,r,t,n,o)})),Ai=Zr((function(e,t,n){var r=3;if(n.length){var o=fn(n,la(Ai));r|=s}return Jo(t,r,e,n,o)}));function Li(e,t,n){var r,o,u,c,l,s,f=0,d=!1,p=!1,v=!0;if("function"!=typeof e)throw new Te(i);function h(t){var n=r,i=o;return r=o=a,f=t,c=e.apply(i,n)}function m(e){return f=e,l=La(y,t),d?h(e):c}function b(e){var n=e-s;return s===a||n>=t||n<0||p&&e-f>=u}function y(){var e=Ci();if(b(e))return g(e);l=La(y,function(e){var n=t-(e-s);return p?wn(n,u-(e-f)):n}(e))}function g(e){return l=a,v&&r?h(e):(r=o=a,c)}function w(){var e=Ci(),n=b(e);if(r=arguments,o=this,s=e,n){if(l===a)return m(s);if(p)return Eo(l),l=La(y,t),h(s)}return l===a&&(l=La(y,t)),c}return t=yu(t)||0,nu(n)&&(d=!!n.leading,u=(p="maxWait"in n)?gn(yu(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),w.cancel=function(){l!==a&&Eo(l),f=0,r=s=o=l=a},w.flush=function(){return l===a?c:g(Ci())},w}var Ni=Zr((function(e,t){return fr(e,1,t)})),Mi=Zr((function(e,t,n){return fr(e,yu(t)||0,n)}));function Di(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(i);var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Di.Cache||qn),n}function Ii(e){if("function"!=typeof e)throw new Te(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Di.Cache=qn;var zi=_o((function(e,t){var n=(t=1==t.length&&Yi(t[0])?Nt(t[0],Gt(sa())):Nt(yr(t,1),Gt(sa()))).length;return Zr((function(r){for(var o=-1,a=wn(r.length,n);++o=t})),Ki=Ar(function(){return arguments}())?Ar:function(e){return ru(e)&&Me.call(e,"callee")&&!qe.call(e,"callee")},Yi=n.isArray,Xi=wt?Gt(wt):function(e){return ru(e)&&kr(e)==M};function qi(e){return null!=e&&tu(e.length)&&!Ji(e)}function $i(e){return ru(e)&&qi(e)}var Qi=yt||yc,Zi=Ot?Gt(Ot):function(e){return ru(e)&&kr(e)==_};function Gi(e){if(!ru(e))return!1;var t=kr(e);return t==j||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!iu(e)}function Ji(e){if(!nu(e))return!1;var t=kr(e);return t==E||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eu(e){return"number"==typeof e&&e==mu(e)}function tu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function nu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ru(e){return null!=e&&"object"==typeof e}var ou=_t?Gt(_t):function(e){return ru(e)&&ma(e)==k};function au(e){return"number"==typeof e||ru(e)&&kr(e)==x}function iu(e){if(!ru(e)||kr(e)!=C)return!1;var t=Ye(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ne.call(n)==Fe}var uu=jt?Gt(jt):function(e){return ru(e)&&kr(e)==R};var cu=Et?Gt(Et):function(e){return ru(e)&&ma(e)==P};function lu(e){return"string"==typeof e||!Yi(e)&&ru(e)&&kr(e)==A}function su(e){return"symbol"==typeof e||ru(e)&&kr(e)==L}var fu=St?Gt(St):function(e){return ru(e)&&tu(e.length)&&!!ut[kr(e)]};var du=qo(Fr),pu=qo((function(e,t){return e<=t}));function vu(e){if(!e)return[];if(qi(e))return lu(e)?hn(e):Po(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=ma(e);return(t==k?ln:t==P?dn:Vu)(e)}function hu(e){return e?(e=yu(e))===v||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function mu(e){var t=hu(e),n=t%1;return t===t?n?t-n:t:0}function bu(e){return e?cr(mu(e),0,b):0}function yu(e){if("number"==typeof e)return e;if(su(e))return m;if(nu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=nu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=ye.test(e);return n||we.test(e)?ft(e.slice(2),n?2:8):be.test(e)?m:+e}function gu(e){return Ao(e,Nu(e))}function wu(e){return null==e?"":so(e)}var Ou=No((function(e,t){if(Sa(t)||qi(t))Ao(t,Lu(t),e);else for(var n in t)Me.call(t,n)&&nr(e,n,t[n])})),_u=No((function(e,t){Ao(t,Nu(t),e)})),ju=No((function(e,t,n,r){Ao(t,Nu(t),e,r)})),Eu=No((function(e,t,n,r){Ao(t,Lu(t),e,r)})),Su=oa(ur);var ku=Zr((function(e,t){e=ke(e);var n=-1,r=t.length,o=r>2?t[2]:a;for(o&&Oa(t[0],t[1],o)&&(r=1);++n1),t})),Ao(e,ia(e),n),r&&(n=lr(n,7,na));for(var o=t.length;o--;)po(n,t[o]);return n}));var zu=oa((function(e,t){return null==e?{}:function(e,t){return Yr(e,t,(function(t,n){return Tu(e,n)}))}(e,t)}));function Fu(e,t){if(null==e)return{};var n=Nt(ia(e),(function(e){return[e]}));return t=sa(t),Yr(e,n,(function(e,n){return t(e,n[0])}))}var Uu=Go(Lu),Bu=Go(Nu);function Vu(e){return null==e?[]:Jt(e,Lu(e))}var Wu=zo((function(e,t,n){return t=t.toLowerCase(),e+(n?Hu(t):t)}));function Hu(e){return Gu(wu(e).toLowerCase())}function Ku(e){return(e=wu(e))&&e.replace(_e,on).replace(et,"")}var Yu=zo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Xu=zo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),qu=Io("toLowerCase");var $u=zo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Qu=zo((function(e,t,n){return e+(n?" ":"")+Gu(t)}));var Zu=zo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Gu=Io("toUpperCase");function Ju(e,t,n){return e=wu(e),(t=n?a:t)===a?function(e){return ot.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var ec=Zr((function(e,t){try{return kt(e,a,t)}catch(n){return Gi(n)?n:new o(n)}})),tc=oa((function(e,t){return Ct(t,(function(t){t=Fa(t),ir(e,t,Pi(e[t],e))})),e}));function nc(e){return function(){return e}}var rc=Bo(),oc=Bo(!0);function ac(e){return e}function ic(e){return Dr("function"==typeof e?e:lr(e,1))}var uc=Zr((function(e,t){return function(n){return Pr(n,e,t)}})),cc=Zr((function(e,t){return function(n){return Pr(e,n,t)}}));function lc(e,t,n){var r=Lu(t),o=jr(t,r);null!=n||nu(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=jr(t,Lu(t)));var a=!(nu(n)&&"chain"in n)||!!n.chain,i=Ji(e);return Ct(o,(function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__),o=n.__actions__=Po(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Mt([this.value()],arguments))})})),e}function sc(){}var fc=Ko(Nt),dc=Ko(Rt),pc=Ko(zt);function vc(e){return _a(e)?Yt(Fa(e)):function(e){return function(t){return Er(t,e)}}(e)}var hc=Xo(),mc=Xo(!0);function bc(){return[]}function yc(){return!1}var gc=Ho((function(e,t){return e+t}),0),wc=Qo("ceil"),Oc=Ho((function(e,t){return e/t}),1),_c=Qo("floor");var jc=Ho((function(e,t){return e*t}),1),Ec=Qo("round"),Sc=Ho((function(e,t){return e-t}),0);return Bn.after=function(e,t){if("function"!=typeof t)throw new Te(i);return e=mu(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=Ti,Bn.assign=Ou,Bn.assignIn=_u,Bn.assignInWith=ju,Bn.assignWith=Eu,Bn.at=Su,Bn.before=Ri,Bn.bind=Pi,Bn.bindAll=tc,Bn.bindKey=Ai,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Yi(e)?e:[e]},Bn.chain=vi,Bn.chunk=function(e,t,r){t=(r?Oa(e,t,r):t===a)?1:gn(mu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,u=0,c=n(pt(o/t));io?0:o+n),(r=r===a||r>o?o:mu(r))<0&&(r+=o),r=n>r?0:bu(r);n>>0)?(e=wu(e))&&("string"==typeof t||null!=t&&!uu(t))&&!(t=so(t))&&cn(e)?jo(hn(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new Te(i);return t=null==t?0:gn(mu(t),0),Zr((function(n){var r=n[t],o=jo(n,0,t);return r&&Mt(o,r),kt(e,this,o)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Bn.take=function(e,t,n){return e&&e.length?oo(e,0,(t=n||t===a?1:mu(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=r-(t=n||t===a?1:mu(t)))<0?0:t,r):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?ho(e,sa(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?ho(e,sa(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Te(i);return nu(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Li(e,t,{leading:r,maxWait:t,trailing:o})},Bn.thru=hi,Bn.toArray=vu,Bn.toPairs=Uu,Bn.toPairsIn=Bu,Bn.toPath=function(e){return Yi(e)?Nt(e,Fa):su(e)?[e]:Po(za(wu(e)))},Bn.toPlainObject=gu,Bn.transform=function(e,t,n){var r=Yi(e),o=r||Qi(e)||fu(e);if(t=sa(t,4),null==n){var a=e&&e.constructor;n=o?r?new a:[]:nu(e)&&Ji(a)?Vn(Ye(e)):{}}return(o?Ct:Or)(e,(function(e,r,o){return t(n,e,r,o)})),n},Bn.unary=function(e){return Ti(e,1)},Bn.union=ri,Bn.unionBy=oi,Bn.unionWith=ai,Bn.uniq=function(e){return e&&e.length?fo(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?fo(e,sa(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?fo(e,a,t):[]},Bn.unset=function(e,t){return null==e||po(e,t)},Bn.unzip=ii,Bn.unzipWith=ui,Bn.update=function(e,t,n){return null==e?e:vo(e,t,wo(n))},Bn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:vo(e,t,wo(n),r)},Bn.values=Vu,Bn.valuesIn=function(e){return null==e?[]:Jt(e,Nu(e))},Bn.without=ci,Bn.words=Ju,Bn.wrap=function(e,t){return Fi(wo(t),e)},Bn.xor=li,Bn.xorBy=si,Bn.xorWith=fi,Bn.zip=di,Bn.zipObject=function(e,t){return yo(e||[],t||[],nr)},Bn.zipObjectDeep=function(e,t){return yo(e||[],t||[],eo)},Bn.zipWith=pi,Bn.entries=Uu,Bn.entriesIn=Bu,Bn.extend=_u,Bn.extendWith=ju,lc(Bn,Bn),Bn.add=gc,Bn.attempt=ec,Bn.camelCase=Wu,Bn.capitalize=Hu,Bn.ceil=wc,Bn.clamp=function(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=(n=yu(n))===n?n:0),t!==a&&(t=(t=yu(t))===t?t:0),cr(yu(e),t,n)},Bn.clone=function(e){return lr(e,4)},Bn.cloneDeep=function(e){return lr(e,5)},Bn.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:a)},Bn.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:a)},Bn.conformsTo=function(e,t){return null==t||sr(e,t,Lu(t))},Bn.deburr=Ku,Bn.defaultTo=function(e,t){return null==e||e!==e?t:e},Bn.divide=Oc,Bn.endsWith=function(e,t,n){e=wu(e),t=so(t);var r=e.length,o=n=n===a?r:cr(mu(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Bn.eq=Vi,Bn.escape=function(e){return(e=wu(e))&&G.test(e)?e.replace(Q,an):e},Bn.escapeRegExp=function(e){return(e=wu(e))&&ie.test(e)?e.replace(ae,"\\$&"):e},Bn.every=function(e,t,n){var r=Yi(e)?Rt:hr;return n&&Oa(e,t,n)&&(t=a),r(e,sa(t,3))},Bn.find=yi,Bn.findIndex=Ka,Bn.findKey=function(e,t){return Ut(e,sa(t,3),Or)},Bn.findLast=gi,Bn.findLastIndex=Ya,Bn.findLastKey=function(e,t){return Ut(e,sa(t,3),_r)},Bn.floor=_c,Bn.forEach=wi,Bn.forEachRight=Oi,Bn.forIn=function(e,t){return null==e?e:gr(e,sa(t,3),Nu)},Bn.forInRight=function(e,t){return null==e?e:wr(e,sa(t,3),Nu)},Bn.forOwn=function(e,t){return e&&Or(e,sa(t,3))},Bn.forOwnRight=function(e,t){return e&&_r(e,sa(t,3))},Bn.get=Cu,Bn.gt=Wi,Bn.gte=Hi,Bn.has=function(e,t){return null!=e&&ba(e,t,Cr)},Bn.hasIn=Tu,Bn.head=qa,Bn.identity=ac,Bn.includes=function(e,t,n,r){e=qi(e)?e:Vu(e),n=n&&!r?mu(n):0;var o=e.length;return n<0&&(n=gn(o+n,0)),lu(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Vt(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:mu(n);return o<0&&(o=gn(r+o,0)),Vt(e,t,o)},Bn.inRange=function(e,t,n){return t=hu(t),n===a?(n=t,t=0):n=hu(n),function(e,t,n){return e>=wn(t,n)&&e=-9007199254740991&&e<=h},Bn.isSet=cu,Bn.isString=lu,Bn.isSymbol=su,Bn.isTypedArray=fu,Bn.isUndefined=function(e){return e===a},Bn.isWeakMap=function(e){return ru(e)&&ma(e)==N},Bn.isWeakSet=function(e){return ru(e)&&"[object WeakSet]"==kr(e)},Bn.join=function(e,t){return null==e?"":Ft.call(e,t)},Bn.kebabCase=Yu,Bn.last=Ga,Bn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==a&&(o=(o=mu(n))<0?gn(r+o,0):wn(o,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Bt(e,Ht,o,!0)},Bn.lowerCase=Xu,Bn.lowerFirst=qu,Bn.lt=du,Bn.lte=pu,Bn.max=function(e){return e&&e.length?mr(e,ac,xr):a},Bn.maxBy=function(e,t){return e&&e.length?mr(e,sa(t,2),xr):a},Bn.mean=function(e){return Kt(e,ac)},Bn.meanBy=function(e,t){return Kt(e,sa(t,2))},Bn.min=function(e){return e&&e.length?mr(e,ac,Fr):a},Bn.minBy=function(e,t){return e&&e.length?mr(e,sa(t,2),Fr):a},Bn.stubArray=bc,Bn.stubFalse=yc,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=jc,Bn.nth=function(e,t){return e&&e.length?Hr(e,mu(t)):a},Bn.noConflict=function(){return vt._===this&&(vt._=Ue),this},Bn.noop=sc,Bn.now=Ci,Bn.pad=function(e,t,n){e=wu(e);var r=(t=mu(t))?vn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Yo(ht(o),n)+e+Yo(pt(o),n)},Bn.padEnd=function(e,t,n){e=wu(e);var r=(t=mu(t))?vn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=jn();return wn(e+o*(t-e+st("1e-"+((o+"").length-1))),t)}return $r(e,t)},Bn.reduce=function(e,t,n){var r=Yi(e)?Dt:qt,o=arguments.length<3;return r(e,sa(t,4),n,o,pr)},Bn.reduceRight=function(e,t,n){var r=Yi(e)?It:qt,o=arguments.length<3;return r(e,sa(t,4),n,o,vr)},Bn.repeat=function(e,t,n){return t=(n?Oa(e,t,n):t===a)?1:mu(t),Qr(wu(e),t)},Bn.replace=function(){var e=arguments,t=wu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var r=-1,o=(t=Oo(t,e)).length;for(o||(o=1,e=a);++rh)return[];var n=b,r=wn(e,b);t=sa(t),e-=b;for(var o=Qt(r,t);++n=i)return e;var c=n-vn(r);if(c<1)return r;var l=u?jo(u,0,c).join(""):e.slice(0,c);if(o===a)return l+r;if(u&&(c+=l.length-c),uu(o)){if(e.slice(c).search(o)){var s,f=l;for(o.global||(o=xe(o.source,wu(me.exec(o))+"g")),o.lastIndex=0;s=o.exec(f);)var d=s.index;l=l.slice(0,d===a?c:d)}}else if(e.indexOf(so(o),c)!=c){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+r},Bn.unescape=function(e){return(e=wu(e))&&Z.test(e)?e.replace($,bn):e},Bn.uniqueId=function(e){var t=++De;return wu(e)+t},Bn.upperCase=Zu,Bn.upperFirst=Gu,Bn.each=wi,Bn.eachRight=Oi,Bn.first=qa,lc(Bn,function(){var e={};return Or(Bn,(function(t,n){Me.call(Bn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Bn.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),Ct(["drop","take"],(function(e,t){Kn.prototype[e]=function(n){n=n===a?1:gn(mu(n),0);var r=this.__filtered__&&!t?new Kn(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,b),type:e+(r.__dir__<0?"Right":"")}),r},Kn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Kn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:sa(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Kn.prototype[e]=function(){return this[n](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Kn.prototype[e]=function(){return this.__filtered__?new Kn(this):this[n](1)}})),Kn.prototype.compact=function(){return this.filter(ac)},Kn.prototype.find=function(e){return this.filter(e).head()},Kn.prototype.findLast=function(e){return this.reverse().find(e)},Kn.prototype.invokeMap=Zr((function(e,t){return"function"==typeof e?new Kn(this):this.map((function(n){return Pr(n,e,t)}))})),Kn.prototype.reject=function(e){return this.filter(Ii(sa(e)))},Kn.prototype.slice=function(e,t){e=mu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Kn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(n=(t=mu(t))<0?n.dropRight(-t):n.take(t-e)),n)},Kn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Kn.prototype.toArray=function(){return this.take(b)},Or(Kn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Bn[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(Bn.prototype[t]=function(){var t=this.__wrapped__,u=r?[1]:arguments,c=t instanceof Kn,l=u[0],s=c||Yi(t),f=function(e){var t=o.apply(Bn,Mt([e],u));return r&&d?t[0]:t};s&&n&&"function"==typeof l&&1!=l.length&&(c=s=!1);var d=this.__chain__,p=!!this.__actions__.length,v=i&&!d,h=c&&!p;if(!i&&s){t=h?t:new Kn(this);var m=e.apply(t,u);return m.__actions__.push({func:hi,args:[f],thisArg:a}),new Hn(m,d)}return v&&h?e.apply(this,u):(m=this.thru(f),v?r?m.value()[0]:m.value():m)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Re[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Yi(o)?o:[],e)}return this[n]((function(n){return t.apply(Yi(n)?n:[],e)}))}})),Or(Kn.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";Me.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}})),An[Vo(a,2).name]=[{name:"wrapper",func:a}],Kn.prototype.clone=function(){var e=new Kn(this.__wrapped__);return e.__actions__=Po(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Po(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Po(this.__views__),e},Kn.prototype.reverse=function(){if(this.__filtered__){var e=new Kn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Kn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Yi(e),r=t<0,o=n?e.length:0,a=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof Wn;){var r=Ba(n);r.__index__=0,r.__values__=a,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Kn){var t=e;return this.__actions__.length&&(t=new Kn(this)),(t=t.reverse()).__actions__.push({func:hi,args:[ni],thisArg:a}),new Hn(t,this.__chain__)}return this.thru(ni)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,Ze&&(Bn.prototype[Ze]=function(){return this}),Bn}();vt._=yn,(o=function(){return yn}.call(t,n,t,r))===a||(r.exports=o)}).call(this)}).call(this,n(68),n(69)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return P})),n.d(t,"b",(function(){return A}));var r=n(2),o=n(4),a=n(3),i=(n(19),n(0));i["useId".toString()];var u=n(14),c=n(15),l=n(22),s=n(5),f=Object(l.a)("Label",{id:void 0,controlRef:{current:null}}),d=Object(a.a)(f,2),p=(d[0],d[1]),v=n(33),h=n(34),m=n(27),b=n(11),y=["__scopeSwitch","aria-labelledby","name","checked","defaultChecked","required","disabled","value","onCheckedChange"],g=["__scopeSwitch"],w=["control","checked","bubbles"],O=Object(l.b)("Switch"),_=Object(a.a)(O,2),j=_[0],E=(_[1],j("Switch")),S=Object(a.a)(E,2),k=S[0],x=S[1],C=i.forwardRef((function(e,t){var n=e.__scopeSwitch,r=e["aria-labelledby"],l=e.name,f=e.checked,d=e.defaultChecked,v=e.required,h=e.disabled,g=e.value,w=void 0===g?"on":g,O=e.onCheckedChange,_=Object(o.a)(e,y),j=i.useState(null),E=Object(a.a)(j,2),S=E[0],x=E[1],C=Object(c.b)(t,(function(e){return x(e)})),P=function(e){var t=p("LabelConsumer"),n=t.controlRef;return i.useEffect((function(){e&&(n.current=e)}),[e,n]),t.id}(S),A=r||P,L=i.useRef(!1),N=!S||Boolean(S.closest("form")),M=Object(m.a)({prop:f,defaultProp:d,onChange:O}),D=Object(a.a)(M,2),I=D[0],z=void 0!==I&&I,F=D[1];return i.createElement(k,{scope:n,checked:z,disabled:h},i.createElement(u.a.button,Object(s.a)({type:"button",role:"switch","aria-checked":z,"aria-labelledby":A,"aria-required":v,"data-state":R(z),"data-disabled":h?"":void 0,disabled:h,value:w},_,{ref:C,onClick:Object(b.a)(e.onClick,(function(e){F((function(e){return!e})),N&&(L.current=e.isPropagationStopped(),L.current||e.stopPropagation())}))})),N&&i.createElement(T,{control:S,bubbles:!L.current,name:l,value:w,checked:z,required:v,disabled:h,style:{transform:"translateX(-100%)"}}))})),T=function(e){var t=e.control,n=e.checked,a=e.bubbles,u=void 0===a||a,c=Object(o.a)(e,w),l=i.useRef(null),f=Object(h.a)(n),d=Object(v.a)(t);return i.useEffect((function(){var e=l.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(f!==n&&r){var o=new Event("click",{bubbles:u});r.call(e,n),e.dispatchEvent(o)}}),[f,n,u]),i.createElement("input",Object(s.a)({type:"checkbox","aria-hidden":!0,defaultChecked:n},c,{tabIndex:-1,ref:l,style:Object(r.a)(Object(r.a)(Object(r.a)({},e.style),d),{},{position:"absolute",pointerEvents:"none",opacity:0,margin:0})}))};function R(e){return e?"checked":"unchecked"}var P=C,A=i.forwardRef((function(e,t){var n=e.__scopeSwitch,r=Object(o.a)(e,g),a=x("SwitchThumb",n);return i.createElement(u.a.span,Object(s.a)({"data-state":R(a.checked),"data-disabled":a.disabled?"":void 0},r,{ref:t}))}))},function(e,t,n){"use strict";var r=n(0),o=n(18),a=o.a?window:null,i=function(e){return!!e.addEventListener},u=function(e){return!!e.on},c=function(e,t,n,c){void 0===n&&(n=a),Object(r.useEffect)((function(){if(t&&n)return i(n)?Object(o.d)(n,e,t,c):u(n)&&n.on(e,t,c),function(){i(n)?Object(o.c)(n,e,t,c):u(n)&&n.off(e,t,c)}}),[e,t,n,JSON.stringify(c)])};t.a=function(e,t,n,a){void 0===t&&(t=o.b),void 0===n&&(n={}),void 0===a&&(a=[e]);var i=n.event,u=void 0===i?"keydown":i,l=n.target,s=n.options,f=Object(r.useMemo)((function(){var n,r="function"===typeof(n=e)?n:"string"===typeof n?function(e){return e.key===n}:n?function(){return!0}:function(){return!1};return function(e){if(r(e))return t(e)}}),a);c(u,f,l,s)}},function(e,t,n){"use strict";t.a=function(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map((function(e){e(n)})),(r=e.get("*"))&&r.slice().map((function(e){e(t,n)}))}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;return crypto.getRandomValues(new Uint8Array(e)).reduce((function(e,t){return e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"}),"")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var r="undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function o(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function a(e,t){for(var n=t.slice(0,t.length-1),r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var u={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"\u21ea":20,",":188,".":190,"/":191,"`":192,"-":r?173:189,"=":r?61:187,";":r?59:186,"'":222,"[":219,"]":221,"\\":220},c={"\u21e7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},l={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},s={16:!1,18:!1,17:!1,91:!1},f={},d=1;d<20;d++)u["f".concat(d)]=111+d;var p=[],v=!1,h="all",m=[],b=function(e){return u[e.toLowerCase()]||c[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function y(e){h=e||"all"}function g(){return h||"all"}var w=function(e){var t=e.key,n=e.scope,r=e.method,o=e.splitKey,u=void 0===o?"+":o;i(t).forEach((function(e){var t=e.split(u),o=t.length,i=t[o-1],l="*"===i?"*":b(i);if(f[l]){n||(n=g());var s=o>1?a(c,t):[];f[l]=f[l].filter((function(e){return!((!r||e.method===r)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,o=!0,a=0;a0,s)Object.prototype.hasOwnProperty.call(s,a)&&(!s[a]&&t.mods.indexOf(+a)>-1||s[a]&&-1===t.mods.indexOf(+a))&&(o=!1);(0!==t.mods.length||s[16]||s[18]||s[17]||s[91])&&!o&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function _(e,t){var n=f["*"],r=e.keyCode||e.which||e.charCode;if(j.filter.call(this,e)){if(93!==r&&224!==r||(r=91),-1===p.indexOf(r)&&229!==r&&p.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=l[t];e[t]&&-1===p.indexOf(n)?p.push(n):!e[t]&&p.indexOf(n)>-1?p.splice(p.indexOf(n),1):"metaKey"===t&&e[t]&&3===p.length&&(e.ctrlKey||e.shiftKey||e.altKey||(p=p.slice(p.indexOf(n))))})),r in s){for(var o in s[r]=!0,c)c[o]===r&&(j[o]=!0);if(!n)return}for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(s[a]=e[l[a]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===p.indexOf(17)&&p.push(17),-1===p.indexOf(18)&&p.push(18),s[17]=!0,s[18]=!0);var i=g();if(n)for(var u=0;u1&&(u=a(c,e)),(e="*"===(e=e[e.length-1])?"*":b(e))in f||(f[e]=[]),f[e].push({keyup:y,keydown:g,scope:l,mods:u,shortcut:r[h],method:n,key:r[h],splitKey:w,element:d});"undefined"!==typeof d&&!function(e){return m.indexOf(e)>-1}(d)&&window&&(m.push(d),o(d,"keydown",(function(e){_(e,d)}),O),v||(v=!0,o(window,"focus",(function(){p=[]}),O)),o(d,"keyup",(function(e){_(e,d),function(e){var t=e.keyCode||e.which||e.charCode,n=p.indexOf(t);if(n>=0&&p.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&p.splice(0,p.length),93!==t&&224!==t||(t=91),t in s)for(var r in s[t]=!1,c)c[r]===t&&(j[r]=!1)}(e)}),O))}var E={setScope:y,getScope:g,deleteScope:function(e,t){var n,r;for(var o in e||(e=g()),f)if(Object.prototype.hasOwnProperty.call(f,o))for(n=f[o],r=0;r1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(f).forEach((function(n){var r=f[n].find((function(n){return n.scope===t&&n.shortcut===e}));r&&r.method&&r.method()}))},unbind:function(e){if("undefined"===typeof e)Object.keys(f).forEach((function(e){return delete f[e]}));else if(Array.isArray(e))e.forEach((function(e){e.key&&w(e)}));else if("object"===typeof e)e.key&&w(e);else if("string"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r