From e8cf7e8d9c0f611dd9b19b12adf0a9fb9f953af0 Mon Sep 17 00:00:00 2001 From: blessedcoolant Date: Tue, 3 May 2022 23:53:30 +1200 Subject: [PATCH] new build updated build --- lama_cleaner/app/build/asset-manifest.json | 14 +++++++------- lama_cleaner/app/build/index.html | 2 +- .../app/build/static/css/main.4201b632.chunk.css | 1 - .../app/build/static/css/main.6ee9d650.chunk.css | 1 + .../{2.2d367d07.chunk.js => 2.637977cb.chunk.js} | 2 +- ...LICENSE.txt => 2.637977cb.chunk.js.LICENSE.txt} | 0 .../app/build/static/js/main.18cd2cfc.chunk.js | 1 - .../app/build/static/js/main.ffa71c45.chunk.js | 1 + 8 files changed, 11 insertions(+), 11 deletions(-) delete mode 100644 lama_cleaner/app/build/static/css/main.4201b632.chunk.css create mode 100644 lama_cleaner/app/build/static/css/main.6ee9d650.chunk.css rename lama_cleaner/app/build/static/js/{2.2d367d07.chunk.js => 2.637977cb.chunk.js} (99%) rename lama_cleaner/app/build/static/js/{2.2d367d07.chunk.js.LICENSE.txt => 2.637977cb.chunk.js.LICENSE.txt} (100%) delete mode 100644 lama_cleaner/app/build/static/js/main.18cd2cfc.chunk.js create mode 100644 lama_cleaner/app/build/static/js/main.ffa71c45.chunk.js diff --git a/lama_cleaner/app/build/asset-manifest.json b/lama_cleaner/app/build/asset-manifest.json index 40d8867..91dce03 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.4201b632.chunk.css", - "main.js": "/static/js/main.18cd2cfc.chunk.js", + "main.css": "/static/css/main.6ee9d650.chunk.css", + "main.js": "/static/js/main.ffa71c45.chunk.js", "runtime-main.js": "/static/js/runtime-main.5e86ac81.js", - "static/js/2.2d367d07.chunk.js": "/static/js/2.2d367d07.chunk.js", + "static/js/2.637977cb.chunk.js": "/static/js/2.637977cb.chunk.js", "index.html": "/index.html", - "static/js/2.2d367d07.chunk.js.LICENSE.txt": "/static/js/2.2d367d07.chunk.js.LICENSE.txt", + "static/js/2.637977cb.chunk.js.LICENSE.txt": "/static/js/2.637977cb.chunk.js.LICENSE.txt", "static/media/_index.scss": "/static/media/WorkSans-SemiBold.1e98db4e.ttf" }, "entrypoints": [ "static/js/runtime-main.5e86ac81.js", - "static/js/2.2d367d07.chunk.js", - "static/css/main.4201b632.chunk.css", - "static/js/main.18cd2cfc.chunk.js" + "static/js/2.637977cb.chunk.js", + "static/css/main.6ee9d650.chunk.css", + "static/js/main.ffa71c45.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 c47f9fa..ba0a2c3 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 LaMa
\ No newline at end of file diff --git a/lama_cleaner/app/build/static/css/main.4201b632.chunk.css b/lama_cleaner/app/build/static/css/main.4201b632.chunk.css deleted file mode 100644 index 5d8a5f3..0000000 --- a/lama_cleaner/app/build/static/css/main.4201b632.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);--error-color:#ef4444;--success-color:#10b981;--editor-toolkit-bg:hsla(0,0%,100%,0.5);--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-primary-bg:#d2d2dc;--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)}:root,[data-theme=dark]{--yellow-accent:#fc0;--options-text-color:var(--page-text-color)}[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;--editor-toolkit-bg:rgba(0,0,0,0.5);--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-primary-bg:#8c8cb4;--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}@-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)}}.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:1rem 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:#d2d2dc;background:var(--btn-primary-bg)}.editor-brush-slider input[type=range]::-moz-range-track{border-radius:2rem;background:#d2d2dc;background:var(--btn-primary-bg)}.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}.editor-size-selector-options{position:fixed;display:grid}.editor-size-selector{grid-area:toolkit-size-selector;display:grid;grid-template-columns:repeat(2,-webkit-max-content);grid-template-columns:repeat(2,max-content);align-items:center}.editor-size-selector-main{background:var(#fff);color:#000;font-family:"WorkSans";padding:.5rem;border-radius:.5rem;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;justify-content:space-between;align-items:center;cursor:pointer;outline:none;grid-gap:8px;gap:8px;width:128px;border:1px solid #646478;border:1px solid var(--editor-size-border-color);color:#040404;color:var(--options-text-color)}.editor-size-selector-main svg{width:1rem;height:1rem;margin-top:.25rem}.editor-size-options{background:#d2d2dc;background:var(--btn-primary-bg);color:#000;font-family:"WorkSans";border-radius:.5rem;width:128px;padding:0;display:grid;justify-self:center;position:fixed;bottom:4rem;cursor:pointer;color:#040404;color:var(--options-text-color);background-color:#fff;background-color:var(--page-bg);border:1px solid #646478;border:1px solid var(--editor-size-border-color);border-radius:.6rem}@media screen and (max-width:767px){.editor-size-options{bottom:11.5rem}}.editor-size-options .editor-size-option{display:flex;align-items:center;height:40px;-webkit-user-select:none;-ms-user-select:none;user-select:none;padding:.2rem .8rem}.editor-size-options .editor-size-option:first-of-type{border-top-right-radius:.5rem;border-top-left-radius:.5rem}.editor-size-options .editor-size-option:last-of-type{border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem}.editor-size-options .editor-size-option:hover{background-color:#fc0;background-color:var(--yellow-accent);color:#040404;color:var(--btn-text-hover-color)}.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 2rem;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}.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;margin-top:-11rem;-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-template-columns:auto;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;font-family:"WorkSans-Bold";border:1px solid #000;border:1px solid var(--modal-hotkey-border-color);padding:.4rem 1rem;width:-webkit-max-content;width:max-content;border-radius:.4rem}@media screen and (max-width:767px){.shortcut-options .shortcut-key{padding:.2rem .4rem}}.shortcut-options .shortcut-description{justify-self:start;text-align:left;width:18rem}@media screen and (max-width:767px){.shortcut-options .shortcut-description{text-align:left;width:auto;justify-self:start}}.setting-block{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}.setting-block .option-desc .sub-setting-block{margin-top:8px;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:column;justify-content:space-between}.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{color:#6b6f76;color:var(--text-color-gray);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:700px}@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}}.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;border:1px solid #646478;border:1px solid var(--btn-border-color);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{pointer-events:none;opacity:.5}.modal-mask{z-index:9999;height:100%;width:100%;display:flex;justify-content:center;align-items:center;position:absolute;background-color:rgba(209,213,219,.4);background-color:var(--model-mask-bg);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.modal{display:grid;grid-auto-rows:-webkit-max-content;grid-auto-rows:max-content;grid-row-gap:2rem;row-gap:2rem;place-self:center;padding:2rem;border-radius:.95rem}.modal .modal-header{display:grid;grid-template-columns:repeat(2,auto);align-items:center}.modal .modal-header .btn-primary{justify-self:end}.selector{position:relative;flex-direction:column}.selector,.selector-main{display:flex;align-items:center;justify-content:space-between}.selector-main{background:var(#fff);color:#000;font-family:"WorkSans";border-radius:.5rem;width:100%;-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;grid-gap:8px;gap:8px;padding:.2rem .8rem;border:1px solid #646478;border:1px solid var(--border-color);color:#040404;color:var(--options-text-color)}.selector-main svg{width:1rem;height:1rem;margin-top:.25rem}.selector-options{background:#d2d2dc;background:var(--btn-primary-bg);color:#000;font-family:"WorkSans";border-radius:.5rem;width:100%;padding:0;display:grid;justify-self:center;position:absolute;cursor:pointer;top:3rem;color:#040404;color:var(--options-text-color);background-color:#fff;background-color:var(--page-bg);border:1px solid #646478;border:1px solid var(--border-color);border-radius:.6rem}@media screen and (max-width:767px){.selector-options{bottom:11.5rem}}.selector-options .selector-option{display:flex;align-items:center;-webkit-user-select:none;-ms-user-select:none;user-select:none;padding:.5rem .8rem}.selector-options .selector-option:first-of-type{border-top-right-radius:.5rem;border-top-left-radius:.5rem}.selector-options .selector-option:last-of-type{border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem}.selector-options .selector-option:hover{background-color:#fc0;background-color:var(--yellow-accent);color:#040404;color:var(--btn-text-hover-color)}.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:.2rem .8rem;line-height:1;outline:1px solid #646478;outline:1px solid var(--border-color)}.number-input:focus-visible{outline:1px solid #fc0;outline:1px solid var(--yellow-accent)}.toast-viewpoint{position:fixed;top:48px;right:0;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}*,: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.6ee9d650.chunk.css b/lama_cleaner/app/build/static/css/main.6ee9d650.chunk.css new file mode 100644 index 0000000..f3e1235 --- /dev/null +++ b/lama_cleaner/app/build/static/css/main.6ee9d650.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);--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-primary-bg:#d2d2dc;--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)}:root,[data-theme=dark]{--yellow-accent:#fc0;--options-text-color:var(--page-text-color)}[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;--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-primary-bg:#8c8cb4;--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}@-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)}}.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:1rem 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:#d2d2dc;background:var(--btn-primary-bg)}.editor-brush-slider input[type=range]::-moz-range-track{border-radius:2rem;background:#d2d2dc;background:var(--btn-primary-bg)}.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}.editor-size-selector-options{position:fixed;display:grid}.editor-size-selector{grid-area:toolkit-size-selector;display:grid;grid-template-columns:repeat(2,-webkit-max-content);grid-template-columns:repeat(2,max-content);align-items:center}.editor-size-selector-main{background:var(#fff);color:#000;font-family:"WorkSans";padding:.5rem;border-radius:.5rem;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;justify-content:space-around;align-items:center;cursor:pointer;outline:none;grid-gap:8px;gap:8px;width:128px;background-color:#e6e6ea;background-color:var(--editor-options-bg);color:#040404;color:var(--options-text-color)}.editor-size-selector-main svg{width:1rem;height:1rem;margin-top:.25rem}.editor-size-options{background:#d2d2dc;background:var(--btn-primary-bg);color:#000;font-family:"WorkSans";border-radius:.5rem;width:128px;padding:0;display:grid;justify-self:start;width:-webkit-max-content;width:max-content;position:fixed;bottom:4rem;cursor:pointer;color:#040404;color:var(--options-text-color);background-color:#e6e6ea;background-color:var(--editor-options-bg);border-radius:.6rem}@media screen and (max-width:767px){.editor-size-options{bottom:11.5rem}}.editor-size-options .editor-size-option{display:flex;align-items:center;height:40px;-webkit-user-select:none;-ms-user-select:none;user-select:none;padding:.2rem .8rem}.editor-size-options .editor-size-option:first-of-type{border-top-right-radius:.5rem;border-top-left-radius:.5rem}.editor-size-options .editor-size-option:last-of-type{border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem}.editor-size-options .editor-size-option:hover{background-color:#fc0;background-color:var(--yellow-accent);color:#040404;color:var(--btn-text-hover-color)}.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 2rem;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}.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;margin-top:-11rem;-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-template-columns:auto;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;font-family:"WorkSans-Bold";border:1px solid #000;border:1px solid var(--modal-hotkey-border-color);padding:.4rem 1rem;width:-webkit-max-content;width:max-content;border-radius:.4rem}@media screen and (max-width:767px){.shortcut-options .shortcut-key{padding:.2rem .4rem}}.shortcut-options .shortcut-description{justify-self:start;text-align:left;width:18rem}@media screen and (max-width:767px){.shortcut-options .shortcut-description{text-align:left;width:auto;justify-self:start}}.setting-block{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}.setting-block .option-desc .sub-setting-block{margin-top:8px;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:column;justify-content:space-between}.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{color:#6b6f76;color:var(--text-color-gray);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:700px}@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}}.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;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{pointer-events:none;opacity:.5}.modal-mask{z-index:9999;height:100%;width:100%;display:flex;justify-content:center;align-items:center;position:absolute;background-color:rgba(209,213,219,.4);background-color:var(--model-mask-bg);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.modal{display:grid;grid-auto-rows:-webkit-max-content;grid-auto-rows:max-content;grid-row-gap:2rem;row-gap:2rem;place-self:center;padding:2rem;border-radius:.95rem}.modal .modal-header{display:grid;grid-template-columns:repeat(2,auto);align-items:center}.modal .modal-header .btn-primary{justify-self:end}.selector{position:relative;flex-direction:column}.selector,.selector-main{display:flex;align-items:center;justify-content:space-between}.selector-main{background:var(#fff);color:#000;font-family:"WorkSans";border-radius:.5rem;width:100%;-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;grid-gap:8px;gap:8px;padding:.2rem .8rem;border:1px solid #646478;border:1px solid var(--border-color);color:#040404;color:var(--options-text-color)}.selector-main svg{width:1rem;height:1rem;margin-top:.25rem}.selector-options{background:#d2d2dc;background:var(--btn-primary-bg);color:#000;font-family:"WorkSans";border-radius:.5rem;width:100%;padding:0;display:grid;justify-self:center;position:absolute;cursor:pointer;top:3rem;color:#040404;color:var(--options-text-color);background-color:#fff;background-color:var(--page-bg);border:1px solid #646478;border:1px solid var(--border-color);border-radius:.6rem}@media screen and (max-width:767px){.selector-options{bottom:11.5rem}}.selector-options .selector-option{display:flex;align-items:center;-webkit-user-select:none;-ms-user-select:none;user-select:none;padding:.5rem .8rem}.selector-options .selector-option:first-of-type{border-top-right-radius:.5rem;border-top-left-radius:.5rem}.selector-options .selector-option:last-of-type{border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem}.selector-options .selector-option:hover{background-color:#fc0;background-color:var(--yellow-accent);color:#040404;color:var(--btn-text-hover-color)}.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:.2rem .8rem;line-height:1;outline:1px solid #646478;outline:1px solid var(--border-color)}.number-input:focus-visible{outline:1px solid #fc0;outline:1px solid var(--yellow-accent)}.toast-viewpoint{position:fixed;top:48px;right:0;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}*,: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.2d367d07.chunk.js b/lama_cleaner/app/build/static/js/2.637977cb.chunk.js similarity index 99% rename from lama_cleaner/app/build/static/js/2.2d367d07.chunk.js rename to lama_cleaner/app/build/static/js/2.637977cb.chunk.js index 860eac4..c56bc43 100644 --- a/lama_cleaner/app/build/static/js/2.2d367d07.chunk.js +++ b/lama_cleaner/app/build/static/js/2.637977cb.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 2.2d367d07.chunk.js.LICENSE.txt */ +/*! For license information please see 2.637977cb.chunk.js.LICENSE.txt */ (this["webpackJsonplama-cleaner"]=this["webpackJsonplama-cleaner"]||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(32)},function(e,t,n){"use strict";e.exports=n(38)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(24);var o=n(19),a=n(26);function i(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(l){o=!0,a=l}finally{try{r||null==u.return||u.return()}finally{if(o)throw a}}return n}}(e,t)||Object(o.a)(e,t)||Object(a.a)()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(16);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";n.d(t,"a",(function(){return ju})),n.d(t,"b",(function(){return Au})),n.d(t,"c",(function(){return zu})),n.d(t,"d",(function(){return Mu})),n.d(t,"e",(function(){return Du}));var r=n(24),o=n(25),a=n(19),i=n(26);function u(e){return Object(r.a)(e)||Object(o.a)(e)||Object(a.a)(e)||Object(i.a)()}var l=n(8),c=n(5),s=n(9),f=n(2);function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function v(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function h(e,t,n){return h=v()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&p(o,n.prototype),o},h.apply(null,arguments)}function m(e){var t="function"===typeof Map?new Map:void 0;return m=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return h(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),p(r,e)},m(e)}var y=n(4),g=n.n(y);function b(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Object(a.a)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return u=e.done,e},e:function(e){l=!0,i=e},f:function(){try{u||null==n.return||n.return()}finally{if(l)throw i}}}}var w=n(16),S=n(3);function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}function E(e){return E="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},E(e)}function T(e,t){return!t||"object"!==E(t)&&"function"!==typeof t?k(e):t}function O(e){var t=v();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return T(this,n)}}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};return n.error,null},_e=ke,Ee=function e(){C(this,e)},Te=new Ee,Oe=function(e){_(n,e);var t=O(n);function n(e){return C(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}(m(Error)),Ce=new Map,xe=new Map;var Re=function(e){_(n,e);var t=O(n);function n(){return C(this,n),t.apply(this,arguments)}return n}(m(Error));var Ne=new Map;function Pe(e){return Ne.get(e)}var Le={nodes:Ce,recoilValues:xe,registerNode:function(e){if(Ce.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)}Ce.set(e.key,e);var n=null==e.set?new me.RecoilValueReadOnly(e.key):new me.RecoilState(e.key);return xe.set(e.key,n),n},getNode:function(e){var t=Ce.get(e);if(null==t)throw new Re('Missing definition for RecoilValue: "'.concat(e,'""'));return t},getNodeMaybe:function(e){return Ce.get(e)},deleteNodeConfigIfPossible:function(e){var t;if(we("recoil_memory_managament_2020")){var n,r=Ce.get(e);if(null!==r&&void 0!==r&&null!==(t=r.shouldDeleteConfigOnRelease)&&void 0!==t&&t.call(r))Ce.delete(e),null===(n=Pe(e))||void 0===n||n(),Ne.delete(e)}},setConfigDeletionHandler:function(e,t){we("recoil_memory_managament_2020")&&(void 0===t?Ne.delete(e):Ne.set(e,t))},getConfigDeletionHandler:Pe,recoilValuesForKeys:function(e){return Se(e,(function(e){return F(xe.get(e))}))},NodeMissingError:Re,DefaultValue:Ee,DEFAULT_VALUE:Te,RecoilValueNotReady:Oe};var je={enqueueExecution:function(e,t){t()}};var Ae=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={},l=function(e){return function(){return e}},c=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?g(e,this.hash,l):l[0]}var c=r();return c===u?this:(++i.value,S(e,n,this.hash,this,o,y(e,o,a,c)))},T=function(e,t,n,r,o,i,u){var l=this.mask,c=this.children,y=s(n,o),g=f(y),S=d(l,g),_=l&g,E=_?c[S]:h,T=E._modify(e,t,n+5,r,o,i,u);if(E===T)return this;var O,C=k(e,this),x=l,R=void 0;if(_&&m(T)){if(!(x&=~g))return h;if(c.length<=2&&((O=c[1^S])===h||1===O.type||2===O.type))return c[1^S];R=v(C,S,c)}else if(_||m(T))R=p(C,S,T,c);else{if(c.length>=a)return function(e,t,n,r,o){for(var a=[],i=r,u=0,l=0;i;++l)1&i&&(a[l]=o[u++]),i>>>=1;return a[t]=n,w(e,u+1,a)}(e,y,T,l,c);x|=g,R=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,l=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)&&_e("Tried to read from a discarded tree");var u=Mt(e,a,o);return"loading"===u.state&&u.contents.catch((function(){})),u},setRecoilValue:en,setRecoilValueLoadable:function(e,t,n){if(n instanceof Ut)return en(e,t,n);$t(e,{type:"setLoadable",recoilValue:t,loadable:n})},markRecoilValueModified:function(e,t){$t(e,{type:"markModified",recoilValue:t})},setUnvalidatedRecoilValue:function(e,t,n){$t(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=Dt(),i=e.getState();i.nodeToComponentSubscriptions.has(r)||i.nodeToComponentSubscriptions.set(r,new Map),F(i.nodeToComponentSubscriptions.get(r)).set(a,[null!==o&&void 0!==o?o:"",n]);var u=Bt();if(u.early&&("LEGACY"===u.mode||"MUTABLE_SOURCE"===u.mode)){var l=e.getState().nextTree;l&&l.dirtyAtoms.has(r)&&n(l)}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)):_e("Subscription missing at release time for atom ".concat(r,". This is a bug in Recoil."))}}},isRecoilValue:Kt,applyAtomValueWrites:function(e,t){var n=e.clone();return t.forEach((function(e,t){"hasValue"===e.state&&e.contents instanceof Ut?n.delete(t):n.set(t,e)})),n},batchStart:function(){var e=new Map;return Gt.push(e),function(){var t,n=b(e);try{for(n.s();!(t=n.n()).done;){var r=Object(f.a)(t.value,2);Qt(r[0],r[1])}}catch(o){n.e(o)}finally{n.f()}Gt.pop()!==e&&_e("Incorrect order of batch popping")}},writeLoadableToTreeState:qt,invalidateDownstreams:Jt,copyTreeState:Zt,refreshRecoilValue:function(e,t){var n,r=e.getState().currentTree,o=It(t.key);null===(n=o.clearCache)||void 0===n||n.call(o,e,r)},invalidateDownstreams_FOR_TESTING:Jt};var nn=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},rn=Ot,on=Le.deleteNodeConfigIfPossible,an=Le.getNode,un=rt,ln=new Set;function cn(e,t){var n=e.getState(),r=n.currentTree;if(n.nextTree)_e("releaseNodesNowOnCurrentTree should only be called at the end of a batch");else{var o,a=new Set,i=b(t);try{for(i.s();!(o=i.n()).done;){var u=o.value;if(u instanceof un){var l,c=b(fn(n,u));try{for(c.s();!(l=c.n()).done;){var s=l.value;a.add(s)}}catch(v){c.e(v)}finally{c.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 l,c=new Set,s=function(e,t,n,r,o){var a=e.getGraph(t.version),i=[],u=new Set;for(;n.size>0;)l(F(n.values().next().value));return i;function l(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 c,s=b(t);try{for(s.s();!(c=s.n()).done;){l(c.value)}}catch(v){s.e(v)}finally{s.f()}}u.add(e),n.delete(e),i.push(e)}}}(e,r,t,a,i),f=b(s);try{for(f.s();!(l=f.n()).done;){var d,p=l.value;if("recoilRoot"!==an(p).retainedBy)if((null!==(d=n.retention.referenceCounts.get(p))&&void 0!==d?d:0)>0)i.add(p);else if(dn(p).some((function(e){return n.retention.referenceCounts.get(e)})))i.add(p);else{var h=o.nodeToNodeSubscriptions.get(p);h&&nn(h,(function(e){return i.has(e)}))?i.add(p):(a.add(p),c.add(p))}else i.add(p)}}catch(v){f.e(v)}finally{f.f()}var m,y=new Set,g=b(c);try{for(g.s();!(m=g.n()).done;){var w,S=m.value,k=b(null!==(_=o.nodeDeps.get(S))&&void 0!==_?_:ln);try{for(k.s();!(w=k.n()).done;){var _,E=w.value;a.has(E)||y.add(E)}}catch(v){k.e(v)}finally{k.f()}}}catch(v){g.e(v)}finally{g.f()}y.size&&u(y)}}(e,a),p=b(d);try{for(p.s();!(f=p.n()).done;){sn(e,r,f.value)}}catch(v){p.e(v)}finally{p.f()}}}function sn(e,t,n){if(we("recoil_memory_managament_2020")){rn(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=b(dn(n));try{for(a.s();!(o=a.n()).done;){var i,u=o.value;null===(i=r.retention.nodesRetainedByZone.get(u))||void 0===i||i.delete(n)}}catch(v){a.e(v)}finally{a.f()}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);var l=r.graphsByVersion.get(t.version);if(l){var c=l.nodeDeps.get(n);if(void 0!==c){l.nodeDeps.delete(n);var s,f=b(c);try{for(f.s();!(s=f.n()).done;){var d,p=s.value;null===(d=l.nodeToNodeSubscriptions.get(p))||void 0===d||d.delete(n)}}catch(v){f.e(v)}finally{f.f()}}l.nodeToNodeSubscriptions.delete(n)}on(n)}}function fn(e,t){var n;return null!==(n=e.retention.nodesRetainedByZone.get(t))&&void 0!==n?n:ln}function dn(e){var t=an(e).retainedBy;return void 0===t||"components"===t||"recoilRoot"===t?[]:t instanceof un?[t]:t}function pn(e,t){we("recoil_memory_managament_2020")&&(e.getState().retention.referenceCounts.delete(t),function(e,t){var n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):cn(e,new Set([t]))}(e,t))}var vn=12e4,hn=function(e,t,n){var r;if(we("recoil_memory_managament_2020")){var o=e.getState().retention.referenceCounts,a=(null!==(r=o.get(t))&&void 0!==r?r:0)+n;0===a?pn(e,t):o.set(t,a)}},mn=function(e){if(we("recoil_memory_managament_2020")){var t=e.getState();cn(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}},yn=function(e){return void 0===e?"recoilRoot":e},gn=j.a.unstable_batchedUpdates,bn=tn.batchStart,wn={unstable_batchedUpdates:{unstable_batchedUpdates:gn}.unstable_batchedUpdates}.unstable_batchedUpdates,Sn=function(e){wn((function(){var t=function(){};try{t=bn(),e()}finally{t()}}))};function kn(e){var t,n,r,o,a,i;return g.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:t=b(e),u.prev=1,t.s();case 3:if((n=t.n()).done){u.next=24;break}r=n.value,o=b(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()}}),I,null,[[1,26,29,32],[6,16,19,22]])}var _n=kn,En={isSSR:"undefined"===typeof window,isReactNative:"undefined"!==typeof navigator&&"ReactNative"===navigator.product};var Tn=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(){we("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 Hn(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.getState(),o=n?Vn():t.version;return{currentTree:n?{version:o,stateID:o,transactionMetadata:Object(S.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(Se(r.nodeCleanupFunctions.entries(),(function(e){return[Object(f.a)(e,1)[0],function(){}]})))}}var Yn=Bn((function(e,t){var n=e.getState(),r="current"===t?n.currentTree:F(n.previousTree);return new Wn(Hn(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)})),Kn=Object(f.a)(Yn,2),Xn=Kn[0],qn=Kn[1];var Qn=function(e){_(n,e);var t=O(n);function n(e,r){var o;return C(this,n),B(k(o=t.call(this,Hn(e.getStore_INTERNAL(),e.getStore_INTERNAL().getState().currentTree,!0))),"_batch",void 0),B(k(o),"set",(function(e,t){o.checkRefCount_INTERNAL();var n=o.getStore_INTERNAL();o._batch((function(){In(n,e.key,1),zn(o.getStore_INTERNAL(),e,t)}))})),B(k(o),"reset",(function(e){o.checkRefCount_INTERNAL();var t=o.getStore_INTERNAL();o._batch((function(){In(t,e.key,1),zn(o.getStore_INTERNAL(),e,Pn)}))})),B(k(o),"setUnvalidatedAtomValues_DEPRECATED",(function(e){o.checkRefCount_INTERNAL();var t=o.getStore_INTERNAL();On((function(){var n,r=b(e.entries());try{for(r.s();!(n=r.n()).done;){var o=Object(f.a)(n.value,2),a=o[0],i=o[1];In(t,a,1),Dn(t,new An(a),i)}}catch(u){r.e(u)}finally{r.f()}}))})),o._batch=r,o}return n}(Wn),$n={Snapshot:Wn,MutableSnapshot:Qn,freshSnapshot:function(e){var t=new Wn(Un());return null!=e?t.map(e):t},cloneSnapshot:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"current",n=Xn(e,t);return n.isRetained()?n:(qn(),Xn(e,t))}},Gn=$n.Snapshot,Zn=$n.MutableSnapshot,Jn=$n.freshSnapshot,er=$n.cloneSnapshot,tr=Object.freeze({__proto__:null,Snapshot:Gn,MutableSnapshot:Zn,freshSnapshot:Jn,cloneSnapshot:er});var nr=function(){for(var e=new Set,t=arguments.length,n=new Array(t),r=0;r component.")}var Cr=Object.freeze({storeID:vr(),getState:Or,replaceState:Or,getGraph:Or,subscribeToTransactions:Or,addTransactionMetadata:Or}),xr=!1;function Rr(e){if(xr)throw V("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){we("recoil_memory_managament_2020")&&we("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&gr(e);var n=t.currentTree.version,r=ar();t.nextTree=Object(S.a)(Object(S.a)({},t.currentTree),{},{version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}}),t.graphsByVersion.set(r,pr(F(t.graphsByVersion.get(n))))}}var Nr=P.a.createContext({current:Cr}),Pr=function(){return Sr(Nr)},Lr=P.a.createContext(null);function jr(e,t,n){var r,o=b(lr(e,n,n.dirtyAtoms));try{for(o.s();!(r=o.n()).done;){var a=r.value,i=t.nodeToComponentSubscriptions.get(a);if(i){var u,l=b(i);try{for(l.s();!(u=l.n()).done;){var c=Object(f.a)(u.value,2),s=(c[0],Object(f.a)(c[1],2));s[0];(0,s[1])(n)}}catch(d){l.e(d)}finally{l.f()}}}}catch(d){o.e(d)}finally{o.f()}}function Ar(e){var t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){var o,a=b(t.nodeTransactionSubscriptions);try{for(a.s();!(o=a.n()).done;){var i=Object(f.a)(o.value,2),u=i[0],l=i[1];if(r.has(u)){var c,s=b(l);try{for(s.s();!(c=s.n()).done;){var d=Object(f.a)(c.value,2);d[0];(0,d[1])(e)}}catch(m){s.e(m)}finally{s.f()}}}}catch(m){a.e(m)}finally{a.f()}var p,v=b(t.transactionSubscriptions);try{for(v.s();!(p=v.n()).done;){var h=Object(f.a)(p.value,2);h[0];(0,h[1])(e)}}catch(m){v.e(m)}finally{v.f()}(!mr().early||t.suspendedComponentResolvers.size>0)&&(jr(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 Mr(e){var t=e.setNotifyBatcherOfChange,n=Pr(),r=Tr([]),o=Object(f.a)(r,2)[1];return t((function(){return o({})})),kr((function(){return t((function(){return o({})})),function(){t((function(){}))}}),[t]),kr((function(){je.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,Ar(e),null!=t.previousTree?t.graphsByVersion.delete(t.previousTree.version):_e("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,we("recoil_memory_managament_2020")&&gr(e)}finally{t.commitDepth--}}(n.current)}))})),null}var zr=0;function Dr(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 F(n.get(e));var r=dr();return n.set(e,r),r},u=function(e,t){if(null==t){var n=d.current.getState().transactionSubscriptions,r=zr++;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=zr++;return F(o.get(t)).set(a,e),{release:function(){var e=o.get(t);e&&(e.delete(a),0===e.size&&o.delete(t))}}},l=function(e){Rr(d.current);for(var t=0,n=Object.keys(e);t. must be an ancestor of any component that uses Recoil hooks."),e},Fr=function(){return Pr().current.storeID};var Br=function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(var n=0,r=e.length;n"},no=Le.DEFAULT_VALUE,ro=jt.reactMode,oo=jt.useMutableSource,ao=jt.useSyncExternalStore,io=Ur,uo=Vr,lo=(me.isRecoilValue,tn.getRecoilValueAsLoadable),co=tn.setRecoilValue,so=tn.subscribeToRecoilValue,fo=P.a.useCallback,po=P.a.useEffect,vo=P.a.useMemo,ho=P.a.useRef,mo=P.a.useState;function yo(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:V('Invalid value of loadable atom "'.concat(t.key,'"'))}function go(e){var t=uo(),n=to(),r=fo((function(){var n;var r=t.current,o=r.getState(),a=ro().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return{loadable:lo(r,e,a),key:e.key}}),[t,e]),o=fo((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=vo((function(){return o(r)}),[r,o]),i=fo((function(r){var o=t.current;return so(o,e,r,n).release}),[t,e,n]);return ao(i,a,a).loadable}function bo(e){var t=uo(),n=fo((function(){var n,r=t.current,o=r.getState(),a=ro().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return lo(r,e,a)}),[t,e]),r=fo((function(){return n()}),[n]),o=to(),a=fo((function(r,a){var i=t.current;return so(i,e,(function(){if(!we("recoil_suppress_rerender_in_callback"))return a();var e=n();l.current.is(e)||a(),l.current=e}),o).release}),[t,e,o,n]),i=io();if(null==i)throw V("Recoil hooks must be used in components contained within a component.");var u=oo(i,r,a),l=ho(u);return po((function(){l.current=u})),u}function wo(e){var t=uo(),n=to(),r=fo((function(){var n;var r=t.current,o=r.getState(),a=ro().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return lo(r,e,a)}),[t,e]),o=fo((function(){return{loadable:r(),key:e.key}}),[r,e.key]),a=fo((function(e){var t=o();return e.loadable.is(t.loadable)&&e.key===t.key?e:t}),[o]);po((function(){var r=so(t.current,e,(function(e){c(a)}),n);return c(a),r.release}),[n,e,t,a]);var i=mo(o),u=Object(f.a)(i,2),l=u[0],c=u[1];return l.key!==e.key?o().loadable:l.loadable}function So(e){var t=uo(),n=mo([]),r=Object(f.a)(n,2)[1],o=to(),a=fo((function(){var n;var r=t.current,o=r.getState(),a=ro().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return lo(r,e,a)}),[t,e]),i=a(),u=ho(i);return po((function(){u.current=i})),po((function(){var n=t.current,i=n.getState(),l=so(n,e,(function(e){var t;if(!we("recoil_suppress_rerender_in_callback"))return r([]);var n=a();null!==(t=u.current)&&void 0!==t&&t.is(n)||r(n),u.current=n}),o);if(i.nextTree)n.getState().queuedComponentCallbacks_DEPRECATED.push((function(){u.current=null,r([])}));else{var c;if(!we("recoil_suppress_rerender_in_callback"))return r([]);var s=a();null!==(c=u.current)&&void 0!==c&&c.is(s)||r(s),u.current=s}return l.release}),[o,a,e,t]),i}function ko(e){return we("recoil_memory_managament_2020")&&Jr(e),{TRANSITION_SUPPORT:wo,SYNC_EXTERNAL_STORE:go,MUTABLE_SOURCE:bo,LEGACY:So}[ro().mode](e)}function _o(e){var t=uo();return yo(ko(e),e,t)}function Eo(e){var t=uo();return fo((function(n){co(t.current,e,n)}),[t,e])}function To(e){return we("recoil_memory_managament_2020")&&Jr(e),wo(e)}function Oo(e){var t=uo();return yo(To(e),e,t)}var Co=function(e){return[_o(e),Eo(e)]},xo=function(e){return[ko(e),Eo(e)]},Ro=_o,No=ko,Po=function(e){var t=uo();return fo((function(){co(t.current,e,no)}),[t,e])},Lo=Eo,jo=To,Ao=Oo,Mo=function(e){return[Oo(e),Eo(e)]};var zo=Sn,Do=Le.DEFAULT_VALUE,Io=Le.getNode,Vo=Vr,Uo=tn.AbstractRecoilValue,Fo=tn.setRecoilValueLoadable,Bo=vn,Wo=tr.cloneSnapshot,Ho=P.a.useCallback,Yo=P.a.useEffect,Ko=P.a.useRef,Xo=P.a.useState,qo=En.isSSR;function Qo(e){var t=Vo();Yo((function(){return t.current.subscribeToTransactions(e).release}),[e,t])}function $o(e,t){var n,r=e.getState(),o=null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree,a=t.getStore_INTERNAL().getState().currentTree;zo((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=F(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,Ja=Object.freeze({__proto__:null,LRUCache:Za}),ei=Ja.LRUCache,ti=Ga.TreeCache;var ni=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=new ei({maxSize:e}),r=new ti({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 ri(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 V("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(U(e))return"__PROMISE__";if(Array.isArray(e))return"[".concat(e.map((function(e,n){return ri(e,t,n.toString())})),"]");if("function"===typeof e.toJSON)return ri(e.toJSON(n),t,n);if(e instanceof Map){var o,a={},i=b(e);try{for(i.s();!(o=i.n()).done;){var u=Object(f.a)(o.value,2),l=u[0],c=u[1];a["string"===typeof l?l:ri(l,t)]=c}}catch(s){i.e(s)}finally{i.f()}return ri(a,t,n)}return e instanceof Set?ri(Array.from(e).sort((function(e,n){return ri(e,t).localeCompare(ri(n,t))})),t,n):void 0!==Symbol&&null!=e[Symbol.iterator]&&"function"===typeof e[Symbol.iterator]?ri(Array.from(e),t,n):"{".concat(Object.keys(e).filter((function(t){return void 0!==e[t]})).sort().map((function(n){return"".concat(ri(n,t),":").concat(ri(e[n],t,n))})).join(","),"}")}var oi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{allowFunctions:!1};return ri(e,t)},ai=Ga.TreeCache,ii={equality:"reference",eviction:"keep-all",maxSize:1/0};function ui(e){switch(e){case"reference":return function(e){return e};case"value":return function(e){return oi(e)}}throw V("Unrecognized equality policy ".concat(e))}function li(e,t,n){switch(e){case"keep-all":return new ai({mapNodeValue:n});case"lru":return ni(F(t),n);case"most-recent":return ni(1,n)}throw V("Unrecognized eviction policy ".concat(e))}var ci=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ii,t=e.equality,n=void 0===t?ii.equality:t,r=e.eviction,o=void 0===r?ii.eviction:r,a=e.maxSize,i=void 0===a?ii.maxSize:a,u=ui(n),l=li(o,i,u);return l};var si=function(e){return function(){return null}},fi=ue.loadableWithError,di=ue.loadableWithPromise,pi=ue.loadableWithValue,vi=kt,hi=_t,mi=Et,yi=He,gi=Le.DEFAULT_VALUE,bi=Le.RecoilValueNotReady,wi=Le.getConfigDeletionHandler,Si=Le.getNode,ki=Le.registerNode,_i=me.isRecoilValue,Ei=tn.markRecoilValueModified,Ti=yn,Oi=Aa,Ci=si,xi=function e(){C(this,e)},Ri=new xi,Ni=[],Pi=new Map,Li=function(){var e=0;return function(){return e++}}();var ji=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,u=ci(null!==o&&void 0!==o?o:{equality:"reference",eviction:"keep-all"}),l=Ti(e.retainedBy_UNSTABLE),c=new Map,s=0;function d(){return!we("recoil_memory_managament_2020")||s>0}function p(e){return e.getState().knownSelectors.add(n),s++,function(){s--}}function v(){return void 0!==wi(n)&&!d()}function h(e,t,n,r,o){P(t,r,o),S(e,t,new Set(o.keys()),n),m(e,n)}function m(e,n){N(e,n)&&R(e);var r=Pi.get(n);if(void 0!==r){var o,a=b(r);try{for(a.s();!(o=a.n()).done;){var i=o.value;Ei(i,F(t))}}catch(u){a.e(u)}finally{a.f()}Pi.delete(n)}}function y(e,t){var n=Pi.get(t);null==n&&Pi.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 F(t.atomValues.get(n));var o=vi(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 R(e),Ri;null!=a.loadingDepKey&&a.loadingDepPromise===t?n.atomValues.set(a.loadingDepKey,pi(r)):e.getState().knownSelectors.forEach((function(e){n.atomValues.delete(e)}));var i=_(e,n);if(i&&"loading"!==i.state){if((N(e,o)||null==C(e))&&m(e,o),"hasValue"===i.state)return i.contents;throw i.contents}if(!N(e,o)){var u=T(n);if("loading"===(null===u||void 0===u?void 0:u.latestLoadable.state))return u.latestLoadable.contents}var l=k(e,n,o),c=Object(f.a)(l,2),s=c[0],p=c[1];if(x(e,o,p),"loading"!==s.state&&h(e,n,o,s,p),"hasError"===s.state)throw s.contents;return s.contents})).catch((function(t){if(t instanceof xi)throw Ri;if(!d())throw R(e),Ri;var a=fi(t);throw h(e,n,o,a,r),t}))}function S(e,t,r,o){var a,u,l,c,s,f,d;(N(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===(l=e.getState())||void 0===l||null===(c=l.nextTree)||void 0===c?void 0:c.version))&&(yi(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 k(e,o,a){var i,u=Ci(n),l=!0,c=function(){u(),l=!1},s=!1,f={loadingDepKey:null,loadingDepPromise:null},p=new Map,v=new Set;function m(t){var n=t.key;!function(e,t,n,r,o){n.add(r),S(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 V("Invalid Loadable state")}S(e,o,v,a);try{i=r({get:m,getCallback:function(n){return function(){if(l)throw V("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&&Sa(!1);for(var r=arguments.length,o=new Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:nu,t=e.equality,n=void 0===t?nu.equality:t,r=e.eviction,o=void 0===r?nu.eviction:r,a=e.maxSize,i=void 0===a?nu.maxSize:a,u=ru(n),l=ou(o,i,u);return l},iu=Le.setConfigDeletionHandler;var uu=function(e){var t,n,r=au({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,a=r.get(t);if(null!=a)return a;e.cachePolicyForParams_UNSTABLE;var i=Object(c.a)(e,z),u=Gi(Object(S.a)(Object(S.a)({},i),{},{key:"".concat(e.key,"__").concat(null!==(n=oi(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,u),iu(u.key,(function(){r.delete(t)})),u}},lu=Le.setConfigDeletionHandler,cu=0;var su=function(e){var t,n,r=au({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=oi(t,{allowFunctions:!0}))&&void 0!==n?n:"void","/").concat(cu++),u=function(n){return e.get(t)(n)},l=e.cachePolicy_UNSTABLE,c="function"===typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE;if(null!=e.set){var s=e.set;a=ji({key:i,get:u,set:function(e,n){return s(t)(e,n)},cachePolicy_UNSTABLE:l,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:c})}else a=ji({key:i,get:u,cachePolicy_UNSTABLE:l,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:c});return r.set(t,a),lu(a.key,(function(){r.delete(t)})),a}},fu=su({key:"__constant",get:function(e){return function(){return e}},cachePolicyForParams_UNSTABLE:{equality:"reference"}});var du=function(e){return fu(e)},pu=su({key:"__error",get:function(e){return function(){throw V(e)}},cachePolicyForParams_UNSTABLE:{equality:"reference"}});var vu=function(e){return pu(e)};var hu=function(e){return e},mu=ue.loadableWithError,yu=ue.loadableWithPromise,gu=ue.loadableWithValue;function bu(e,t){var n,r=Array(t.length).fill(void 0),o=Array(t.length).fill(void 0),a=b(t.entries());try{for(a.s();!(n=a.n()).done;){var i=Object(f.a)(n.value,2),u=i[0],l=i[1];try{r[u]=e(l)}catch(c){o[u]=c}}}catch(s){a.e(s)}finally{a.f()}return[r,o]}function wu(e){return null!=e&&!U(e)}function Su(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map((function(t){return e[t]}))}function ku(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((function(e,n,r){return Object(S.a)(Object(S.a)({},e),{},Object(w.a)({},n,t[r]))}),{})}function _u(e,t,n){return ku(e,n.map((function(e,n){return null==e?gu(t[n]):U(e)?yu(e):mu(e)})))}var Eu={waitForNone:su({key:"__waitForNone",get:function(e){return function(t){var n=bu(t.get,Su(e)),r=Object(f.a)(n,2),o=r[0],a=r[1];return _u(e,o,a)}},dangerouslyAllowMutability:!0}),waitForAny:su({key:"__waitForAny",get:function(e){return function(t){var n=bu(t.get,Su(e)),r=Object(f.a)(n,2),o=r[0],a=r[1];return a.some((function(e){return!U(e)}))?_u(e,o,a):new Promise((function(t){var n,r=b(a.entries());try{var i=function(){var r=Object(f.a)(n.value,2),i=r[0],u=r[1];U(u)&&u.then((function(n){o[i]=n,a[i]=void 0,t(_u(e,o,a))})).catch((function(n){a[i]=n,t(_u(e,o,a))}))};for(r.s();!(n=r.n()).done;)i()}catch(u){r.e(u)}finally{r.f()}}))}},dangerouslyAllowMutability:!0}),waitForAll:su({key:"__waitForAll",get:function(e){return function(t){var n=bu(t.get,Su(e)),r=Object(f.a)(n,2),o=r[0],a=r[1];if(a.every((function(e){return null==e})))return ku(e,o);var i=a.find(wu);if(null!=i)throw i;return Promise.all(a).then((function(t){return ku(e,(n=o,t.map((function(e,t){return void 0===e?n[t]:e}))));var n}))}},dangerouslyAllowMutability:!0}),waitForAllSettled:su({key:"__waitForAllSettled",get:function(e){return function(t){var n=bu(t.get,Su(e)),r=Object(f.a)(n,2),o=r[0],a=r[1];return a.every((function(e){return!U(e)}))?_u(e,o,a):Promise.all(a.map((function(e,t){return U(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 _u(e,o,a)}))}},dangerouslyAllowMutability:!0}),noWait:su({key:"__noWait",get:function(e){return function(t){var n=t.get;try{return gu(n(e))}catch(r){return U(r)?yu(r):mu(r)}}},dangerouslyAllowMutability:!0})},Tu=ue.RecoilLoadable,Ou=Le.DefaultValue,Cu=Ir,xu=Fr,Ru=me.isRecoilValue,Nu=ot,Pu=tr.freshSnapshot,Lu={DefaultValue:Ou,isRecoilValue:Ru,RecoilLoadable:Tu,RecoilRoot:Cu,useRecoilStoreID:xu,useRecoilBridgeAcrossReactRoots_UNSTABLE:la,atom:Gi,selector:ji,atomFamily:uu,selectorFamily:su,constSelector:du,errorSelector:vu,readOnlySelector:hu,noWait:Eu.noWait,waitForNone:Eu.waitForNone,waitForAny:Eu.waitForAny,waitForAll:Eu.waitForAll,waitForAllSettled:Eu.waitForAllSettled,useRecoilValue:Ro,useRecoilValueLoadable:No,useRecoilState:Co,useRecoilStateLoadable:xo,useSetRecoilState:Lo,useResetRecoilState:Po,useGetRecoilValueInfo_UNSTABLE:ra,useRecoilRefresher_UNSTABLE:Va,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:jo,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Ao,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Mo,useRecoilCallback:Ma,useRecoilTransaction_UNSTABLE:Wa,useGotoRecoilSnapshot:Jo,useRecoilSnapshot:Go,useRecoilTransactionObserver_UNSTABLE:ea,snapshot_UNSTABLE:Pu,useRetain:Jr,retentionZone:Nu},ju=Lu.RecoilRoot,Au=Lu.atom,Mu=Lu.useRecoilValue,zu=Lu.useRecoilState,Du=Lu.useSetRecoilState},function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t1?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(l.a)({},a,{ref:n}))}))))}),{})},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";n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i}));var r=function(){};function o(e){for(var t=[],n=1;n1&&void 0!==arguments[1]?arguments[1]:[],n=[],l=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 l.scopeName=e,[function(t,o){var a=u.createContext(o),l=n.length;function s(t){var n=t.scope,r=t.children,o=Object(i.a)(t,c),s=(null==n?void 0:n[e][l])||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][l])||a,c=u.useContext(i);if(c)return c;if(void 0!==o)return o;throw new Error("`".concat(n,"` must be used within `").concat(t,"`"))}]},d.apply(void 0,[l].concat(Object(r.a)(t)))]}function d(){for(var e=arguments.length,t=new Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,F=V>=I,B=function(e){var t=Object(p.a)((function(e){var t=e.target,n=Object(o.a)(w.branches).some((function(e){return e.contains(t)}));F&&!n&&(null==h||h(e),null==y||y(e),e.defaultPrevented||null==g||g())})),n=l.useRef(!1);return l.useEffect((function(){var e=function(e){e.target&&!n.current&&C("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}}}(),W=function(e){var t=Object(p.a)((function(e){var t=e.target;Object(o.a)(w.branches).some((function(e){return e.contains(t)}))||(null==m||m(e),null==y||y(e),e.defaultPrevented||null==g||g())})),n=l.useRef(!1);return l.useEffect((function(){var e=function(e){e.target&&!n.current&&C("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 function(e){var t=Object(p.a)(e);l.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){V===w.layers.size-1&&(null==d||d(e),e.defaultPrevented||null==g||g())})),function(e){var t=e.disabled,n=l.useRef(!1);Object(f.a)((function(){if(t){var e=function(){0===--k&&(document.body.style.pointerEvents=S)},r=function(e){n.current="mouse"!==e.pointerType};return 0===k&&(S=document.body.style.pointerEvents),document.body.style.pointerEvents="none",k++,document.addEventListener("pointerup",r),function(){n.current?document.addEventListener("click",e,{once:!0}):e(),document.removeEventListener("pointerup",r)}}}),[t])}({disabled:s}),l.useEffect((function(){N&&(s&&w.layersWithOutsidePointerEventsDisabled.add(N),w.layers.add(N),O())}),[N,s,w]),l.useEffect((function(){return function(){N&&(w.layers.delete(N),w.layersWithOutsidePointerEventsDisabled.delete(N),O())}}),[N,w]),l.useEffect((function(){var e=function(){return j({})};return document.addEventListener("dismissableLayer.update",e),function(){return document.removeEventListener("dismissableLayer.update",e)}}),[]),l.createElement(u.a.div,Object(c.a)({},b,{ref:A,style:Object(r.a)({pointerEvents:U?F?"auto":"none":void 0},e.style),onFocusCapture:Object(_.a)(e.onFocusCapture,W.onFocusCapture),onBlurCapture:Object(_.a)(e.onBlurCapture,W.onBlurCapture),onPointerDownCapture:Object(_.a)(e.onPointerDownCapture,B.onPointerDownCapture)}))})),R=l.forwardRef((function(e,t){var n=l.useContext(T),r=l.useRef(null),o=Object(v.b)(t,r);return l.useEffect((function(){var e=r.current;if(e)return n.branches.add(e),function(){n.branches.delete(e)}}),[n.branches]),l.createElement(u.a.div,Object(c.a)({},e,{ref:o}))})),N=n(20),P=["__scopeToast","hotkey","label"],L=["forceMount","open","defaultOpen","onOpenChange"],j=["__scopeToast","type","duration","open","onClose","onEscapeKeyDown","onSwipeStart","onSwipeMove","onSwipeCancel","onSwipeEnd"],A=["__scopeToast"],M=["__scopeToast"],z=["altText"],D=["__scopeToast"],I=Object(N.b)("Toast"),V=Object(i.a)(I,2),U=V[0],F=(V[1],U("ToastProvider")),B=Object(i.a)(F,2),W=B[0],H=B[1],Y=["F8"],K=l.forwardRef((function(e,t){var n=e.__scopeToast,r=e.hotkey,s=void 0===r?Y:r,f=e.label,d=void 0===f?"Notifications ({hotkey})":f,p=Object(a.a)(e,P),h=H("ToastViewport",n),m=l.useRef(null),y=l.useRef(null),g=Object(v.b)(t,y,h.onViewportChange),b=s.join("+").replace(/Key/g,"").replace(/Digit/g,"");return l.useEffect((function(){var e=function(e){var t;s.every((function(t){return e[t]||e.code===t}))&&(null===(t=y.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}),[s]),l.useEffect((function(){var e=m.current,t=y.current;if(e&&t){var n=function(){var e=new Event("toast.viewportPause");t.dispatchEvent(e),h.isClosePausedRef.current=!0},r=function(){var e=new Event("toast.viewportResume");t.dispatchEvent(e),h.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)}}}),[h.isClosePausedRef]),l.useEffect((function(){var e=y.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()}}}),[]),l.createElement(R,{ref:m,role:"region","aria-label":d.replace("{hotkey}",b),tabIndex:-1,style:{pointerEvents:h.toastCount>0?void 0:"none"}},l.createElement(u.a.ol,Object(c.a)({tabIndex:-1},p,{ref:g})))})),X=l.forwardRef((function(e,t){var n=e.forceMount,r=e.open,o=e.defaultOpen,u=e.onOpenChange,s=Object(a.a)(e,L),f=Object(d.a)({prop:r,defaultProp:o,onChange:u}),p=Object(i.a)(f,2),v=p[0],m=void 0===v||v,y=p[1];return l.createElement(h,{present:n||m},l.createElement(Z,Object(c.a)({open:m},s,{ref:t,onClose:function(){return y(!1)},onSwipeStart:Object(_.a)(e.onSwipeStart,(function(e){e.currentTarget.setAttribute("data-swipe","start")})),onSwipeMove:Object(_.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(_.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(_.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")),y(!1)}))})))})),q=U("Toast",{isInteractive:!1,onClose:function(){}}),Q=Object(i.a)(q,2),$=Q[0],G=Q[1],Z=l.forwardRef((function(e,t){var n=e.__scopeToast,o=e.type,i=void 0===o?"foreground":o,s=e.duration,f=e.open,d=e.onClose,h=e.onEscapeKeyDown,m=e.onSwipeStart,g=e.onSwipeMove,b=e.onSwipeCancel,w=e.onSwipeEnd,S=Object(a.a)(e,j),k=H("Toast",n),E=l.useRef(null),T=Object(v.b)(t,E),O=l.useRef(null),C=l.useRef(null),R=s||k.duration,N=l.useRef(0),P=l.useRef(R),L=l.useRef(0),A=k.onToastAdd,M=k.onToastRemove,z=Object(p.a)((function(){var e,t;(null===(e=E.current)||void 0===e?void 0:e.contains(document.activeElement))&&(null===(t=k.viewport)||void 0===t||t.focus()),d()})),D=l.useCallback((function(e){e&&e!==1/0&&(window.clearTimeout(L.current),N.current=(new Date).getTime(),L.current=window.setTimeout(z,e))}),[z]);return l.useEffect((function(){var e=k.viewport;if(e){var t=function(){D(P.current)},n=function(){var e=(new Date).getTime()-N.current;P.current=P.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)}}}),[k.viewport,R,D]),l.useEffect((function(){f&&!k.isClosePausedRef.current&&D(R)}),[f,R,k.isClosePausedRef,D]),l.useEffect((function(){return A(),function(){return M()}}),[A,M]),k.viewport?l.createElement(l.Fragment,null,l.createElement(J,{__scopeToast:n,role:"status","aria-live":"foreground"===i?"assertive":"polite","aria-atomic":!0},e.children),l.createElement($,{scope:n,isInteractive:!0,onClose:z},y.createPortal(l.createElement(x,{asChild:!0,onEscapeKeyDown:Object(_.a)(h,(function(){k.isFocusedToastEscapeKeyDownRef.current||z(),k.isFocusedToastEscapeKeyDownRef.current=!1}))},l.createElement(u.a.li,Object(c.a)({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":f?"open":"closed","data-swipe-direction":k.swipeDirection},S,{ref:T,style:Object(r.a)({userSelect:"none",touchAction:"none"},e.style),onKeyDown:Object(_.a)(e.onKeyDown,(function(e){"Escape"===e.key&&(null==h||h(e.nativeEvent),e.nativeEvent.defaultPrevented||(k.isFocusedToastEscapeKeyDownRef.current=!0,z()))})),onPointerDown:Object(_.a)(e.onPointerDown,(function(e){0===e.button&&(O.current={x:e.clientX,y:e.clientY})})),onPointerMove:Object(_.a)(e.onPointerMove,(function(e){if(O.current){var t=e.clientX-O.current.x,n=e.clientY-O.current.y,r=Boolean(C.current),o=["left","right"].includes(k.swipeDirection),a=["left","up"].includes(k.swipeDirection)?Math.min:Math.max,i=o?a(0,t):0,u=o?0:a(0,n),l="touch"===e.pointerType?10:2,c={x:i,y:u},s={originalEvent:e,delta:c};r?(C.current=c,re("toast.swipeMove",g,s)):oe(c,k.swipeDirection,l)?(C.current=c,re("toast.swipeStart",m,s),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(O.current=null)}})),onPointerUp:Object(_.a)(e.onPointerUp,(function(e){var t=C.current;if(e.target.releasePointerCapture(e.pointerId),C.current=null,O.current=null,t){var n=e.currentTarget,r={originalEvent:e,delta:t};oe(t,k.swipeDirection,k.swipeThreshold)?re("toast.swipeEnd",w,r):re("toast.swipeCancel",b,r),n.addEventListener("click",(function(e){return e.preventDefault()}),{once:!0})}}))}))),k.viewport))):null}));Z.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 J=function(e){var t=e.__scopeToast,n=Object(a.a)(e,A),r=H("Toast",t),o=l.useState(!1),u=Object(i.a)(o,2),c=u[0],d=u[1],v=l.useState(!1),h=Object(i.a)(v,2),m=h[0],y=h[1];return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=Object(p.a)(e);Object(f.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 d(!0)})),l.useEffect((function(){var e=window.setTimeout((function(){return y(!0)}),1e3);return function(){return window.clearTimeout(e)}}),[]),m?null:l.createElement(w,{asChild:!0},l.createElement(s,{asChild:!0},l.createElement("div",n,c&&l.createElement(l.Fragment,null,r.label," ",e.children))))},ee=l.forwardRef((function(e,t){e.__scopeToast;var n=Object(a.a)(e,M);return l.createElement(u.a.div,Object(c.a)({},n,{ref:t}))})),te=l.forwardRef((function(e,t){var n=e.altText,r=Object(a.a)(e,z),o=G("ToastAction",e.__scopeToast);return n?o.isInteractive?l.createElement(ne,Object(c.a)({},r,{ref:t})):l.createElement("span",null,n):null}));te.propTypes={altText:function(e){if(!e.altText)throw new Error("Missing prop `altText` expected on `ToastAction`");return null}};var ne=l.forwardRef((function(e,t){var n=e.__scopeToast,r=Object(a.a)(e,D),o=G("ToastClose",n);return o.isInteractive?l.createElement(u.a.button,Object(c.a)({type:"button"},r,{ref:t,onClick:Object(_.a)(e.onClick,o.onClose)})):null}));function re(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 oe=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},ae=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,s=e.swipeThreshold,f=void 0===s?50:s,d=e.children,p=l.useState(null),v=Object(i.a)(p,2),h=v[0],m=v[1],y=l.useState(0),g=Object(i.a)(y,2),b=g[0],w=g[1],S=l.useRef(!1),k=l.useRef(!1);return l.createElement(W,{scope:t,label:r,duration:a,swipeDirection:c,swipeThreshold:f,toastCount:b,viewport:h,onViewportChange:m,onToastAdd:l.useCallback((function(){return w((function(e){return e+1}))}),[]),onToastRemove:l.useCallback((function(){return w((function(e){return e-1}))}),[]),isFocusedToastEscapeKeyDownRef:S,isClosePausedRef:k},d)},ie=K,ue=X,le=ee},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";n.d(t,"a",(function(){return i}));var r=n(2),o=n(17),a=n(0);function i(e){var t=e.prop,n=e.defaultProp,i=e.onChange,u=void 0===i?function(){}:i,l=function(e){var t=e.defaultProp,n=e.onChange,i=a.useState(t),u=Object(r.a)(i,1)[0],l=a.useRef(u),c=Object(o.a)(n);return a.useEffect((function(){l.current!==u&&(c(u),l.current=u)}),[u,l,c]),i}({defaultProp:n,onChange:u}),c=Object(r.a)(l,2),s=c[0],f=c[1],d=void 0!==t,p=d?t:s,v=Object(o.a)(u);return[p,a.useCallback((function(e){if(d){var n="function"==typeof e?e(t):e;n!==t&&v(n)}else f(e)}),[d,t,f,v])]}},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,u,l=i(e),c=1;c=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,l=i.positionX,c=i.positionY,s=t.scale-u,f=t.positionX-l,d=t.positionY-c;0===n?a(t.scale,t.positionX,t.positionY):p(e,r,n,(function(e){a(u+s*e,l+f*e,c+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,l=function(e,t,n,r,o,a,i){var u=e>t?n*(i?1:.5):0,l=r>o?a*(i?1:.5):0;return{minPositionX:e-t-u,maxPositionX:u,minPositionY:r-o-l,maxPositionY:l}}(i,a.newContentWidth,a.newDiffWidth,u,a.newContentHeight,a.newDiffHeight,Boolean(o));return l},m=function(e,t){var n=h(e,t);return e.bounds=n,n};function y(e,t,n,r,o,a,i){var u=n.minPositionX,l=n.minPositionY,c=n.maxPositionX,s=n.maxPositionY,f=0,d=0;return i&&(f=o,d=a),{x:g(e,u-f,c+f,r),y:g(t,l-d,s+d,r)}}var g=function(e,t,n,r){return l(r?en?n:e:e,2)};function b(e,t,n,r,o,a){var i=e.transformState,u=i.scale,l=i.positionX,c=i.positionY,s=r-u;return"number"!==typeof t||"number"!==typeof n?(console.error("Mouse X and Y position were not provided!"),{x:l,y:c}):y(l-t*s,c-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 S=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)},k=function(e){var t=e.isInitialized,n=e.isPanning,r=e.setup.panning.disabled;return!(!t||!n||r)};var _=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,l,c){if(o){var s;if(t>i&&n>i)return(s=i+(e-i)*c)>l?l:sa?a:s}return r?t:g(e,a,i,o)}function T(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,l=Date.now();if(r&&o&&i){var c=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/c,p=f/c,v=l-o,h=s*s+f*f,m=Math.sqrt(h)/v;e.velocity={velocityX:d,velocityY:p,total:m}}e.lastMousePosition=t,e.velocityTime=l}}function O(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 C(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,l=o.positionX,c=o.positionY;if(!r)return{x:l,y:c};var s=t-r.x,f=n-r.y;return{x:i?l:s,y:u?c:f}}(e,t,n),l=u.x,c=u.y,s=_(e,a),f=_(e,i);T(e,{x:l,y:c}),function(e,t,n,r,o){var a=e.setup.limitToBounds,i=e.wrapperComponent,u=e.bounds,l=e.transformState,c=l.scale,s=l.positionX,f=l.positionY;if(i&&t!==s&&n!==f&&u){var d=y(t,n,u,a,r,o,i),p=d.x,v=d.y;e.setTransformState(c,p,v)}}(e,l,c,s,f)}}function x(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,l=(null===a||void 0===a?void 0:a.height)||0,c=(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,l=t.total,c=n.maxPositionX,f=n.minPositionX,d=n.maxPositionY,v=n.minPositionY,h=r.limitToBounds,m=r.alignmentAnimation,y=r.zoomAnimation,g=r.panning,b=g.lockAxisY,w=g.lockAxisX,S=y.animationType,k=m.sizeX,T=m.sizeY,O=m.velocityAlignmentTime,C=function(e,t){var n=e.setup.velocityAnimation,r=n.equalToMove,o=n.animationTime,a=n.sensitivity;return r?o*t*a:o}(e,l),x=Math.max(C,O),R=_(e,k),N=_(e,T),P=R*o.offsetWidth/100,L=N*o.offsetHeight/100,j=c+P,A=f-P,M=d+L,z=v-L,D=e.transformState,I=(new Date).getTime();p(e,S,x,(function(t){var n=e.transformState,r=n.scale,o=n.positionX,a=n.positionY,l=((new Date).getTime()-I)/O,p=1-(0,s[m.animationType])(Math.min(1,l)),y=1-t,g=o+i*y,S=a+u*y,k=E(g,D.positionX,o,w,h,f,c,A,j,p),_=E(S,D.positionY,a,b,h,v,d,z,M,p);o===g&&a===S||e.setTransformState(r,k,_)}))}}(e):R(e)}}function R(e){var t=e.transformState.scale,n=e.setup,r=n.minScale,o=n.alignmentAnimation,a=o.disabled,i=o.sizeX,u=o.sizeY,l=o.animationTime,c=o.animationType;if(!(a||tf||np||rf?c.offsetWidth:e.setup.minPositionX||0,r>p?c.offsetHeight:e.setup.minPositionY||0,o,e.bounds,u||l),g=y.x,w=y.y;return{scale:o,positionX:h?g:n,positionY:m?w:r}}}(e);s&&v(e,s,l,c)}}function N(e,t,n){var r=e.transformState.scale,o=e.wrapperComponent,a=e.setup,i=a.minScale,u=a.limitToBounds,l=a.zoomAnimation,c=l.disabled,s=l.animationTime,f=l.animationType,d=c||r>=i;if((r>=1||u)&&R(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,c=w(l(t,2),a,i,0,!1),s=b(e,n,r,c,m(e,c),u);return{scale:c,positionX:s.x,positionY:s.y}}var L={previousScale:1,scale:1,positionX:0,positionY:0},j=i(i({},L),{setComponents:function(){},contextInstance:null}),A={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:L.scale,scale:null!==(n=e.initialScale)&&void 0!==n?n:L.scale,positionX:null!==(r=e.initialPositionX)&&void 0!==r?r:L.positionX,positionY:null!==(o=e.initialPositionY)&&void 0!==o?o:L.positionY}},z=function(e){var t=i({},A);return Object.keys(e).forEach((function(n){var r="undefined"!==typeof e[n];if("undefined"!==typeof A[n]&&r){var o=Object.prototype.toString.call(A[n]),a="[object Object]"===o,l="[object Array]"===o;t[n]=a?i(i({},A[n]),e[n]):l?u(u([],A[n]),e[n]):e[n]}})),t},D=function(e,t,n){var r=e.transformState.scale,o=e.wrapperComponent,a=e.setup,i=a.maxScale,u=a.minScale,c=a.zoomAnimation.size;if(!o)throw new Error("Wrapper is not mounted");var s=r*Math.exp(t*n);return w(l(s,3),u,i,c,!1)};function I(e,t,n,r,o){var a=e.wrapperComponent,i=e.transformState,u=i.scale,l=i.positionX,c=i.positionY;if(!a)return console.error("No WrapperComponent found");var s=(a.offsetWidth/2-l)/u,f=(a.offsetHeight/2-c)/u,d=P(e,D(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 V(e,t,n){var r=e.setup,o=e.wrapperComponent,a=r.limitToBounds,i=M(e.props),u=e.transformState,l=u.scale,c=u.positionX,s=u.positionY;if(o){var f=h(e,i.scale),d=y(i.positionX,i.positionY,f,a,0,0,o),p={scale:i.scale,positionX:d.x,positionY:d.y};l===i.scale&&c===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"),I(e,1,t,n,r)}},F=function(e){return function(t,n,r){void 0===t&&(t=.5),void 0===n&&(n=300),void 0===r&&(r="easeOut"),I(e,-1,t,n,r)}},B=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,l=i.positionY,c=i.scale,s=e.wrapperComponent,f=e.contentComponent;if(!e.setup.disabled&&s&&f){var d={positionX:isNaN(t)?u:t,positionY:isNaN(n)?l:n,scale:isNaN(r)?c:r};v(e,d,o,a)}}},W=function(e){return function(t,n){void 0===t&&(t=200),void 0===n&&(n="easeOut"),V(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=G(t||o.scale,a,i);v(e,u,n,r)}}},Y=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 L;var l=r.getBoundingClientRect(),c=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=c.x,f=c.y,d=t.offsetWidth,p=t.offsetHeight,v=r.offsetWidth/d,m=r.offsetHeight/p,g=w(n||Math.min(v,m),i,u,0,!1),b=(l.width-d*g)/2,S=(l.height-p*g)/2,k=y((l.left-s)*g+b,(l.top-f)*g+S,h(e,g),a,0,0,r);return{positionX:k.x,positionY:k.y,scale:g}}(e,i,n);v(e,u,r,o)}}},K=function(e){return{instance:e,state:e.transformState,zoomIn:U(e),zoomOut:F(e),setTransform:B(e),resetTransform:W(e),centerView:H(e),zoomToElement:Y(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)}))},Q=function(e){e&&clearTimeout(e)},$=function(e,t,n){return"translate3d("+e+"px, "+t+"px, 0) scale("+n+")"},G=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}},Z=function(e,t){var n=e.setup.wheel,r=n.disabled,o=n.wheelDisabled,a=n.touchPadDisabled,i=n.excluded,u=e.isInitialized,l=e.isPanning,c=t.target;return!(!u||l||r||!c)&&(!(o&&!t.ctrlKey)&&((!a||!t.ctrlKey)&&!q(c,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),c(K(e),t,r),c(K(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,y=p.step;if(!a)throw new Error("Component not mounted");t.preventDefault(),t.stopPropagation();var g=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),S=function(e,t,n,r,o){var a=e.transformState.scale,i=e.wrapperComponent,u=e.setup,c=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(l(v,3),s,c,d,h)}(e,g,y,!t.ctrlKey);if(u!==S){var k=m(e,S),_=J(t,a,u),E=s&&(h||0===v||f),T=b(e,_.x,_.y,S,k,E),O=T.x,C=T.y;e.previousWheelEvent=t,e.setTransformState(S,O,C),c(K(e),t,r),c(K(e),t,o)}},ae=function(e,t){var n=e.props,r=n.onWheelStop,o=n.onZoomStop;Q(e.wheelAnimationTimer),e.wheelAnimationTimer=setTimeout((function(){e.mounted&&(N(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&&(Q(e.wheelStopEventTimer),e.wheelStopEventTimer=setTimeout((function(){e.mounted&&(e.wheelStopEventTimer=null,c(K(e),t,r),c(K(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,c=a.zoomAnimation,s=c.disabled,f=c.size;if(null!==r&&n){var d=function(e,t,n){var r=n.getBoundingClientRect(),o=e.touches,a=l(o[0].clientX-r.left,5),i=l(o[0].clientY-r.top,5);return{x:(a+l(o[1].clientX-r.left,5))/2/t,y:(i+l(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,c=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(l(t/r*n,2),i,a,c,!s)}(e,p);if(v!==o){var h=m(e,v),y=i&&(s||0===f||u),g=b(e,d.x,d.y,v,h,y),S=g.x,k=g.y;e.pinchMidpoint=d,e.lastDistance=p,e.setTransformState(v,S,k)}}}},le=function(e){var t=e.pinchMidpoint;e.velocity=null,e.lastDistance=null,e.pinchMidpoint=null,e.pinchStartScale=null,e.pinchStartDistance=null,N(e,null===t||void 0===t?void 0:t.x,null===t||void 0===t?void 0:t.y)};function ce(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 V(e,i,u);var l=e.transformState.scale,c=e.contentComponent;if(!c)return console.error("No ContentComponent found");var s=D(e,"zoomOut"===o?-1:1,a),f=J(t,c,l),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,l=t.target,c=null===o||void 0===o?void 0:o.contains(l),s=n&&l&&c&&!i;return!!s&&(!q(l,u)&&!!s)},fe=o.a.createContext(j),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=z(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||Z(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||S(t,e)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(e.preventDefault(),e.stopPropagation(),d(t),O(t,e),c(K(t),e,r))},t.onPanning=function(e){var n=t.setup.disabled,r=t.props.onPanning;n||k(t)&&t.isPressingKeys(t.setup.panning.activationKeys)&&(e.preventDefault(),e.stopPropagation(),C(t,e.clientX,e.clientY),c(K(t),e,r))},t.onPanningStop=function(e){var n=t.props.onPanningStop;t.isPanning&&(x(t),c(K(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),c(K(t),e,o),c(K(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),c(K(t),e,o),c(K(t),e,a))},t.onPinchStop=function(e){var n=t.props,r=n.onPinchingStop,o=n.onZoomStop;t.pinchStartScale&&(le(t),c(K(t),e,r),c(K(t),e,o))},t.onTouchPanningStart=function(e){var n=t.setup.disabled,r=t.props.onPanningStart;if(!n&&S(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),O(t,e),c(K(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(!k(t))return;e.preventDefault(),e.stopPropagation();var o=e.touches[0];C(t,o.clientX,o.clientY),c(K(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)&&ce(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,c(K(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=G(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=$(r,o,n);t.contentComponent.style.transform=a,t.handleRef()}},t.handleRef=function(){t.props.setRef(K(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=z(this.props))},t.prototype.render=function(){var e=K(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,l=e.wrapperStyle,c=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:l},o.a.createElement("div",{ref:d,className:"react-transform-component "+he+" "+u,style:c},t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return R})),n.d(t,"b",(function(){return N}));var r=n(3),o=n(5),a=n(2),i=(n(15),n(0));i["useId".toString()];var u=n(11),l=n(14),c=n(20),s=n(7),f=Object(c.a)("Label",{id:void 0,controlRef:{current:null}}),d=Object(a.a)(f,2),p=(d[0],d[1]);var v=n(27),h=n(12),m=["__scopeSwitch","aria-labelledby","name","checked","defaultChecked","required","disabled","value","onCheckedChange"],y=["__scopeSwitch"],g=["control","checked","bubbles"],b=Object(c.b)("Switch"),w=Object(a.a)(b,2),S=w[0],k=(w[1],S("Switch")),_=Object(a.a)(k,2),E=_[0],T=_[1],O=i.forwardRef((function(e,t){var n=e.__scopeSwitch,r=e["aria-labelledby"],c=e.name,f=e.checked,d=e.defaultChecked,y=e.required,g=e.disabled,b=e.value,w=void 0===b?"on":b,S=e.onCheckedChange,k=Object(o.a)(e,m),_=i.useState(null),T=Object(a.a)(_,2),O=T[0],R=T[1],N=Object(l.b)(t,(function(e){return R(e)})),P=function(e){var t=p("LabelConsumer"),n=t.controlRef;return i.useEffect((function(){e&&(n.current=e)}),[e,n]),t.id}(O),L=r||P,j=i.useRef(!1),A=!O||Boolean(O.closest("form")),M=Object(v.a)({prop:f,defaultProp:d,onChange:S}),z=Object(a.a)(M,2),D=z[0],I=void 0!==D&&D,V=z[1];return i.createElement(E,{scope:n,checked:I,disabled:g},i.createElement(u.a.button,Object(s.a)({type:"button",role:"switch","aria-checked":I,"aria-labelledby":L,"aria-required":y,"data-state":x(I),"data-disabled":g?"":void 0,disabled:g,value:w},k,{ref:N,onClick:Object(h.a)(e.onClick,(function(e){V((function(e){return!e})),A&&(j.current=e.isPropagationStopped(),j.current||e.stopPropagation())}))})),A&&i.createElement(C,{control:O,bubbles:!j.current,name:c,value:w,checked:I,required:y,disabled:g,style:{transform:"translateX(-100%)"}}))})),C=function(e){var t=e.control,n=e.checked,u=e.bubbles,l=void 0===u||u,c=Object(o.a)(e,g),f=i.useRef(null),d=function(e){var t=i.useRef({value:e,previous:e});return i.useMemo((function(){return t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous}),[e])}(n),p=function(e){var t=i.useState(void 0),n=Object(a.a)(t,2),r=n[0],o=n[1];return i.useEffect((function(){if(e){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{var l=e.getBoundingClientRect();n=l.width,r=l.height}o({width:n,height:r})}}));return t.observe(e,{box:"border-box"}),function(){return t.unobserve(e)}}o(void 0)}),[e]),r}(t);return i.useEffect((function(){var e=f.current,t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set;if(d!==n&&r){var o=new Event("click",{bubbles:l});r.call(e,n),e.dispatchEvent(o)}}),[d,n,l]),i.createElement("input",Object(s.a)({type:"checkbox","aria-hidden":!0,defaultChecked:n},c,{tabIndex:-1,ref:f,style:Object(r.a)(Object(r.a)(Object(r.a)({},e.style),p),{},{position:"absolute",pointerEvents:"none",opacity:0,margin:0})}))};function x(e){return e?"checked":"unchecked"}var R=O,N=i.forwardRef((function(e,t){var n=e.__scopeSwitch,r=Object(o.a)(e,y),a=T("SwitchThumb",n);return i.createElement(u.a.span,Object(s.a)({"data-state":x(a.checked),"data-disabled":a.disabled?"":void 0},r,{ref:t}))}))},function(e,t,n){"use strict";var r=n(0),o=n(13),a=o.a?window:null,i=function(e){return!!e.addEventListener},u=function(e){return!!e.on},l=function(e,t,n,l){void 0===n&&(n=a),Object(r.useEffect)((function(){if(t&&n)return i(n)?Object(o.d)(n,e,t,l):u(n)&&n.on(e,t,l),function(){i(n)?Object(o.c)(n,e,t,l):u(n)&&n.off(e,t,l)}}),[e,t,n,JSON.stringify(l)])};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,c=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);l(u,f,c,s)}},function(e,t,n){"use strict";var r=n(28),o=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var i=60109,u=60110,l=60112;t.Suspense=60113;var c=60115,s=60116;if("function"===typeof Symbol&&Symbol.for){var f=Symbol.for;o=f("react.element"),a=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),i=f("react.provider"),u=f("react.context"),l=f("react.forward_ref"),t.Suspense=f("react.suspense"),c=f("react.memo"),s=f("react.lazy")}var d="function"===typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n