diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml new file mode 100644 index 00000000..9521d07f --- /dev/null +++ b/.github/workflows/chromatic.yml @@ -0,0 +1,29 @@ +name: "Chromatic" + +on: + push: + branches: + - "storybook-setup" + +jobs: + chromatic: + name: Run Chromatic + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - name: Install dependencies + # ⚠️ See your package manager's documentation for the correct command to install dependencies in a CI environment. + run: npm install + - name: Run Chromatic + uses: chromaui/action@latest + with: + # ⚠️ Make sure to configure a `CHROMATIC_PROJECT_TOKEN` repository secret + projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} + zip: true + onlyChanged: true # 👈 Required option to enable TurboSnap \ No newline at end of file diff --git a/dist/force-ui-rtl.css b/dist/force-ui-rtl.css index b47d1f21..0cf0bf3e 100644 --- a/dist/force-ui-rtl.css +++ b/dist/force-ui-rtl.css @@ -1 +1 @@ -*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::-ms-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-inset-1{inset:-.25rem}.inset-0{inset:0}.inset-x-0{right:0;left:0}.inset-y-0{bottom:0;top:0}.-bottom-px{bottom:-1px}.bottom-0{bottom:0}.left-0{right:0}.left-1{right:.25rem}.left-2\/4{right:50%}.right-0{left:0}.right-3{left:.75rem}.right-4{left:1rem}.top-0{top:0}.top-2\/4{top:50%}.top-3{top:.75rem}.top-4{top:1rem}.top-full{top:100%}.z-10{z-index:10}.z-20{z-index:20}.order-1{-ms-flex-order:1;order:1}.order-10{-ms-flex-order:10;order:10}.order-11{-ms-flex-order:11;order:11}.order-12{-ms-flex-order:12;order:12}.order-2{-ms-flex-order:2;order:2}.order-3{-ms-flex-order:3;order:3}.order-4{-ms-flex-order:4;order:4}.order-5{-ms-flex-order:5;order:5}.order-6{-ms-flex-order:6;order:6}.order-7{-ms-flex-order:7;order:7}.order-8{-ms-flex-order:8;order:8}.order-9{-ms-flex-order:9;order:9}.order-first{-ms-flex-order:-9999;order:-9999}.order-last{-ms-flex-order:9999;order:9999}.order-none{-ms-flex-order:0;order:0}.m-0{margin:0}.mx-0{margin-right:0;margin-left:0}.mb-0{margin-bottom:0}.ml-1{margin-right:.25rem}.ml-3{margin-right:.75rem}.mr-1{margin-left:.25rem}.mr-10{margin-left:2.5rem}.mt-2{margin-top:.5rem}.mt-2\.5{margin-top:.625rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:-ms-flexbox;display:flex}.inline-flex{display:-ms-inline-flexbox;display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.size-1\.5{height:.375rem;width:.375rem}.size-2{height:.5rem;width:.5rem}.size-3{height:.75rem;width:.75rem}.size-4{height:1rem;width:1rem}.size-5{height:1.25rem;width:1.25rem}.h-10{height:2.5rem}.h-2{height:.5rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.max-h-\[10\.75rem\]{max-height:10.75rem}.max-h-\[13\.5rem\]{max-height:13.5rem}.min-h-\[1\.625rem\]{min-height:1.625rem}.min-h-\[2\.25rem\]{min-height:2.25rem}.min-h-\[2\.5rem\]{min-height:2.5rem}.min-h-\[3rem\]{min-height:3rem}.w-1\/12{width:8.333333%}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-1\/4{width:25%}.w-1\/5{width:20%}.w-1\/6{width:16.666667%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[22\.5rem\]{width:22.5rem}.w-fit{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-80{max-width:20rem}.max-w-fit{max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content}.flex-1{-ms-flex:1 1 0%;flex:1 1 0%}.shrink{-ms-flex-negative:1;flex-shrink:1}.shrink-0{-ms-flex-negative:0;flex-shrink:0}.grow{-ms-flex-positive:1;flex-grow:1}.grow-0{-ms-flex-positive:0;flex-grow:0}.origin-left{-webkit-transform-origin:right;transform-origin:right}.-translate-x-2\/4{--tw-translate-x:-50%}.-translate-x-2\/4,.-translate-y-2\/4{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-2\/4{--tw-translate-y:-50%}.transform{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}.animate-pulse{-webkit-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@-webkit-keyframes spin{to{-webkit-transform:rotate(-1turn);transform:rotate(-1turn)}}@keyframes spin{to{-webkit-transform:rotate(-1turn);transform:rotate(-1turn)}}.animate-spin{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}.flex-row{-ms-flex-direction:row;flex-direction:row}.flex-row-reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.flex-col{-ms-flex-direction:column;flex-direction:column}.flex-col-reverse{-ms-flex-direction:column-reverse;flex-direction:column-reverse}.flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.flex-wrap-reverse{-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse}.flex-nowrap{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.items-start{-ms-flex-align:start;align-items:flex-start}.items-end{-ms-flex-align:end;align-items:flex-end}.items-center{-ms-flex-align:center;align-items:center}.items-baseline{-ms-flex-align:baseline;align-items:baseline}.items-stretch{-ms-flex-align:stretch;align-items:stretch}.justify-normal{-ms-flex-pack:normal;justify-content:normal}.justify-start{-ms-flex-pack:start;justify-content:flex-start}.justify-end{-ms-flex-pack:end;justify-content:flex-end}.justify-center{-ms-flex-pack:center;justify-content:center}.justify-between{-ms-flex-pack:justify;justify-content:space-between}.justify-around{-ms-flex-pack:distribute;justify-content:space-around}.justify-evenly{-ms-flex-pack:space-evenly;justify-content:space-evenly}.justify-stretch{-ms-flex-pack:stretch;justify-content:stretch}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.375rem*var(--tw-space-y-reverse));margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)))}.divide-x-0>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-right-width:calc(0px*(1 - var(--tw-divide-x-reverse)));border-left-width:calc(0px*var(--tw-divide-x-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-solid>:not([hidden])~:not([hidden]){border-style:solid}.divide-border-subtle>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity))}.self-auto{-ms-flex-item-align:auto;align-self:auto}.self-start{-ms-flex-item-align:start;align-self:flex-start}.self-end{-ms-flex-item-align:end;align-self:flex-end}.self-center{-ms-flex-item-align:center;align-self:center}.self-stretch{-ms-flex-item-align:stretch;align-self:stretch}.self-baseline{-ms-flex-item-align:baseline;align-self:baseline}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-bl{border-bottom-right-radius:.25rem}.rounded-br{border-bottom-left-radius:.25rem}.rounded-tl{border-top-right-radius:.25rem}.rounded-tr{border-top-left-radius:.25rem}.border{border-width:1px}.border-0{border-width:0}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-l-0{border-right-width:0}.border-r{border-left-width:1px}.border-r-0{border-left-width:0}.border-t-0{border-top-width:0}.border-solid{border-style:solid}.border-none{border-style:none}.border-alert-border-danger{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity))}.border-alert-border-green{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity))}.border-alert-border-info{--tw-border-opacity:1;border-color:rgb(186 230 253/var(--tw-border-opacity))}.border-alert-border-neutral{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-alert-border-warning{--tw-border-opacity:1;border-color:rgb(254 240 138/var(--tw-border-opacity))}.border-background-inverse{--tw-border-opacity:1;border-color:rgb(17 24 39/var(--tw-border-opacity))}.border-badge-border-disabled,.border-badge-border-gray{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-badge-border-green{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity))}.border-badge-border-red{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity))}.border-badge-border-sky{--tw-border-opacity:1;border-color:rgb(186 230 253/var(--tw-border-opacity))}.border-badge-border-yellow{--tw-border-opacity:1;border-color:rgb(254 240 138/var(--tw-border-opacity))}.border-border-disabled{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-border-strong{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity))}.border-border-subtle{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-border-transparent-subtle{border-color:#37415114}.border-border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.border-button-danger{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.border-button-primary{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.border-button-secondary{--tw-border-opacity:1;border-color:rgb(31 41 55/var(--tw-border-opacity))}.border-field-border{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-field-border-disabled{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity))}.border-tab-border{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-text-inverse{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.border-toggle-off-border{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.bg-alert-background-danger{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-alert-background-green{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.bg-alert-background-info{--tw-bg-opacity:1;background-color:rgb(240 249 255/var(--tw-bg-opacity))}.bg-alert-background-neutral{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-alert-background-warning{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity))}.bg-background-brand{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-background-inverse{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-background-primary{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-background-secondary,.bg-badge-background-disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-badge-background-gray{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-badge-background-green{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.bg-badge-background-red{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-badge-background-sky{--tw-bg-opacity:1;background-color:rgb(240 249 255/var(--tw-bg-opacity))}.bg-badge-background-yellow{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity))}.bg-border-interactive{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-brand-background-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.bg-brand-primary-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-button-danger{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.bg-button-disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-button-primary{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-button-secondary{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.bg-button-tertiary{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-button-tertiary-hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-current{background-color:currentColor}.bg-field-background-disabled{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-field-background-error{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-field-secondary-background{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gray-200,.bg-misc-progress-background{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-toggle-dial-background{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-toggle-off{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-toggle-off-disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-tooltip-background-dark{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-tooltip-background-light{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-cover{background-size:cover}.bg-center{background-position:50%}.bg-no-repeat{background-repeat:no-repeat}.fill-current{fill:currentColor}.p-0{padding:0}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-right:.25rem;padding-left:.25rem}.px-1\.5{padding-right:.375rem;padding-left:.375rem}.px-2{padding-right:.5rem;padding-left:.5rem}.px-2\.5{padding-right:.625rem;padding-left:.625rem}.px-3{padding-right:.75rem;padding-left:.75rem}.px-3\.5{padding-right:.875rem;padding-left:.875rem}.px-4{padding-right:1rem;padding-left:1rem}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.pl-10{padding-right:2.5rem}.pl-2{padding-right:.5rem}.pl-2\.5{padding-right:.625rem}.pl-3{padding-right:.75rem}.pl-8{padding-right:2rem}.pl-9{padding-right:2.25rem}.pr-10{padding-left:2.5rem}.pr-2{padding-left:.5rem}.pr-2\.5{padding-left:.625rem}.pr-3{padding-left:.75rem}.pr-8{padding-left:2rem}.pr-9{padding-left:2.25rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-none{line-height:1}.text-background-primary{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-badge-color-disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-badge-color-gray{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.text-badge-color-green{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-badge-color-red{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-badge-color-sky{--tw-text-opacity:1;color:rgb(3 105 161/var(--tw-text-opacity))}.text-badge-color-yellow{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity))}.text-brand-primary-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-button-danger{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-button-primary{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-button-tertiary-color{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-field-color-disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-field-helper{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-field-input,.text-field-label{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-field-placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-icon-disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-icon-inverse{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-icon-on-color-disabled{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-icon-secondary{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-link-primary{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-support-error{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-support-error-inverse{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.text-support-info{--tw-text-opacity:1;color:rgb(2 132 199/var(--tw-text-opacity))}.text-support-info-inverse{--tw-text-opacity:1;color:rgb(56 189 248/var(--tw-text-opacity))}.text-support-success{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-support-success-inverse{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.text-support-warning{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity))}.text-support-warning-inverse{--tw-text-opacity:1;color:rgb(253 224 71/var(--tw-text-opacity))}.text-text-disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-text-inverse,.text-text-on-color{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-text-primary{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-text-secondary{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-text-tertiary{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-tooltip-background-dark{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-tooltip-background-light,.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.placeholder-text-tertiary::-webkit-input-placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.placeholder-text-tertiary:-ms-input-placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.placeholder-text-tertiary::-ms-input-placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.placeholder-text-tertiary::placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.shadow-none,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-offset-0{--tw-ring-offset-width:0px}.filter{-webkit-filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-transform{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.\[grid-area\:1\/1\/2\/3\]{grid-area:1/1/2/3}.file\:border-0::-webkit-file-upload-button{border-width:0}.file\:border-0::file-selector-button{border-width:0}.file\:bg-transparent::-webkit-file-upload-button{background-color:transparent}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-text-tertiary::-webkit-file-upload-button{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.file\:text-text-tertiary::file-selector-button{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.placeholder\:text-field-placeholder::-webkit-input-placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.placeholder\:text-field-placeholder:-ms-input-placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.placeholder\:text-field-placeholder::-ms-input-placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.placeholder\:text-field-placeholder::placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:left-2\/4:before{content:var(--tw-content);right:50%}.before\:top-2\/4:before{content:var(--tw-content);top:50%}.before\:hidden:before{content:var(--tw-content);display:none}.before\:h-10:before{content:var(--tw-content);height:2.5rem}.before\:w-10:before{content:var(--tw-content);width:2.5rem}.before\:-translate-x-2\/4:before{--tw-translate-x:-50%}.before\:-translate-x-2\/4:before,.before\:-translate-y-2\/4:before{content:var(--tw-content);-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:-translate-y-2\/4:before{--tw-translate-y:-50%}.before\:rounded-full:before{border-radius:9999px;content:var(--tw-content)}.before\:opacity-0:before{content:var(--tw-content);opacity:0}.before\:transition-opacity:before{content:var(--tw-content);transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.before\:content-\[\'\'\]:before{--tw-content:"";content:var(--tw-content)}.after\:ml-0\.5:after{content:var(--tw-content);margin-right:.125rem}.after\:text-field-required:after{content:var(--tw-content);--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.after\:content-\[\'\*\'\]:after{--tw-content:"*";content:var(--tw-content)}.first\:rounded-bl:first-child{border-bottom-right-radius:.25rem}.first\:rounded-tl:first-child{border-top-right-radius:.25rem}.first\:border-0:first-child{border-width:0}.first\:border-r:first-child{border-left-width:1px}.first\:border-border-subtle:first-child{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.last\:rounded-br:last-child{border-bottom-left-radius:.25rem}.last\:rounded-tr:last-child{border-top-left-radius:.25rem}.last\:border-0:last-child{border-width:0}.checked\:border-border-interactive:checked{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.checked\:border-toggle-on-border:checked{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity))}.checked\:bg-toggle-on:checked{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.checked\:before\:hidden:checked:before{content:var(--tw-content);display:none}.checked\:before\:content-\[\'\'\]:checked:before{--tw-content:"";content:var(--tw-content)}.focus-within\:z-10:focus-within{z-index:10}.focus-within\:\!border-focus-border:focus-within{--tw-border-opacity:1!important;border-color:rgb(191 219 254/var(--tw-border-opacity))!important}.focus-within\:ring-2:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-within\:ring-focus:focus-within{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity))}.focus-within\:ring-offset-2:focus-within{--tw-ring-offset-width:2px}.hover\:border-border-disabled:hover{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.hover\:border-border-interactive:hover{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.hover\:border-border-strong:hover{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity))}.hover\:border-border-subtle:hover{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.hover\:border-button-danger:hover{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.hover\:border-button-danger-hover:hover{--tw-border-opacity:1;border-color:rgb(185 28 28/var(--tw-border-opacity))}.hover\:border-button-primary:hover{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.hover\:border-button-primary-hover:hover{--tw-border-opacity:1;border-color:rgb(29 78 216/var(--tw-border-opacity))}.hover\:border-button-secondary-hover:hover{--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity))}.hover\:border-field-border-disabled:hover{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity))}.hover\:border-text-inverse:hover{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.hover\:bg-badge-hover-disabled:hover,.hover\:bg-badge-hover-gray:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\:bg-badge-hover-green:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.hover\:bg-badge-hover-red:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.hover\:bg-badge-hover-sky:hover{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.hover\:bg-badge-hover-yellow:hover{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.hover\:bg-button-danger-hover:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.hover\:bg-button-primary-hover:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity))}.hover\:bg-button-secondary-hover:hover{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.hover\:bg-button-tertiary-hover:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\:bg-field-background-error:hover{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.hover\:bg-toggle-off-hover:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.hover\:bg-transparent:hover{background-color:transparent}.hover\:bg-white:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.hover\:text-button-danger-secondary:hover{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.hover\:text-button-primary-hover:hover,.hover\:text-link-primary-hover:hover{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity))}.hover\:text-text-inverse:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:before\:opacity-10:hover:before{content:var(--tw-content);opacity:.1}.checked\:hover\:border-toggle-on-hover:hover:checked{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.checked\:hover\:bg-toggle-on-hover:hover:checked{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity))}.focus\:border-focus-border:focus{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity))}.focus\:border-focus-error-border:focus{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity))}.focus\:border-toggle-off-border:focus{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.focus\:shadow-none:focus{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-0:focus,.focus\:ring:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-field-color-error:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity))}.focus\:ring-focus:focus,.focus\:ring-toggle-on:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity))}.focus\:ring-offset-0:focus{--tw-ring-offset-width:0px}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus\:ring-offset-4:focus{--tw-ring-offset-width:4px}.checked\:focus\:border-toggle-on-border:focus:checked{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity))}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.active\:outline-none:active{outline:2px solid transparent;outline-offset:2px}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:border-border-disabled:disabled{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.disabled\:border-button-disabled:disabled,.disabled\:border-field-border-disabled:disabled{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity))}.disabled\:border-transparent:disabled{border-color:transparent}.disabled\:bg-button-disabled:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.disabled\:bg-button-tertiary:disabled,.disabled\:bg-white:disabled{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.disabled\:text-text-disabled:disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.checked\:disabled\:border-border-disabled:disabled:checked{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.checked\:disabled\:bg-white:disabled:checked{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.group:disabled .group-disabled\:text-field-color-disabled,.group:disabled .group-disabled\:text-icon-disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.peer:checked~.peer-checked\:translate-x-4{--tw-translate-x:1rem}.peer:checked~.peer-checked\:translate-x-4,.peer:checked~.peer-checked\:translate-x-5{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:checked~.peer-checked\:translate-x-5{--tw-translate-x:1.25rem}.peer:checked~.peer-checked\:opacity-100{opacity:1}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:text-border-disabled{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}@media (min-width:768px){.md\:w-1\/12{width:8.333333%}.md\:w-1\/2{width:50%}.md\:w-1\/3{width:33.333333%}.md\:w-1\/4{width:25%}.md\:w-1\/5{width:20%}.md\:w-1\/6{width:16.666667%}.md\:w-full{width:100%}}@media (min-width:1024px){.lg\:w-1\/12{width:8.333333%}.lg\:w-1\/2{width:50%}.lg\:w-1\/3{width:33.333333%}.lg\:w-1\/4{width:25%}.lg\:w-1\/5{width:20%}.lg\:w-1\/6{width:16.666667%}.lg\:w-\[47\.5rem\]{width:47.5rem}.lg\:w-full{width:100%}}.\[\&\:hover\:has\(\:disabled\)\]\:border-field-border-disabled:hover:has(:disabled){--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity))}.\[\&\:hover\:not\(\:focus\)\:not\(\:disabled\)\]\:border-border-strong:hover:not(:focus):not(:disabled){--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity))}.\[\&\>\*\]\:box-border>*{box-sizing:border-box}.\[\&\>\*\]\:text-2xl>*{font-size:1.5rem;line-height:2rem}.\[\&\>\*\]\:text-base>*{font-size:1rem;line-height:1.5rem}.\[\&\>\*\]\:text-lg>*{font-size:1.125rem;line-height:1.75rem}.\[\&\>\*\]\:text-sm>*{font-size:.875rem;line-height:1.25rem}.\[\&\>\*\]\:text-xl>*{font-size:1.25rem;line-height:1.75rem}.\[\&\>\*\]\:text-xs>*{font-size:.75rem;line-height:1rem}.\[\&\>\*\]\:text-field-color-disabled>*{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.\[\&\>\*\]\:text-field-helper>*{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.\[\&\>\*\]\:text-field-label>*{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.\[\&\>\*\]\:text-support-error>*{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.\[\&\>li\]\:pointer-events-auto>li{pointer-events:auto}.\[\&\>p\]\:m-0>p{margin:0}.\[\&\>p\]\:w-full>p{width:100%}.\[\&\>span\:first-child\]\:shrink-0>span:first-child{-ms-flex-negative:0;flex-shrink:0}.\[\&\>svg\]\:size-3>svg{height:.75rem;width:.75rem}.\[\&\>svg\]\:size-3\.5>svg{height:.875rem;width:.875rem}.\[\&\>svg\]\:size-4>svg{height:1rem;width:1rem}.\[\&\>svg\]\:size-5>svg{height:1.25rem;width:1.25rem}.\[\&\>svg\]\:size-6>svg{height:1.5rem;width:1.5rem}.\[\&\>svg\]\:h-3>svg{height:.75rem}.\[\&\>svg\]\:h-4>svg{height:1rem}.\[\&\>svg\]\:h-5>svg{height:1.25rem}.\[\&\>svg\]\:h-6>svg{height:1.5rem}.\[\&\>svg\]\:h-8>svg{height:2rem}.\[\&\>svg\]\:w-3>svg{width:.75rem}.\[\&\>svg\]\:w-4>svg{width:1rem}.\[\&\>svg\]\:w-5>svg{width:1.25rem}.\[\&\>svg\]\:w-6>svg{width:1.5rem}.\[\&\>svg\]\:w-8>svg{width:2rem}.\[\&\>svg\]\:shrink-0>svg{-ms-flex-negative:0;flex-shrink:0}.\[\&_\*\]\:box-border *{box-sizing:border-box}.\[\&_\*\]\:text-sm *{font-size:.875rem}.\[\&_\*\]\:leading-5 *,.\[\&_\*\]\:text-sm *{line-height:1.25rem}.\[\&_\.editor-content\>p\]\:text-sm .editor-content>p{font-size:.875rem;line-height:1.25rem}.\[\&_\.editor-content\>p\]\:text-xs .editor-content>p{font-size:.75rem;line-height:1rem}.\[\&_\.editor-content\>p\]\:font-medium .editor-content>p{font-weight:500}.\[\&_\.editor-content\>p\]\:leading-\[1\.625rem\] .editor-content>p{line-height:1.625rem}.\[\&_\.editor-content\>p\]\:leading-\[1\.6875rem\] .editor-content>p{line-height:1.6875rem}.\[\&_p\]\:m-0 p{margin:0}.\[\&_p\]\:text-badge-color-disabled p{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.\[\&_svg\]\:size-5 svg{height:1.25rem;width:1.25rem} +*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::-ms-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-inset-1{inset:-.25rem}.inset-0{inset:0}.inset-x-0{right:0;left:0}.inset-y-0{bottom:0;top:0}.-bottom-px{bottom:-1px}.bottom-0{bottom:0}.left-0{right:0}.left-1{right:.25rem}.left-2\/4{right:50%}.right-0{left:0}.right-3{left:.75rem}.right-4{left:1rem}.top-0{top:0}.top-2\/4{top:50%}.top-3{top:.75rem}.top-4{top:1rem}.top-full{top:100%}.z-10{z-index:10}.z-20{z-index:20}.order-1{-ms-flex-order:1;order:1}.order-10{-ms-flex-order:10;order:10}.order-11{-ms-flex-order:11;order:11}.order-12{-ms-flex-order:12;order:12}.order-2{-ms-flex-order:2;order:2}.order-3{-ms-flex-order:3;order:3}.order-4{-ms-flex-order:4;order:4}.order-5{-ms-flex-order:5;order:5}.order-6{-ms-flex-order:6;order:6}.order-7{-ms-flex-order:7;order:7}.order-8{-ms-flex-order:8;order:8}.order-9{-ms-flex-order:9;order:9}.order-first{-ms-flex-order:-9999;order:-9999}.order-last{-ms-flex-order:9999;order:9999}.order-none{-ms-flex-order:0;order:0}.m-0{margin:0}.mx-0{margin-right:0;margin-left:0}.mb-0{margin-bottom:0}.ml-1{margin-right:.25rem}.ml-3{margin-right:.75rem}.mr-1{margin-left:.25rem}.mr-10{margin-left:2.5rem}.mt-2{margin-top:.5rem}.mt-2\.5{margin-top:.625rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:-ms-flexbox;display:flex}.inline-flex{display:-ms-inline-flexbox;display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.size-1\.5{height:.375rem;width:.375rem}.size-2{height:.5rem;width:.5rem}.size-3{height:.75rem;width:.75rem}.size-4{height:1rem;width:1rem}.size-5{height:1.25rem;width:1.25rem}.h-10{height:2.5rem}.h-2{height:.5rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.max-h-\[10\.75rem\]{max-height:10.75rem}.max-h-\[13\.5rem\]{max-height:13.5rem}.min-h-\[1\.625rem\]{min-height:1.625rem}.min-h-\[2\.25rem\]{min-height:2.25rem}.min-h-\[2\.5rem\]{min-height:2.5rem}.min-h-\[3rem\]{min-height:3rem}.w-1\/10{width:10%}.w-1\/11{width:9.0909091%}.w-1\/12{width:8.3333333%}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-1\/4{width:25%}.w-1\/5{width:20%}.w-1\/6{width:16.666667%}.w-1\/7{width:14.2857143%}.w-1\/8{width:12.5%}.w-1\/9{width:11.1111111%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[22\.5rem\]{width:22.5rem}.w-fit{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-80{max-width:20rem}.max-w-fit{max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content}.flex-1{-ms-flex:1 1 0%;flex:1 1 0%}.shrink{-ms-flex-negative:1;flex-shrink:1}.shrink-0{-ms-flex-negative:0;flex-shrink:0}.grow{-ms-flex-positive:1;flex-grow:1}.grow-0{-ms-flex-positive:0;flex-grow:0}.origin-left{-webkit-transform-origin:right;transform-origin:right}.-translate-x-2\/4{--tw-translate-x:-50%}.-translate-x-2\/4,.-translate-y-2\/4{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-2\/4{--tw-translate-y:-50%}.transform{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}.animate-pulse{-webkit-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@-webkit-keyframes spin{to{-webkit-transform:rotate(-1turn);transform:rotate(-1turn)}}@keyframes spin{to{-webkit-transform:rotate(-1turn);transform:rotate(-1turn)}}.animate-spin{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}.flex-row{-ms-flex-direction:row;flex-direction:row}.flex-row-reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.flex-col{-ms-flex-direction:column;flex-direction:column}.flex-col-reverse{-ms-flex-direction:column-reverse;flex-direction:column-reverse}.flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.flex-wrap-reverse{-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse}.flex-nowrap{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.items-start{-ms-flex-align:start;align-items:flex-start}.items-end{-ms-flex-align:end;align-items:flex-end}.items-center{-ms-flex-align:center;align-items:center}.items-baseline{-ms-flex-align:baseline;align-items:baseline}.items-stretch{-ms-flex-align:stretch;align-items:stretch}.justify-normal{-ms-flex-pack:normal;justify-content:normal}.justify-start{-ms-flex-pack:start;justify-content:flex-start}.justify-end{-ms-flex-pack:end;justify-content:flex-end}.justify-center{-ms-flex-pack:center;justify-content:center}.justify-between{-ms-flex-pack:justify;justify-content:space-between}.justify-around{-ms-flex-pack:distribute;justify-content:space-around}.justify-evenly{-ms-flex-pack:space-evenly;justify-content:space-evenly}.justify-stretch{-ms-flex-pack:stretch;justify-content:stretch}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.375rem*var(--tw-space-y-reverse));margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)))}.divide-x-0>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-right-width:calc(0px*(1 - var(--tw-divide-x-reverse)));border-left-width:calc(0px*var(--tw-divide-x-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-solid>:not([hidden])~:not([hidden]){border-style:solid}.divide-border-subtle>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity))}.self-auto{-ms-flex-item-align:auto;align-self:auto}.self-start{-ms-flex-item-align:start;align-self:flex-start}.self-end{-ms-flex-item-align:end;align-self:flex-end}.self-center{-ms-flex-item-align:center;align-self:center}.self-stretch{-ms-flex-item-align:stretch;align-self:stretch}.self-baseline{-ms-flex-item-align:baseline;align-self:baseline}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-bl{border-bottom-right-radius:.25rem}.rounded-br{border-bottom-left-radius:.25rem}.rounded-tl{border-top-right-radius:.25rem}.rounded-tr{border-top-left-radius:.25rem}.border{border-width:1px}.border-0{border-width:0}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-l-0{border-right-width:0}.border-r{border-left-width:1px}.border-r-0{border-left-width:0}.border-t-0{border-top-width:0}.border-solid{border-style:solid}.border-none{border-style:none}.border-alert-border-danger{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity))}.border-alert-border-green{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity))}.border-alert-border-info{--tw-border-opacity:1;border-color:rgb(186 230 253/var(--tw-border-opacity))}.border-alert-border-neutral{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-alert-border-warning{--tw-border-opacity:1;border-color:rgb(254 240 138/var(--tw-border-opacity))}.border-background-inverse{--tw-border-opacity:1;border-color:rgb(17 24 39/var(--tw-border-opacity))}.border-badge-border-disabled,.border-badge-border-gray{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-badge-border-green{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity))}.border-badge-border-red{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity))}.border-badge-border-sky{--tw-border-opacity:1;border-color:rgb(186 230 253/var(--tw-border-opacity))}.border-badge-border-yellow{--tw-border-opacity:1;border-color:rgb(254 240 138/var(--tw-border-opacity))}.border-border-disabled{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-border-strong{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity))}.border-border-subtle{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-border-transparent-subtle{border-color:#37415114}.border-border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.border-button-danger{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.border-button-primary{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.border-button-secondary{--tw-border-opacity:1;border-color:rgb(31 41 55/var(--tw-border-opacity))}.border-field-border{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-field-border-disabled{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity))}.border-tab-border{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-text-inverse{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.border-toggle-off-border{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.bg-alert-background-danger{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-alert-background-green{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.bg-alert-background-info{--tw-bg-opacity:1;background-color:rgb(240 249 255/var(--tw-bg-opacity))}.bg-alert-background-neutral{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-alert-background-warning{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity))}.bg-background-brand{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-background-inverse{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-background-primary{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-background-secondary,.bg-badge-background-disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-badge-background-gray{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-badge-background-green{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.bg-badge-background-red{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-badge-background-sky{--tw-bg-opacity:1;background-color:rgb(240 249 255/var(--tw-bg-opacity))}.bg-badge-background-yellow{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity))}.bg-border-interactive{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-brand-background-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.bg-brand-primary-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-button-danger{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.bg-button-disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-button-primary{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-button-secondary{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.bg-button-tertiary{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-button-tertiary-hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-current{background-color:currentColor}.bg-field-background-disabled{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-field-background-error{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-field-secondary-background{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gray-200,.bg-misc-progress-background{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-toggle-dial-background{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-toggle-off{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-toggle-off-disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-tooltip-background-dark{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-tooltip-background-light{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-cover{background-size:cover}.bg-center{background-position:50%}.bg-no-repeat{background-repeat:no-repeat}.fill-current{fill:currentColor}.p-0{padding:0}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-right:.25rem;padding-left:.25rem}.px-1\.5{padding-right:.375rem;padding-left:.375rem}.px-2{padding-right:.5rem;padding-left:.5rem}.px-2\.5{padding-right:.625rem;padding-left:.625rem}.px-3{padding-right:.75rem;padding-left:.75rem}.px-3\.5{padding-right:.875rem;padding-left:.875rem}.px-4{padding-right:1rem;padding-left:1rem}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.pl-10{padding-right:2.5rem}.pl-2{padding-right:.5rem}.pl-2\.5{padding-right:.625rem}.pl-3{padding-right:.75rem}.pl-8{padding-right:2rem}.pl-9{padding-right:2.25rem}.pr-10{padding-left:2.5rem}.pr-2{padding-left:.5rem}.pr-2\.5{padding-left:.625rem}.pr-3{padding-left:.75rem}.pr-8{padding-left:2rem}.pr-9{padding-left:2.25rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-none{line-height:1}.text-background-primary{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-badge-color-disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-badge-color-gray{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.text-badge-color-green{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-badge-color-red{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-badge-color-sky{--tw-text-opacity:1;color:rgb(3 105 161/var(--tw-text-opacity))}.text-badge-color-yellow{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity))}.text-brand-primary-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-button-danger{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-button-primary{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-button-tertiary-color{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-field-color-disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-field-helper{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-field-input,.text-field-label{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-field-placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-icon-disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-icon-inverse{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-icon-on-color-disabled{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-icon-secondary{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-link-primary{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-support-error{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-support-error-inverse{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.text-support-info{--tw-text-opacity:1;color:rgb(2 132 199/var(--tw-text-opacity))}.text-support-info-inverse{--tw-text-opacity:1;color:rgb(56 189 248/var(--tw-text-opacity))}.text-support-success{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-support-success-inverse{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.text-support-warning{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity))}.text-support-warning-inverse{--tw-text-opacity:1;color:rgb(253 224 71/var(--tw-text-opacity))}.text-text-disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-text-inverse,.text-text-on-color{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-text-primary{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-text-secondary{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-text-tertiary{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-tooltip-background-dark{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-tooltip-background-light,.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.placeholder-text-tertiary::-webkit-input-placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.placeholder-text-tertiary:-ms-input-placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.placeholder-text-tertiary::-ms-input-placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.placeholder-text-tertiary::placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.shadow-none,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-soft-shadow-lg{--tw-shadow:0px 12px 32px -12px rgba(149,160,178,.24);--tw-shadow-colored:0px 12px 32px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-offset-0{--tw-ring-offset-width:0px}.filter{-webkit-filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-transform{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.\[grid-area\:1\/1\/2\/3\]{grid-area:1/1/2/3}.file\:border-0::-webkit-file-upload-button{border-width:0}.file\:border-0::file-selector-button{border-width:0}.file\:bg-transparent::-webkit-file-upload-button{background-color:transparent}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-text-tertiary::-webkit-file-upload-button{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.file\:text-text-tertiary::file-selector-button{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.placeholder\:text-field-placeholder::-webkit-input-placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.placeholder\:text-field-placeholder:-ms-input-placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.placeholder\:text-field-placeholder::-ms-input-placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.placeholder\:text-field-placeholder::placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:left-2\/4:before{content:var(--tw-content);right:50%}.before\:top-2\/4:before{content:var(--tw-content);top:50%}.before\:hidden:before{content:var(--tw-content);display:none}.before\:h-10:before{content:var(--tw-content);height:2.5rem}.before\:w-10:before{content:var(--tw-content);width:2.5rem}.before\:-translate-x-2\/4:before{--tw-translate-x:-50%}.before\:-translate-x-2\/4:before,.before\:-translate-y-2\/4:before{content:var(--tw-content);-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:-translate-y-2\/4:before{--tw-translate-y:-50%}.before\:rounded-full:before{border-radius:9999px;content:var(--tw-content)}.before\:opacity-0:before{content:var(--tw-content);opacity:0}.before\:transition-opacity:before{content:var(--tw-content);transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.before\:content-\[\'\'\]:before{--tw-content:"";content:var(--tw-content)}.after\:ml-0\.5:after{content:var(--tw-content);margin-right:.125rem}.after\:text-field-required:after{content:var(--tw-content);--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.after\:content-\[\'\*\'\]:after{--tw-content:"*";content:var(--tw-content)}.first\:rounded-bl:first-child{border-bottom-right-radius:.25rem}.first\:rounded-tl:first-child{border-top-right-radius:.25rem}.first\:border-0:first-child{border-width:0}.first\:border-r:first-child{border-left-width:1px}.first\:border-border-subtle:first-child{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.last\:rounded-br:last-child{border-bottom-left-radius:.25rem}.last\:rounded-tr:last-child{border-top-left-radius:.25rem}.last\:border-0:last-child{border-width:0}.checked\:border-border-interactive:checked{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.checked\:border-toggle-on-border:checked{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity))}.checked\:bg-toggle-on:checked{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.checked\:before\:hidden:checked:before{content:var(--tw-content);display:none}.checked\:before\:content-\[\'\'\]:checked:before{--tw-content:"";content:var(--tw-content)}.focus-within\:z-10:focus-within{z-index:10}.focus-within\:\!border-focus-border:focus-within{--tw-border-opacity:1!important;border-color:rgb(191 219 254/var(--tw-border-opacity))!important}.focus-within\:ring-2:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-within\:ring-focus:focus-within{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity))}.focus-within\:ring-offset-2:focus-within{--tw-ring-offset-width:2px}.hover\:border-border-disabled:hover{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.hover\:border-border-interactive:hover{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.hover\:border-border-strong:hover{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity))}.hover\:border-border-subtle:hover{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.hover\:border-button-danger:hover{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.hover\:border-button-danger-hover:hover{--tw-border-opacity:1;border-color:rgb(185 28 28/var(--tw-border-opacity))}.hover\:border-button-primary:hover{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.hover\:border-button-primary-hover:hover{--tw-border-opacity:1;border-color:rgb(29 78 216/var(--tw-border-opacity))}.hover\:border-button-secondary-hover:hover{--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity))}.hover\:border-field-border-disabled:hover{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity))}.hover\:border-text-inverse:hover{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.hover\:bg-badge-hover-disabled:hover,.hover\:bg-badge-hover-gray:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\:bg-badge-hover-green:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.hover\:bg-badge-hover-red:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.hover\:bg-badge-hover-sky:hover{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.hover\:bg-badge-hover-yellow:hover{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.hover\:bg-button-danger-hover:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.hover\:bg-button-primary-hover:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity))}.hover\:bg-button-secondary-hover:hover{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.hover\:bg-button-tertiary-hover:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\:bg-field-background-error:hover{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.hover\:bg-toggle-off-hover:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.hover\:bg-transparent:hover{background-color:transparent}.hover\:bg-white:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.hover\:text-button-danger-secondary:hover{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.hover\:text-button-primary-hover:hover,.hover\:text-link-primary-hover:hover{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity))}.hover\:text-text-inverse:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:before\:opacity-10:hover:before{content:var(--tw-content);opacity:.1}.checked\:hover\:border-toggle-on-hover:hover:checked{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.checked\:hover\:bg-toggle-on-hover:hover:checked{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity))}.focus\:border-focus-border:focus{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity))}.focus\:border-focus-error-border:focus{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity))}.focus\:border-toggle-off-border:focus{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.focus\:shadow-none:focus{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-0:focus,.focus\:ring:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-field-color-error:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity))}.focus\:ring-focus:focus,.focus\:ring-toggle-on:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity))}.focus\:ring-offset-0:focus{--tw-ring-offset-width:0px}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus\:ring-offset-4:focus{--tw-ring-offset-width:4px}.checked\:focus\:border-toggle-on-border:focus:checked{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity))}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.active\:outline-none:active{outline:2px solid transparent;outline-offset:2px}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:border-border-disabled:disabled{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.disabled\:border-button-disabled:disabled,.disabled\:border-field-border-disabled:disabled{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity))}.disabled\:border-transparent:disabled{border-color:transparent}.disabled\:bg-button-disabled:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.disabled\:bg-button-tertiary:disabled,.disabled\:bg-white:disabled{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.disabled\:text-text-disabled:disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.checked\:disabled\:border-border-disabled:disabled:checked{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.checked\:disabled\:bg-white:disabled:checked{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.group:disabled .group-disabled\:text-field-color-disabled,.group:disabled .group-disabled\:text-icon-disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.peer:checked~.peer-checked\:translate-x-4{--tw-translate-x:1rem}.peer:checked~.peer-checked\:translate-x-4,.peer:checked~.peer-checked\:translate-x-5{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:checked~.peer-checked\:translate-x-5{--tw-translate-x:1.25rem}.peer:checked~.peer-checked\:opacity-100{opacity:1}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:text-border-disabled{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}@media (min-width:768px){.md\:w-1\/10{width:10%}.md\:w-1\/11{width:9.0909091%}.md\:w-1\/12{width:8.3333333%}.md\:w-1\/2{width:50%}.md\:w-1\/3{width:33.333333%}.md\:w-1\/4{width:25%}.md\:w-1\/5{width:20%}.md\:w-1\/6{width:16.666667%}.md\:w-1\/7{width:14.2857143%}.md\:w-1\/8{width:12.5%}.md\:w-1\/9{width:11.1111111%}.md\:w-full{width:100%}}@media (min-width:1024px){.lg\:w-1\/10{width:10%}.lg\:w-1\/11{width:9.0909091%}.lg\:w-1\/12{width:8.3333333%}.lg\:w-1\/2{width:50%}.lg\:w-1\/3{width:33.333333%}.lg\:w-1\/4{width:25%}.lg\:w-1\/5{width:20%}.lg\:w-1\/6{width:16.666667%}.lg\:w-1\/7{width:14.2857143%}.lg\:w-1\/8{width:12.5%}.lg\:w-1\/9{width:11.1111111%}.lg\:w-\[47\.5rem\]{width:47.5rem}.lg\:w-full{width:100%}}.\[\&\:hover\:has\(\:disabled\)\]\:border-field-border-disabled:hover:has(:disabled){--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity))}.\[\&\:hover\:not\(\:focus\)\:not\(\:disabled\)\]\:border-border-strong:hover:not(:focus):not(:disabled){--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity))}.\[\&\>\*\]\:box-border>*{box-sizing:border-box}.\[\&\>\*\]\:text-2xl>*{font-size:1.5rem;line-height:2rem}.\[\&\>\*\]\:text-base>*{font-size:1rem;line-height:1.5rem}.\[\&\>\*\]\:text-lg>*{font-size:1.125rem;line-height:1.75rem}.\[\&\>\*\]\:text-sm>*{font-size:.875rem;line-height:1.25rem}.\[\&\>\*\]\:text-xl>*{font-size:1.25rem;line-height:1.75rem}.\[\&\>\*\]\:text-xs>*{font-size:.75rem;line-height:1rem}.\[\&\>\*\]\:text-field-color-disabled>*{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.\[\&\>\*\]\:text-field-helper>*{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.\[\&\>\*\]\:text-field-label>*{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.\[\&\>\*\]\:text-support-error>*{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.\[\&\>li\]\:pointer-events-auto>li{pointer-events:auto}.\[\&\>p\]\:m-0>p{margin:0}.\[\&\>p\]\:w-full>p{width:100%}.\[\&\>span\:first-child\]\:shrink-0>span:first-child{-ms-flex-negative:0;flex-shrink:0}.\[\&\>svg\]\:size-3>svg{height:.75rem;width:.75rem}.\[\&\>svg\]\:size-3\.5>svg{height:.875rem;width:.875rem}.\[\&\>svg\]\:size-4>svg{height:1rem;width:1rem}.\[\&\>svg\]\:size-5>svg{height:1.25rem;width:1.25rem}.\[\&\>svg\]\:size-6>svg{height:1.5rem;width:1.5rem}.\[\&\>svg\]\:h-3>svg{height:.75rem}.\[\&\>svg\]\:h-4>svg{height:1rem}.\[\&\>svg\]\:h-5>svg{height:1.25rem}.\[\&\>svg\]\:h-6>svg{height:1.5rem}.\[\&\>svg\]\:h-8>svg{height:2rem}.\[\&\>svg\]\:w-3>svg{width:.75rem}.\[\&\>svg\]\:w-4>svg{width:1rem}.\[\&\>svg\]\:w-5>svg{width:1.25rem}.\[\&\>svg\]\:w-6>svg{width:1.5rem}.\[\&\>svg\]\:w-8>svg{width:2rem}.\[\&\>svg\]\:shrink-0>svg{-ms-flex-negative:0;flex-shrink:0}.\[\&_\*\]\:box-border *{box-sizing:border-box}.\[\&_\*\]\:text-sm *{font-size:.875rem}.\[\&_\*\]\:leading-5 *,.\[\&_\*\]\:text-sm *{line-height:1.25rem}.\[\&_\.editor-content\>p\]\:text-sm .editor-content>p{font-size:.875rem;line-height:1.25rem}.\[\&_\.editor-content\>p\]\:text-xs .editor-content>p{font-size:.75rem;line-height:1rem}.\[\&_\.editor-content\>p\]\:font-medium .editor-content>p{font-weight:500}.\[\&_\.editor-content\>p\]\:leading-\[1\.625rem\] .editor-content>p{line-height:1.625rem}.\[\&_\.editor-content\>p\]\:leading-\[1\.6875rem\] .editor-content>p{line-height:1.6875rem}.\[\&_p\]\:m-0 p{margin:0}.\[\&_p\]\:text-badge-color-disabled p{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.\[\&_svg\]\:size-5 svg{height:1.25rem;width:1.25rem} diff --git a/dist/force-ui.asset.php b/dist/force-ui.asset.php index 7bf45a54..3a40edb4 100644 --- a/dist/force-ui.asset.php +++ b/dist/force-ui.asset.php @@ -1 +1 @@ - array('react', 'react-dom'), 'version' => 'cf2bd2027c6661891dbd'); + array('react', 'react-dom'), 'version' => '5685fb1bdd595e9f4a65'); diff --git a/dist/force-ui.css b/dist/force-ui.css index 747590b0..64cb1f62 100644 --- a/dist/force-ui.css +++ b/dist/force-ui.css @@ -1 +1 @@ -*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::-ms-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-inset-1{inset:-.25rem}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{bottom:0;top:0}.-bottom-px{bottom:-1px}.bottom-0{bottom:0}.left-0{left:0}.left-1{left:.25rem}.left-2\/4{left:50%}.right-0{right:0}.right-3{right:.75rem}.right-4{right:1rem}.top-0{top:0}.top-2\/4{top:50%}.top-3{top:.75rem}.top-4{top:1rem}.top-full{top:100%}.z-10{z-index:10}.z-20{z-index:20}.order-1{-ms-flex-order:1;order:1}.order-10{-ms-flex-order:10;order:10}.order-11{-ms-flex-order:11;order:11}.order-12{-ms-flex-order:12;order:12}.order-2{-ms-flex-order:2;order:2}.order-3{-ms-flex-order:3;order:3}.order-4{-ms-flex-order:4;order:4}.order-5{-ms-flex-order:5;order:5}.order-6{-ms-flex-order:6;order:6}.order-7{-ms-flex-order:7;order:7}.order-8{-ms-flex-order:8;order:8}.order-9{-ms-flex-order:9;order:9}.order-first{-ms-flex-order:-9999;order:-9999}.order-last{-ms-flex-order:9999;order:9999}.order-none{-ms-flex-order:0;order:0}.m-0{margin:0}.mx-0{margin-left:0;margin-right:0}.mb-0{margin-bottom:0}.ml-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.mr-1{margin-right:.25rem}.mr-10{margin-right:2.5rem}.mt-2{margin-top:.5rem}.mt-2\.5{margin-top:.625rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:-ms-flexbox;display:flex}.inline-flex{display:-ms-inline-flexbox;display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.size-1\.5{height:.375rem;width:.375rem}.size-2{height:.5rem;width:.5rem}.size-3{height:.75rem;width:.75rem}.size-4{height:1rem;width:1rem}.size-5{height:1.25rem;width:1.25rem}.h-10{height:2.5rem}.h-2{height:.5rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.max-h-\[10\.75rem\]{max-height:10.75rem}.max-h-\[13\.5rem\]{max-height:13.5rem}.min-h-\[1\.625rem\]{min-height:1.625rem}.min-h-\[2\.25rem\]{min-height:2.25rem}.min-h-\[2\.5rem\]{min-height:2.5rem}.min-h-\[3rem\]{min-height:3rem}.w-1\/12{width:8.333333%}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-1\/4{width:25%}.w-1\/5{width:20%}.w-1\/6{width:16.666667%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[22\.5rem\]{width:22.5rem}.w-fit{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-80{max-width:20rem}.max-w-fit{max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content}.flex-1{-ms-flex:1 1 0%;flex:1 1 0%}.shrink{-ms-flex-negative:1;flex-shrink:1}.shrink-0{-ms-flex-negative:0;flex-shrink:0}.grow{-ms-flex-positive:1;flex-grow:1}.grow-0{-ms-flex-positive:0;flex-grow:0}.origin-left{-webkit-transform-origin:left;transform-origin:left}.-translate-x-2\/4{--tw-translate-x:-50%}.-translate-x-2\/4,.-translate-y-2\/4{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-2\/4{--tw-translate-y:-50%}.transform{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}.animate-pulse{-webkit-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.animate-spin{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}.flex-row{-ms-flex-direction:row;flex-direction:row}.flex-row-reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.flex-col{-ms-flex-direction:column;flex-direction:column}.flex-col-reverse{-ms-flex-direction:column-reverse;flex-direction:column-reverse}.flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.flex-wrap-reverse{-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse}.flex-nowrap{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.items-start{-ms-flex-align:start;align-items:flex-start}.items-end{-ms-flex-align:end;align-items:flex-end}.items-center{-ms-flex-align:center;align-items:center}.items-baseline{-ms-flex-align:baseline;align-items:baseline}.items-stretch{-ms-flex-align:stretch;align-items:stretch}.justify-normal{-ms-flex-pack:normal;justify-content:normal}.justify-start{-ms-flex-pack:start;justify-content:flex-start}.justify-end{-ms-flex-pack:end;justify-content:flex-end}.justify-center{-ms-flex-pack:center;justify-content:center}.justify-between{-ms-flex-pack:justify;justify-content:space-between}.justify-around{-ms-flex-pack:distribute;justify-content:space-around}.justify-evenly{-ms-flex-pack:space-evenly;justify-content:space-evenly}.justify-stretch{-ms-flex-pack:stretch;justify-content:stretch}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.375rem*var(--tw-space-y-reverse));margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)))}.divide-x-0>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-left-width:calc(0px*(1 - var(--tw-divide-x-reverse)));border-right-width:calc(0px*var(--tw-divide-x-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-solid>:not([hidden])~:not([hidden]){border-style:solid}.divide-border-subtle>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity))}.self-auto{-ms-flex-item-align:auto;align-self:auto}.self-start{-ms-flex-item-align:start;align-self:flex-start}.self-end{-ms-flex-item-align:end;align-self:flex-end}.self-center{-ms-flex-item-align:center;align-self:center}.self-stretch{-ms-flex-item-align:stretch;align-self:stretch}.self-baseline{-ms-flex-item-align:baseline;align-self:baseline}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-bl{border-bottom-left-radius:.25rem}.rounded-br{border-bottom-right-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.border{border-width:1px}.border-0{border-width:0}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-l-0{border-left-width:0}.border-r{border-right-width:1px}.border-r-0{border-right-width:0}.border-t-0{border-top-width:0}.border-solid{border-style:solid}.border-none{border-style:none}.border-alert-border-danger{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity))}.border-alert-border-green{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity))}.border-alert-border-info{--tw-border-opacity:1;border-color:rgb(186 230 253/var(--tw-border-opacity))}.border-alert-border-neutral{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-alert-border-warning{--tw-border-opacity:1;border-color:rgb(254 240 138/var(--tw-border-opacity))}.border-background-inverse{--tw-border-opacity:1;border-color:rgb(17 24 39/var(--tw-border-opacity))}.border-badge-border-disabled,.border-badge-border-gray{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-badge-border-green{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity))}.border-badge-border-red{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity))}.border-badge-border-sky{--tw-border-opacity:1;border-color:rgb(186 230 253/var(--tw-border-opacity))}.border-badge-border-yellow{--tw-border-opacity:1;border-color:rgb(254 240 138/var(--tw-border-opacity))}.border-border-disabled{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-border-strong{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity))}.border-border-subtle{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-border-transparent-subtle{border-color:#37415114}.border-border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.border-button-danger{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.border-button-primary{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.border-button-secondary{--tw-border-opacity:1;border-color:rgb(31 41 55/var(--tw-border-opacity))}.border-field-border{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-field-border-disabled{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity))}.border-tab-border{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-text-inverse{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.border-toggle-off-border{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.bg-alert-background-danger{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-alert-background-green{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.bg-alert-background-info{--tw-bg-opacity:1;background-color:rgb(240 249 255/var(--tw-bg-opacity))}.bg-alert-background-neutral{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-alert-background-warning{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity))}.bg-background-brand{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-background-inverse{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-background-primary{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-background-secondary,.bg-badge-background-disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-badge-background-gray{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-badge-background-green{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.bg-badge-background-red{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-badge-background-sky{--tw-bg-opacity:1;background-color:rgb(240 249 255/var(--tw-bg-opacity))}.bg-badge-background-yellow{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity))}.bg-border-interactive{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-brand-background-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.bg-brand-primary-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-button-danger{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.bg-button-disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-button-primary{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-button-secondary{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.bg-button-tertiary{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-button-tertiary-hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-current{background-color:currentColor}.bg-field-background-disabled{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-field-background-error{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-field-secondary-background{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gray-200,.bg-misc-progress-background{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-toggle-dial-background{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-toggle-off{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-toggle-off-disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-tooltip-background-dark{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-tooltip-background-light{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-cover{background-size:cover}.bg-center{background-position:50%}.bg-no-repeat{background-repeat:no-repeat}.fill-current{fill:currentColor}.p-0{padding:0}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-8{padding-left:2rem}.pl-9{padding-left:2.25rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-3{padding-right:.75rem}.pr-8{padding-right:2rem}.pr-9{padding-right:2.25rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-none{line-height:1}.text-background-primary{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-badge-color-disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-badge-color-gray{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.text-badge-color-green{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-badge-color-red{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-badge-color-sky{--tw-text-opacity:1;color:rgb(3 105 161/var(--tw-text-opacity))}.text-badge-color-yellow{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity))}.text-brand-primary-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-button-danger{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-button-primary{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-button-tertiary-color{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-field-color-disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-field-helper{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-field-input,.text-field-label{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-field-placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-icon-disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-icon-inverse{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-icon-on-color-disabled{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-icon-secondary{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-link-primary{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-support-error{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-support-error-inverse{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.text-support-info{--tw-text-opacity:1;color:rgb(2 132 199/var(--tw-text-opacity))}.text-support-info-inverse{--tw-text-opacity:1;color:rgb(56 189 248/var(--tw-text-opacity))}.text-support-success{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-support-success-inverse{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.text-support-warning{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity))}.text-support-warning-inverse{--tw-text-opacity:1;color:rgb(253 224 71/var(--tw-text-opacity))}.text-text-disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-text-inverse,.text-text-on-color{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-text-primary{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-text-secondary{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-text-tertiary{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-tooltip-background-dark{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-tooltip-background-light,.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.placeholder-text-tertiary::-webkit-input-placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.placeholder-text-tertiary:-ms-input-placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.placeholder-text-tertiary::-ms-input-placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.placeholder-text-tertiary::placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.shadow-none,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-offset-0{--tw-ring-offset-width:0px}.filter{-webkit-filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-transform{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.\[grid-area\:1\/1\/2\/3\]{grid-area:1/1/2/3}.file\:border-0::-webkit-file-upload-button{border-width:0}.file\:border-0::file-selector-button{border-width:0}.file\:bg-transparent::-webkit-file-upload-button{background-color:transparent}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-text-tertiary::-webkit-file-upload-button{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.file\:text-text-tertiary::file-selector-button{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.placeholder\:text-field-placeholder::-webkit-input-placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.placeholder\:text-field-placeholder:-ms-input-placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.placeholder\:text-field-placeholder::-ms-input-placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.placeholder\:text-field-placeholder::placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:left-2\/4:before{content:var(--tw-content);left:50%}.before\:top-2\/4:before{content:var(--tw-content);top:50%}.before\:hidden:before{content:var(--tw-content);display:none}.before\:h-10:before{content:var(--tw-content);height:2.5rem}.before\:w-10:before{content:var(--tw-content);width:2.5rem}.before\:-translate-x-2\/4:before{--tw-translate-x:-50%}.before\:-translate-x-2\/4:before,.before\:-translate-y-2\/4:before{content:var(--tw-content);-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:-translate-y-2\/4:before{--tw-translate-y:-50%}.before\:rounded-full:before{border-radius:9999px;content:var(--tw-content)}.before\:opacity-0:before{content:var(--tw-content);opacity:0}.before\:transition-opacity:before{content:var(--tw-content);transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.before\:content-\[\'\'\]:before{--tw-content:"";content:var(--tw-content)}.after\:ml-0\.5:after{content:var(--tw-content);margin-left:.125rem}.after\:text-field-required:after{content:var(--tw-content);--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.after\:content-\[\'\*\'\]:after{--tw-content:"*";content:var(--tw-content)}.first\:rounded-bl:first-child{border-bottom-left-radius:.25rem}.first\:rounded-tl:first-child{border-top-left-radius:.25rem}.first\:border-0:first-child{border-width:0}.first\:border-r:first-child{border-right-width:1px}.first\:border-border-subtle:first-child{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.last\:rounded-br:last-child{border-bottom-right-radius:.25rem}.last\:rounded-tr:last-child{border-top-right-radius:.25rem}.last\:border-0:last-child{border-width:0}.checked\:border-border-interactive:checked{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.checked\:border-toggle-on-border:checked{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity))}.checked\:bg-toggle-on:checked{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.checked\:before\:hidden:checked:before{content:var(--tw-content);display:none}.checked\:before\:content-\[\'\'\]:checked:before{--tw-content:"";content:var(--tw-content)}.focus-within\:z-10:focus-within{z-index:10}.focus-within\:\!border-focus-border:focus-within{--tw-border-opacity:1!important;border-color:rgb(191 219 254/var(--tw-border-opacity))!important}.focus-within\:ring-2:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-within\:ring-focus:focus-within{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity))}.focus-within\:ring-offset-2:focus-within{--tw-ring-offset-width:2px}.hover\:border-border-disabled:hover{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.hover\:border-border-interactive:hover{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.hover\:border-border-strong:hover{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity))}.hover\:border-border-subtle:hover{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.hover\:border-button-danger:hover{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.hover\:border-button-danger-hover:hover{--tw-border-opacity:1;border-color:rgb(185 28 28/var(--tw-border-opacity))}.hover\:border-button-primary:hover{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.hover\:border-button-primary-hover:hover{--tw-border-opacity:1;border-color:rgb(29 78 216/var(--tw-border-opacity))}.hover\:border-button-secondary-hover:hover{--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity))}.hover\:border-field-border-disabled:hover{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity))}.hover\:border-text-inverse:hover{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.hover\:bg-badge-hover-disabled:hover,.hover\:bg-badge-hover-gray:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\:bg-badge-hover-green:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.hover\:bg-badge-hover-red:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.hover\:bg-badge-hover-sky:hover{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.hover\:bg-badge-hover-yellow:hover{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.hover\:bg-button-danger-hover:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.hover\:bg-button-primary-hover:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity))}.hover\:bg-button-secondary-hover:hover{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.hover\:bg-button-tertiary-hover:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\:bg-field-background-error:hover{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.hover\:bg-toggle-off-hover:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.hover\:bg-transparent:hover{background-color:transparent}.hover\:bg-white:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.hover\:text-button-danger-secondary:hover{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.hover\:text-button-primary-hover:hover,.hover\:text-link-primary-hover:hover{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity))}.hover\:text-text-inverse:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:before\:opacity-10:hover:before{content:var(--tw-content);opacity:.1}.checked\:hover\:border-toggle-on-hover:hover:checked{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.checked\:hover\:bg-toggle-on-hover:hover:checked{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity))}.focus\:border-focus-border:focus{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity))}.focus\:border-focus-error-border:focus{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity))}.focus\:border-toggle-off-border:focus{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.focus\:shadow-none:focus{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-0:focus,.focus\:ring:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-field-color-error:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity))}.focus\:ring-focus:focus,.focus\:ring-toggle-on:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity))}.focus\:ring-offset-0:focus{--tw-ring-offset-width:0px}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus\:ring-offset-4:focus{--tw-ring-offset-width:4px}.checked\:focus\:border-toggle-on-border:focus:checked{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity))}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.active\:outline-none:active{outline:2px solid transparent;outline-offset:2px}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:border-border-disabled:disabled{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.disabled\:border-button-disabled:disabled,.disabled\:border-field-border-disabled:disabled{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity))}.disabled\:border-transparent:disabled{border-color:transparent}.disabled\:bg-button-disabled:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.disabled\:bg-button-tertiary:disabled,.disabled\:bg-white:disabled{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.disabled\:text-text-disabled:disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.checked\:disabled\:border-border-disabled:disabled:checked{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.checked\:disabled\:bg-white:disabled:checked{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.group:disabled .group-disabled\:text-field-color-disabled,.group:disabled .group-disabled\:text-icon-disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.peer:checked~.peer-checked\:translate-x-4{--tw-translate-x:1rem}.peer:checked~.peer-checked\:translate-x-4,.peer:checked~.peer-checked\:translate-x-5{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:checked~.peer-checked\:translate-x-5{--tw-translate-x:1.25rem}.peer:checked~.peer-checked\:opacity-100{opacity:1}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:text-border-disabled{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}@media (min-width:768px){.md\:w-1\/12{width:8.333333%}.md\:w-1\/2{width:50%}.md\:w-1\/3{width:33.333333%}.md\:w-1\/4{width:25%}.md\:w-1\/5{width:20%}.md\:w-1\/6{width:16.666667%}.md\:w-full{width:100%}}@media (min-width:1024px){.lg\:w-1\/12{width:8.333333%}.lg\:w-1\/2{width:50%}.lg\:w-1\/3{width:33.333333%}.lg\:w-1\/4{width:25%}.lg\:w-1\/5{width:20%}.lg\:w-1\/6{width:16.666667%}.lg\:w-\[47\.5rem\]{width:47.5rem}.lg\:w-full{width:100%}}.\[\&\:hover\:has\(\:disabled\)\]\:border-field-border-disabled:hover:has(:disabled){--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity))}.\[\&\:hover\:not\(\:focus\)\:not\(\:disabled\)\]\:border-border-strong:hover:not(:focus):not(:disabled){--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity))}.\[\&\>\*\]\:box-border>*{box-sizing:border-box}.\[\&\>\*\]\:text-2xl>*{font-size:1.5rem;line-height:2rem}.\[\&\>\*\]\:text-base>*{font-size:1rem;line-height:1.5rem}.\[\&\>\*\]\:text-lg>*{font-size:1.125rem;line-height:1.75rem}.\[\&\>\*\]\:text-sm>*{font-size:.875rem;line-height:1.25rem}.\[\&\>\*\]\:text-xl>*{font-size:1.25rem;line-height:1.75rem}.\[\&\>\*\]\:text-xs>*{font-size:.75rem;line-height:1rem}.\[\&\>\*\]\:text-field-color-disabled>*{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.\[\&\>\*\]\:text-field-helper>*{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.\[\&\>\*\]\:text-field-label>*{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.\[\&\>\*\]\:text-support-error>*{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.\[\&\>li\]\:pointer-events-auto>li{pointer-events:auto}.\[\&\>p\]\:m-0>p{margin:0}.\[\&\>p\]\:w-full>p{width:100%}.\[\&\>span\:first-child\]\:shrink-0>span:first-child{-ms-flex-negative:0;flex-shrink:0}.\[\&\>svg\]\:size-3>svg{height:.75rem;width:.75rem}.\[\&\>svg\]\:size-3\.5>svg{height:.875rem;width:.875rem}.\[\&\>svg\]\:size-4>svg{height:1rem;width:1rem}.\[\&\>svg\]\:size-5>svg{height:1.25rem;width:1.25rem}.\[\&\>svg\]\:size-6>svg{height:1.5rem;width:1.5rem}.\[\&\>svg\]\:h-3>svg{height:.75rem}.\[\&\>svg\]\:h-4>svg{height:1rem}.\[\&\>svg\]\:h-5>svg{height:1.25rem}.\[\&\>svg\]\:h-6>svg{height:1.5rem}.\[\&\>svg\]\:h-8>svg{height:2rem}.\[\&\>svg\]\:w-3>svg{width:.75rem}.\[\&\>svg\]\:w-4>svg{width:1rem}.\[\&\>svg\]\:w-5>svg{width:1.25rem}.\[\&\>svg\]\:w-6>svg{width:1.5rem}.\[\&\>svg\]\:w-8>svg{width:2rem}.\[\&\>svg\]\:shrink-0>svg{-ms-flex-negative:0;flex-shrink:0}.\[\&_\*\]\:box-border *{box-sizing:border-box}.\[\&_\*\]\:text-sm *{font-size:.875rem}.\[\&_\*\]\:leading-5 *,.\[\&_\*\]\:text-sm *{line-height:1.25rem}.\[\&_\.editor-content\>p\]\:text-sm .editor-content>p{font-size:.875rem;line-height:1.25rem}.\[\&_\.editor-content\>p\]\:text-xs .editor-content>p{font-size:.75rem;line-height:1rem}.\[\&_\.editor-content\>p\]\:font-medium .editor-content>p{font-weight:500}.\[\&_\.editor-content\>p\]\:leading-\[1\.625rem\] .editor-content>p{line-height:1.625rem}.\[\&_\.editor-content\>p\]\:leading-\[1\.6875rem\] .editor-content>p{line-height:1.6875rem}.\[\&_p\]\:m-0 p{margin:0}.\[\&_p\]\:text-badge-color-disabled p{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.\[\&_svg\]\:size-5 svg{height:1.25rem;width:1.25rem} +*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::-ms-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-inset-1{inset:-.25rem}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{bottom:0;top:0}.-bottom-px{bottom:-1px}.bottom-0{bottom:0}.left-0{left:0}.left-1{left:.25rem}.left-2\/4{left:50%}.right-0{right:0}.right-3{right:.75rem}.right-4{right:1rem}.top-0{top:0}.top-2\/4{top:50%}.top-3{top:.75rem}.top-4{top:1rem}.top-full{top:100%}.z-10{z-index:10}.z-20{z-index:20}.order-1{-ms-flex-order:1;order:1}.order-10{-ms-flex-order:10;order:10}.order-11{-ms-flex-order:11;order:11}.order-12{-ms-flex-order:12;order:12}.order-2{-ms-flex-order:2;order:2}.order-3{-ms-flex-order:3;order:3}.order-4{-ms-flex-order:4;order:4}.order-5{-ms-flex-order:5;order:5}.order-6{-ms-flex-order:6;order:6}.order-7{-ms-flex-order:7;order:7}.order-8{-ms-flex-order:8;order:8}.order-9{-ms-flex-order:9;order:9}.order-first{-ms-flex-order:-9999;order:-9999}.order-last{-ms-flex-order:9999;order:9999}.order-none{-ms-flex-order:0;order:0}.m-0{margin:0}.mx-0{margin-left:0;margin-right:0}.mb-0{margin-bottom:0}.ml-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.mr-1{margin-right:.25rem}.mr-10{margin-right:2.5rem}.mt-2{margin-top:.5rem}.mt-2\.5{margin-top:.625rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:-ms-flexbox;display:flex}.inline-flex{display:-ms-inline-flexbox;display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.size-1\.5{height:.375rem;width:.375rem}.size-2{height:.5rem;width:.5rem}.size-3{height:.75rem;width:.75rem}.size-4{height:1rem;width:1rem}.size-5{height:1.25rem;width:1.25rem}.h-10{height:2.5rem}.h-2{height:.5rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.max-h-\[10\.75rem\]{max-height:10.75rem}.max-h-\[13\.5rem\]{max-height:13.5rem}.min-h-\[1\.625rem\]{min-height:1.625rem}.min-h-\[2\.25rem\]{min-height:2.25rem}.min-h-\[2\.5rem\]{min-height:2.5rem}.min-h-\[3rem\]{min-height:3rem}.w-1\/10{width:10%}.w-1\/11{width:9.0909091%}.w-1\/12{width:8.3333333%}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-1\/4{width:25%}.w-1\/5{width:20%}.w-1\/6{width:16.666667%}.w-1\/7{width:14.2857143%}.w-1\/8{width:12.5%}.w-1\/9{width:11.1111111%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[22\.5rem\]{width:22.5rem}.w-fit{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-80{max-width:20rem}.max-w-fit{max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content}.flex-1{-ms-flex:1 1 0%;flex:1 1 0%}.shrink{-ms-flex-negative:1;flex-shrink:1}.shrink-0{-ms-flex-negative:0;flex-shrink:0}.grow{-ms-flex-positive:1;flex-grow:1}.grow-0{-ms-flex-positive:0;flex-grow:0}.origin-left{-webkit-transform-origin:left;transform-origin:left}.-translate-x-2\/4{--tw-translate-x:-50%}.-translate-x-2\/4,.-translate-y-2\/4{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-2\/4{--tw-translate-y:-50%}.transform{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}.animate-pulse{-webkit-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.animate-spin{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}.flex-row{-ms-flex-direction:row;flex-direction:row}.flex-row-reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.flex-col{-ms-flex-direction:column;flex-direction:column}.flex-col-reverse{-ms-flex-direction:column-reverse;flex-direction:column-reverse}.flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.flex-wrap-reverse{-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse}.flex-nowrap{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.items-start{-ms-flex-align:start;align-items:flex-start}.items-end{-ms-flex-align:end;align-items:flex-end}.items-center{-ms-flex-align:center;align-items:center}.items-baseline{-ms-flex-align:baseline;align-items:baseline}.items-stretch{-ms-flex-align:stretch;align-items:stretch}.justify-normal{-ms-flex-pack:normal;justify-content:normal}.justify-start{-ms-flex-pack:start;justify-content:flex-start}.justify-end{-ms-flex-pack:end;justify-content:flex-end}.justify-center{-ms-flex-pack:center;justify-content:center}.justify-between{-ms-flex-pack:justify;justify-content:space-between}.justify-around{-ms-flex-pack:distribute;justify-content:space-around}.justify-evenly{-ms-flex-pack:space-evenly;justify-content:space-evenly}.justify-stretch{-ms-flex-pack:stretch;justify-content:stretch}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.375rem*var(--tw-space-y-reverse));margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)))}.divide-x-0>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-left-width:calc(0px*(1 - var(--tw-divide-x-reverse)));border-right-width:calc(0px*var(--tw-divide-x-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-solid>:not([hidden])~:not([hidden]){border-style:solid}.divide-border-subtle>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity))}.self-auto{-ms-flex-item-align:auto;align-self:auto}.self-start{-ms-flex-item-align:start;align-self:flex-start}.self-end{-ms-flex-item-align:end;align-self:flex-end}.self-center{-ms-flex-item-align:center;align-self:center}.self-stretch{-ms-flex-item-align:stretch;align-self:stretch}.self-baseline{-ms-flex-item-align:baseline;align-self:baseline}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-bl{border-bottom-left-radius:.25rem}.rounded-br{border-bottom-right-radius:.25rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-tr{border-top-right-radius:.25rem}.border{border-width:1px}.border-0{border-width:0}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-l-0{border-left-width:0}.border-r{border-right-width:1px}.border-r-0{border-right-width:0}.border-t-0{border-top-width:0}.border-solid{border-style:solid}.border-none{border-style:none}.border-alert-border-danger{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity))}.border-alert-border-green{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity))}.border-alert-border-info{--tw-border-opacity:1;border-color:rgb(186 230 253/var(--tw-border-opacity))}.border-alert-border-neutral{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-alert-border-warning{--tw-border-opacity:1;border-color:rgb(254 240 138/var(--tw-border-opacity))}.border-background-inverse{--tw-border-opacity:1;border-color:rgb(17 24 39/var(--tw-border-opacity))}.border-badge-border-disabled,.border-badge-border-gray{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-badge-border-green{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity))}.border-badge-border-red{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity))}.border-badge-border-sky{--tw-border-opacity:1;border-color:rgb(186 230 253/var(--tw-border-opacity))}.border-badge-border-yellow{--tw-border-opacity:1;border-color:rgb(254 240 138/var(--tw-border-opacity))}.border-border-disabled{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-border-strong{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity))}.border-border-subtle{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-border-transparent-subtle{border-color:#37415114}.border-border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.border-button-danger{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.border-button-primary{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.border-button-secondary{--tw-border-opacity:1;border-color:rgb(31 41 55/var(--tw-border-opacity))}.border-field-border{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-field-border-disabled{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity))}.border-tab-border{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-text-inverse{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.border-toggle-off-border{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.bg-alert-background-danger{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-alert-background-green{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.bg-alert-background-info{--tw-bg-opacity:1;background-color:rgb(240 249 255/var(--tw-bg-opacity))}.bg-alert-background-neutral{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-alert-background-warning{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity))}.bg-background-brand{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-background-inverse{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-background-primary{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-background-secondary,.bg-badge-background-disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-badge-background-gray{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-badge-background-green{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.bg-badge-background-red{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-badge-background-sky{--tw-bg-opacity:1;background-color:rgb(240 249 255/var(--tw-bg-opacity))}.bg-badge-background-yellow{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity))}.bg-border-interactive{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-brand-background-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.bg-brand-primary-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-button-danger{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.bg-button-disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-button-primary{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-button-secondary{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.bg-button-tertiary{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-button-tertiary-hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-current{background-color:currentColor}.bg-field-background-disabled{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-field-background-error{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-field-secondary-background{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gray-200,.bg-misc-progress-background{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-toggle-dial-background{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-toggle-off{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-toggle-off-disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-tooltip-background-dark{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-tooltip-background-light{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-cover{background-size:cover}.bg-center{background-position:50%}.bg-no-repeat{background-repeat:no-repeat}.fill-current{fill:currentColor}.p-0{padding:0}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-8{padding-left:2rem}.pl-9{padding-left:2.25rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-3{padding-right:.75rem}.pr-8{padding-right:2rem}.pr-9{padding-right:2.25rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-none{line-height:1}.text-background-primary{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-badge-color-disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-badge-color-gray{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.text-badge-color-green{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-badge-color-red{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-badge-color-sky{--tw-text-opacity:1;color:rgb(3 105 161/var(--tw-text-opacity))}.text-badge-color-yellow{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity))}.text-brand-primary-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-button-danger{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-button-primary{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-button-tertiary-color{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-field-color-disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-field-helper{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-field-input,.text-field-label{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-field-placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-icon-disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-icon-inverse{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-icon-on-color-disabled{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-icon-secondary{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-link-primary{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-support-error{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-support-error-inverse{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.text-support-info{--tw-text-opacity:1;color:rgb(2 132 199/var(--tw-text-opacity))}.text-support-info-inverse{--tw-text-opacity:1;color:rgb(56 189 248/var(--tw-text-opacity))}.text-support-success{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-support-success-inverse{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.text-support-warning{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity))}.text-support-warning-inverse{--tw-text-opacity:1;color:rgb(253 224 71/var(--tw-text-opacity))}.text-text-disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-text-inverse,.text-text-on-color{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-text-primary{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-text-secondary{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-text-tertiary{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-tooltip-background-dark{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-tooltip-background-light,.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.placeholder-text-tertiary::-webkit-input-placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.placeholder-text-tertiary:-ms-input-placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.placeholder-text-tertiary::-ms-input-placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.placeholder-text-tertiary::placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.shadow-none,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-soft-shadow-lg{--tw-shadow:0px 12px 32px -12px rgba(149,160,178,.24);--tw-shadow-colored:0px 12px 32px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-offset-0{--tw-ring-offset-width:0px}.filter{-webkit-filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-transform,-webkit-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-transform{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.\[grid-area\:1\/1\/2\/3\]{grid-area:1/1/2/3}.file\:border-0::-webkit-file-upload-button{border-width:0}.file\:border-0::file-selector-button{border-width:0}.file\:bg-transparent::-webkit-file-upload-button{background-color:transparent}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-text-tertiary::-webkit-file-upload-button{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.file\:text-text-tertiary::file-selector-button{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.placeholder\:text-field-placeholder::-webkit-input-placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.placeholder\:text-field-placeholder:-ms-input-placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.placeholder\:text-field-placeholder::-ms-input-placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.placeholder\:text-field-placeholder::placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:left-2\/4:before{content:var(--tw-content);left:50%}.before\:top-2\/4:before{content:var(--tw-content);top:50%}.before\:hidden:before{content:var(--tw-content);display:none}.before\:h-10:before{content:var(--tw-content);height:2.5rem}.before\:w-10:before{content:var(--tw-content);width:2.5rem}.before\:-translate-x-2\/4:before{--tw-translate-x:-50%}.before\:-translate-x-2\/4:before,.before\:-translate-y-2\/4:before{content:var(--tw-content);-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:-translate-y-2\/4:before{--tw-translate-y:-50%}.before\:rounded-full:before{border-radius:9999px;content:var(--tw-content)}.before\:opacity-0:before{content:var(--tw-content);opacity:0}.before\:transition-opacity:before{content:var(--tw-content);transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.before\:content-\[\'\'\]:before{--tw-content:"";content:var(--tw-content)}.after\:ml-0\.5:after{content:var(--tw-content);margin-left:.125rem}.after\:text-field-required:after{content:var(--tw-content);--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.after\:content-\[\'\*\'\]:after{--tw-content:"*";content:var(--tw-content)}.first\:rounded-bl:first-child{border-bottom-left-radius:.25rem}.first\:rounded-tl:first-child{border-top-left-radius:.25rem}.first\:border-0:first-child{border-width:0}.first\:border-r:first-child{border-right-width:1px}.first\:border-border-subtle:first-child{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.last\:rounded-br:last-child{border-bottom-right-radius:.25rem}.last\:rounded-tr:last-child{border-top-right-radius:.25rem}.last\:border-0:last-child{border-width:0}.checked\:border-border-interactive:checked{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.checked\:border-toggle-on-border:checked{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity))}.checked\:bg-toggle-on:checked{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.checked\:before\:hidden:checked:before{content:var(--tw-content);display:none}.checked\:before\:content-\[\'\'\]:checked:before{--tw-content:"";content:var(--tw-content)}.focus-within\:z-10:focus-within{z-index:10}.focus-within\:\!border-focus-border:focus-within{--tw-border-opacity:1!important;border-color:rgb(191 219 254/var(--tw-border-opacity))!important}.focus-within\:ring-2:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-within\:ring-focus:focus-within{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity))}.focus-within\:ring-offset-2:focus-within{--tw-ring-offset-width:2px}.hover\:border-border-disabled:hover{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.hover\:border-border-interactive:hover{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.hover\:border-border-strong:hover{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity))}.hover\:border-border-subtle:hover{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.hover\:border-button-danger:hover{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.hover\:border-button-danger-hover:hover{--tw-border-opacity:1;border-color:rgb(185 28 28/var(--tw-border-opacity))}.hover\:border-button-primary:hover{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.hover\:border-button-primary-hover:hover{--tw-border-opacity:1;border-color:rgb(29 78 216/var(--tw-border-opacity))}.hover\:border-button-secondary-hover:hover{--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity))}.hover\:border-field-border-disabled:hover{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity))}.hover\:border-text-inverse:hover{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.hover\:bg-badge-hover-disabled:hover,.hover\:bg-badge-hover-gray:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\:bg-badge-hover-green:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.hover\:bg-badge-hover-red:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.hover\:bg-badge-hover-sky:hover{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.hover\:bg-badge-hover-yellow:hover{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.hover\:bg-button-danger-hover:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.hover\:bg-button-primary-hover:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity))}.hover\:bg-button-secondary-hover:hover{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.hover\:bg-button-tertiary-hover:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\:bg-field-background-error:hover{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.hover\:bg-toggle-off-hover:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.hover\:bg-transparent:hover{background-color:transparent}.hover\:bg-white:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.hover\:text-button-danger-secondary:hover{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.hover\:text-button-primary-hover:hover,.hover\:text-link-primary-hover:hover{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity))}.hover\:text-text-inverse:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:before\:opacity-10:hover:before{content:var(--tw-content);opacity:.1}.checked\:hover\:border-toggle-on-hover:hover:checked{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.checked\:hover\:bg-toggle-on-hover:hover:checked{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity))}.focus\:border-focus-border:focus{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity))}.focus\:border-focus-error-border:focus{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity))}.focus\:border-toggle-off-border:focus{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.focus\:shadow-none:focus{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-0:focus,.focus\:ring:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-field-color-error:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity))}.focus\:ring-focus:focus,.focus\:ring-toggle-on:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity))}.focus\:ring-offset-0:focus{--tw-ring-offset-width:0px}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus\:ring-offset-4:focus{--tw-ring-offset-width:4px}.checked\:focus\:border-toggle-on-border:focus:checked{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity))}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.active\:outline-none:active{outline:2px solid transparent;outline-offset:2px}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:border-border-disabled:disabled{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.disabled\:border-button-disabled:disabled,.disabled\:border-field-border-disabled:disabled{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity))}.disabled\:border-transparent:disabled{border-color:transparent}.disabled\:bg-button-disabled:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.disabled\:bg-button-tertiary:disabled,.disabled\:bg-white:disabled{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.disabled\:text-text-disabled:disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.checked\:disabled\:border-border-disabled:disabled:checked{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.checked\:disabled\:bg-white:disabled:checked{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.group:disabled .group-disabled\:text-field-color-disabled,.group:disabled .group-disabled\:text-icon-disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.peer:checked~.peer-checked\:translate-x-4{--tw-translate-x:1rem}.peer:checked~.peer-checked\:translate-x-4,.peer:checked~.peer-checked\:translate-x-5{-webkit-transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:checked~.peer-checked\:translate-x-5{--tw-translate-x:1.25rem}.peer:checked~.peer-checked\:opacity-100{opacity:1}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:text-border-disabled{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}@media (min-width:768px){.md\:w-1\/10{width:10%}.md\:w-1\/11{width:9.0909091%}.md\:w-1\/12{width:8.3333333%}.md\:w-1\/2{width:50%}.md\:w-1\/3{width:33.333333%}.md\:w-1\/4{width:25%}.md\:w-1\/5{width:20%}.md\:w-1\/6{width:16.666667%}.md\:w-1\/7{width:14.2857143%}.md\:w-1\/8{width:12.5%}.md\:w-1\/9{width:11.1111111%}.md\:w-full{width:100%}}@media (min-width:1024px){.lg\:w-1\/10{width:10%}.lg\:w-1\/11{width:9.0909091%}.lg\:w-1\/12{width:8.3333333%}.lg\:w-1\/2{width:50%}.lg\:w-1\/3{width:33.333333%}.lg\:w-1\/4{width:25%}.lg\:w-1\/5{width:20%}.lg\:w-1\/6{width:16.666667%}.lg\:w-1\/7{width:14.2857143%}.lg\:w-1\/8{width:12.5%}.lg\:w-1\/9{width:11.1111111%}.lg\:w-\[47\.5rem\]{width:47.5rem}.lg\:w-full{width:100%}}.\[\&\:hover\:has\(\:disabled\)\]\:border-field-border-disabled:hover:has(:disabled){--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity))}.\[\&\:hover\:not\(\:focus\)\:not\(\:disabled\)\]\:border-border-strong:hover:not(:focus):not(:disabled){--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity))}.\[\&\>\*\]\:box-border>*{box-sizing:border-box}.\[\&\>\*\]\:text-2xl>*{font-size:1.5rem;line-height:2rem}.\[\&\>\*\]\:text-base>*{font-size:1rem;line-height:1.5rem}.\[\&\>\*\]\:text-lg>*{font-size:1.125rem;line-height:1.75rem}.\[\&\>\*\]\:text-sm>*{font-size:.875rem;line-height:1.25rem}.\[\&\>\*\]\:text-xl>*{font-size:1.25rem;line-height:1.75rem}.\[\&\>\*\]\:text-xs>*{font-size:.75rem;line-height:1rem}.\[\&\>\*\]\:text-field-color-disabled>*{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.\[\&\>\*\]\:text-field-helper>*{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.\[\&\>\*\]\:text-field-label>*{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.\[\&\>\*\]\:text-support-error>*{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.\[\&\>li\]\:pointer-events-auto>li{pointer-events:auto}.\[\&\>p\]\:m-0>p{margin:0}.\[\&\>p\]\:w-full>p{width:100%}.\[\&\>span\:first-child\]\:shrink-0>span:first-child{-ms-flex-negative:0;flex-shrink:0}.\[\&\>svg\]\:size-3>svg{height:.75rem;width:.75rem}.\[\&\>svg\]\:size-3\.5>svg{height:.875rem;width:.875rem}.\[\&\>svg\]\:size-4>svg{height:1rem;width:1rem}.\[\&\>svg\]\:size-5>svg{height:1.25rem;width:1.25rem}.\[\&\>svg\]\:size-6>svg{height:1.5rem;width:1.5rem}.\[\&\>svg\]\:h-3>svg{height:.75rem}.\[\&\>svg\]\:h-4>svg{height:1rem}.\[\&\>svg\]\:h-5>svg{height:1.25rem}.\[\&\>svg\]\:h-6>svg{height:1.5rem}.\[\&\>svg\]\:h-8>svg{height:2rem}.\[\&\>svg\]\:w-3>svg{width:.75rem}.\[\&\>svg\]\:w-4>svg{width:1rem}.\[\&\>svg\]\:w-5>svg{width:1.25rem}.\[\&\>svg\]\:w-6>svg{width:1.5rem}.\[\&\>svg\]\:w-8>svg{width:2rem}.\[\&\>svg\]\:shrink-0>svg{-ms-flex-negative:0;flex-shrink:0}.\[\&_\*\]\:box-border *{box-sizing:border-box}.\[\&_\*\]\:text-sm *{font-size:.875rem}.\[\&_\*\]\:leading-5 *,.\[\&_\*\]\:text-sm *{line-height:1.25rem}.\[\&_\.editor-content\>p\]\:text-sm .editor-content>p{font-size:.875rem;line-height:1.25rem}.\[\&_\.editor-content\>p\]\:text-xs .editor-content>p{font-size:.75rem;line-height:1rem}.\[\&_\.editor-content\>p\]\:font-medium .editor-content>p{font-weight:500}.\[\&_\.editor-content\>p\]\:leading-\[1\.625rem\] .editor-content>p{line-height:1.625rem}.\[\&_\.editor-content\>p\]\:leading-\[1\.6875rem\] .editor-content>p{line-height:1.6875rem}.\[\&_p\]\:m-0 p{margin:0}.\[\&_p\]\:text-badge-color-disabled p{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.\[\&_svg\]\:size-5 svg{height:1.25rem;width:1.25rem} diff --git a/dist/force-ui.js b/dist/force-ui.js index d93926f6..994dc396 100644 --- a/dist/force-ui.js +++ b/dist/force-ui.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["force-ui.[file].js"]=t():e["force-ui.[file].js"]=t()}("undefined"!=typeof self?self:this,(function(){return function(){"use strict";var e={935:function(e,t,n){function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:function(){return i}});var o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=r((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},20:function(e,t,n){var r=n(609),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},848:function(e,t,n){e.exports=n(20)},609:function(e){e.exports=window.React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};n.r(r),n.d(r,{Alert:function(){return Kh},Avatar:function(){return Ue},Badge:function(){return Le},Button:function(){return oe},ButtonGroup:function(){return ni},Checkbox:function(){return _e},Container:function(){return $h},EditorInput:function(){return Ow},Input:function(){return Ge},Label:function(){return Qe},Loader:function(){return nt},ProgressBar:function(){return rt},RadioButton:function(){return Me},Select:function(){return Qf},Skeleton:function(){return Mw},Switch:function(){return de},Tabs:function(){return jf},TextArea:function(){return We},Title:function(){return et},Toaster:function(){return Lh},Tooltip:function(){return Go},toast:function(){return gh}});var o=n(609),i=n.n(o);const s=e=>{const t=u(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),a(n,t)||c(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},a=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?a(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find((({validator:e})=>e(i)))?.classGroupId},l=/^\[(.+)\]$/,c=e=>{if(l.test(e)){const t=l.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},u=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return p(Object.entries(e.classGroups),n).forEach((([e,n])=>{d(n,r,e,t)})),r},d=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return h(e)?void d(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{d(o,f(t,e),n,r)}))}else(""===e?t:f(t,e)).classGroupId=n}))},f=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},h=e=>e.isThemeGetter,p=(e,t)=>t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e,m=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},g=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,s=e=>{const n=[];let s,a=0,l=0;for(let c=0;cl?s-l:void 0}};return n?e=>n({className:e,parseClassName:s}):s},v=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t},y=/\s+/;function b(){let e,t,n=0,r="";for(;n{if("string"==typeof e)return e;let t,n="";for(let r=0;rt(e)),e());return n=(e=>({cache:m(e.cacheSize),parseClassName:g(e),...s(e)}))(c),r=n.cache.get,o=n.cache.set,i=a,a(l)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(y);let a="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t);let f=Boolean(d),h=r(f?u.substring(0,d):u);if(!h){if(!f){a=t+(a.length>0?" "+a:a);continue}if(h=r(u),!h){a=t+(a.length>0?" "+a:a);continue}f=!1}const p=v(l).join(":"),m=c?p+"!":p,g=m+h;if(i.includes(g))continue;i.push(g);const y=o(h,f);for(let e=0;e0?" "+a:a)}return a})(e,n);return o(e,i),i}return function(){return i(b.apply(null,arguments))}}const _=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},S=/^\[(?:([a-z-]+):)?(.+)\]$/i,k=/^\d+\/\d+$/,E=new Set(["px","full","screen"]),C=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,T=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,P=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,R=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,O=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,A=e=>M(e)||E.has(e)||k.test(e),N=e=>H(e,"length",q),M=e=>Boolean(e)&&!Number.isNaN(Number(e)),j=e=>H(e,"number",M),D=e=>Boolean(e)&&Number.isInteger(Number(e)),I=e=>e.endsWith("%")&&M(e.slice(0,-1)),L=e=>S.test(e),F=e=>C.test(e),z=new Set(["length","size","percentage"]),V=e=>H(e,z,Y),B=e=>H(e,"position",Y),W=new Set(["image","url"]),U=e=>H(e,W,G),$=e=>H(e,"",X),K=()=>!0,H=(e,t,n)=>{const r=S.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},q=e=>T.test(e)&&!P.test(e),Y=()=>!1,X=e=>R.test(e),G=e=>O.test(e),J=(Symbol.toStringTag,()=>{const e=_("colors"),t=_("spacing"),n=_("blur"),r=_("brightness"),o=_("borderColor"),i=_("borderRadius"),s=_("borderSpacing"),a=_("borderWidth"),l=_("contrast"),c=_("grayscale"),u=_("hueRotate"),d=_("invert"),f=_("gap"),h=_("gradientColorStops"),p=_("gradientColorStopPositions"),m=_("inset"),g=_("margin"),v=_("opacity"),y=_("padding"),b=_("saturate"),x=_("scale"),w=_("sepia"),S=_("skew"),k=_("space"),E=_("translate"),C=()=>["auto",L,t],T=()=>[L,t],P=()=>["",A,N],R=()=>["auto",M,L],O=()=>["","0",L],z=()=>[M,L];return{cacheSize:500,separator:":",theme:{colors:[K],spacing:[A,N],blur:["none","",F,L],brightness:z(),borderColor:[e],borderRadius:["none","","full",F,L],borderSpacing:T(),borderWidth:P(),contrast:z(),grayscale:O(),hueRotate:z(),invert:O(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[I,N],inset:C(),margin:C(),opacity:z(),padding:T(),saturate:z(),scale:z(),sepia:O(),skew:z(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",L]}],container:["container"],columns:[{columns:[F]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",L]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",D,L]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",L]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",D,L]}],"grid-cols":[{"grid-cols":[K]}],"col-start-end":[{col:["auto",{span:["full",D,L]},L]}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":[K]}],"row-start-end":[{row:["auto",{span:[D,L]},L]}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",L]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",L]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",L,t]}],"min-w":[{"min-w":[L,t,"min","max","fit"]}],"max-w":[{"max-w":[L,t,"none","full","min","max","fit","prose",{screen:[F]},F]}],h:[{h:[L,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[L,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[L,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[L,t,"auto","min","max","fit"]}],"font-size":[{text:["base",F,N]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",j]}],"font-family":[{font:[K]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",L]}],"line-clamp":[{"line-clamp":["none",M,j]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",A,L]}],"list-image":[{"list-image":["none",L]}],"list-style-type":[{list:["none","disc","decimal",L]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",A,N]}],"underline-offset":[{"underline-offset":["auto",A,L]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",B]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",V]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},U]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[A,L]}],"outline-w":[{outline:[A,N]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[A,N]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",F,$]}],"shadow-color":[{shadow:[K]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",F,L]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",L]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",L]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",L]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[D,L]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",L]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",L]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",L]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[A,N,j]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),Z=w(J);function Q(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;tsvg]:h-4 [&>svg]:w-4",sm:"p-2 rounded-sm [&>svg]:h-4 [&>svg]:w-4",md:"p-2.5 rounded-md text-sm [&>svg]:h-5 [&>svg]:w-5",lg:"p-3 rounded-lg text-base [&>svg]:h-6 [&>svg]:w-6"})||void 0===r?void 0:r[c],P=null,R="";w&&(R="flex items-center justify-center gap-1","left"===S?o=w:P=w);var O=h;return i().createElement(O,re({type:d,className:te(R,"border border-solid cursor-pointer transition-colors duration-300 ease-in-out text-xs font-semibold focus:ring-2 focus:ring-toggle-on focus:ring-offset-2 disabled:text-text-disabled",T,E,C,p),disabled:v},k),o,m,P)};let ie=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};var se=["id","onChange","value","defaultValue","size","disabled","label","name"];function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.filter(((e,t,n)=>Boolean(e)&&n.indexOf(e)===t)).join(" ");var he={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const pe=(0,o.forwardRef)((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:a,...l},c)=>(0,o.createElement)("svg",{ref:c,...he,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:fe("lucide",i),...l},[...a.map((([e,t])=>(0,o.createElement)(e,t))),...Array.isArray(s)?s:[s]]))),me=(e,t)=>{const n=(0,o.forwardRef)((({className:n,...r},i)=>{return(0,o.createElement)(pe,{ref:i,iconNode:t,className:fe(`lucide-${s=e,s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var s}));return n.displayName=`${e}`,n},ge=me("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),ve=me("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var ye=["id","label","defaultChecked","checked","onChange","value","indeterminate","disabled","size"];function be(){return be=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nsvg]:h-4 [&>svg]:w-4",sm:"py-2 px-2 text-base gap-1 [&>svg]:h-4 [&>svg]:w-4",md:"py-2.5 px-2.5 text-base gap-1 [&>svg]:h-5 [&>svg]:w-5"}[l],"border-0 border-r border-border-subtle border-solid");return i().createElement(i().Fragment,null,i().createElement("button",Ee({type:"button",id:v,className:te(x,"first:rounded-tl first:rounded-bl first:border-0 first:border-r first:border-border-subtle last:rounded-tr last:rounded-br last:border-0",b&&"bg-button-disabled"),onClick:function(){p&&p(r)},disabled:y},c),i().createElement("input",{type:"hidden",value:r,name:d,checked:b,onChange:p}),n))},Me={Group:function(e){var t,n,r=e.children,s=e.name,a=e.value,l=e.defaultValue,c=e.by,u=void 0===c?"id":c,d=e.as,f=void 0===d?o.Fragment:d,h=e.onChange,p=e.className,m=e.style,g=void 0===m?"simple":m,v=e.disabled,y=void 0!==v&&v,b=(0,o.useMemo)((function(){return void 0!==a}),[a]),x=(0,o.useMemo)((function(){return s||"radio-button-group-".concat(ie())}),[s]),w=(t=(0,o.useState)(b?a:l),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Pe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pe(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),_=w[0],S=w[1],k=(0,o.useCallback)((function(e){var t;t="tile"===g?e:e.target.value,b||S(t),"function"==typeof h&&h(t)}),[h]),E=te("tile"===g?"inline-flex border border-border-subtle border-solid rounded shadow-sm":"flex gap-6",p),C=function(){return i().createElement(Re.Provider,{value:{name:x,value:b?a:_,by:u,onChange:k,isControlled:b,disableAll:y,style:g}},i().Children.map(r,(function(e){return(0,o.isValidElement)(e)?e:null})))};return i().createElement(i().Fragment,null,"tile"===g?i().createElement("div",{className:E},C()):i().createElement(f,f===o.Fragment?{}:{className:p},C()))},Button:(0,o.forwardRef)(Ae)};const je=me("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),De=me("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var Ie=function(e,t){var n=e.label,r=void 0===n?"":n,o=e.size,i=void 0===o?"sm":o,s=e.className,a=void 0===s?"":s,l=e.type,c=void 0===l?"pill":l,u=e.variant,d=void 0===u?"neutral":u,f=e.icon,h=void 0===f?React.createElement(je,null):f,p=e.disabled,m=void 0!==p&&p,g=e.onClose,v=void 0===g?function(){}:g,y=e.closable,b=void 0===y||y,x=e.onMouseDown,w=void 0===x?function(){}:x,_={neutral:"bg-badge-background-gray hover:bg-badge-hover-gray text-badge-color-gray border-badge-border-gray",red:"bg-badge-background-red hover:bg-badge-hover-red text-badge-color-red border-badge-border-red",yellow:"bg-badge-background-yellow hover:bg-badge-hover-yellow text-badge-color-yellow border-badge-border-yellow",green:"bg-badge-background-green hover:bg-badge-hover-green text-badge-color-green border-badge-border-green",blue:"bg-badge-background-sky hover:bg-badge-hover-sky text-badge-color-sky border-badge-border-sky",inverse:"bg-background-inverse hover:bg-badge-hover-inverse text-text-inverse border-background-inverse",disabled:"bg-badge-background-disabled hover:bg-badge-hover-disabled text-badge-color-disabled border-badge-border-disabled disabled cursor-not-allowed"},S="",k="group relative justify-center flex items-center [&>svg]:h-4 [&>svg]:w-4 cursor-pointer";return m?(S=_.disabled,k+=" cursor-not-allowed disabled"):S=_[d],r?React.createElement("span",{className:te("font-medium border border-badge-border-gray flex gap-1 items-center justify-center border border-solid",{xs:"py-0.5 px-1 text-xs",sm:"py-1 px-1.5 text-xs",md:"py-1 px-1.5 text-sm",lg:"py-1 px-1.5 text-base"}[i],{pill:"rounded-full",rounded:"rounded"}[c],S,a),ref:t},h?React.createElement("span",{className:"justify-center flex items-center [&>svg]:h-4 [&>svg]:w-4"},h):null,r,b&&React.createElement("span",{className:k,onClick:m?null:v,onMouseDown:w,role:"button",tabIndex:0},React.createElement("span",{className:"sr-only"},"Remove ".concat(r)),React.createElement(De,null),React.createElement("span",{className:"absolute -inset-1"}))):null},Le=(0,o.forwardRef)(Ie),Fe=["id","defaultValue","value","size","className","disabled","onChange","error","onError"];function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nsvg]:h-3 [&>svg]:w-3 text-xs",sm:"w-6 h-6 [&>svg]:h-4 [&>svg]:w-4 text-sm",md:"w-8 h-8 [&>svg]:h-5 [&>svg]:w-5 text-base",lg:"w-10 h-10 [&>svg]:h-6 [&>svg]:w-6 text-lg"})||void 0===n?void 0:n[l],v=null===(r={none:"",subtle:"border border-solid border-border-transparent-subtle",ring:"border-4 border-solid border-border-white"})||void 0===r?void 0:r[f&&"none"===u?"subtle":u],y=f?"bg-cover bg-center bg-no-repeat":"";return React.createElement("div",{className:te("rounded-full overflow-hidden flex items-center justify-center",!f&&m,g,v,y,p),style:f?{backgroundImage:"url(".concat(f,")")}:{}},h?"string"==typeof h?null==h||null===(o=h[0])||void 0===o?void 0:o.toUpperCase():h:null)};const $e=me("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);var Ke=["id","type","defaultValue","value","size","className","disabled","onChange","error","onError","prefix","suffix"];function He(){return He=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0?M(t[0].name):M(null):t=e.target.value,T||"file"===i||O(t),"function"==typeof g&&g(t))},I="border border-solid border-border-subtle bg-field-secondary-background font-normal placeholder-text-tertiary text-text-primary w-full",L={sm:"px-2 py-2 rounded",md:"px-2.5 py-2.5 rounded-md",lg:"px-3 py-3 rounded-lg"},F={sm:"text-xs",md:"text-base",lg:"text-base"},z={sm:_?"pl-8":"",md:_?"pl-9":"",lg:_?"pl-10":""},V={sm:k?"pr-8":"",md:k?"pr-9":"",lg:k?"pr-10":""},B=p?"hover:border-border-disabled":"hover:border-border-strong",W="focus:border-focus-border focus:ring-2 focus:ring-toggle-on focus:ring-offset-2",U=y?"focus:border-focus-error-border focus:ring-field-color-error bg-field-background-error":"",$=y?"focus:border-focus-error-border focus:ring-field-color-error":"",K=p?"border-border-disabled bg-field-background-disabled cursor-not-allowed text-text-disabled":"",H=p?"border-border-disabled cursor-not-allowed text-text-disabled file:text-text-tertiary":"",q="font-normal placeholder-text-tertiary text-text-primary pointer-events-none absolute inset-y-0 flex flex-1 items-center [&>svg]:h-4 [&>svg]:w-4",Y=p?"font-normal placeholder-text-tertiary text-icon-disabled pointer-events-none absolute inset-y-0 flex flex-1 items-center":"font-normal placeholder-text-tertiary text-field-placeholder pointer-events-none absolute inset-y-0 flex flex-1 items-center",X=N?"file:border-0 file:bg-transparent":"text-text-tertiary file:border-0 file:bg-transparent";return"file"===i?React.createElement("div",{className:te("relative flex focus-within:z-10",f)},React.createElement("input",He({ref:t,id:C,type:"file",className:te(I,H,L[u],F[u],W,B,$,X),disabled:p,onChange:D,onInvalid:x},E)),React.createElement("div",{className:te(Y,"right-0 pr-3",{sm:"[&>svg]:h-4 [&>svg]:w-4",md:"[&>svg]:h-5 [&>svg]:w-5",lg:"[&>svg]:h-6 [&>svg]:w-6"}[u])},React.createElement($e,null))):React.createElement("div",{className:te("relative flex focus-within:z-10",f)},_?React.createElement("div",{className:te(q,"left-0 pl-3",F[u])},_):null,React.createElement("input",He({ref:t,id:C,type:i,className:te(I,K,L[u],F[u],z[u],V[u],W,B,U),disabled:p,onChange:D,onInvalid:x,value:j()},E)),k?React.createElement("div",{className:te(q,"right-0 pr-3",F[u])},k):null)},Ge=(0,o.forwardRef)(Xe),Je=["children","tag","size","className","variant","required"];function Ze(){return Ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t*]:text-xs [&>svg]:h-3 [&>svg]:w-3",sm:"text-sm [&>*]:text-sm [&>svg]:h-4 [&>svg]:w-4",md:"text-base [&>*]:text-base [&>svg]:h-5 [&>svg]:w-5"}[s],{neutral:"text-field-label [&>*]:text-field-label",help:"text-field-helper [&>*]:text-field-helper",error:"text-support-error [&>*]:text-support-error",disabled:"text-field-color-disabled disabled cursor-not-allowed [&>*]:text-field-color-disabled"}[u],p,l)},h),n)},et=function(e){var t=e.title,n=void 0===t?null:t,r=e.description,o=void 0===r?null:r,i=e.icon,s=void 0===i?null:i,a=e.iconPosition,l=void 0===a?"right":a,c=e.tag,u=void 0===c?"h2":c,d=e.size,f=void 0===d?"sm":d,h=e.className,p=void 0===h?"":h,m={xs:"gap-1 [&>svg]:size-3.5",sm:"gap-1 [&>svg]:size-4",md:"gap-1.5 [&>svg]:size-5",lg:"gap-1.5 [&>svg]:size-5"};if(!n)return null;var g=function(){var e=u;return React.createElement(e,{className:te("font-semibold p-0 m-0",{xs:"text-base [&>*]:text-base gap-1",sm:"text-lg [&>*]:text-lg gap-1",md:"text-xl [&>*]:text-xl gap-1.5",lg:"text-2xl [&>*]:text-2xl gap-1.5"}[f])},n)};return o?React.createElement("div",{className:p},React.createElement("div",null,s&&"left"===l&&React.createElement("div",{className:te("flex items-center",m[f])},s,g()),s&&"right"===l&&React.createElement("div",{className:te("flex items-center",m[f])},g(),s),!s&&g()),React.createElement("span",{className:te("text-text-secondary font-normal",{xs:"text-base",sm:"text-lg",md:"text-xl",lg:"text-2xl"}[f])},o)):React.createElement("div",{className:p},s&&"left"===l&&React.createElement("div",{className:te("flex items-center",m[f])},s,g()),s&&"right"===l&&React.createElement("div",{className:te("flex items-center",m[f])},g(),s),!s&&g())};const tt=me("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);var nt=function(e){var t,n,r=e.variant,o=void 0===r?"primary":r,i=e.size,s=void 0===i?"md":i,a=e.icon,l=void 0===a?null:a,c=e.className,u=void 0===c?"":c,d=null===(t={primary:"text-brand-primary-600 bg-background-primary",secondary:"text-background-primary bg-brand-primary-600"})||void 0===t?void 0:t[o],f=null===(n={sm:"[&>svg]:h-4 [&>svg]:w-4",md:"[&>svg]:h-5 [&>svg]:w-5",lg:"[&>svg]:h-6 [&>svg]:w-6",xl:"[&>svg]:h-8 [&>svg]:w-8"})||void 0===n?void 0:n[s];return React.createElement("span",{className:te("flex",f,d,u)},l||React.createElement(tt,{className:"animate-spin"}))},rt=function(e){var t=e.progress,n=void 0===t?0:t,r=e.speed,o=void 0===r?200:r,i=e.className,s=void 0===i?"":i;if(!n)return null;var a=n;n<0&&(a=0),n>100&&(a=100);var l="translateX(-".concat(100-a,"%)"),c="h-2 rounded-full bg-background-brand absolute left-0 top-0 w-full bottom-0 origin-left transition-transform duration-".concat(o," ease-linear");return React.createElement("div",{className:te("h-2 rounded-full bg-misc-progress-background overflow-hidden relative",s),role:"progressbar","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":"100"},React.createElement("div",{className:c,style:{transform:l}}))};function ot(e){return at(e)?(e.nodeName||"").toLowerCase():"#document"}function it(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function st(e){var t;return null==(t=(at(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function at(e){return e instanceof Node||e instanceof it(e).Node}function lt(e){return e instanceof Element||e instanceof it(e).Element}function ct(e){return e instanceof HTMLElement||e instanceof it(e).HTMLElement}function ut(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof it(e).ShadowRoot)}function dt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=vt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ft(e){return["table","td","th"].includes(ot(e))}function ht(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function pt(e){const t=mt(),n=lt(e)?vt(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function mt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function gt(e){return["html","body","#document"].includes(ot(e))}function vt(e){return it(e).getComputedStyle(e)}function yt(e){return lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function bt(e){if("html"===ot(e))return e;const t=e.assignedSlot||e.parentNode||ut(e)&&e.host||st(e);return ut(t)?t.host:t}function xt(e){const t=bt(e);return gt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ct(t)&&dt(t)?t:xt(t)}function wt(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=xt(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=it(o);if(i){const e=_t(s);return t.concat(s,s.visualViewport||[],dt(o)?o:[],e&&n?wt(e):[])}return t.concat(o,wt(o,[],n))}function _t(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function St(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function kt(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ut(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Et(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Ct(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function Tt(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Ot()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Pt(e){return!Ct().includes("jsdom/")&&(!Ot()&&0===e.width&&0===e.height||Ot()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function Rt(){return/apple/i.test(navigator.vendor)}function Ot(){const e=/android/i;return e.test(Et())||e.test(Ct())}function At(){return Et().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Nt(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Mt(e){return(null==e?void 0:e.ownerDocument)||document}function jt(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Dt(e){return"composedPath"in e?e.composedPath()[0]:e.target}const It="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Lt(e){return ct(e)&&e.matches(It)}function Ft(e){e.preventDefault(),e.stopPropagation()}function zt(e){return!!e&&"combobox"===e.getAttribute("role")&&Lt(e)}const Vt=Math.min,Bt=Math.max,Wt=Math.round,Ut=Math.floor,$t=e=>({x:e,y:e}),Kt={left:"right",right:"left",bottom:"top",top:"bottom"},Ht={start:"end",end:"start"};function qt(e,t,n){return Bt(e,Vt(t,n))}function Yt(e,t){return"function"==typeof e?e(t):e}function Xt(e){return e.split("-")[0]}function Gt(e){return e.split("-")[1]}function Jt(e){return"x"===e?"y":"x"}function Zt(e){return"y"===e?"height":"width"}function Qt(e){return["top","bottom"].includes(Xt(e))?"y":"x"}function en(e){return Jt(Qt(e))}function tn(e){return e.replace(/start|end/g,(e=>Ht[e]))}function nn(e){return e.replace(/left|right|bottom|top/g,(e=>Kt[e]))}function rn(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function on(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var sn=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),an="undefined"==typeof Element,ln=an?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,cn=!an&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},un=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},dn=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var s=i.shift();if(!un(s,!1))if("SLOT"===s.tagName){var a=s.assignedElements(),l=e(a.length?a:s.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:s,candidates:l})}else{ln.call(s,sn)&&r.filter(s)&&(n||!t.includes(s))&&o.push(s);var c=s.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(s),u=!un(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(c&&u){var d=e(!0===c?s.children:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:s,candidates:d})}else i.unshift.apply(i,s.children)}}return o},fn=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},hn=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!fn(e)?0:e.tabIndex},pn=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},mn=function(e){return"INPUT"===e.tagName},gn=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},vn=function(e,t){return!(t.disabled||un(t)||function(e){return mn(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=ln.call(e,"details>summary:first-of-type")?e.parentElement:e;if(ln.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return gn(e)}else{if("function"==typeof r){for(var i=e;e;){var s=e.parentElement,a=cn(e);if(s&&!s.shadowRoot&&!0===r(s))return gn(e);e=e.assignedSlot?e.assignedSlot:s||a===e.ownerDocument?s:a.host}e=i}if(function(e){var t,n,r,o,i=e&&cn(e),s=null===(t=i)||void 0===t?void 0:t.host,a=!1;if(i&&i!==e)for(a=!!(null!==(n=s)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(s)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!a&&s;){var l,c,u;a=!(null===(c=s=null===(l=i=cn(s))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(s))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n=0)},xn=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,s=i?t.scopeParent:t,a=function(e,t){var n=hn(e);return n<0&&t&&!fn(e)?0:n}(s,i),l=i?e(t.candidates):s;0===a?i?n.push.apply(n,l):n.push(s):r.push({documentOrder:o,tabIndex:a,item:t,isScope:i,content:l})})),r.sort(pn).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},wn=function(e,t){var n;return n=(t=t||{}).getShadowRoot?dn([e],t.includeContainer,{filter:yn.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:bn}):function(e,t,n){if(un(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(sn));return t&&ln.call(e,sn)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,yn.bind(null,t)),xn(n)},Sn=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==ln.call(e,sn)&&yn(t,e)},kn=window.ReactDOM;function En(e,t,n){let{reference:r,floating:o}=e;const i=Qt(t),s=en(t),a=Zt(s),l=Xt(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Gt(t)){case"start":h[s]-=f*(n&&c?-1:1);break;case"end":h[s]+=f*(n&&c?-1:1)}return h}async function Cn(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=Yt(t,e),p=rn(h),m=a[f?"floating"===d?"reference":"floating":d],g=on(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},x=on(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-x.top+p.top)/b.y,bottom:(x.bottom-g.bottom+p.bottom)/b.y,left:(g.left-x.left+p.left)/b.x,right:(x.right-g.right+p.right)/b.x}}function Tn(e){const t=vt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ct(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Wt(n)!==i||Wt(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Pn(e){return lt(e)?e:e.contextElement}function Rn(e){const t=Pn(e);if(!ct(t))return $t(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Tn(t);let s=(i?Wt(n.width):n.width)/r,a=(i?Wt(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const On=$t(0);function An(e){const t=it(e);return mt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:On}function Nn(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Pn(e);let s=$t(1);t&&(r?lt(r)&&(s=Rn(r)):s=Rn(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==it(e))&&t}(i,n,r)?An(i):$t(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const e=it(i),t=r&<(r)?it(r):r;let n=e,o=_t(n);for(;o&&r&&t!==n;){const e=Rn(o),t=o.getBoundingClientRect(),r=vt(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=s,n=it(o),o=_t(n)}}return on({width:u,height:d,x:l,y:c})}function Mn(e){return Nn(st(e)).left+yt(e).scrollLeft}function jn(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=it(e),r=st(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=mt();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=st(e),n=yt(e),r=e.ownerDocument.body,o=Bt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Bt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Mn(e);const a=-n.scrollTop;return"rtl"===vt(r).direction&&(s+=Bt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(st(e));else if(lt(t))r=function(e,t){const n=Nn(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ct(e)?Rn(e):$t(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=An(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return on(r)}function Dn(e,t){const n=bt(e);return!(n===t||!lt(n)||gt(n))&&("fixed"===vt(n).position||Dn(n,t))}function In(e,t,n){const r=ct(t),o=st(t),i="fixed"===n,s=Nn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=$t(0);if(r||!r&&!i)if(("body"!==ot(t)||dt(o))&&(a=yt(t)),r){const e=Nn(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Mn(o));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Ln(e){return"static"===vt(e).position}function Fn(e,t){return ct(e)&&"fixed"!==vt(e).position?t?t(e):e.offsetParent:null}function zn(e,t){const n=it(e);if(ht(e))return n;if(!ct(e)){let t=bt(e);for(;t&&!gt(t);){if(lt(t)&&!Ln(t))return t;t=bt(t)}return n}let r=Fn(e,t);for(;r&&ft(r)&&Ln(r);)r=Fn(r,t);return r&>(r)&&Ln(r)&&!pt(r)?n:r||function(e){let t=bt(e);for(;ct(t)&&!gt(t);){if(pt(t))return t;if(ht(t))return null;t=bt(t)}return null}(e)||n}const Vn={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=st(r),a=!!t&&ht(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=$t(1);const u=$t(0),d=ct(r);if((d||!d&&!i)&&(("body"!==ot(r)||dt(s))&&(l=yt(r)),ct(r))){const e=Nn(r);c=Rn(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:st,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?ht(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=wt(e,[],!1).filter((e=>lt(e)&&"body"!==ot(e))),o=null;const i="fixed"===vt(e).position;let s=i?bt(e):e;for(;lt(s)&&!gt(s);){const t=vt(s),n=pt(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||dt(s)&&!n&&Dn(e,s))?r=r.filter((e=>e!==s)):o=t,s=bt(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=i[0],a=i.reduce(((e,n)=>{const r=jn(t,n,o);return e.top=Bt(r.top,e.top),e.right=Vt(r.right,e.right),e.bottom=Vt(r.bottom,e.bottom),e.left=Bt(r.left,e.left),e}),jn(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:zn,getElementRects:async function(e){const t=this.getOffsetParent||zn,n=this.getDimensions,r=await n(e.floating);return{reference:In(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Tn(e);return{width:t,height:n}},getScale:Rn,isElement:lt,isRTL:function(e){return"rtl"===vt(e).direction}};function Bn(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Pn(e),u=o||i?[...c?wt(c):[],...wt(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&a?function(e,t){let n,r=null;const o=st(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(a||t(),!d||!f)return;const h={rootMargin:-Ut(u)+"px "+-Ut(o.clientWidth-(c+d))+"px "+-Ut(o.clientHeight-(u+f))+"px "+-Ut(c)+"px",threshold:Bt(0,Vt(1,l))||1};let p=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!p)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}p=!1}try{r=new IntersectionObserver(m,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,h)}r.observe(e)}(!0),i}(c,n):null;let f,h=-1,p=null;s&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),c&&!l&&p.observe(c),p.observe(t));let m=l?Nn(e):null;return l&&function t(){const r=Nn(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(f)}}const Wn=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=Xt(n),a=Gt(n),l="y"===Qt(n),c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,d=Yt(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof p&&(h="end"===a?-1*p:p),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},Un=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Yt(e,t),c={x:n,y:r},u=await Cn(t,l),d=Qt(Xt(o)),f=Jt(d);let h=c[f],p=c[d];if(i){const e="y"===f?"bottom":"right";h=qt(h+u["y"===f?"top":"left"],h,h-u[e])}if(s){const e="y"===d?"bottom":"right";p=qt(p+u["y"===d?"top":"left"],p,p-u[e])}const m=a.fn({...t,[f]:h,[d]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},$n=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=Yt(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Xt(o),y=Qt(a),b=Xt(a)===a,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=f||(b||!m?[nn(a)]:function(e){const t=nn(e);return[tn(e),t,tn(t)]}(a)),_="none"!==p;!f&&_&&w.push(...function(e,t,n,r){const o=Gt(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}(Xt(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(tn)))),i}(a,m,p,x));const S=[a,...w],k=await Cn(t,g),E=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&E.push(k[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Gt(e),o=en(e),i=Zt(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=nn(s)),[s,nn(s)]}(o,s,x);E.push(k[e[0]],k[e[1]])}if(C=[...C,{placement:o,overflows:E}],!E.every((e=>e<=0))){var T,P;const e=((null==(T=i.flip)?void 0:T.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(P=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:P.placement;if(!n)switch(h){case"bestFit":{var R;const e=null==(R=C.filter((e=>{if(_){const t=Qt(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:R[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},Kn=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...a}=Yt(e,t),l=await Cn(t,a),c=Xt(n),u=Gt(n),d="y"===Qt(n),{width:f,height:h}=r.floating;let p,m;"top"===c||"bottom"===c?(p=c,m=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,p="end"===u?"top":"bottom");const g=h-l.top-l.bottom,v=f-l.left-l.right,y=Vt(h-l[p],g),b=Vt(f-l[m],v),x=!t.middlewareData.shift;let w=y,_=b;if(d?_=u||x?Vt(b,v):v:w=u||x?Vt(y,g):g,x&&!u){const e=Bt(l.left,0),t=Bt(l.right,0),n=Bt(l.top,0),r=Bt(l.bottom,0);d?_=f-2*(0!==e||0!==t?e+t:Bt(l.left,l.right)):w=h-2*(0!==n||0!==r?n+r:Bt(l.top,l.bottom))}await s({...t,availableWidth:_,availableHeight:w});const S=await o.getDimensions(i.floating);return f!==S.width||h!==S.height?{reset:{rects:!0}}:{}}}},Hn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Yt(e,t)||{};if(null==c)return{};const d=rn(u),f={x:n,y:r},h=en(o),p=Zt(h),m=await s.getDimensions(c),g="y"===h,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",x=i.reference[p]+i.reference[h]-f[h]-i.floating[p],w=f[h]-i.reference[h],_=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let S=_?_[b]:0;S&&await(null==s.isElement?void 0:s.isElement(_))||(S=a.floating[b]||i.floating[p]);const k=x/2-w/2,E=S/2-m[p]/2-1,C=Vt(d[v],E),T=Vt(d[y],E),P=C,R=S-m[p]-T,O=S/2-m[p]/2+k,A=qt(P,O,R),N=!l.arrow&&null!=Gt(o)&&O!==A&&i.reference[p]/2-(O{const r=new Map,o={platform:Vn,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=En(c,r,l),f=r,h={},p=0;for(let n=0;n{t.current=e})),t}const Qn=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Hn({element:n.current,padding:r}).fn(t):{}:n?Hn({element:n,padding:r}).fn(t):{};var o}}),er=(e,t)=>({...Wn(e),options:[e,t]}),tr=(e,t)=>({...$n(e),options:[e,t]}),nr=(e,t)=>({...Qn(e),options:[e,t]}),rr={...o},or=rr.useInsertionEffect||(e=>e());function ir(e){const t=o.useRef((()=>{}));return or((()=>{t.current=e})),o.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r=e.current.length}function fr(e,t){return pr(e,{disabledIndices:t})}function hr(e,t){return pr(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function pr(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=void 0===t?{}:t;const s=e.current;let a=n;do{a+=r?-i:i}while(a>=0&&a<=s.length-1&&vr(s,a,o));return a}function mr(e,t,n,r,o){if(-1===e)return-1;const i=n.indexOf(e),s=t[e];switch(o){case"tl":return i;case"tr":return s?i+s.width-1:i;case"bl":return s?i+(s.height-1)*r:i;case"br":return n.lastIndexOf(e)}}function gr(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}function vr(e,t,n){if(n)return n.includes(t);const r=e[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}let yr=0;function br(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(yr);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():yr=requestAnimationFrame(i)}var xr="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function wr(){return wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"floating-ui-"+Math.random().toString(36).slice(2,6)+Sr++,Er=rr.useId||function(){const[e,t]=o.useState((()=>_r?kr():void 0));return xr((()=>{null==e&&t(kr())}),[]),o.useEffect((()=>{_r=!0}),[]),e},Cr=o.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:i,shift:s}},width:a=14,height:l=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:d,stroke:f,d:h,style:{transform:p,...m}={},...g}=e,v=Er(),[y,b]=o.useState(!1);if(xr((()=>{r&&"rtl"===vt(r).direction&&b(!0)}),[r]),!r)return null;const[x,w]=n.split("-"),_="top"===x||"bottom"===x;let S=d;(_&&null!=s&&s.x||!_&&null!=s&&s.y)&&(S=null);const k=2*u,E=k/2,C=a/2*(c/-8+1),T=l/2*c/4,P=!!h,R=S&&"end"===w?"bottom":"top";let O=S&&"end"===w?"right":"left";S&&y&&(O="end"===w?"left":"right");const A=null!=(null==i?void 0:i.x)?S||i.x:"",N=null!=(null==i?void 0:i.y)?S||i.y:"",M=h||"M0,0 H"+a+" L"+(a-C)+","+(l-T)+" Q"+a/2+","+l+" "+C+","+(l-T)+" Z",j={top:P?"rotate(180deg)":"",left:P?"rotate(90deg)":"rotate(-90deg)",bottom:P?"":"rotate(180deg)",right:P?"rotate(-90deg)":"rotate(90deg)"}[x];return o.createElement("svg",wr({},g,{"aria-hidden":!0,ref:t,width:P?a:a+k,height:a,viewBox:"0 0 "+a+" "+(l>a?l:a),style:{position:"absolute",pointerEvents:"none",[O]:A,[R]:N,[x]:_||P?"100%":"calc(100% - "+k/2+"px)",transform:""+j+(null!=p?p:""),...m}}),k>0&&o.createElement("path",{clipPath:"url(#"+v+")",fill:"none",stroke:f,strokeWidth:k+(h?0:1),d:M}),o.createElement("path",{stroke:k&&!h?g.fill:"none",d:M}),o.createElement("clipPath",{id:v},o.createElement("rect",{x:-E,y:E*(P?-1:1),width:a+k,height:a})))}));const Tr=o.createContext(null),Pr=o.createContext(null),Rr=()=>{var e;return(null==(e=o.useContext(Tr))?void 0:e.id)||null},Or=()=>o.useContext(Pr);function Ar(e){return"data-floating-ui-"+e}function Nr(e){const t=(0,o.useRef)(e);return xr((()=>{t.current=e})),t}const Mr=Ar("safe-polygon");function jr(e,t,n){return n&&!Nt(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function Dr(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}let Ir=new WeakMap,Lr=new WeakSet,Fr={},zr=0;const Vr=e=>e&&(e.host||Vr(e.parentNode)),Br=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=Vr(t);return e.contains(n)?n:null})).filter((e=>null!=e));function Wr(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=Mt(e[0]).body;return function(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,s=Br(t,e),a=new Set,l=new Set(s),c=[];Fr[o]||(Fr[o]=new WeakMap);const u=Fr[o];return s.forEach((function e(t){t&&!a.has(t)&&(a.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!l.has(t)&&[].forEach.call(t.children,(t=>{if("script"!==ot(t))if(a.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(Ir.get(t)||0)+1,s=(u.get(t)||0)+1;Ir.set(t,r),u.set(t,s),c.push(t),1===r&&n&&Lr.add(t),1===s&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}}))}(t),a.clear(),zr++,()=>{c.forEach((e=>{const t=(Ir.get(e)||0)-1,n=(u.get(e)||0)-1;Ir.set(e,t),u.set(e,n),t||(!Lr.has(e)&&i&&e.removeAttribute(i),Lr.delete(e)),n||e.removeAttribute(o)})),zr--,zr||(Ir=new WeakMap,Ir=new WeakMap,Lr=new WeakSet,Fr={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Ur=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function $r(e,t){const n=wn(e,Ur());"prev"===t&&n.reverse();const r=n.indexOf(St(Mt(e)));return n.slice(r+1)[0]}function Kr(){return $r(document.body,"next")}function Hr(){return $r(document.body,"prev")}function qr(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!kt(n,r)}function Yr(e){wn(e,Ur()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Xr(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const Gr={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Jr(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const Zr=o.forwardRef((function(e,t){const[n,r]=o.useState();xr((()=>(Rt()&&r("button"),document.addEventListener("keydown",Jr),()=>{document.removeEventListener("keydown",Jr)})),[]);const i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[Ar("focus-guard")]:"",style:Gr};return o.createElement("span",wr({},e,i))})),Qr=o.createContext(null),eo=Ar("portal");function to(e){const{children:t,id:n,root:r=null,preserveTabOrder:i=!0}=e,s=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=Er(),i=no(),[s,a]=o.useState(null),l=o.useRef(null);return xr((()=>()=>{null==s||s.remove(),queueMicrotask((()=>{l.current=null}))}),[s]),xr((()=>{if(!r)return;if(l.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(eo,""),e.appendChild(n),l.current=n,a(n)}),[t,r]),xr((()=>{if(!r)return;if(l.current)return;let e=n||(null==i?void 0:i.portalNode);e&&!lt(e)&&(e=e.current),e=e||document.body;let o=null;t&&(o=document.createElement("div"),o.id=t,e.appendChild(o));const s=document.createElement("div");s.id=r,s.setAttribute(eo,""),e=o||e,e.appendChild(s),l.current=s,a(s)}),[t,n,r,i]),s}({id:n,root:r}),[a,l]=o.useState(null),c=o.useRef(null),u=o.useRef(null),d=o.useRef(null),f=o.useRef(null),h=null==a?void 0:a.modal,p=null==a?void 0:a.open,m=!!a&&!a.modal&&a.open&&i&&!(!r&&!s);return o.useEffect((()=>{if(s&&i&&!h)return s.addEventListener("focusin",e,!0),s.addEventListener("focusout",e,!0),()=>{s.removeEventListener("focusin",e,!0),s.removeEventListener("focusout",e,!0)};function e(e){s&&qr(e)&&("focusin"===e.type?Xr:Yr)(s)}}),[s,i,h]),o.useEffect((()=>{s&&(p||Xr(s))}),[p,s]),o.createElement(Qr.Provider,{value:o.useMemo((()=>({preserveTabOrder:i,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:d,afterInsideRef:f,portalNode:s,setFocusManagerState:l})),[i,s])},m&&s&&o.createElement(Zr,{"data-type":"outside",ref:c,onFocus:e=>{if(qr(e,s)){var t;null==(t=d.current)||t.focus()}else{const e=Hr()||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),m&&s&&o.createElement("span",{"aria-owns":s.id,style:Gr}),s&&kn.createPortal(t,s),m&&s&&o.createElement(Zr,{"data-type":"outside",ref:u,onFocus:e=>{if(qr(e,s)){var t;null==(t=f.current)||t.focus()}else{const t=Kr()||(null==a?void 0:a.refs.domReference.current);null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const no=()=>o.useContext(Qr),ro="data-floating-ui-focusable";function oo(e){return e?e.hasAttribute(ro)?e:e.querySelector("["+ro+"]")||e:null}const io=20;let so=[];function ao(e){so=so.filter((e=>e.isConnected));let t=e;if(t&&"body"!==ot(t)){if(!Sn(t,Ur())){const e=wn(t,Ur())[0];e&&(t=e)}so.push(t),so.length>io&&(so=so.slice(-io))}}function lo(){return so.slice().reverse().find((e=>e.isConnected))}const co=o.forwardRef((function(e,t){return o.createElement("button",wr({},e,{type:"button",ref:t,tabIndex:-1,style:Gr}))}));function uo(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],guards:s=!0,initialFocus:a=0,returnFocus:l=!0,restoreFocus:c=!1,modal:u=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:f=!0}=e,{open:h,refs:p,nodeId:m,onOpenChange:g,events:v,dataRef:y,floatingId:b,elements:{domReference:x,floating:w}}=t,_="number"==typeof a&&a<0,S=zt(x)&&_,k=!("undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype)||s,E=Nr(i),C=Nr(a),T=Nr(l),P=Or(),R=no(),O=o.useRef(null),A=o.useRef(null),N=o.useRef(!1),M=o.useRef(!1),j=o.useRef(-1),D=null!=R,I=oo(w),L=ir((function(e){return void 0===e&&(e=I),e?wn(e,Ur()):[]})),F=ir((e=>{const t=L(e);return E.current.map((e=>x&&"reference"===e?x:I&&"floating"===e?I:t)).filter(Boolean).flat()}));function z(e){return!r&&d&&u?o.createElement(co,{ref:"start"===e?O:A,onClick:e=>g(!1,e.nativeEvent)},"string"==typeof d?d:"Dismiss"):null}o.useEffect((()=>{N.current=!1}),[r]),o.useEffect((()=>{if(r)return;if(!u)return;function e(e){if("Tab"===e.key){kt(I,St(Mt(I)))&&0===L().length&&!S&&Ft(e);const t=F(),n=Dt(e);"reference"===E.current[0]&&n===x&&(Ft(e),e.shiftKey?br(t[t.length-1]):br(t[1])),"floating"===E.current[1]&&n===I&&e.shiftKey&&(Ft(e),br(t[0]))}}const t=Mt(I);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[r,x,I,u,E,S,L,F]),o.useEffect((()=>{if(!r&&w)return w.addEventListener("focusin",e),()=>{w.removeEventListener("focusin",e)};function e(e){const t=Dt(e),n=L().indexOf(t);-1!==n&&(j.current=n)}}),[r,w,L]),o.useEffect((()=>{if(!r&&f)return w&&ct(x)?(x.addEventListener("focusout",t),x.addEventListener("pointerdown",e),w.addEventListener("focusout",t),()=>{x.removeEventListener("focusout",t),x.removeEventListener("pointerdown",e),w.removeEventListener("focusout",t)}):void 0;function e(){M.current=!0,setTimeout((()=>{M.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(kt(x,t)||kt(w,t)||kt(t,w)||kt(null==R?void 0:R.portalNode,t)||null!=t&&t.hasAttribute(Ar("focus-guard"))||P&&(Dr(P.nodesRef.current,m).find((e=>{var n,r;return kt(null==(n=e.context)?void 0:n.elements.floating,t)||kt(null==(r=e.context)?void 0:r.elements.domReference,t)}))||function(e,t){var n;let r=[],o=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;o;){const t=e.find((e=>e.id===o));o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(P.nodesRef.current,m).find((e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t}))));if(c&&n&&St(Mt(I))===Mt(I).body){ct(I)&&I.focus();const e=j.current,t=L(),n=t[e]||t[t.length-1]||I;ct(n)&&n.focus()}!S&&u||!t||!n||M.current||t===lo()||(N.current=!0,g(!1,e,"focus-out"))}))}}),[r,x,w,I,u,m,P,R,g,f,c,L,S]),o.useEffect((()=>{var e;if(r)return;const t=Array.from((null==R||null==(e=R.portalNode)?void 0:e.querySelectorAll("["+Ar("portal")+"]"))||[]);if(w){const e=[w,...t,O.current,A.current,E.current.includes("reference")||S?x:null].filter((e=>null!=e)),n=u||S?Wr(e,k,!k):Wr(e);return()=>{n()}}}),[r,x,w,u,E,R,S,k]),xr((()=>{if(r||!ct(I))return;const e=St(Mt(I));queueMicrotask((()=>{const t=F(I),n=C.current,r=("number"==typeof n?t[n]:n.current)||I,o=kt(I,e);_||o||!h||br(r,{preventScroll:r===I})}))}),[r,h,I,_,F,C]),xr((()=>{if(r||!I)return;let e=!1;const t=Mt(I),n=St(t);let o=y.current.openEvent;const i=p.domReference.current;function s(t){let{open:n,reason:r,event:i,nested:s}=t;n&&(o=i),"escape-key"===r&&p.domReference.current&&ao(p.domReference.current),"hover"===r&&"mouseleave"===i.type&&(N.current=!0),"outside-press"===r&&(s?(N.current=!1,e=!0):N.current=!(Tt(i)||Pt(i)))}return ao(n),v.on("openchange",s),()=>{v.off("openchange",s);const r=St(t),a=kt(w,r)||P&&Dr(P.nodesRef.current,m).some((e=>{var t;return kt(null==(t=e.context)?void 0:t.elements.floating,r)}));(a||o&&["click","mousedown"].includes(o.type))&&p.domReference.current&&ao(p.domReference.current);const l=i||n,c=wn(Mt(l).body,Ur());queueMicrotask((()=>{let n=lo();!n&&ct(l)&&w&&(n=function(e,t,n){const r=e.indexOf(t);function o(t){const o=Ar("focus-guard");let i=r+(t?1:0),s=e[i];for(;s&&(!s.isConnected||s.hasAttribute(o)||kt(n,s));)t?i++:i--,s=e[i];return s}return o(!0)||o(!1)}(c,l,w)),T.current&&!N.current&&ct(n)&&(n===r||r===t.body||a)&&n.focus({preventScroll:e})}))}}),[r,w,I,T,y,p,v,P,m]),xr((()=>{if(!r&&R)return R.setFocusManagerState({modal:u,closeOnFocusOut:f,open:h,onOpenChange:g,refs:p}),()=>{R.setFocusManagerState(null)}}),[r,R,u,h,g,p,f]),xr((()=>{if(r)return;if(!I)return;if("function"!=typeof MutationObserver)return;if(_)return;const e=()=>{const e=I.getAttribute("tabindex"),t=L(),n=St(Mt(w)),r=t.indexOf(n);-1!==r&&(j.current=r),E.current.includes("floating")||n!==p.domReference.current&&0===t.length?"0"!==e&&I.setAttribute("tabindex","0"):"-1"!==e&&I.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(I,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[r,w,I,p,E,L,_]);const V=!r&&k&&(!u||!S)&&(D||u);return o.createElement(o.Fragment,null,V&&o.createElement(Zr,{"data-type":"inside",ref:null==R?void 0:R.beforeInsideRef,onFocus:e=>{if(u){const e=F();br("reference"===i[0]?e[0]:e[e.length-1])}else if(null!=R&&R.preserveTabOrder&&R.portalNode)if(N.current=!1,qr(e,R.portalNode)){const e=Kr()||x;null==e||e.focus()}else{var t;null==(t=R.beforeOutsideRef.current)||t.focus()}}}),!S&&z("start"),n,z("end"),V&&o.createElement(Zr,{"data-type":"inside",ref:null==R?void 0:R.afterInsideRef,onFocus:e=>{if(u)br(F()[0]);else if(null!=R&&R.preserveTabOrder&&R.portalNode)if(f&&(N.current=!0),qr(e,R.portalNode)){const e=Hr()||x;null==e||e.focus()}else{var t;null==(t=R.afterOutsideRef.current)||t.focus()}}}))}function fo(e){return ct(e.target)&&"BUTTON"===e.target.tagName}function ho(e){return Lt(e)}function po(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:s}}=e,{enabled:a=!0,event:l="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0}=t,f=o.useRef(),h=o.useRef(!1),p=o.useMemo((()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==l&&(Nt(t,!0)&&u||(!n||!c||i.current.openEvent&&"mousedown"!==i.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===l&&f.current?f.current=void 0:Nt(t,!0)&&u||(!n||!c||i.current.openEvent&&"click"!==i.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!d||fo(e)||(" "!==e.key||ho(s)||(e.preventDefault(),h.current=!0),"Enter"===e.key&&r(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||fo(e)||ho(s)||" "===e.key&&h.current&&(h.current=!1,r(!n||!c,e.nativeEvent,"click"))}})),[i,s,l,u,d,r,n,c]);return o.useMemo((()=>a?{reference:p}:{}),[a,p])}const mo={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},go={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},vo=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function yo(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:s}=e,{enabled:a=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:d=!1,referencePressEvent:f="pointerdown",ancestorScroll:h=!1,bubbles:p,capture:m}=t,g=Or(),v=ir("function"==typeof c?c:()=>!1),y="function"==typeof c?v:c,b=o.useRef(!1),x=o.useRef(!1),{escapeKey:w,outsidePress:_}=vo(p),{escapeKey:S,outsidePress:k}=vo(m),E=ir((e=>{var t;if(!n||!a||!l||"Escape"!==e.key)return;const o=null==(t=s.current.floatingContext)?void 0:t.nodeId,i=g?Dr(g.nodesRef.current,o):[];if(!w&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),C=ir((e=>{var t;const n=()=>{var t;E(e),null==(t=Dt(e))||t.removeEventListener("keydown",n)};null==(t=Dt(e))||t.addEventListener("keydown",n)})),T=ir((e=>{var t;const n=b.current;b.current=!1;const o=x.current;if(x.current=!1,"click"===u&&o)return;if(n)return;if("function"==typeof y&&!y(e))return;const a=Dt(e),l="["+Ar("inert")+"]",c=Mt(i.floating).querySelectorAll(l);let d=lt(a)?a:null;for(;d&&!gt(d);){const e=bt(d);if(gt(e)||!lt(e))break;d=e}if(c.length&<(a)&&!a.matches("html,body")&&!kt(a,i.floating)&&Array.from(c).every((e=>!kt(d,e))))return;if(ct(a)&&O){const t=a.clientWidth>0&&a.scrollWidth>a.clientWidth,n=a.clientHeight>0&&a.scrollHeight>a.clientHeight;let r=n&&e.offsetX>a.clientWidth;if(n&&"rtl"===vt(a).direction&&(r=e.offsetX<=a.offsetWidth-a.clientWidth),r||t&&e.offsetY>a.clientHeight)return}const f=null==(t=s.current.floatingContext)?void 0:t.nodeId,h=g&&Dr(g.nodesRef.current,f).some((t=>{var n;return jt(e,null==(n=t.context)?void 0:n.elements.floating)}));if(jt(e,i.floating)||jt(e,i.domReference)||h)return;const p=g?Dr(g.nodesRef.current,f):[];if(p.length>0){let e=!0;if(p.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),P=ir((e=>{var t;const n=()=>{var t;T(e),null==(t=Dt(e))||t.removeEventListener(u,n)};null==(t=Dt(e))||t.addEventListener(u,n)}));o.useEffect((()=>{if(!n||!a)return;function e(e){r(!1,e,"ancestor-scroll")}s.current.__escapeKeyBubbles=w,s.current.__outsidePressBubbles=_;const t=Mt(i.floating);l&&t.addEventListener("keydown",S?C:E,S),y&&t.addEventListener(u,k?P:T,k);let o=[];return h&&(lt(i.domReference)&&(o=wt(i.domReference)),lt(i.floating)&&(o=o.concat(wt(i.floating))),!lt(i.reference)&&i.reference&&i.reference.contextElement&&(o=o.concat(wt(i.reference.contextElement)))),o=o.filter((e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)})),o.forEach((t=>{t.addEventListener("scroll",e,{passive:!0})})),()=>{l&&t.removeEventListener("keydown",S?C:E,S),y&&t.removeEventListener(u,k?P:T,k),o.forEach((t=>{t.removeEventListener("scroll",e)}))}}),[s,i,l,y,u,n,r,h,a,w,_,E,S,C,T,k,P]),o.useEffect((()=>{b.current=!1}),[y,u]);const R=o.useMemo((()=>({onKeyDown:E,[mo[f]]:e=>{d&&r(!1,e.nativeEvent,"reference-press")}})),[E,r,d,f]),O=o.useMemo((()=>({onKeyDown:E,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[go[u]]:()=>{b.current=!0}})),[E,u]);return o.useMemo((()=>a?{reference:R,floating:O}:{}),[a,R,O])}function bo(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Er(),s=o.useRef({}),[a]=o.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),l=null!=Rr(),[c,u]=o.useState(r.reference),d=ir(((e,t,r)=>{s.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),f=o.useMemo((()=>({setPositionReference:u})),[]),h=o.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return o.useMemo((()=>({dataRef:s,open:t,onOpenChange:d,elements:h,events:a,floatingId:i,refs:f})),[t,d,h,a,i,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[s,a]=o.useState(null),[l,c]=o.useState(null),u=(null==i?void 0:i.reference)||s,d=o.useRef(null),f=Or();xr((()=>{u&&(d.current=u)}),[u]);const h=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:a}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=o.useState(r);Xn(h,r)||p(r);const[m,g]=o.useState(null),[v,y]=o.useState(null),b=o.useCallback((e=>{e!==S.current&&(S.current=e,g(e))}),[]),x=o.useCallback((e=>{e!==k.current&&(k.current=e,y(e))}),[]),w=s||m,_=a||v,S=o.useRef(null),k=o.useRef(null),E=o.useRef(d),C=null!=c,T=Zn(c),P=Zn(i),R=o.useCallback((()=>{if(!S.current||!k.current)return;const e={placement:t,strategy:n,middleware:h};P.current&&(e.platform=P.current),qn(S.current,k.current,e).then((e=>{const t={...e,isPositioned:!0};O.current&&!Xn(E.current,t)&&(E.current=t,kn.flushSync((()=>{f(t)})))}))}),[h,t,n,P]);Yn((()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[u]);const O=o.useRef(!1);Yn((()=>(O.current=!0,()=>{O.current=!1})),[]),Yn((()=>{if(w&&(S.current=w),_&&(k.current=_),w&&_){if(T.current)return T.current(w,_,R);R()}}),[w,_,R,T,C]);const A=o.useMemo((()=>({reference:S,floating:k,setReference:b,setFloating:x})),[b,x]),N=o.useMemo((()=>({reference:w,floating:_})),[w,_]),M=o.useMemo((()=>{const e={position:n,left:0,top:0};if(!N.floating)return e;const t=Jn(N.floating,d.x),r=Jn(N.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...Gn(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,N.floating,d.x,d.y]);return o.useMemo((()=>({...d,update:R,refs:A,elements:N,floatingStyles:M})),[d,R,A,N,M])}({...e,elements:{...i,...l&&{reference:l}}}),p=o.useCallback((e=>{const t=lt(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),h.refs.setReference(t)}),[h.refs]),m=o.useCallback((e=>{(lt(e)||null===e)&&(d.current=e,a(e)),(lt(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!lt(e))&&h.refs.setReference(e)}),[h.refs]),g=o.useMemo((()=>({...h.refs,setReference:m,setPositionReference:p,domReference:d})),[h.refs,m,p]),v=o.useMemo((()=>({...h.elements,domReference:u})),[h.elements,u]),y=o.useMemo((()=>({...h,...r,refs:g,elements:v,nodeId:t})),[h,g,v,t,r]);return xr((()=>{r.dataRef.current.floatingContext=y;const e=null==f?void 0:f.nodesRef.current.find((e=>e.id===t));e&&(e.context=y)})),o.useMemo((()=>({...h,context:y,refs:g,elements:v})),[h,g,v,y])}const xo="active",wo="selected";function _o(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[xo]:t,[wo]:__,...n}=e;i=n}return{..."floating"===n&&{tabIndex:-1,[ro]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var s;o&&[xo,wo].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(s=r.get(n))||s.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;ie(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}function So(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),i=o.useCallback((t=>_o(t,e,"reference")),t),s=o.useCallback((t=>_o(t,e,"floating")),n),a=o.useCallback((t=>_o(t,e,"item")),r);return o.useMemo((()=>({getReferenceProps:i,getFloatingProps:s,getItemProps:a})),[i,s,a])}let ko=!1;function Eo(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Co(e,t){return Eo(t,e===sr||e===ar,e===lr||e===cr)}function To(e,t,n){return Eo(t,e===ar,n?e===lr:e===cr)||"Enter"===e||" "===e||""===e}function Po(e,t,n){return Eo(t,n?e===cr:e===lr,e===sr)}function Ro(e,t){const{open:n,onOpenChange:r,elements:i}=e,{listRef:s,activeIndex:a,onNavigate:l=()=>{},enabled:c=!0,selectedIndex:u=null,allowEscape:d=!1,loop:f=!1,nested:h=!1,rtl:p=!1,virtual:m=!1,focusItemOnOpen:g="auto",focusItemOnHover:v=!0,openOnArrowKeyDown:y=!0,disabledIndices:b,orientation:x="vertical",cols:w=1,scrollItemIntoView:_=!0,virtualItemRef:S,itemSizes:k,dense:E=!1}=t,C=Nr(oo(i.floating)),T=Rr(),P=Or(),R=ir(l),O=o.useRef(g),A=o.useRef(null!=u?u:-1),N=o.useRef(null),M=o.useRef(!0),j=o.useRef(R),D=o.useRef(!!i.floating),I=o.useRef(n),L=o.useRef(!1),F=o.useRef(!1),z=Nr(b),V=Nr(n),B=Nr(_),W=Nr(u),[U,$]=o.useState(),[K,H]=o.useState(),q=ir((function(e,t,n){function r(e){m?($(e.id),null==P||P.events.emit("virtualfocus",e),S&&(S.current=e)):br(e,{preventScroll:!0,sync:!(!At()||!Rt())&&(ko||L.current)})}void 0===n&&(n=!1);const o=e.current[t.current];o&&r(o),requestAnimationFrame((()=>{const i=e.current[t.current]||o;if(!i)return;o||r(i);const s=B.current;s&&X&&(n||!M.current)&&(null==i.scrollIntoView||i.scrollIntoView("boolean"==typeof s?{block:"nearest",inline:"nearest"}:s))}))}));xr((()=>{document.createElement("div").focus({get preventScroll(){return ko=!0,!1}})}),[]),xr((()=>{c&&(n&&i.floating?O.current&&null!=u&&(F.current=!0,A.current=u,R(u)):D.current&&(A.current=-1,j.current(null)))}),[c,n,i.floating,u,R]),xr((()=>{if(c&&n&&i.floating)if(null==a){if(L.current=!1,null!=W.current)return;if(D.current&&(A.current=-1,q(s,A)),(!I.current||!D.current)&&O.current&&(null!=N.current||!0===O.current&&null==N.current)){let e=0;const t=()=>{null==s.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(A.current=null==N.current||To(N.current,x,p)||h?fr(s,z.current):hr(s,z.current),N.current=null,R(A.current))};t()}}else dr(s,a)||(A.current=a,q(s,A,F.current),F.current=!1)}),[c,n,i.floating,a,W,h,s,x,p,R,q,z]),xr((()=>{var e;if(!c||i.floating||!P||m||!D.current)return;const t=P.nodesRef.current,n=null==(e=t.find((e=>e.id===T)))||null==(e=e.context)?void 0:e.elements.floating,r=St(Mt(i.floating)),o=t.some((e=>e.context&&kt(e.context.elements.floating,r)));n&&!o&&M.current&&n.focus({preventScroll:!0})}),[c,i.floating,P,T,m]),xr((()=>{if(c&&P&&m&&!T)return P.events.on("virtualfocus",e),()=>{P.events.off("virtualfocus",e)};function e(e){H(e.id),S&&(S.current=e)}}),[c,P,m,T,S]),xr((()=>{j.current=R,D.current=!!i.floating})),xr((()=>{n||(N.current=null)}),[n]),xr((()=>{I.current=n}),[n]);const Y=null!=a,X=o.useMemo((()=>{function e(e){if(!n)return;const t=s.current.indexOf(e);-1!==t&&R(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...v&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;M.current&&"touch"!==t&&(A.current=-1,q(s,A),R(null),m||br(C.current,{preventScroll:!0}))}}}}),[n,C,q,v,s,R,m]),G=ir((e=>{if(M.current=!1,L.current=!0,!V.current&&e.currentTarget===C.current)return;if(h&&Po(e.key,x,p))return Ft(e),r(!1,e.nativeEvent,"list-navigation"),void(ct(i.domReference)&&!m&&i.domReference.focus());const t=A.current,o=fr(s,b),a=hr(s,b);if("Home"===e.key&&(Ft(e),A.current=o,R(A.current)),"End"===e.key&&(Ft(e),A.current=a,R(A.current)),w>1){const t=k||Array.from({length:s.current.length},(()=>({width:1,height:1}))),n=function(e,t,n){const r=[];let o=0;return e.forEach(((e,i)=>{let{width:s,height:a}=e,l=!1;for(n&&(o=0);!l;){const e=[];for(let n=0;nnull==r[e]))?(e.forEach((e=>{r[e]=i})),l=!0):o++}})),[...r]}(t,w,E),r=n.findIndex((e=>null!=e&&!vr(s.current,e,b))),i=n.reduce(((e,t,n)=>null==t||vr(s.current,t,b)?e:n),-1),l=n[function(e,t){let{event:n,orientation:r,loop:o,cols:i,disabledIndices:s,minIndex:a,maxIndex:l,prevIndex:c,stopEvent:u=!1}=t,d=c;if(n.key===sr){if(u&&Ft(n),-1===c)d=l;else if(d=pr(e,{startingIndex:d,amount:i,decrement:!0,disabledIndices:s}),o&&(c-ie?n:n-i}dr(e,d)&&(d=c)}if(n.key===ar&&(u&&Ft(n),-1===c?d=a:(d=pr(e,{startingIndex:c,amount:i,disabledIndices:s}),o&&c+i>l&&(d=pr(e,{startingIndex:c%i-i,amount:i,disabledIndices:s}))),dr(e,d)&&(d=c)),"both"===r){const t=Ut(c/i);n.key===cr&&(u&&Ft(n),c%i!=i-1?(d=pr(e,{startingIndex:c,disabledIndices:s}),o&&ur(d,i,t)&&(d=pr(e,{startingIndex:c-c%i-1,disabledIndices:s}))):o&&(d=pr(e,{startingIndex:c-c%i-1,disabledIndices:s})),ur(d,i,t)&&(d=c)),n.key===lr&&(u&&Ft(n),c%i!=0?(d=pr(e,{startingIndex:c,decrement:!0,disabledIndices:s}),o&&ur(d,i,t)&&(d=pr(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s}))):o&&(d=pr(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s})),ur(d,i,t)&&(d=c));const r=Ut(l/i)===t;dr(e,d)&&(d=o&&r?n.key===lr?l:pr(e,{startingIndex:c-c%i-1,disabledIndices:s}):c)}return d}({current:n.map((e=>null!=e?s.current[e]:null))},{event:e,orientation:x,loop:f,cols:w,disabledIndices:gr([...b||s.current.map(((e,t)=>vr(s.current,t)?t:void 0)),void 0],n),minIndex:r,maxIndex:i,prevIndex:mr(A.current>a?o:A.current,t,n,w,e.key===ar?"bl":e.key===cr?"tr":"tl"),stopEvent:!0})];if(null!=l&&(A.current=l,R(A.current)),"both"===x)return}if(Co(e.key,x)){if(Ft(e),n&&!m&&St(e.currentTarget.ownerDocument)===e.currentTarget)return A.current=To(e.key,x,p)?o:a,void R(A.current);To(e.key,x,p)?A.current=f?t>=a?d&&t!==s.current.length?-1:o:pr(s,{startingIndex:t,disabledIndices:b}):Math.min(a,pr(s,{startingIndex:t,disabledIndices:b})):A.current=f?t<=o?d&&-1!==t?s.current.length:a:pr(s,{startingIndex:t,decrement:!0,disabledIndices:b}):Math.max(o,pr(s,{startingIndex:t,decrement:!0,disabledIndices:b})),dr(s,A.current)?R(null):R(A.current)}})),J=o.useMemo((()=>m&&n&&Y&&{"aria-activedescendant":K||U}),[m,n,Y,K,U]),Z=o.useMemo((()=>({"aria-orientation":"both"===x?void 0:x,...!zt(i.domReference)&&J,onKeyDown:G,onPointerMove(){M.current=!0}})),[J,G,i.domReference,x]),Q=o.useMemo((()=>{function e(e){"auto"===g&&Tt(e.nativeEvent)&&(O.current=!0)}return{...J,onKeyDown(e){M.current=!1;const t=0===e.key.indexOf("Arrow"),o=function(e,t,n){return Eo(t,n?e===lr:e===cr,e===ar)}(e.key,x,p),i=Po(e.key,x,p),a=Co(e.key,x),l=(h?o:a)||"Enter"===e.key||""===e.key.trim();if(m&&n){const n=null==P?void 0:P.nodesRef.current.find((e=>null==e.parentId)),r=P&&n?function(e,t){let n,r=-1;return function t(o,i){i>r&&(n=o,r=i),Dr(e,o).forEach((e=>{t(e.id,i+1)}))}(t,0),e.find((e=>e.id===n))}(P.nodesRef.current,n.id):null;if(t&&r&&S){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(o||i){var c,d;const n=(null==(c=r.context)?void 0:c.elements.domReference)===e.currentTarget,a=i&&!n?null==(d=r.context)?void 0:d.elements.domReference:o?s.current.find((e=>(null==e?void 0:e.id)===U)):null;a&&(Ft(e),a.dispatchEvent(t),H(void 0))}var f;if(a&&r.context&&r.context.open&&r.parentId&&e.currentTarget!==r.context.elements.domReference)return Ft(e),void(null==(f=r.context.elements.domReference)||f.dispatchEvent(t))}return G(e)}(n||y||!t)&&(l&&(N.current=h&&a?null:e.key),h?o&&(Ft(e),n?(A.current=fr(s,z.current),R(A.current)):r(!0,e.nativeEvent,"list-navigation")):a&&(null!=u&&(A.current=u),Ft(e),!n&&y?r(!0,e.nativeEvent,"list-navigation"):G(e),n&&R(A.current)))},onFocus(){n&&!m&&R(null)},onPointerDown:function(e){O.current=g,"auto"===g&&Pt(e.nativeEvent)&&(O.current=!0)},onMouseDown:e,onClick:e}}),[U,J,G,z,g,s,h,R,r,n,y,x,p,u,P,m,S]);return o.useMemo((()=>c?{reference:Q,floating:Z,item:X}:{}),[c,Q,Z,X])}const Oo=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Ao(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:i}=e,{enabled:s=!0,role:a="dialog"}=t,l=null!=(n=Oo.get(a))?n:a,c=Er(),u=null!=Rr(),d=o.useMemo((()=>"tooltip"===l||"label"===a?{["aria-"+("label"===a?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":r?i:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:c},..."menu"===l&&u&&{role:"menuitem"},..."select"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}}),[l,i,u,r,c,a]),f=o.useMemo((()=>{const e={id:i,...l&&{role:l}};return"tooltip"===l||"label"===a?e:{...e,..."menu"===l&&{"aria-labelledby":c}}}),[l,i,c,a]),h=o.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:i+"-option"}};switch(a){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[i,a]);return o.useMemo((()=>s?{reference:d,floating:f,item:h}:{}),[s,d,f,h])}const No=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function Mo(e,t){return"function"==typeof e?e(t):e}function jo(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,s=i-1;e=r!=c>=r&&n<=(l-i)*(r-a)/(c-a)+i&&(o=!o)}return o}function Do(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,s=null,a=null,l=performance.now();const c=e=>{let{x:n,y:c,placement:u,elements:d,onClose:f,nodeId:h,tree:p}=e;return function(e){function m(){clearTimeout(o),f()}if(clearTimeout(o),!d.domReference||!d.floating||null==u||null==n||null==c)return;const{clientX:g,clientY:v}=e,y=[g,v],b=Dt(e),x="mouseleave"===e.type,w=kt(d.floating,b),_=kt(d.domReference,b),S=d.domReference.getBoundingClientRect(),k=d.floating.getBoundingClientRect(),E=u.split("-")[0],C=n>k.right-k.width/2,T=c>k.bottom-k.height/2,P=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(y,S),R=k.width>S.width,O=k.height>S.height,A=(R?S:k).left,N=(R?S:k).right,M=(O?S:k).top,j=(O?S:k).bottom;if(w&&(i=!0,!x))return;if(_&&(i=!1),_&&!x)return void(i=!0);if(x&<(e.relatedTarget)&&kt(d.floating,e.relatedTarget))return;if(p&&Dr(p.nodesRef.current,h).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===E&&c>=S.bottom-1||"bottom"===E&&c<=S.top+1||"left"===E&&n>=S.right-1||"right"===E&&n<=S.left+1)return m();let D=[];switch(E){case"top":D=[[A,S.top+1],[A,k.bottom-1],[N,k.bottom-1],[N,S.top+1]];break;case"bottom":D=[[A,k.top+1],[A,S.bottom-1],[N,S.bottom-1],[N,k.top+1]];break;case"left":D=[[k.right-1,j],[k.right-1,M],[S.left+1,M],[S.left+1,j]];break;case"right":D=[[S.right-1,j],[S.right-1,M],[k.left+1,M],[k.left+1,j]]}if(!jo([g,v],D)){if(i&&!P)return m();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===s||null===a||0===r)return s=e,a=t,l=n,null;const o=e-s,i=t-a,c=Math.sqrt(o*o+i*i);return s=e,a=t,l=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return m()}jo([g,v],function(e){let[n,r]=e;switch(E){case"top":return[[R?n+t/2:C?n+4*t:n-4*t,r+t+1],[R?n-t/2:C?n+4*t:n-4*t,r+t+1],[k.left,C||R?k.bottom-t:k.top],[k.right,C?R?k.bottom-t:k.top:k.bottom-t]];case"bottom":return[[R?n+t/2:C?n+4*t:n-4*t,r-t],[R?n-t/2:C?n+4*t:n-4*t,r-t],[k.left,C||R?k.top+t:k.bottom],[k.right,C?R?k.top+t:k.bottom:k.top+t]];case"left":{const e=[n+t+1,O?r+t/2:T?r+4*t:r-4*t],o=[n+t+1,O?r-t/2:T?r+4*t:r-4*t];return[[T||O?k.right-t:k.left,k.top],[T?O?k.right-t:k.left:k.right-t,k.bottom],e,o]}case"right":return[[n-t,O?r+t/2:T?r+4*t:r-4*t],[n-t,O?r-t/2:T?r+4*t:r-4*t],[T||O?k.left+t:k.right,k.top],[T?O?k.left+t:k.right:k.left+t,k.bottom]]}}([n,c]))?!i&&r&&(o=window.setTimeout(m,40)):m()}}};return c.__options={blockPointerEvents:n},c}const Io=me("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),Lo=me("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);var Fo="light",zo=function(e){var t=e.icon,n=void 0===t?null:t,r=e.theme,i=void 0===r?Fo:r,s=e.variant,a=void 0===s?"neutral":s,l="[&>svg]:h-5 [&>svg]:w-5",c="light"===i?"text-icon-secondary":"text-icon-inverse";if(n&&(0,o.isValidElement)(n))return{updatedIcon:(0,o.cloneElement)(n,{className:te(l,c,n.props.className)})};switch(a){case"neutral":return React.createElement(je,{className:te(l,c)});case"info":var u="light"===i?"text-support-info":"text-support-info-inverse";return React.createElement(je,{className:te(l,u)});case"success":var d="light"===i?"text-support-success":"text-support-success-inverse";return React.createElement(ve,{className:te(l,d)});case"warning":var f="light"===i?"text-support-warning":"text-support-warning-inverse";return React.createElement(Io,{className:te(l,f)});case"error":var h="light"===i?"text-support-error":"text-support-error-inverse";return React.createElement(Lo,{className:te(l,h)});default:return null}},Vo=function(e){var t=e.actionType,n=void 0===t?"button":t,r=e.onAction,o=void 0===r?function(){}:r,i=e.actionLabel,s=void 0===i?"":i,a=e.theme,l=void 0===a?Fo:a,c="focus:ring-0 focus:ring-offset-0 ring-offset-0 focus:outline-none",u="text-button-primary border-button-primary hover:border-button-primary hover:text-button-primary-hover";switch("dark"===l&&(u="text-text-inverse border-text-inverse hover:border-text-inverse hover:text-text-inverse"),n){case"button":return React.createElement(oe,{variant:"outline",size:"xs",onClick:o,className:te("rounded",c,u,"dark"===l?"bg-transparent hover:bg-transparent":"bg-white hover:bg-white")},s);case"link":return React.createElement(oe,{variant:"link",size:"xs",onClick:o,className:te(c,u)},s);default:return null}},Bo=function(e){var t=e.theme,n=void 0===t?Fo:t,r=e.title,o=void 0===r?"":r;return!o&&isNaN(o)?null:React.createElement("span",{className:te("block",{light:"text-text-primary",dark:"text-text-inverse"}[n],"text-sm leading-5 font-semibold")},o)},Wo=function(e){var t=e.theme,n=void 0===t?Fo:t,r=e.content,o=void 0===r?"":r;return!o&&isNaN(o)?null:React.createElement("span",{className:te({light:"text-text-primary",dark:"text-text-inverse"}[n],"block text-sm [&_*]:text-sm leading-5 [&_*]:leading-5 font-normal")},o)},Uo=function(){for(var e=arguments.length,t=new Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n{})),C=o.useCallback((()=>{var e;const t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[i]);o.useEffect((()=>{if(l)return s.on("openchange",e),()=>{s.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(x.current),clearTimeout(_.current),S.current=!0)}}),[l,s]),o.useEffect((()=>{if(!l)return;if(!g.current)return;if(!n)return;function e(e){C()&&r(!1,e,"hover")}const t=Mt(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a.floating,n,r,l,g,C]);const T=o.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=jr(v.current,"close",b.current);o&&!w.current?(clearTimeout(x.current),x.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(x.current),r(!1,e,n))}),[v,r]),P=ir((()=>{E.current(),w.current=void 0})),R=ir((()=>{if(k.current){const e=Mt(a.floating).body;e.style.pointerEvents="",e.removeAttribute(Mr),k.current=!1}}));o.useEffect((()=>{if(l&<(a.domReference)){var e;const t=a.domReference;return n&&t.addEventListener("mouseleave",c),null==(e=a.floating)||e.addEventListener("mouseleave",c),h&&t.addEventListener("mousemove",o,{once:!0}),t.addEventListener("mouseenter",o),t.addEventListener("mouseleave",s),()=>{var e;n&&t.removeEventListener("mouseleave",c),null==(e=a.floating)||e.removeEventListener("mouseleave",c),h&&t.removeEventListener("mousemove",o),t.removeEventListener("mouseenter",o),t.removeEventListener("mouseleave",s)}}function t(){return!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type)}function o(e){if(clearTimeout(x.current),S.current=!1,d&&!Nt(b.current)||f>0&&!jr(v.current,"open"))return;const t=jr(v.current,"open",b.current);t?x.current=window.setTimeout((()=>{y.current||r(!0,e,"hover")}),t):r(!0,e,"hover")}function s(e){if(t())return;E.current();const r=Mt(a.floating);if(clearTimeout(_.current),g.current&&i.current.floatingContext){n||clearTimeout(x.current),w.current=g.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){R(),P(),T(e,!0,"safe-polygon")}});const t=w.current;return r.addEventListener("mousemove",t),void(E.current=()=>{r.removeEventListener("mousemove",t)})}("touch"!==b.current||!kt(a.floating,e.relatedTarget))&&T(e)}function c(e){t()||i.current.floatingContext&&(null==g.current||g.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){R(),P(),T(e)}})(e))}}),[a,l,e,d,f,h,T,P,R,r,n,y,p,v,g,i]),xr((()=>{var e;if(l&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&C()){k.current=!0;const e=a.floating;if(lt(a.domReference)&&e){var t;const n=Mt(a.floating).body;n.setAttribute(Mr,"");const r=a.domReference,o=null==p||null==(t=p.nodesRef.current.find((e=>e.id===m)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[l,n,m,a,p,g,C]),xr((()=>{n||(b.current=void 0,P(),R())}),[n,P,R]),o.useEffect((()=>()=>{P(),clearTimeout(x.current),clearTimeout(_.current),R()}),[l,a.domReference,P,R]);const O=o.useMemo((()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){S.current||y.current||r(!0,t,"hover")}d&&!Nt(b.current)||n||0===f||(clearTimeout(_.current),"touch"===b.current?o():_.current=window.setTimeout(o,f))}}}),[d,r,n,y,f]),A=o.useMemo((()=>({onMouseEnter(){clearTimeout(x.current)},onMouseLeave(e){T(e.nativeEvent,!1)}})),[T]);return o.useMemo((()=>l?{reference:O,floating:A}:{}),[l,O,A])}(W,qo({move:!1,enabled:!j&&A.includes("hover")},M&&{handleClose:Do()})),K=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:s,elements:a}=e,{enabled:l=!0,visibleOnly:c=!0}=t,u=o.useRef(!1),d=o.useRef(),f=o.useRef(!0);o.useEffect((()=>{if(!l)return;const e=it(a.domReference);function t(){!n&&ct(a.domReference)&&a.domReference===St(Mt(a.domReference))&&(u.current=!0)}function r(){f.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[a.domReference,n,l]),o.useEffect((()=>{if(l)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(u.current=!0)}}),[i,l]),o.useEffect((()=>()=>{clearTimeout(d.current)}),[]);const h=o.useMemo((()=>({onPointerDown(e){Pt(e.nativeEvent)||(f.current=!1)},onMouseLeave(){u.current=!1},onFocus(e){if(u.current)return;const t=Dt(e.nativeEvent);if(c&<(t))try{if(Rt()&&At())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!f.current&&!Lt(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){u.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=lt(t)&&t.hasAttribute(Ar("focus-guard"))&&"outside"===t.getAttribute("data-type");d.current=window.setTimeout((()=>{var e;const i=St(a.domReference?a.domReference.ownerDocument:document);(t||i!==a.domReference)&&(kt(null==(e=s.current.floatingContext)?void 0:e.refs.floating.current,i)||kt(a.domReference,i)||o||r(!1,n,"focus"))}))}})),[s,a.domReference,r,c]);return o.useMemo((()=>l?{reference:h}:{}),[l,h])}(W,{enabled:!j&&A.includes("focus")}),H=So([U,$,K,yo(W),Ao(W,{role:"tooltip"})]),q=H.getReferenceProps,Y=H.getFloatingProps,X=function(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:r,close:i,common:s,duration:a=250}=t,l=e.placement,c=l.split("-")[0],u=o.useMemo((()=>({side:c,placement:l})),[c,l]),d="number"==typeof a,f=(d?a:a.open)||0,h=(d?a:a.close)||0,[p,m]=o.useState((()=>({...Mo(s,u),...Mo(n,u)}))),{isMounted:g,status:v}=function(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,s=("number"==typeof i?i:i.close)||0,[a,l]=o.useState("unmounted"),c=function(e,t){const[n,r]=o.useState(e);return e&&!n&&r(!0),o.useEffect((()=>{if(!e&&n){const e=setTimeout((()=>r(!1)),t);return()=>clearTimeout(e)}}),[e,n,t]),n}(n,s);return c||"close"!==a||l("unmounted"),xr((()=>{if(r){if(n){l("initial");const e=requestAnimationFrame((()=>{l("open")}));return()=>{cancelAnimationFrame(e)}}l("close")}}),[n,r]),{isMounted:c,status:a}}(e,{duration:a}),y=Nr(n),b=Nr(r),x=Nr(i),w=Nr(s);return xr((()=>{const e=Mo(y.current,u),t=Mo(x.current,u),n=Mo(w.current,u),r=Mo(b.current,u)||Object.keys(e).reduce(((e,t)=>(e[t]="",e)),{});if("initial"===v&&m((t=>({transitionProperty:t.transitionProperty,...n,...e}))),"open"===v&&m({transitionProperty:Object.keys(r).map(No).join(","),transitionDuration:f+"ms",...n,...r}),"close"===v){const r=t||e;m({transitionProperty:Object.keys(r).map(No).join(","),transitionDuration:h+"ms",...n,...r})}}),[h,x,y,b,w,f,v,u]),{isMounted:g,styles:p}}(W,{duration:150,initial:{opacity:0},open:{opacity:1},close:{opacity:0}}),G=X.isMounted,J=X.styles,Z=null===(t={light:"bg-tooltip-background-light text-text-primary",dark:"bg-tooltip-background-dark text-text-on-color"})||void 0===t?void 0:t[l],Q="dark"===l?"text-tooltip-background-dark":"text-tooltip-background-light";return i().createElement(i().Fragment,null,(0,o.isValidElement)(y)&&(0,o.cloneElement)(y,qo(qo({},y.props),{},{ref:Uo(y.ref,V.setReference),className:te(y.props.className)},q())),i().createElement(to,{id:S,root:w},G&&i().createElement("div",Ko({className:te("absolute z-20 py-2 px-3 rounded-md text-xs leading-4 shadow-soft-shadow-lg",Z,"max-w-80 w-fit",b),ref:V.setFloating,style:qo(qo({},B),J)},Y()),i().createElement("div",null,!!f&&i().createElement("span",{className:"font-semibold"},f),!!h&&i().createElement("div",{className:"font-normal"},h)),m&&i().createElement(Cr,{ref:F,context:W,placement:u,className:te("fill-current",Q)}))))},Jo=["slug","text","icon","className","disabled","isFirstChild","isLastChild"];function Zo(){return Zo=Object.assign?Object.assign.bind():function(e){for(var t=1;tsvg]:h-4 [&>svg]:w-4",sm:"py-2 px-2 text-base gap-1 [&>svg]:h-4 [&>svg]:w-4",md:"py-2.5 px-2.5 text-base gap-1 [&>svg]:h-5 [&>svg]:w-5"}[g],"border-0 border-r border-border-subtle border-solid",p===r?"bg-button-disabled":"",d?"rounded-tl rounded-bl border-0 border-r border-border-subtle":"",f?"rounded-tr rounded-br border-0":"",l);return i().createElement("button",Zo({ref:t,className:y,disabled:u,onClick:function(e){m(e,{slug:r,text:s})}},h),"left"===v&&a&&i().createElement("span",{className:"mr-1"},a),s,"right"===v&&a&&i().createElement("span",{className:"ml-1"},a))},ti={Group:function(e){var t=e.children,n=e.activeItem,r=void 0===n?null:n,s=e.onChange,a=e.className,l=e.size,c=void 0===l?"md":l,u=e.iconPosition,d=void 0===u?"left":u,f=(0,o.useCallback)((function(e,t){s&&s({event:e,value:t})}),[s]),h=te("box-border flex border border-border-subtle border-solid rounded",a);return i().createElement("div",{className:h},i().createElement(Qo.Provider,{value:{activeItem:r,onChange:f,size:c,iconPosition:d}},i().Children.map(t,(function(e,n){if(!(0,o.isValidElement)(e))return null;var r=0===n,s=n===i().Children.count(t)-1;return i().cloneElement(e,{index:n,isFirstChild:r,isLastChild:s})}))))},Button:(0,o.forwardRef)(ei)},ni=ti;function ri(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy(e,{get:(n,r)=>(t.has(r)||t.set(r,e(r)),t.get(r))})}function oi(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const ii=e=>Array.isArray(e);function si(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function ci(e,t,n,r){if("function"==typeof t){const[o,i]=li(r);t=t(void 0!==n?n:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=li(r);t=t(void 0!==n?n:e.custom,o,i)}return t}function ui(e,t,n){const r=e.getProps();return ci(r,t,void 0!==n?n:r.custom,e)}const di=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],fi=["initial",...di],hi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],pi=new Set(hi),mi=e=>1e3*e,gi=e=>e/1e3,vi={type:"spring",stiffness:500,damping:25,restSpeed:10},yi={type:"keyframes",duration:.8},bi={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},xi=(e,{keyframes:t})=>t.length>2?yi:pi.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:vi:bi;function wi(e,t){return e[t]||e.default||e}const _i=e=>null!==e;function Si(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(_i),i=t&&"loop"!==n&&t%2==1?0:o.length-1;return i&&void 0!==r?r:o[i]}const ki=e=>e,Ei=["read","resolveKeyframes","update","preRender","render","postRender"];function Ci(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Ei.reduce(((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(t){i.has(t)&&(l.schedule(t),e()),t(s)}const l={schedule:(e,o=!1,s=!1)=>{const a=s&&r?t:n;return o&&i.add(e),a.has(e)||a.add(e),e},cancel:e=>{n.delete(e),i.delete(e)},process:e=>{s=e,r?o=!0:(r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,o&&(o=!1,l.process(e)))}};return l}(i),e)),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=s,h=()=>{const i=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(h))};return{schedule:Ei.reduce(((t,i)=>{const a=s[i];return t[i]=(t,i=!1,s=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(h)),a.schedule(t,i,s)),t}),{}),cancel:e=>{for(let t=0;t/^0[^.\s]+$/u.test(e);let Ni=ki,Mi=ki;const ji=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Di=e=>t=>"string"==typeof t&&t.startsWith(e),Ii=Di("--"),Li=Di("var(--"),Fi=e=>!!Li(e)&&zi.test(e.split("/*")[0].trim()),zi=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Vi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Bi(e,t,n=1){Mi(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=Vi.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${null!=n?n:r}`,o]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return ji(e)?parseFloat(e):e}return Fi(o)?Bi(o,t,n+1):o}const Wi=(e,t,n)=>n>t?t:n"number"==typeof e,parse:parseFloat,transform:e=>e},$i={...Ui,transform:e=>Wi(0,1,e)},Ki={...Ui,default:1},Hi=e=>Math.round(1e5*e)/1e5,qi=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Yi=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Xi=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Gi(e){return"string"==typeof e}const Ji=e=>({test:t=>Gi(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Zi=Ji("deg"),Qi=Ji("%"),es=Ji("px"),ts=Ji("vh"),ns=Ji("vw"),rs={...Qi,parse:e=>Qi.parse(e)/100,transform:e=>Qi.transform(100*e)},os=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),is=e=>e===Ui||e===es,ss=(e,t)=>parseFloat(e.split(", ")[t]),as=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return ss(o[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?ss(t[1],e):0}},ls=new Set(["x","y","z"]),cs=hi.filter((e=>!ls.has(e))),us={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:as(4,13),y:as(5,14)};us.translateX=us.x,us.translateY=us.y;const ds=e=>t=>t.test(e),fs=[Ui,es,Qi,Zi,ns,ts,{test:e=>"auto"===e,parse:e=>e}],hs=e=>fs.find(ds(e)),ps=new Set;let ms=!1,gs=!1;function vs(){if(gs){const e=Array.from(ps).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return cs.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}gs=!1,ms=!1,ps.forEach((e=>e.complete())),ps.clear()}function ys(){ps.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(gs=!0)}))}class bs{constructor(e,t,n,r,o,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ps.add(this),ms||(ms=!0,Ti.read(ys),Ti.resolveKeyframes(vs))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let o=0;on=>Boolean(Gi(n)&&Xi.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),ws=(e,t,n)=>r=>{if(!Gi(r))return r;const[o,i,s,a]=r.match(qi);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},_s={...Ui,transform:e=>Math.round((e=>Wi(0,255,e))(e))},Ss={test:xs("rgb","red"),parse:ws("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+_s.transform(e)+", "+_s.transform(t)+", "+_s.transform(n)+", "+Hi($i.transform(r))+")"},ks={test:xs("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Ss.transform},Es={test:xs("hsl","hue"),parse:ws("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Qi.transform(Hi(t))+", "+Qi.transform(Hi(n))+", "+Hi($i.transform(r))+")"},Cs={test:e=>Ss.test(e)||ks.test(e)||Es.test(e),parse:e=>Ss.test(e)?Ss.parse(e):Es.test(e)?Es.parse(e):ks.parse(e),transform:e=>Gi(e)?e:e.hasOwnProperty("red")?Ss.transform(e):Es.transform(e)},Ts="number",Ps="color",Rs="var",Os="var(",As="${}",Ns=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ms(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(Ns,(e=>(Cs.test(e)?(r.color.push(i),o.push(Ps),n.push(Cs.parse(e))):e.startsWith(Os)?(r.var.push(i),o.push(Rs),n.push(e)):(r.number.push(i),o.push(Ts),n.push(parseFloat(e))),++i,As))).split(As);return{values:n,split:s,indexes:r,types:o}}function js(e){return Ms(e).values}function Ds(e){const{split:t,types:n}=Ms(e),r=t.length;return e=>{let o="";for(let i=0;i"number"==typeof e?0:e,Ls={test:function(e){var t,n;return isNaN(e)&&Gi(e)&&((null===(t=e.match(qi))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Yi))||void 0===n?void 0:n.length)||0)>0},parse:js,createTransformer:Ds,getAnimatableNone:function(e){const t=js(e);return Ds(e)(t.map(Is))}},Fs=new Set(["brightness","contrast","saturate","opacity"]);function zs(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(qi)||[];if(!r)return e;const o=n.replace(r,"");let i=Fs.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Vs=/\b([a-z-]*)\(.*?\)/gu,Bs={...Ls,getAnimatableNone:e=>{const t=e.match(Vs);return t?t.map(zs).join(" "):e}},Ws={...Ui,transform:Math.round},Us={borderWidth:es,borderTopWidth:es,borderRightWidth:es,borderBottomWidth:es,borderLeftWidth:es,borderRadius:es,radius:es,borderTopLeftRadius:es,borderTopRightRadius:es,borderBottomRightRadius:es,borderBottomLeftRadius:es,width:es,maxWidth:es,height:es,maxHeight:es,size:es,top:es,right:es,bottom:es,left:es,padding:es,paddingTop:es,paddingRight:es,paddingBottom:es,paddingLeft:es,margin:es,marginTop:es,marginRight:es,marginBottom:es,marginLeft:es,rotate:Zi,rotateX:Zi,rotateY:Zi,rotateZ:Zi,scale:Ki,scaleX:Ki,scaleY:Ki,scaleZ:Ki,skew:Zi,skewX:Zi,skewY:Zi,distance:es,translateX:es,translateY:es,translateZ:es,x:es,y:es,z:es,perspective:es,transformPerspective:es,opacity:$i,originX:rs,originY:rs,originZ:es,zIndex:Ws,backgroundPositionX:es,backgroundPositionY:es,fillOpacity:$i,strokeOpacity:$i,numOctaves:Ws},$s={...Us,color:Cs,backgroundColor:Cs,outlineColor:Cs,fill:Cs,stroke:Cs,borderColor:Cs,borderTopColor:Cs,borderRightColor:Cs,borderBottomColor:Cs,borderLeftColor:Cs,filter:Bs,WebkitFilter:Bs},Ks=e=>$s[e];function Hs(e,t){let n=Ks(e);return n!==Bs&&(n=Ls),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const qs=new Set(["auto","none","0"]);class Ys extends bs{constructor(e,t,n,r,o){super(e,t,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}function Xs(e){let t;return()=>(void 0===t&&(t=e()),t)}let Gs;function Js(){Gs=void 0}const Zs={now:()=>(void 0===Gs&&Zs.set(Ri.isProcessing?Ri.timestamp:performance.now()),Gs),set:e=>{Gs=e,queueMicrotask(Js)}},Qs=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!Ls.test(e)&&"0"!==e||e.startsWith("url(")));class ea{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Zs.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:i,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(ys(),vs()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=Zs.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:o,delay:i,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],s=Qs(o,t),a=Qs(i,t);return Ni(s===a,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!(!s||!a)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n{this.resolveFinishedPromise=e}))}}function ta(e,t){return t?e*(1e3/t):0}const na=5;function ra(e,t,n){const r=Math.max(t-na,0);return ta(n-e(r),t-r)}const oa=.001,ia=.01,sa=10,aa=.05,la=1;const ca=12;function ua(e,t){return e*Math.sqrt(1-t*t)}const da=["duration","bounce"],fa=["stiffness","damping","mass"];function ha(e,t){return t.some((t=>void 0!==e[t]))}function pa({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:c,duration:u,velocity:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ha(e,fa)&&ha(e,da)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Ni(e<=mi(sa),"Spring duration must be 10 seconds or less");let s=1-t;s=Wi(aa,la,s),e=Wi(ia,sa,gi(e)),s<1?(o=t=>{const r=t*s,o=r*e,i=r-n,a=ua(t,s),l=Math.exp(-o);return oa-i/a*l},i=t=>{const r=t*s*e,i=r*n+n,a=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=ua(Math.pow(t,2),s);return(-o(t)+oa>0?-1:1)*((i-a)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-oa,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let n=1;n{const n=Math.exp(-p*g*t);return i-n*((h+p*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===p)y=e=>i-Math.exp(-g*e)*(m+(h+g*m)*e);else{const e=g*Math.sqrt(p*p-1);y=t=>{const n=Math.exp(-p*g*t),r=Math.min(e*t,300);return i-n*((h+p*g*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}return{calculatedDuration:f&&u||null,next:e=>{const r=y(e);if(f)s.done=e>=u;else{let o=0;p<1&&(o=0===e?mi(h):ra(y,e,r));const a=Math.abs(o)<=n,l=Math.abs(i-r)<=t;s.done=a&&l}return s.value=s.done?i:r,s}}}function ma({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},h=e=>void 0===a?l:void 0===l||Math.abs(a-e)-p*Math.exp(-e/r),y=e=>g+v(e),b=e=>{const t=v(e),n=y(e);f.done=Math.abs(t)<=c,f.value=f.done?g:n};let x,w;const _=e=>{(e=>void 0!==a&&el)(f.value)&&(x=e,w=pa({keyframes:[f.value,h(f.value)],velocity:ra(y,e,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return _(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==x||(t=!0,b(e),_(e)),void 0!==x&&e>=x?w.next(e-x):(!t&&b(e),f)}}}const ga=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function va(e,t,n,r){if(e===t&&n===r)return ki;return o=>0===o||1===o?o:ga(function(e,t,n,r,o){let i,s,a=0;do{s=t+(n-t)/2,i=ga(s,r,o)-e,i>0?n=s:t=s}while(Math.abs(i)>1e-7&&++a<12);return s}(o,0,1,e,n),t,r)}const ya=va(.42,0,1,1),ba=va(0,0,.58,1),xa=va(.42,0,.58,1),wa=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_a=e=>t=>1-e(1-t),Sa=e=>1-Math.sin(Math.acos(e)),ka=_a(Sa),Ea=wa(Sa),Ca=va(.33,1.53,.69,.99),Ta=_a(Ca),Pa=wa(Ta),Ra={linear:ki,easeIn:ya,easeInOut:xa,easeOut:ba,circIn:Sa,circInOut:Ea,circOut:ka,backIn:Ta,backInOut:Pa,backOut:Ca,anticipate:e=>(e*=2)<1?.5*Ta(e):.5*(2-Math.pow(2,-10*(e-1)))},Oa=e=>{if(Array.isArray(e)){Mi(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return va(t,n,r,o)}return"string"==typeof e?(Mi(void 0!==Ra[e],`Invalid easing type '${e}'`),Ra[e]):e},Aa=(e,t)=>n=>t(e(n)),Na=(...e)=>e.reduce(Aa),Ma=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},ja=(e,t,n)=>e+(t-e)*n;function Da(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ia(e,t){return n=>n>0?t:e}const La=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Fa=[ks,Ss,Es];function za(e){const t=(e=>Fa.find((t=>t.test(e))))(e);if(Ni(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let n=t.parse(e);return t===Es&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;o=Da(a,r,e+1/3),i=Da(a,r,e),s=Da(a,r,e-1/3)}else o=i=s=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*s),alpha:r}}(n)),n}const Va=(e,t)=>{const n=za(e),r=za(t);if(!n||!r)return Ia(e,t);const o={...n};return e=>(o.red=La(n.red,r.red,e),o.green=La(n.green,r.green,e),o.blue=La(n.blue,r.blue,e),o.alpha=ja(n.alpha,r.alpha,e),Ss.transform(o))},Ba=new Set(["none","hidden"]);function Wa(e,t){return n=>ja(e,t,n)}function Ua(e){return"number"==typeof e?Wa:"string"==typeof e?Fi(e)?Ia:Cs.test(e)?Va:Ha:Array.isArray(e)?$a:"object"==typeof e?Cs.test(e)?Va:Ka:Ia}function $a(e,t){const n=[...e],r=n.length,o=e.map(((e,n)=>Ua(e)(e,t[n])));return e=>{for(let t=0;t{for(const t in r)n[t]=r[t](e);return n}}const Ha=(e,t)=>{const n=Ls.createTransformer(t),r=Ms(e),o=Ms(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Ba.has(e)&&!o.values.length||Ba.has(t)&&!r.values.length?function(e,t){return Ba.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):Na($a(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;iArray.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Oa):Oa(r),i={done:!1,value:t[0]},s=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Ma(0,t,r);e.push(ja(n,1,o))}}(t,e.length-1),t}(t),e),a=function(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Mi(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];if(2===i&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,n){const r=[],o=n||qa,i=e.length-1;for(let n=0;n{let n=0;if(a>1)for(;nl(Wi(e[0],e[i-1],t)):l}(s,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||xa)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=a(t),i.done=t>=e,i)}}const Xa=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Ti.update(t,!0),stop:()=>Pi(t),now:()=>Ri.isProcessing?Ri.timestamp:Zs.now()}},Ga={decay:ma,inertia:ma,tween:Ya,keyframes:Ya,spring:pa},Ja=e=>e/100;class Za extends ea{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:n,element:r,keyframes:o}=this.options,i=(null==r?void 0:r.KeyframeResolver)||bs;this.resolver=new i(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=this.options,s=Ga[t]||Ya;let a,l;s!==Ya&&"number"!=typeof e[0]&&(a=Na(Ja,qa(e[0],e[1])),e=[0,100]);const c=s({...this.options,keyframes:e});"mirror"===o&&(l=s({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===c.calculatedDuration&&(c.calculatedDuration=function(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}(c));const{calculatedDuration:u}=c,d=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:i,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return o.next(0);const{delay:d,repeat:f,repeatType:h,repeatDelay:p,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let y=this.currentTime,b=o;if(f){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,f+1),Boolean(t%2)&&("reverse"===h?(n=1-n,p&&(n-=p/u)):"mirror"===h&&(b=i)),y=Wi(0,1,n)*u}const x=v?{done:!1,value:a[0]}:b.next(y);s&&(x.value=s(x.value));let{done:w}=x;v||null===l||(w=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const _=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return _&&void 0!==r&&(x.value=Si(a,this.options,r)),m&&m(x.value),_&&this.finish(),x}get duration(){const{resolved:e}=this;return e?gi(e.calculatedDuration):0}get time(){return gi(this.currentTime)}set time(e){e=mi(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=gi(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Xa,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Qa=new Set(["opacity","clipPath","filter","transform"]),el=e=>Array.isArray(e)&&"number"==typeof e[0];function tl(e){return Boolean(!e||"string"==typeof e&&e in rl||el(e)||Array.isArray(e)&&e.every(tl))}const nl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,rl={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nl([0,.65,.55,1]),circOut:nl([.55,0,1,.45]),backIn:nl([.31,.01,.66,-.59]),backOut:nl([.33,1.53,.69,.99])};function ol(e){return il(e)||rl.easeOut}function il(e){return e?el(e)?nl(e):Array.isArray(e)?e.map(ol):rl[e]:void 0}const sl=Xs((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));class al extends ea{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:o}=this.options;this.resolver=new Ys(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:r=300,times:o,ease:i,type:s,motionValue:a,name:l,startTime:c}=this.options;if(!(null===(n=a.owner)||void 0===n?void 0:n.current))return!1;if("spring"===(u=this.options).type||!tl(u.ease)){const{onComplete:t,onUpdate:n,motionValue:a,element:l,...c}=this.options,u=function(e,t){const n=new Za({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<2e4;)r=n.sample(i),o.push(r.value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:"linear"}}(e,c);1===(e=u.keyframes).length&&(e[1]=e[0]),r=u.duration,o=u.times,i=u.ease,s="keyframes"}var u;const d=function(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=il(a);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===s?"alternate":"normal"})}(a.owner.current,l,e,{...this.options,duration:r,times:o,ease:i});return d.startTime=null!=c?c:this.calcStartTime(),this.pendingTimeline?(d.timeline=this.pendingTimeline,this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:n}=this.options;a.set(Si(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:o,type:s,ease:i,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return gi(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return gi(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=mi(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return ki;const{animation:n}=t;n.timeline=e,n.onfinish=null}else this.pendingTimeline=e;return ki}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:o,ease:i,times:s}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:a,element:l,...c}=this.options,u=new Za({...c,keyframes:n,duration:r,type:o,ease:i,times:s,isGenerator:!0}),d=mi(this.time);e.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;return sl()&&n&&Qa.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!r&&"mirror"!==o&&0!==i&&"inertia"!==s}}const ll=Xs((()=>void 0!==window.ScrollTimeline));class cl{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n{if(!ll()||!t.attachTimeline)return t.pause(),function(e,n){let r;const o=()=>{const{currentTime:e}=n,o=(null===e?0:e.value)/100;r!==o&&(e=>{t.time=t.duration*e})(o),r=o};return Ti.update(o,!0),()=>Pi(o)}(0,e);t.attachTimeline(e)}));return()=>{t.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;tt[e]()))}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const ul=(e,t,n,r={},o,i,s)=>a=>{const l=wi(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u-=mi(c);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{a(),l.onComplete&&l.onComplete(),s&&s()},onStop:s,name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(l)||(d={...d,...xi(e,d)}),d.duration&&(d.duration=mi(d.duration)),d.repeatDelay&&(d.repeatDelay=mi(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let f=!1;if((!1===d.type||0===d.duration&&!d.repeatDelay)&&(d.duration=0,0===d.delay&&(f=!0)),f&&!i&&void 0!==t.get()){const e=Si(d.keyframes,l);if(void 0!==e)return Ti.update((()=>{d.onUpdate(e),d.onComplete()})),new cl([])}return!i&&al.supports(d)?new al(d):new Za(d)},dl=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),fl=e=>ii(e)?e[e.length-1]||0:e;function hl(e,t){-1===e.indexOf(t)&&e.push(t)}function pl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ml{constructor(){this.subscriptions=[]}add(e){return hl(this.subscriptions,e),()=>pl(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o{const n=Zs.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=Zs.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new ml);const n=this.events[e].add(t);return"change"===e?()=>{n(),Ti.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return gl.current&&gl.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=Zs.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return ta(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function yl(e,t){return new vl(e,t)}function bl(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,yl(n))}const xl=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),wl="data-"+xl("framerAppearId");function _l(e){return e.props[wl]}function Sl(e){return pi.has(e)?"transform":Qa.has(e)?xl(e):void 0}class kl extends vl{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(e){const t=Sl(e);if(!t)return;const n=this.counts.get(t)||0;this.counts.set(t,n+1),0===n&&(this.output.push(t),this.update());let r=!1;return()=>{if(r)return;r=!0;const e=this.counts.get(t)-1;this.counts.set(t,e),0===e&&(pl(this.output,t),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}const El=e=>Boolean(e&&e.getVelocity);function Cl(e,t){var n;if(!e.applyWillChange)return;let r=e.getValue("willChange");return r||(null===(n=e.props.style)||void 0===n?void 0:n.willChange)||(r=new kl("auto"),e.addValue("willChange",r)),o=r,Boolean(El(o)&&o.add)?r.add(t):void 0;var o}function Tl({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function Pl(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in l){const r=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),o=l[t];if(void 0===o||u&&Tl(u,t))continue;const a={delay:n,...wi(s||{},t)};let d=!1;if(window.MotionHandoffAnimation){const n=_l(e);if(n){const e=window.MotionHandoffAnimation(n,t,Ti);null!==e&&(a.startTime=e,d=!0)}}r.start(ul(t,r,o,e.shouldReduceMotion&&pi.has(t)?{type:!1}:a,e,d,Cl(e,t)));const f=r.animation;f&&c.push(f)}return a&&Promise.all(c).then((()=>{Ti.update((()=>{a&&function(e,t){const n=ui(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const t in i)bl(e,t,fl(i[t]))}(e,a)}))})),c}function Rl(e,t,n={}){var r;const o=ui(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(Pl(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(Ol).forEach(((e,r)=>{e.notify("AnimationStart",t),s.push(Rl(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(s)}(e,t,o+r,s,a,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[s,a]:[a,s];return e().then((()=>t()))}return Promise.all([s(),a(n.delay)])}function Ol(e,t){return e.sortNodePosition(t)}const Al=[...di].reverse(),Nl=di.length;function Ml(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jl(){return{animate:Ml(!0),whileInView:Ml(),whileHover:Ml(),whileTap:Ml(),whileDrag:Ml(),whileFocus:Ml(),exit:Ml()}}class Dl{constructor(e){this.isMounted=!1,this.node=e}update(){}}let Il=0;const Ll={animation:{Feature:class extends Dl{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=function(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>Rl(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=Rl(e,t,n);else{const o="function"==typeof t?ui(e,t,n.custom):t;r=Promise.all(Pl(e,o,n))}return r.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}(e),n=jl(),r=!0;const o=t=>(n,r)=>{var o;const i=ui(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){const{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function i(i){const s=e.getProps(),a=e.getVariantContext(!0)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;td&&v),w=!1;const _=Array.isArray(g)?g:[g];let S=_.reduce(o(p),{});!1===y&&(S={});const{prevResolvedValues:k={}}=m,E={...k,...S},C=t=>{x=!0,c.has(t)&&(w=!0,c.delete(t)),m.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in E){const t=S[e],n=k[e];if(u.hasOwnProperty(e))continue;let r=!1;r=ii(t)&&ii(n)?!si(t,n):t!==n,r?null!=t?C(e):c.add(e):void 0!==t&&c.has(e)?C(e):m.protectedKeys[e]=!0}m.prevProp=g,m.prevResolvedValues=S,m.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(x=!1),!x||b&&!w||l.push(..._.map((e=>({animation:e,options:{type:p}}))))}var f,h;if(c.size){const t={};c.forEach((n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=null!=r?r:null})),l.push({animation:t})}let p=Boolean(l.length);return!r||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,r){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const s=i(t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=jl(),r=!0}}}(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();oi(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends Dl{constructor(){super(...arguments),this.id=Il++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Fl=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function zl(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const Vl=e=>t=>Fl(t)&&e(t,zl(t));function Bl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Wl(e,t,n,r){return Bl(e,t,Vl(n),r)}const Ul=(e,t)=>Math.abs(e-t);class $l{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=ql(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Ul(e.x,t.x),r=Ul(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=Ri;this.history.push({...r,timestamp:o});const{onStart:i,onMove:s}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Kl(t,this.transformPagePoint),Ti.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=ql("pointercancel"===e.type?this.lastMoveEventInfo:Kl(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!Fl(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const i=Kl(zl(e),this.transformPagePoint),{point:s}=i,{timestamp:a}=Ri;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=t;l&&l(e,ql(i,this.history)),this.removeListeners=Na(Wl(this.contextWindow,"pointermove",this.handlePointerMove),Wl(this.contextWindow,"pointerup",this.handlePointerUp),Wl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Pi(this.updatePoint)}}function Kl(e,t){return t?{point:t(e.point)}:e}function Hl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ql({point:e},t){return{point:e,delta:Hl(e,Xl(t)),offset:Hl(e,Yl(t)),velocity:Gl(t,.1)}}function Yl(e){return e[0]}function Xl(e){return e[e.length-1]}function Gl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Xl(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>mi(t)));)n--;if(!r)return{x:0,y:0};const i=gi(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Jl(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}const Zl=Jl("dragHorizontal"),Ql=Jl("dragVertical");function ec(e){let t=!1;if("y"===e)t=Ql();else if("x"===e)t=Zl();else{const e=Zl(),n=Ql();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function tc(){const e=ec(!0);return!e||(e(),!1)}function nc(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}const rc=.9999,oc=1.0001,ic=-.01,sc=.01;function ac(e){return e.max-e.min}function lc(e,t,n,r=.5){e.origin=r,e.originPoint=ja(t.min,t.max,e.origin),e.scale=ac(n)/ac(t),e.translate=ja(n.min,n.max,e.origin)-e.originPoint,(e.scale>=rc&&e.scale<=oc||isNaN(e.scale))&&(e.scale=1),(e.translate>=ic&&e.translate<=sc||isNaN(e.translate))&&(e.translate=0)}function cc(e,t,n,r){lc(e.x,t.x,n.x,r?r.originX:void 0),lc(e.y,t.y,n.y,r?r.originY:void 0)}function uc(e,t,n){e.min=n.min+t.min,e.max=e.min+ac(t)}function dc(e,t,n){e.min=t.min-n.min,e.max=e.min+ac(t)}function fc(e,t,n){dc(e.x,t.x,n.x),dc(e.y,t.y,n.y)}function hc(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function pc(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),bc=()=>({x:{min:0,max:0},y:{min:0,max:0}});function xc(e){return[e("x"),e("y")]}function wc({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function _c(e){return void 0===e||1===e}function Sc({scale:e,scaleX:t,scaleY:n}){return!_c(e)||!_c(t)||!_c(n)}function kc(e){return Sc(e)||Ec(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ec(e){return Cc(e.x)||Cc(e.y)}function Cc(e){return e&&"0%"!==e}function Tc(e,t,n){return n+t*(e-n)}function Pc(e,t,n,r,o){return void 0!==o&&(e=Tc(e,o,r)),Tc(e,n,r)+t}function Rc(e,t=0,n=1,r,o){e.min=Pc(e.min,t,n,r,o),e.max=Pc(e.max,t,n,r,o)}function Oc(e,{x:t,y:n}){Rc(e.x,t.translate,t.scale,t.originPoint),Rc(e.y,n.translate,n.scale,n.originPoint)}const Ac=.999999999999,Nc=1.0000000000001;function Mc(e,t){e.min=e.min+t,e.max=e.max+t}function jc(e,t,n,r,o=.5){Rc(e,t,n,ja(e.min,e.max,o),r)}function Dc(e,t){jc(e.x,t.x,t.scaleX,t.scale,t.originX),jc(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ic(e,t){return wc(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const Lc=({current:e})=>e?e.ownerDocument.defaultView:null,Fc=new WeakMap;class zc{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=bc(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new $l(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(zl(e,"page").point)},onStart:(e,t)=>{var n;const{drag:r,dragPropagation:o,onDragStart:i}=this.getProps();if(r&&!o&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ec(r),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),xc((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Qi.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];r&&(t=ac(r)*(parseFloat(t)/100))}}this.originPoint[e]=t})),i&&Ti.postRender((()=>i(e,t))),null===(n=this.removeWillChange)||void 0===n||n.call(this),this.removeWillChange=Cl(this.visualElement,"transform");const{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>xc((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:Lc(this.visualElement)})}stop(e,t){var n;null===(n=this.removeWillChange)||void 0===n||n.call(this);const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=t;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Ti.postRender((()=>i(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!Vc(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&en&&(e=r?ja(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&nc(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:hc(e.x,n,o),y:hc(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=mc){return!1===e?e=0:!0===e&&(e=mc),{x:gc(e,"left","right"),y:gc(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&xc((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!nc(e))return!1;const n=e.current;Mi(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=Ic(e,n),{scroll:o}=t;return o&&(Mc(r.x,o.offset.x),Mc(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:pc(e.x,t.x),y:pc(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=wc(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=xc((s=>{if(!Vc(s,t,this.currentDirection))return;let l=a&&a[s]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(s,d)}));return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(ul(e,n,0,t,this.visualElement,!1,Cl(this.visualElement,e)))}stopAnimation(){xc((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){xc((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){xc((t=>{const{drag:n}=this.getProps();if(!Vc(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-ja(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!nc(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};xc((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=ac(e),o=ac(t);return o>r?n=Ma(t.min,t.max-r,e.min):r>o&&(n=Ma(e.min,e.max-o,t.min)),Wi(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),xc((t=>{if(!Vc(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(ja(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;Fc.set(this.visualElement,this);const e=Wl(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();nc(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),Ti.read(t);const o=Bl(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(xc((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=mc,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:s}}}function Vc(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Bc=e=>(t,n)=>{e&&Ti.postRender((()=>e(t,n)))};var Wc=n(848);const Uc=(0,o.createContext)(null),$c=(0,o.createContext)({}),Kc=(0,o.createContext)({}),Hc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function qc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Yc={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!es.test(e))return e;e=parseFloat(e)}return`${qc(e,t.target.x)}% ${qc(e,t.target.y)}%`}},Xc={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Ls.parse(e);if(o.length>5)return r;const i=Ls.createTransformer(e),s="number"!=typeof o[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=ja(a,l,.5);return"number"==typeof o[2+s]&&(o[2+s]/=c),"number"==typeof o[3+s]&&(o[3+s]/=c),i(o)}},Gc={},{schedule:Jc,cancel:Zc}=Ci(queueMicrotask,!1);class Qc extends o.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=tu,Object.assign(Gc,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Hc.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||Ti.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Jc.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function eu(e){const[t,n]=function(){const e=(0,o.useContext)(Uc);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=(0,o.useId)();(0,o.useEffect)((()=>r(i)),[]);const s=(0,o.useCallback)((()=>n&&n(i)),[i,n]);return!t&&n?[!1,s]:[!0]}(),r=(0,o.useContext)($c);return(0,Wc.jsx)(Qc,{...e,layoutGroup:r,switchLayoutGroup:(0,o.useContext)(Kc),isPresent:t,safeToRemove:n})}const tu={borderRadius:{...Yc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Yc,borderTopRightRadius:Yc,borderBottomLeftRadius:Yc,borderBottomRightRadius:Yc,boxShadow:Xc},nu=["TopLeft","TopRight","BottomLeft","BottomRight"],ru=nu.length,ou=e=>"string"==typeof e?parseFloat(e):e,iu=e=>"number"==typeof e||es.test(e);function su(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const au=cu(0,.5,ka),lu=cu(.5,.95,ki);function cu(e,t,n){return r=>rt?1:n(Ma(e,t,r))}function uu(e,t){e.min=t.min,e.max=t.max}function du(e,t){uu(e.x,t.x),uu(e.y,t.y)}function fu(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function hu(e,t,n,r,o){return e=Tc(e-=t,1/n,r),void 0!==o&&(e=Tc(e,1/o,r)),e}function pu(e,t,[n,r,o],i,s){!function(e,t=0,n=1,r=.5,o,i=e,s=e){if(Qi.test(t)&&(t=parseFloat(t),t=ja(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=ja(i.min,i.max,r);e===i&&(a-=t),e.min=hu(e.min,t,n,a,o),e.max=hu(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,i,s)}const mu=["x","scaleX","originX"],gu=["y","scaleY","originY"];function vu(e,t,n,r){pu(e.x,t,mu,n?n.x:void 0,r?r.x:void 0),pu(e.y,t,gu,n?n.y:void 0,r?r.y:void 0)}function yu(e){return 0===e.translate&&1===e.scale}function bu(e){return yu(e.x)&&yu(e.y)}function xu(e,t){return e.min===t.min&&e.max===t.max}function wu(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function _u(e,t){return wu(e.x,t.x)&&wu(e.y,t.y)}function Su(e){return ac(e.x)/ac(e.y)}function ku(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Eu{constructor(){this.members=[]}add(e){hl(this.members,e),e.scheduleRender()}remove(e){if(pl(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Cu=(e,t)=>e.depth-t.depth;class Tu{constructor(){this.children=[],this.isDirty=!1}add(e){hl(this.children,e),this.isDirty=!0}remove(e){pl(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Cu),this.isDirty=!1,this.children.forEach(e)}}function Pu(e){const t=El(e)?e.get():e;return dl(t)?t.toValue():t}const Ru={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ou="undefined"!=typeof window&&void 0!==window.MotionDebug,Au=["","X","Y","Z"],Nu={visibility:"hidden"};let Mu=0;function ju(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Du(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=_l(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ti,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Du(r)}function Iu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Mu++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ou&&(Ru.totalNodes=Ru.resolvedTargetDeltas=Ru.recalculatedProjection=0),this.nodes.forEach(zu),this.nodes.forEach(Hu),this.nodes.forEach(qu),this.nodes.forEach(Vu),Ou&&window.MotionDebug.record(Ru)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e){const t=Zs.now(),n=({timestamp:r})=>{const o=r-t;o>=250&&(Pi(n),e(o-250))};return Ti.read(n,!0),()=>Pi(n)}(r),Hc.hasAnimatedSinceResize&&(Hc.hasAnimatedSinceResize=!1,this.nodes.forEach(Ku))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&s&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||s.getDefaultTransition()||Qu,{onLayoutAnimationStart:i,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!_u(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...wi(o,"layout"),onPlay:i,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Ku(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Pi(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Yu),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Du(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;eAc&&(t.x=1),t.yAc&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms=bc());const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(fu(this.prevProjectionDelta.x,this.projectionDelta.x),fu(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),cc(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&ku(this.projectionDelta.x,this.prevProjectionDelta.x)&&ku(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Ou&&Ru.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=yc(),this.projectionDelta=yc(),this.projectionDeltaWithTransform=yc()}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=yc();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s=bc(),a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(Zu));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,f,h,p,m,g;Gu(i.x,e.x,n),Gu(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fc(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,p=this.relativeTargetOrigin,m=s,g=n,Ju(h.x,p.x,m.x,g),Ju(h.y,p.y,m.y,g),d&&(l=this.relativeTarget,f=d,xu(l.x,f.x)&&xu(l.y,f.y))&&(this.isProjectionDirty=!1),d||(d=bc()),du(d,this.relativeTarget)),a&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=ja(0,void 0!==n.opacity?n.opacity:1,au(r)),e.opacityExit=ja(void 0!==t.opacity?t.opacity:1,0,lu(r))):i&&(e.opacity=ja(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o{Hc.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=El(0)?0:yl(0);return r.start(ul("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&rd(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||bc();const t=ac(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=ac(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}du(t,n),Dc(t,o),cc(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Eu),this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&ju("z",e,r,this.animationValues);for(let t=0;t{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Wu),this.root.sharedNodes.clear()}}}function Lu(e){e.updateLayout()}function Fu(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?xc((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=ac(r);r.min=t[e].min,r.max=r.min+o})):rd(o,n.layoutBox,t)&&xc((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],s=ac(t[r]);o.max=o.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)}));const s=yc();cc(s,t,n.layoutBox);const a=yc();i?cc(a,e.applyTransform(r,!0),n.measuredBox):cc(a,t,n.layoutBox);const l=!bu(s);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const s=bc();fc(s,n.layoutBox,o.layoutBox);const a=bc();fc(a,t,i.layoutBox),_u(s,a)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function zu(e){Ou&&Ru.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Vu(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Bu(e){e.clearSnapshot()}function Wu(e){e.clearMeasurements()}function Uu(e){e.isLayoutDirty=!1}function $u(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ku(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Hu(e){e.resolveTargetDelta()}function qu(e){e.calcProjection()}function Yu(e){e.resetSkewAndRotation()}function Xu(e){e.removeLeadSnapshot()}function Gu(e,t,n){e.translate=ja(t.translate,0,n),e.scale=ja(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ju(e,t,n,r){e.min=ja(t.min,n.min,r),e.max=ja(t.max,n.max,r)}function Zu(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Qu={duration:.45,ease:[.4,0,.1,1]},ed=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),td=ed("applewebkit/")&&!ed("chrome/")?Math.round:ki;function nd(e){e.min=td(e.min),e.max=td(e.max)}function rd(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=Su(t),o=Su(n),!(Math.abs(r-o)<=.2));var r,o}function od(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const id=Iu({attachResizeListener:(e,t)=>Bl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sd={current:void 0},ad=Iu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sd.current){const e=new id({});e.mount(window),e.setOptions({layoutScroll:!0}),sd.current=e}return sd.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),ld={pan:{Feature:class extends Dl{constructor(){super(...arguments),this.removePointerDownListener=ki}onPointerDown(e){this.session=new $l(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Lc(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Bc(e),onStart:Bc(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Ti.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=Wl(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Dl{constructor(e){super(e),this.removeGroupControls=ki,this.removeListeners=ki,this.controls=new zc(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ki}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:ad,MeasureLayout:eu}};function cd(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd";return Wl(e.current,n,((n,o)=>{if("touch"===n.pointerType||tc())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t);const s=i[r];s&&Ti.postRender((()=>s(n,o)))}),{passive:!e.getProps()[r]})}const ud=(e,t)=>!!t&&(e===t||ud(e,t.parentElement));function dd(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,zl(n))}const fd=new WeakMap,hd=new WeakMap,pd=e=>{const t=fd.get(e.target);t&&t(e)},md=e=>{e.forEach(pd)};const gd={some:0,all:1},vd={inView:{Feature:class extends Dl{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:gd[r]};return function(e,t,n){const r=function({root:e,...t}){const n=e||document;hd.has(n)||hd.set(n,{});const r=hd.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(md,{root:e,...t})),r[o]}(t);return fd.set(e,n),r.observe(e),()=>{fd.delete(e),r.unobserve(e)}}(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Dl{constructor(){super(...arguments),this.removeStartListeners=ki,this.removeEndListeners=ki,this.removeAccessibleListeners=ki,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=Wl(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:o}=this.node.getProps(),i=o||ud(this.node.current,e.target)?n:r;i&&Ti.update((()=>i(e,t)))}),{passive:!(n.onTap||n.onPointerUp)}),o=Wl(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Na(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Bl(this.node.current,"keydown",(e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=Bl(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&dd("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&Ti.postRender((()=>n(e,t)))}))})),dd("down",((e,t)=>{this.startPress(e,t)})))})),t=Bl(this.node.current,"blur",(()=>{this.isPressing&&dd("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=Na(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Ti.postRender((()=>n(e,t)))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tc()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Ti.postRender((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=Wl(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Bl(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Na(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Dl{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Na(Bl(this.node.current,"focus",(()=>this.onFocus())),Bl(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Dl{mount(){this.unmount=Na(cd(this.node,!0),cd(this.node,!1))}unmount(){}}}},yd={layout:{ProjectionNode:ad,MeasureLayout:eu}},bd=(0,o.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),xd=(0,o.createContext)({}),wd="undefined"!=typeof window,_d=wd?o.useLayoutEffect:o.useEffect,Sd=(0,o.createContext)({strict:!1});let kd=!1;function Ed(e,t,n,r,i){var s;const{visualElement:a}=(0,o.useContext)(xd),l=(0,o.useContext)(Sd),c=(0,o.useContext)(Uc),u=(0,o.useContext)(bd).reducedMotion,d=(0,o.useRef)();r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:u}));const f=d.current,h=(0,o.useContext)(Kc);!f||f.projection||!i||"html"!==f.type&&"svg"!==f.type||function(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Td(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(s)||a&&nc(a),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}(d.current,n,i,h),(0,o.useInsertionEffect)((()=>{f&&f.update(n,c)}));const p=n[wl],m=(0,o.useRef)(Boolean(p)&&!window.MotionHandoffIsComplete&&(null===(s=window.MotionHasOptimisedAnimation)||void 0===s?void 0:s.call(window,p)));return _d((()=>{f&&(f.updateFeatures(),Jc.render(f.render),m.current&&f.animationState&&f.animationState.animateChanges())})),(0,o.useEffect)((()=>{f&&(!m.current&&f.animationState&&f.animationState.animateChanges(),m.current=!1,kd||(kd=!0,queueMicrotask(Cd)))})),f}function Cd(){window.MotionHandoffIsComplete=!0}function Td(e){if(e)return!1!==e.options.allowProjection?e.projection:Td(e.parent)}function Pd(e,t,n){return(0,o.useCallback)((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):nc(n)&&(n.current=r))}),[t])}function Rd(e){return oi(e.animate)||fi.some((t=>ai(e[t])))}function Od(e){return Boolean(Rd(e)||e.variants)}function Ad(e){return Array.isArray(e)?e.join(" "):e}const Nd={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Md={};for(const e in Nd)Md[e]={isEnabled:t=>Nd[e].some((e=>!!t[e]))};const jd=Symbol.for("motionComponentSymbol");function Dd({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&function(e){for(const t in e)Md[t]={...Md[t],...e[t]}}(e);const s=(0,o.forwardRef)((function(e,s){let a;const l={...(0,o.useContext)(bd),...e,layoutId:Id(e)},{isStatic:c}=l,u=function(e){const{initial:t,animate:n}=function(e,t){if(Rd(e)){const{initial:t,animate:n}=e;return{initial:!1===t||ai(t)?t:void 0,animate:ai(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,o.useContext)(xd));return(0,o.useMemo)((()=>({initial:t,animate:n})),[Ad(t),Ad(n)])}(e),d=r(e,c);if(!c&&wd){(0,o.useContext)(Sd).strict;const e=function(e){const{drag:t,layout:n}=Md;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(l);a=e.MeasureLayout,u.visualElement=Ed(i,d,l,t,e.ProjectionNode)}return(0,Wc.jsxs)(xd.Provider,{value:u,children:[a&&u.visualElement?(0,Wc.jsx)(a,{visualElement:u.visualElement,...l}):null,n(i,e,Pd(d,u.visualElement,s),d,c,u.visualElement)]})}));return s[jd]=i,s}function Id({layoutId:e}){const t=(0,o.useContext)($c).id;return t&&void 0!==e?t+"-"+e:e}const Ld=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Fd(e){return"string"==typeof e&&!e.includes("-")&&!!(Ld.indexOf(e)>-1||/[A-Z]/u.test(e))}function zd(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const Vd=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Bd(e,t,n,r){zd(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(Vd.has(n)?n:xl(n),t.attrs[n])}function Wd(e,{layout:t,layoutId:n}){return pi.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Gc[e]||"opacity"===e)}function Ud(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(El(o[s])||t.style&&El(t.style[s])||Wd(s,e)||void 0!==(null===(r=null==n?void 0:n.getValue(s))||void 0===r?void 0:r.liveStyle))&&(i[s]=o[s]);return n&&o&&"string"==typeof o.willChange&&(n.applyWillChange=!1),i}function $d(e,t,n){const r=Ud(e,t,n);for(const n in e)(El(e[n])||El(t[n]))&&(r[-1!==hi.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}function Kd(e){const t=(0,o.useRef)(null);return null===t.current&&(t.current=e()),t.current}const Hd=e=>(t,n)=>{const r=(0,o.useContext)(xd),i=(0,o.useContext)(Uc),s=()=>function({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},o,i,s,a){const l={latestValues:Xd(o,i,s,!a&&e,t),renderState:n()};return r&&(l.mount=e=>r(o,e,l)),l}(e,t,r,i,n);return n?s():Kd(s)};function qd(e,t){const n=Sl(t);n&&hl(e,n)}function Yd(e,t,n){const r=Array.isArray(t)?t:[t];for(let t=0;t{for(const t in e){let n=e[t];Array.isArray(n)&&(n=n[p?n.length-1:0]),null!==n&&(s[t]=n)}for(const e in t)s[e]=t[e]})),l&&(d&&!1!==u&&!oi(d)&&Yd(e,d,(e=>{for(const t in e)qd(a,t)})),a.length&&(s.willChange=a.join(","))),s}const Gd=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Jd=()=>({...Gd(),attrs:{}}),Zd=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Qd={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ef=hi.length;function tf(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const e in t){const n=t[e];if(pi.has(e))s=!0;else if(Ii(e))o[e]=n;else{const t=Zd(n,Us[e]);e.startsWith("origin")?(a=!0,i[e]=t):r[e]=t}}if(t.transform||(s||n?r.transform=function(e,t,n){let r="",o=!0;for(let i=0;i"string"==typeof e&&"svg"===e.toLowerCase(),lf={useVisualState:Hd({scrapeMotionValuesFromProps:$d,createRenderState:Jd,onMount:(e,t,{renderState:n,latestValues:r})=>{Ti.read((()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}})),Ti.render((()=>{sf(n,r,af(t.tagName),e.transformTemplate),Bd(t,n)}))}})},cf={useVisualState:Hd({applyWillChange:!0,scrapeMotionValuesFromProps:Ud,createRenderState:Gd})};function uf(e,t,n){for(const r in t)El(t[r])||Wd(r,n)||(e[r]=t[r])}function df(e,t){const n={},r=function(e,t){const n={};return uf(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,o.useMemo)((()=>{const n=Gd();return tf(n,t,e),Object.assign({},n.vars,n.style)}),[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const ff=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function hf(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ff.has(e)}let pf=e=>!hf(e);try{(mf=n(935).A)&&(pf=e=>e.startsWith("on")?!hf(e):mf(e))}catch(e){}var mf;function gf(e,t,n,r){const i=(0,o.useMemo)((()=>{const n=Jd();return sf(n,t,af(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};uf(t,e.style,e),i.style={...t,...i.style}}return i}function vf(e=!1){return(t,n,r,{latestValues:i},s)=>{const a=(Fd(t)?gf:df)(n,i,s,t),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(pf(o)||!0===n&&hf(o)||!t&&!hf(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c=t!==o.Fragment?{...l,...a,ref:r}:{},{children:u}=n,d=(0,o.useMemo)((()=>El(u)?u.get():u),[u]);return(0,o.createElement)(t,{...c,children:d})}}function yf(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return Dd({...Fd(n)?lf:cf,preloadedFeatures:e,useRender:vf(r),createVisualElement:t,Component:n})}}const bf={current:null},xf={current:!1},wf=new WeakMap,_f=[...fs,Cs,Ls],Sf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],kf=fi.length;class Ef{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:i},s={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=bs,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,Ti.render(this.render,!1,!0))};const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=Rd(t),this.isVariantNode=Od(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in u){const t=u[e];void 0!==a[e]&&El(t)&&t.set(a[e],!1)}}mount(e){this.current=e,wf.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),xf.current||function(){if(xf.current=!0,wd)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>bf.current=e.matches;e.addListener(t),t()}else bf.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||bf.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){wf.delete(this.current),this.projection&&this.projection.unmount(),Pi(this.notifyUpdate),Pi(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=pi.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Ti.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{r(),o(),i&&i(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in Md){const t=Md[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):bc()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;tt.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=yl(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&(ji(r)||Ai(r))?r=parseFloat(r):!(e=>_f.find(ds(e)))(r)&&Ls.test(t)&&(r=Hs(e,t)),this.setBaseTarget(e,El(r)?r.get():r)),El(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const o=ci(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(r=o[e])}if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||El(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new ml),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Cf extends Ef{constructor(){super(...arguments),this.KeyframeResolver=Ys}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}}class Tf extends Cf{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=zd}readValueFromInstance(e,t){if(pi.has(t)){const e=Ks(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Ii(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ic(e,t)}build(e,t,n){tf(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Ud(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;El(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class Pf extends Cf{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=bc}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(pi.has(t)){const e=Ks(t);return e&&e.default||0}return t=Vd.has(t)?t:xl(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return $d(e,t,n)}build(e,t,n){sf(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){Bd(e,t,0,r)}mount(e){this.isSVGTag=af(e.tagName),super.mount(e)}}const Rf=ri(yf({...Ll,...vd,...ld,...yd},((e,t)=>Fd(e)?new Pf(t):new Tf(t,{allowProjection:e!==o.Fragment}))));var Of=["slug","text","icon","className","disabled","badge"];function Af(){return Af=Object.assign?Object.assign.bind():function(e){for(var t=1;tsvg]:size-3",sm:"underline"===v?"py-1.5 text-sm [&>svg]:size-4":"px-3 py-1.5 text-sm [&>svg]:size-4",md:"underline"===v?"py-2 text-base [&>svg]:size-5":"px-3.5 py-1.5 text-base [&>svg]:size-5",lg:"underline"===v?"p-2.5 text-lg [&>svg]:size-6":"px-3.5 py-1.5 text-lg [&>svg]:size-6"}[g],_=te("relative border-none bg-transparent text-text-secondary cursor-pointer flex items-center justify-center transition-colors duration-200","full"===x?"flex-1":"","vertical"===y?"w-full justify-between":""),S="rounded-full";"rounded"===v?S="rounded-md":"underline"===v&&(S="rounded-none w-fit max-w-fit");var k=te(_,"border-none",S,"","focus:outline-none",u?"text-text-disabled cursor-not-allowed":"",w,p===r?"bg-background-primary text-text-primary":"",l);return i().createElement("button",Af({ref:t,className:k,disabled:u,onClick:function(e){m(e,{slug:r,text:s})}},h),p===r&&"underline"===v&&i().createElement(Rf.span,{layoutId:"underline",className:"absolute right-0 left-0 -bottom-px h-px bg-border-interactive"}),i().createElement("span",{className:"flex items-center gap-1"},"left"===b&&a&&i().createElement("span",{className:"mr-1"},a),s,"right"===b&&a&&i().createElement("span",{className:"ml-1"},a)),f&&(0,o.isValidElement)(f)&&f)},jf={Group:function(e){var t,n=e.children,r=e.activeItem,s=void 0===r?null:r,a=e.onChange,l=e.className,c=e.size,u=void 0===c?"sm":c,d=e.orientation,f=void 0===d?"horizontal":d,h=e.variant,p=void 0===h?"pill":h,m=e.iconPosition,g=void 0===m?"left":m,v=e.width,y=void 0===v?"auto":v,b=(0,o.useCallback)((function(e,t){a&&a({event:e,value:t})}),[a]),x="rounded-full",w="p-1",_="border border-tab-border border-solid";"vertical"===f?t="gap-0.5":"rounded"!==p&&"pill"!==p||("xs"===u||"sm"===u?t="gap-0.5":"md"!==u&&"lg"!==u||(t="gap-1")),"rounded"===p||"vertical"===f?x="rounded-md":"underline"===p&&(x="rounded-none",w="p-0",_="border-t-0 border-r-0 border-l-0 border-b border-solid border-tab-border","xs"===u?t="gap-0":"sm"===u?t="gap-2.5":"md"!==u&&"lg"!==u||(t="gap-3"));var S="vertical"===f?"flex-col":"",k="box-border [&>*]:box-border flex items-center ".concat("full"===y?"w-full":""," ").concat(S),E=te(k,x,w,t,_,l);return i().createElement("div",{className:E},i().createElement(Nf.Provider,{value:{activeItem:s,onChange:b,size:u,variant:p,orientation:f,iconPosition:g,width:y}},i().Children.map(n,(function(e){return(0,o.isValidElement)(e)?i().cloneElement(e):null}))))},Tab:(0,o.forwardRef)(Mf)};const Df=me("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),If=me("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Lf=me("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);var Ff={sm:{icon:"[&>svg]:size-4",searchIcon:"[&>svg]:size-4",selectButton:"px-2 py-2 rounded text-xs font-medium leading-4 min-h-[2.25rem]",multiSelect:"pl-2 pr-2 py-1.5",displaySelected:"text-xs font-normal",dropdown:"rounded-md",dropdownItemsWrapper:"p-1.5",searchbarWrapper:"p-3 flex items-center gap-0.5",searchbar:"font-medium text-xs",searchbarIcon:"[&>svg]:size-4",label:"text-xs font-medium"},md:{icon:"[&>svg]:size-5",searchIcon:"[&>svg]:size-5",selectButton:"px-2.5 py-2.5 rounded-md text-xs font-medium leading-4 min-h-[2.5rem]",multiSelect:"pl-2 pr-2.5 py-2",displaySelected:"text-sm font-normal",dropdown:"rounded-lg",dropdownItemsWrapper:"p-2",searchbarWrapper:"p-2.5 flex items-center gap-1",searchbar:"font-medium text-sm",searchbarIcon:"[&>svg]:size-5",label:"text-sm font-medium"},lg:{icon:"[&>svg]:size-6",searchIcon:"[&>svg]:size-5",selectButton:"px-3 py-3 rounded-lg text-sm font-medium leading-5 min-h-[3rem]",multiSelect:"pl-2.5 pr-3 py-2.5",displaySelected:"text-sm font-normal",dropdown:"rounded-lg",dropdownItemsWrapper:"p-2",searchbarWrapper:"p-2.5 flex items-center gap-1",searchbar:"font-medium text-sm",searchbarIcon:"[&>svg]:size-5",label:"text-base font-medium"}},zf="group-disabled:text-field-color-disabled",Vf=["value","selected","children"];function Bf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||$f(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wf(){return Wf=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n{r&&(clearTimeout(m.current),y.current=null,g.current="")}),[r]),xr((()=>{var e;r&&""===g.current&&(v.current=null!=(e=null!=p?p:a)?e:-1)}),[r,p,a]);const S=ir((e=>{e?i.current.typing||(i.current.typing=e,x(e)):i.current.typing&&(i.current.typing=e,x(e))})),k=ir((e=>{function t(e,t,n){const r=w.current?w.current(t,n):t.find((e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))));return r?e.indexOf(r):-1}const n=s.current;if(g.current.length>0&&" "!==g.current[0]&&(-1===t(n,n,g.current)?S(!1):" "===e.key&&Ft(e)),null==n||_.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;r&&" "!==e.key&&(Ft(e),S(!0)),n.every((e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())}))&&g.current===e.key&&(g.current="",v.current=y.current),g.current+=e.key,clearTimeout(m.current),m.current=setTimeout((()=>{g.current="",v.current=y.current,S(!1)}),f);const o=v.current,i=t(n,[...n.slice((o||0)+1),...n.slice(0,(o||0)+1)],g.current);-1!==i?(b(i),y.current=i):" "!==e.key&&(g.current="",S(!1))})),E=o.useMemo((()=>({onKeyDown:k})),[k]),C=o.useMemo((()=>({onKeyDown:k,onKeyUp(e){" "===e.key&&S(!1)}})),[k,S]);return o.useMemo((()=>u?{reference:E,floating:C}:{}),[u,E,C])}(V,{listRef:W,activeIndex:A,selectedIndex:j,onMatch:P?N:D,onTypingChange:function(e){U.current=e}}),X=So([K,H,q,$].concat(Uf(m?[]:[Y]))),G=X.getReferenceProps,J=X.getFloatingProps,Z=X.getItemProps,Q=function(e,t){if(h)return function(e,t){var n,r=Uf(null!==(n=C())&&void 0!==n?n:[]);-1===r.findIndex((function(e){return"object"===Hf(e)?e[u]===t[u]:e===t}))&&(r.push(t),b||_(r),D(e),F.reference.current.focus(),R(!1),E(""),"function"==typeof l&&l(r))}(e,t);D(e),b||_(t),F.reference.current.focus(),R(!1),E(""),"function"==typeof l&&l(t)},ee=(0,o.useCallback)((function(e,t){B.current[e]=t}),[]);return React.createElement(Gf.Provider,{value:{selectedIndex:j,setSelectedIndex:D,activeIndex:A,setActiveIndex:N,selected:w,setSelected:_,handleSelect:Q,combobox:m,sizeValue:i,multiple:h,onChange:l,isTypingRef:U,getItemProps:Z,onClickItem:function(e,t){Q(e,t)},onKeyDownItem:function(e,t,n){"Enter"===e.key&&(e.preventDefault(),Q(t,n))," "!==e.key||U.current||(e.preventDefault(),Q(t,n))},getValues:C,selectId:y,getReferenceProps:G,isOpen:P,value:s,updateListRef:ee,refs:F,listContentRef:W,by:u,getFloatingProps:J,floatingStyles:z,context:V,searchKeyword:k,setSearchKeyword:E,disabled:v}},d)};Zf.Button=function(e){var t,n,r,i=e.children,s=e.icon,a=void 0===s?null:s,l=e.placeholder,c=void 0===l?"Select an option":l,u=e.optionIcon,d=void 0===u?null:u,f=e.displayBy,h=void 0===f?"name":f,p=e.label,m=Jf(),g=m.sizeValue,v=m.getReferenceProps,y=m.getValues,b=m.selectId,x=m.refs,w=m.isOpen,_=m.multiple,S=m.combobox,k=m.setSelected,E=m.onChange,C=m.isControlled,T=m.disabled,P=m.by,R=null===(t={sm:"xs",md:"sm",lg:"md"})||void 0===t?void 0:t[g],O=(0,o.useCallback)((function(){if(a)return a;var e="text-field-placeholder group-disabled:text-icon-disabled";return S?React.createElement(Df,{className:e}):React.createElement(If,{className:e})}),[a]),A=(0,o.useCallback)((function(){var e=y();if(!e)return null;if("function"==typeof i){var t=Yf({value:e},_?{onClose:N}:{});return i(t)}if(_)return e.map((function(e,t){return React.createElement(Le,{icon:d,type:"rounded",key:t,size:R,onMouseDown:N(e),label:"object"===Hf(e)?e[h]:e,disabled:T})}));var n="object"===Hf(e)?e[h]:e;return(0,o.isValidElement)(i)&&(n=i),React.createElement("span",{className:te(Ff[g].displaySelected,zf)},n)}),[y]),N=function(e){return function(t){var n;null==t||t.preventDefault(),null==t||t.stopPropagation();var r=Uf(null!==(n=y())&&void 0!==n?n:[]),o=r.findIndex((function(t){return"object"===Hf(t)?t[P]===e[P]:t===e}));-1!==o&&(r.splice(o,1),C||k(r),"function"==typeof E&&E(r))}};return React.createElement("div",{className:"flex flex-col items-start gap-1.5 [&_*]:box-border box-border"},React.createElement("label",{className:te(null===(n=Ff[g])||void 0===n?void 0:n.label,"text-field-label"),htmlFor:b},p),React.createElement("button",Wf({id:b,ref:x.setReference,className:te("flex items-center justify-between border border-solid w-full box-border transition-colors duration-150 bg-white","border focus-visible:outline-none border-solid border-field-border",!w&&"focus:ring-2 focus:ring-offset-4 focus:border-focus-border focus:ring-focus [&:hover:not(:focus):not(:disabled)]:border-border-strong",Ff[g].selectButton,_&&Ff[g].multiSelect,"group disabled:border-field-border-disabled [&:hover:has(:disabled)]:border-field-border-disabled"),"aria-labelledby":"select-label",tabIndex:0,disabled:T},v()),React.createElement("div",{className:te("flex-1 grid items-center justify-start gap-1.5 ",y()&&"flex flex-wrap")},A(),(_?!(null!==(r=y())&&void 0!==r&&r.length):!y())&&React.createElement("div",{className:te("[grid-area:1/1/2/3] text-field-input",Ff[g].displaySelected,zf)},c)),React.createElement("div",{className:te("flex items-center [&>svg]:shrink-0",Ff[g].icon)},O())))},Zf.Options=function(e){var t=e.children,n=e.searchBy,r=void 0===n?"id":n,i=e.searchPlaceholder,s=void 0===i?"Search...":i,a=e.dropdownPortalRoot,l=void 0===a?null:a,c=e.dropdownPortalId,u=void 0===c?"":c,d=Jf(),f=d.isOpen,h=d.context,p=d.refs,m=d.combobox,g=d.floatingStyles,v=d.getFloatingProps,y=d.sizeValue,b=d.setSearchKeyword,x=d.setActiveIndex,w=d.setSelectedIndex,_=d.value,S=d.selected,k=d.getValues,E=d.searchKeyword,C=d.listContentRef,T=d.by,P=(0,o.useMemo)((function(){var e=k(),n=0;return e&&(n=o.Children.toArray(t).findIndex((function(t){return"object"===Hf(t.props.value)?t.props.value[T]===e[T]:t.props.value===e}))),-1===n?0:n}),[_,S,t]);(0,o.useLayoutEffect)((function(){x(P),w(P)}),[]);var R=(0,o.useMemo)((function(){return o.Children.map(t,(function(e,t){if(!(0,o.isValidElement)(e))return null;if(E){var n=e.props.value;if("object"===Hf(n)){if(-1===n[r].toLowerCase().indexOf(E.toLowerCase()))return null}else if(-1===n.toLowerCase().indexOf(E.toLowerCase()))return null}return(0,o.cloneElement)(e,Yf(Yf({},e.props),{},{index:t}))}))}),[E,_,S,t]),O=o.Children.count(R);return(0,o.useEffect)((function(){C.current=[],o.Children.forEach(t,(function(e){if((0,o.isValidElement)(e)&&e.props.value){if(E){var t=e.props.value;if("object"===Hf(t)){if(-1===t[r].toLowerCase().indexOf(E.toLowerCase()))return}else if(-1===t.toLowerCase().indexOf(E.toLowerCase()))return}C.current.push(e.props.value)}}))}),[E]),React.createElement(React.Fragment,null,f&&React.createElement(to,{id:u,root:l},React.createElement(uo,{context:h,modal:!1},React.createElement("div",Wf({ref:p.setFloating,className:te("box-border [&_*]:box-border w-full bg-white outline-none shadow-lg border border-solid border-border-subtle overflow-hidden",m&&"grid grid-cols-1 grid-rows-[auto_1fr] divide-y divide-x-0 divide-solid divide-border-subtle",Ff[y].dropdown,!m&&"h-full"),style:Yf({},g)},v()),m&&React.createElement("div",{className:te(Ff[y].searchbarWrapper)},React.createElement(Lf,{className:te("text-icon-secondary shrink-0",Ff[y].searchbarIcon)}),React.createElement("input",{className:te("px-1 w-full placeholder:text-field-placeholder border-0 focus:outline-none focus:shadow-none",Ff[y].searchbar),type:"search",name:"keyword",placeholder:s,onChange:function(e){return b(e.target.value)},autoComplete:"off"})),React.createElement("div",{className:te("overflow-y-auto",!m&&"w-full h-full",Ff[y].dropdownItemsWrapper)},!!O&&R,!O&&React.createElement("div",{className:"p-2 text-center text-base font-medium text-field-placeholder"},"No items found"))))))},Zf.Option=function(e){var t=e.value,n=e.selected,r=e.children,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.create(rh({message:e,type:"neutral"},t))}},{key:"success",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.create(rh({message:e,type:"success"},t))}},{key:"error",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.create(rh({message:e,type:"error"},t))}},{key:"warning",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.create(rh({message:e,type:"warning"},t))}},{key:"info",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.create(rh({message:e,type:"info"},t))}},{key:"custom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.create(rh({jsx:e,type:"custom"},t))}}],t&&ih(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),mh=new ph,gh=Object.seal(Object.assign((function(e,t){return mh.default(e,t)}),{success:mh.success.bind(mh),error:mh.error.bind(mh),warning:mh.warning.bind(mh),info:mh.info.bind(mh),custom:mh.custom.bind(mh),dismiss:mh.dismiss.bind(mh),update:mh.update.bind(mh)},{getHistory:mh.history.bind(mh)})),vh=!1,yh={"top-left":"top-0 bottom-0 left-0 justify-start items-start","top-right":"top-0 bottom-0 right-0 justify-start items-end","bottom-left":"top-0 bottom-0 left-0 justify-end items-start","bottom-right":"top-0 bottom-0 right-0 justify-end items-end"},bh={neutral:"border-alert-border-neutral bg-alert-background-neutral",custom:"border-alert-border-neutral bg-alert-background-neutral",info:"border-alert-border-info bg-alert-background-info",success:"border-alert-border-green bg-alert-background-green",warning:"border-alert-border-warning bg-alert-background-warning",error:"border-alert-border-danger bg-alert-background-danger"},xh="bg-background-inverse border-background-inverse",wh={light:"text-icon-secondary",dark:"text-icon-inverse"};class _h extends o.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Sh({children:e,isPresent:t}){const n=(0,o.useId)(),r=(0,o.useRef)(null),i=(0,o.useRef)({width:0,height:0,top:0,left:0}),{nonce:s}=(0,o.useContext)(bd);return(0,o.useInsertionEffect)((()=>{const{width:e,height:o,top:a,left:l}=i.current;if(t||!r.current||!e||!o)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return s&&(c.nonce=s),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${o}px !important;\n top: ${a}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[t]),(0,Wc.jsx)(_h,{isPresent:t,childRef:r,sizeRef:i,children:o.cloneElement(e,{ref:r})})}const kh=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:a})=>{const l=Kd(Eh),c=(0,o.useId)(),u=(0,o.useMemo)((()=>({id:c,initial:t,isPresent:n,custom:i,onExitComplete:e=>{l.set(e,!0);for(const e of l.values())if(!e)return;r&&r()},register:e=>(l.set(e,!1),()=>l.delete(e))})),s?[Math.random()]:[n]);return(0,o.useMemo)((()=>{l.forEach(((e,t)=>l.set(t,!1)))}),[n]),o.useEffect((()=>{!n&&!l.size&&r&&r()}),[n]),"popLayout"===a&&(e=(0,Wc.jsx)(Sh,{isPresent:n,children:e})),(0,Wc.jsx)(Uc.Provider,{value:u,children:e})};function Eh(){return new Map}const Ch=e=>e.key||"";function Th(e){const t=[];return o.Children.forEach(e,(e=>{(0,o.isValidElement)(e)&&t.push(e)})),t}const Ph=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:i,presenceAffectsLayout:s=!0,mode:a="sync"})=>{Mi(!t,"Replace exitBeforeEnter with mode='wait'");const l=(0,o.useMemo)((()=>Th(e)),[e]),c=l.map(Ch),u=(0,o.useRef)(!0),d=(0,o.useRef)(l),f=Kd((()=>new Map)),[h,p]=(0,o.useState)(l),[m,g]=(0,o.useState)(l);_d((()=>{u.current=!1,d.current=l;for(let e=0;e{const t=Ch(e),o=l===m||c.includes(t);return(0,Wc.jsx)(kh,{isPresent:o,initial:!(u.current&&!r)&&void 0,custom:o?void 0:n,presenceAffectsLayout:s,mode:a,onExitComplete:o?void 0:()=>{if(!f.has(t))return;f.set(t,!0);let e=!0;f.forEach((t=>{t||(e=!1)})),e&&(null==y||y(),g(d.current),i&&i())},children:e},t)}))})};function Rh(e){return Rh="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},Rh(e)}function Oh(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 Ah(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:u;if(l&&!(u<0))return x.current=(new Date).getTime(),setTimeout((function(){b(e.id)}),t)};(0,o.useEffect)((function(){var e=u;return _.current=S(t,e),function(){clearTimeout(_.current)}}),[]),(0,o.useEffect)((function(){null!=t&&t.dismiss&&b(t.id)}),[t]);var k,E,C,T,P,R,O,A,N,M,j=function(){var e,n;null==t||null===(e=t.action)||void 0===e||null===(n=e.onClick)||void 0===n||n.call(e,(function(){return b(t.id)}))},D=null;return"stack"===p&&(D=React.createElement("div",{className:te("flex items-center justify-start p-4 gap-2 relative border border-solid rounded-md shadow-lg","dark"===f?xh:null===(k=bh)||void 0===k?void 0:k[y],"w-[22.5rem]"),onMouseEnter:function(){clearTimeout(_.current),w.current=(new Date).getTime()},onMouseLeave:function(){_.current=S(t,u-(w.current-x.current))}},"custom"!==t.type?React.createElement(React.Fragment,null,React.createElement("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0"},zo({variant:y,icon:g,theme:f})),React.createElement("div",{className:"flex flex-col items-start justify-start gap-0.5"},Bo({title:r,theme:f}),Wo({content:s,theme:f}),(null==t||null===(E=t.action)||void 0===E?void 0:E.label)&&"function"==typeof(null==t||null===(C=t.action)||void 0===C?void 0:C.onClick)&&React.createElement("div",{className:"mt-2.5"},Vo({actionLabel:null==t||null===(T=t.action)||void 0===T?void 0:T.label,actionType:null!==(P=null==t||null===(R=t.action)||void 0===R?void 0:R.type)&&void 0!==P?P:"button",onAction:j,theme:f}))),React.createElement("div",{className:"absolute right-4 top-4 [&_svg]:size-5"},React.createElement("button",{className:te("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",null!==(O=wh[f])&&void 0!==O?O:wh.light),onClick:function(){return b(t.id)}},React.createElement(De,null)))):null==t||null===(A=t.jsx)||void 0===A?void 0:A.call(t,{close:function(){return b(t.id)},action:null!=t&&t.action?Ah(Ah({},null==t?void 0:t.action),{},{onClick:j}):null}))),"inline"===p&&(D=React.createElement("div",{className:te("flex items-center justify-start p-3 gap-2 relative border border-solid rounded-md shadow-lg","dark"===f?xh:null===(N=bh)||void 0===N?void 0:N[y],"lg:w-[47.5rem] w-full")},React.createElement("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0"},zo({variant:y,icon:g,theme:f})),React.createElement("div",{className:"flex items-start justify-start gap-1 mr-10 [&>span:first-child]:shrink-0"},Bo({title:r,theme:f}),Wo({content:s,theme:f})),React.createElement("div",{className:"absolute right-3 top-3 [&_svg]:size-5"},React.createElement("button",{className:te("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",null!==(M=wh[f])&&void 0!==M?M:wh.light),onClick:function(){return b(t.id)}},React.createElement(De,null))))),D},Lh=(Dh=function(e){var t,n,r,i=e.position,s=void 0===i?"top-right":i,a=e.design,l=void 0===a?"stack":a,c=e.theme,u=void 0===c?"light":c,d=e.className,f=void 0===d?"":d,h=e.autoDismiss,p=void 0===h||h,m=e.dismissAfter,g=void 0===m?5e3:m,v=(n=(0,o.useState)([]),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(n,r)||Mh(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=v[0],b=v[1];(0,o.useEffect)((function(){mh.subscribe((function(e){null!=e&&e.dismiss?b((function(t){return t.map((function(t){return t.id===e.id?Ah(Ah({},t),{},{dismiss:!0}):t}))})):setTimeout((function(){(0,kn.flushSync)((function(){return b((function(t){return-1!==t.findIndex((function(t){return t.id===e.id}))?t.map((function(t){return t.id===e.id?Ah(Ah({},t),e):t})):[].concat(function(e){return function(e){if(Array.isArray(e))return jh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Mh(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t),[e])}))}))}))}))}),[]);var x=function(e){b((function(t){return t.filter((function(t){return t.id!==e}))}))};return React.createElement("ul",{className:te("fixed flex flex-col list-none z-20 p-10 pointer-events-none [&>li]:pointer-events-auto gap-3",null!==(t=yh[s])&&void 0!==t?t:yh["top-right"],f)},React.createElement(Ph,{initial:!1},y.map((function(e){var t,n,r,o,i;return React.createElement(Rf.li,{key:e.id,positionTransition:!0,initial:{opacity:0,y:50,scale:.7},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.6,transition:{duration:.15}},layoutId:"toast-".concat(e.id)},React.createElement(Ih,{toastItem:e,title:e.title,content:null==e?void 0:e.description,icon:null!==(t=null==e?void 0:e.icon)&&void 0!==t?t:null,design:null!==(n=null==e?void 0:e.design)&&void 0!==n?n:l,autoDismiss:null!==(r=null==e?void 0:e.autoDismiss)&&void 0!==r?r:p,dismissAfter:null!==(o=null==e?void 0:e.dismissAfter)&&void 0!==o?o:g,removeToast:x,variant:e.type,theme:null!==(i=null==e?void 0:e.theme)&&void 0!==i?i:u}))}))))},(0,o.memo)((function(e){return vh?null:(vh=!0,React.createElement(Dh,e))}))),Fh=["containerType","gap","direction","justify","align","wrap","cols","tabCols","mCols","className","children"],zh=["grow","shrink","order","alignSelf","className","children"];function Vh(){return Vh=Object.assign?Object.assign.bind():function(e){for(var t=1;tspan:first-child]:shrink-0"},Bo({title:g,theme:u}),Wo({content:y,theme:u}))),React.createElement("div",{className:"flex items-center justify-start gap-4"},(null==k?void 0:k.label)&&"function"==typeof(null==k?void 0:k.onClick)&&React.createElement("div",null,Vo({actionLabel:null==k?void 0:k.label,actionType:null!==(n=null==k?void 0:k.type)&&void 0!==n?n:"button",onAction:O,theme:u})),React.createElement("button",{className:te("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",null!==(r=R[u])&&void 0!==r?r:R.light),onClick:function(){return E()}},React.createElement(De,null))))},Hh=(Uh=function(e){const t=new URLSearchParams;t.append("code",e);for(let e=1;e{t.focus((()=>{const e=document.activeElement,n=t.getRootElement();null===n||null!==e&&n.contains(e)||n.focus({preventScroll:!0})}),{defaultSelection:e})}),[e,t]),null}const Gh={},Jh={},Zh={},Qh={},ep={},tp={},np={},rp={},op={},ip={},sp={},ap={},lp={},cp={},up={},dp={},fp={},hp={},pp={},mp={},gp={},vp={},yp={},bp={},xp={},wp={},_p={},Sp={},kp={},Ep={},Cp={},Tp={},Pp={},Rp={},Op={},Ap={},Np={},Mp={},jp={},Dp={},Ip="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Lp=Ip&&"documentMode"in document?document.documentMode:null,Fp=Ip&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),zp=Ip&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Vp=!(!Ip||!("InputEvent"in window)||Lp)&&"getTargetRanges"in new window.InputEvent("input"),Bp=Ip&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Wp=Ip&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Up=Ip&&/Android/.test(navigator.userAgent),$p=Ip&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Kp=Ip&&Up&&$p,Hp=Ip&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!$p,qp=1,Yp=3,Xp=0,Gp=2,Jp=0,Zp=1,Qp=2,em=4,tm=8,nm=3|em|tm|240,rm=1,om=2,im=3,sm=4,am=5,lm=6,cm=Bp||Wp||Hp?" ":"​",um="\n\n",dm=zp?" ":cm,fm="֑-߿יִ-﷽ﹰ-ﻼ",hm="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",pm=new RegExp("^[^"+hm+"]*["+fm+"]"),mm=new RegExp("^[^"+fm+"]*["+hm+"]"),gm={bold:1,code:16,highlight:128,italic:2,strikethrough:em,subscript:32,superscript:64,underline:tm},vm={directionless:1,unmergeable:2},ym={center:om,end:lm,justify:sm,left:rm,right:im,start:am},bm={[om]:"center",[lm]:"end",[sm]:"justify",[rm]:"left",[im]:"right",[am]:"start"},xm={normal:0,segmented:2,token:1},wm={[Jp]:"normal",[Qp]:"segmented",[Zp]:"token"};var _m,Sm=(_m=function(e){const t=new URLSearchParams;t.append("code",e);for(let e=1;eEm;try{vb(e,(()=>{const o=Wy()||function(e){return e.getEditorState().read((()=>{const e=Wy();return null!==e?e.clone():null}))}(e),i=new Map,s=e.getRootElement(),a=e._editorState,l=e._blockCursorElement;let c=!1,u="";for(let n=0;n0){let t=0;for(let o=0;o0)for(const[t,n]of i)if(bb(n)){const r=n.getChildrenKeys();let o=t.firstChild;for(let n=0;n0){for(let t=0;t{Nm(e,t,n)}))}function Dm(e,t){const n=e.__mode,r=e.__format,o=e.__style,i=t.__mode,s=t.__format,a=t.__style;return!(null!==n&&n!==i||null!==r&&r!==s||null!==o&&o!==a)}function Im(e,t){const n=e.mergeWithSibling(t),r=sb()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Lm(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&by(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){if(Dm(t,r)){r=Im(t,r);break}break}t.remove()}for(;null!==(n=r.getNextSibling())&&by(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(Dm(r,n)){r=Im(r,n);break}break}n.remove()}}else r.remove()}function Fm(e){for(;"element"===e.type;){const t=e.getNode(),n=e.offset;let r,o;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),o=!0):(r=t.getChildAtIndex(n),o=!1),by(r)){e.set(r.__key,o?r.getTextContentSize():0,"text");break}if(!bb(r))break;e.set(r.__key,o?r.getChildrenSize():0,"element")}}let zm=1;const Vm="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function Bm(e){const t=document.activeElement;if(null===t)return!1;const n=t.nodeName;return _b(ng(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==Km(t))}function Wm(e,t,n){const r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!Bm(t)&&$m(t)===e}catch(e){return!1}}function Um(e){return e instanceof Db}function $m(e){let t=e;for(;null!=t;){const e=Km(t);if(Um(e))return e;t=Ag(t)}return null}function Km(e){return e?e.__lexicalEditor:null}function Hm(e){return e.isToken()||e.isSegmented()}function qm(e){return e.nodeType===Yp}function Ym(e){let t=e;for(;null!=t;){if(qm(t))return t;t=t.firstChild}return null}function Xm(e,t,n){const r=gm[t];if(null!==n&&(e&r)==(n&r))return e;let o=e^r;return"subscript"===t?o&=~gm.superscript:"superscript"===t&&(o&=~gm.subscript),o}function Gm(e){const t=e.getParent();if(null!==t){const n=e.getWritable(),r=t.getWritable(),o=e.getPreviousSibling(),i=e.getNextSibling();if(null===o)if(null!==i){const e=i.getWritable();r.__first=i.__key,e.__prev=null}else r.__first=null;else{const e=o.getWritable();if(null!==i){const t=i.getWritable();t.__prev=e.__key,e.__next=t.__key}else e.__next=null;n.__prev=null}if(null===i)if(null!==o){const e=o.getWritable();r.__last=o.__key,e.__next=null}else r.__last=null;else{const e=i.getWritable();if(null!==o){const t=o.getWritable();t.__next=e.__key,e.__prev=t.__key}else e.__prev=null;n.__next=null}r.__size--,n.__parent=null}}function Jm(e){ob();const t=e.getLatest(),n=t.__parent,r=ib(),o=sb(),i=r._nodeMap,s=o._dirtyElements;null!==n&&function(e,t,n){let r=e;for(;null!==r;){if(n.has(r))return;const e=t.get(r);if(void 0===e)break;n.set(r,!1),r=e.__parent}}(n,i,s);const a=t.__key;o._dirtyType=1,bb(e)?s.set(a,!0):o._dirtyLeaves.add(a)}function Zm(e){rb();const t=sb(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){const e=eg(n);null!==e&&e.getWritable()}if(null!==e){const t=eg(e);null!==t&&t.getWritable()}}}function Qm(){return nb()?null:sb()._compositionKey}function eg(e,t){const n=(t||ib())._nodeMap.get(e);return void 0===n?null:n}function tg(e,t){const n=e[`__lexicalKey_${sb()._key}`];return void 0!==n?eg(n,t):null}function ng(e,t){let n=e;for(;null!=n;){const e=tg(n,t);if(null!==e)return e;n=Ag(n)}return null}function rg(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function og(e){return e.read((()=>ig().getTextContent()))}function ig(){return sg(ib())}function sg(e){return e._nodeMap.get("root")}function ag(e){rb();const t=ib();null!==e&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function lg(e){const t=sb(),n=function(e,t){let n=e;for(;null!=n;){const e=n[`__lexicalKey_${t._key}`];if(void 0!==e)return e;n=Ag(n)}return null}(e,t);return null===n?e===t.getRootElement()?eg("root"):null:eg(n)}function cg(e,t){return t?e.getTextContentSize():0}function ug(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function dg(e){const t=[];let n=e;for(;null!==n;)t.push(n),n=n._parentEditor;return t}function fg(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function hg(e){return e.nodeType===Yp?e.nodeValue:null}function pg(e,t,n){const r=Fg(t._window);if(null===r)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(null!==o){let t=hg(o);const r=ng(o);if(null!==t&&by(r)){if(t===cm&&n){const e=n.length;t=n,i=e,s=e}null!==t&&mg(r,t,i,s,e)}}}function mg(e,t,n,r,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let a=t;(s||o)&&t[t.length-1]===cm&&(a=t.slice(0,-1));const l=i.getTextContent();if(o||a!==l){if(""===a){if(Zm(null),Bp||Wp||Hp)i.remove();else{const e=sb();setTimeout((()=>{e.update((()=>{i.isAttached()&&i.remove()}))}),20)}return}const t=i.getParent(),o=Uy(),l=i.getTextContentSize(),c=Qm(),u=i.getKey();if(i.isToken()||null!==c&&u===c&&!s||Ry(o)&&(null!==t&&!t.canInsertTextBefore()&&0===o.anchor.offset||o.anchor.key===e.__key&&0===o.anchor.offset&&!i.canInsertTextBefore()&&!s||o.focus.key===e.__key&&o.focus.offset===l&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const d=Wy();if(!Ry(d)||null===n||null===r)return void i.setTextContent(a);if(d.setTextNodeRange(i,n,i,r),i.isSegmented()){const e=yy(i.getTextContent());i.replace(e),i=e}i.setTextContent(a)}}}function gg(e){return"ArrowLeft"===e}function vg(e){return"ArrowRight"===e}function yg(e,t){return Fp?e:t}function bg(e){return"Enter"===e}function xg(e){return"Backspace"===e}function wg(e){return"Delete"===e}function _g(e,t,n){return"a"===e.toLowerCase()&&yg(t,n)}function Sg(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});const n=e.__lexicalClassNameCache,r=n[t];if(void 0!==r)return r;const o=e[t];if("string"==typeof o){const e=km(o);return n[t]=e,e}return o}function kg(e,t,n,r,o){if(0===n.size)return;const i=r.__type,s=r.__key,a=t.get(i);void 0===a&&Sm(33,i);const l=a.klass;let c=e.get(l);void 0===c&&(c=new Map,e.set(l,c));const u=c.get(s),d="destroyed"===u&&"created"===o;(void 0===u||d)&&c.set(s,d?"updated":o)}function Eg(e,t,n){const r=e.getParent();let o=n,i=e;return null!==r&&(t&&0===n?(o=i.getIndexWithinParent(),i=r):t||n!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(t?o-1:o)}function Cg(e,t){const n=e.offset;if("element"===e.type)return Eg(e.getNode(),t,n);{const r=e.getNode();if(t&&0===n||!t&&n===r.getTextContentSize()){const e=t?r.getPreviousSibling():r.getNextSibling();return null===e?Eg(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):e}}return null}function Tg(e){const t=Mg(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function Pg(e,t,n){return pb(e,t,n)}function Rg(e){return!kb(e)&&!e.isLastChild()&&!e.isInline()}function Og(e,t){const n=e._keyToDOMMap.get(t);return void 0===n&&Sm(75,t),n}function Ag(e){const t=e.assignedSlot||e.parentElement;return null!==t&&11===t.nodeType?t.host:t}function Ng(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function Mg(e){const t=e._window;return null===t&&Sm(78),t}function jg(e){return kb(e)||bb(e)&&e.isShadowRoot()}function Dg(e){const t=sb(),n=e.constructor.getType(),r=t._nodes.get(n);void 0===r&&Sm(97);const o=r.replace;if(null!==o){const t=o(e);return t instanceof e.constructor||Sm(98),t}return e}function Ig(e,t){!kb(e.getParent())||bb(t)||_b(t)||Sm(99)}function Lg(e){return(_b(e)||bb(e)&&!e.canBeEmpty())&&!e.isInline()}function _n(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;null!==r&&r.removeChild(e)}function Fg(e){return Ip?(e||window).getSelection():null}function zg(e){return 1===e.nodeType}function Vg(e){const t=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==e.nodeName.match(t)}function Bg(e){const t=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==e.nodeName.match(t)}function Wg(e){if(kb(e)||_b(e)&&!e.isInline())return!0;if(!bb(e)||jg(e))return!1;const t=e.getFirstChild(),n=null===t||ty(t)||by(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function Ug(e,t){let n=e;for(;null!==n&&null!==n.getParent()&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}const $g=new WeakMap,Kg=new Map;function Hg(e){const t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function qg(e,t,n,r,o,i){let s=e.getFirstChild();for(;null!==s;){const e=s.__key;s.__parent===t&&(bb(s)&&qg(s,e,n,r,o,i),n.has(e)||i.delete(e),o.push(e)),s=s.getNextSibling()}}let Yg,Xg,Gg,Jg,Zg,Qg,ev,tv,nv,rv,ov="",iv="",sv=null,av="",lv="",cv=!1,uv=!1,dv=null;function fv(e,t){const n=ev.get(e);if(null!==t){const n=Tv(e);n.parentNode===t&&t.removeChild(n)}if(tv.has(e)||Xg._keyToDOMMap.delete(e),bb(n)){const e=Sv(n,ev);hv(e,0,e.length-1,null)}void 0!==n&&kg(rv,Gg,Jg,n,"destroyed")}function hv(e,t,n,r){let o=t;for(;o<=n;++o){const t=e[o];void 0!==t&&fv(t,r)}}function pv(e,t){e.setProperty("text-align",t)}const mv="40px";function gv(e,t){const n=Yg.theme.indent;if("string"==typeof n){const r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}const r=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||mv;e.style.setProperty("padding-inline-start",0===t?"":`calc(${t} * ${r})`)}function vv(e,t){const n=e.style;0===t?pv(n,""):t===rm?pv(n,"left"):t===om?pv(n,"center"):t===im?pv(n,"right"):t===sm?pv(n,"justify"):t===am?pv(n,"start"):t===lm&&pv(n,"end")}function yv(e,t,n){const r=tv.get(e);void 0===r&&Sm(60);const o=r.createDOM(Yg,Xg);if(function(e,t,n){const r=n._keyToDOMMap;t["__lexicalKey_"+n._key]=e,r.set(e,t)}(e,o,Xg),by(r)?o.setAttribute("data-lexical-text","true"):_b(r)&&o.setAttribute("data-lexical-decorator","true"),bb(r)){const e=r.__indent,t=r.__size;if(0!==e&&gv(o,e),0!==t){const e=t-1;!function(e,t,n,r){const o=iv;iv="",bv(e,n,0,t,r,null),_v(n,r),iv=o}(Sv(r,tv),e,r,o)}const n=r.__format;0!==n&&vv(o,n),r.isInline()||wv(null,r,o),Rg(r)&&(ov+=um,lv+=um)}else{const t=r.getTextContent();if(_b(r)){const t=r.decorate(Xg,Yg);null!==t&&Ev(e,t),o.contentEditable="false"}else by(r)&&(r.isDirectionless()||(iv+=t));ov+=t,lv+=t}if(null!==t)if(null!=n)t.insertBefore(o,n);else{const e=t.__lexicalLineBreak;null!=e?t.insertBefore(o,e):t.appendChild(o)}return kg(rv,Gg,Jg,r,"created"),o}function bv(e,t,n,r,o,i){const s=ov;ov="";let a=n;for(;a<=r;++a){yv(e[a],o,i);const t=tv.get(e[a]);null!==t&&by(t)&&(null===sv&&(sv=t.getFormat()),""===av&&(av=t.getStyle()))}Rg(t)&&(ov+=um),o.__lexicalTextContent=ov,ov=s+ov}function xv(e,t){const n=t.get(e);return ty(n)||_b(n)&&n.isInline()}function wv(e,t,n){const r=null!==e&&(0===e.__size||xv(e.__last,ev)),o=0===t.__size||xv(t.__last,tv);if(r){if(!o){const e=n.__lexicalLineBreak;if(null!=e)try{n.removeChild(e)}catch(t){if("object"==typeof t&&null!=t){const r=`${t.toString()} Parent: ${n.tagName}, child: ${e.tagName}.`;throw new Error(r)}throw t}n.__lexicalLineBreak=null}}else if(o){const e=document.createElement("br");n.__lexicalLineBreak=e,n.appendChild(e)}}function _v(e,t){const n=t.__lexicalDirTextContent,r=t.__lexicalDir;if(n!==iv||r!==dv){const n=""===iv,i=n?dv:(o=iv,pm.test(o)?"rtl":mm.test(o)?"ltr":null);if(i!==r){const o=t.classList,s=Yg.theme;let a=null!==r?s[r]:void 0,l=null!==i?s[i]:void 0;if(void 0!==a){if("string"==typeof a){const e=km(a);a=s[r]=e}o.remove(...a)}if(null===i||n&&"ltr"===i)t.removeAttribute("dir");else{if(void 0!==l){if("string"==typeof l){const e=km(l);l=s[i]=e}void 0!==l&&o.add(...l)}t.dir=i}uv||(e.getWritable().__dir=i)}dv=i,t.__lexicalDirTextContent=iv,t.__lexicalDir=i}var o}function Sv(e,t){const n=[];let r=e.__first;for(;null!==r;){const e=t.get(r);void 0===e&&Sm(101),n.push(r),r=e.__next}return n}function kv(e,t){const n=ev.get(e);let r=tv.get(e);void 0!==n&&void 0!==r||Sm(61);const o=cv||Qg.has(e)||Zg.has(e),i=Og(Xg,e);if(n===r&&!o){if(bb(n)){const e=i.__lexicalTextContent;void 0!==e&&(ov+=e,lv+=e);const t=i.__lexicalDirTextContent;void 0!==t&&(iv+=t)}else{const e=n.getTextContent();by(n)&&!n.isDirectionless()&&(iv+=e),lv+=e,ov+=e}return i}if(n!==r&&o&&kg(rv,Gg,Jg,r,"updated"),r.updateDOM(n,i,Yg)){const n=yv(e,null,null);return null===t&&Sm(62),t.replaceChild(n,i),fv(e,null),n}if(bb(n)&&bb(r)){const e=r.__indent;e!==n.__indent&&gv(i,e);const t=r.__format;t!==n.__format&&vv(i,t),o&&(function(e,t,n){const r=iv;var o;iv="",sv=null,av="",function(e,t,n){const r=ov,o=e.__size,i=t.__size;if(ov="",1===o&&1===i){const r=e.__first,o=t.__first;if(r===o)kv(r,n);else{const e=Tv(r),t=yv(o,null,null);try{n.replaceChild(t,e)}catch(i){if("object"==typeof i&&null!=i){const s=`${i.toString()} Parent: ${n.tagName}, new child: {tag: ${t.tagName} key: ${o}}, old child: {tag: ${e.tagName}, key: ${r}}.`;throw new Error(s)}throw i}fv(r,null)}const s=tv.get(o);by(s)&&(null===sv&&(sv=s.getFormat()),""===av&&(av=s.getStyle()))}else{const r=Sv(e,ev),s=Sv(t,tv);if(0===o)0!==i&&bv(s,t,0,i-1,n,null);else if(0===i){if(0!==o){const e=null==n.__lexicalLineBreak;hv(r,0,o-1,e?null:n),e&&(n.textContent="")}}else!function(e,t,n,r,o,i){const s=r-1,a=o-1;let l,c,u=i.firstChild,d=0,f=0;for(;d<=s&&f<=a;){const e=t[d],r=n[f];if(e===r)u=Cv(kv(r,i)),d++,f++;else{void 0===l&&(l=new Set(t)),void 0===c&&(c=new Set(n));const o=c.has(e),s=l.has(r);if(o)if(s){const e=Og(Xg,r);e===u?u=Cv(kv(r,i)):(null!=u?i.insertBefore(e,u):i.appendChild(e),kv(r,i)),d++,f++}else yv(r,i,u),f++;else u=Cv(Tv(e)),fv(e,i),d++}const o=tv.get(r);null!==o&&by(o)&&(null===sv&&(sv=o.getFormat()),""===av&&(av=o.getStyle()))}const h=d>s,p=f>a;if(h&&!p){const t=n[a+1];bv(n,e,f,a,i,void 0===t?null:Xg.getElementByKey(t))}else p&&!h&&hv(t,d,s,i)}(t,r,s,o,i,n)}Rg(t)&&(ov+=um),n.__lexicalTextContent=ov,ov=r+ov}(e,t,n),_v(t,n),Nb(o=t)&&null!=sv&&sv!==o.__textFormat&&!uv&&(o.setTextFormat(sv),o.setTextStyle(av)),function(e){Nb(e)&&""!==av&&av!==e.__textStyle&&!uv&&e.setTextStyle(av)}(t),iv=r}(n,r,i),kb(r)||r.isInline()||wv(n,r,i)),Rg(r)&&(ov+=um,lv+=um)}else{const t=r.getTextContent();if(_b(r)){const t=r.decorate(Xg,Yg);null!==t&&Ev(e,t)}else by(r)&&!r.isDirectionless()&&(iv+=t);ov+=t,lv+=t}if(!uv&&kb(r)&&r.__cachedText!==lv){const e=r.getWritable();e.__cachedText=lv,r=e}return i}function Ev(e,t){let n=Xg._pendingDecorators;const r=Xg._decorators;if(null===n){if(r[e]===t)return;n=rg(Xg)}n[e]=t}function Cv(e){let t=e.nextSibling;return null!==t&&t===Xg._blockCursorElement&&(t=t.nextSibling),t}function Tv(e){const t=nv.get(e);return void 0===t&&Sm(75,e),t}const Pv=Object.freeze({}),Rv=[["keydown",function(e,t){if(Ov=e.timeStamp,Av=e.key,t.isComposing())return;const{key:n,shiftKey:r,ctrlKey:o,metaKey:i,altKey:s}=e;Pg(t,cp,e)||null!=n&&(function(e,t,n,r){return vg(e)&&!t&&!r&&!n}(n,o,s,i)?Pg(t,up,e):function(e,t,n,r,o){return vg(e)&&!r&&!n&&(t||o)}(n,o,r,s,i)?Pg(t,dp,e):function(e,t,n,r){return gg(e)&&!t&&!r&&!n}(n,o,s,i)?Pg(t,fp,e):function(e,t,n,r,o){return gg(e)&&!r&&!n&&(t||o)}(n,o,r,s,i)?Pg(t,hp,e):function(e,t,n){return function(e){return"ArrowUp"===e}(e)&&!t&&!n}(n,o,i)?Pg(t,pp,e):function(e,t,n){return function(e){return"ArrowDown"===e}(e)&&!t&&!n}(n,o,i)?Pg(t,mp,e):function(e,t){return bg(e)&&t}(n,r)?(Lv=!0,Pg(t,gp,e)):function(e){return" "===e}(n)?Pg(t,vp,e):function(e,t){return Fp&&t&&"o"===e.toLowerCase()}(n,o)?(e.preventDefault(),Lv=!0,Pg(t,Qh,!0)):function(e,t){return bg(e)&&!t}(n,r)?(Lv=!1,Pg(t,gp,e)):function(e,t,n,r){return Fp?!t&&!n&&(xg(e)||"h"===e.toLowerCase()&&r):!(r||t||n)&&xg(e)}(n,s,i,o)?xg(n)?Pg(t,yp,e):(e.preventDefault(),Pg(t,Zh,!0)):function(e){return"Escape"===e}(n)?Pg(t,bp,e):function(e,t,n,r,o){return Fp?!(n||r||o)&&(wg(e)||"d"===e.toLowerCase()&&t):!(t||r||o)&&wg(e)}(n,o,r,s,i)?wg(n)?Pg(t,xp,e):(e.preventDefault(),Pg(t,Zh,!1)):function(e,t,n){return xg(e)&&(Fp?t:n)}(n,s,o)?(e.preventDefault(),Pg(t,op,!0)):function(e,t,n){return wg(e)&&(Fp?t:n)}(n,s,o)?(e.preventDefault(),Pg(t,op,!1)):function(e,t){return Fp&&t&&xg(e)}(n,i)?(e.preventDefault(),Pg(t,ip,!0)):function(e,t){return Fp&&t&&wg(e)}(n,i)?(e.preventDefault(),Pg(t,ip,!1)):function(e,t,n,r){return"b"===e.toLowerCase()&&!t&&yg(n,r)}(n,s,i,o)?(e.preventDefault(),Pg(t,sp,"bold")):function(e,t,n,r){return"u"===e.toLowerCase()&&!t&&yg(n,r)}(n,s,i,o)?(e.preventDefault(),Pg(t,sp,"underline")):function(e,t,n,r){return"i"===e.toLowerCase()&&!t&&yg(n,r)}(n,s,i,o)?(e.preventDefault(),Pg(t,sp,"italic")):function(e,t,n,r){return"Tab"===e&&!t&&!n&&!r}(n,s,o,i)?Pg(t,wp,e):function(e,t,n,r){return"z"===e.toLowerCase()&&!t&&yg(n,r)}(n,r,i,o)?(e.preventDefault(),Pg(t,ap,void 0)):function(e,t,n,r){return Fp?"z"===e.toLowerCase()&&n&&t:"y"===e.toLowerCase()&&r||"z"===e.toLowerCase()&&r&&t}(n,r,i,o)?(e.preventDefault(),Pg(t,lp,void 0)):Ay(t._editorState._selection)?function(e,t,n,r){return!t&&"c"===e.toLowerCase()&&(Fp?n:r)}(n,r,i,o)?(e.preventDefault(),Pg(t,Cp,e)):function(e,t,n,r){return!t&&"x"===e.toLowerCase()&&(Fp?n:r)}(n,r,i,o)?(e.preventDefault(),Pg(t,Tp,e)):_g(n,i,o)&&(e.preventDefault(),Pg(t,Pp,e)):!zp&&_g(n,i,o)&&(e.preventDefault(),Pg(t,Pp,e)),function(e,t,n,r){return e||t||n||r}(o,r,s,i)&&Pg(t,Dp,e))}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;n instanceof Node&&"touch"!==r&&vb(t,(()=>{_b(ng(n))||(Iv=!0)}))}],["compositionstart",function(e,t){vb(t,(()=>{const n=Wy();if(Ry(n)&&!t.isComposing()){const r=n.anchor,o=n.anchor.getNode();Zm(r.key),(e.timeStamp{$v(t,e.data)}))}],["input",function(e,t){e.stopPropagation(),vb(t,(()=>{const n=Wy(),r=e.data,o=Uv(e);if(null!=r&&Ry(n)&&Vv(n,o,r,e.timeStamp,!1)){Fv&&($v(t,r),Fv=!1);const o=n.anchor.getNode(),i=Fg(t._window);if(null===i)return;const s=n.isBackward(),a=s?n.anchor.offset:n.focus.offset,l=s?n.focus.offset:n.anchor.offset;Vp&&!n.isCollapsed()&&by(o)&&null!==i.anchorNode&&o.getTextContent().slice(0,a)+r+o.getTextContent().slice(a+l)===hg(i.anchorNode)||Pg(t,tp,r);const c=r.length;zp&&c>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=c),Bp||Wp||Hp||!t.isComposing()||(Ov=0,Zm(null))}else pg(!1,t,null!==r?r:void 0),Fv&&($v(t,r||void 0),Fv=!1);rb(),Mm(sb())})),Mv=null}],["click",function(e,t){vb(t,(()=>{const n=Wy(),r=Fg(t._window),o=Uy();if(r)if(Ry(n)){const t=n.anchor,i=t.getNode();"element"===t.type&&0===t.offset&&n.isCollapsed()&&!kb(i)&&1===ig().getChildrenSize()&&i.getTopLevelElementOrThrow().isEmpty()&&null!==o&&n.is(o)?(r.removeAllRanges(),n.dirty=!0):3!==e.detail||n.isCollapsed()||i!==n.focus.getNode()&&(bb(i)?i.select(0):i.getParentOrThrow().select(0))}else if("touch"===e.pointerType){const n=r.anchorNode;if(null!==n){const i=n.nodeType;i!==qp&&i!==Yp||ag(By(o,r,t,e))}}Pg(t,Jh,e)}))}],["cut",Pv],["copy",Pv],["dragstart",Pv],["dragover",Pv],["dragend",Pv],["paste",Pv],["focus",Pv],["blur",Pv],["drop",Pv]];Vp&&Rv.push(["beforeinput",(e,t)=>function(e,t){const n=e.inputType,r=Uv(e);"deleteCompositionText"===n||zp&&Tg(t)||"insertCompositionText"!==n&&vb(t,(()=>{const o=Wy();if("deleteContentBackward"===n){if(null===o){const e=Uy();if(!Ry(e))return;ag(e.clone())}if(Ry(o)){const n=o.anchor.key===o.focus.key;if(i=e.timeStamp,"MediaLast"===Av&&i{vb(t,(()=>{Zm(null)}))}),30),Ry(o)){const e=o.anchor.getNode();e.markDirty(),o.format=e.getFormat(),by(e)||Sm(142),o.style=e.getStyle()}}else{Zm(null),e.preventDefault();const r=o.anchor.getNode().getTextContent(),i=0===o.anchor.offset&&o.focus.offset===r.length;Kp&&n&&!i||Pg(t,Zh,!0)}return}}var i;if(!Ry(o))return;const s=e.data;null!==Mv&&pg(!1,t,Mv),o.dirty&&null===Mv||!o.isCollapsed()||kb(o.anchor.getNode())||null===r||o.applyDOMRange(r),Mv=null;const a=o.anchor,l=o.focus,c=a.getNode(),u=l.getNode();if("insertText"!==n&&"insertTranspose"!==n)switch(e.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Pg(t,tp,e);break;case"insertFromComposition":Zm(null),Pg(t,tp,e);break;case"insertLineBreak":Zm(null),Pg(t,Qh,!1);break;case"insertParagraph":Zm(null),Lv&&!Wp?(Lv=!1,Pg(t,Qh,!1)):Pg(t,ep,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Pg(t,np,e);break;case"deleteByComposition":(function(e,t){return e!==t||bb(e)||bb(t)||!e.isToken()||!t.isToken()})(c,u)&&Pg(t,rp,e);break;case"deleteByDrag":case"deleteByCut":Pg(t,rp,e);break;case"deleteContent":Pg(t,Zh,!1);break;case"deleteWordBackward":Pg(t,op,!0);break;case"deleteWordForward":Pg(t,op,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Pg(t,ip,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Pg(t,ip,!1);break;case"formatStrikeThrough":Pg(t,sp,"strikethrough");break;case"formatBold":Pg(t,sp,"bold");break;case"formatItalic":Pg(t,sp,"italic");break;case"formatUnderline":Pg(t,sp,"underline");break;case"historyUndo":Pg(t,ap,void 0);break;case"historyRedo":Pg(t,lp,void 0)}else{if("\n"===s)e.preventDefault(),Pg(t,Qh,!1);else if(s===um)e.preventDefault(),Pg(t,ep,void 0);else if(null==s&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(t)}else null!=s&&Vv(o,r,s,e.timeStamp,!0)?(e.preventDefault(),Pg(t,tp,s)):Mv=s;Nv=e.timeStamp}}))}(e,t)]);let Ov=0,Av=null,Nv=0,Mv=null;const jv=new WeakMap;let Dv=!1,Iv=!1,Lv=!1,Fv=!1,zv=[0,"",0,"root",0];function Vv(e,t,n,r,o){const i=e.anchor,s=e.focus,a=i.getNode(),l=sb(),c=Fg(l._window),u=null!==c?c.anchorNode:null,d=i.key,f=l.getElementByKey(d),h=n.length;return d!==s.key||!by(a)||(!o&&(!Vp||Nv1||(o||!Vp)&&null!==f&&!a.isComposing()&&u!==Ym(f)||null!==c&&null!==t&&(!t.collapsed||t.startContainer!==c.anchorNode||t.startOffset!==c.anchorOffset)||a.getFormat()!==e.format||a.getStyle()!==e.style||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;const n=e.anchor.offset,r=t.getParentOrThrow(),o=t.isToken();return 0===n?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||o||function(e){const t=e.getPreviousSibling();return(by(t)||bb(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||o)}(e,a)}function Bv(e,t){return null!==e&&null!==e.nodeValue&&e.nodeType===Yp&&0!==t&&t!==e.nodeValue.length}function Wv(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}=e;Dv&&(Dv=!1,Bv(r,o)&&Bv(i,s))||vb(t,(()=>{if(!n)return void ag(null);if(!Wm(t,r,i))return;const a=Wy();if(Ry(a)){const n=a.anchor,r=n.getNode();if(a.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(a.dirty=!0);const o=Mg(t).event,i=o?o.timeStamp:performance.now(),[s,l,c,u,d]=zv,f=ig(),h=!1===t.isComposing()&&""===f.getTextContent();if(i{const t=Uy(),o=n.anchorNode;if(null===o)return;const i=o.nodeType;i!==qp&&i!==Yp||ag(By(t,n,r,e))})));const o=dg(r),i=o[o.length-1],s=i._key,a=Hv.get(s),l=a||i;l!==r&&Wv(n,l,!1),Wv(n,r,!0),r!==i?Hv.set(s,r):a&&Hv.delete(s)}function Yv(e){e._lexicalHandled=!0}function Xv(e){return!0===e._lexicalHandled}function Gv(e,t,n){rb();const r=e.__key,o=e.getParent();if(null===o)return;const i=function(e){const t=Wy();if(!Ry(t)||!bb(e))return t;const{anchor:n,focus:r}=t,o=n.getNode(),i=r.getNode();return Ng(o,e)&&n.set(e.__key,0,"element"),Ng(i,e)&&r.set(e.__key,0,"element"),t}(e);let s=!1;if(Ry(i)&&t){const t=i.anchor,n=i.focus;t.key===r&&(Hy(t,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0),n.key===r&&(Hy(n,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0)}else Ay(i)&&t&&e.isSelected()&&e.selectPrevious();if(Ry(i)&&t&&!s){const t=e.getIndexWithinParent();Gm(e),$y(i,o,t,-1)}else Gm(e);n||jg(o)||o.canBeEmpty()||!o.isEmpty()||Gv(o,t),t&&kb(o)&&o.isEmpty()&&o.selectEnd()}class Jv{static getType(){Sm(64,this.name)}static clone(e){Sm(65,this.name)}afterCloneFrom(e){this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev}constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,function(e,t){if(null!=t)return void(e.__key=t);rb(),ob();const n=sb(),r=ib(),o=""+zm++;r._nodeMap.set(o,e),bb(e)?n._dirtyElements.set(o,!0):n._dirtyLeaves.add(o),n._cloneNotNeeded.add(o),n._dirtyType=1,e.__key=o}(this,e)}getType(){return this.__type}isInline(){Sm(137,this.constructor.name)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;const t=eg(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){const t=e||Wy();if(null==t)return!1;const n=t.getNodes().some((e=>e.__key===this.__key));if(by(this))return n;if(Ry(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;const e=this.getParent();if(_b(this)&&this.isInline()&&e){const n=t.isBackward()?t.focus:t.anchor,r=n.getNode();if(n.offset===r.getChildrenSize()&&r.is(e)&&r.getLastChildOrThrow().is(this))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(null===e)return-1;let t=e.getFirstChild(),n=0;for(;null!==t;){if(this.is(t))return n;n++,t=t.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return null===e?null:eg(e)}getParentOrThrow(){const e=this.getParent();return null===e&&Sm(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){const t=e.getParent();if(jg(t))return bb(e)||e===this&&_b(e)||Sm(194),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&Sm(67,this.__key),e}getParents(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return null===e?null:eg(e)}getPreviousSiblings(){const e=[],t=this.getParent();if(null===t)return e;let n=t.getFirstChild();for(;null!==n&&!n.is(this);)e.push(n),n=n.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return null===e?null:eg(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=this.getParents(),n=e.getParents();bb(this)&&t.unshift(this),bb(e)&&n.unshift(e);const r=t.length,o=n.length;if(0===r||0===o||t[r-1]!==n[o-1])return null;const i=new Set(n);for(let e=0;e{s.append(e)}))),Ry(n)){ag(n);const e=n.anchor,t=n.focus;e.key===o&&Cy(e,s),t.key===o&&Cy(t,s)}return Qm()===o&&Zm(i),s}insertAfter(e,t=!0){rb(),Ig(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.getParent(),i=Wy();let s=!1,a=!1;if(null!==o){const t=e.getIndexWithinParent();if(Gm(r),Ry(i)){const e=o.__key,n=i.anchor,r=i.focus;s="element"===n.type&&n.key===e&&n.offset===t+1,a="element"===r.type&&r.key===e&&r.offset===t+1}}const l=this.getNextSibling(),c=this.getParentOrThrow().getWritable(),u=r.__key,d=n.__next;if(null===l?c.__last=u:l.getWritable().__prev=u,c.__size++,n.__next=u,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&Ry(i)){const e=this.getIndexWithinParent();$y(i,c,e+1);const t=c.__key;s&&i.anchor.set(t,e+2,"element"),a&&i.focus.set(t,e+2,"element")}return e}insertBefore(e,t=!0){rb(),Ig(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.__key;Gm(r);const i=this.getPreviousSibling(),s=this.getParentOrThrow().getWritable(),a=n.__prev,l=this.getIndexWithinParent();null===i?s.__first=o:i.getWritable().__next=o,s.__size++,n.__prev=o,r.__prev=a,r.__next=n.__key,r.__parent=n.__parent;const c=Wy();return t&&Ry(c)&&$y(c,this.getParentOrThrow(),l),e}isParentRequired(){return!1}createParentElementNode(){return Ab()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){rb();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(bb(n))return n.select();if(!by(n)){const e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){rb();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(bb(n))return n.select(0,0);if(!by(n)){const e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}}class Zv extends Jv{static getType(){return"linebreak"}static clone(e){return new Zv(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:e=>function(e){const t=e.parentElement;if(null!==t&&Bg(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&ny(n)){const n=t.lastChild;if(n===e||n.previousSibling===e&&ny(n))return!0}}return!1}(e)||function(e){const t=e.parentElement;if(null!==t&&Bg(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&ny(n))return!1;const r=t.lastChild;if(r===e||r.previousSibling===e&&ny(r))return!0}return!1}(e)?null:{conversion:Qv,priority:0}}}static importJSON(e){return ey()}exportJSON(){return{type:"linebreak",version:1}}}function Qv(e){return{node:ey()}}function ey(){return Dg(new Zv)}function ty(e){return e instanceof Zv}function ny(e){return e.nodeType===Yp&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function ry(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function oy(e,t){return 1&t?"strong":2&t?"em":"span"}function iy(e,t,n,r,o){const i=r.classList;let s=Sg(o,"base");void 0!==s&&i.add(...s),s=Sg(o,"underlineStrikethrough");let a=!1;const l=t&tm&&t&em;void 0!==s&&(n&tm&&n&em?(a=!0,l||i.add(...s)):l&&i.remove(...s));for(const e in gm){const r=gm[e];if(s=Sg(o,e),void 0!==s)if(n&r){if(a&&("underline"===e||"strikethrough"===e)){t&r&&i.remove(...s);continue}t&r&&(!l||"underline"!==e)&&"strikethrough"!==e||i.add(...s)}else t&r&&i.remove(...s)}}function sy(e,t,n){const r=t.firstChild,o=n.isComposing(),i=e+(o?cm:"");if(null==r)t.textContent=i;else{const e=r.nodeValue;if(e!==i)if(o||zp){const[t,n,o]=function(e,t){const n=e.length,r=t.length;let o=0,i=0;for(;o({conversion:py,priority:0}),b:()=>({conversion:dy,priority:0}),code:()=>({conversion:vy,priority:0}),em:()=>({conversion:vy,priority:0}),i:()=>({conversion:vy,priority:0}),s:()=>({conversion:vy,priority:0}),span:()=>({conversion:uy,priority:0}),strong:()=>({conversion:vy,priority:0}),sub:()=>({conversion:vy,priority:0}),sup:()=>({conversion:vy,priority:0}),u:()=>({conversion:vy,priority:0})}}static importJSON(e){const t=yy(e.text);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}exportDOM(e){let{element:t}=super.exportDOM(e);return null!==t&&zg(t)||Sm(132),t.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(t=ly(t,"b")),this.hasFormat("italic")&&(t=ly(t,"i")),this.hasFormat("strikethrough")&&(t=ly(t,"s")),this.hasFormat("underline")&&(t=ly(t,"u")),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(e,t){}setFormat(e){const t=this.getWritable();return t.__format="string"==typeof e?gm[e]:e,t}setDetail(e){const t=this.getWritable();return t.__detail="string"==typeof e?vm[e]:e,t}setStyle(e){const t=this.getWritable();return t.__style=e,t}toggleFormat(e){const t=Xm(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){const e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){const e=this.getWritable();return e.__detail^=2,e}setMode(e){const t=xm[e];if(this.__mode===t)return this;const n=this.getWritable();return n.__mode=t,n}setTextContent(e){if(this.__text===e)return this;const t=this.getWritable();return t.__text=e,t}select(e,t){rb();let n=e,r=t;const o=Wy(),i=this.getTextContent(),s=this.__key;if("string"==typeof i){const e=i.length;void 0===n&&(n=e),void 0===r&&(r=e)}else n=0,r=0;if(!Ry(o))return zy(s,n,s,r,"text","text");{const e=Qm();e!==o.anchor.key&&e!==o.focus.key||Zm(s),o.setTextNodeRange(this,n,this,r)}return o}selectStart(){return this.select(0,0)}selectEnd(){const e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){const o=this.getWritable(),i=o.__text,s=n.length;let a=e;a<0&&(a=s+a,a<0&&(a=0));const l=Wy();if(r&&Ry(l)){const t=e+s;l.setTextNodeRange(o,t,o,t)}const c=i.slice(0,a)+n+i.slice(a+t);return o.__text=c,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){rb();const t=this.getLatest(),n=t.getTextContent(),r=t.__key,o=Qm(),i=new Set(e),s=[],a=n.length;let l="";for(let e=0;eb&&e.offset<=l&&(e.key=a,e.offset-=b,v.dirty=!0),t.key===r&&"text"===t.type&&t.offset>b&&t.offset<=l&&(t.key=a,t.offset-=b,v.dirty=!0)}o===r&&Zm(a),b=l,y.push(i)}if(null!==d){!function(e){const t=e.getPreviousSibling(),n=e.getNextSibling();null!==t&&Jm(t),null!==n&&Jm(n)}(this);const e=d.getWritable(),t=this.getIndexWithinParent();g?(e.splice(t,0,y),this.remove()):e.splice(t,1,y),Ry(v)&&$y(v,d,t,c-1)}return y}mergeWithSibling(e){const t=e===this.getPreviousSibling();t||e===this.getNextSibling()||Sm(50);const n=this.__key,r=e.__key,o=this.__text,i=o.length;Qm()===r&&Zm(n);const s=Wy();if(Ry(s)){const o=s.anchor,a=s.focus;null!==o&&o.key===r&&(qy(o,t,n,e,i),s.dirty=!0),null!==a&&a.key===r&&(qy(a,t,n,e,i),s.dirty=!0)}const a=e.__text,l=t?a+o:o+a;this.setTextContent(l);const c=this.getWritable();return e.remove(),c}isTextEntity(){return!1}}function uy(e){return{forChild:xy(e.style),node:null}}function dy(e){const t=e,n="normal"===t.style.fontWeight;return{forChild:xy(t.style,n?void 0:"bold"),node:null}}const fy=new WeakMap;function hy(e){return"PRE"===e.nodeName||e.nodeType===qp&&void 0!==e.style&&void 0!==e.style.whiteSpace&&e.style.whiteSpace.startsWith("pre")}function py(e){const t=e;null===e.parentElement&&Sm(129);let n=t.textContent||"";if(null!==function(e){let t,n=e.parentNode;const r=[e];for(;null!==n&&void 0===(t=fy.get(n))&&!hy(n);)r.push(n),n=n.parentNode;const o=void 0===t?n:t;for(let e=0;e0){/[ \t\n]$/.test(t)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(" "===n[n.length-1]){let e=t,r=!0;for(;null!==e&&null!==(e=my(e,!0));)if((e.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return""===n?{node:null}:{node:yy(n)}}function my(e,t){let n=e;for(;;){let e;for(;null===(e=t?n.nextSibling:n.previousSibling);){const e=n.parentElement;if(null===e)return null;n=e}if(n=e,n.nodeType===qp){const e=n.style.display;if(""===e&&!Vg(n)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(n.nodeType===Yp)return n;if("BR"===n.nodeName)return null}}const gy={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function vy(e){const t=gy[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:xy(e.style,t),node:null}}function yy(e=""){return Dg(new cy(e))}function by(e){return e instanceof cy}function xy(e,t){const n=e.fontWeight,r=e.textDecoration.split(" "),o="700"===n||"bold"===n,i=r.includes("line-through"),s="italic"===e.fontStyle,a=r.includes("underline"),l=e.verticalAlign;return e=>by(e)?(o&&!e.hasFormat("bold")&&e.toggleFormat("bold"),i&&!e.hasFormat("strikethrough")&&e.toggleFormat("strikethrough"),s&&!e.hasFormat("italic")&&e.toggleFormat("italic"),a&&!e.hasFormat("underline")&&e.toggleFormat("underline"),"sub"!==l||e.hasFormat("subscript")||e.toggleFormat("subscript"),"super"!==l||e.hasFormat("superscript")||e.toggleFormat("superscript"),t&&!e.hasFormat(t)&&e.toggleFormat(t),e):e}class wy extends cy{static getType(){return"tab"}static clone(e){return new wy(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text}constructor(e){super("\t",e),this.__detail=2}static importDOM(){return null}static importJSON(e){const t=_y();return t.setFormat(e.format),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(e){Sm(126)}setDetail(e){Sm(127)}setMode(e){Sm(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function _y(){return Dg(new wy)}class Sy{constructor(e,t,n){this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){let t=this.getNode(),n=e.getNode();const r=this.offset,o=e.offset;if(bb(t)){const e=t.getDescendantByIndex(r);t=null!=e?e:t}if(bb(n)){const e=n.getDescendantByIndex(o);n=null!=e?e:n}return t===n?re&&(r=e)}else if(!bb(t)){const e=t.getNextSibling();if(by(e))n=e.__key,r=0,o="text";else{const e=t.getParent();e&&(n=e.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,o)}function Cy(e,t){if(bb(t)){const n=t.getLastDescendant();bb(n)||by(n)?Ey(e,n):Ey(e,t)}else Ey(e,t)}function Ty(e,t,n,r){e.key=t,e.offset=n,e.type=r}class Py{constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Ay(e))return!1;const t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every((e=>n.has(e)))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new Py(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const t=this.getNodes(),n=t.length,r=t[n-1];let o;if(by(r))o=r.select();else{const e=r.getIndexWithinParent()+1;o=r.getParentOrThrow().select(e,e)}o.insertNodes(e);for(let e=0;e0?[]:[s]:s.getNodesBetween(a),nb()||(this._cachedNodes=u),u}setTextNodeRange(e,t,n,r){Ty(this.anchor,e.__key,t,"text"),Ty(this.focus,n.__key,r,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){const e=this.getNodes();if(0===e.length)return"";const t=e[0],n=e[e.length-1],r=this.anchor,o=this.focus,i=r.isBefore(o),[s,a]=My(this);let l="",c=!0;for(let u=0;u=0;e--){const t=i[e];if(t.is(d)||bb(t)&&t.isParentOf(d))break;t.isAttached()&&(!h.has(t)||t.is(o)?m||g.insertAfter(t,!1):t.remove())}if(!m){let e=r,n=null;for(;null!==e;){const r=e.getChildren(),o=r.length;(0===o||r[o-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(d.isToken())if(a===f)d.select();else{const t=yy(e);t.select(),d.replace(t)}else d=d.spliceText(a,f-a,e,!0),""===d.getTextContent()?d.remove():d.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length);for(let e=1;e0&&(m===p.getTextContentSize()||Hm(p)||([p]=p.splitText(m)),p.setFormat(g));for(let t=c+1;t(bb(e)||_b(e))&&!e.isInline()))){bb(t)||Sm(135);const r=Yy(this);return t.splice(r,0,e),void n.selectEnd()}const r=function(e){const t=Ab();let n=null;for(let r=0;rl?l:a,t=a>l?a:l,n=i.splitText(e,t),r=0===e?n[0]:n[1];return null!=r?[r]:[]}return[i]}const c=r.isBefore(o);if(by(i)){const t=c?a:l;t===i.getTextContentSize()?e.shift():0!==t&&([,i]=i.splitText(t),e[0]=i)}if(by(s)){const t=s.getTextContent().length,r=c?l:a;0===r?e.pop():r!==t&&([s]=s.splitText(r),e[n]=s)}return e}modify(e,t,n){const r=this.focus,o=this.anchor,i="move"===e,s=Cg(r,t);if(_b(s)&&!s.isIsolated()){if(i&&s.isKeyboardSelectable()){const e=Vy();return e.add(s.__key),void ag(e)}const e=t?s.getPreviousSibling():s.getNextSibling();if(by(e)){const n=e.__key,s=t?e.getTextContent().length:0;return r.set(n,s,"text"),void(i&&o.set(n,s,"text"))}{const n=s.getParentOrThrow();let a,l;return bb(e)?(l=e.__key,a=t?e.getChildrenSize():0):(a=s.getIndexWithinParent(),l=n.__key,t||a++),r.set(l,a,"element"),void(i&&o.set(l,a,"element"))}}const a=sb(),l=Fg(a._window);if(!l)return;const c=a._blockCursorElement,u=a._rootElement;if(null===u||null===c||!bb(s)||s.isInline()||s.canBeEmpty()||_n(c,a,u),function(e,t,n,r){e.modify(t,n,r)}(l,e,t?"backward":"forward",n),l.rangeCount>0){const e=l.getRangeAt(0),n=this.anchor.getNode(),r=kb(n)?n:function(e){let t=e.getParentOrThrow();for(;null!==t;){if(jg(t))return t;t=t.getParentOrThrow()}return t}(n);if(this.applyDOMRange(e),this.dirty=!0,!i){const n=this.getNodes(),o=[];let i=!1;for(let e=0;e0)if(t){const e=o[0];bb(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{const e=o[o.length-1];bb(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}l.anchorNode===e.startContainer&&l.anchorOffset===e.startOffset||function(e){const t=e.focus,n=e.anchor,r=n.key,o=n.offset,i=n.type;Ty(n,t.key,t.offset,t.type),Ty(t,r,o,i),e._cachedNodes=null}(this)}}}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&bb(t)&&e.offset===t.getChildrenSize()||"text"===e.type&&e.offset===t.getTextContentSize())){const e=t.getParent(),n=t.getNextSibling()||(null===e?null:e.getNextSibling());if(bb(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(e){const t=this.isCollapsed();if(this.isCollapsed()){const t=this.anchor;let n=t.getNode();if(this.forwardDeletion(t,n,e))return;const r=this.focus,o=Cg(r,e);if(_b(o)&&!o.isIsolated()){if(o.isKeyboardSelectable()&&bb(n)&&0===n.getChildrenSize()){n.remove();const e=Vy();e.add(o.__key),ag(e)}else o.remove(),sb().dispatchCommand(Gh,void 0);return}if(!e&&bb(o)&&bb(n)&&n.isEmpty())return n.remove(),void o.selectStart();if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&0===t.offset&&("element"===t.type?t.getNode():t.getNode().getParentOrThrow()).collapseAtStart(this))return}else{const o="text"===r.type?r.getNode():null;if(n="text"===t.type?t.getNode():null,null!==o&&o.isSegmented()){const t=r.offset,i=o.getTextContentSize();if(o.is(n)||e&&t!==i||!e&&0!==t)return void jy(o,e,t)}else if(null!==n&&n.isSegmented()){const r=t.offset,i=n.getTextContentSize();if(n.is(o)||e&&0!==r||!e&&r!==i)return void jy(n,e,r)}!function(e,t){const n=e.anchor,r=e.focus,o=n.getNode();if(o===r.getNode()&&"text"===n.type&&"text"===r.type){const e=n.offset,i=r.offset,s=en||r){o.splice(e,1),r&&(a=void 0);break}}const l=o.join("").trim();""===l?r.remove():(r.setTextContent(l),r.select(a,a))}function Dy(e,t,n,r){let o,i=t;if(e.nodeType===qp){let s=!1;const a=e.childNodes,l=a.length,c=r._blockCursorElement;i===l&&(s=!0,i=l-1);let u=a[i],d=!1;if(u===c)u=a[i+1],d=!0;else if(null!==c){const n=c.parentNode;e===n&&t>Array.prototype.indexOf.call(n.children,c)&&i--}if(o=lg(u),by(o))i=cg(o,s);else{let r=lg(e);if(null===r)return null;if(bb(r)){i=Math.min(r.getChildrenSize(),i);let e=r.getChildAtIndex(i);if(bb(e)&&function(e,t,n){const r=e.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(e,0,n)){const t=s?e.getLastDescendant():e.getFirstDescendant();null===t?r=e:(e=t,r=bb(e)?e:e.getParentOrThrow()),i=0}by(e)?(o=e,r=null,i=cg(e,s)):e!==r&&s&&!d&&i++}else{const n=r.getIndexWithinParent();i=0===t&&_b(r)&&lg(e)===r?n:n+1,r=r.getParentOrThrow()}if(bb(r))return ky(r.__key,i,"element")}}else o=lg(e);return by(o)?ky(o.__key,i,"text"):null}function Iy(e,t,n){const r=e.offset,o=e.getNode();if(0===r){const r=o.getPreviousSibling(),i=o.getParent();if(t){if((n||!t)&&null===r&&bb(i)&&i.isInline()){const t=i.getPreviousSibling();by(t)&&(e.key=t.__key,e.offset=t.getTextContent().length)}}else bb(r)&&!n&&r.isInline()?(e.key=r.__key,e.offset=r.getChildrenSize(),e.type="element"):by(r)&&(e.key=r.__key,e.offset=r.getTextContent().length)}else if(r===o.getTextContent().length){const r=o.getNextSibling(),i=o.getParent();if(t&&bb(r)&&r.isInline())e.key=r.__key,e.offset=0,e.type="element";else if((n||t)&&null===r&&bb(i)&&i.isInline()&&!i.canInsertTextAfter()){const t=i.getNextSibling();by(t)&&(e.key=t.__key,e.offset=0)}}}function Ly(e,t,n){if("text"===e.type&&"text"===t.type){const r=e.isBefore(t),o=e.is(t);Iy(e,r,o),Iy(t,!r,o),o&&(t.key=e.key,t.offset=e.offset,t.type=e.type);const i=sb();if(i.isComposing()&&i._compositionKey!==e.key&&Ry(n)){const r=n.anchor,o=n.focus;Ty(e,r.key,r.offset,r.type),Ty(t,o.key,o.offset,o.type)}}}function Fy(e,t,n,r,o,i){if(null===e||null===n||!Wm(o,e,n))return null;const s=Dy(e,t,Ry(i)?i.anchor:null,o);if(null===s)return null;const a=Dy(n,r,Ry(i)?i.focus:null,o);if(null===a)return null;if("element"===s.type&&"element"===a.type){const t=lg(e),r=lg(n);if(_b(t)&&_b(r))return null}return Ly(s,a,i),[s,a]}function zy(e,t,n,r,o,i){const s=ib(),a=new Oy(ky(e,t,o),ky(n,r,i),0,"");return a.dirty=!0,s._selection=a,a}function Vy(){return new Py(new Set)}function By(e,t,n,r){const o=n._window;if(null===o)return null;const i=r||o.event,s=i?i.type:void 0,a="selectionchange"===s,l=!Cm&&(a||"beforeinput"===s||"compositionstart"===s||"compositionend"===s||"click"===s&&i&&3===i.detail||"drop"===s||void 0===s);let c,u,d,f;if(Ry(e)&&!l)return e.clone();if(null===t)return null;if(c=t.anchorNode,u=t.focusNode,d=t.anchorOffset,f=t.focusOffset,a&&Ry(e)&&!Wm(n,c,u))return e.clone();const h=Fy(c,d,u,f,n,e);if(null===h)return null;const[p,m]=h;return new Oy(p,m,Ry(e)?e.format:0,Ry(e)?e.style:"")}function Wy(){return ib()._selection}function Uy(){return sb()._editorState._selection}function $y(e,t,n,r=1){const o=e.anchor,i=e.focus,s=o.getNode(),a=i.getNode();if(!t.is(s)&&!t.is(a))return;const l=t.__key;if(e.isCollapsed()){const t=o.offset;if(n<=t&&r>0||n0||n0||n=e,s=o?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(by(s)){let e=0;o&&(e=s.getTextContentSize()),t.set(s.__key,e,"text"),r.set(s.__key,e,"text")}}else{if(bb(i)){const e=i.getChildrenSize(),r=n>=e,o=r?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(by(o)){let e=0;r&&(e=o.getTextContentSize()),t.set(o.__key,e,"text")}}if(bb(s)){const e=s.getChildrenSize(),t=o>=e,n=t?s.getChildAtIndex(e-1):s.getChildAtIndex(o);if(by(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}}function Hy(e,t,n,r,o){let i=null,s=0,a=null;null!==r?(i=r.__key,by(r)?(s=r.getTextContentSize(),a="text"):bb(r)&&(s=r.getChildrenSize(),a="element")):null!==o&&(i=o.__key,by(o)?a="text":bb(o)&&(a="element")),null!==i&&null!==a?e.set(i,s,a):(s=t.getIndexWithinParent(),-1===s&&(s=n.getChildrenSize()),e.set(n.__key,s,"element"))}function qy(e,t,n,r,o){"text"===e.type?(e.key=n,t||(e.offset+=o)):e.offset>r.getIndexWithinParent()&&(e.offset-=1)}function Yy(e){let t=e;e.isCollapsed()||t.removeText();const n=Wy();Ry(n)&&(t=n),Ry(t)||Sm(161);const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!Wg(o);)[o,i]=Xy(o,i);return i}function Xy(e,t){const n=e.getParent();if(!n){const e=Ab();return ig().append(e),e.select(),[ig(),0]}if(by(e)){const r=e.splitText(t);if(0===r.length)return[n,e.getIndexWithinParent()];const o=0===t?0:1;return[n,r[0].getIndexWithinParent()+o]}if(!bb(e)||0===t)return[n,e.getIndexWithinParent()];const r=e.getChildAtIndex(t);if(r){const n=new Oy(ky(e.__key,t,"element"),ky(e.__key,t,"element"),0,""),o=e.insertNewAfter(n);o&&o.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}let Gy=null,Jy=null,Zy=!1,Qy=!1,eb=0;const tb={characterData:!0,childList:!0,subtree:!0};function nb(){return Zy||null!==Gy&&Gy._readOnly}function rb(){Zy&&Sm(13)}function ob(){eb>99&&Sm(14)}function ib(){return null===Gy&&Sm(195,ab()),Gy}function sb(){return null===Jy&&Sm(196,ab()),Jy}function ab(){let e=0;const t=new Set,n=Db.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const o=Km(r);if(Um(o))e++;else if(o){let e=String(o.constructor.version||"<0.17.1");e===n&&(e+=" (separately built, likely a bundler configuration issue)"),t.add(e)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),r}function lb(e,t,n){const r=t.__type,o=function(e,t){const n=e._nodes.get(t);return void 0===n&&Sm(30,t),n}(e,r);let i=n.get(r);void 0===i&&(i=Array.from(o.transforms),n.set(r,i));const s=i.length;for(let e=0;e0?r.getRangeAt(0):null;if(null!==e){let t;if(e instanceof Text){const n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();!function(e,t,n){const r=n.ownerDocument,o=r.defaultView;if(null===o)return;let{top:i,bottom:s}=t,a=0,l=0,c=n;for(;null!==c;){const t=c===r.body;if(t)a=0,l=Mg(e).innerHeight;else{const e=c.getBoundingClientRect();a=e.top,l=e.bottom}let n=0;if(il&&(n=s-l),0!==n)if(t)o.scrollBy(0,n);else{const e=c.scrollTop;c.scrollTop+=n;const t=c.scrollTop-e;i-=t,s-=t}if(t)break;c=Ag(c)}}(n,t,i)}}Dv=!0}}(s,a,e,x,y,r)}(function(e,t,n){let r=e._blockCursorElement;if(Ry(n)&&n.isCollapsed()&&"element"===n.anchor.type&&t.contains(document.activeElement)){const o=n.anchor,i=o.getNode(),s=o.offset;let a=!1,l=null;if(s===i.getChildrenSize())Lg(i.getChildAtIndex(s-1))&&(a=!0);else{const t=i.getChildAtIndex(s);if(Lg(t)){const n=t.getPreviousSibling();(null===n||Lg(n))&&(a=!0,l=e.getElementByKey(t.__key))}}if(a){const n=e.getElementByKey(i.__key);return null===r&&(e._blockCursorElement=r=function(e){const t=e.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=t.blockCursor;if(void 0!==r){if("string"==typeof r){const e=km(r);r=t.blockCursor=e}void 0!==r&&n.classList.add(...r)}return n}(e._config)),t.style.caretColor="transparent",void(null===l?n.appendChild(r):n.insertBefore(r,l))}}null!==r&&_n(r,e,t)})(e,r,a),null!==h&&h.observe(r,tb)}finally{Jy=d,Gy=c}}null!==p&&function(e,t,n,r,o){const i=Array.from(e._listeners.mutation),s=i.length;for(let e=0;e{r=pb(e,t,n)})),r}const r=dg(e);for(let o=4;o>=0;o--)for(let i=0;i0||u>0;){if(l>0){t._dirtyLeaves=new Set;for(const e of a){const r=o.get(e);by(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&Lm(r),void 0!==r&&cb(r,i)&&lb(t,r,s),n.add(e)}if(a=t._dirtyLeaves,l=a.size,l>0){eb++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map;for(const e of c){const n=e[0],a=e[1];if("root"!==n&&!a)continue;const l=o.get(n);void 0!==l&&cb(l,i)&&lb(t,l,s),r.set(n,a)}a=t._dirtyLeaves,l=a.size,c=t._dirtyElements,u=c.size,eb++}t._dirtyLeaves=n,t._dirtyElements=r}(c,e),mb(e),function(e,t,n,r){const o=e._nodeMap,i=t._nodeMap,s=[];for(const[e]of r){const t=i.get(e);void 0!==t&&(t.isAttached()||(bb(t)&&qg(t,e,o,i,s,r),o.has(e)||r.delete(e),s.push(e)))}for(const e of s)i.delete(e);for(const e of n){const t=i.get(e);void 0===t||t.isAttached()||(o.has(e)||n.delete(e),i.delete(e))}}(l,c,e._dirtyLeaves,e._dirtyElements)),n!==e._compositionKey&&(c._flushSync=!0);const r=c._selection;if(Ry(r)){const e=c._nodeMap,t=r.anchor.key,n=r.focus.key;void 0!==e.get(t)&&void 0!==e.get(n)||Sm(19)}else Ay(r)&&0===r._nodes.size&&(c._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=l,e._dirtyType=Gp,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void fb(e)}finally{Gy=d,Zy=f,Jy=h,e._updating=p,eb=0}const m=e._dirtyType!==Xp||function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(null!==r){if(r.dirty||!r.is(n))return!0}else if(null!==n)return!0;return!1}(c,e);m?c._flushSync?(c._flushSync=!1,fb(e)):u&&Vm((()=>{fb(e)})):(c._flushSync=!1,u&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function vb(e,t,n){e._updating?e._updates.push([t,n]):gb(e,t,n)}class yb extends Jv{constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null}afterCloneFrom(e){super.afterCloneFrom(e),this.__first=e.__first,this.__last=e.__last,this.__size=e.__size,this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir}getFormat(){return this.getLatest().__format}getFormatType(){const e=this.getFormat();return bm[e]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const e=[];let t=this.getFirstChild();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){const e=[];let t=this.getFirstChild();for(;null!==t;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){const e=sb()._dirtyElements;return null!==e&&e.has(this.__key)}isLastChild(){const e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return null!==t&&t.is(e)}getAllTextNodes(){const e=[];let t=this.getFirstChild();for(;null!==t;){if(by(t)&&e.push(t),bb(t)){const n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;bb(e);){const t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;bb(e);){const t=e.getLastChild();if(null===t)break;e=t}return e}getDescendantByIndex(e){const t=this.getChildren(),n=t.length;if(e>=n){const e=t[n-1];return bb(e)&&e.getLastDescendant()||e||null}const r=t[e];return bb(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const e=this.getLatest().__first;return null===e?null:eg(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&Sm(45,this.__key),e}getLastChild(){const e=this.getLatest().__last;return null===e?null:eg(e)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&Sm(96,this.__key),e}getChildAtIndex(e){const t=this.getChildrenSize();let n,r;if(e=e;){if(r===e)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let e="";const t=this.getChildren(),n=t.length;for(let r=0;re.remove())),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){const t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=""!==e?ym[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){const r=n.length,o=this.getChildrenSize(),i=this.getWritable(),s=i.__key,a=[],l=[],c=this.getChildAtIndex(e+t);let u=null,d=o-t+r;if(0!==e)if(e===o)u=this.getLastChild();else{const t=this.getChildAtIndex(e);null!==t&&(u=t.getPreviousSibling())}if(t>0){let e=null===u?this.getFirstChild():u.getNextSibling();for(let n=0;n({root:Cb(ig())})))}}class Pb extends yb{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class Rb extends yb{constructor(e){super(e),this.__textFormat=0,this.__textStyle=""}static getType(){return"paragraph"}getTextFormat(){return this.getLatest().__textFormat}setTextFormat(e){const t=this.getWritable();return t.__textFormat=e,t}hasTextFormat(e){const t=gm[e];return!!(this.getTextFormat()&t)}getTextStyle(){return this.getLatest().__textStyle}setTextStyle(e){const t=this.getWritable();return t.__textStyle=e,t}static clone(e){return new Rb(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}createDOM(e){const t=document.createElement("p"),n=Sg(e.theme,"paragraph");return void 0!==n&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:Ob,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(t&&zg(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();t.style.textAlign=e;const n=this.getDirection();n&&(t.dir=n);const r=this.getIndent();r>0&&(t.style.textIndent=20*r+"px")}return{element:t}}static importJSON(e){const t=Ab();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t.setTextFormat(e.textFormat),t}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle(),type:"paragraph",version:1}}insertNewAfter(e,t){const n=Ab();n.setTextFormat(e.format),n.setTextStyle(e.style);const r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getTextStyle()),this.insertAfter(n,t),n}collapseAtStart(){const e=this.getChildren();if(0===e.length||by(e[0])&&""===e[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function Ob(e){const t=Ab();if(e.style){t.setFormat(e.style.textAlign);const n=parseInt(e.style.textIndent,10)/20;n>0&&t.setIndent(n)}return{node:t}}function Ab(){return Dg(new Rb)}function Nb(e){return e instanceof Rb}const Mb=1;function jb(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=Eb(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=Xp,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;const i=e._observer;null!==i&&(i.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==n&&(n.textContent="",o.set("root",n))}class Db{constructor(e,t,n,r,o,i,s){this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=Xp,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=fg(),this._onError=o,this._htmlConversions=i,this._editable=s,this._headless=null!==t&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){const t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){const t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){const t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){const t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){const t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,n){void 0===n&&Sm(35);const r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);const o=r.get(e);void 0===o&&Sm(36,String(e));const i=o[n];return i.add(t),()=>{i.delete(t),o.every((e=>0===e.size))&&r.delete(e)}}registerMutationListener(e,t,n){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,o=this._listeners.mutation;o.set(t,r);const i=n&&n.skipInitialization;return void 0===i||i||this.initializeMutationListener(t,r),()=>{o.delete(t)}}getRegisteredNode(e){const t=this._nodes.get(e.getType());return void 0===t&&Sm(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const n=this._editorState,r=function(e){if(!e._readOnly&&e.isEmpty())return Kg;e._readOnly||Sm(192);let t=$g.get(e);if(!t){t=new Map,$g.set(e,t);for(const[n,r]of e._nodeMap){const e=r.__type;let o=t.get(e);o||(o=new Map,t.set(e,o)),o.set(n,r)}}return t}(n).get(t.getType());if(!r)return;const o=new Map;for(const e of r.keys())o.set(e,"created");o.size>0&&e(o,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){const n=this.getRegisteredNode(e);return n.transforms.add(t),n}registerNodeTransform(e,t){const n=this.registerNodeTransformToKlass(e,t),r=[n],o=n.replaceWithKlass;if(null!=o){const e=this.registerNodeTransformToKlass(o,t);r.push(e)}var i;return i=e.getType(),vb(this,(()=>{const e=ib();if(e.isEmpty())return;if("root"===i)return void ig().markDirty();const t=e._nodeMap;for(const[,e]of t)e.markDirty()}),null===this._pendingEditorState?{tag:"history-merge"}:void 0),()=>{r.forEach((e=>e.transforms.delete(t)))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return Pg(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const t=this._rootElement;if(e!==t){const n=Sg(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,jb(this,t,e,r),null!==t&&(this._config.disableEvents||function(e){const t=e.ownerDocument,n=jv.get(t);void 0===n&&Sm(162);const r=n-1;r>=0||Sm(164),jv.set(t,r),0===r&&t.removeEventListener("selectionchange",qv);const o=Km(e);Um(o)?(function(e){if(null!==e._parentEditor){const t=dg(e),n=t[t.length-1]._key;Hv.get(n)===e&&Hv.delete(n)}else Hv.delete(e._key)}(o),e.__lexicalEditor=null):o&&Sm(198);const i=Kv(e);for(let e=0;e{Xv(e)||(Yv(e),(t.isEditable()||"click"===r)&&i(e,t))}:e=>{if(Xv(e))return;Yv(e);const n=t.isEditable();switch(r){case"cut":return n&&Pg(t,Tp,e);case"copy":return Pg(t,Cp,e);case"paste":return n&&Pg(t,np,e);case"dragstart":return n&&Pg(t,Sp,e);case"dragover":return n&&Pg(t,kp,e);case"dragend":return n&&Pg(t,Ep,e);case"focus":return n&&Pg(t,Mp,e);case"blur":return n&&Pg(t,jp,e);case"drop":return n&&Pg(t,_p,e)}};e.addEventListener(r,s),o.push((()=>{e.removeEventListener(r,s)}))}}(e,this),null!=n&&e.classList.add(...n)}else this._editorState=r,this._pendingEditorState=null,this._window=null;hb("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&Sm(38),Mm(this);const n=this._pendingEditorState,r=this._updateTags,o=void 0!==t?t.tag:null;null===n||n.isEmpty()||(null!=o&&r.add(o),fb(this)),this._pendingEditorState=e,this._dirtyType=Gp,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=o&&r.add(o),fb(this)}parseEditorState(e,t){return function(e,t,n){const r=Eb(),o=Gy,i=Zy,s=Jy,a=t._dirtyElements,l=t._dirtyLeaves,c=t._cloneNotNeeded,u=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,Gy=r,Zy=!1,Jy=t;try{const o=t._nodes;ub(e.root,o),n&&n(),r._readOnly=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=a,t._dirtyLeaves=l,t._cloneNotNeeded=c,t._dirtyType=u,Gy=o,Zy=i,Jy=s}return r}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return fb(this),this.getEditorState().read(e,{editor:this})}update(e,t){vb(this,e,t)}focus(e,t={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),vb(this,(()=>{const e=Wy(),n=ig();null!==e?e.dirty=!0:0!==n.getChildrenSize()&&("rootStart"===t.defaultSelection?n.selectStart():n.selectEnd())}),{onUpdate:()=>{n.removeAttribute("autocapitalize"),e&&e()},tag:"focus"}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;null!==e&&e.blur();const t=Fg(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,hb("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}Db.version="0.17.1+prod.esm";const Ib="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Lb=Ib?o.useLayoutEffect:o.useEffect,Fb={tag:"history-merge"};function zb({initialConfig:e,children:t}){const n=(0,o.useMemo)((()=>{const{theme:t,namespace:n,nodes:r,onError:o,editorState:i,html:s}=e,a=function(e,t){let n=null;return{getTheme:function(){return null!=t?t:null!=n?n.getTheme():null}}}(0,t),l=function(e){const t=e||{},n=Jy,r=t.theme||{},o=void 0===e?n:t.parentEditor||null,i=t.disableEvents||!1,s=Eb(),a=t.namespace||(null!==o?o._config.namespace:fg()),l=t.editorState,c=[Sb,cy,Zv,wy,Rb,Pb,...t.nodes||[]],{onError:u,html:d}=t,f=void 0===t.editable||t.editable;let h;if(void 0===e&&null!==n)h=n._nodes;else{h=new Map;for(let e=0;e{Object.keys(e).forEach((t=>{let r=n.get(t);void 0===r&&(r=[],n.set(t,r)),r.push(e[t])}))};return e.forEach((e=>{const t=e.klass.importDOM;if(null==t||r.has(t))return;r.add(t);const n=t.call(e.klass);null!==n&&o(n)})),t&&o(t),n}(h,d?d.import:void 0),f);return void 0!==l&&(p._pendingEditorState=l,p._dirtyType=Gp),p}({editable:e.editable,html:s,namespace:n,nodes:r,onError:e=>o(e,l),theme:t});return function(e,t){if(null!==t)if(void 0===t)e.update((()=>{const t=ig();if(t.isEmpty()){const n=Ab();t.append(n);const r=Ib?document.activeElement:null;(null!==Wy()||null!==r&&r===e.getRootElement())&&n.select()}}),Fb);else if(null!==t)switch(typeof t){case"string":{const n=e.parseEditorState(t);e.setEditorState(n,Fb);break}case"object":e.setEditorState(t,Fb);break;case"function":e.update((()=>{ig().isEmpty()&&t(e)}),Fb)}}(l,i),[l,a]}),[]);return Lb((()=>{const t=e.editable,[r]=n;r.setEditable(void 0===t||t)}),[]),(0,Wc.jsx)(qh.Provider,{value:n,children:t})}const Vb="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect;function Bb(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function Wb(e){return()=>function(e){if(!function(e,t=!0){if(e)return!1;let n=ig().getTextContent();return t&&(n=n.trim()),""===n}(e,!1))return!1;const t=ig().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function Hb(e,t){const n=Cg(e.focus,t);return _b(n)&&!n.isIsolated()||bb(n)&&!n.isInline()&&!n.canBeEmpty()}function qb(e,t,n){const r=function(e){const t=e.anchor.getNode();return"rtl"===(kb(t)?t:t.getParentOrThrow()).getDirection()}(e);!function(e,t,n){e.modify(t?"extend":"move",n,"character")}(e,t,n?!r:r)}function Yb(e,t,n,r=null){let o=null===r||t.isSelected(r);const i=bb(t)&&t.excludeFromCopy("html");let s=t;if(null!==r){let e=Hg(t);e=by(e)&&null!==r?function(e,t){const n=e.getStartEndPoints();if(t.isSelected(e)&&!t.isSegmented()&&!t.isToken()&&null!==n){const[r,o]=n,i=e.isBackward(),s=r.getNode(),a=o.getNode(),l=t.is(s),c=t.is(a);if(l||c){const[n,r]=My(e),o=s.is(a),l=t.is(i?a:s),c=t.is(i?s:a);let u,d=0;return o?(d=n>r?r:n,u=n>r?n:r):l?(d=i?r:n,u=void 0):c&&(d=0,u=i?n:r),t.__text=t.__text.slice(d,u),t}}return t}(r,e):e,s=e}const a=bb(s)?s.getChildren():[],l=e._nodes.get(s.getType());let c;c=l&&void 0!==l.exportDOM?l.exportDOM(e,s):s.exportDOM(e);const{element:u,after:d}=c;if(!u)return!1;const f=document.createDocumentFragment();for(let n=0;n{if(null!==e){const r=function(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}(e,KeyboardEvent)?null:e.clipboardData,o=Wy();if(null!==o&&null!=r){e.preventDefault();const i=function(e,t=Wy()){return null==t&&Xb(166),Ry(t)&&t.isCollapsed()||0===t.getNodes().length?"":function(e,t){if("undefined"==typeof document||"undefined"==typeof window&&void 0===n.g.window)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const r=document.createElement("div"),o=ig().getChildren();for(let n=0;ne.getDecorators()));return ix((()=>e.registerDecoratorListener((e=>{(0,kn.flushSync)((()=>{r(e)}))}))),[e]),(0,o.useEffect)((()=>{r(e.getDecorators())}),[e]),(0,o.useMemo)((()=>{const r=[],i=Object.keys(n);for(let s=0;se._onError(t),children:(0,Wc.jsx)(o.Suspense,{fallback:null,children:n[a]})}),c=e.getElementByKey(a);null!==c&&r.push((0,kn.createPortal)(l,c,a))}return r}),[t,n,e])}(r,n);return function(e){ix((()=>Kb(function(e){return Kb(e.registerCommand(Zh,(e=>{const t=Wy();return!!Ry(t)&&(t.deleteCharacter(e),!0)}),0),e.registerCommand(op,(e=>{const t=Wy();return!!Ry(t)&&(t.deleteWord(e),!0)}),0),e.registerCommand(ip,(e=>{const t=Wy();return!!Ry(t)&&(t.deleteLine(e),!0)}),0),e.registerCommand(tp,(e=>{const t=Wy();if(!Ry(t))return!1;if("string"==typeof e)t.insertText(e);else{const n=e.dataTransfer;if(null!=n)Gb(n,t);else{const n=e.data;n&&t.insertText(n)}}return!0}),0),e.registerCommand(rp,(()=>{const e=Wy();return!!Ry(e)&&(e.removeText(),!0)}),0),e.registerCommand(Qh,(e=>{const t=Wy();return!!Ry(t)&&(t.insertLineBreak(e),!0)}),0),e.registerCommand(ep,(()=>{const e=Wy();return!!Ry(e)&&(e.insertLineBreak(),!0)}),0),e.registerCommand(fp,(e=>{const t=Wy();if(!Ry(t))return!1;const n=e,r=n.shiftKey;return!!Hb(t,!0)&&(n.preventDefault(),qb(t,r,!0),!0)}),0),e.registerCommand(up,(e=>{const t=Wy();if(!Ry(t))return!1;const n=e,r=n.shiftKey;return!!Hb(t,!1)&&(n.preventDefault(),qb(t,r,!1),!0)}),0),e.registerCommand(yp,(t=>!!Ry(Wy())&&(t.preventDefault(),e.dispatchCommand(Zh,!0))),0),e.registerCommand(xp,(t=>!!Ry(Wy())&&(t.preventDefault(),e.dispatchCommand(Zh,!1))),0),e.registerCommand(gp,(t=>{if(!Ry(Wy()))return!1;if(null!==t){if((tx||ex||rx)&&Qb)return!1;t.preventDefault()}return e.dispatchCommand(Qh,!1)}),0),e.registerCommand(Pp,(()=>(function(){const e=ig();ag(function(e){return Fm(e.anchor),Fm(e.focus),e}(e.select(0,e.getChildrenSize())))}(),!0)),0),e.registerCommand(Cp,(t=>!!Ry(Wy())&&(ox(t,e),!0)),0),e.registerCommand(Tp,(t=>!!Ry(Wy())&&(function(e,t){ox(e,t),t.update((()=>{const e=Wy();Ry(e)&&e.removeText()}))}(t,e),!0)),0),e.registerCommand(np,(t=>!!Ry(Wy())&&(function(e,t){e.preventDefault(),t.update((()=>{const t=Wy(),{clipboardData:n}=e;null!=n&&Ry(t)&&Gb(n,t)}),{tag:"paste"})}(t,e),!0)),0),e.registerCommand(_p,(e=>!!Ry(Wy())&&(e.preventDefault(),!0)),0),e.registerCommand(Sp,(e=>!!Ry(Wy())&&(e.preventDefault(),!0)),0))}(e),function(e){const t=window.location.origin,n=n=>{if(n.origin!==t)return;const r=e.getRootElement();if(document.activeElement!==r)return;const o=n.data;if("string"==typeof o){let t;try{t=JSON.parse(o)}catch(e){return}if(t&&"nuanria_messaging"===t.protocol&&"request"===t.type){const r=t.payload;if(r&&"makeChanges"===r.functionId){const t=r.args;if(t){const[r,o,i,s,a,l]=t;e.update((()=>{const e=Wy();if(Ry(e)){const t=e.anchor;let l=t.getNode(),c=0,u=0;if(by(l)&&r>=0&&o>=0&&(c=r,u=r+o,e.setTextNodeRange(l,c,l,u)),c===u&&""===i||(e.insertRawText(i),l=t.getNode()),by(l)){c=s,u=s+a;const t=l.getTextContentSize();c=c>t?t:c,u=u>t?t:u,e.setTextNodeRange(l,c,l,u)}n.stopImmediatePropagation()}}))}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}(e))),[e])}(r),(0,Wc.jsxs)(Wc.Fragment,{children:[e,(0,Wc.jsx)(lx,{content:t}),i]})}function lx({content:e}){const[t]=Yh(),n=function(e){const[t,n]=(0,o.useState)((()=>sx(e)));return ix((()=>{function t(){const t=sx(e);n(t)}return t(),Kb(e.registerUpdateListener((()=>{t()})),e.registerEditableListener((()=>{t()})))}),[e]),t}(t),r=function(e){const[t]=Yh(),n=(0,o.useMemo)((()=>e(t)),[t,e]),r=(0,o.useRef)(n.initialValueFn()),[i,s]=(0,o.useState)(r.current);return Vb((()=>{const{initialValueFn:e,subscribe:t}=n,o=e();return r.current!==o&&(r.current=o,s(o)),t((e=>{r.current=e,s(e)}))}),[n,e]),i}(Bb);return n?"function"==typeof e?e(r):e:null}const cx="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect,ux=(0,o.forwardRef)((function({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:i,ariaExpanded:s,ariaLabel:a,ariaLabelledBy:l,ariaMultiline:c,ariaOwns:u,ariaRequired:d,autoCapitalize:f,className:h,id:p,role:m="textbox",spellCheck:g=!0,style:v,tabIndex:y,"data-testid":b,...x},w){const[_,S]=(0,o.useState)(e.isEditable()),k=(0,o.useCallback)((t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)}),[e]),E=(0,o.useMemo)((()=>function(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}(w,k)),[k,w]);return cx((()=>(S(e.isEditable()),e.registerEditableListener((e=>{S(e)})))),[e]),(0,Wc.jsx)("div",{...x,"aria-activedescendant":_?t:void 0,"aria-autocomplete":_?n:"none","aria-controls":_?r:void 0,"aria-describedby":i,"aria-expanded":_&&"combobox"===m?!!s:void 0,"aria-label":a,"aria-labelledby":l,"aria-multiline":c,"aria-owns":_?u:void 0,"aria-readonly":!_||void 0,"aria-required":d,autoCapitalize:f,className:h,contentEditable:_,"data-testid":b,id:p,ref:E,role:_?m:void 0,spellCheck:g,style:v,tabIndex:y})}));function dx(e){return e.getEditorState().read(Wb(e.isComposing()))}const fx=(0,o.forwardRef)((function(e,t){const{placeholder:n,...r}=e,[o]=Yh();return(0,Wc.jsxs)(Wc.Fragment,{children:[(0,Wc.jsx)(ux,{editor:o,...r,ref:t}),null!=n&&(0,Wc.jsx)(hx,{editor:o,content:n})]})}));function hx({content:e,editor:t}){const n=function(e){const[t,n]=(0,o.useState)((()=>dx(e)));return cx((()=>{function t(){const t=dx(e);n(t)}return t(),Kb(e.registerUpdateListener((()=>{t()})),e.registerEditableListener((()=>{t()})))}),[e]),t}(t),[r,i]=(0,o.useState)(t.isEditable());if((0,o.useLayoutEffect)((()=>(i(t.isEditable()),t.registerEditableListener((e=>{i(e)})))),[t]),!n)return null;let s=null;return"function"==typeof e?s=e(r):null!==e&&(s=e),null===s?null:(0,Wc.jsx)("div",{"aria-hidden":!0,children:s})}const px=0,mx=1,gx=2,vx=0,yx=1,bx=2,xx=3,wx=4;function Sx(e){e.undoStack=[],e.redoStack=[],e.current=null}function kx({delay:e,externalHistoryState:t}){const[n]=Yh();return function(e,t,n=1e3){const r=(0,o.useMemo)((()=>t||{current:null,redoStack:[],undoStack:[]}),[t]);(0,o.useEffect)((()=>function(e,t,n){const r=function(e,t){let n=Date.now(),r=vx;return(o,i,s,a,l,c)=>{const u=Date.now();if(c.has("historic"))return r=vx,n=u,gx;const d=function(e,t,n,r,o){if(null===e||0===n.size&&0===r.size&&!o)return vx;const i=t._selection,s=e._selection;if(o)return yx;if(!(Ry(i)&&Ry(s)&&s.isCollapsed()&&i.isCollapsed()))return vx;const a=function(e,t,n){const r=e._nodeMap,o=[];for(const e of t){const t=r.get(e);void 0!==t&&o.push(t)}for(const[e,t]of n){if(!t)continue;const n=r.get(e);void 0===n||kb(n)||o.push(n)}return o}(t,n,r);if(0===a.length)return vx;if(a.length>1){const n=t._nodeMap,r=n.get(i.anchor.key),o=n.get(s.anchor.key);return r&&o&&!e._nodeMap.has(r.__key)&&by(r)&&1===r.__text.length&&1===i.anchor.offset?bx:vx}const l=a[0],c=e._nodeMap.get(l.__key);if(!by(c)||!by(l)||c.__mode!==l.__mode)return vx;const u=c.__text,d=l.__text;if(u===d)return vx;const f=i.anchor,h=s.anchor;if(f.key!==h.key||"text"!==f.type)return vx;const p=f.offset,m=h.offset,g=d.length-u.length;return 1===g&&m===p-1?bx:-1===g&&m===p+1?xx:-1===g&&m===p?wx:vx}(o,i,a,l,e.isComposing()),f=(()=>{const f=null===s||s.editor===e,h=c.has("history-push");if(!h&&f&&c.has("history-merge"))return px;if(null===o)return mx;const p=i._selection;return a.size>0||l.size>0?!1===h&&d!==vx&&d===r&&ur.exportJSON())))===JSON.stringify(n.read((()=>o.exportJSON())))}(Array.from(a)[0],o,i)?px:mx:null!==p?px:gx})();return n=u,r=d,f}}(e,n),o=Kb(e.registerCommand(ap,(()=>(function(e,t){const n=t.redoStack,r=t.undoStack;if(0!==r.length){const o=t.current,i=r.pop();null!==o&&(n.push(o),e.dispatchCommand(Ap,!0)),0===r.length&&e.dispatchCommand(Np,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:"historic"})}}(e,t),!0)),0),e.registerCommand(lp,(()=>(function(e,t){const n=t.redoStack,r=t.undoStack;if(0!==n.length){const o=t.current;null!==o&&(r.push(o),e.dispatchCommand(Np,!0));const i=n.pop();0===n.length&&e.dispatchCommand(Ap,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:"historic"})}}(e,t),!0)),0),e.registerCommand(Rp,(()=>(Sx(t),!1)),0),e.registerCommand(Op,(()=>(Sx(t),e.dispatchCommand(Ap,!1),e.dispatchCommand(Np,!1),!0)),0),e.registerUpdateListener((({editorState:n,prevEditorState:o,dirtyLeaves:i,dirtyElements:s,tags:a})=>{const l=t.current,c=t.redoStack,u=t.undoStack,d=null===l?null:l.editorState;if(null!==l&&n===d)return;const f=r(o,n,l,i,s,a);if(f===mx)0!==c.length&&(t.redoStack=[],e.dispatchCommand(Ap,!1)),null!==l&&(u.push({...l}),e.dispatchCommand(Np,!0));else if(f===gx)return;t.current={editor:e,editorState:n}})));return o}(e,r,n)),[n,e,r])}(n,t,e),null}function Ex(e,t){return Ex=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ex(e,t)}var Cx={error:null},Tx=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o{if(n)return r.registerUpdateListener((({editorState:o,dirtyElements:i,dirtyLeaves:s,prevEditorState:a,tags:l})=>{t&&0===i.size&&0===s.size||e&&l.has("history-merge")||a.isEmpty()||n(o,r,l)}))}),[r,e,t,n]),null}function Ax({editorRef:e}){const[t]=Yh();return o.useEffect((()=>{"function"==typeof e?e(t):"object"==typeof e&&(e.current=t)}),[t]),null}var Nx={sm:"py-1.5 px-2 rounded [&_.editor-content>p]:text-xs [&_.editor-content>p]:font-medium [&_.editor-content>p]:leading-[1.625rem]",md:"py-2 px-2.5 rounded-md [&_.editor-content>p]:text-xs [&_.editor-content>p]:font-medium [&_.editor-content>p]:leading-[1.625rem]",lg:"py-2.5 px-3 rounded-md [&_.editor-content>p]:text-sm [&_.editor-content>p]:font-medium [&_.editor-content>p]:leading-[1.6875rem]"},Mx={sm:"p-1.5 rounded-md max-h-[10.75rem]",md:"p-2 rounded-lg max-h-[13.5rem]",lg:"p-2 rounded-lg max-h-[13.5rem]"},jx={sm:"p-1.5 rounded text-sm leading-5 font-normal",md:"p-2 rounded-md text-base leading-6 font-normal",lg:"p-2 rounded-md text-base leading-6 font-normal"};const Dx="startTransition",Ix="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect,Lx=e=>{const t=document.getElementById("typeahead-menu");if(!t)return;const n=t.getBoundingClientRect();n.top+n.height>window.innerHeight&&t.scrollIntoView({block:"center"}),n.top<0&&t.scrollIntoView({block:"center"}),e.scrollIntoView({block:"nearest"})};function Fx(e,t){const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.top>r.top&&n.top{d(0)}),[f]);const h=(0,o.useCallback)((n=>{t.update((()=>{const t=null!=r.match&&l?function(e){const t=Wy();if(!Ry(t)||!t.isCollapsed())return null;const n=t.anchor;if("text"!==n.type)return null;const r=n.getNode();if(!r.isSimpleText())return null;const o=n.offset,i=r.getTextContent().slice(0,o),s=e.replaceableString.length,a=o-function(e,t,n){let r=n;for(let n=r;n<=t.length;n++)e.substr(-n)===t.substr(0,n)&&(r=n);return r}(i,e.matchingString,s);if(a<0)return null;let l;return 0===a?[l]=r.splitText(o):[,l]=r.splitText(a,o),l}(r.match):null;a(n,t,e,r.match?r.match.matchingString:"")}))}),[t,l,r.match,a,e]),p=(0,o.useCallback)((e=>{const n=t.getRootElement();null!==n&&(n.setAttribute("aria-activedescendant","typeahead-item-"+e),d(e))}),[t]);return(0,o.useEffect)((()=>()=>{const e=t.getRootElement();null!==e&&e.removeAttribute("aria-activedescendant")}),[t]),Ix((()=>{null===i?d(null):null===u&&p(0)}),[i,u,p]),(0,o.useEffect)((()=>Kb(t.registerCommand(zx,(({option:e})=>!(!e.ref||null==e.ref.current||(Lx(e.ref.current),0))),c))),[t,p,c]),(0,o.useEffect)((()=>Kb(t.registerCommand(mp,(e=>{const n=e;if(null!==i&&i.length&&null!==u){const e=u!==i.length-1?u+1:0;p(e);const r=i[e];null!=r.ref&&r.ref.current&&t.dispatchCommand(zx,{index:e,option:r}),n.preventDefault(),n.stopImmediatePropagation()}return!0}),c),t.registerCommand(pp,(e=>{const t=e;if(null!==i&&i.length&&null!==u){const e=0!==u?u-1:i.length-1;p(e);const n=i[e];null!=n.ref&&n.ref.current&&Lx(n.ref.current),t.preventDefault(),t.stopImmediatePropagation()}return!0}),c),t.registerCommand(bp,(t=>{const n=t;return n.preventDefault(),n.stopImmediatePropagation(),e(),!0}),c),t.registerCommand(wp,(e=>{const t=e;return null!==i&&null!==u&&null!=i[u]&&(t.preventDefault(),t.stopImmediatePropagation(),h(i[u]),!0)}),c),t.registerCommand(gp,(e=>null!==i&&null!==u&&null!=i[u]&&(null!==e&&(e.preventDefault(),e.stopImmediatePropagation()),h(i[u]),!0)),c))),[h,e,t,i,u,p,c]),s(n,(0,o.useMemo)((()=>({options:i,selectOptionAndCleanUp:h,selectedIndex:u,setHighlightedIndex:d})),[h,u,i]),r.match?r.match.matchingString:"")}function Bx({options:e,onQueryChange:t,onSelectOption:n,onOpen:r,onClose:s,menuRenderFn:a,triggerFn:l,anchorClassName:c,commandPriority:u=Mb,parent:d}){const[f]=Yh(),[h,p]=(0,o.useState)(null),m=function(e,t,n,r=document.body){const[i]=Yh(),s=(0,o.useRef)(document.createElement("div")),a=(0,o.useCallback)((()=>{s.current.style.top=s.current.style.bottom;const t=i.getRootElement(),o=s.current,a=o.firstChild;if(null!==t&&null!==e){const{left:i,top:l,width:c,height:u}=e.getRect(),d=s.current.offsetHeight;if(o.style.top=`${l+window.pageYOffset+d+3}px`,o.style.left=`${i+window.pageXOffset}px`,o.style.height=`${u}px`,o.style.width=`${c}px`,null!==a){a.style.top=`${l}`;const e=a.getBoundingClientRect(),n=e.height,r=e.width,s=t.getBoundingClientRect();i+r>s.right&&(o.style.left=`${s.right-r+window.pageXOffset}px`),(l+n>window.innerHeight||l+n>s.bottom)&&l-s.top>n+u&&(o.style.top=l-n+window.pageYOffset-u+"px")}o.isConnected||(null!=n&&(o.className=n),o.setAttribute("aria-label","Typeahead menu"),o.setAttribute("id","typeahead-menu"),o.setAttribute("role","listbox"),o.style.display="block",o.style.position="absolute",r.append(o)),s.current=o,t.setAttribute("aria-controls","typeahead-menu")}}),[i,e,n,r]);(0,o.useEffect)((()=>{const t=i.getRootElement();if(null!==e)return a(),()=>{null!==t&&t.removeAttribute("aria-controls");const e=s.current;null!==e&&e.isConnected&&e.remove()}}),[i,a,e]);const l=(0,o.useCallback)((n=>{null!==e&&(n||t(null))}),[e,t]);return function(e,t,n,r){const[i]=Yh();(0,o.useEffect)((()=>{if(null!=t&&null!=e){const e=i.getRootElement(),o=null!=e?function(e){let t=getComputedStyle(e);const n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.body;for(let o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.body}(e):document.body;let s=!1,a=Fx(t,o);const l=function(){s||(window.requestAnimationFrame((function(){n(),s=!1})),s=!0);const e=Fx(t,o);e!==a&&(a=e,null!=r&&r(e))},c=new ResizeObserver(n);return window.addEventListener("resize",n),document.addEventListener("scroll",l,{capture:!0,passive:!0}),c.observe(t),()=>{c.unobserve(t),window.removeEventListener("resize",n),document.removeEventListener("scroll",l,!0)}}}),[t,i,r,n,e])}(e,s.current,a,l),s}(h,p,c,d),g=(0,o.useCallback)((()=>{p(null),null!=s&&null!==h&&s()}),[s,h]),v=(0,o.useCallback)((e=>{p(e),null!=r&&null===h&&r(e)}),[r,h]);return(0,o.useEffect)((()=>{const e=f.registerUpdateListener((()=>{f.getEditorState().read((()=>{const e=f._window||window,n=e.document.createRange(),r=Wy(),o=function(e){let t=null;return e.getEditorState().read((()=>{const e=Wy();Ry(e)&&(t=function(e){const t=e.anchor;if("text"!==t.type)return null;const n=t.getNode();if(!n.isSimpleText())return null;const r=t.offset;return n.getTextContent().slice(0,r)}(e))})),t}(f);if(!Ry(r)||!r.isCollapsed()||null===o||null===n)return void g();const s=l(o,f);if(t(s?s.matchingString:null),null!==s&&!function(e,t){return 0===t&&e.getEditorState().read((()=>{const e=Wy();if(Ry(e)){const t=e.anchor.getNode().getPreviousSibling();return by(t)&&t.isTextEntity()}return!1}))}(f,s.leadOffset)){const t=function(e,t,n){const r=n.getSelection();if(null===r||!r.isCollapsed)return!1;const o=r.anchorNode,i=e,s=r.anchorOffset;if(null==o||null==s)return!1;try{t.setStart(o,i),t.setEnd(o,s)}catch(e){return!1}return!0}(s.leadOffset,n,e);if(null!==t)return a=()=>v({getRect:()=>n.getBoundingClientRect(),match:s}),void(Dx in i()?i()[Dx](a):a())}var a;g()}))}));return()=>{e()}}),[f,l,t,h,g,v]),null===h||null===f?null:(0,Wc.jsx)(Vx,{close:g,resolution:h,editor:f,anchorElementRef:m,options:e,menuRenderFn:a,shouldSplitNodeWithQuery:!0,onSelectOption:n,commandPriority:u})}function Wx(e){return Wx="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},Wx(e)}function Ux(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&void 0!==arguments[2]?arguments[2]:"name",r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return cw(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cw(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)([]),2),i=r[0],s=r[1];return(0,o.useEffect)((function(){if(null!==t){var r=uw.get(t);null!==r&&(void 0===r?(uw.set(t,null),dw(e,t,(function(e){uw.set(t,e),s(e)}),n)):s(r))}else s([])}),[t]),i},hw=["size","children","selected","className"];function pw(){return pw=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n_:;",xw=["@"].join(""),ww="[^"+xw+bw+"\\s]",_w=new RegExp("(^|\\s|\\()(["+xw+"]((?:"+ww+"(?:\\.[ |$]| |["+bw+"]|)){0,75}))$"),Sw=new RegExp("(^|\\s|\\()(["+xw+"]((?:"+ww+"){0,50}))$");function kw(e){var t=_w.exec(e);if(null===t&&(t=Sw.exec(e)),null!==t){var n=t[1],r=t[3];if(r.length>=0)return{leadOffset:t.index+n.length,matchingString:r,replaceableString:t[2]}}return null}var Ew=function(e){var t=e.optionsArray,n=e.by,r=void 0===n?"name":n,i=e.size,s=void 0===i?"md":i,a=e.menuComponent,l=void 0===a?gw:a,c=e.menuItemComponent,u=void 0===c?gw.Item:c,d=vw(Yh(),1)[0],f=vw((0,o.useState)(null),2),h=f[0],p=f[1],m=fw(t,h,r),g=(0,o.useCallback)((function(e,t,n){d.update((function(){var o=tw(e.data,r,s);t&&t.replace(o),n()}))}),[d]),v=(0,o.useMemo)((function(){return m.map((function(e){return new lw(e)}))}),[d,m]);return React.createElement(Bx,{onQueryChange:p,onSelectOption:g,triggerFn:kw,options:v,menuRenderFn:function(e,t){var n=t.selectedIndex,o=t.selectOptionAndCleanUp,i=t.setHighlightedIndex;return e.current&&!(null==v||!v.length)&&React.createElement(l,{size:s},v.map((function(e,t){var a;return React.createElement(u,{key:t,ref:e.ref,size:s,selected:t===n,onMouseEnter:function(){i(t)},onClick:function(){return o(e)}},"string"==typeof e.data?e.data:null===(a=e.data)||void 0===a?void 0:a[r])})))}})},Cw={ltr:"ltr",rtl:"rtl",paragraph:"editor-paragraph",quote:"editor-quote",heading:{h1:"editor-heading-h1",h2:"editor-heading-h2",h3:"editor-heading-h3",h4:"editor-heading-h4",h5:"editor-heading-h5",h6:"editor-heading-h6"},list:{nested:{listitem:"editor-nested-listitem"},ol:"editor-list-ol",ul:"editor-list-ul",listitem:"editor-listItem",listitemChecked:"editor-listItemChecked",listitemUnchecked:"editor-listItemUnchecked"},hashtag:"editor-hashtag",image:"editor-image",link:"editor-link",text:{bold:"editor-textBold",code:"editor-textCode",italic:"editor-textItalic",strikethrough:"editor-textStrikethrough",subscript:"editor-textSubscript",superscript:"editor-textSuperscript",underline:"editor-textUnderline",underlineStrikethrough:"editor-textUnderlineStrikethrough"},code:"editor-code",codeHighlight:{atrule:"editor-tokenAttr",attr:"editor-tokenAttr",boolean:"editor-tokenProperty",builtin:"editor-tokenSelector",cdata:"editor-tokenComment",char:"editor-tokenSelector",class:"editor-tokenFunction","class-name":"editor-tokenFunction",comment:"editor-tokenComment",constant:"editor-tokenProperty",deleted:"editor-tokenProperty",doctype:"editor-tokenComment",entity:"editor-tokenOperator",function:"editor-tokenFunction",important:"editor-tokenVariable",inserted:"editor-tokenSelector",keyword:"editor-tokenAttr",namespace:"editor-tokenVariable",number:"editor-tokenProperty",operator:"editor-tokenOperator",prolog:"editor-tokenComment",property:"editor-tokenProperty",punctuation:"editor-tokenPunctuation",regex:"editor-tokenVariable",selector:"editor-tokenSelector",string:"editor-tokenSelector",symbol:"editor-tokenProperty",tag:"editor-tokenProperty",url:"editor-tokenOperator",variable:"editor-tokenVariable"}},Tw=function(e){var t=e.content;return React.createElement("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-start text-field-placeholder"},t)};function Pw(e){console.error(e)}var Rw=function(e,t){var n,r,i=e.defaultValue,s=void 0===i?"":i,a=e.placeholder,l=void 0===a?"Press @ to view variable suggestions":a,c=e.onChange,u=e.size,d=void 0===u?"md":u,f=e.autoFocus,h=void 0!==f&&f,p=e.options,m=void 0===p?[]:p,g=e.by,v=void 0===g?"name":g,y=e.menuComponent,b=e.menuItemComponent,x=e.className,w=e.disabled,_=void 0!==w&&w,S={namespace:"Editor",editorTheme:Cw,onError:Pw,nodes:[nw],editorState:s||'{\n "root": {\n "children": [\n {\n "children": [],\n "direction": null,\n "format": "",\n "indent": 0,\n "type": "paragraph",\n "version": 1,\n "textFormat": 0,\n "textStyle": ""\n }\n ],\n "direction": null,\n "format": "",\n "indent": 0,\n "type": "root",\n "version": 1\n }\n}',editable:!_};return(0,o.isValidElement)(y)&&(n=y),(0,o.isValidElement)(b)&&(r=b),React.createElement("div",{className:te("relative w-full","border border-solid focus-within:ring-2 focus-within:ring-offset-2 border-field-border hover:border-border-strong focus-within:!border-focus-border focus-within:ring-focus transition duration-150 ease-in-out",Nx[d],_&&"bg-field-secondary-background border-field-border-disabled hover:border-field-border-disabled [&_p]:text-badge-color-disabled cursor-not-allowed")},React.createElement(zb,{initialConfig:S},React.createElement("div",{className:"relative w-full [&_p]:m-0"},React.createElement(ax,{contentEditable:React.createElement(fx,{className:te("editor-content","w-full min-h-[1.625rem] [&>p]:w-full [&>p]:m-0",x)}),placeholder:React.createElement(Tw,{content:l}),ErrorBoundary:Px})),React.createElement(kx,null),React.createElement(Ew,{menuComponent:n,menuItemComponent:r,size:d,by:v,optionsArray:m}),React.createElement(Ox,{onChange:function(e,t){"function"==typeof c&&c(e,t)},ignoreSelectionChange:!0}),t&&React.createElement(Ax,{editorRef:t}),h&&React.createElement(Xh,null)))},Ow=(0,o.forwardRef)(Rw),Aw=["variant","className"];function Nw(){return Nw=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const t=u(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),a(n,t)||c(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},a=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?a(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find((({validator:e})=>e(i)))?.classGroupId},l=/^\[(.+)\]$/,c=e=>{if(l.test(e)){const t=l.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},u=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return p(Object.entries(e.classGroups),n).forEach((([e,n])=>{d(n,r,e,t)})),r},d=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return h(e)?void d(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{d(o,f(t,e),n,r)}))}else(""===e?t:f(t,e)).classGroupId=n}))},f=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},h=e=>e.isThemeGetter,p=(e,t)=>t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e,m=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},g=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,s=e=>{const n=[];let s,a=0,l=0;for(let c=0;cl?s-l:void 0}};return n?e=>n({className:e,parseClassName:s}):s},v=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t},y=/\s+/;function b(){let e,t,n=0,r="";for(;n{if("string"==typeof e)return e;let t,n="";for(let r=0;rt(e)),e());return n=(e=>({cache:m(e.cacheSize),parseClassName:g(e),...s(e)}))(c),r=n.cache.get,o=n.cache.set,i=a,a(l)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(y);let a="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t);let f=Boolean(d),h=r(f?u.substring(0,d):u);if(!h){if(!f){a=t+(a.length>0?" "+a:a);continue}if(h=r(u),!h){a=t+(a.length>0?" "+a:a);continue}f=!1}const p=v(l).join(":"),m=c?p+"!":p,g=m+h;if(i.includes(g))continue;i.push(g);const y=o(h,f);for(let e=0;e0?" "+a:a)}return a})(e,n);return o(e,i),i}return function(){return i(b.apply(null,arguments))}}const _=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},S=/^\[(?:([a-z-]+):)?(.+)\]$/i,k=/^\d+\/\d+$/,E=new Set(["px","full","screen"]),C=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,T=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,P=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,R=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,O=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,A=e=>M(e)||E.has(e)||k.test(e),N=e=>H(e,"length",q),M=e=>Boolean(e)&&!Number.isNaN(Number(e)),D=e=>H(e,"number",M),j=e=>Boolean(e)&&Number.isInteger(Number(e)),I=e=>e.endsWith("%")&&M(e.slice(0,-1)),L=e=>S.test(e),F=e=>C.test(e),z=new Set(["length","size","percentage"]),V=e=>H(e,z,Y),B=e=>H(e,"position",Y),W=new Set(["image","url"]),U=e=>H(e,W,G),K=e=>H(e,"",X),$=()=>!0,H=(e,t,n)=>{const r=S.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},q=e=>T.test(e)&&!P.test(e),Y=()=>!1,X=e=>R.test(e),G=e=>O.test(e),J=(Symbol.toStringTag,()=>{const e=_("colors"),t=_("spacing"),n=_("blur"),r=_("brightness"),o=_("borderColor"),i=_("borderRadius"),s=_("borderSpacing"),a=_("borderWidth"),l=_("contrast"),c=_("grayscale"),u=_("hueRotate"),d=_("invert"),f=_("gap"),h=_("gradientColorStops"),p=_("gradientColorStopPositions"),m=_("inset"),g=_("margin"),v=_("opacity"),y=_("padding"),b=_("saturate"),x=_("scale"),w=_("sepia"),S=_("skew"),k=_("space"),E=_("translate"),C=()=>["auto",L,t],T=()=>[L,t],P=()=>["",A,N],R=()=>["auto",M,L],O=()=>["","0",L],z=()=>[M,L];return{cacheSize:500,separator:":",theme:{colors:[$],spacing:[A,N],blur:["none","",F,L],brightness:z(),borderColor:[e],borderRadius:["none","","full",F,L],borderSpacing:T(),borderWidth:P(),contrast:z(),grayscale:O(),hueRotate:z(),invert:O(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[I,N],inset:C(),margin:C(),opacity:z(),padding:T(),saturate:z(),scale:z(),sepia:O(),skew:z(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",L]}],container:["container"],columns:[{columns:[F]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",L]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",j,L]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",L]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",j,L]}],"grid-cols":[{"grid-cols":[$]}],"col-start-end":[{col:["auto",{span:["full",j,L]},L]}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":[$]}],"row-start-end":[{row:["auto",{span:[j,L]},L]}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",L]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",L]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",L,t]}],"min-w":[{"min-w":[L,t,"min","max","fit"]}],"max-w":[{"max-w":[L,t,"none","full","min","max","fit","prose",{screen:[F]},F]}],h:[{h:[L,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[L,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[L,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[L,t,"auto","min","max","fit"]}],"font-size":[{text:["base",F,N]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",D]}],"font-family":[{font:[$]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",L]}],"line-clamp":[{"line-clamp":["none",M,D]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",A,L]}],"list-image":[{"list-image":["none",L]}],"list-style-type":[{list:["none","disc","decimal",L]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",A,N]}],"underline-offset":[{"underline-offset":["auto",A,L]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",B]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",V]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},U]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[A,L]}],"outline-w":[{outline:[A,N]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[A,N]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",F,K]}],"shadow-color":[{shadow:[$]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",F,L]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",L]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",L]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",L]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[j,L]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",L]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",L]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",L]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[A,N,D]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),Z=w(J);function Q(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;tsvg]:h-4 [&>svg]:w-4",sm:"p-2 rounded-sm [&>svg]:h-4 [&>svg]:w-4",md:"p-2.5 rounded-md text-sm [&>svg]:h-5 [&>svg]:w-5",lg:"p-3 rounded-lg text-base [&>svg]:h-6 [&>svg]:w-6"})||void 0===r?void 0:r[c],P=null,R="";w&&(R="flex items-center justify-center gap-1","left"===S?o=w:P=w);var O=h;return i().createElement(O,re({type:d,className:te(R,"border border-solid cursor-pointer transition-colors duration-300 ease-in-out text-xs font-semibold focus:ring-2 focus:ring-toggle-on focus:ring-offset-2 disabled:text-text-disabled",T,E,C,p),disabled:v},k),o,m,P)};let ie=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};var se=["id","onChange","value","defaultValue","size","disabled","label","name"];function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.filter(((e,t,n)=>Boolean(e)&&n.indexOf(e)===t)).join(" ");var he={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const pe=(0,o.forwardRef)((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:a,...l},c)=>(0,o.createElement)("svg",{ref:c,...he,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:fe("lucide",i),...l},[...a.map((([e,t])=>(0,o.createElement)(e,t))),...Array.isArray(s)?s:[s]]))),me=(e,t)=>{const n=(0,o.forwardRef)((({className:n,...r},i)=>{return(0,o.createElement)(pe,{ref:i,iconNode:t,className:fe(`lucide-${s=e,s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var s}));return n.displayName=`${e}`,n},ge=me("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),ve=me("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var ye=["id","label","defaultChecked","checked","onChange","value","indeterminate","disabled","size"];function be(){return be=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nsvg]:h-4 [&>svg]:w-4",sm:"py-2 px-2 text-base gap-1 [&>svg]:h-4 [&>svg]:w-4",md:"py-2.5 px-2.5 text-base gap-1 [&>svg]:h-5 [&>svg]:w-5"}[l],"border-0 border-r border-border-subtle border-solid");return i().createElement(i().Fragment,null,i().createElement("button",Ee({type:"button",id:v,className:te(x,"first:rounded-tl first:rounded-bl first:border-0 first:border-r first:border-border-subtle last:rounded-tr last:rounded-br last:border-0",b&&"bg-button-disabled"),onClick:function(){p&&p(r)},disabled:y},c),i().createElement("input",{type:"hidden",value:r,name:d,checked:b,onChange:p}),n))},Me={Group:function(e){var t,n,r=e.children,s=e.name,a=e.value,l=e.defaultValue,c=e.by,u=void 0===c?"id":c,d=e.as,f=void 0===d?o.Fragment:d,h=e.onChange,p=e.className,m=e.style,g=void 0===m?"simple":m,v=e.disabled,y=void 0!==v&&v,b=(0,o.useMemo)((function(){return void 0!==a}),[a]),x=(0,o.useMemo)((function(){return s||"radio-button-group-".concat(ie())}),[s]),w=(t=(0,o.useState)(b?a:l),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Pe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pe(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),_=w[0],S=w[1],k=(0,o.useCallback)((function(e){var t;t="tile"===g?e:e.target.value,b||S(t),"function"==typeof h&&h(t)}),[h]),E=te("tile"===g?"inline-flex border border-border-subtle border-solid rounded shadow-sm":"flex gap-6",p),C=function(){return i().createElement(Re.Provider,{value:{name:x,value:b?a:_,by:u,onChange:k,isControlled:b,disableAll:y,style:g}},i().Children.map(r,(function(e){return(0,o.isValidElement)(e)?e:null})))};return i().createElement(i().Fragment,null,"tile"===g?i().createElement("div",{className:E},C()):i().createElement(f,f===o.Fragment?{}:{className:p},C()))},Button:(0,o.forwardRef)(Ae)};const De=me("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),je=me("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var Ie=function(e,t){var n=e.label,r=void 0===n?"":n,o=e.size,i=void 0===o?"sm":o,s=e.className,a=void 0===s?"":s,l=e.type,c=void 0===l?"pill":l,u=e.variant,d=void 0===u?"neutral":u,f=e.icon,h=void 0===f?React.createElement(De,null):f,p=e.disabled,m=void 0!==p&&p,g=e.onClose,v=void 0===g?function(){}:g,y=e.closable,b=void 0===y||y,x=e.onMouseDown,w=void 0===x?function(){}:x,_={neutral:"bg-badge-background-gray hover:bg-badge-hover-gray text-badge-color-gray border-badge-border-gray",red:"bg-badge-background-red hover:bg-badge-hover-red text-badge-color-red border-badge-border-red",yellow:"bg-badge-background-yellow hover:bg-badge-hover-yellow text-badge-color-yellow border-badge-border-yellow",green:"bg-badge-background-green hover:bg-badge-hover-green text-badge-color-green border-badge-border-green",blue:"bg-badge-background-sky hover:bg-badge-hover-sky text-badge-color-sky border-badge-border-sky",inverse:"bg-background-inverse hover:bg-badge-hover-inverse text-text-inverse border-background-inverse",disabled:"bg-badge-background-disabled hover:bg-badge-hover-disabled text-badge-color-disabled border-badge-border-disabled disabled cursor-not-allowed"},S="",k="group relative justify-center flex items-center [&>svg]:h-4 [&>svg]:w-4 cursor-pointer";return m?(S=_.disabled,k+=" cursor-not-allowed disabled"):S=_[d],r?React.createElement("span",{className:te("font-medium border border-badge-border-gray flex gap-1 items-center justify-center border border-solid",{xs:"py-0.5 px-1 text-xs",sm:"py-1 px-1.5 text-xs",md:"py-1 px-1.5 text-sm",lg:"py-1 px-1.5 text-base"}[i],{pill:"rounded-full",rounded:"rounded"}[c],S,a),ref:t},h?React.createElement("span",{className:"justify-center flex items-center [&>svg]:h-4 [&>svg]:w-4"},h):null,r,b&&React.createElement("span",{className:k,onClick:m?null:v,onMouseDown:w,role:"button",tabIndex:0},React.createElement("span",{className:"sr-only"},"Remove ".concat(r)),React.createElement(je,null),React.createElement("span",{className:"absolute -inset-1"}))):null},Le=(0,o.forwardRef)(Ie),Fe=["id","defaultValue","value","size","className","disabled","onChange","error","onError"];function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nsvg]:h-3 [&>svg]:w-3 text-xs",sm:"w-6 h-6 [&>svg]:h-4 [&>svg]:w-4 text-sm",md:"w-8 h-8 [&>svg]:h-5 [&>svg]:w-5 text-base",lg:"w-10 h-10 [&>svg]:h-6 [&>svg]:w-6 text-lg"})||void 0===n?void 0:n[l],v=null===(r={none:"",subtle:"border border-solid border-border-transparent-subtle",ring:"border-4 border-solid border-border-white"})||void 0===r?void 0:r[f&&"none"===u?"subtle":u],y=f?"bg-cover bg-center bg-no-repeat":"";return React.createElement("div",{className:te("rounded-full overflow-hidden flex items-center justify-center",!f&&m,g,v,y,p),style:f?{backgroundImage:"url(".concat(f,")")}:{}},h?"string"==typeof h?null==h||null===(o=h[0])||void 0===o?void 0:o.toUpperCase():h:null)};const Ke=me("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);var $e=["id","type","defaultValue","value","size","className","disabled","onChange","error","onError","prefix","suffix"];function He(){return He=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0?M(t[0].name):M(null):t=e.target.value,T||"file"===i||O(t),"function"==typeof g&&g(t))},I="border border-solid border-border-subtle bg-field-secondary-background font-normal placeholder-text-tertiary text-text-primary w-full",L={sm:"px-2 py-2 rounded",md:"px-2.5 py-2.5 rounded-md",lg:"px-3 py-3 rounded-lg"},F={sm:"text-xs",md:"text-base",lg:"text-base"},z={sm:_?"pl-8":"",md:_?"pl-9":"",lg:_?"pl-10":""},V={sm:k?"pr-8":"",md:k?"pr-9":"",lg:k?"pr-10":""},B=p?"hover:border-border-disabled":"hover:border-border-strong",W="focus:border-focus-border focus:ring-2 focus:ring-toggle-on focus:ring-offset-2",U=y?"focus:border-focus-error-border focus:ring-field-color-error bg-field-background-error":"",K=y?"focus:border-focus-error-border focus:ring-field-color-error":"",$=p?"border-border-disabled bg-field-background-disabled cursor-not-allowed text-text-disabled":"",H=p?"border-border-disabled cursor-not-allowed text-text-disabled file:text-text-tertiary":"",q="font-normal placeholder-text-tertiary text-text-primary pointer-events-none absolute inset-y-0 flex flex-1 items-center [&>svg]:h-4 [&>svg]:w-4",Y=p?"font-normal placeholder-text-tertiary text-icon-disabled pointer-events-none absolute inset-y-0 flex flex-1 items-center":"font-normal placeholder-text-tertiary text-field-placeholder pointer-events-none absolute inset-y-0 flex flex-1 items-center",X=N?"file:border-0 file:bg-transparent":"text-text-tertiary file:border-0 file:bg-transparent";return"file"===i?React.createElement("div",{className:te("relative flex focus-within:z-10",f)},React.createElement("input",He({ref:t,id:C,type:"file",className:te(I,H,L[u],F[u],W,B,K,X),disabled:p,onChange:j,onInvalid:x},E)),React.createElement("div",{className:te(Y,"right-0 pr-3",{sm:"[&>svg]:h-4 [&>svg]:w-4",md:"[&>svg]:h-5 [&>svg]:w-5",lg:"[&>svg]:h-6 [&>svg]:w-6"}[u])},React.createElement(Ke,null))):React.createElement("div",{className:te("relative flex focus-within:z-10",f)},_?React.createElement("div",{className:te(q,"left-0 pl-3",F[u])},_):null,React.createElement("input",He({ref:t,id:C,type:i,className:te(I,$,L[u],F[u],z[u],V[u],W,B,U),disabled:p,onChange:j,onInvalid:x,value:D()},E)),k?React.createElement("div",{className:te(q,"right-0 pr-3",F[u])},k):null)},Ge=(0,o.forwardRef)(Xe),Je=["children","tag","size","className","variant","required"];function Ze(){return Ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t*]:text-xs [&>svg]:h-3 [&>svg]:w-3",sm:"text-sm [&>*]:text-sm [&>svg]:h-4 [&>svg]:w-4",md:"text-base [&>*]:text-base [&>svg]:h-5 [&>svg]:w-5"}[s],{neutral:"text-field-label [&>*]:text-field-label",help:"text-field-helper [&>*]:text-field-helper",error:"text-support-error [&>*]:text-support-error",disabled:"text-field-color-disabled disabled cursor-not-allowed [&>*]:text-field-color-disabled"}[u],p,l)},h),n)},et=function(e){var t=e.title,n=void 0===t?null:t,r=e.description,o=void 0===r?null:r,i=e.icon,s=void 0===i?null:i,a=e.iconPosition,l=void 0===a?"right":a,c=e.tag,u=void 0===c?"h2":c,d=e.size,f=void 0===d?"sm":d,h=e.className,p=void 0===h?"":h,m={xs:"gap-1 [&>svg]:size-3.5",sm:"gap-1 [&>svg]:size-4",md:"gap-1.5 [&>svg]:size-5",lg:"gap-1.5 [&>svg]:size-5"};if(!n)return null;var g=function(){var e=u;return React.createElement(e,{className:te("font-semibold p-0 m-0",{xs:"text-base [&>*]:text-base gap-1",sm:"text-lg [&>*]:text-lg gap-1",md:"text-xl [&>*]:text-xl gap-1.5",lg:"text-2xl [&>*]:text-2xl gap-1.5"}[f])},n)};return o?React.createElement("div",{className:p},React.createElement("div",null,s&&"left"===l&&React.createElement("div",{className:te("flex items-center",m[f])},s,g()),s&&"right"===l&&React.createElement("div",{className:te("flex items-center",m[f])},g(),s),!s&&g()),React.createElement("span",{className:te("text-text-secondary font-normal",{xs:"text-base",sm:"text-lg",md:"text-xl",lg:"text-2xl"}[f])},o)):React.createElement("div",{className:p},s&&"left"===l&&React.createElement("div",{className:te("flex items-center",m[f])},s,g()),s&&"right"===l&&React.createElement("div",{className:te("flex items-center",m[f])},g(),s),!s&&g())};const tt=me("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);var nt=function(e){var t,n,r=e.variant,o=void 0===r?"primary":r,i=e.size,s=void 0===i?"md":i,a=e.icon,l=void 0===a?null:a,c=e.className,u=void 0===c?"":c,d=null===(t={primary:"text-brand-primary-600 bg-background-primary",secondary:"text-background-primary bg-brand-primary-600"})||void 0===t?void 0:t[o],f=null===(n={sm:"[&>svg]:h-4 [&>svg]:w-4",md:"[&>svg]:h-5 [&>svg]:w-5",lg:"[&>svg]:h-6 [&>svg]:w-6",xl:"[&>svg]:h-8 [&>svg]:w-8"})||void 0===n?void 0:n[s];return React.createElement("span",{className:te("flex",f,d,u)},l||React.createElement(tt,{className:"animate-spin"}))},rt=function(e){var t=e.progress,n=void 0===t?0:t,r=e.speed,o=void 0===r?200:r,i=e.className,s=void 0===i?"":i;if(!n)return null;var a=n;n<0&&(a=0),n>100&&(a=100);var l="translateX(-".concat(100-a,"%)"),c="h-2 rounded-full bg-background-brand absolute left-0 top-0 w-full bottom-0 origin-left transition-transform duration-".concat(o," ease-linear");return React.createElement("div",{className:te("h-2 rounded-full bg-misc-progress-background overflow-hidden relative",s),role:"progressbar","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":"100"},React.createElement("div",{className:c,style:{transform:l}}))};function ot(e){return at(e)?(e.nodeName||"").toLowerCase():"#document"}function it(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function st(e){var t;return null==(t=(at(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function at(e){return e instanceof Node||e instanceof it(e).Node}function lt(e){return e instanceof Element||e instanceof it(e).Element}function ct(e){return e instanceof HTMLElement||e instanceof it(e).HTMLElement}function ut(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof it(e).ShadowRoot)}function dt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=vt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ft(e){return["table","td","th"].includes(ot(e))}function ht(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function pt(e){const t=mt(),n=lt(e)?vt(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function mt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function gt(e){return["html","body","#document"].includes(ot(e))}function vt(e){return it(e).getComputedStyle(e)}function yt(e){return lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function bt(e){if("html"===ot(e))return e;const t=e.assignedSlot||e.parentNode||ut(e)&&e.host||st(e);return ut(t)?t.host:t}function xt(e){const t=bt(e);return gt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ct(t)&&dt(t)?t:xt(t)}function wt(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=xt(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=it(o);if(i){const e=_t(s);return t.concat(s,s.visualViewport||[],dt(o)?o:[],e&&n?wt(e):[])}return t.concat(o,wt(o,[],n))}function _t(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function St(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function kt(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ut(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Et(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Ct(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function Tt(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Ot()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Pt(e){return!Ct().includes("jsdom/")&&(!Ot()&&0===e.width&&0===e.height||Ot()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function Rt(){return/apple/i.test(navigator.vendor)}function Ot(){const e=/android/i;return e.test(Et())||e.test(Ct())}function At(){return Et().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Nt(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Mt(e){return(null==e?void 0:e.ownerDocument)||document}function Dt(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function jt(e){return"composedPath"in e?e.composedPath()[0]:e.target}const It="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Lt(e){return ct(e)&&e.matches(It)}function Ft(e){e.preventDefault(),e.stopPropagation()}function zt(e){return!!e&&"combobox"===e.getAttribute("role")&&Lt(e)}const Vt=Math.min,Bt=Math.max,Wt=Math.round,Ut=Math.floor,Kt=e=>({x:e,y:e}),$t={left:"right",right:"left",bottom:"top",top:"bottom"},Ht={start:"end",end:"start"};function qt(e,t,n){return Bt(e,Vt(t,n))}function Yt(e,t){return"function"==typeof e?e(t):e}function Xt(e){return e.split("-")[0]}function Gt(e){return e.split("-")[1]}function Jt(e){return"x"===e?"y":"x"}function Zt(e){return"y"===e?"height":"width"}function Qt(e){return["top","bottom"].includes(Xt(e))?"y":"x"}function en(e){return Jt(Qt(e))}function tn(e){return e.replace(/start|end/g,(e=>Ht[e]))}function nn(e){return e.replace(/left|right|bottom|top/g,(e=>$t[e]))}function rn(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function on(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var sn=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),an="undefined"==typeof Element,ln=an?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,cn=!an&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},un=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},dn=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var s=i.shift();if(!un(s,!1))if("SLOT"===s.tagName){var a=s.assignedElements(),l=e(a.length?a:s.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:s,candidates:l})}else{ln.call(s,sn)&&r.filter(s)&&(n||!t.includes(s))&&o.push(s);var c=s.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(s),u=!un(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(c&&u){var d=e(!0===c?s.children:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:s,candidates:d})}else i.unshift.apply(i,s.children)}}return o},fn=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},hn=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!fn(e)?0:e.tabIndex},pn=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},mn=function(e){return"INPUT"===e.tagName},gn=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},vn=function(e,t){return!(t.disabled||un(t)||function(e){return mn(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=ln.call(e,"details>summary:first-of-type")?e.parentElement:e;if(ln.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return gn(e)}else{if("function"==typeof r){for(var i=e;e;){var s=e.parentElement,a=cn(e);if(s&&!s.shadowRoot&&!0===r(s))return gn(e);e=e.assignedSlot?e.assignedSlot:s||a===e.ownerDocument?s:a.host}e=i}if(function(e){var t,n,r,o,i=e&&cn(e),s=null===(t=i)||void 0===t?void 0:t.host,a=!1;if(i&&i!==e)for(a=!!(null!==(n=s)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(s)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!a&&s;){var l,c,u;a=!(null===(c=s=null===(l=i=cn(s))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(s))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n=0)},xn=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,s=i?t.scopeParent:t,a=function(e,t){var n=hn(e);return n<0&&t&&!fn(e)?0:n}(s,i),l=i?e(t.candidates):s;0===a?i?n.push.apply(n,l):n.push(s):r.push({documentOrder:o,tabIndex:a,item:t,isScope:i,content:l})})),r.sort(pn).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},wn=function(e,t){var n;return n=(t=t||{}).getShadowRoot?dn([e],t.includeContainer,{filter:yn.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:bn}):function(e,t,n){if(un(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(sn));return t&&ln.call(e,sn)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,yn.bind(null,t)),xn(n)},Sn=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==ln.call(e,sn)&&yn(t,e)},kn=window.ReactDOM;function En(e,t,n){let{reference:r,floating:o}=e;const i=Qt(t),s=en(t),a=Zt(s),l=Xt(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Gt(t)){case"start":h[s]-=f*(n&&c?-1:1);break;case"end":h[s]+=f*(n&&c?-1:1)}return h}async function Cn(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=Yt(t,e),p=rn(h),m=a[f?"floating"===d?"reference":"floating":d],g=on(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},x=on(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-x.top+p.top)/b.y,bottom:(x.bottom-g.bottom+p.bottom)/b.y,left:(g.left-x.left+p.left)/b.x,right:(x.right-g.right+p.right)/b.x}}function Tn(e){const t=vt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ct(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Wt(n)!==i||Wt(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Pn(e){return lt(e)?e:e.contextElement}function Rn(e){const t=Pn(e);if(!ct(t))return Kt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Tn(t);let s=(i?Wt(n.width):n.width)/r,a=(i?Wt(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const On=Kt(0);function An(e){const t=it(e);return mt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:On}function Nn(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Pn(e);let s=Kt(1);t&&(r?lt(r)&&(s=Rn(r)):s=Rn(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==it(e))&&t}(i,n,r)?An(i):Kt(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const e=it(i),t=r&<(r)?it(r):r;let n=e,o=_t(n);for(;o&&r&&t!==n;){const e=Rn(o),t=o.getBoundingClientRect(),r=vt(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=s,n=it(o),o=_t(n)}}return on({width:u,height:d,x:l,y:c})}function Mn(e){return Nn(st(e)).left+yt(e).scrollLeft}function Dn(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=it(e),r=st(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=mt();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=st(e),n=yt(e),r=e.ownerDocument.body,o=Bt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Bt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Mn(e);const a=-n.scrollTop;return"rtl"===vt(r).direction&&(s+=Bt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(st(e));else if(lt(t))r=function(e,t){const n=Nn(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ct(e)?Rn(e):Kt(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=An(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return on(r)}function jn(e,t){const n=bt(e);return!(n===t||!lt(n)||gt(n))&&("fixed"===vt(n).position||jn(n,t))}function In(e,t,n){const r=ct(t),o=st(t),i="fixed"===n,s=Nn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Kt(0);if(r||!r&&!i)if(("body"!==ot(t)||dt(o))&&(a=yt(t)),r){const e=Nn(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Mn(o));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Ln(e){return"static"===vt(e).position}function Fn(e,t){return ct(e)&&"fixed"!==vt(e).position?t?t(e):e.offsetParent:null}function zn(e,t){const n=it(e);if(ht(e))return n;if(!ct(e)){let t=bt(e);for(;t&&!gt(t);){if(lt(t)&&!Ln(t))return t;t=bt(t)}return n}let r=Fn(e,t);for(;r&&ft(r)&&Ln(r);)r=Fn(r,t);return r&>(r)&&Ln(r)&&!pt(r)?n:r||function(e){let t=bt(e);for(;ct(t)&&!gt(t);){if(pt(t))return t;if(ht(t))return null;t=bt(t)}return null}(e)||n}const Vn={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=st(r),a=!!t&&ht(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Kt(1);const u=Kt(0),d=ct(r);if((d||!d&&!i)&&(("body"!==ot(r)||dt(s))&&(l=yt(r)),ct(r))){const e=Nn(r);c=Rn(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:st,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?ht(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=wt(e,[],!1).filter((e=>lt(e)&&"body"!==ot(e))),o=null;const i="fixed"===vt(e).position;let s=i?bt(e):e;for(;lt(s)&&!gt(s);){const t=vt(s),n=pt(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||dt(s)&&!n&&jn(e,s))?r=r.filter((e=>e!==s)):o=t,s=bt(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=i[0],a=i.reduce(((e,n)=>{const r=Dn(t,n,o);return e.top=Bt(r.top,e.top),e.right=Vt(r.right,e.right),e.bottom=Vt(r.bottom,e.bottom),e.left=Bt(r.left,e.left),e}),Dn(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:zn,getElementRects:async function(e){const t=this.getOffsetParent||zn,n=this.getDimensions,r=await n(e.floating);return{reference:In(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Tn(e);return{width:t,height:n}},getScale:Rn,isElement:lt,isRTL:function(e){return"rtl"===vt(e).direction}};function Bn(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Pn(e),u=o||i?[...c?wt(c):[],...wt(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&a?function(e,t){let n,r=null;const o=st(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(a||t(),!d||!f)return;const h={rootMargin:-Ut(u)+"px "+-Ut(o.clientWidth-(c+d))+"px "+-Ut(o.clientHeight-(u+f))+"px "+-Ut(c)+"px",threshold:Bt(0,Vt(1,l))||1};let p=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!p)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}p=!1}try{r=new IntersectionObserver(m,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,h)}r.observe(e)}(!0),i}(c,n):null;let f,h=-1,p=null;s&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),c&&!l&&p.observe(c),p.observe(t));let m=l?Nn(e):null;return l&&function t(){const r=Nn(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(f)}}const Wn=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=Xt(n),a=Gt(n),l="y"===Qt(n),c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,d=Yt(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof p&&(h="end"===a?-1*p:p),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},Un=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Yt(e,t),c={x:n,y:r},u=await Cn(t,l),d=Qt(Xt(o)),f=Jt(d);let h=c[f],p=c[d];if(i){const e="y"===f?"bottom":"right";h=qt(h+u["y"===f?"top":"left"],h,h-u[e])}if(s){const e="y"===d?"bottom":"right";p=qt(p+u["y"===d?"top":"left"],p,p-u[e])}const m=a.fn({...t,[f]:h,[d]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},Kn=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=Yt(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Xt(o),y=Qt(a),b=Xt(a)===a,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=f||(b||!m?[nn(a)]:function(e){const t=nn(e);return[tn(e),t,tn(t)]}(a)),_="none"!==p;!f&&_&&w.push(...function(e,t,n,r){const o=Gt(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}(Xt(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(tn)))),i}(a,m,p,x));const S=[a,...w],k=await Cn(t,g),E=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&E.push(k[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Gt(e),o=en(e),i=Zt(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=nn(s)),[s,nn(s)]}(o,s,x);E.push(k[e[0]],k[e[1]])}if(C=[...C,{placement:o,overflows:E}],!E.every((e=>e<=0))){var T,P;const e=((null==(T=i.flip)?void 0:T.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(P=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:P.placement;if(!n)switch(h){case"bestFit":{var R;const e=null==(R=C.filter((e=>{if(_){const t=Qt(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:R[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},$n=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...a}=Yt(e,t),l=await Cn(t,a),c=Xt(n),u=Gt(n),d="y"===Qt(n),{width:f,height:h}=r.floating;let p,m;"top"===c||"bottom"===c?(p=c,m=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,p="end"===u?"top":"bottom");const g=h-l.top-l.bottom,v=f-l.left-l.right,y=Vt(h-l[p],g),b=Vt(f-l[m],v),x=!t.middlewareData.shift;let w=y,_=b;if(d?_=u||x?Vt(b,v):v:w=u||x?Vt(y,g):g,x&&!u){const e=Bt(l.left,0),t=Bt(l.right,0),n=Bt(l.top,0),r=Bt(l.bottom,0);d?_=f-2*(0!==e||0!==t?e+t:Bt(l.left,l.right)):w=h-2*(0!==n||0!==r?n+r:Bt(l.top,l.bottom))}await s({...t,availableWidth:_,availableHeight:w});const S=await o.getDimensions(i.floating);return f!==S.width||h!==S.height?{reset:{rects:!0}}:{}}}},Hn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Yt(e,t)||{};if(null==c)return{};const d=rn(u),f={x:n,y:r},h=en(o),p=Zt(h),m=await s.getDimensions(c),g="y"===h,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",x=i.reference[p]+i.reference[h]-f[h]-i.floating[p],w=f[h]-i.reference[h],_=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let S=_?_[b]:0;S&&await(null==s.isElement?void 0:s.isElement(_))||(S=a.floating[b]||i.floating[p]);const k=x/2-w/2,E=S/2-m[p]/2-1,C=Vt(d[v],E),T=Vt(d[y],E),P=C,R=S-m[p]-T,O=S/2-m[p]/2+k,A=qt(P,O,R),N=!l.arrow&&null!=Gt(o)&&O!==A&&i.reference[p]/2-(O{const r=new Map,o={platform:Vn,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=En(c,r,l),f=r,h={},p=0;for(let n=0;n{t.current=e})),t}const Qn=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Hn({element:n.current,padding:r}).fn(t):{}:n?Hn({element:n,padding:r}).fn(t):{};var o}}),er=(e,t)=>({...Wn(e),options:[e,t]}),tr=(e,t)=>({...Kn(e),options:[e,t]}),nr=(e,t)=>({...Qn(e),options:[e,t]}),rr={...o},or=rr.useInsertionEffect||(e=>e());function ir(e){const t=o.useRef((()=>{}));return or((()=>{t.current=e})),o.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r=e.current.length}function fr(e,t){return pr(e,{disabledIndices:t})}function hr(e,t){return pr(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function pr(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=void 0===t?{}:t;const s=e.current;let a=n;do{a+=r?-i:i}while(a>=0&&a<=s.length-1&&vr(s,a,o));return a}function mr(e,t,n,r,o){if(-1===e)return-1;const i=n.indexOf(e),s=t[e];switch(o){case"tl":return i;case"tr":return s?i+s.width-1:i;case"bl":return s?i+(s.height-1)*r:i;case"br":return n.lastIndexOf(e)}}function gr(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}function vr(e,t,n){if(n)return n.includes(t);const r=e[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}let yr=0;function br(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(yr);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():yr=requestAnimationFrame(i)}var xr="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function wr(){return wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"floating-ui-"+Math.random().toString(36).slice(2,6)+Sr++,Er=rr.useId||function(){const[e,t]=o.useState((()=>_r?kr():void 0));return xr((()=>{null==e&&t(kr())}),[]),o.useEffect((()=>{_r=!0}),[]),e},Cr=o.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:i}},width:s=14,height:a=7,tipRadius:l=0,strokeWidth:c=0,staticOffset:u,stroke:d,d:f,style:{transform:h,...p}={},...m}=e,g=Er(),[v,y]=o.useState(!1);if(xr((()=>{r&&"rtl"===vt(r).direction&&y(!0)}),[r]),!r)return null;const b=2*c,x=b/2,w=s/2*(l/-8+1),_=a/2*l/4,[S,k]=n.split("-"),E=!!f,C="top"===S||"bottom"===S,T=u&&"end"===k?"bottom":"top";let P=u&&"end"===k?"right":"left";u&&v&&(P="end"===k?"left":"right");const R=null!=(null==i?void 0:i.x)?u||i.x:"",O=null!=(null==i?void 0:i.y)?u||i.y:"",A=f||"M0,0 H"+s+" L"+(s-w)+","+(a-_)+" Q"+s/2+","+a+" "+w+","+(a-_)+" Z",N={top:E?"rotate(180deg)":"",left:E?"rotate(90deg)":"rotate(-90deg)",bottom:E?"":"rotate(180deg)",right:E?"rotate(-90deg)":"rotate(90deg)"}[S];return o.createElement("svg",wr({},m,{"aria-hidden":!0,ref:t,width:E?s:s+b,height:s,viewBox:"0 0 "+s+" "+(a>s?a:s),style:{position:"absolute",pointerEvents:"none",[P]:R,[T]:O,[S]:C||E?"100%":"calc(100% - "+b/2+"px)",transform:""+N+(null!=h?h:""),...p}}),b>0&&o.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:b+(f?0:1),d:A}),o.createElement("path",{stroke:b&&!f?m.fill:"none",d:A}),o.createElement("clipPath",{id:g},o.createElement("rect",{x:-x,y:x*(E?-1:1),width:s+b,height:s})))}));const Tr=o.createContext(null),Pr=o.createContext(null),Rr=()=>{var e;return(null==(e=o.useContext(Tr))?void 0:e.id)||null},Or=()=>o.useContext(Pr);function Ar(e){return"data-floating-ui-"+e}function Nr(e){const t=(0,o.useRef)(e);return xr((()=>{t.current=e})),t}const Mr=Ar("safe-polygon");function Dr(e,t,n){return n&&!Nt(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function jr(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}let Ir=new WeakMap,Lr=new WeakSet,Fr={},zr=0;const Vr=e=>e&&(e.host||Vr(e.parentNode)),Br=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=Vr(t);return e.contains(n)?n:null})).filter((e=>null!=e));function Wr(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=Mt(e[0]).body;return function(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,s=Br(t,e),a=new Set,l=new Set(s),c=[];Fr[o]||(Fr[o]=new WeakMap);const u=Fr[o];return s.forEach((function e(t){t&&!a.has(t)&&(a.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!l.has(t)&&[].forEach.call(t.children,(t=>{if("script"!==ot(t))if(a.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(Ir.get(t)||0)+1,s=(u.get(t)||0)+1;Ir.set(t,r),u.set(t,s),c.push(t),1===r&&n&&Lr.add(t),1===s&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}}))}(t),a.clear(),zr++,()=>{c.forEach((e=>{const t=(Ir.get(e)||0)-1,n=(u.get(e)||0)-1;Ir.set(e,t),u.set(e,n),t||(!Lr.has(e)&&i&&e.removeAttribute(i),Lr.delete(e)),n||e.removeAttribute(o)})),zr--,zr||(Ir=new WeakMap,Ir=new WeakMap,Lr=new WeakSet,Fr={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Ur=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Kr(e,t){const n=wn(e,Ur());"prev"===t&&n.reverse();const r=n.indexOf(St(Mt(e)));return n.slice(r+1)[0]}function $r(){return Kr(document.body,"next")}function Hr(){return Kr(document.body,"prev")}function qr(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!kt(n,r)}function Yr(e){wn(e,Ur()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Xr(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const Gr={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Jr(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const Zr=o.forwardRef((function(e,t){const[n,r]=o.useState();xr((()=>(Rt()&&r("button"),document.addEventListener("keydown",Jr),()=>{document.removeEventListener("keydown",Jr)})),[]);const i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[Ar("focus-guard")]:"",style:Gr};return o.createElement("span",wr({},e,i))})),Qr=o.createContext(null),eo=Ar("portal");function to(e){const{children:t,id:n,root:r=null,preserveTabOrder:i=!0}=e,s=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=Er(),i=no(),[s,a]=o.useState(null),l=o.useRef(null);return xr((()=>()=>{null==s||s.remove(),queueMicrotask((()=>{l.current=null}))}),[s]),xr((()=>{if(!r)return;if(l.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(eo,""),e.appendChild(n),l.current=n,a(n)}),[t,r]),xr((()=>{if(!r)return;if(l.current)return;let e=n||(null==i?void 0:i.portalNode);e&&!lt(e)&&(e=e.current),e=e||document.body;let o=null;t&&(o=document.createElement("div"),o.id=t,e.appendChild(o));const s=document.createElement("div");s.id=r,s.setAttribute(eo,""),e=o||e,e.appendChild(s),l.current=s,a(s)}),[t,n,r,i]),s}({id:n,root:r}),[a,l]=o.useState(null),c=o.useRef(null),u=o.useRef(null),d=o.useRef(null),f=o.useRef(null),h=!!a&&!a.modal&&a.open&&i&&!(!r&&!s);return o.useEffect((()=>{if(s&&i&&(null==a||!a.modal))return s.addEventListener("focusin",e,!0),s.addEventListener("focusout",e,!0),()=>{s.removeEventListener("focusin",e,!0),s.removeEventListener("focusout",e,!0)};function e(e){s&&qr(e)&&("focusin"===e.type?Xr:Yr)(s)}}),[s,i,null==a?void 0:a.modal]),o.createElement(Qr.Provider,{value:o.useMemo((()=>({preserveTabOrder:i,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:d,afterInsideRef:f,portalNode:s,setFocusManagerState:l})),[i,s])},h&&s&&o.createElement(Zr,{"data-type":"outside",ref:c,onFocus:e=>{if(qr(e,s)){var t;null==(t=d.current)||t.focus()}else{const e=Hr()||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),h&&s&&o.createElement("span",{"aria-owns":s.id,style:Gr}),s&&kn.createPortal(t,s),h&&s&&o.createElement(Zr,{"data-type":"outside",ref:u,onFocus:e=>{if(qr(e,s)){var t;null==(t=f.current)||t.focus()}else{const t=$r()||(null==a?void 0:a.refs.domReference.current);null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent))}}}))}const no=()=>o.useContext(Qr),ro=20;let oo=[];function io(e){oo=oo.filter((e=>e.isConnected));let t=e;if(t&&"body"!==ot(t)){if(!Sn(t,Ur())){const e=wn(t,Ur())[0];e&&(t=e)}oo.push(t),oo.length>ro&&(oo=oo.slice(-ro))}}function so(){return oo.slice().reverse().find((e=>e.isConnected))}const ao=o.forwardRef((function(e,t){return o.createElement("button",wr({},e,{type:"button",ref:t,tabIndex:-1,style:Gr}))}));function lo(e){const{context:t,children:n,disabled:r=!1,order:i=["content"],guards:s=!0,initialFocus:a=0,returnFocus:l=!0,restoreFocus:c=!1,modal:u=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:f=!0}=e,{open:h,refs:p,nodeId:m,onOpenChange:g,events:v,dataRef:y,floatingId:b,elements:{domReference:x,floating:w}}=t,_="number"==typeof a&&a<0,S=zt(x)&&_,k=!("undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype)||s,E=Nr(i),C=Nr(a),T=Nr(l),P=Or(),R=no(),O=o.useRef(null),A=o.useRef(null),N=o.useRef(!1),M=o.useRef(!1),D=o.useRef(-1),j=null!=R,I=null==w?void 0:w.firstElementChild,L=(null==I?void 0:I.id)===b?I:w,F=ir((function(e){return void 0===e&&(e=L),e?wn(e,Ur()):[]})),z=ir((e=>{const t=F(e);return E.current.map((e=>x&&"reference"===e?x:L&&"floating"===e?L:t)).filter(Boolean).flat()}));function V(e){return!r&&d&&u?o.createElement(ao,{ref:"start"===e?O:A,onClick:e=>g(!1,e.nativeEvent)},"string"==typeof d?d:"Dismiss"):null}o.useEffect((()=>{if(r)return;if(!u)return;function e(e){if("Tab"===e.key){kt(L,St(Mt(L)))&&0===F().length&&!S&&Ft(e);const t=z(),n=jt(e);"reference"===E.current[0]&&n===x&&(Ft(e),e.shiftKey?br(t[t.length-1]):br(t[1])),"floating"===E.current[1]&&n===L&&e.shiftKey&&(Ft(e),br(t[0]))}}const t=Mt(L);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[r,x,L,u,E,S,F,z]),o.useEffect((()=>{if(!r&&w)return w.addEventListener("focusin",e),()=>{w.removeEventListener("focusin",e)};function e(e){const t=jt(e),n=F().indexOf(t);-1!==n&&(D.current=n)}}),[r,w,F]),o.useEffect((()=>{if(!r&&f)return w&&ct(x)?(x.addEventListener("focusout",t),x.addEventListener("pointerdown",e),w.addEventListener("focusout",t),()=>{x.removeEventListener("focusout",t),x.removeEventListener("pointerdown",e),w.removeEventListener("focusout",t)}):void 0;function e(){M.current=!0,setTimeout((()=>{M.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(kt(x,t)||kt(w,t)||kt(t,w)||kt(null==R?void 0:R.portalNode,t)||null!=t&&t.hasAttribute(Ar("focus-guard"))||P&&(jr(P.nodesRef.current,m).find((e=>{var n,r;return kt(null==(n=e.context)?void 0:n.elements.floating,t)||kt(null==(r=e.context)?void 0:r.elements.domReference,t)}))||function(e,t){var n;let r=[],o=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;o;){const t=e.find((e=>e.id===o));o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(P.nodesRef.current,m).find((e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t}))));if(c&&n&&St(Mt(L))===Mt(L).body){ct(L)&&(null==L||L.focus());const e=D.current,t=F(),n=t[e]||t[t.length-1]||L;ct(n)&&n.focus()}!S&&u||!t||!n||M.current||t===so()||(N.current=!0,g(!1,e))}))}}),[r,x,w,L,u,m,P,R,g,f,c,F,S]),o.useEffect((()=>{var e;if(r)return;const t=Array.from((null==R||null==(e=R.portalNode)?void 0:e.querySelectorAll("["+Ar("portal")+"]"))||[]);if(w){const e=[w,...t,O.current,A.current,E.current.includes("reference")||S?x:null].filter((e=>null!=e)),n=u||S?Wr(e,k,!k):Wr(e);return()=>{n()}}}),[r,x,w,u,E,R,S,k]),xr((()=>{if(r||!ct(L))return;const e=St(Mt(L));queueMicrotask((()=>{const t=z(L),n=C.current,r=("number"==typeof n?t[n]:n.current)||L,o=kt(L,e);_||o||!h||br(r,{preventScroll:r===L})}))}),[r,h,L,_,z,C]),xr((()=>{if(r||!L)return;let e=!1;const t=Mt(L),n=St(t);let o=y.current.openEvent;const i=p.domReference.current;function s(t){let{open:n,reason:r,event:i,nested:s}=t;n&&(o=i),"escape-key"===r&&p.domReference.current&&io(p.domReference.current),"hover"===r&&"mouseleave"===i.type&&(N.current=!0),"outside-press"===r&&(s?(N.current=!1,e=!0):N.current=!(Tt(i)||Pt(i)))}return io(n),v.on("openchange",s),()=>{v.off("openchange",s);const r=St(t),a=kt(w,r)||P&&jr(P.nodesRef.current,m).some((e=>{var t;return kt(null==(t=e.context)?void 0:t.elements.floating,r)}));(a||o&&["click","mousedown"].includes(o.type))&&p.domReference.current&&io(p.domReference.current);const l=i||n,c=wn(Mt(l).body,Ur());queueMicrotask((()=>{let n=so();!n&&ct(l)&&w&&(n=function(e,t,n){const r=e.indexOf(t);function o(t){const o=Ar("focus-guard");let i=r+(t?1:0),s=e[i];for(;s&&(!s.isConnected||s.hasAttribute(o)||kt(n,s));)t?i++:i--,s=e[i];return s}return o(!0)||o(!1)}(c,l,w)),T.current&&!N.current&&ct(n)&&(n===r||r===t.body||a)&&n.focus({preventScroll:e})}))}}),[r,w,L,T,y,p,v,P,m]),xr((()=>{if(!r&&R)return R.setFocusManagerState({modal:u,closeOnFocusOut:f,open:h,onOpenChange:g,refs:p}),()=>{R.setFocusManagerState(null)}}),[r,R,u,h,g,p,f]),xr((()=>{if(r)return;if(!L)return;if("function"!=typeof MutationObserver)return;if(_)return;const e=()=>{const e=L.getAttribute("tabindex"),t=F(),n=St(Mt(w)),r=t.indexOf(n);-1!==r&&(D.current=r),E.current.includes("floating")||n!==p.domReference.current&&0===t.length?"0"!==e&&L.setAttribute("tabindex","0"):"-1"!==e&&L.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(L,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[r,w,L,p,E,F,_]);const B=!r&&k&&(!u||!S)&&(j||u);return o.createElement(o.Fragment,null,B&&o.createElement(Zr,{"data-type":"inside",ref:null==R?void 0:R.beforeInsideRef,onFocus:e=>{if(u){const e=z();br("reference"===i[0]?e[0]:e[e.length-1])}else if(null!=R&&R.preserveTabOrder&&R.portalNode)if(N.current=!1,qr(e,R.portalNode)){const e=$r()||x;null==e||e.focus()}else{var t;null==(t=R.beforeOutsideRef.current)||t.focus()}}}),!S&&V("start"),n,V("end"),B&&o.createElement(Zr,{"data-type":"inside",ref:null==R?void 0:R.afterInsideRef,onFocus:e=>{if(u)br(z()[0]);else if(null!=R&&R.preserveTabOrder&&R.portalNode)if(f&&(N.current=!0),qr(e,R.portalNode)){const e=Hr()||x;null==e||e.focus()}else{var t;null==(t=R.afterOutsideRef.current)||t.focus()}}}))}function co(e){return ct(e.target)&&"BUTTON"===e.target.tagName}function uo(e){return Lt(e)}function fo(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:s}}=e,{enabled:a=!0,event:l="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0}=t,f=o.useRef(),h=o.useRef(!1),p=o.useMemo((()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==l&&(Nt(t,!0)&&u||(!n||!c||i.current.openEvent&&"mousedown"!==i.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===l&&f.current?f.current=void 0:Nt(t,!0)&&u||(!n||!c||i.current.openEvent&&"click"!==i.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!d||co(e)||(" "!==e.key||uo(s)||(e.preventDefault(),h.current=!0),"Enter"===e.key&&r(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||co(e)||uo(s)||" "===e.key&&h.current&&(h.current=!1,r(!n||!c,e.nativeEvent,"click"))}})),[i,s,l,u,d,r,n,c]);return o.useMemo((()=>a?{reference:p}:{}),[a,p])}const ho={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},po={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},mo=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function go(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:s}=e,{enabled:a=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:d=!1,referencePressEvent:f="pointerdown",ancestorScroll:h=!1,bubbles:p,capture:m}=t,g=Or(),v=ir("function"==typeof c?c:()=>!1),y="function"==typeof c?v:c,b=o.useRef(!1),x=o.useRef(!1),{escapeKey:w,outsidePress:_}=mo(p),{escapeKey:S,outsidePress:k}=mo(m),E=ir((e=>{var t;if(!n||!a||!l||"Escape"!==e.key)return;const o=null==(t=s.current.floatingContext)?void 0:t.nodeId,i=g?jr(g.nodesRef.current,o):[];if(!w&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),C=ir((e=>{var t;const n=()=>{var t;E(e),null==(t=jt(e))||t.removeEventListener("keydown",n)};null==(t=jt(e))||t.addEventListener("keydown",n)})),T=ir((e=>{var t;const n=b.current;b.current=!1;const o=x.current;if(x.current=!1,"click"===u&&o)return;if(n)return;if("function"==typeof y&&!y(e))return;const a=jt(e),l="["+Ar("inert")+"]",c=Mt(i.floating).querySelectorAll(l);let d=lt(a)?a:null;for(;d&&!gt(d);){const e=bt(d);if(gt(e)||!lt(e))break;d=e}if(c.length&<(a)&&!a.matches("html,body")&&!kt(a,i.floating)&&Array.from(c).every((e=>!kt(d,e))))return;if(ct(a)&&O){const t=a.clientWidth>0&&a.scrollWidth>a.clientWidth,n=a.clientHeight>0&&a.scrollHeight>a.clientHeight;let r=n&&e.offsetX>a.clientWidth;if(n&&"rtl"===vt(a).direction&&(r=e.offsetX<=a.offsetWidth-a.clientWidth),r||t&&e.offsetY>a.clientHeight)return}const f=null==(t=s.current.floatingContext)?void 0:t.nodeId,h=g&&jr(g.nodesRef.current,f).some((t=>{var n;return Dt(e,null==(n=t.context)?void 0:n.elements.floating)}));if(Dt(e,i.floating)||Dt(e,i.domReference)||h)return;const p=g?jr(g.nodesRef.current,f):[];if(p.length>0){let e=!0;if(p.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),P=ir((e=>{var t;const n=()=>{var t;T(e),null==(t=jt(e))||t.removeEventListener(u,n)};null==(t=jt(e))||t.addEventListener(u,n)}));o.useEffect((()=>{if(!n||!a)return;function e(e){r(!1,e,"ancestor-scroll")}s.current.__escapeKeyBubbles=w,s.current.__outsidePressBubbles=_;const t=Mt(i.floating);l&&t.addEventListener("keydown",S?C:E,S),y&&t.addEventListener(u,k?P:T,k);let o=[];return h&&(lt(i.domReference)&&(o=wt(i.domReference)),lt(i.floating)&&(o=o.concat(wt(i.floating))),!lt(i.reference)&&i.reference&&i.reference.contextElement&&(o=o.concat(wt(i.reference.contextElement)))),o=o.filter((e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)})),o.forEach((t=>{t.addEventListener("scroll",e,{passive:!0})})),()=>{l&&t.removeEventListener("keydown",S?C:E,S),y&&t.removeEventListener(u,k?P:T,k),o.forEach((t=>{t.removeEventListener("scroll",e)}))}}),[s,i,l,y,u,n,r,h,a,w,_,E,S,C,T,k,P]),o.useEffect((()=>{b.current=!1}),[y,u]);const R=o.useMemo((()=>({onKeyDown:E,[ho[f]]:e=>{d&&r(!1,e.nativeEvent,"reference-press")}})),[E,r,d,f]),O=o.useMemo((()=>({onKeyDown:E,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[po[u]]:()=>{b.current=!0}})),[E,u]);return o.useMemo((()=>a?{reference:R,floating:O}:{}),[a,R,O])}function vo(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Er(),s=o.useRef({}),[a]=o.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),l=null!=Rr(),[c,u]=o.useState(r.reference),d=ir(((e,t,r)=>{s.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),f=o.useMemo((()=>({setPositionReference:u})),[]),h=o.useMemo((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return o.useMemo((()=>({dataRef:s,open:t,onOpenChange:d,elements:h,events:a,floatingId:i,refs:f})),[t,d,h,a,i,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[s,a]=o.useState(null),[l,c]=o.useState(null),u=(null==i?void 0:i.reference)||s,d=o.useRef(null),f=Or();xr((()=>{u&&(d.current=u)}),[u]);const h=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:a}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=o.useState(r);Xn(h,r)||p(r);const[m,g]=o.useState(null),[v,y]=o.useState(null),b=o.useCallback((e=>{e!==S.current&&(S.current=e,g(e))}),[]),x=o.useCallback((e=>{e!==k.current&&(k.current=e,y(e))}),[]),w=s||m,_=a||v,S=o.useRef(null),k=o.useRef(null),E=o.useRef(d),C=null!=c,T=Zn(c),P=Zn(i),R=o.useCallback((()=>{if(!S.current||!k.current)return;const e={placement:t,strategy:n,middleware:h};P.current&&(e.platform=P.current),qn(S.current,k.current,e).then((e=>{const t={...e,isPositioned:!0};O.current&&!Xn(E.current,t)&&(E.current=t,kn.flushSync((()=>{f(t)})))}))}),[h,t,n,P]);Yn((()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[u]);const O=o.useRef(!1);Yn((()=>(O.current=!0,()=>{O.current=!1})),[]),Yn((()=>{if(w&&(S.current=w),_&&(k.current=_),w&&_){if(T.current)return T.current(w,_,R);R()}}),[w,_,R,T,C]);const A=o.useMemo((()=>({reference:S,floating:k,setReference:b,setFloating:x})),[b,x]),N=o.useMemo((()=>({reference:w,floating:_})),[w,_]),M=o.useMemo((()=>{const e={position:n,left:0,top:0};if(!N.floating)return e;const t=Jn(N.floating,d.x),r=Jn(N.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...Gn(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,N.floating,d.x,d.y]);return o.useMemo((()=>({...d,update:R,refs:A,elements:N,floatingStyles:M})),[d,R,A,N,M])}({...e,elements:{...i,...l&&{reference:l}}}),p=o.useCallback((e=>{const t=lt(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),h.refs.setReference(t)}),[h.refs]),m=o.useCallback((e=>{(lt(e)||null===e)&&(d.current=e,a(e)),(lt(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!lt(e))&&h.refs.setReference(e)}),[h.refs]),g=o.useMemo((()=>({...h.refs,setReference:m,setPositionReference:p,domReference:d})),[h.refs,m,p]),v=o.useMemo((()=>({...h.elements,domReference:u})),[h.elements,u]),y=o.useMemo((()=>({...h,...r,refs:g,elements:v,nodeId:t})),[h,g,v,t,r]);return xr((()=>{r.dataRef.current.floatingContext=y;const e=null==f?void 0:f.nodesRef.current.find((e=>e.id===t));e&&(e.context=y)})),o.useMemo((()=>({...h,context:y,refs:g,elements:v})),[h,g,v,y])}const yo="active",bo="selected";function xo(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[yo]:t,[bo]:__,...n}=e;i=n}return{..."floating"===n&&{tabIndex:-1},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var s;o&&[yo,bo].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(s=r.get(n))||s.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;ie(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}function wo(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),i=o.useCallback((t=>xo(t,e,"reference")),t),s=o.useCallback((t=>xo(t,e,"floating")),n),a=o.useCallback((t=>xo(t,e,"item")),r);return o.useMemo((()=>({getReferenceProps:i,getFloatingProps:s,getItemProps:a})),[i,s,a])}let _o=!1;function So(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function ko(e,t){return So(t,e===sr||e===ar,e===lr||e===cr)}function Eo(e,t,n){return So(t,e===ar,n?e===lr:e===cr)||"Enter"===e||" "===e||""===e}function Co(e,t,n){return So(t,n?e===cr:e===lr,e===sr)}function To(e,t){const{open:n,onOpenChange:r,elements:i}=e,{listRef:s,activeIndex:a,onNavigate:l=()=>{},enabled:c=!0,selectedIndex:u=null,allowEscape:d=!1,loop:f=!1,nested:h=!1,rtl:p=!1,virtual:m=!1,focusItemOnOpen:g="auto",focusItemOnHover:v=!0,openOnArrowKeyDown:y=!0,disabledIndices:b,orientation:x="vertical",cols:w=1,scrollItemIntoView:_=!0,virtualItemRef:S,itemSizes:k,dense:E=!1}=t,C=Rr(),T=Or(),P=ir(l),R=o.useRef(g),O=o.useRef(null!=u?u:-1),A=o.useRef(null),N=o.useRef(!0),M=o.useRef(P),D=o.useRef(!!i.floating),j=o.useRef(n),I=o.useRef(!1),L=o.useRef(!1),F=Nr(b),z=Nr(n),V=Nr(_),B=Nr(i.floating),W=Nr(u),[U,K]=o.useState(),[$,H]=o.useState(),q=ir((function(e,t,n){function r(e){m?(K(e.id),null==T||T.events.emit("virtualfocus",e),S&&(S.current=e)):br(e,{preventScroll:!0,sync:!(!At()||!Rt())&&(_o||I.current)})}void 0===n&&(n=!1);const o=e.current[t.current];o&&r(o),requestAnimationFrame((()=>{const i=e.current[t.current]||o;if(!i)return;o||r(i);const s=V.current;s&&X&&(n||!N.current)&&(null==i.scrollIntoView||i.scrollIntoView("boolean"==typeof s?{block:"nearest",inline:"nearest"}:s))}))}));xr((()=>{document.createElement("div").focus({get preventScroll(){return _o=!0,!1}})}),[]),xr((()=>{c&&(n&&i.floating?R.current&&null!=u&&(L.current=!0,O.current=u,P(u)):D.current&&(O.current=-1,M.current(null)))}),[c,n,i.floating,u,P]),xr((()=>{if(c&&n&&i.floating)if(null==a){if(I.current=!1,null!=W.current)return;if(D.current&&(O.current=-1,q(s,O)),(!j.current||!D.current)&&R.current&&(null!=A.current||!0===R.current&&null==A.current)){let e=0;const t=()=>{null==s.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(O.current=null==A.current||Eo(A.current,x,p)||h?fr(s,F.current):hr(s,F.current),A.current=null,P(O.current))};t()}}else dr(s,a)||(O.current=a,q(s,O,L.current),L.current=!1)}),[c,n,i.floating,a,W,h,s,x,p,P,q,F]),xr((()=>{var e;if(!c||i.floating||!T||m||!D.current)return;const t=T.nodesRef.current,n=null==(e=t.find((e=>e.id===C)))||null==(e=e.context)?void 0:e.elements.floating,r=St(Mt(i.floating)),o=t.some((e=>e.context&&kt(e.context.elements.floating,r)));n&&!o&&N.current&&n.focus({preventScroll:!0})}),[c,i.floating,T,C,m]),xr((()=>{if(c&&T&&m&&!C)return T.events.on("virtualfocus",e),()=>{T.events.off("virtualfocus",e)};function e(e){H(e.id),S&&(S.current=e)}}),[c,T,m,C,S]),xr((()=>{M.current=P,D.current=!!i.floating})),xr((()=>{n||(A.current=null)}),[n]),xr((()=>{j.current=n}),[n]);const Y=null!=a,X=o.useMemo((()=>{function e(e){if(!n)return;const t=s.current.indexOf(e);-1!==t&&P(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...v&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;N.current&&"touch"!==t&&(O.current=-1,q(s,O),P(null),m||br(B.current,{preventScroll:!0}))}}}}),[n,B,q,v,s,P,m]),G=ir((e=>{if(N.current=!1,I.current=!0,!z.current&&e.currentTarget===B.current)return;if(h&&Co(e.key,x,p))return Ft(e),r(!1,e.nativeEvent,"list-navigation"),void(ct(i.domReference)&&!m&&i.domReference.focus());const t=O.current,o=fr(s,b),a=hr(s,b);if("Home"===e.key&&(Ft(e),O.current=o,P(O.current)),"End"===e.key&&(Ft(e),O.current=a,P(O.current)),w>1){const t=k||Array.from({length:s.current.length},(()=>({width:1,height:1}))),n=function(e,t,n){const r=[];let o=0;return e.forEach(((e,i)=>{let{width:s,height:a}=e,l=!1;for(n&&(o=0);!l;){const e=[];for(let n=0;nnull==r[e]))?(e.forEach((e=>{r[e]=i})),l=!0):o++}})),[...r]}(t,w,E),r=n.findIndex((e=>null!=e&&!vr(s.current,e,b))),i=n.reduce(((e,t,n)=>null==t||vr(s.current,t,b)?e:n),-1);if(O.current=n[function(e,t){let{event:n,orientation:r,loop:o,cols:i,disabledIndices:s,minIndex:a,maxIndex:l,prevIndex:c,stopEvent:u=!1}=t,d=c;if(n.key===sr){if(u&&Ft(n),-1===c)d=l;else if(d=pr(e,{startingIndex:d,amount:i,decrement:!0,disabledIndices:s}),o&&(c-ie?n:n-i}dr(e,d)&&(d=c)}if(n.key===ar&&(u&&Ft(n),-1===c?d=a:(d=pr(e,{startingIndex:c,amount:i,disabledIndices:s}),o&&c+i>l&&(d=pr(e,{startingIndex:c%i-i,amount:i,disabledIndices:s}))),dr(e,d)&&(d=c)),"both"===r){const t=Ut(c/i);n.key===cr&&(u&&Ft(n),c%i!=i-1?(d=pr(e,{startingIndex:c,disabledIndices:s}),o&&ur(d,i,t)&&(d=pr(e,{startingIndex:c-c%i-1,disabledIndices:s}))):o&&(d=pr(e,{startingIndex:c-c%i-1,disabledIndices:s})),ur(d,i,t)&&(d=c)),n.key===lr&&(u&&Ft(n),c%i!=0?(d=pr(e,{startingIndex:c,decrement:!0,disabledIndices:s}),o&&ur(d,i,t)&&(d=pr(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s}))):o&&(d=pr(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:s})),ur(d,i,t)&&(d=c));const r=Ut(l/i)===t;dr(e,d)&&(d=o&&r?n.key===lr?l:pr(e,{startingIndex:c-c%i-1,disabledIndices:s}):c)}return d}({current:n.map((e=>null!=e?s.current[e]:null))},{event:e,orientation:x,loop:f,cols:w,disabledIndices:gr([...b||s.current.map(((e,t)=>vr(s.current,t)?t:void 0)),void 0],n),minIndex:r,maxIndex:i,prevIndex:mr(O.current>a?o:O.current,t,n,w,e.key===ar?"bl":e.key===cr?"tr":"tl"),stopEvent:!0})],P(O.current),"both"===x)return}if(ko(e.key,x)){if(Ft(e),n&&!m&&St(e.currentTarget.ownerDocument)===e.currentTarget)return O.current=Eo(e.key,x,p)?o:a,void P(O.current);Eo(e.key,x,p)?O.current=f?t>=a?d&&t!==s.current.length?-1:o:pr(s,{startingIndex:t,disabledIndices:b}):Math.min(a,pr(s,{startingIndex:t,disabledIndices:b})):O.current=f?t<=o?d&&-1!==t?s.current.length:a:pr(s,{startingIndex:t,decrement:!0,disabledIndices:b}):Math.max(o,pr(s,{startingIndex:t,decrement:!0,disabledIndices:b})),dr(s,O.current)?P(null):P(O.current)}})),J=o.useMemo((()=>m&&n&&Y&&{"aria-activedescendant":$||U}),[m,n,Y,$,U]),Z=o.useMemo((()=>({"aria-orientation":"both"===x?void 0:x,...!zt(i.domReference)&&J,onKeyDown:G,onPointerMove(){N.current=!0}})),[J,G,i.domReference,x]),Q=o.useMemo((()=>{function e(e){"auto"===g&&Tt(e.nativeEvent)&&(R.current=!0)}return{...J,onKeyDown(e){N.current=!1;const t=0===e.key.indexOf("Arrow"),o=function(e,t,n){return So(t,n?e===lr:e===cr,e===ar)}(e.key,x,p),i=Co(e.key,x,p),a=ko(e.key,x),l=(h?o:a)||"Enter"===e.key||""===e.key.trim();if(m&&n){const n=null==T?void 0:T.nodesRef.current.find((e=>null==e.parentId)),r=T&&n?function(e,t){let n,r=-1;return function t(o,i){i>r&&(n=o,r=i),jr(e,o).forEach((e=>{t(e.id,i+1)}))}(t,0),e.find((e=>e.id===n))}(T.nodesRef.current,n.id):null;if(t&&r&&S){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(o||i){var c,d;const n=(null==(c=r.context)?void 0:c.elements.domReference)===e.currentTarget,a=i&&!n?null==(d=r.context)?void 0:d.elements.domReference:o?s.current.find((e=>(null==e?void 0:e.id)===U)):null;a&&(Ft(e),a.dispatchEvent(t),H(void 0))}var f;if(a&&r.context&&r.context.open&&r.parentId&&e.currentTarget!==r.context.elements.domReference)return Ft(e),void(null==(f=r.context.elements.domReference)||f.dispatchEvent(t))}return G(e)}(n||y||!t)&&(l&&(A.current=h&&a?null:e.key),h?o&&(Ft(e),n?(O.current=fr(s,F.current),P(O.current)):r(!0,e.nativeEvent,"list-navigation")):a&&(null!=u&&(O.current=u),Ft(e),!n&&y?r(!0,e.nativeEvent,"list-navigation"):G(e),n&&P(O.current)))},onFocus(){n&&!m&&P(null)},onPointerDown:function(e){R.current=g,"auto"===g&&Pt(e.nativeEvent)&&(R.current=!0)},onMouseDown:e,onClick:e}}),[U,J,G,F,g,s,h,P,r,n,y,x,p,u,T,m,S]);return o.useMemo((()=>c?{reference:Q,floating:Z,item:X}:{}),[c,Q,Z,X])}const Po=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Ro(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:i}=e,{enabled:s=!0,role:a="dialog"}=t,l=null!=(n=Po.get(a))?n:a,c=Er(),u=null!=Rr(),d=o.useMemo((()=>"tooltip"===l||"label"===a?{["aria-"+("label"===a?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":r?i:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:c},..."menu"===l&&u&&{role:"menuitem"},..."select"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}}),[l,i,u,r,c,a]),f=o.useMemo((()=>{const e={id:i,...l&&{role:l}};return"tooltip"===l||"label"===a?e:{...e,..."menu"===l&&{"aria-labelledby":c}}}),[l,i,c,a]),h=o.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:i+"-option"}};switch(a){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[i,a]);return o.useMemo((()=>s?{reference:d,floating:f,item:h}:{}),[s,d,f,h])}const Oo=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function Ao(e,t){return"function"==typeof e?e(t):e}function No(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,s=i-1;e=r!=c>=r&&n<=(l-i)*(r-a)/(c-a)+i&&(o=!o)}return o}function Mo(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,s=null,a=null,l=performance.now();const c=e=>{let{x:n,y:c,placement:u,elements:d,onClose:f,nodeId:h,tree:p}=e;return function(e){function m(){clearTimeout(o),f()}if(clearTimeout(o),!d.domReference||!d.floating||null==u||null==n||null==c)return;const{clientX:g,clientY:v}=e,y=[g,v],b=jt(e),x="mouseleave"===e.type,w=kt(d.floating,b),_=kt(d.domReference,b),S=d.domReference.getBoundingClientRect(),k=d.floating.getBoundingClientRect(),E=u.split("-")[0],C=n>k.right-k.width/2,T=c>k.bottom-k.height/2,P=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(y,S),R=k.width>S.width,O=k.height>S.height,A=(R?S:k).left,N=(R?S:k).right,M=(O?S:k).top,D=(O?S:k).bottom;if(w&&(i=!0,!x))return;if(_&&(i=!1),_&&!x)return void(i=!0);if(x&<(e.relatedTarget)&&kt(d.floating,e.relatedTarget))return;if(p&&jr(p.nodesRef.current,h).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===E&&c>=S.bottom-1||"bottom"===E&&c<=S.top+1||"left"===E&&n>=S.right-1||"right"===E&&n<=S.left+1)return m();let j=[];switch(E){case"top":j=[[A,S.top+1],[A,k.bottom-1],[N,k.bottom-1],[N,S.top+1]];break;case"bottom":j=[[A,k.top+1],[A,S.bottom-1],[N,S.bottom-1],[N,k.top+1]];break;case"left":j=[[k.right-1,D],[k.right-1,M],[S.left+1,M],[S.left+1,D]];break;case"right":j=[[S.right-1,D],[S.right-1,M],[k.left+1,M],[k.left+1,D]]}if(!No([g,v],j)){if(i&&!P)return m();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===s||null===a||0===r)return s=e,a=t,l=n,null;const o=e-s,i=t-a,c=Math.sqrt(o*o+i*i);return s=e,a=t,l=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return m()}No([g,v],function(e){let[n,r]=e;switch(E){case"top":return[[R?n+t/2:C?n+4*t:n-4*t,r+t+1],[R?n-t/2:C?n+4*t:n-4*t,r+t+1],[k.left,C||R?k.bottom-t:k.top],[k.right,C?R?k.bottom-t:k.top:k.bottom-t]];case"bottom":return[[R?n+t/2:C?n+4*t:n-4*t,r-t],[R?n-t/2:C?n+4*t:n-4*t,r-t],[k.left,C||R?k.top+t:k.bottom],[k.right,C?R?k.top+t:k.bottom:k.top+t]];case"left":{const e=[n+t+1,O?r+t/2:T?r+4*t:r-4*t],o=[n+t+1,O?r-t/2:T?r+4*t:r-4*t];return[[T||O?k.right-t:k.left,k.top],[T?O?k.right-t:k.left:k.right-t,k.bottom],e,o]}case"right":return[[n-t,O?r+t/2:T?r+4*t:r-4*t],[n-t,O?r-t/2:T?r+4*t:r-4*t],[T||O?k.left+t:k.right,k.top],[T?O?k.left+t:k.right:k.left+t,k.bottom]]}}([n,c]))?!i&&r&&(o=window.setTimeout(m,40)):m()}}};return c.__options={blockPointerEvents:n},c}const Do=me("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),jo=me("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);var Io="light",Lo=function(e){var t=e.icon,n=void 0===t?null:t,r=e.theme,i=void 0===r?Io:r,s=e.variant,a=void 0===s?"neutral":s,l="[&>svg]:h-5 [&>svg]:w-5",c="light"===i?"text-icon-secondary":"text-icon-inverse";if(n&&(0,o.isValidElement)(n))return{updatedIcon:(0,o.cloneElement)(n,{className:te(l,c,n.props.className)})};switch(a){case"neutral":return React.createElement(De,{className:te(l,c)});case"info":var u="light"===i?"text-support-info":"text-support-info-inverse";return React.createElement(De,{className:te(l,u)});case"success":var d="light"===i?"text-support-success":"text-support-success-inverse";return React.createElement(ve,{className:te(l,d)});case"warning":var f="light"===i?"text-support-warning":"text-support-warning-inverse";return React.createElement(Do,{className:te(l,f)});case"error":var h="light"===i?"text-support-error":"text-support-error-inverse";return React.createElement(jo,{className:te(l,h)});default:return null}},Fo=function(e){var t=e.actionType,n=void 0===t?"button":t,r=e.onAction,o=void 0===r?function(){}:r,i=e.actionLabel,s=void 0===i?"":i,a=e.theme,l=void 0===a?Io:a,c="focus:ring-0 focus:ring-offset-0 ring-offset-0 focus:outline-none",u="text-button-primary border-button-primary hover:border-button-primary hover:text-button-primary-hover";switch("dark"===l&&(u="text-text-inverse border-text-inverse hover:border-text-inverse hover:text-text-inverse"),n){case"button":return React.createElement(oe,{variant:"outline",size:"xs",onClick:o,className:te("rounded",c,u,"dark"===l?"bg-transparent hover:bg-transparent":"bg-white hover:bg-white")},s);case"link":return React.createElement(oe,{variant:"link",size:"xs",onClick:o,className:te(c,u)},s);default:return null}},zo=function(e){var t=e.theme,n=void 0===t?Io:t,r=e.title,o=void 0===r?"":r;return!o&&isNaN(o)?null:React.createElement("span",{className:te("block",{light:"text-text-primary",dark:"text-text-inverse"}[n],"text-sm leading-5 font-semibold")},o)},Vo=function(e){var t=e.theme,n=void 0===t?Io:t,r=e.content,o=void 0===r?"":r;return!o&&isNaN(o)?null:React.createElement("span",{className:te({light:"text-text-primary",dark:"text-text-inverse"}[n],"block text-sm [&_*]:text-sm leading-5 [&_*]:leading-5 font-normal")},o)},Bo=function(){for(var e=arguments.length,t=new Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n{})),C=o.useCallback((()=>{var e;const t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[i]);o.useEffect((()=>{if(l)return s.on("openchange",e),()=>{s.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(x.current),clearTimeout(_.current),S.current=!0)}}),[l,s]),o.useEffect((()=>{if(!l)return;if(!g.current)return;if(!n)return;function e(e){C()&&r(!1,e,"hover")}const t=Mt(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a.floating,n,r,l,g,C]);const T=o.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=Dr(v.current,"close",b.current);o&&!w.current?(clearTimeout(x.current),x.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(x.current),r(!1,e,n))}),[v,r]),P=ir((()=>{E.current(),w.current=void 0})),R=ir((()=>{if(k.current){const e=Mt(a.floating).body;e.style.pointerEvents="",e.removeAttribute(Mr),k.current=!1}}));o.useEffect((()=>{if(l&<(a.domReference)){var e;const t=a.domReference;return n&&t.addEventListener("mouseleave",c),null==(e=a.floating)||e.addEventListener("mouseleave",c),h&&t.addEventListener("mousemove",o,{once:!0}),t.addEventListener("mouseenter",o),t.addEventListener("mouseleave",s),()=>{var e;n&&t.removeEventListener("mouseleave",c),null==(e=a.floating)||e.removeEventListener("mouseleave",c),h&&t.removeEventListener("mousemove",o),t.removeEventListener("mouseenter",o),t.removeEventListener("mouseleave",s)}}function t(){return!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type)}function o(e){if(clearTimeout(x.current),S.current=!1,d&&!Nt(b.current)||f>0&&!Dr(v.current,"open"))return;const t=Dr(v.current,"open",b.current);t?x.current=window.setTimeout((()=>{y.current||r(!0,e,"hover")}),t):r(!0,e,"hover")}function s(e){if(t())return;E.current();const r=Mt(a.floating);if(clearTimeout(_.current),g.current&&i.current.floatingContext){n||clearTimeout(x.current),w.current=g.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){R(),P(),T(e,!0,"safe-polygon")}});const t=w.current;return r.addEventListener("mousemove",t),void(E.current=()=>{r.removeEventListener("mousemove",t)})}("touch"!==b.current||!kt(a.floating,e.relatedTarget))&&T(e)}function c(e){t()||i.current.floatingContext&&(null==g.current||g.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){R(),P(),T(e)}})(e))}}),[a,l,e,d,f,h,T,P,R,r,n,y,p,v,g,i]),xr((()=>{var e;if(l&&n&&null!=(e=g.current)&&e.__options.blockPointerEvents&&C()){const e=Mt(a.floating).body;e.setAttribute(Mr,""),e.style.pointerEvents="none",k.current=!0;const n=a.floating;if(lt(a.domReference)&&n){var t;const e=a.domReference,r=null==p||null==(t=p.nodesRef.current.find((e=>e.id===m)))||null==(t=t.context)?void 0:t.elements.floating;return r&&(r.style.pointerEvents=""),e.style.pointerEvents="auto",n.style.pointerEvents="auto",()=>{e.style.pointerEvents="",n.style.pointerEvents=""}}}}),[l,n,m,a,p,g,C]),xr((()=>{n||(b.current=void 0,P(),R())}),[n,P,R]),o.useEffect((()=>()=>{P(),clearTimeout(x.current),clearTimeout(_.current),R()}),[l,a.domReference,P,R]);const O=o.useMemo((()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){S.current||y.current||r(!0,t,"hover")}d&&!Nt(b.current)||n||0===f||(clearTimeout(_.current),"touch"===b.current?o():_.current=window.setTimeout(o,f))}}}),[d,r,n,y,f]),A=o.useMemo((()=>({onMouseEnter(){clearTimeout(x.current)},onMouseLeave(e){T(e.nativeEvent,!1)}})),[T]);return o.useMemo((()=>l?{reference:O,floating:A}:{}),[l,O,A])}(W,$o({move:!1,enabled:!D&&A.includes("hover")},M&&{handleClose:Mo()})),$=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:s,elements:a}=e,{enabled:l=!0,visibleOnly:c=!0}=t,u=o.useRef(!1),d=o.useRef(),f=o.useRef(!0);o.useEffect((()=>{if(!l)return;const e=it(a.domReference);function t(){!n&&ct(a.domReference)&&a.domReference===St(Mt(a.domReference))&&(u.current=!0)}function r(){f.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[a.domReference,n,l]),o.useEffect((()=>{if(l)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(u.current=!0)}}),[i,l]),o.useEffect((()=>()=>{clearTimeout(d.current)}),[]);const h=o.useMemo((()=>({onPointerDown(e){Pt(e.nativeEvent)||(f.current=!1)},onMouseLeave(){u.current=!1},onFocus(e){if(u.current)return;const t=jt(e.nativeEvent);if(c&<(t))try{if(Rt()&&At())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!f.current&&!Lt(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){u.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=lt(t)&&t.hasAttribute(Ar("focus-guard"))&&"outside"===t.getAttribute("data-type");d.current=window.setTimeout((()=>{var e;const i=St(a.domReference?a.domReference.ownerDocument:document);(t||i!==a.domReference)&&(kt(null==(e=s.current.floatingContext)?void 0:e.refs.floating.current,i)||kt(a.domReference,i)||o||r(!1,n,"focus"))}))}})),[s,a.domReference,r,c]);return o.useMemo((()=>l?{reference:h}:{}),[l,h])}(W,{enabled:!D&&A.includes("focus")}),H=wo([U,K,$,go(W),Ro(W,{role:"tooltip"})]),q=H.getReferenceProps,Y=H.getFloatingProps,X=function(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:r,close:i,common:s,duration:a=250}=t,l=e.placement,c=l.split("-")[0],u=o.useMemo((()=>({side:c,placement:l})),[c,l]),d="number"==typeof a,f=(d?a:a.open)||0,h=(d?a:a.close)||0,[p,m]=o.useState((()=>({...Ao(s,u),...Ao(n,u)}))),{isMounted:g,status:v}=function(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,s=("number"==typeof i?i:i.close)||0,[a,l]=o.useState("unmounted"),c=function(e,t){const[n,r]=o.useState(e);return e&&!n&&r(!0),o.useEffect((()=>{if(!e&&n){const e=setTimeout((()=>r(!1)),t);return()=>clearTimeout(e)}}),[e,n,t]),n}(n,s);return c||"close"!==a||l("unmounted"),xr((()=>{if(r){if(n){l("initial");const e=requestAnimationFrame((()=>{l("open")}));return()=>{cancelAnimationFrame(e)}}l("close")}}),[n,r]),{isMounted:c,status:a}}(e,{duration:a}),y=Nr(n),b=Nr(r),x=Nr(i),w=Nr(s);return xr((()=>{const e=Ao(y.current,u),t=Ao(x.current,u),n=Ao(w.current,u),r=Ao(b.current,u)||Object.keys(e).reduce(((e,t)=>(e[t]="",e)),{});if("initial"===v&&m((t=>({transitionProperty:t.transitionProperty,...n,...e}))),"open"===v&&m({transitionProperty:Object.keys(r).map(Oo).join(","),transitionDuration:f+"ms",...n,...r}),"close"===v){const r=t||e;m({transitionProperty:Object.keys(r).map(Oo).join(","),transitionDuration:h+"ms",...n,...r})}}),[h,x,y,b,w,f,v,u]),{isMounted:g,styles:p}}(W,{duration:150,initial:{opacity:0},open:{opacity:1},close:{opacity:0}}),G=X.isMounted,J=X.styles,Z=null===(t={light:"bg-tooltip-background-light text-text-primary",dark:"bg-tooltip-background-dark text-text-on-color"})||void 0===t?void 0:t[l],Q="dark"===l?"text-tooltip-background-dark":"text-tooltip-background-light";return i().createElement(i().Fragment,null,(0,o.isValidElement)(y)&&(0,o.cloneElement)(y,$o($o({},y.props),{},{ref:Bo(y.ref,V.setReference),className:te(y.props.className)},q())),i().createElement(to,{id:S,root:w},G&&i().createElement("div",Uo({className:te("absolute z-20 py-2 px-3 rounded-md text-xs leading-4 shadow-soft-shadow-lg",Z,"max-w-80 w-fit",b),ref:V.setFloating,style:$o($o({},B),J)},Y()),i().createElement("div",null,!!f&&i().createElement("span",{className:"font-semibold"},f),!!h&&i().createElement("div",{className:"font-normal"},h)),m&&i().createElement(Cr,{ref:F,context:W,placement:u,className:te("fill-current",Q)}))))},Xo=["slug","text","icon","className","disabled","isFirstChild","isLastChild"];function Go(){return Go=Object.assign?Object.assign.bind():function(e){for(var t=1;tsvg]:h-4 [&>svg]:w-4",sm:"py-2 px-2 text-base gap-1 [&>svg]:h-4 [&>svg]:w-4",md:"py-2.5 px-2.5 text-base gap-1 [&>svg]:h-5 [&>svg]:w-5"}[g],"border-0 border-r border-border-subtle border-solid",p===r?"bg-button-disabled":"",d?"rounded-tl rounded-bl border-0 border-r border-border-subtle":"",f?"rounded-tr rounded-br border-0":"",l);return i().createElement("button",Go({ref:t,className:y,disabled:u,onClick:function(e){m(e,{slug:r,text:s})}},h),"left"===v&&a&&i().createElement("span",{className:"mr-1"},a),s,"right"===v&&a&&i().createElement("span",{className:"ml-1"},a))},Qo={Group:function(e){var t=e.children,n=e.activeItem,r=void 0===n?null:n,s=e.onChange,a=e.className,l=e.size,c=void 0===l?"md":l,u=e.iconPosition,d=void 0===u?"left":u,f=(0,o.useCallback)((function(e,t){s&&s({event:e,value:t})}),[s]),h=te("box-border flex border border-border-subtle border-solid rounded",a);return i().createElement("div",{className:h},i().createElement(Jo.Provider,{value:{activeItem:r,onChange:f,size:c,iconPosition:d}},i().Children.map(t,(function(e,n){if(!(0,o.isValidElement)(e))return null;var r=0===n,s=n===i().Children.count(t)-1;return i().cloneElement(e,{index:n,isFirstChild:r,isLastChild:s})}))))},Button:(0,o.forwardRef)(Zo)},ei=Qo,ti=n(848);const ni=(0,o.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ri=(0,o.createContext)({}),oi=(0,o.createContext)(null),ii="undefined"!=typeof window,si=ii?o.useLayoutEffect:o.useEffect,ai=(0,o.createContext)({strict:!1}),li=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ci="data-"+li("framerAppearId"),ui=["read","resolveKeyframes","update","preRender","render","postRender"];function di(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=ui.reduce(((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(t){i.has(t)&&(l.schedule(t),e()),t(s)}const l={schedule:(e,o=!1,s=!1)=>{const a=s&&r?t:n;return o&&i.add(e),a.has(e)||a.add(e),e},cancel:e=>{n.delete(e),i.delete(e)},process:e=>{s=e,r?o=!0:(r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,o&&(o=!1,l.process(e)))}};return l}(i),e)),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=s,h=()=>{const i=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(h))};return{schedule:ui.reduce(((t,i)=>{const a=s[i];return t[i]=(t,i=!1,s=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(h)),a.schedule(t,i,s)),t}),{}),cancel:e=>{for(let t=0;t{f&&f.update(n,c)}));const p=n[ci],m=(0,o.useRef)(Boolean(p)&&!window.MotionHandoffIsComplete&&(null===(s=window.MotionHasOptimisedAnimation)||void 0===s?void 0:s.call(window,p)));return si((()=>{f&&(f.updateFeatures(),fi.render(f.render),m.current&&f.animationState&&f.animationState.animateChanges())})),(0,o.useEffect)((()=>{f&&(!m.current&&f.animationState&&f.animationState.animateChanges(),m.current=!1,gi||(gi=!0,queueMicrotask(yi)))})),f}function yi(){window.MotionHandoffIsComplete=!0}function bi(e){if(e)return!1!==e.options.allowProjection?e.projection:bi(e.parent)}function xi(e,t,n){return(0,o.useCallback)((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):pi(n)&&(n.current=r))}),[t])}function wi(e){return"string"==typeof e||Array.isArray(e)}function _i(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const Si=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ki=["initial",...Si];function Ei(e){return _i(e.animate)||ki.some((t=>wi(e[t])))}function Ci(e){return Boolean(Ei(e)||e.variants)}function Ti(e){return Array.isArray(e)?e.join(" "):e}const Pi={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ri={};for(const e in Pi)Ri[e]={isEnabled:t=>Pi[e].some((e=>!!t[e]))};const Oi=(0,o.createContext)({}),Ai=Symbol.for("motionComponentSymbol");function Ni({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&function(e){for(const t in e)Ri[t]={...Ri[t],...e[t]}}(e);const s=(0,o.forwardRef)((function(e,s){let a;const l={...(0,o.useContext)(ni),...e,layoutId:Mi(e)},{isStatic:c}=l,u=function(e){const{initial:t,animate:n}=function(e,t){if(Ei(e)){const{initial:t,animate:n}=e;return{initial:!1===t||wi(t)?t:void 0,animate:wi(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,o.useContext)(ri));return(0,o.useMemo)((()=>({initial:t,animate:n})),[Ti(t),Ti(n)])}(e),d=r(e,c);if(!c&&ii){(0,o.useContext)(ai).strict;const e=function(e){const{drag:t,layout:n}=Ri;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(l);a=e.MeasureLayout,u.visualElement=vi(i,d,l,t,e.ProjectionNode)}return(0,ti.jsxs)(ri.Provider,{value:u,children:[a&&u.visualElement?(0,ti.jsx)(a,{visualElement:u.visualElement,...l}):null,n(i,e,xi(d,u.visualElement,s),d,c,u.visualElement)]})}));return s[Ai]=i,s}function Mi({layoutId:e}){const t=(0,o.useContext)(Oi).id;return t&&void 0!==e?t+"-"+e:e}function Di(e){function t(t,n={}){return Ni(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const ji=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ii(e){return"string"==typeof e&&!e.includes("-")&&!!(ji.indexOf(e)>-1||/[A-Z]/u.test(e))}const Li={},Fi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],zi=new Set(Fi);function Vi(e,{layout:t,layoutId:n}){return zi.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Li[e]||"opacity"===e)}const Bi=e=>Boolean(e&&e.getVelocity),Wi=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Ui=(e,t,n)=>n>t?t:n"number"==typeof e,parse:parseFloat,transform:e=>e},$i={...Ki,transform:e=>Ui(0,1,e)},Hi={...Ki,default:1},qi=e=>Math.round(1e5*e)/1e5,Yi=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Xi=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Gi=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Ji(e){return"string"==typeof e}const Zi=e=>({test:t=>Ji(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Qi=Zi("deg"),es=Zi("%"),ts=Zi("px"),ns=Zi("vh"),rs=Zi("vw"),os={...es,parse:e=>es.parse(e)/100,transform:e=>es.transform(100*e)},is={...Ki,transform:Math.round},ss={borderWidth:ts,borderTopWidth:ts,borderRightWidth:ts,borderBottomWidth:ts,borderLeftWidth:ts,borderRadius:ts,radius:ts,borderTopLeftRadius:ts,borderTopRightRadius:ts,borderBottomRightRadius:ts,borderBottomLeftRadius:ts,width:ts,maxWidth:ts,height:ts,maxHeight:ts,size:ts,top:ts,right:ts,bottom:ts,left:ts,padding:ts,paddingTop:ts,paddingRight:ts,paddingBottom:ts,paddingLeft:ts,margin:ts,marginTop:ts,marginRight:ts,marginBottom:ts,marginLeft:ts,rotate:Qi,rotateX:Qi,rotateY:Qi,rotateZ:Qi,scale:Hi,scaleX:Hi,scaleY:Hi,scaleZ:Hi,skew:Qi,skewX:Qi,skewY:Qi,distance:ts,translateX:ts,translateY:ts,translateZ:ts,x:ts,y:ts,z:ts,perspective:ts,transformPerspective:ts,opacity:$i,originX:os,originY:os,originZ:ts,zIndex:is,backgroundPositionX:ts,backgroundPositionY:ts,fillOpacity:$i,strokeOpacity:$i,numOctaves:is},as={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ls=Fi.length,cs=e=>t=>"string"==typeof t&&t.startsWith(e),us=cs("--"),ds=cs("var(--"),fs=e=>!!ds(e)&&hs.test(e.split("/*")[0].trim()),hs=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ps(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const e in t){const n=t[e];if(zi.has(e))s=!0;else if(us(e))o[e]=n;else{const t=Wi(n,ss[e]);e.startsWith("origin")?(a=!0,i[e]=t):r[e]=t}}if(t.transform||(s||n?r.transform=function(e,t,n){let r="",o=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}});function gs(e,t,n){for(const r in t)Bi(t[r])||Vi(r,n)||(e[r]=t[r])}function vs(e,t){const n={},r=function(e,t){const n={};return gs(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,o.useMemo)((()=>{const n=ms();return ps(n,t,e),Object.assign({},n.vars,n.style)}),[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const ys=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function bs(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ys.has(e)}let xs=e=>!bs(e);try{(ws=n(316).A)&&(xs=e=>e.startsWith("on")?!bs(e):ws(e))}catch(e){}var ws;function _s(e,t,n){return"string"==typeof e?e:ts.transform(t+n*e)}const Ss={offset:"stroke-dashoffset",array:"stroke-dasharray"},ks={offset:"strokeDashoffset",array:"strokeDasharray"};function Es(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,d){if(ps(e,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:p}=e;f.transform&&(p&&(h.transform=f.transform),delete f.transform),p&&(void 0!==o||void 0!==i||h.transform)&&(h.transformOrigin=function(e,t,n){return`${_s(t,e.x,e.width)} ${_s(n,e.y,e.height)}`}(p,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==r&&(f.scale=r),void 0!==s&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Ss:ks;e[i.offset]=ts.transform(-r);const s=ts.transform(t),a=ts.transform(n);e[i.array]=`${s} ${a}`}(f,s,a,l,!1)}const Cs=()=>({...ms(),attrs:{}}),Ts=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Ps(e,t,n,r){const i=(0,o.useMemo)((()=>{const n=Cs();return Es(n,t,Ts(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};gs(t,e.style,e),i.style={...t,...i.style}}return i}function Rs(e=!1){return(t,n,r,{latestValues:i},s)=>{const a=(Ii(t)?Ps:vs)(n,i,s,t),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(xs(o)||!0===n&&bs(o)||!t&&!bs(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c=t!==o.Fragment?{...l,...a,ref:r}:{},{children:u}=n,d=(0,o.useMemo)((()=>Bi(u)?u.get():u),[u]);return(0,o.createElement)(t,{...c,children:d})}}function Os(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const As=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ns(e,t,n,r){Os(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(As.has(n)?n:li(n),t.attrs[n])}function Ms(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(Bi(o[s])||t.style&&Bi(t.style[s])||Vi(s,e)||void 0!==(null===(r=null==n?void 0:n.getValue(s))||void 0===r?void 0:r.liveStyle))&&(i[s]=o[s]);return n&&o&&"string"==typeof o.willChange&&(n.applyWillChange=!1),i}function Ds(e,t,n){const r=Ms(e,t,n);for(const n in e)(Bi(e[n])||Bi(t[n]))&&(r[-1!==Fi.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}function js(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function Is(e,t,n,r){if("function"==typeof t){const[o,i]=js(r);t=t(void 0!==n?n:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=js(r);t=t(void 0!==n?n:e.custom,o,i)}return t}function Ls(e){const t=(0,o.useRef)(null);return null===t.current&&(t.current=e()),t.current}const Fs=e=>Array.isArray(e),zs=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),Vs=e=>Fs(e)?e[e.length-1]||0:e;function Bs(e){const t=Bi(e)?e.get():e;return zs(t)?t.toValue():t}const Ws=new Set(["opacity","clipPath","filter","transform"]);function Us(e){return zi.has(e)?"transform":Ws.has(e)?li(e):void 0}function Ks(e,t){-1===e.indexOf(t)&&e.push(t)}function $s(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Hs=e=>(t,n)=>{const r=(0,o.useContext)(ri),i=(0,o.useContext)(oi),s=()=>function({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},o,i,s,a){const l={latestValues:Xs(o,i,s,!a&&e,t),renderState:n()};return r&&(l.mount=e=>r(o,e,l)),l}(e,t,r,i,n);return n?s():Ls(s)};function qs(e,t){const n=Us(t);n&&Ks(e,n)}function Ys(e,t,n){const r=Array.isArray(t)?t:[t];for(let t=0;t{for(const t in e){let n=e[t];Array.isArray(n)&&(n=n[p?n.length-1:0]),null!==n&&(s[t]=n)}for(const e in t)s[e]=t[e]})),l&&(d&&!1!==u&&!_i(d)&&Ys(e,d,(e=>{for(const t in e)qs(a,t)})),a.length&&(s.willChange=a.join(","))),s}const Gs=e=>e,{schedule:Js,cancel:Zs,state:Qs,steps:ea}=di("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Gs,!0),ta={useVisualState:Hs({scrapeMotionValuesFromProps:Ds,createRenderState:Cs,onMount:(e,t,{renderState:n,latestValues:r})=>{Js.read((()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}})),Js.render((()=>{Es(n,r,Ts(t.tagName),e.transformTemplate),Ns(t,n)}))}})},na={useVisualState:Hs({applyWillChange:!0,scrapeMotionValuesFromProps:Ms,createRenderState:ms})};function ra(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const oa=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function ia(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const sa=e=>t=>oa(t)&&e(t,ia(t));function aa(e,t,n,r){return ra(e,t,sa(n),r)}const la=(e,t)=>n=>t(e(n)),ca=(...e)=>e.reduce(la);function ua(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}const da=ua("dragHorizontal"),fa=ua("dragVertical");function ha(e){let t=!1;if("y"===e)t=fa();else if("x"===e)t=da();else{const e=da(),n=fa();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function pa(){const e=ha(!0);return!e||(e(),!1)}class ma{constructor(e){this.isMounted=!1,this.node=e}update(){}}function ga(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd";return aa(e.current,n,((n,o)=>{if("touch"===n.pointerType||pa())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t);const s=i[r];s&&Js.postRender((()=>s(n,o)))}),{passive:!e.getProps()[r]})}const va=(e,t)=>!!t&&(e===t||va(e,t.parentElement));function ya(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,ia(n))}const ba=new WeakMap,xa=new WeakMap,wa=e=>{const t=ba.get(e.target);t&&t(e)},_a=e=>{e.forEach(wa)};const Sa={some:0,all:1},ka={inView:{Feature:class extends ma{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:Sa[r]};return function(e,t,n){const r=function({root:e,...t}){const n=e||document;xa.has(n)||xa.set(n,{});const r=xa.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(_a,{root:e,...t})),r[o]}(t);return ba.set(e,n),r.observe(e),()=>{ba.delete(e),r.unobserve(e)}}(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends ma{constructor(){super(...arguments),this.removeStartListeners=Gs,this.removeEndListeners=Gs,this.removeAccessibleListeners=Gs,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=aa(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:o}=this.node.getProps(),i=o||va(this.node.current,e.target)?n:r;i&&Js.update((()=>i(e,t)))}),{passive:!(n.onTap||n.onPointerUp)}),o=aa(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=ca(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=ra(this.node.current,"keydown",(e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=ra(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&ya("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&Js.postRender((()=>n(e,t)))}))})),ya("down",((e,t)=>{this.startPress(e,t)})))})),t=ra(this.node.current,"blur",(()=>{this.isPressing&&ya("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=ca(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Js.postRender((()=>n(e,t)))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!pa()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Js.postRender((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=aa(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=ra(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ca(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends ma{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ca(ra(this.node.current,"focus",(()=>this.onFocus())),ra(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends ma{mount(){this.unmount=ca(ga(this.node,!0),ga(this.node,!1))}unmount(){}}}};function Ea(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r1e3*e,Pa=e=>e/1e3,Ra={type:"spring",stiffness:500,damping:25,restSpeed:10},Oa={type:"keyframes",duration:.8},Aa={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Na=(e,{keyframes:t})=>t.length>2?Oa:zi.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Ra:Aa;function Ma(e,t){return e[t]||e.default||e}const Da=e=>null!==e;function ja(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(Da),i=t&&"loop"!==n&&t%2==1?0:o.length-1;return i&&void 0!==r?r:o[i]}const Ia=e=>/^0[^.\s]+$/u.test(e);let La=Gs,Fa=Gs;const za=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Va=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ba(e,t,n=1){Fa(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=Va.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${null!=n?n:r}`,o]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return za(e)?parseFloat(e):e}return fs(o)?Ba(o,t,n+1):o}const Wa=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Ua=e=>e===Ki||e===ts,Ka=(e,t)=>parseFloat(e.split(", ")[t]),$a=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Ka(o[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?Ka(t[1],e):0}},Ha=new Set(["x","y","z"]),qa=Fi.filter((e=>!Ha.has(e))),Ya={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:$a(4,13),y:$a(5,14)};Ya.translateX=Ya.x,Ya.translateY=Ya.y;const Xa=e=>t=>t.test(e),Ga=[Ki,ts,es,Qi,rs,ns,{test:e=>"auto"===e,parse:e=>e}],Ja=e=>Ga.find(Xa(e)),Za=new Set;let Qa=!1,el=!1;function tl(){if(el){const e=Array.from(Za).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return qa.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}el=!1,Qa=!1,Za.forEach((e=>e.complete())),Za.clear()}function nl(){Za.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(el=!0)}))}class rl{constructor(e,t,n,r,o,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Za.add(this),Qa||(Qa=!0,Js.read(nl),Js.resolveKeyframes(tl))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let o=0;on=>Boolean(Ji(n)&&Gi.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),il=(e,t,n)=>r=>{if(!Ji(r))return r;const[o,i,s,a]=r.match(Yi);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},sl={...Ki,transform:e=>Math.round((e=>Ui(0,255,e))(e))},al={test:ol("rgb","red"),parse:il("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+sl.transform(e)+", "+sl.transform(t)+", "+sl.transform(n)+", "+qi($i.transform(r))+")"},ll={test:ol("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:al.transform},cl={test:ol("hsl","hue"),parse:il("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+es.transform(qi(t))+", "+es.transform(qi(n))+", "+qi($i.transform(r))+")"},ul={test:e=>al.test(e)||ll.test(e)||cl.test(e),parse:e=>al.test(e)?al.parse(e):cl.test(e)?cl.parse(e):ll.parse(e),transform:e=>Ji(e)?e:e.hasOwnProperty("red")?al.transform(e):cl.transform(e)},dl="number",fl="color",hl="var",pl="var(",ml="${}",gl=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function vl(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(gl,(e=>(ul.test(e)?(r.color.push(i),o.push(fl),n.push(ul.parse(e))):e.startsWith(pl)?(r.var.push(i),o.push(hl),n.push(e)):(r.number.push(i),o.push(dl),n.push(parseFloat(e))),++i,ml))).split(ml);return{values:n,split:s,indexes:r,types:o}}function yl(e){return vl(e).values}function bl(e){const{split:t,types:n}=vl(e),r=t.length;return e=>{let o="";for(let i=0;i"number"==typeof e?0:e,wl={test:function(e){var t,n;return isNaN(e)&&Ji(e)&&((null===(t=e.match(Yi))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Xi))||void 0===n?void 0:n.length)||0)>0},parse:yl,createTransformer:bl,getAnimatableNone:function(e){const t=yl(e);return bl(e)(t.map(xl))}},_l=new Set(["brightness","contrast","saturate","opacity"]);function Sl(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Yi)||[];if(!r)return e;const o=n.replace(r,"");let i=_l.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const kl=/\b([a-z-]*)\(.*?\)/gu,El={...wl,getAnimatableNone:e=>{const t=e.match(kl);return t?t.map(Sl).join(" "):e}},Cl={...ss,color:ul,backgroundColor:ul,outlineColor:ul,fill:ul,stroke:ul,borderColor:ul,borderTopColor:ul,borderRightColor:ul,borderBottomColor:ul,borderLeftColor:ul,filter:El,WebkitFilter:El},Tl=e=>Cl[e];function Pl(e,t){let n=Tl(e);return n!==El&&(n=wl),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Rl=new Set(["auto","none","0"]);class Ol extends rl{constructor(e,t,n,r,o){super(e,t,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}function Al(e){let t;return()=>(void 0===t&&(t=e()),t)}let Nl;function Ml(){Nl=void 0}const Dl={now:()=>(void 0===Nl&&Dl.set(Qs.isProcessing?Qs.timestamp:performance.now()),Nl),set:e=>{Nl=e,queueMicrotask(Ml)}},jl=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!wl.test(e)&&"0"!==e||e.startsWith("url(")));class Il{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Dl.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:i,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(nl(),tl()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=Dl.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:o,delay:i,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],s=jl(o,t),a=jl(i,t);return La(s===a,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!(!s||!a)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n{this.resolveFinishedPromise=e}))}}function Ll(e,t){return t?e*(1e3/t):0}const Fl=5;function zl(e,t,n){const r=Math.max(t-Fl,0);return Ll(n-e(r),t-r)}const Vl=.001,Bl=.01,Wl=10,Ul=.05,Kl=1;const $l=12;function Hl(e,t){return e*Math.sqrt(1-t*t)}const ql=["duration","bounce"],Yl=["stiffness","damping","mass"];function Xl(e,t){return t.some((t=>void 0!==e[t]))}function Gl({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:c,duration:u,velocity:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Xl(e,Yl)&&Xl(e,ql)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;La(e<=Ta(Wl),"Spring duration must be 10 seconds or less");let s=1-t;s=Ui(Ul,Kl,s),e=Ui(Bl,Wl,Pa(e)),s<1?(o=t=>{const r=t*s,o=r*e,i=r-n,a=Hl(t,s),l=Math.exp(-o);return Vl-i/a*l},i=t=>{const r=t*s*e,i=r*n+n,a=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=Hl(Math.pow(t,2),s);return(-o(t)+Vl>0?-1:1)*((i-a)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-Vl,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let n=1;n<$l;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=Ta(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...r,velocity:-Pa(r.velocity||0)}),h=d||0,p=l/(2*Math.sqrt(a*c)),m=i-o,g=Pa(Math.sqrt(a/c)),v=Math.abs(m)<5;let y;if(n||(n=v?.01:2),t||(t=v?.005:.5),p<1){const e=Hl(g,p);y=t=>{const n=Math.exp(-p*g*t);return i-n*((h+p*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===p)y=e=>i-Math.exp(-g*e)*(m+(h+g*m)*e);else{const e=g*Math.sqrt(p*p-1);y=t=>{const n=Math.exp(-p*g*t),r=Math.min(e*t,300);return i-n*((h+p*g*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}return{calculatedDuration:f&&u||null,next:e=>{const r=y(e);if(f)s.done=e>=u;else{let o=0;p<1&&(o=0===e?Ta(h):zl(y,e,r));const a=Math.abs(o)<=n,l=Math.abs(i-r)<=t;s.done=a&&l}return s.value=s.done?i:r,s}}}function Jl({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},h=e=>void 0===a?l:void 0===l||Math.abs(a-e)-p*Math.exp(-e/r),y=e=>g+v(e),b=e=>{const t=v(e),n=y(e);f.done=Math.abs(t)<=c,f.value=f.done?g:n};let x,w;const _=e=>{var t;t=f.value,(void 0!==a&&tl)&&(x=e,w=Gl({keyframes:[f.value,h(f.value)],velocity:zl(y,e,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return _(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==x||(t=!0,b(e),_(e)),void 0!==x&&e>=x?w.next(e-x):(!t&&b(e),f)}}}const Zl=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Ql(e,t,n,r){if(e===t&&n===r)return Gs;return o=>0===o||1===o?o:Zl(function(e,t,n,r,o){let i,s,a=0;do{s=t+(n-t)/2,i=Zl(s,r,o)-e,i>0?n=s:t=s}while(Math.abs(i)>1e-7&&++a<12);return s}(o,0,1,e,n),t,r)}const ec=Ql(.42,0,1,1),tc=Ql(0,0,.58,1),nc=Ql(.42,0,.58,1),rc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,oc=e=>t=>1-e(1-t),ic=e=>1-Math.sin(Math.acos(e)),sc=oc(ic),ac=rc(ic),lc=Ql(.33,1.53,.69,.99),cc=oc(lc),uc=rc(cc),dc={linear:Gs,easeIn:ec,easeInOut:nc,easeOut:tc,circIn:ic,circInOut:ac,circOut:sc,backIn:cc,backInOut:uc,backOut:lc,anticipate:e=>(e*=2)<1?.5*cc(e):.5*(2-Math.pow(2,-10*(e-1)))},fc=e=>{if(Array.isArray(e)){Fa(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Ql(t,n,r,o)}return"string"==typeof e?(Fa(void 0!==dc[e],`Invalid easing type '${e}'`),dc[e]):e},hc=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},pc=(e,t,n)=>e+(t-e)*n;function mc(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gc(e,t){return n=>n>0?t:e}const vc=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},yc=[ll,al,cl];function bc(e){const t=(n=e,yc.find((e=>e.test(n))));var n;if(La(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let r=t.parse(e);return t===cl&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;o=mc(a,r,e+1/3),i=mc(a,r,e),s=mc(a,r,e-1/3)}else o=i=s=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*s),alpha:r}}(r)),r}const xc=(e,t)=>{const n=bc(e),r=bc(t);if(!n||!r)return gc(e,t);const o={...n};return e=>(o.red=vc(n.red,r.red,e),o.green=vc(n.green,r.green,e),o.blue=vc(n.blue,r.blue,e),o.alpha=pc(n.alpha,r.alpha,e),al.transform(o))},wc=new Set(["none","hidden"]);function _c(e,t){return n=>pc(e,t,n)}function Sc(e){return"number"==typeof e?_c:"string"==typeof e?fs(e)?gc:ul.test(e)?xc:Cc:Array.isArray(e)?kc:"object"==typeof e?ul.test(e)?xc:Ec:gc}function kc(e,t){const n=[...e],r=n.length,o=e.map(((e,n)=>Sc(e)(e,t[n])));return e=>{for(let t=0;t{for(const t in r)n[t]=r[t](e);return n}}const Cc=(e,t)=>{const n=wl.createTransformer(t),r=vl(e),o=vl(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?wc.has(e)&&!o.values.length||wc.has(t)&&!r.values.length?function(e,t){return wc.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):ca(kc(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;iArray.isArray(e)&&"number"!=typeof e[0])(r)?r.map(fc):fc(r),i={done:!1,value:t[0]},s=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=hc(0,t,r);e.push(pc(n,1,o))}}(t,e.length-1),t}(t),e),a=function(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Fa(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];if(2===i&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,n){const r=[],o=n||Tc,i=e.length-1;for(let n=0;n{let n=0;if(a>1)for(;nl(Ui(e[0],e[i-1],t)):l}(s,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||nc)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=a(t),i.done=t>=e,i)}}const Rc=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Js.update(t,!0),stop:()=>Zs(t),now:()=>Qs.isProcessing?Qs.timestamp:Dl.now()}},Oc={decay:Jl,inertia:Jl,tween:Pc,keyframes:Pc,spring:Gl},Ac=e=>e/100;class Nc extends Il{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:n,element:r,keyframes:o}=this.options,i=(null==r?void 0:r.KeyframeResolver)||rl;this.resolver=new i(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=this.options,s=Oc[t]||Pc;let a,l;s!==Pc&&"number"!=typeof e[0]&&(a=ca(Ac,Tc(e[0],e[1])),e=[0,100]);const c=s({...this.options,keyframes:e});"mirror"===o&&(l=s({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===c.calculatedDuration&&(c.calculatedDuration=function(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}(c));const{calculatedDuration:u}=c,d=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:i,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return o.next(0);const{delay:d,repeat:f,repeatType:h,repeatDelay:p,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let y=this.currentTime,b=o;if(f){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,f+1),Boolean(t%2)&&("reverse"===h?(n=1-n,p&&(n-=p/u)):"mirror"===h&&(b=i)),y=Ui(0,1,n)*u}const x=v?{done:!1,value:a[0]}:b.next(y);s&&(x.value=s(x.value));let{done:w}=x;v||null===l||(w=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const _=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return _&&void 0!==r&&(x.value=ja(a,this.options,r)),m&&m(x.value),_&&this.finish(),x}get duration(){const{resolved:e}=this;return e?Pa(e.calculatedDuration):0}get time(){return Pa(this.currentTime)}set time(e){e=Ta(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Pa(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Rc,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Mc=e=>Array.isArray(e)&&"number"==typeof e[0];function Dc(e){return Boolean(!e||"string"==typeof e&&e in Ic||Mc(e)||Array.isArray(e)&&e.every(Dc))}const jc=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ic={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jc([0,.65,.55,1]),circOut:jc([.55,0,1,.45]),backIn:jc([.31,.01,.66,-.59]),backOut:jc([.33,1.53,.69,.99])};function Lc(e){return Fc(e)||Ic.easeOut}function Fc(e){return e?Mc(e)?jc(e):Array.isArray(e)?e.map(Lc):Ic[e]:void 0}const zc=Al((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));class Vc extends Il{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:o}=this.options;this.resolver=new Ol(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:r=300,times:o,ease:i,type:s,motionValue:a,name:l,startTime:c}=this.options;if(!(null===(n=a.owner)||void 0===n?void 0:n.current))return!1;if("spring"===(u=this.options).type||!Dc(u.ease)){const{onComplete:t,onUpdate:n,motionValue:a,element:l,...c}=this.options,u=function(e,t){const n=new Nc({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<2e4;)r=n.sample(i),o.push(r.value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:"linear"}}(e,c);1===(e=u.keyframes).length&&(e[1]=e[0]),r=u.duration,o=u.times,i=u.ease,s="keyframes"}var u;const d=function(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Fc(a);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===s?"alternate":"normal"})}(a.owner.current,l,e,{...this.options,duration:r,times:o,ease:i});return d.startTime=null!=c?c:this.calcStartTime(),this.pendingTimeline?(d.timeline=this.pendingTimeline,this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:n}=this.options;a.set(ja(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:o,type:s,ease:i,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Pa(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Pa(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=Ta(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return Gs;const{animation:n}=t;n.timeline=e,n.onfinish=null}else this.pendingTimeline=e;return Gs}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:o,ease:i,times:s}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:a,element:l,...c}=this.options,u=new Nc({...c,keyframes:n,duration:r,type:o,ease:i,times:s,isGenerator:!0}),d=Ta(this.time);e.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;return zc()&&n&&Ws.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!r&&"mirror"!==o&&0!==i&&"inertia"!==s}}const Bc=Al((()=>void 0!==window.ScrollTimeline));class Wc{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n{if(!Bc()||!t.attachTimeline)return t.pause(),function(e,n){let r;const o=()=>{const{currentTime:e}=n,o=(null===e?0:e.value)/100;r!==o&&(e=>{t.time=t.duration*e})(o),r=o};return Js.update(o,!0),()=>Zs(o)}(0,e);t.attachTimeline(e)}));return()=>{t.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;tt[e]()))}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const Uc=(e,t,n,r={},o,i,s)=>a=>{const l=Ma(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u-=Ta(c);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{a(),l.onComplete&&l.onComplete(),s&&s()},onStop:s,name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(l)||(d={...d,...Na(e,d)}),d.duration&&(d.duration=Ta(d.duration)),d.repeatDelay&&(d.repeatDelay=Ta(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let f=!1;if((!1===d.type||0===d.duration&&!d.repeatDelay)&&(d.duration=0,0===d.delay&&(f=!0)),f&&!i&&void 0!==t.get()){const e=ja(d.keyframes,l);if(void 0!==e)return Js.update((()=>{d.onUpdate(e),d.onComplete()})),new Wc([])}return!i&&Vc.supports(d)?new Vc(d):new Nc(d)};class Kc{constructor(){this.subscriptions=[]}add(e){return Ks(this.subscriptions,e),()=>$s(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o{const n=Dl.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=Dl.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Kc);const n=this.events[e].add(t);return"change"===e?()=>{n(),Js.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return $c.current&&$c.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=Dl.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Ll(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function qc(e,t){return new Hc(e,t)}function Yc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,qc(n))}function Xc(e){return e.getProps()[ci]}class Gc extends Hc{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(e){const t=Us(e);if(!t)return;const n=this.counts.get(t)||0;this.counts.set(t,n+1),0===n&&(this.output.push(t),this.update());let r=!1;return()=>{if(r)return;r=!0;const e=this.counts.get(t)-1;this.counts.set(t,e),0===e&&($s(this.output,t),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function Jc(e,t){var n;if(!e.applyWillChange)return;let r=e.getValue("willChange");return r||(null===(n=e.props.style)||void 0===n?void 0:n.willChange)||(r=new Gc("auto"),e.addValue("willChange",r)),o=r,Boolean(Bi(o)&&o.add)?r.add(t):void 0;var o}function Zc({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function Qc(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in l){const r=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),o=l[t];if(void 0===o||u&&Zc(u,t))continue;const a={delay:n,...Ma(s||{},t)};let d=!1;if(window.MotionHandoffAnimation){const n=Xc(e);if(n){const e=window.MotionHandoffAnimation(n,t,Js);null!==e&&(a.startTime=e,d=!0)}}r.start(Uc(t,r,o,e.shouldReduceMotion&&zi.has(t)?{type:!1}:a,e,d,Jc(e,t)));const f=r.animation;f&&c.push(f)}return a&&Promise.all(c).then((()=>{Js.update((()=>{a&&function(e,t){const n=Ca(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const t in i)Yc(e,t,Vs(i[t]))}(e,a)}))})),c}function eu(e,t,n={}){var r;const o=Ca(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(Qc(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(tu).forEach(((e,r)=>{e.notify("AnimationStart",t),s.push(eu(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(s)}(e,t,o+r,s,a,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[s,a]:[a,s];return e().then((()=>t()))}return Promise.all([s(),a(n.delay)])}function tu(e,t){return e.sortNodePosition(t)}const nu=[...Si].reverse(),ru=Si.length;function ou(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iu(){return{animate:ou(!0),whileInView:ou(),whileHover:ou(),whileTap:ou(),whileDrag:ou(),whileFocus:ou(),exit:ou()}}let su=0;const au={animation:{Feature:class extends ma{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=function(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>eu(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=eu(e,t,n);else{const o="function"==typeof t?Ca(e,t,n.custom):t;r=Promise.all(Qc(e,o,n))}return r.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}(e),n=iu(),r=!0;const o=t=>(n,r)=>{var o;const i=Ca(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){const{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function i(i){const s=e.getProps(),a=e.getVariantContext(!0)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;td&&v),w=!1;const _=Array.isArray(g)?g:[g];let S=_.reduce(o(p),{});!1===y&&(S={});const{prevResolvedValues:k={}}=m,E={...k,...S},C=t=>{x=!0,c.has(t)&&(w=!0,c.delete(t)),m.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in E){const t=S[e],n=k[e];if(u.hasOwnProperty(e))continue;let r=!1;r=Fs(t)&&Fs(n)?!Ea(t,n):t!==n,r?null!=t?C(e):c.add(e):void 0!==t&&c.has(e)?C(e):m.protectedKeys[e]=!0}m.prevProp=g,m.prevResolvedValues=S,m.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(x=!1),!x||b&&!w||l.push(..._.map((e=>({animation:e,options:{type:p}}))))}var f,h;if(c.size){const t={};c.forEach((n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=null!=r?r:null})),l.push({animation:t})}let p=Boolean(l.length);return!r||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,r){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const s=i(t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=iu(),r=!0}}}(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();_i(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends ma{constructor(){super(...arguments),this.id=su++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},lu=(e,t)=>Math.abs(e-t);class cu{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=fu(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=lu(e.x,t.x),r=lu(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=Qs;this.history.push({...r,timestamp:o});const{onStart:i,onMove:s}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=uu(t,this.transformPagePoint),Js.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=fu("pointercancel"===e.type?this.lastMoveEventInfo:uu(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!oa(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const i=uu(ia(e),this.transformPagePoint),{point:s}=i,{timestamp:a}=Qs;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=t;l&&l(e,fu(i,this.history)),this.removeListeners=ca(aa(this.contextWindow,"pointermove",this.handlePointerMove),aa(this.contextWindow,"pointerup",this.handlePointerUp),aa(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Zs(this.updatePoint)}}function uu(e,t){return t?{point:t(e.point)}:e}function du(e,t){return{x:e.x-t.x,y:e.y-t.y}}function fu({point:e},t){return{point:e,delta:du(e,pu(t)),offset:du(e,hu(t)),velocity:mu(t,.1)}}function hu(e){return e[0]}function pu(e){return e[e.length-1]}function mu(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=pu(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Ta(t)));)n--;if(!r)return{x:0,y:0};const i=Pa(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const gu=.9999,vu=1.0001,yu=-.01,bu=.01;function xu(e){return e.max-e.min}function wu(e,t,n,r=.5){e.origin=r,e.originPoint=pc(t.min,t.max,e.origin),e.scale=xu(n)/xu(t),e.translate=pc(n.min,n.max,e.origin)-e.originPoint,(e.scale>=gu&&e.scale<=vu||isNaN(e.scale))&&(e.scale=1),(e.translate>=yu&&e.translate<=bu||isNaN(e.translate))&&(e.translate=0)}function _u(e,t,n,r){wu(e.x,t.x,n.x,r?r.originX:void 0),wu(e.y,t.y,n.y,r?r.originY:void 0)}function Su(e,t,n){e.min=n.min+t.min,e.max=e.min+xu(t)}function ku(e,t,n){e.min=t.min-n.min,e.max=e.min+xu(t)}function Eu(e,t,n){ku(e.x,t.x,n.x),ku(e.y,t.y,n.y)}function Cu(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Tu(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Nu=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Mu(e){return[e("x"),e("y")]}function Du({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ju(e){return void 0===e||1===e}function Iu({scale:e,scaleX:t,scaleY:n}){return!ju(e)||!ju(t)||!ju(n)}function Lu(e){return Iu(e)||Fu(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Fu(e){return zu(e.x)||zu(e.y)}function zu(e){return e&&"0%"!==e}function Vu(e,t,n){return n+t*(e-n)}function Bu(e,t,n,r,o){return void 0!==o&&(e=Vu(e,o,r)),Vu(e,n,r)+t}function Wu(e,t=0,n=1,r,o){e.min=Bu(e.min,t,n,r,o),e.max=Bu(e.max,t,n,r,o)}function Uu(e,{x:t,y:n}){Wu(e.x,t.translate,t.scale,t.originPoint),Wu(e.y,n.translate,n.scale,n.originPoint)}const Ku=.999999999999,$u=1.0000000000001;function Hu(e,t){e.min=e.min+t,e.max=e.max+t}function qu(e,t,n,r,o=.5){Wu(e,t,n,pc(e.min,e.max,o),r)}function Yu(e,t){qu(e.x,t.x,t.scaleX,t.scale,t.originX),qu(e.y,t.y,t.scaleY,t.scale,t.originY)}function Xu(e,t){return Du(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const Gu=({current:e})=>e?e.ownerDocument.defaultView:null,Ju=new WeakMap;class Zu{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Nu(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new cu(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(ia(e,"page").point)},onStart:(e,t)=>{var n;const{drag:r,dragPropagation:o,onDragStart:i}=this.getProps();if(r&&!o&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ha(r),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Mu((e=>{let t=this.getAxisMotionValue(e).get()||0;if(es.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];r&&(t=xu(r)*(parseFloat(t)/100))}}this.originPoint[e]=t})),i&&Js.postRender((()=>i(e,t))),null===(n=this.removeWillChange)||void 0===n||n.call(this),this.removeWillChange=Jc(this.visualElement,"transform");const{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>Mu((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:Gu(this.visualElement)})}stop(e,t){var n;null===(n=this.removeWillChange)||void 0===n||n.call(this);const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=t;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Js.postRender((()=>i(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!Qu(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&en&&(e=r?pc(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&pi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:Cu(e.x,n,o),y:Cu(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=Pu){return!1===e?e=0:!0===e&&(e=Pu),{x:Ru(e,"left","right"),y:Ru(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Mu((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!pi(e))return!1;const n=e.current;Fa(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=Xu(e,n),{scroll:o}=t;return o&&(Hu(r.x,o.offset.x),Hu(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Tu(e.x,t.x),y:Tu(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=Du(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=Mu((s=>{if(!Qu(s,t,this.currentDirection))return;let l=a&&a[s]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(s,d)}));return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(Uc(e,n,0,t,this.visualElement,!1,Jc(this.visualElement,e)))}stopAnimation(){Mu((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){Mu((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Mu((t=>{const{drag:n}=this.getProps();if(!Qu(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-pc(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!pi(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Mu((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=xu(e),o=xu(t);return o>r?n=hc(t.min,t.max-r,e.min):r>o&&(n=hc(e.min,e.max-o,t.min)),Ui(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Mu((t=>{if(!Qu(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(pc(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;Ju.set(this.visualElement,this);const e=aa(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();pi(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),Js.read(t);const o=ra(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Mu((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Pu,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:s}}}function Qu(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const ed=e=>(t,n)=>{e&&Js.postRender((()=>e(t,n)))},td={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const rd={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!ts.test(e))return e;e=parseFloat(e)}return`${nd(e,t.target.x)}% ${nd(e,t.target.y)}%`}},od={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=wl.parse(e);if(o.length>5)return r;const i=wl.createTransformer(e),s="number"!=typeof o[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=pc(a,l,.5);return"number"==typeof o[2+s]&&(o[2+s]/=c),"number"==typeof o[3+s]&&(o[3+s]/=c),i(o)}};class id extends o.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=ad,Object.assign(Li,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),td.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||Js.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),fi.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function sd(e){const[t,n]=function(){const e=(0,o.useContext)(oi);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=(0,o.useId)();(0,o.useEffect)((()=>r(i)),[]);const s=(0,o.useCallback)((()=>n&&n(i)),[i,n]);return!t&&n?[!1,s]:[!0]}(),r=(0,o.useContext)(Oi);return(0,ti.jsx)(id,{...e,layoutGroup:r,switchLayoutGroup:(0,o.useContext)(mi),isPresent:t,safeToRemove:n})}const ad={borderRadius:{...rd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rd,borderTopRightRadius:rd,borderBottomLeftRadius:rd,borderBottomRightRadius:rd,boxShadow:od},ld=["TopLeft","TopRight","BottomLeft","BottomRight"],cd=ld.length,ud=e=>"string"==typeof e?parseFloat(e):e,dd=e=>"number"==typeof e||ts.test(e);function fd(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const hd=md(0,.5,sc),pd=md(.5,.95,Gs);function md(e,t,n){return r=>rt?1:n(hc(e,t,r))}function gd(e,t){e.min=t.min,e.max=t.max}function vd(e,t){gd(e.x,t.x),gd(e.y,t.y)}function yd(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function bd(e,t,n,r,o){return e=Vu(e-=t,1/n,r),void 0!==o&&(e=Vu(e,1/o,r)),e}function xd(e,t,[n,r,o],i,s){!function(e,t=0,n=1,r=.5,o,i=e,s=e){if(es.test(t)&&(t=parseFloat(t),t=pc(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=pc(i.min,i.max,r);e===i&&(a-=t),e.min=bd(e.min,t,n,a,o),e.max=bd(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,i,s)}const wd=["x","scaleX","originX"],_d=["y","scaleY","originY"];function Sd(e,t,n,r){xd(e.x,t,wd,n?n.x:void 0,r?r.x:void 0),xd(e.y,t,_d,n?n.y:void 0,r?r.y:void 0)}function kd(e){return 0===e.translate&&1===e.scale}function Ed(e){return kd(e.x)&&kd(e.y)}function Cd(e,t){return e.min===t.min&&e.max===t.max}function Td(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Pd(e,t){return Td(e.x,t.x)&&Td(e.y,t.y)}function Rd(e){return xu(e.x)/xu(e.y)}function Od(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Ad{constructor(){this.members=[]}add(e){Ks(this.members,e),e.scheduleRender()}remove(e){if($s(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Nd=(e,t)=>e.depth-t.depth;class Md{constructor(){this.children=[],this.isDirty=!1}add(e){Ks(this.children,e),this.isDirty=!0}remove(e){$s(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Nd),this.isDirty=!1,this.children.forEach(e)}}const Dd={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},jd="undefined"!=typeof window&&void 0!==window.MotionDebug,Id=["","X","Y","Z"],Ld={visibility:"hidden"};let Fd=0;function zd(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Vd(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Xc(t);window.MotionHasOptimisedTransformAnimation(n)&&window.MotionCancelOptimisedTransform(n);const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Vd(r)}function Bd({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Fd++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,jd&&(Dd.totalNodes=Dd.resolvedTargetDeltas=Dd.recalculatedProjection=0),this.nodes.forEach(Kd),this.nodes.forEach(Jd),this.nodes.forEach(Zd),this.nodes.forEach($d),jd&&window.MotionDebug.record(Dd)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e){const t=Dl.now(),n=({timestamp:r})=>{const o=r-t;o>=250&&(Zs(n),e(o-250))};return Js.read(n,!0),()=>Zs(n)}(r),td.hasAnimatedSinceResize&&(td.hasAnimatedSinceResize=!1,this.nodes.forEach(Gd))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&s&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||s.getDefaultTransition()||of,{onLayoutAnimationStart:i,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!Pd(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...Ma(o,"layout"),onPlay:i,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Gd(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Zs(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Qd),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedTransform&&!this.hasCheckedOptimisedAppear&&Vd(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;eKu&&(t.x=1),t.y<$u&&t.y>Ku&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms=Nu());const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(yd(this.prevProjectionDelta.x,this.projectionDelta.x),yd(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),_u(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&Od(this.projectionDelta.x,this.prevProjectionDelta.x)&&Od(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),jd&&Dd.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Au(),this.projectionDelta=Au(),this.projectionDeltaWithTransform=Au()}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=Au();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s=Nu(),a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(rf));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,f,h,p;tf(i.x,e.x,n),tf(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Eu(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),l=this.relativeTarget,f=this.relativeTargetOrigin,h=s,p=n,nf(l.x,f.x,h.x,p),nf(l.y,f.y,h.y,p),d&&function(e,t){return Cd(e.x,t.x)&&Cd(e.y,t.y)}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=Nu()),vd(d,this.relativeTarget)),a&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=pc(0,void 0!==n.opacity?n.opacity:1,hd(r)),e.opacityExit=pc(void 0!==t.opacity?t.opacity:1,0,pd(r))):i&&(e.opacity=pc(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o{td.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Bi(0)?0:qc(0);return r.start(Uc("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&cf(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Nu();const t=xu(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=xu(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}vd(t,n),Yu(t,o),_u(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ad),this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&zd("z",e,r,this.animationValues);for(let t=0;t{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(qd),this.root.sharedNodes.clear()}}}function Wd(e){e.updateLayout()}function Ud(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?Mu((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=xu(r);r.min=t[e].min,r.max=r.min+o})):cf(o,n.layoutBox,t)&&Mu((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],s=xu(t[r]);o.max=o.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)}));const s=Au();_u(s,t,n.layoutBox);const a=Au();i?_u(a,e.applyTransform(r,!0),n.measuredBox):_u(a,t,n.layoutBox);const l=!Ed(s);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const s=Nu();Eu(s,n.layoutBox,o.layoutBox);const a=Nu();Eu(a,t,i.layoutBox),Pd(s,a)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Kd(e){jd&&Dd.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function $d(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Hd(e){e.clearSnapshot()}function qd(e){e.clearMeasurements()}function Yd(e){e.isLayoutDirty=!1}function Xd(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Gd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Jd(e){e.resolveTargetDelta()}function Zd(e){e.calcProjection()}function Qd(e){e.resetSkewAndRotation()}function ef(e){e.removeLeadSnapshot()}function tf(e,t,n){e.translate=pc(t.translate,0,n),e.scale=pc(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function nf(e,t,n,r){e.min=pc(t.min,n.min,r),e.max=pc(t.max,n.max,r)}function rf(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const of={duration:.45,ease:[.4,0,.1,1]},sf=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),af=sf("applewebkit/")&&!sf("chrome/")?Math.round:Gs;function lf(e){e.min=af(e.min),e.max=af(e.max)}function cf(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=Rd(t),o=Rd(n),!(Math.abs(r-o)<=.2));var r,o}function uf(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const df=Bd({attachResizeListener:(e,t)=>ra(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ff={current:void 0},hf=Bd({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ff.current){const e=new df({});e.mount(window),e.setOptions({layoutScroll:!0}),ff.current=e}return ff.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),pf={pan:{Feature:class extends ma{constructor(){super(...arguments),this.removePointerDownListener=Gs}onPointerDown(e){this.session=new cu(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gu(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:ed(e),onStart:ed(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Js.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=aa(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ma{constructor(e){super(e),this.removeGroupControls=Gs,this.removeListeners=Gs,this.controls=new Zu(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Gs}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:hf,MeasureLayout:sd}},mf={current:null},gf={current:!1},vf=new WeakMap,yf=[...Ga,ul,wl],bf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],xf=ki.length;class wf{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:i},s={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=rl,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,Js.render(this.render,!1,!0))};const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=Ei(t),this.isVariantNode=Ci(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in u){const t=u[e];void 0!==a[e]&&Bi(t)&&t.set(a[e],!1)}}mount(e){this.current=e,vf.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),gf.current||function(){if(gf.current=!0,ii)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>mf.current=e.matches;e.addListener(t),t()}else mf.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||mf.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){vf.delete(this.current),this.projection&&this.projection.unmount(),Zs(this.notifyUpdate),Zs(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){const n=zi.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Js.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),o(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in Ri){const t=Ri[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Nu()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;tt.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=qc(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&(za(r)||Ia(r))?r=parseFloat(r):(o=r,!yf.find(Xa(o))&&wl.test(t)&&(r=Pl(e,t))),this.setBaseTarget(e,Bi(r)?r.get():r)),Bi(r)?r.get():r;var o}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const o=Is(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(r=o[e])}if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||Bi(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new Kc),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class _f extends wf{constructor(){super(...arguments),this.KeyframeResolver=Ol}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}}class Sf extends _f{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=Os}readValueFromInstance(e,t){if(zi.has(t)){const e=Tl(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(us(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Xu(e,t)}build(e,t,n){ps(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Ms(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Bi(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class kf extends _f{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Nu}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(zi.has(t)){const e=Tl(t);return e&&e.default||0}return t=As.has(t)?t:li(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Ds(e,t,n)}build(e,t,n){Es(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){Ns(e,t,0,r)}mount(e){this.isSVGTag=Ts(e.tagName),super.mount(e)}}const Ef=(e,t)=>Ii(e)?new kf(t):new Sf(t,{allowProjection:e!==o.Fragment}),Cf={...au,...ka,...pf,layout:{ProjectionNode:hf,MeasureLayout:sd}},Tf=Di(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...Ii(e)?ta:na,preloadedFeatures:n,useRender:Rs(t),createVisualElement:r,Component:e}}(e,t,Cf,Ef)));var Pf=["slug","text","icon","className","disabled","badge"];function Rf(){return Rf=Object.assign?Object.assign.bind():function(e){for(var t=1;tsvg]:size-3",sm:"underline"===v?"py-1.5 text-sm [&>svg]:size-4":"px-3 py-1.5 text-sm [&>svg]:size-4",md:"underline"===v?"py-2 text-base [&>svg]:size-5":"px-3.5 py-1.5 text-base [&>svg]:size-5",lg:"underline"===v?"p-2.5 text-lg [&>svg]:size-6":"px-3.5 py-1.5 text-lg [&>svg]:size-6"}[g],_=te("relative border-none bg-transparent text-text-secondary cursor-pointer flex items-center justify-center transition-colors duration-200","full"===x?"flex-1":"","vertical"===y?"w-full justify-between":""),S="rounded-full";"rounded"===v?S="rounded-md":"underline"===v&&(S="rounded-none w-fit max-w-fit");var k=te(_,"border-none",S,"","focus:outline-none",u?"text-text-disabled cursor-not-allowed":"",w,p===r?"bg-background-primary text-text-primary":"",l);return i().createElement("button",Rf({ref:t,className:k,disabled:u,onClick:function(e){m(e,{slug:r,text:s})}},h),p===r&&"underline"===v&&i().createElement(Tf.span,{layoutId:"underline",className:"absolute right-0 left-0 -bottom-px h-px bg-border-interactive"}),i().createElement("span",{className:"flex items-center gap-1"},"left"===b&&a&&i().createElement("span",{className:"mr-1"},a),s,"right"===b&&a&&i().createElement("span",{className:"ml-1"},a)),f&&(0,o.isValidElement)(f)&&f)},Nf={Group:function(e){var t,n=e.children,r=e.activeItem,s=void 0===r?null:r,a=e.onChange,l=e.className,c=e.size,u=void 0===c?"sm":c,d=e.orientation,f=void 0===d?"horizontal":d,h=e.variant,p=void 0===h?"pill":h,m=e.iconPosition,g=void 0===m?"left":m,v=e.width,y=void 0===v?"auto":v,b=(0,o.useCallback)((function(e,t){a&&a({event:e,value:t})}),[a]),x="rounded-full",w="p-1",_="border border-tab-border border-solid";"vertical"===f?t="gap-0.5":"rounded"!==p&&"pill"!==p||("xs"===u||"sm"===u?t="gap-0.5":"md"!==u&&"lg"!==u||(t="gap-1")),"rounded"===p||"vertical"===f?x="rounded-md":"underline"===p&&(x="rounded-none",w="p-0",_="border-t-0 border-r-0 border-l-0 border-b border-solid border-tab-border","xs"===u?t="gap-0":"sm"===u?t="gap-2.5":"md"!==u&&"lg"!==u||(t="gap-3"));var S="vertical"===f?"flex-col":"",k="box-border [&>*]:box-border flex items-center ".concat("full"===y?"w-full":""," ").concat(S),E=te(k,x,w,t,_,l);return i().createElement("div",{className:E},i().createElement(Of.Provider,{value:{activeItem:s,onChange:b,size:u,variant:p,orientation:f,iconPosition:g,width:y}},i().Children.map(n,(function(e){return(0,o.isValidElement)(e)?i().cloneElement(e):null}))))},Tab:(0,o.forwardRef)(Af)};const Mf=me("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),Df=me("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),jf=me("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);var If={sm:{icon:"[&>svg]:size-4",searchIcon:"[&>svg]:size-4",selectButton:"px-2 py-2 rounded text-xs font-medium leading-4 min-h-[2.25rem]",multiSelect:"pl-2 pr-2 py-1.5",displaySelected:"text-xs font-normal",dropdown:"rounded-md",dropdownItemsWrapper:"p-1.5",searchbarWrapper:"p-3 flex items-center gap-0.5",searchbar:"font-medium text-xs",searchbarIcon:"[&>svg]:size-4",label:"text-xs font-medium"},md:{icon:"[&>svg]:size-5",searchIcon:"[&>svg]:size-5",selectButton:"px-2.5 py-2.5 rounded-md text-xs font-medium leading-4 min-h-[2.5rem]",multiSelect:"pl-2 pr-2.5 py-2",displaySelected:"text-sm font-normal",dropdown:"rounded-lg",dropdownItemsWrapper:"p-2",searchbarWrapper:"p-2.5 flex items-center gap-1",searchbar:"font-medium text-sm",searchbarIcon:"[&>svg]:size-5",label:"text-sm font-medium"},lg:{icon:"[&>svg]:size-6",searchIcon:"[&>svg]:size-5",selectButton:"px-3 py-3 rounded-lg text-sm font-medium leading-5 min-h-[3rem]",multiSelect:"pl-2.5 pr-3 py-2.5",displaySelected:"text-sm font-normal",dropdown:"rounded-lg",dropdownItemsWrapper:"p-2",searchbarWrapper:"p-2.5 flex items-center gap-1",searchbar:"font-medium text-sm",searchbarIcon:"[&>svg]:size-5",label:"text-base font-medium"}},Lf="group-disabled:text-field-color-disabled",Ff=["value","selected","children"];function zf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||Wf(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vf(){return Vf=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n{r&&(clearTimeout(m.current),y.current=null,g.current="")}),[r]),xr((()=>{var e;r&&""===g.current&&(v.current=null!=(e=null!=p?p:a)?e:-1)}),[r,p,a]);const S=ir((e=>{e?i.current.typing||(i.current.typing=e,x(e)):i.current.typing&&(i.current.typing=e,x(e))})),k=ir((e=>{function t(e,t,n){const r=w.current?w.current(t,n):t.find((e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))));return r?e.indexOf(r):-1}const n=s.current;if(g.current.length>0&&" "!==g.current[0]&&(-1===t(n,n,g.current)?S(!1):" "===e.key&&Ft(e)),null==n||_.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;r&&" "!==e.key&&(Ft(e),S(!0)),n.every((e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())}))&&g.current===e.key&&(g.current="",v.current=y.current),g.current+=e.key,clearTimeout(m.current),m.current=setTimeout((()=>{g.current="",v.current=y.current,S(!1)}),f);const o=v.current,i=t(n,[...n.slice((o||0)+1),...n.slice(0,(o||0)+1)],g.current);-1!==i?(b(i),y.current=i):" "!==e.key&&(g.current="",S(!1))})),E=o.useMemo((()=>({onKeyDown:k})),[k]),C=o.useMemo((()=>({onKeyDown:k,onKeyUp(e){" "===e.key&&S(!1)}})),[k,S]);return o.useMemo((()=>u?{reference:E,floating:C}:{}),[u,E,C])}(V,{listRef:W,activeIndex:A,selectedIndex:D,onMatch:P?N:j,onTypingChange:function(e){U.current=e}}),X=wo([$,H,q,K].concat(Bf(m?[]:[Y]))),G=X.getReferenceProps,J=X.getFloatingProps,Z=X.getItemProps,Q=function(e,t){if(h)return function(e,t){var n,r=Bf(null!==(n=C())&&void 0!==n?n:[]);-1===r.findIndex((function(e){return"object"===Kf(e)?e[u]===t[u]:e===t}))&&(r.push(t),b||_(r),j(e),F.reference.current.focus(),R(!1),E(""),"function"==typeof l&&l(r))}(e,t);j(e),b||_(t),F.reference.current.focus(),R(!1),E(""),"function"==typeof l&&l(t)},ee=(0,o.useCallback)((function(e,t){B.current[e]=t}),[]);return React.createElement(Yf.Provider,{value:{selectedIndex:D,setSelectedIndex:j,activeIndex:A,setActiveIndex:N,selected:w,setSelected:_,handleSelect:Q,combobox:m,sizeValue:i,multiple:h,onChange:l,isTypingRef:U,getItemProps:Z,onClickItem:function(e,t){Q(e,t)},onKeyDownItem:function(e,t,n){"Enter"===e.key&&(e.preventDefault(),Q(t,n))," "!==e.key||U.current||(e.preventDefault(),Q(t,n))},getValues:C,selectId:y,getReferenceProps:G,isOpen:P,value:s,updateListRef:ee,refs:F,listContentRef:W,by:u,getFloatingProps:J,floatingStyles:z,context:V,searchKeyword:k,setSearchKeyword:E,disabled:v}},d)};Gf.Button=function(e){var t,n,r,i=e.children,s=e.icon,a=void 0===s?null:s,l=e.placeholder,c=void 0===l?"Select an option":l,u=e.optionIcon,d=void 0===u?null:u,f=e.displayBy,h=void 0===f?"name":f,p=e.label,m=Xf(),g=m.sizeValue,v=m.getReferenceProps,y=m.getValues,b=m.selectId,x=m.refs,w=m.isOpen,_=m.multiple,S=m.combobox,k=m.setSelected,E=m.onChange,C=m.isControlled,T=m.disabled,P=m.by,R=null===(t={sm:"xs",md:"sm",lg:"md"})||void 0===t?void 0:t[g],O=(0,o.useCallback)((function(){if(a)return a;var e="text-field-placeholder group-disabled:text-icon-disabled";return S?React.createElement(Mf,{className:e}):React.createElement(Df,{className:e})}),[a]),A=(0,o.useCallback)((function(){var e=y();if(!e)return null;if("function"==typeof i){var t=Hf({value:e},_?{onClose:N}:{});return i(t)}if(_)return e.map((function(e,t){return React.createElement(Le,{icon:d,type:"rounded",key:t,size:R,onMouseDown:N(e),label:"object"===Kf(e)?e[h]:e,disabled:T})}));var n="object"===Kf(e)?e[h]:e;return(0,o.isValidElement)(i)&&(n=i),React.createElement("span",{className:te(If[g].displaySelected,Lf)},n)}),[y]),N=function(e){return function(t){var n;null==t||t.preventDefault(),null==t||t.stopPropagation();var r=Bf(null!==(n=y())&&void 0!==n?n:[]),o=r.findIndex((function(t){return"object"===Kf(t)?t[P]===e[P]:t===e}));-1!==o&&(r.splice(o,1),C||k(r),"function"==typeof E&&E(r))}};return React.createElement("div",{className:"flex flex-col items-start gap-1.5 [&_*]:box-border box-border"},React.createElement("label",{className:te(null===(n=If[g])||void 0===n?void 0:n.label,"text-field-label"),htmlFor:b},p),React.createElement("button",Vf({id:b,ref:x.setReference,className:te("flex items-center justify-between border border-solid w-full box-border transition-colors duration-150 bg-white","border focus-visible:outline-none border-solid border-field-border",!w&&"focus:ring-2 focus:ring-offset-4 focus:border-focus-border focus:ring-focus [&:hover:not(:focus):not(:disabled)]:border-border-strong",If[g].selectButton,_&&If[g].multiSelect,"group disabled:border-field-border-disabled [&:hover:has(:disabled)]:border-field-border-disabled"),"aria-labelledby":"select-label",tabIndex:0,disabled:T},v()),React.createElement("div",{className:te("flex-1 grid items-center justify-start gap-1.5 ",y()&&"flex flex-wrap")},A(),(_?!(null!==(r=y())&&void 0!==r&&r.length):!y())&&React.createElement("div",{className:te("[grid-area:1/1/2/3] text-field-input",If[g].displaySelected,Lf)},c)),React.createElement("div",{className:te("flex items-center [&>svg]:shrink-0",If[g].icon)},O())))},Gf.Options=function(e){var t=e.children,n=e.searchBy,r=void 0===n?"id":n,i=e.searchPlaceholder,s=void 0===i?"Search...":i,a=e.dropdownPortalRoot,l=void 0===a?null:a,c=e.dropdownPortalId,u=void 0===c?"":c,d=Xf(),f=d.isOpen,h=d.context,p=d.refs,m=d.combobox,g=d.floatingStyles,v=d.getFloatingProps,y=d.sizeValue,b=d.setSearchKeyword,x=d.setActiveIndex,w=d.setSelectedIndex,_=d.value,S=d.selected,k=d.getValues,E=d.searchKeyword,C=d.listContentRef,T=d.by,P=(0,o.useMemo)((function(){var e=k(),n=0;return e&&(n=o.Children.toArray(t).findIndex((function(t){return"object"===Kf(t.props.value)?t.props.value[T]===e[T]:t.props.value===e}))),-1===n?0:n}),[_,S,t]);(0,o.useLayoutEffect)((function(){x(P),w(P)}),[]);var R=(0,o.useMemo)((function(){return o.Children.map(t,(function(e,t){if(!(0,o.isValidElement)(e))return null;if(E){var n=e.props.value;if("object"===Kf(n)){if(-1===n[r].toLowerCase().indexOf(E.toLowerCase()))return null}else if(-1===n.toLowerCase().indexOf(E.toLowerCase()))return null}return(0,o.cloneElement)(e,Hf(Hf({},e.props),{},{index:t}))}))}),[E,_,S,t]),O=o.Children.count(R);return(0,o.useEffect)((function(){C.current=[],o.Children.forEach(t,(function(e){if((0,o.isValidElement)(e)&&e.props.value){if(E){var t=e.props.value;if("object"===Kf(t)){if(-1===t[r].toLowerCase().indexOf(E.toLowerCase()))return}else if(-1===t.toLowerCase().indexOf(E.toLowerCase()))return}C.current.push(e.props.value)}}))}),[E]),React.createElement(React.Fragment,null,f&&React.createElement(to,{id:u,root:l},React.createElement(lo,{context:h,modal:!1},React.createElement("div",Vf({ref:p.setFloating,className:te("box-border [&_*]:box-border w-full bg-white outline-none shadow-lg border border-solid border-border-subtle overflow-hidden",m&&"grid grid-cols-1 grid-rows-[auto_1fr] divide-y divide-x-0 divide-solid divide-border-subtle",If[y].dropdown,!m&&"h-full"),style:Hf({},g)},v()),m&&React.createElement("div",{className:te(If[y].searchbarWrapper)},React.createElement(jf,{className:te("text-icon-secondary shrink-0",If[y].searchbarIcon)}),React.createElement("input",{className:te("px-1 w-full placeholder:text-field-placeholder border-0 focus:outline-none focus:shadow-none",If[y].searchbar),type:"search",name:"keyword",placeholder:s,onChange:function(e){return b(e.target.value)},autoComplete:"off"})),React.createElement("div",{className:te("overflow-y-auto",!m&&"w-full h-full",If[y].dropdownItemsWrapper)},!!O&&R,!O&&React.createElement("div",{className:"p-2 text-center text-base font-medium text-field-placeholder"},"No items found"))))))},Gf.Option=function(e){var t=e.value,n=e.selected,r=e.children,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.create(th({message:e,type:"neutral"},t))}},{key:"success",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.create(th({message:e,type:"success"},t))}},{key:"error",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.create(th({message:e,type:"error"},t))}},{key:"warning",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.create(th({message:e,type:"warning"},t))}},{key:"info",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.create(th({message:e,type:"info"},t))}},{key:"custom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.create(th({jsx:e,type:"custom"},t))}}],t&&rh(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),hh=new fh,ph=Object.seal(Object.assign((function(e,t){return hh.default(e,t)}),{success:hh.success.bind(hh),error:hh.error.bind(hh),warning:hh.warning.bind(hh),info:hh.info.bind(hh),custom:hh.custom.bind(hh),dismiss:hh.dismiss.bind(hh),update:hh.update.bind(hh)},{getHistory:hh.history.bind(hh)})),mh=!1,gh={"top-left":"top-0 bottom-0 left-0 justify-start items-start","top-right":"top-0 bottom-0 right-0 justify-start items-end","bottom-left":"top-0 bottom-0 left-0 justify-end items-start","bottom-right":"top-0 bottom-0 right-0 justify-end items-end"},vh={neutral:"border-alert-border-neutral bg-alert-background-neutral",custom:"border-alert-border-neutral bg-alert-background-neutral",info:"border-alert-border-info bg-alert-background-info",success:"border-alert-border-green bg-alert-background-green",warning:"border-alert-border-warning bg-alert-background-warning",error:"border-alert-border-danger bg-alert-background-danger"},yh="bg-background-inverse border-background-inverse",bh={light:"text-icon-secondary",dark:"text-icon-inverse"};class xh extends o.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function wh({children:e,isPresent:t}){const n=(0,o.useId)(),r=(0,o.useRef)(null),i=(0,o.useRef)({width:0,height:0,top:0,left:0}),{nonce:s}=(0,o.useContext)(ni);return(0,o.useInsertionEffect)((()=>{const{width:e,height:o,top:a,left:l}=i.current;if(t||!r.current||!e||!o)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return s&&(c.nonce=s),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${o}px !important;\n top: ${a}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(c)}}),[t]),(0,ti.jsx)(xh,{isPresent:t,childRef:r,sizeRef:i,children:o.cloneElement(e,{ref:r})})}const _h=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:a})=>{const l=Ls(Sh),c=(0,o.useId)(),u=(0,o.useMemo)((()=>({id:c,initial:t,isPresent:n,custom:i,onExitComplete:e=>{l.set(e,!0);for(const e of l.values())if(!e)return;r&&r()},register:e=>(l.set(e,!1),()=>l.delete(e))})),s?[Math.random()]:[n]);return(0,o.useMemo)((()=>{l.forEach(((e,t)=>l.set(t,!1)))}),[n]),o.useEffect((()=>{!n&&!l.size&&r&&r()}),[n]),"popLayout"===a&&(e=(0,ti.jsx)(wh,{isPresent:n,children:e})),(0,ti.jsx)(oi.Provider,{value:u,children:e})};function Sh(){return new Map}const kh=e=>e.key||"";function Eh(e){const t=[];return o.Children.forEach(e,(e=>{(0,o.isValidElement)(e)&&t.push(e)})),t}const Ch=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:i,presenceAffectsLayout:s=!0,mode:a="sync"})=>{Fa(!t,"Replace exitBeforeEnter with mode='wait'");const l=(0,o.useMemo)((()=>Eh(e)),[e]),c=l.map(kh),u=(0,o.useRef)(!0),d=(0,o.useRef)(l),f=Ls((()=>new Map)),[h,p]=(0,o.useState)(l),[m,g]=(0,o.useState)(l);si((()=>{u.current=!1,d.current=l;for(let e=0;e{const t=kh(e),o=l===m||c.includes(t);return(0,ti.jsx)(_h,{isPresent:o,initial:!(u.current&&!r)&&void 0,custom:o?void 0:n,presenceAffectsLayout:s,mode:a,onExitComplete:o?void 0:()=>{if(!f.has(t))return;f.set(t,!0);let e=!0;f.forEach((t=>{t||(e=!1)})),e&&(null==y||y(),g(d.current),i&&i())},children:e},t)}))})};function Th(e){return Th="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},Th(e)}function Ph(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 Rh(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:u;if(l&&!(u<0))return x.current=(new Date).getTime(),setTimeout((function(){b(e.id)}),t)};(0,o.useEffect)((function(){var e=u;return _.current=S(t,e),function(){clearTimeout(_.current)}}),[]),(0,o.useEffect)((function(){null!=t&&t.dismiss&&b(t.id)}),[t]);var k,E,C,T,P,R,O,A,N,M,D=function(){var e,n;null==t||null===(e=t.action)||void 0===e||null===(n=e.onClick)||void 0===n||n.call(e,(function(){return b(t.id)}))},j=null;return"stack"===p&&(j=React.createElement("div",{className:te("flex items-center justify-start p-4 gap-2 relative border border-solid rounded-md shadow-lg","dark"===f?yh:null===(k=vh)||void 0===k?void 0:k[y],"w-[22.5rem]"),onMouseEnter:function(){clearTimeout(_.current),w.current=(new Date).getTime()},onMouseLeave:function(){_.current=S(t,u-(w.current-x.current))}},"custom"!==t.type?React.createElement(React.Fragment,null,React.createElement("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0"},Lo({variant:y,icon:g,theme:f})),React.createElement("div",{className:"flex flex-col items-start justify-start gap-0.5"},zo({title:r,theme:f}),Vo({content:s,theme:f}),(null==t||null===(E=t.action)||void 0===E?void 0:E.label)&&"function"==typeof(null==t||null===(C=t.action)||void 0===C?void 0:C.onClick)&&React.createElement("div",{className:"mt-2.5"},Fo({actionLabel:null==t||null===(T=t.action)||void 0===T?void 0:T.label,actionType:null!==(P=null==t||null===(R=t.action)||void 0===R?void 0:R.type)&&void 0!==P?P:"button",onAction:D,theme:f}))),React.createElement("div",{className:"absolute right-4 top-4 [&_svg]:size-5"},React.createElement("button",{className:te("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",null!==(O=bh[f])&&void 0!==O?O:bh.light),onClick:function(){return b(t.id)}},React.createElement(je,null)))):null==t||null===(A=t.jsx)||void 0===A?void 0:A.call(t,{close:function(){return b(t.id)},action:null!=t&&t.action?Rh(Rh({},null==t?void 0:t.action),{},{onClick:D}):null}))),"inline"===p&&(j=React.createElement("div",{className:te("flex items-center justify-start p-3 gap-2 relative border border-solid rounded-md shadow-lg","dark"===f?yh:null===(N=vh)||void 0===N?void 0:N[y],"lg:w-[47.5rem] w-full")},React.createElement("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0"},Lo({variant:y,icon:g,theme:f})),React.createElement("div",{className:"flex items-start justify-start gap-1 mr-10 [&>span:first-child]:shrink-0"},zo({title:r,theme:f}),Vo({content:s,theme:f})),React.createElement("div",{className:"absolute right-3 top-3 [&_svg]:size-5"},React.createElement("button",{className:te("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",null!==(M=bh[f])&&void 0!==M?M:bh.light),onClick:function(){return b(t.id)}},React.createElement(je,null))))),j},jh=(Mh=function(e){var t,n,r,i=e.position,s=void 0===i?"top-right":i,a=e.design,l=void 0===a?"stack":a,c=e.theme,u=void 0===c?"light":c,d=e.className,f=void 0===d?"":d,h=e.autoDismiss,p=void 0===h||h,m=e.dismissAfter,g=void 0===m?5e3:m,v=(n=(0,o.useState)([]),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(n,r)||Ah(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=v[0],b=v[1];(0,o.useEffect)((function(){hh.subscribe((function(e){null!=e&&e.dismiss?b((function(t){return t.map((function(t){return t.id===e.id?Rh(Rh({},t),{},{dismiss:!0}):t}))})):setTimeout((function(){(0,kn.flushSync)((function(){return b((function(t){return-1!==t.findIndex((function(t){return t.id===e.id}))?t.map((function(t){return t.id===e.id?Rh(Rh({},t),e):t})):[].concat(function(e){return function(e){if(Array.isArray(e))return Nh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ah(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t),[e])}))}))}))}))}),[]);var x=function(e){b((function(t){return t.filter((function(t){return t.id!==e}))}))};return React.createElement("ul",{className:te("fixed flex flex-col list-none z-20 p-10 pointer-events-none [&>li]:pointer-events-auto gap-3",null!==(t=gh[s])&&void 0!==t?t:gh["top-right"],f)},React.createElement(Ch,{initial:!1},y.map((function(e){var t,n,r,o,i;return React.createElement(Tf.li,{key:e.id,positionTransition:!0,initial:{opacity:0,y:50,scale:.7},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.6,transition:{duration:.15}},layoutId:"toast-".concat(e.id)},React.createElement(Dh,{toastItem:e,title:e.title,content:null==e?void 0:e.description,icon:null!==(t=null==e?void 0:e.icon)&&void 0!==t?t:null,design:null!==(n=null==e?void 0:e.design)&&void 0!==n?n:l,autoDismiss:null!==(r=null==e?void 0:e.autoDismiss)&&void 0!==r?r:p,dismissAfter:null!==(o=null==e?void 0:e.dismissAfter)&&void 0!==o?o:g,removeToast:x,variant:e.type,theme:null!==(i=null==e?void 0:e.theme)&&void 0!==i?i:u}))}))))},(0,o.memo)((function(e){return mh?null:(mh=!0,React.createElement(Mh,e))}))),Ih=["containerType","gap","direction","justify","align","wrap","cols","tabCols","mCols","className","children"],Lh=["grow","shrink","order","alignSelf","className","children"];function Fh(){return Fh=Object.assign?Object.assign.bind():function(e){for(var t=1;tspan:first-child]:shrink-0"},zo({title:g,theme:u}),Vo({content:y,theme:u}))),React.createElement("div",{className:"flex items-center justify-start gap-4"},(null==k?void 0:k.label)&&"function"==typeof(null==k?void 0:k.onClick)&&React.createElement("div",null,Fo({actionLabel:null==k?void 0:k.label,actionType:null!==(n=null==k?void 0:k.type)&&void 0!==n?n:"button",onAction:O,theme:u})),React.createElement("button",{className:te("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",null!==(r=R[u])&&void 0!==r?r:R.light),onClick:function(){return E()}},React.createElement(je,null))))},Kh=(Bh=function(e){const t=new URLSearchParams;t.append("code",e);for(let e=1;e{t.focus((()=>{const e=document.activeElement,n=t.getRootElement();null===n||null!==e&&n.contains(e)||n.focus({preventScroll:!0})}),{defaultSelection:e})}),[e,t]),null}const Yh={},Xh={},Gh={},Jh={},Zh={},Qh={},ep={},tp={},np={},rp={},op={},ip={},sp={},ap={},lp={},cp={},up={},dp={},fp={},hp={},pp={},mp={},gp={},vp={},yp={},bp={},xp={},wp={},_p={},Sp={},kp={},Ep={},Cp={},Tp={},Pp={},Rp={},Op={},Ap={},Np={},Mp={},Dp="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,jp=Dp&&"documentMode"in document?document.documentMode:null,Ip=Dp&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Lp=Dp&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Fp=!(!Dp||!("InputEvent"in window)||jp)&&"getTargetRanges"in new window.InputEvent("input"),zp=Dp&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Vp=Dp&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Bp=Dp&&/Android/.test(navigator.userAgent),Wp=Dp&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Up=Dp&&Bp&&Wp,Kp=Dp&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Wp,$p=1,Hp=3,qp=0,Yp=2,Xp=0,Gp=1,Jp=2,Zp=4,Qp=8,em=3|Zp|Qp|240,tm=1,nm=2,rm=3,om=4,im=5,sm=6,am=zp||Vp||Kp?" ":"​",lm="\n\n",cm=Lp?" ":am,um="֑-߿יִ-﷽ﹰ-ﻼ",dm="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",fm=new RegExp("^[^"+dm+"]*["+um+"]"),hm=new RegExp("^[^"+um+"]*["+dm+"]"),pm={bold:1,code:16,highlight:128,italic:2,strikethrough:Zp,subscript:32,superscript:64,underline:Qp},mm={directionless:1,unmergeable:2},gm={center:nm,end:sm,justify:om,left:tm,right:rm,start:im},vm={[nm]:"center",[sm]:"end",[om]:"justify",[tm]:"left",[rm]:"right",[im]:"start"},ym={normal:0,segmented:2,token:1},bm={[Xp]:"normal",[Jp]:"segmented",[Gp]:"token"};var xm,wm=(xm=function(e){const t=new URLSearchParams;t.append("code",e);for(let e=1;eSm;try{fb(e,(()=>{const o=Fy()||function(e){return e.getEditorState().read((()=>{const e=Fy();return null!==e?e.clone():null}))}(e),i=new Map,s=e.getRootElement(),a=e._editorState,l=e._blockCursorElement;let c=!1,u="";for(let n=0;n0){let t=0;for(let o=0;o0)for(const[t,n]of i)if(pb(n)){const r=n.getChildrenKeys();let o=t.firstChild;for(let n=0;n0){for(let t=0;t{Om(e,t,n)}))}function Mm(e,t){const n=e.__mode,r=e.__format,o=e.__style,i=t.__mode,s=t.__format,a=t.__style;return!(null!==n&&n!==i||null!==r&&r!==s||null!==o&&o!==a)}function Dm(e,t){const n=e.mergeWithSibling(t),r=nb()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function jm(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&my(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){if(Mm(t,r)){r=Dm(t,r);break}break}t.remove()}for(;null!==(n=r.getNextSibling())&&my(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(Mm(r,n)){r=Dm(r,n);break}break}n.remove()}}else r.remove()}function Im(e){for(;"element"===e.type;){const t=e.getNode(),n=e.offset;let r,o;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),o=!0):(r=t.getChildAtIndex(n),o=!1),my(r)){e.set(r.__key,o?r.getTextContentSize():0,"text");break}if(!pb(r))break;e.set(r.__key,o?r.getChildrenSize():0,"element")}}let Lm=1;const Fm="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function zm(e){const t=document.activeElement;if(null===t)return!1;const n=t.nodeName;return vb(Zm(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==t.__lexicalEditor)}function Vm(e,t,n){const r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!zm(t)&&Bm(t)===e}catch(e){return!1}}function Bm(e){let t=e;for(;null!=t;){const e=t.__lexicalEditor;if(null!=e)return e;t=Tg(t)}return null}function Wm(e){return e.isToken()||e.isSegmented()}function Um(e){return e.nodeType===Hp}function Km(e){let t=e;for(;null!=t;){if(Um(t))return t;t=t.firstChild}return null}function $m(e,t,n){const r=pm[t];if(null!==n&&(e&r)==(n&r))return e;let o=e^r;return"subscript"===t?o&=~pm.superscript:"superscript"===t&&(o&=~pm.subscript),o}function Hm(e){const t=e.getParent();if(null!==t){const n=e.getWritable(),r=t.getWritable(),o=e.getPreviousSibling(),i=e.getNextSibling();if(null===o)if(null!==i){const e=i.getWritable();r.__first=i.__key,e.__prev=null}else r.__first=null;else{const e=o.getWritable();if(null!==i){const t=i.getWritable();t.__prev=e.__key,e.__next=t.__key}else e.__next=null;n.__prev=null}if(null===i)if(null!==o){const e=o.getWritable();r.__last=o.__key,e.__next=null}else r.__last=null;else{const e=i.getWritable();if(null!==o){const t=o.getWritable();t.__next=e.__key,e.__prev=t.__key}else e.__prev=null;n.__next=null}r.__size--,n.__parent=null}}function qm(e){eb();const t=e.getLatest(),n=t.__parent,r=tb(),o=nb(),i=r._nodeMap,s=o._dirtyElements;null!==n&&function(e,t,n){let r=e;for(;null!==r;){if(n.has(r))return;const e=t.get(r);if(void 0===e)break;n.set(r,!1),r=e.__parent}}(n,i,s);const a=t.__key;o._dirtyType=1,pb(e)?s.set(a,!0):o._dirtyLeaves.add(a)}function Ym(e){Qy();const t=nb(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){const e=Gm(n);null!==e&&e.getWritable()}if(null!==e){const t=Gm(e);null!==t&&t.getWritable()}}}function Xm(){return Zy()?null:nb()._compositionKey}function Gm(e,t){const n=(t||tb())._nodeMap.get(e);return void 0===n?null:n}function Jm(e,t){const n=e[`__lexicalKey_${nb()._key}`];return void 0!==n?Gm(n,t):null}function Zm(e,t){let n=e;for(;null!=n;){const e=Jm(n,t);if(null!==e)return e;n=Tg(n)}return null}function Qm(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function eg(e){return e.read((()=>tg().getTextContent()))}function tg(){return ng(tb())}function ng(e){return e._nodeMap.get("root")}function rg(e){Qy();const t=tb();null!==e&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function og(e){const t=nb(),n=function(e,t){let n=e;for(;null!=n;){const e=n[`__lexicalKey_${t._key}`];if(void 0!==e)return e;n=Tg(n)}return null}(e,t);return null===n?e===t.getRootElement()?Gm("root"):null:Gm(n)}function ig(e,t){return t?e.getTextContentSize():0}function sg(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function ag(e){const t=[];let n=e;for(;null!==n;)t.push(n),n=n._parentEditor;return t}function lg(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function cg(e){return e.nodeType===Hp?e.nodeValue:null}function ug(e,t,n){const r=_n(t._window);if(null===r)return;const o=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(null!==o){let t=cg(o);const r=Zm(o);if(null!==t&&my(r)){if(t===am&&n){const e=n.length;t=n,i=e,s=e}null!==t&&dg(r,t,i,s,e)}}}function dg(e,t,n,r,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let a=t;(s||o)&&t[t.length-1]===am&&(a=t.slice(0,-1));const l=i.getTextContent();if(o||a!==l){if(""===a){if(Ym(null),zp||Vp||Kp)i.remove();else{const e=nb();setTimeout((()=>{e.update((()=>{i.isAttached()&&i.remove()}))}),20)}return}const t=i.getParent(),o=zy(),l=i.getTextContentSize(),c=Xm(),u=i.getKey();if(i.isToken()||null!==c&&u===c&&!s||Ey(o)&&(null!==t&&!t.canInsertTextBefore()&&0===o.anchor.offset||o.anchor.key===e.__key&&0===o.anchor.offset&&!i.canInsertTextBefore()&&!s||o.focus.key===e.__key&&o.focus.offset===l&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const d=Fy();if(!Ey(d)||null===n||null===r)return void i.setTextContent(a);if(d.setTextNodeRange(i,n,i,r),i.isSegmented()){const e=py(i.getTextContent());i.replace(e),i=e}i.setTextContent(a)}}}function fg(e){return"ArrowLeft"===e}function hg(e){return"ArrowRight"===e}function pg(e,t){return Ip?e:t}function mg(e){return"Enter"===e}function gg(e){return"Backspace"===e}function vg(e){return"Delete"===e}function yg(e,t,n){return"a"===e.toLowerCase()&&pg(t,n)}function bg(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});const n=e.__lexicalClassNameCache,r=n[t];if(void 0!==r)return r;const o=e[t];if("string"==typeof o){const e=_m(o);return n[t]=e,e}return o}function xg(e,t,n,r,o){if(0===n.size)return;const i=r.__type,s=r.__key,a=t.get(i);void 0===a&&wm(33,i);const l=a.klass;let c=e.get(l);void 0===c&&(c=new Map,e.set(l,c));const u=c.get(s),d="destroyed"===u&&"created"===o;(void 0===u||d)&&c.set(s,d?"updated":o)}function wg(e,t,n){const r=e.getParent();let o=n,i=e;return null!==r&&(t&&0===n?(o=i.getIndexWithinParent(),i=r):t||n!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(t?o-1:o)}function _g(e,t){const n=e.offset;if("element"===e.type)return wg(e.getNode(),t,n);{const r=e.getNode();if(t&&0===n||!t&&n===r.getTextContentSize()){const e=t?r.getPreviousSibling():r.getNextSibling();return null===e?wg(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):e}}return null}function Sg(e){const t=Rg(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function kg(e,t,n){return cb(e,t,n)}function Eg(e){return!bb(e)&&!e.isLastChild()&&!e.isInline()}function Cg(e,t){const n=e._keyToDOMMap.get(t);return void 0===n&&wm(75,t),n}function Tg(e){const t=e.assignedSlot||e.parentElement;return null!==t&&11===t.nodeType?t.host:t}function Pg(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function Rg(e){const t=e._window;return null===t&&wm(78),t}function Og(e){return bb(e)||pb(e)&&e.isShadowRoot()}function Ag(e){const t=nb(),n=e.constructor.getType(),r=t._nodes.get(n);void 0===r&&wm(97);const o=r.replace;if(null!==o){const t=o(e);return t instanceof e.constructor||wm(98),t}return e}function Ng(e,t){!bb(e.getParent())||pb(t)||vb(t)||wm(99)}function Mg(e){return(vb(e)||pb(e)&&!e.canBeEmpty())&&!e.isInline()}function Dg(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;null!==r&&r.removeChild(e)}function _n(e){return Dp?(e||window).getSelection():null}function jg(e){return 1===e.nodeType}function Ig(e){const t=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==e.nodeName.match(t)}function Lg(e){const t=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==e.nodeName.match(t)}function Fg(e){if(bb(e)||vb(e)&&!e.isInline())return!0;if(!pb(e)||Og(e))return!1;const t=e.getFirstChild(),n=null===t||Jv(t)||my(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function zg(e,t){let n=e;for(;null!==n&&null!==n.getParent()&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}const Vg=new WeakMap,Bg=new Map;function Wg(e){const t=e.constructor.clone(e);return t.__parent=e.__parent,t.__next=e.__next,t.__prev=e.__prev,pb(e)&&pb(t)?(Tb(e)&&Tb(t)&&(t.__textFormat=e.__textFormat,t.__textStyle=e.__textStyle),t.__first=e.__first,t.__last=e.__last,t.__size=e.__size,t.__indent=e.__indent,t.__format=e.__format,t.__style=e.__style,t.__dir=e.__dir):my(e)&&my(t)&&(t.__format=e.__format,t.__style=e.__style,t.__mode=e.__mode,t.__detail=e.__detail),t}function Ug(e,t,n,r,o,i){let s=e.getFirstChild();for(;null!==s;){const e=s.__key;s.__parent===t&&(pb(s)&&Ug(s,e,n,r,o,i),n.has(e)||i.delete(e),o.push(e)),s=s.getNextSibling()}}let Kg,$g,Hg,qg,Yg,Xg,Gg,Jg,Zg,Qg,ev="",tv="",nv=null,rv="",ov="",iv=!1,sv=!1,av=null;function lv(e,t){const n=Gg.get(e);if(null!==t){const n=Sv(e);n.parentNode===t&&t.removeChild(n)}if(Jg.has(e)||$g._keyToDOMMap.delete(e),pb(n)){const e=bv(n,Gg);cv(e,0,e.length-1,null)}void 0!==n&&xg(Qg,Hg,qg,n,"destroyed")}function cv(e,t,n,r){let o=t;for(;o<=n;++o){const t=e[o];void 0!==t&&lv(t,r)}}function uv(e,t){e.setProperty("text-align",t)}const dv="40px";function fv(e,t){const n=Kg.theme.indent;if("string"==typeof n){const r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}const r=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||dv;e.style.setProperty("padding-inline-start",0===t?"":`calc(${t} * ${r})`)}function hv(e,t){const n=e.style;0===t?uv(n,""):t===tm?uv(n,"left"):t===nm?uv(n,"center"):t===rm?uv(n,"right"):t===om?uv(n,"justify"):t===im?uv(n,"start"):t===sm&&uv(n,"end")}function pv(e,t,n){const r=Jg.get(e);void 0===r&&wm(60);const o=r.createDOM(Kg,$g);if(function(e,t,n){const r=n._keyToDOMMap;t["__lexicalKey_"+n._key]=e,r.set(e,t)}(e,o,$g),my(r)?o.setAttribute("data-lexical-text","true"):vb(r)&&o.setAttribute("data-lexical-decorator","true"),pb(r)){const e=r.__indent,t=r.__size;if(0!==e&&fv(o,e),0!==t){const e=t-1;!function(e,t,n,r){const o=tv;tv="",mv(e,n,0,t,r,null),yv(n,r),tv=o}(bv(r,Jg),e,r,o)}const n=r.__format;0!==n&&hv(o,n),r.isInline()||vv(null,r,o),Eg(r)&&(ev+=lm,ov+=lm)}else{const t=r.getTextContent();if(vb(r)){const t=r.decorate($g,Kg);null!==t&&wv(e,t),o.contentEditable="false"}else my(r)&&(r.isDirectionless()||(tv+=t));ev+=t,ov+=t}if(null!==t)if(null!=n)t.insertBefore(o,n);else{const e=t.__lexicalLineBreak;null!=e?t.insertBefore(o,e):t.appendChild(o)}return xg(Qg,Hg,qg,r,"created"),o}function mv(e,t,n,r,o,i){const s=ev;ev="";let a=n;for(;a<=r;++a){pv(e[a],o,i);const t=Jg.get(e[a]);null!==t&&my(t)&&(null===nv&&(nv=t.getFormat()),""===rv&&(rv=t.getStyle()))}Eg(t)&&(ev+=lm),o.__lexicalTextContent=ev,ev=s+ev}function gv(e,t){const n=t.get(e);return Jv(n)||vb(n)&&n.isInline()}function vv(e,t,n){const r=null!==e&&(0===e.__size||gv(e.__last,Gg)),o=0===t.__size||gv(t.__last,Jg);if(r){if(!o){const e=n.__lexicalLineBreak;null!=e&&n.removeChild(e),n.__lexicalLineBreak=null}}else if(o){const e=document.createElement("br");n.__lexicalLineBreak=e,n.appendChild(e)}}function yv(e,t){const n=t.__lexicalDirTextContent,r=t.__lexicalDir;if(n!==tv||r!==av){const n=""===tv,i=n?av:(o=tv,fm.test(o)?"rtl":hm.test(o)?"ltr":null);if(i!==r){const o=t.classList,s=Kg.theme;let a=null!==r?s[r]:void 0,l=null!==i?s[i]:void 0;if(void 0!==a){if("string"==typeof a){const e=_m(a);a=s[r]=e}o.remove(...a)}if(null===i||n&&"ltr"===i)t.removeAttribute("dir");else{if(void 0!==l){if("string"==typeof l){const e=_m(l);l=s[i]=e}void 0!==l&&o.add(...l)}t.dir=i}sv||(e.getWritable().__dir=i)}av=i,t.__lexicalDirTextContent=tv,t.__lexicalDir=i}var o}function bv(e,t){const n=[];let r=e.__first;for(;null!==r;){const e=t.get(r);void 0===e&&wm(101),n.push(r),r=e.__next}return n}function xv(e,t){const n=Gg.get(e);let r=Jg.get(e);void 0!==n&&void 0!==r||wm(61);const o=iv||Xg.has(e)||Yg.has(e),i=Cg($g,e);if(n===r&&!o){if(pb(n)){const e=i.__lexicalTextContent;void 0!==e&&(ev+=e,ov+=e);const t=i.__lexicalDirTextContent;void 0!==t&&(tv+=t)}else{const e=n.getTextContent();my(n)&&!n.isDirectionless()&&(tv+=e),ov+=e,ev+=e}return i}if(n!==r&&o&&xg(Qg,Hg,qg,r,"updated"),r.updateDOM(n,i,Kg)){const n=pv(e,null,null);return null===t&&wm(62),t.replaceChild(n,i),lv(e,null),n}if(pb(n)&&pb(r)){const e=r.__indent;e!==n.__indent&&fv(i,e);const t=r.__format;t!==n.__format&&hv(i,t),o&&(function(e,t,n){const r=tv;var o;tv="",nv=null,rv="",function(e,t,n){const r=ev,o=e.__size,i=t.__size;if(ev="",1===o&&1===i){const r=e.__first,o=t.__first;if(r===o)xv(r,n);else{const e=Sv(r),t=pv(o,null,null);n.replaceChild(t,e),lv(r,null)}const i=Jg.get(o);my(i)&&(null===nv&&(nv=i.getFormat()),""===rv&&(rv=i.getStyle()))}else{const r=bv(e,Gg),s=bv(t,Jg);if(0===o)0!==i&&mv(s,t,0,i-1,n,null);else if(0===i){if(0!==o){const e=null==n.__lexicalLineBreak;cv(r,0,o-1,e?null:n),e&&(n.textContent="")}}else!function(e,t,n,r,o,i){const s=r-1,a=o-1;let l,c,u=i.firstChild,d=0,f=0;for(;d<=s&&f<=a;){const e=t[d],r=n[f];if(e===r)u=_v(xv(r,i)),d++,f++;else{void 0===l&&(l=new Set(t)),void 0===c&&(c=new Set(n));const o=c.has(e),s=l.has(r);if(o)if(s){const e=Cg($g,r);e===u?u=_v(xv(r,i)):(null!=u?i.insertBefore(e,u):i.appendChild(e),xv(r,i)),d++,f++}else pv(r,i,u),f++;else u=_v(Sv(e)),lv(e,i),d++}const o=Jg.get(r);null!==o&&my(o)&&(null===nv&&(nv=o.getFormat()),""===rv&&(rv=o.getStyle()))}const h=d>s,p=f>a;if(h&&!p){const t=n[a+1];mv(n,e,f,a,i,void 0===t?null:$g.getElementByKey(t))}else p&&!h&&cv(t,d,s,i)}(t,r,s,o,i,n)}Eg(t)&&(ev+=lm),n.__lexicalTextContent=ev,ev=r+ev}(e,t,n),yv(t,n),Tb(o=t)&&null!=nv&&nv!==o.__textFormat&&!sv&&(o.setTextFormat(nv),o.setTextStyle(rv)),function(e){Tb(e)&&""!==rv&&rv!==e.__textStyle&&!sv&&e.setTextStyle(rv)}(t),tv=r}(n,r,i),bb(r)||r.isInline()||vv(n,r,i)),Eg(r)&&(ev+=lm,ov+=lm)}else{const t=r.getTextContent();if(vb(r)){const t=r.decorate($g,Kg);null!==t&&wv(e,t)}else my(r)&&!r.isDirectionless()&&(tv+=t);ev+=t,ov+=t}if(!sv&&bb(r)&&r.__cachedText!==ov){const e=r.getWritable();e.__cachedText=ov,r=e}return i}function wv(e,t){let n=$g._pendingDecorators;const r=$g._decorators;if(null===n){if(r[e]===t)return;n=Qm($g)}n[e]=t}function _v(e){let t=e.nextSibling;return null!==t&&t===$g._blockCursorElement&&(t=t.nextSibling),t}function Sv(e){const t=Zg.get(e);return void 0===t&&wm(75,e),t}const kv=Object.freeze({}),Ev=[["keydown",function(e,t){if(Cv=e.timeStamp,Tv=e.key,t.isComposing())return;const{key:n,shiftKey:r,ctrlKey:o,metaKey:i,altKey:s}=e;kg(t,ap,e)||null!=n&&(function(e,t,n,r){return hg(e)&&!t&&!r&&!n}(n,o,s,i)?kg(t,lp,e):function(e,t,n,r,o){return hg(e)&&!r&&!n&&(t||o)}(n,o,r,s,i)?kg(t,cp,e):function(e,t,n,r){return fg(e)&&!t&&!r&&!n}(n,o,s,i)?kg(t,up,e):function(e,t,n,r,o){return fg(e)&&!r&&!n&&(t||o)}(n,o,r,s,i)?kg(t,dp,e):function(e,t,n){return function(e){return"ArrowUp"===e}(e)&&!t&&!n}(n,o,i)?kg(t,fp,e):function(e,t,n){return function(e){return"ArrowDown"===e}(e)&&!t&&!n}(n,o,i)?kg(t,hp,e):function(e,t){return mg(e)&&t}(n,r)?(Mv=!0,kg(t,pp,e)):function(e){return" "===e}(n)?kg(t,mp,e):function(e,t){return Ip&&t&&"o"===e.toLowerCase()}(n,o)?(e.preventDefault(),Mv=!0,kg(t,Jh,!0)):function(e,t){return mg(e)&&!t}(n,r)?(Mv=!1,kg(t,pp,e)):function(e,t,n,r){return Ip?!t&&!n&&(gg(e)||"h"===e.toLowerCase()&&r):!(r||t||n)&&gg(e)}(n,s,i,o)?gg(n)?kg(t,gp,e):(e.preventDefault(),kg(t,Gh,!0)):function(e){return"Escape"===e}(n)?kg(t,vp,e):function(e,t,n,r,o){return Ip?!(n||r||o)&&(vg(e)||"d"===e.toLowerCase()&&t):!(t||r||o)&&vg(e)}(n,o,r,s,i)?vg(n)?kg(t,yp,e):(e.preventDefault(),kg(t,Gh,!1)):function(e,t,n){return gg(e)&&(Ip?t:n)}(n,s,o)?(e.preventDefault(),kg(t,np,!0)):function(e,t,n){return vg(e)&&(Ip?t:n)}(n,s,o)?(e.preventDefault(),kg(t,np,!1)):function(e,t){return Ip&&t&&gg(e)}(n,i)?(e.preventDefault(),kg(t,rp,!0)):function(e,t){return Ip&&t&&vg(e)}(n,i)?(e.preventDefault(),kg(t,rp,!1)):function(e,t,n,r){return"b"===e.toLowerCase()&&!t&&pg(n,r)}(n,s,i,o)?(e.preventDefault(),kg(t,op,"bold")):function(e,t,n,r){return"u"===e.toLowerCase()&&!t&&pg(n,r)}(n,s,i,o)?(e.preventDefault(),kg(t,op,"underline")):function(e,t,n,r){return"i"===e.toLowerCase()&&!t&&pg(n,r)}(n,s,i,o)?(e.preventDefault(),kg(t,op,"italic")):function(e,t,n,r){return"Tab"===e&&!t&&!n&&!r}(n,s,o,i)?kg(t,bp,e):function(e,t,n,r){return"z"===e.toLowerCase()&&!t&&pg(n,r)}(n,r,i,o)?(e.preventDefault(),kg(t,ip,void 0)):function(e,t,n,r){return Ip?"z"===e.toLowerCase()&&n&&t:"y"===e.toLowerCase()&&r||"z"===e.toLowerCase()&&r&&t}(n,r,i,o)?(e.preventDefault(),kg(t,sp,void 0)):Ty(t._editorState._selection)?function(e,t,n,r){return!t&&"c"===e.toLowerCase()&&(Ip?n:r)}(n,r,i,o)?(e.preventDefault(),kg(t,kp,e)):function(e,t,n,r){return!t&&"x"===e.toLowerCase()&&(Ip?n:r)}(n,r,i,o)?(e.preventDefault(),kg(t,Ep,e)):yg(n,i,o)&&(e.preventDefault(),kg(t,Cp,e)):!Lp&&yg(n,i,o)&&(e.preventDefault(),kg(t,Cp,e)),function(e,t,n,r){return e||t||n||r}(o,r,s,i)&&kg(t,Mp,e))}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;n instanceof Node&&"touch"!==r&&fb(t,(()=>{vb(Zm(n))||(Nv=!0)}))}],["compositionstart",function(e,t){fb(t,(()=>{const n=Fy();if(Ey(n)&&!t.isComposing()){const r=n.anchor,o=n.anchor.getNode();Ym(r.key),(e.timeStamp{Vv(t,e.data)}))}],["input",function(e,t){e.stopPropagation(),fb(t,(()=>{const n=Fy(),r=e.data,o=zv(e);if(null!=r&&Ey(n)&&Iv(n,o,r,e.timeStamp,!1)){Dv&&(Vv(t,r),Dv=!1);const o=n.anchor.getNode(),i=_n(t._window);if(null===i)return;const s=n.isBackward(),a=s?n.anchor.offset:n.focus.offset,l=s?n.focus.offset:n.anchor.offset;Fp&&!n.isCollapsed()&&my(o)&&null!==i.anchorNode&&o.getTextContent().slice(0,a)+r+o.getTextContent().slice(a+l)===cg(i.anchorNode)||kg(t,Qh,r);const c=r.length;Lp&&c>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=c),zp||Vp||Kp||!t.isComposing()||(Cv=0,Ym(null))}else ug(!1,t,null!==r?r:void 0),Dv&&(Vv(t,r||void 0),Dv=!1);Qy(),Am(nb())})),Rv=null}],["click",function(e,t){fb(t,(()=>{const n=Fy(),r=_n(t._window),o=zy();if(r)if(Ey(n)){const t=n.anchor,i=t.getNode();"element"===t.type&&0===t.offset&&n.isCollapsed()&&!bb(i)&&1===tg().getChildrenSize()&&i.getTopLevelElementOrThrow().isEmpty()&&null!==o&&n.is(o)?(r.removeAllRanges(),n.dirty=!0):3!==e.detail||n.isCollapsed()||i!==n.focus.getNode()&&(pb(i)?i.select(0):i.getParentOrThrow().select(0))}else if("touch"===e.pointerType){const n=r.anchorNode;if(null!==n){const i=n.nodeType;i!==$p&&i!==Hp||rg(Ly(o,r,t,e))}}kg(t,Xh,e)}))}],["cut",kv],["copy",kv],["dragstart",kv],["dragover",kv],["dragend",kv],["paste",kv],["focus",kv],["blur",kv],["drop",kv]];Fp&&Ev.push(["beforeinput",(e,t)=>function(e,t){const n=e.inputType,r=zv(e);"deleteCompositionText"===n||Lp&&Sg(t)||"insertCompositionText"!==n&&fb(t,(()=>{const o=Fy();if("deleteContentBackward"===n){if(null===o){const e=zy();if(!Ey(e))return;rg(e.clone())}if(Ey(o)){const n=o.anchor.key===o.focus.key;if(i=e.timeStamp,"MediaLast"===Tv&&i{fb(t,(()=>{Ym(null)}))}),30),Ey(o)){const e=o.anchor.getNode();e.markDirty(),o.format=e.getFormat(),my(e)||wm(142),o.style=e.getStyle()}}else{Ym(null),e.preventDefault();const r=o.anchor.getNode().getTextContent(),i=0===o.anchor.offset&&o.focus.offset===r.length;Up&&n&&!i||kg(t,Gh,!0)}return}}var i;if(!Ey(o))return;const s=e.data;null!==Rv&&ug(!1,t,Rv),o.dirty&&null===Rv||!o.isCollapsed()||bb(o.anchor.getNode())||null===r||o.applyDOMRange(r),Rv=null;const a=o.anchor,l=o.focus,c=a.getNode(),u=l.getNode();if("insertText"!==n&&"insertTranspose"!==n)switch(e.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":kg(t,Qh,e);break;case"insertFromComposition":Ym(null),kg(t,Qh,e);break;case"insertLineBreak":Ym(null),kg(t,Jh,!1);break;case"insertParagraph":Ym(null),Mv&&!Vp?(Mv=!1,kg(t,Jh,!1)):kg(t,Zh,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":kg(t,ep,e);break;case"deleteByComposition":(function(e,t){return e!==t||pb(e)||pb(t)||!e.isToken()||!t.isToken()})(c,u)&&kg(t,tp,e);break;case"deleteByDrag":case"deleteByCut":kg(t,tp,e);break;case"deleteContent":kg(t,Gh,!1);break;case"deleteWordBackward":kg(t,np,!0);break;case"deleteWordForward":kg(t,np,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":kg(t,rp,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":kg(t,rp,!1);break;case"formatStrikeThrough":kg(t,op,"strikethrough");break;case"formatBold":kg(t,op,"bold");break;case"formatItalic":kg(t,op,"italic");break;case"formatUnderline":kg(t,op,"underline");break;case"historyUndo":kg(t,ip,void 0);break;case"historyRedo":kg(t,sp,void 0)}else{if("\n"===s)e.preventDefault(),kg(t,Jh,!1);else if(s===lm)e.preventDefault(),kg(t,Zh,void 0);else if(null==s&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(t)}else null!=s&&Iv(o,r,s,e.timeStamp,!0)?(e.preventDefault(),kg(t,Qh,s)):Rv=s;Pv=e.timeStamp}}))}(e,t)]);let Cv=0,Tv=null,Pv=0,Rv=null;const Ov=new WeakMap;let Av=!1,Nv=!1,Mv=!1,Dv=!1,jv=[0,"",0,"root",0];function Iv(e,t,n,r,o){const i=e.anchor,s=e.focus,a=i.getNode(),l=nb(),c=_n(l._window),u=null!==c?c.anchorNode:null,d=i.key,f=l.getElementByKey(d),h=n.length;return d!==s.key||!my(a)||(!o&&(!Fp||Pv1||(o||!Fp)&&null!==f&&!a.isComposing()&&u!==Km(f)||null!==c&&null!==t&&(!t.collapsed||t.startContainer!==c.anchorNode||t.startOffset!==c.anchorOffset)||a.getFormat()!==e.format||a.getStyle()!==e.style||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;const n=e.anchor.offset,r=t.getParentOrThrow(),o=t.isToken();return 0===n?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||o||function(e){const t=e.getPreviousSibling();return(my(t)||pb(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||o)}(e,a)}function Lv(e,t){return null!==e&&null!==e.nodeValue&&e.nodeType===Hp&&0!==t&&t!==e.nodeValue.length}function Fv(e,t,n){const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}=e;Av&&(Av=!1,Lv(r,o)&&Lv(i,s))||fb(t,(()=>{if(!n)return void rg(null);if(!Vm(t,r,i))return;const a=Fy();if(Ey(a)){const n=a.anchor,r=n.getNode();if(a.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(a.dirty=!0);const o=Rg(t).event,i=o?o.timeStamp:performance.now(),[s,l,c,u,d]=jv,f=tg(),h=!1===t.isComposing()&&""===f.getTextContent();if(i{const t=zy(),o=n.anchorNode;if(null===o)return;const i=o.nodeType;i!==$p&&i!==Hp||rg(Ly(t,n,r,e))})));const o=ag(r),i=o[o.length-1],s=i._key,a=Wv.get(s),l=a||i;l!==r&&Fv(n,l,!1),Fv(n,r,!0),r!==i?Wv.set(s,r):a&&Wv.delete(s)}function Kv(e){e._lexicalHandled=!0}function $v(e){return!0===e._lexicalHandled}function Hv(e,t,n){Qy();const r=e.__key,o=e.getParent();if(null===o)return;const i=function(e){const t=Fy();if(!Ey(t)||!pb(e))return t;const{anchor:n,focus:r}=t,o=n.getNode(),i=r.getNode();return Pg(o,e)&&n.set(e.__key,0,"element"),Pg(i,e)&&r.set(e.__key,0,"element"),t}(e);let s=!1;if(Ey(i)&&t){const t=i.anchor,n=i.focus;t.key===r&&(Wy(t,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0),n.key===r&&(Wy(n,e,o,e.getPreviousSibling(),e.getNextSibling()),s=!0)}else Ty(i)&&t&&e.isSelected()&&e.selectPrevious();if(Ey(i)&&t&&!s){const t=e.getIndexWithinParent();Hm(e),Vy(i,o,t,-1)}else Hm(e);n||Og(o)||o.canBeEmpty()||!o.isEmpty()||Hv(o,t),t&&bb(o)&&o.isEmpty()&&o.selectEnd()}class qv{static getType(){wm(64,this.name)}static clone(e){wm(65,this.name)}constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,function(e,t){if(null!=t)return void(e.__key=t);Qy(),eb();const n=nb(),r=tb(),o=""+Lm++;r._nodeMap.set(o,e),pb(e)?n._dirtyElements.set(o,!0):n._dirtyLeaves.add(o),n._cloneNotNeeded.add(o),n._dirtyType=1,e.__key=o}(this,e)}getType(){return this.__type}isInline(){wm(137,this.constructor.name)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;const t=Gm(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){const t=e||Fy();if(null==t)return!1;const n=t.getNodes().some((e=>e.__key===this.__key));if(my(this))return n;if(Ey(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;const e=this.getParent();if(vb(this)&&this.isInline()&&e){const{anchor:n,focus:r}=t;if(n.isBefore(r)){const t=n.getNode(),r=n.offset===t.getChildrenSize(),o=t.is(e),i=t.getLastChildOrThrow().is(this);if(r&&o&&i)return!1}else{const t=r.getNode(),n=r.offset===t.getChildrenSize(),o=t.is(e),i=t.getLastChildOrThrow().is(this);if(n&&o&&i)return!1}}}return n}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(null===e)return-1;let t=e.getFirstChild(),n=0;for(;null!==t;){if(this.is(t))return n;n++,t=t.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return null===e?null:Gm(e)}getParentOrThrow(){const e=this.getParent();return null===e&&wm(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){const t=e.getParent();if(Og(t))return pb(e)||e===this&&vb(e)||wm(194),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&wm(67,this.__key),e}getParents(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return null===e?null:Gm(e)}getPreviousSiblings(){const e=[],t=this.getParent();if(null===t)return e;let n=t.getFirstChild();for(;null!==n&&!n.is(this);)e.push(n),n=n.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return null===e?null:Gm(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=this.getParents(),n=e.getParents();pb(this)&&t.unshift(this),pb(e)&&n.unshift(e);const r=t.length,o=n.length;if(0===r||0===o||t[r-1]!==n[o-1])return null;const i=new Set(n);for(let e=0;e{s.append(e)}))),Ey(n)){rg(n);const e=n.anchor,t=n.focus;e.key===o&&_y(e,s),t.key===o&&_y(t,s)}return Xm()===o&&Ym(i),s}insertAfter(e,t=!0){Qy(),Ng(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.getParent(),i=Fy();let s=!1,a=!1;if(null!==o){const t=e.getIndexWithinParent();if(Hm(r),Ey(i)){const e=o.__key,n=i.anchor,r=i.focus;s="element"===n.type&&n.key===e&&n.offset===t+1,a="element"===r.type&&r.key===e&&r.offset===t+1}}const l=this.getNextSibling(),c=this.getParentOrThrow().getWritable(),u=r.__key,d=n.__next;if(null===l?c.__last=u:l.getWritable().__prev=u,c.__size++,n.__next=u,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&Ey(i)){const e=this.getIndexWithinParent();Vy(i,c,e+1);const t=c.__key;s&&i.anchor.set(t,e+2,"element"),a&&i.focus.set(t,e+2,"element")}return e}insertBefore(e,t=!0){Qy(),Ng(this,e);const n=this.getWritable(),r=e.getWritable(),o=r.__key;Hm(r);const i=this.getPreviousSibling(),s=this.getParentOrThrow().getWritable(),a=n.__prev,l=this.getIndexWithinParent();null===i?s.__first=o:i.getWritable().__next=o,s.__size++,n.__prev=o,r.__prev=a,r.__next=n.__key,r.__parent=n.__parent;const c=Fy();return t&&Ey(c)&&Vy(c,this.getParentOrThrow(),l),e}isParentRequired(){return!1}createParentElementNode(){return Cb()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){Qy();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(pb(n))return n.select();if(!my(n)){const e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){Qy();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(pb(n))return n.select(0,0);if(!my(n)){const e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}}class Yv extends qv{static getType(){return"linebreak"}static clone(e){return new Yv(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:e=>function(e){const t=e.parentElement;if(null!==t&&Lg(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&Zv(n)){const n=t.lastChild;if(n===e||n.previousSibling===e&&Zv(n))return!0}}return!1}(e)||function(e){const t=e.parentElement;if(null!==t&&Lg(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&Zv(n))return!1;const r=t.lastChild;if(r===e||r.previousSibling===e&&Zv(r))return!0}return!1}(e)?null:{conversion:Xv,priority:0}}}static importJSON(e){return Gv()}exportJSON(){return{type:"linebreak",version:1}}}function Xv(e){return{node:Gv()}}function Gv(){return Ag(new Yv)}function Jv(e){return e instanceof Yv}function Zv(e){return e.nodeType===Hp&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function Qv(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function ey(e,t){return 1&t?"strong":2&t?"em":"span"}function ty(e,t,n,r,o){const i=r.classList;let s=bg(o,"base");void 0!==s&&i.add(...s),s=bg(o,"underlineStrikethrough");let a=!1;const l=t&Qp&&t&Zp;void 0!==s&&(n&Qp&&n&Zp?(a=!0,l||i.add(...s)):l&&i.remove(...s));for(const e in pm){const r=pm[e];if(s=bg(o,e),void 0!==s)if(n&r){if(a&&("underline"===e||"strikethrough"===e)){t&r&&i.remove(...s);continue}t&r&&(!l||"underline"!==e)&&"strikethrough"!==e||i.add(...s)}else t&r&&i.remove(...s)}}function ny(e,t,n){const r=t.firstChild,o=n.isComposing(),i=e+(o?am:"");if(null==r)t.textContent=i;else{const e=r.nodeValue;if(e!==i)if(o||Lp){const[t,n,o]=function(e,t){const n=e.length,r=t.length;let o=0,i=0;for(;o({conversion:uy,priority:0}),b:()=>({conversion:ay,priority:0}),code:()=>({conversion:hy,priority:0}),em:()=>({conversion:hy,priority:0}),i:()=>({conversion:hy,priority:0}),s:()=>({conversion:hy,priority:0}),span:()=>({conversion:sy,priority:0}),strong:()=>({conversion:hy,priority:0}),sub:()=>({conversion:hy,priority:0}),sup:()=>({conversion:hy,priority:0}),u:()=>({conversion:hy,priority:0})}}static importJSON(e){const t=py(e.text);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}exportDOM(e){let{element:t}=super.exportDOM(e);return null!==t&&jg(t)||wm(132),t.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(t=oy(t,"b")),this.hasFormat("italic")&&(t=oy(t,"i")),this.hasFormat("strikethrough")&&(t=oy(t,"s")),this.hasFormat("underline")&&(t=oy(t,"u")),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(e,t){}setFormat(e){const t=this.getWritable();return t.__format="string"==typeof e?pm[e]:e,t}setDetail(e){const t=this.getWritable();return t.__detail="string"==typeof e?mm[e]:e,t}setStyle(e){const t=this.getWritable();return t.__style=e,t}toggleFormat(e){const t=$m(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){const e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){const e=this.getWritable();return e.__detail^=2,e}setMode(e){const t=ym[e];if(this.__mode===t)return this;const n=this.getWritable();return n.__mode=t,n}setTextContent(e){if(this.__text===e)return this;const t=this.getWritable();return t.__text=e,t}select(e,t){Qy();let n=e,r=t;const o=Fy(),i=this.getTextContent(),s=this.__key;if("string"==typeof i){const e=i.length;void 0===n&&(n=e),void 0===r&&(r=e)}else n=0,r=0;if(!Ey(o))return jy(s,n,s,r,"text","text");{const e=Xm();e!==o.anchor.key&&e!==o.focus.key||Ym(s),o.setTextNodeRange(this,n,this,r)}return o}selectStart(){return this.select(0,0)}selectEnd(){const e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){const o=this.getWritable(),i=o.__text,s=n.length;let a=e;a<0&&(a=s+a,a<0&&(a=0));const l=Fy();if(r&&Ey(l)){const t=e+s;l.setTextNodeRange(o,t,o,t)}const c=i.slice(0,a)+n+i.slice(a+t);return o.__text=c,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){Qy();const t=this.getLatest(),n=t.getTextContent(),r=t.__key,o=Xm(),i=new Set(e),s=[],a=n.length;let l="";for(let e=0;eb&&e.offset<=l&&(e.key=a,e.offset-=b,v.dirty=!0),t.key===r&&"text"===t.type&&t.offset>b&&t.offset<=l&&(t.key=a,t.offset-=b,v.dirty=!0)}o===r&&Ym(a),b=l,y.push(i)}!function(e){const t=e.getPreviousSibling(),n=e.getNextSibling();null!==t&&qm(t),null!==n&&qm(n)}(this);const x=d.getWritable(),w=this.getIndexWithinParent();return g?(x.splice(w,0,y),this.remove()):x.splice(w,1,y),Ey(v)&&Vy(v,d,w,c-1),y}mergeWithSibling(e){const t=e===this.getPreviousSibling();t||e===this.getNextSibling()||wm(50);const n=this.__key,r=e.__key,o=this.__text,i=o.length;Xm()===r&&Ym(n);const s=Fy();if(Ey(s)){const o=s.anchor,a=s.focus;null!==o&&o.key===r&&(Uy(o,t,n,e,i),s.dirty=!0),null!==a&&a.key===r&&(Uy(a,t,n,e,i),s.dirty=!0)}const a=e.__text,l=t?a+o:o+a;this.setTextContent(l);const c=this.getWritable();return e.remove(),c}isTextEntity(){return!1}}function sy(e){return{forChild:gy(e.style),node:null}}function ay(e){const t=e,n="normal"===t.style.fontWeight;return{forChild:gy(t.style,n?void 0:"bold"),node:null}}const ly=new WeakMap;function cy(e){return"PRE"===e.nodeName||e.nodeType===$p&&void 0!==e.style&&void 0!==e.style.whiteSpace&&e.style.whiteSpace.startsWith("pre")}function uy(e){const t=e;null===e.parentElement&&wm(129);let n=t.textContent||"";if(null!==function(e){let t,n=e.parentNode;const r=[e];for(;null!==n&&void 0===(t=ly.get(n))&&!cy(n);)r.push(n),n=n.parentNode;const o=void 0===t?n:t;for(let e=0;e0){/[ \t\n]$/.test(t)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(" "===n[n.length-1]){let e=t,r=!0;for(;null!==e&&null!==(e=dy(e,!0));)if((e.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return""===n?{node:null}:{node:py(n)}}function dy(e,t){let n=e;for(;;){let e;for(;null===(e=t?n.nextSibling:n.previousSibling);){const e=n.parentElement;if(null===e)return null;n=e}if(n=e,n.nodeType===$p){const e=n.style.display;if(""===e&&!Ig(n)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(n.nodeType===Hp)return n;if("BR"===n.nodeName)return null}}const fy={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function hy(e){const t=fy[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:gy(e.style,t),node:null}}function py(e=""){return Ag(new iy(e))}function my(e){return e instanceof iy}function gy(e,t){const n=e.fontWeight,r=e.textDecoration.split(" "),o="700"===n||"bold"===n,i=r.includes("line-through"),s="italic"===e.fontStyle,a=r.includes("underline"),l=e.verticalAlign;return e=>my(e)?(o&&!e.hasFormat("bold")&&e.toggleFormat("bold"),i&&!e.hasFormat("strikethrough")&&e.toggleFormat("strikethrough"),s&&!e.hasFormat("italic")&&e.toggleFormat("italic"),a&&!e.hasFormat("underline")&&e.toggleFormat("underline"),"sub"!==l||e.hasFormat("subscript")||e.toggleFormat("subscript"),"super"!==l||e.hasFormat("superscript")||e.toggleFormat("superscript"),t&&!e.hasFormat(t)&&e.toggleFormat(t),e):e}class vy extends iy{static getType(){return"tab"}static clone(e){const t=new vy(e.__key);return t.__text=e.__text,t.__format=e.__format,t.__style=e.__style,t}constructor(e){super("\t",e),this.__detail=2}static importDOM(){return null}static importJSON(e){const t=yy();return t.setFormat(e.format),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(e){wm(126)}setDetail(e){wm(127)}setMode(e){wm(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function yy(){return Ag(new vy)}class by{constructor(e,t,n){this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){let t=this.getNode(),n=e.getNode();const r=this.offset,o=e.offset;if(pb(t)){const e=t.getDescendantByIndex(r);t=null!=e?e:t}if(pb(n)){const e=n.getDescendantByIndex(o);n=null!=e?e:n}return t===n?re&&(r=e)}else if(!pb(t)){const e=t.getNextSibling();if(my(e))n=e.__key,r=0,o="text";else{const e=t.getParent();e&&(n=e.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,o)}function _y(e,t){if(pb(t)){const n=t.getLastDescendant();pb(n)||my(n)?wy(e,n):wy(e,t)}else wy(e,t)}function Sy(e,t,n,r){e.key=t,e.offset=n,e.type=r}class ky{constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Ty(e))return!1;const t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every((e=>n.has(e)))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new ky(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const t=this.getNodes(),n=t.length,r=t[n-1];let o;if(my(r))o=r.select();else{const e=r.getIndexWithinParent()+1;o=r.getParentOrThrow().select(e,e)}o.insertNodes(e);for(let e=0;e0?[]:[s]:s.getNodesBetween(a),Zy()||(this._cachedNodes=u),u}setTextNodeRange(e,t,n,r){Sy(this.anchor,e.__key,t,"text"),Sy(this.focus,n.__key,r,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){const e=this.getNodes();if(0===e.length)return"";const t=e[0],n=e[e.length-1],r=this.anchor,o=this.focus,i=r.isBefore(o),[s,a]=Ry(this);let l="",c=!0;for(let u=0;u=0;e--){const t=i[e];if(t.is(d)||pb(t)&&t.isParentOf(d))break;t.isAttached()&&(!h.has(t)||t.is(o)?m||g.insertAfter(t,!1):t.remove())}if(!m){let e=r,n=null;for(;null!==e;){const r=e.getChildren(),o=r.length;(0===o||r[o-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(d.isToken())if(a===f)d.select();else{const t=py(e);t.select(),d.replace(t)}else d=d.spliceText(a,f-a,e,!0),""===d.getTextContent()?d.remove():d.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length);for(let e=1;e0&&(m===p.getTextContentSize()||Wm(p)||([p]=p.splitText(m)),p.setFormat(g));for(let t=c+1;t(pb(e)||vb(e))&&!e.isInline()))){pb(t)||wm(135);const r=Ky(this);return t.splice(r,0,e),void n.selectEnd()}const r=function(e){const t=Cb();let n=null;for(let r=0;r"__value"in e&&"__checked"in e,a=pb(t)&&t.isEmpty()?null:this.insertParagraph(),l=i[i.length-1];let c=i[0];var u;pb(u=c)&&Fg(u)&&!u.isEmpty()&&pb(t)&&(!t.isEmpty()||s(t))&&(pb(t)||wm(135),t.append(...c.getChildren()),c=i[1]),c&&function(e,t){const n=t.getParentOrThrow().getLastChild();let r=t;const o=[t];for(;r!==n;)r.getNextSibling()||wm(140),r=r.getNextSibling(),o.push(r);let i=e;for(const e of o)i=i.insertAfter(e)}(t,c);const d=zg(o,Fg);a&&pb(d)&&(s(a)||Fg(l))&&(d.append(...a.getChildren()),a.remove()),pb(t)&&t.isEmpty()&&t.remove(),o.selectEnd();const f=pb(t)?t.getLastChild():null;Jv(f)&&d!==t&&f.remove()}insertParagraph(){if("root"===this.anchor.key){const e=Cb();return tg().splice(this.anchor.offset,0,[e]),e.select(),e}const e=Ky(this),t=zg(this.anchor.getNode(),Fg);pb(t)||wm(136);const n=t.getChildAtIndex(e),r=n?[n,...n.getNextSiblings()]:[],o=t.insertNewAfter(this,!1);return o?(o.append(...r),o.selectStart(),o):null}insertLineBreak(e){const t=Gv();if(this.insertNodes([t]),e){const e=t.getParentOrThrow(),n=t.getIndexWithinParent();e.select(n,n)}}extract(){const e=this.getNodes(),t=e.length,n=t-1,r=this.anchor,o=this.focus;let i=e[0],s=e[n];const[a,l]=Ry(this);if(0===t)return[];if(1===t){if(my(i)&&!this.isCollapsed()){const e=a>l?l:a,t=a>l?a:l,n=i.splitText(e,t),r=0===e?n[0]:n[1];return null!=r?[r]:[]}return[i]}const c=r.isBefore(o);if(my(i)){const t=c?a:l;t===i.getTextContentSize()?e.shift():0!==t&&([,i]=i.splitText(t),e[0]=i)}if(my(s)){const t=s.getTextContent().length,r=c?l:a;0===r?e.pop():r!==t&&([s]=s.splitText(r),e[n]=s)}return e}modify(e,t,n){const r=this.focus,o=this.anchor,i="move"===e,s=_g(r,t);if(vb(s)&&!s.isIsolated()){if(i&&s.isKeyboardSelectable()){const e=Iy();return e.add(s.__key),void rg(e)}const e=t?s.getPreviousSibling():s.getNextSibling();if(my(e)){const n=e.__key,s=t?e.getTextContent().length:0;return r.set(n,s,"text"),void(i&&o.set(n,s,"text"))}{const n=s.getParentOrThrow();let a,l;return pb(e)?(l=e.__key,a=t?e.getChildrenSize():0):(a=s.getIndexWithinParent(),l=n.__key,t||a++),r.set(l,a,"element"),void(i&&o.set(l,a,"element"))}}const a=nb(),l=_n(a._window);if(!l)return;const c=a._blockCursorElement,u=a._rootElement;if(null===u||null===c||!pb(s)||s.isInline()||s.canBeEmpty()||Dg(c,a,u),function(e,t,n,r){e.modify(t,n,r)}(l,e,t?"backward":"forward",n),l.rangeCount>0){const e=l.getRangeAt(0),n=this.anchor.getNode(),r=bb(n)?n:function(e){let t=e.getParentOrThrow();for(;null!==t;){if(Og(t))return t;t=t.getParentOrThrow()}return t}(n);if(this.applyDOMRange(e),this.dirty=!0,!i){const n=this.getNodes(),o=[];let i=!1;for(let e=0;e0)if(t){const e=o[0];pb(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{const e=o[o.length-1];pb(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}l.anchorNode===e.startContainer&&l.anchorOffset===e.startOffset||function(e){const t=e.focus,n=e.anchor,r=n.key,o=n.offset,i=n.type;Sy(n,t.key,t.offset,t.type),Sy(t,r,o,i),e._cachedNodes=null}(this)}}}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&pb(t)&&e.offset===t.getChildrenSize()||"text"===e.type&&e.offset===t.getTextContentSize())){const e=t.getParent(),n=t.getNextSibling()||(null===e?null:e.getNextSibling());if(pb(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(e){const t=this.isCollapsed();if(this.isCollapsed()){const t=this.anchor;let n=t.getNode();if(this.forwardDeletion(t,n,e))return;const r=this.focus,o=_g(r,e);if(vb(o)&&!o.isIsolated()){if(o.isKeyboardSelectable()&&pb(n)&&0===n.getChildrenSize()){n.remove();const e=Iy();e.add(o.__key),rg(e)}else o.remove(),nb().dispatchCommand(Yh,void 0);return}if(!e&&pb(o)&&pb(n)&&n.isEmpty())return n.remove(),void o.selectStart();if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&0===t.offset&&("element"===t.type?t.getNode():t.getNode().getParentOrThrow()).collapseAtStart(this))return}else{const o="text"===r.type?r.getNode():null;if(n="text"===t.type?t.getNode():null,null!==o&&o.isSegmented()){const t=r.offset,i=o.getTextContentSize();if(o.is(n)||e&&t!==i||!e&&0!==t)return void Oy(o,e,t)}else if(null!==n&&n.isSegmented()){const r=t.offset,i=n.getTextContentSize();if(n.is(o)||e&&0!==r||!e&&r!==i)return void Oy(n,e,r)}!function(e,t){const n=e.anchor,r=e.focus,o=n.getNode();if(o===r.getNode()&&"text"===n.type&&"text"===r.type){const e=n.offset,i=r.offset,s=en||r){o.splice(e,1),r&&(a=void 0);break}}const l=o.join("").trim();""===l?r.remove():(r.setTextContent(l),r.select(a,a))}function Ay(e,t,n,r){let o,i=t;if(e.nodeType===$p){let s=!1;const a=e.childNodes,l=a.length,c=r._blockCursorElement;i===l&&(s=!0,i=l-1);let u=a[i],d=!1;if(u===c)u=a[i+1],d=!0;else if(null!==c){const n=c.parentNode;e===n&&t>Array.prototype.indexOf.call(n.children,c)&&i--}if(o=og(u),my(o))i=ig(o,s);else{let r=og(e);if(null===r)return null;if(pb(r)){i=Math.min(r.getChildrenSize(),i);let e=r.getChildAtIndex(i);if(pb(e)&&function(e,t,n){const r=e.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(e,0,n)){const t=s?e.getLastDescendant():e.getFirstDescendant();null===t?r=e:(e=t,r=pb(e)?e:e.getParentOrThrow()),i=0}my(e)?(o=e,r=null,i=ig(e,s)):e!==r&&s&&!d&&i++}else{const n=r.getIndexWithinParent();i=0===t&&vb(r)&&og(e)===r?n:n+1,r=r.getParentOrThrow()}if(pb(r))return xy(r.__key,i,"element")}}else o=og(e);return my(o)?xy(o.__key,i,"text"):null}function Ny(e,t,n){const r=e.offset,o=e.getNode();if(0===r){const r=o.getPreviousSibling(),i=o.getParent();if(t){if((n||!t)&&null===r&&pb(i)&&i.isInline()){const t=i.getPreviousSibling();my(t)&&(e.key=t.__key,e.offset=t.getTextContent().length)}}else pb(r)&&!n&&r.isInline()?(e.key=r.__key,e.offset=r.getChildrenSize(),e.type="element"):my(r)&&(e.key=r.__key,e.offset=r.getTextContent().length)}else if(r===o.getTextContent().length){const r=o.getNextSibling(),i=o.getParent();if(t&&pb(r)&&r.isInline())e.key=r.__key,e.offset=0,e.type="element";else if((n||t)&&null===r&&pb(i)&&i.isInline()&&!i.canInsertTextAfter()){const t=i.getNextSibling();my(t)&&(e.key=t.__key,e.offset=0)}}}function My(e,t,n){if("text"===e.type&&"text"===t.type){const r=e.isBefore(t),o=e.is(t);Ny(e,r,o),Ny(t,!r,o),o&&(t.key=e.key,t.offset=e.offset,t.type=e.type);const i=nb();if(i.isComposing()&&i._compositionKey!==e.key&&Ey(n)){const r=n.anchor,o=n.focus;Sy(e,r.key,r.offset,r.type),Sy(t,o.key,o.offset,o.type)}}}function Dy(e,t,n,r,o,i){if(null===e||null===n||!Vm(o,e,n))return null;const s=Ay(e,t,Ey(i)?i.anchor:null,o);if(null===s)return null;const a=Ay(n,r,Ey(i)?i.focus:null,o);if(null===a)return null;if("element"===s.type&&"element"===a.type){const t=og(e),r=og(n);if(vb(t)&&vb(r))return null}return My(s,a,i),[s,a]}function jy(e,t,n,r,o,i){const s=tb(),a=new Cy(xy(e,t,o),xy(n,r,i),0,"");return a.dirty=!0,s._selection=a,a}function Iy(){return new ky(new Set)}function Ly(e,t,n,r){const o=n._window;if(null===o)return null;const i=r||o.event,s=i?i.type:void 0,a="selectionchange"===s,l=!km&&(a||"beforeinput"===s||"compositionstart"===s||"compositionend"===s||"click"===s&&i&&3===i.detail||"drop"===s||void 0===s);let c,u,d,f;if(Ey(e)&&!l)return e.clone();if(null===t)return null;if(c=t.anchorNode,u=t.focusNode,d=t.anchorOffset,f=t.focusOffset,a&&Ey(e)&&!Vm(n,c,u))return e.clone();const h=Dy(c,d,u,f,n,e);if(null===h)return null;const[p,m]=h;return new Cy(p,m,Ey(e)?e.format:0,Ey(e)?e.style:"")}function Fy(){return tb()._selection}function zy(){return nb()._editorState._selection}function Vy(e,t,n,r=1){const o=e.anchor,i=e.focus,s=o.getNode(),a=i.getNode();if(!t.is(s)&&!t.is(a))return;const l=t.__key;if(e.isCollapsed()){const t=o.offset;if(n<=t&&r>0||n0||n0||n=e,s=o?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(my(s)){let e=0;o&&(e=s.getTextContentSize()),t.set(s.__key,e,"text"),r.set(s.__key,e,"text")}}else{if(pb(i)){const e=i.getChildrenSize(),r=n>=e,o=r?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(my(o)){let e=0;r&&(e=o.getTextContentSize()),t.set(o.__key,e,"text")}}if(pb(s)){const e=s.getChildrenSize(),t=o>=e,n=t?s.getChildAtIndex(e-1):s.getChildAtIndex(o);if(my(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}}function Wy(e,t,n,r,o){let i=null,s=0,a=null;null!==r?(i=r.__key,my(r)?(s=r.getTextContentSize(),a="text"):pb(r)&&(s=r.getChildrenSize(),a="element")):null!==o&&(i=o.__key,my(o)?a="text":pb(o)&&(a="element")),null!==i&&null!==a?e.set(i,s,a):(s=t.getIndexWithinParent(),-1===s&&(s=n.getChildrenSize()),e.set(n.__key,s,"element"))}function Uy(e,t,n,r,o){"text"===e.type?(e.key=n,t||(e.offset+=o)):e.offset>r.getIndexWithinParent()&&(e.offset-=1)}function Ky(e){let t=e;e.isCollapsed()||t.removeText();const n=Fy();Ey(n)&&(t=n),Ey(t)||wm(161);const r=t.anchor;let o=r.getNode(),i=r.offset;for(;!Fg(o);)[o,i]=$y(o,i);return i}function $y(e,t){const n=e.getParent();if(!n){const e=Cb();return tg().append(e),e.select(),[tg(),0]}if(my(e)){const r=e.splitText(t);if(0===r.length)return[n,e.getIndexWithinParent()];const o=0===t?0:1;return[n,r[0].getIndexWithinParent()+o]}if(!pb(e)||0===t)return[n,e.getIndexWithinParent()];const r=e.getChildAtIndex(t);if(r){const n=new Cy(xy(e.__key,t,"element"),xy(e.__key,t,"element"),0,""),o=e.insertNewAfter(n);o&&o.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}let Hy=null,qy=null,Yy=!1,Xy=!1,Gy=0;const Jy={characterData:!0,childList:!0,subtree:!0};function Zy(){return Yy||null!==Hy&&Hy._readOnly}function Qy(){Yy&&wm(13)}function eb(){Gy>99&&wm(14)}function tb(){return null===Hy&&wm(189),Hy}function nb(){return null===qy&&wm(190),qy}function rb(e,t,n){const r=t.__type,o=function(e,t){const n=e._nodes.get(t);return void 0===n&&wm(30,t),n}(e,r);let i=n.get(r);void 0===i&&(i=Array.from(o.transforms),n.set(r,i));const s=i.length;for(let e=0;e0?r.getRangeAt(0):null;if(null!==e){let t;if(e instanceof Text){const n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();!function(e,t,n){const r=n.ownerDocument,o=r.defaultView;if(null===o)return;let{top:i,bottom:s}=t,a=0,l=0,c=n;for(;null!==c;){const t=c===r.body;if(t)a=0,l=Rg(e).innerHeight;else{const e=c.getBoundingClientRect();a=e.top,l=e.bottom}let n=0;if(il&&(n=s-l),0!==n)if(t)o.scrollBy(0,n);else{const e=c.scrollTop;c.scrollTop+=n;const t=c.scrollTop-e;i-=t,s-=t}if(t)break;c=Tg(c)}}(n,t,i)}}Av=!0}}(s,a,e,x,y,r)}(function(e,t,n){let r=e._blockCursorElement;if(Ey(n)&&n.isCollapsed()&&"element"===n.anchor.type&&t.contains(document.activeElement)){const o=n.anchor,i=o.getNode(),s=o.offset;let a=!1,l=null;if(s===i.getChildrenSize())Mg(i.getChildAtIndex(s-1))&&(a=!0);else{const t=i.getChildAtIndex(s);if(Mg(t)){const n=t.getPreviousSibling();(null===n||Mg(n))&&(a=!0,l=e.getElementByKey(t.__key))}}if(a){const n=e.getElementByKey(i.__key);return null===r&&(e._blockCursorElement=r=function(e){const t=e.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=t.blockCursor;if(void 0!==r){if("string"==typeof r){const e=_m(r);r=t.blockCursor=e}void 0!==r&&n.classList.add(...r)}return n}(e._config)),t.style.caretColor="transparent",void(null===l?n.appendChild(r):n.insertBefore(r,l))}}null!==r&&Dg(r,e,t)})(e,r,a),null!==h&&h.observe(r,Jy)}finally{qy=d,Hy=c}}null!==p&&function(e,t,n,r,o){const i=Array.from(e._listeners.mutation),s=i.length;for(let e=0;e{r=cb(e,t,n)})),r}const r=ag(e);for(let o=4;o>=0;o--)for(let i=0;i0||u>0;){if(l>0){t._dirtyLeaves=new Set;for(const e of a){const r=o.get(e);my(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&jm(r),void 0!==r&&ob(r,i)&&rb(t,r,s),n.add(e)}if(a=t._dirtyLeaves,l=a.size,l>0){Gy++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map;for(const e of c){const n=e[0],a=e[1];if("root"!==n&&!a)continue;const l=o.get(n);void 0!==l&&ob(l,i)&&rb(t,l,s),r.set(n,a)}a=t._dirtyLeaves,l=a.size,c=t._dirtyElements,u=c.size,Gy++}t._dirtyLeaves=n,t._dirtyElements=r}(c,e),ub(e),function(e,t,n,r){const o=e._nodeMap,i=t._nodeMap,s=[];for(const[e]of r){const t=i.get(e);void 0!==t&&(t.isAttached()||(pb(t)&&Ug(t,e,o,i,s,r),o.has(e)||r.delete(e),s.push(e)))}for(const e of s)i.delete(e);for(const e of n){const t=i.get(e);void 0===t||t.isAttached()||(o.has(e)||n.delete(e),i.delete(e))}}(l,c,e._dirtyLeaves,e._dirtyElements)),n!==e._compositionKey&&(c._flushSync=!0);const r=c._selection;if(Ey(r)){const e=c._nodeMap,t=r.anchor.key,n=r.focus.key;void 0!==e.get(t)&&void 0!==e.get(n)||wm(19)}else Ty(r)&&0===r._nodes.size&&(c._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=l,e._dirtyType=Yp,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void ab(e)}finally{Hy=d,Yy=f,qy=h,e._updating=p,Gy=0}const m=e._dirtyType!==qp||function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(null!==r){if(r.dirty||!r.is(n))return!0}else if(null!==n)return!0;return!1}(c,e);m?c._flushSync?(c._flushSync=!1,ab(e)):u&&Fm((()=>{ab(e)})):(c._flushSync=!1,u&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function fb(e,t,n){e._updating?e._updates.push([t,n]):db(e,t,n)}class hb extends qv{constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){const e=this.getFormat();return vm[e]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const e=[];let t=this.getFirstChild();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){const e=[];let t=this.getFirstChild();for(;null!==t;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){const e=nb()._dirtyElements;return null!==e&&e.has(this.__key)}isLastChild(){const e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return null!==t&&t.is(e)}getAllTextNodes(){const e=[];let t=this.getFirstChild();for(;null!==t;){if(my(t)&&e.push(t),pb(t)){const n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;pb(e);){const t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;pb(e);){const t=e.getLastChild();if(null===t)break;e=t}return e}getDescendantByIndex(e){const t=this.getChildren(),n=t.length;if(e>=n){const e=t[n-1];return pb(e)&&e.getLastDescendant()||e||null}const r=t[e];return pb(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const e=this.getLatest().__first;return null===e?null:Gm(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&wm(45,this.__key),e}getLastChild(){const e=this.getLatest().__last;return null===e?null:Gm(e)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&wm(96,this.__key),e}getChildAtIndex(e){const t=this.getChildrenSize();let n,r;if(e=e;){if(r===e)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let e="";const t=this.getChildren(),n=t.length;for(let r=0;re.remove())),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){const t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=""!==e?gm[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){const r=n.length,o=this.getChildrenSize(),i=this.getWritable(),s=i.__key,a=[],l=[],c=this.getChildAtIndex(e+t);let u=null,d=o-t+r;if(0!==e)if(e===o)u=this.getLastChild();else{const t=this.getChildAtIndex(e);null!==t&&(u=t.getPreviousSibling())}if(t>0){let e=null===u?this.getFirstChild():u.getNextSibling();for(let n=0;n({root:wb(tg())})))}}class Sb extends hb{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class kb extends hb{constructor(e){super(e),this.__textFormat=0,this.__textStyle=""}static getType(){return"paragraph"}getTextFormat(){return this.getLatest().__textFormat}setTextFormat(e){const t=this.getWritable();return t.__textFormat=e,t}hasTextFormat(e){const t=pm[e];return!!(this.getTextFormat()&t)}getTextStyle(){return this.getLatest().__textStyle}setTextStyle(e){const t=this.getWritable();return t.__textStyle=e,t}static clone(e){return new kb(e.__key)}createDOM(e){const t=document.createElement("p"),n=bg(e.theme,"paragraph");return void 0!==n&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:Eb,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(t&&jg(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();t.style.textAlign=e;const n=this.getDirection();n&&(t.dir=n);const r=this.getIndent();r>0&&(t.style.textIndent=20*r+"px")}return{element:t}}static importJSON(e){const t=Cb();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t.setTextFormat(e.textFormat),t}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle(),type:"paragraph",version:1}}insertNewAfter(e,t){const n=Cb();n.setTextFormat(e.format),n.setTextStyle(e.style);const r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getTextStyle()),this.insertAfter(n,t),n}collapseAtStart(){const e=this.getChildren();if(0===e.length||my(e[0])&&""===e[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function Eb(e){const t=Cb();if(e.style){t.setFormat(e.style.textAlign);const n=parseInt(e.style.textIndent,10)/20;n>0&&t.setIndent(n)}return{node:t}}function Cb(){return Ag(new kb)}function Tb(e){return e instanceof kb}const Pb=1;function Rb(e,t,n,r){const o=e._keyToDOMMap;o.clear(),e._editorState=xb(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=qp,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;const i=e._observer;null!==i&&(i.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==n&&(n.textContent="",o.set("root",n))}class Ob{constructor(e,t,n,r,o,i,s){this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=qp,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=lg(),this._onError=o,this._htmlConversions=i,this._editable=s,this._headless=null!==t&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){const t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){const t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){const t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){const t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){const t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,n){void 0===n&&wm(35);const r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);const o=r.get(e);void 0===o&&wm(36,String(e));const i=o[n];return i.add(t),()=>{i.delete(t),o.every((e=>0===e.size))&&r.delete(e)}}registerMutationListener(e,t,n){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,o=this._listeners.mutation;o.set(t,r);const i=n&&n.skipInitialization;return void 0===i||i||this.initializeMutationListener(t,r),()=>{o.delete(t)}}getRegisteredNode(e){const t=this._nodes.get(e.getType());return void 0===t&&wm(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const n=this._editorState,r=function(e){if(!e._readOnly&&e.isEmpty())return Bg;e._readOnly||wm(192);let t=Vg.get(e);if(!t){t=new Map,Vg.set(e,t);for(const[n,r]of e._nodeMap){const e=r.__type;let o=t.get(e);o||(o=new Map,t.set(e,o)),o.set(n,r)}}return t}(n).get(t.getType());if(!r)return;const o=new Map;for(const e of r.keys())o.set(e,"created");o.size>0&&e(o,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){const n=this.getRegisteredNode(e);return n.transforms.add(t),n}registerNodeTransform(e,t){const n=this.registerNodeTransformToKlass(e,t),r=[n],o=n.replaceWithKlass;if(null!=o){const e=this.registerNodeTransformToKlass(o,t);r.push(e)}var i;return i=e.getType(),fb(this,(()=>{const e=tb();if(e.isEmpty())return;if("root"===i)return void tg().markDirty();const t=e._nodeMap;for(const[,e]of t)e.markDirty()}),null===this._pendingEditorState?{tag:"history-merge"}:void 0),()=>{r.forEach((e=>e.transforms.delete(t)))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return kg(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const t=this._rootElement;if(e!==t){const n=bg(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,Rb(this,t,e,r),null!==t&&(this._config.disableEvents||function(e){const t=e.ownerDocument,n=Ov.get(t);void 0===n&&wm(162);const r=n-1;r>=0||wm(164),Ov.set(t,r),0===r&&t.removeEventListener("selectionchange",Uv);const o=e.__lexicalEditor;null!=o&&(function(e){if(null!==e._parentEditor){const t=ag(e),n=t[t.length-1]._key;Wv.get(n)===e&&Wv.delete(n)}else Wv.delete(e._key)}(o),e.__lexicalEditor=null);const i=Bv(e);for(let e=0;e{$v(e)||(Kv(e),(t.isEditable()||"click"===r)&&i(e,t))}:e=>{if($v(e))return;Kv(e);const n=t.isEditable();switch(r){case"cut":return n&&kg(t,Ep,e);case"copy":return kg(t,kp,e);case"paste":return n&&kg(t,ep,e);case"dragstart":return n&&kg(t,wp,e);case"dragover":return n&&kg(t,_p,e);case"dragend":return n&&kg(t,Sp,e);case"focus":return n&&kg(t,Ap,e);case"blur":return n&&kg(t,Np,e);case"drop":return n&&kg(t,xp,e)}};e.addEventListener(r,s),o.push((()=>{e.removeEventListener(r,s)}))}}(e,this),null!=n&&e.classList.add(...n)}else this._editorState=r,this._pendingEditorState=null,this._window=null;lb("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&wm(38),Am(this);const n=this._pendingEditorState,r=this._updateTags,o=void 0!==t?t.tag:null;null===n||n.isEmpty()||(null!=o&&r.add(o),ab(this)),this._pendingEditorState=e,this._dirtyType=Yp,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=o&&r.add(o),ab(this)}parseEditorState(e,t){return function(e,t,n){const r=xb(),o=Hy,i=Yy,s=qy,a=t._dirtyElements,l=t._dirtyLeaves,c=t._cloneNotNeeded,u=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,Hy=r,Yy=!1,qy=t;try{const o=t._nodes;ib(e.root,o),n&&n(),r._readOnly=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=a,t._dirtyLeaves=l,t._cloneNotNeeded=c,t._dirtyType=u,Hy=o,Yy=i,qy=s}return r}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return ab(this),this.getEditorState().read(e,{editor:this})}update(e,t){fb(this,e,t)}focus(e,t={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),fb(this,(()=>{const e=Fy(),n=tg();null!==e?e.dirty=!0:0!==n.getChildrenSize()&&("rootStart"===t.defaultSelection?n.selectStart():n.selectEnd())}),{onUpdate:()=>{n.removeAttribute("autocapitalize"),e&&e()},tag:"focus"}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;null!==e&&e.blur();const t=_n(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,lb("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}const Ab="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Nb=Ab?o.useLayoutEffect:o.useEffect,Mb={tag:"history-merge"};function Db({initialConfig:e,children:t}){const n=(0,o.useMemo)((()=>{const{theme:t,namespace:n,editor__DEPRECATED:r,nodes:o,onError:i,editorState:s,html:a}=e,l=function(e,t){let n=null;return{getTheme:function(){return null!=t?t:null!=n?n.getTheme():null}}}(0,t);let c=r||null;if(null===c){const r=function(e){const t=e||{},n=qy,r=t.theme||{},o=void 0===e?n:t.parentEditor||null,i=t.disableEvents||!1,s=xb(),a=t.namespace||(null!==o?o._config.namespace:lg()),l=t.editorState,c=[yb,iy,Yv,vy,kb,Sb,...t.nodes||[]],{onError:u,html:d}=t,f=void 0===t.editable||t.editable;let h;if(void 0===e&&null!==n)h=n._nodes;else{h=new Map;for(let e=0;e{Object.keys(e).forEach((t=>{let r=n.get(t);void 0===r&&(r=[],n.set(t,r)),r.push(e[t])}))};return e.forEach((e=>{const t=e.klass.importDOM;if(null==t||r.has(t))return;r.add(t);const n=t.call(e.klass);null!==n&&o(n)})),t&&o(t),n}(h,d?d.import:void 0),f);return void 0!==l&&(p._pendingEditorState=l,p._dirtyType=Yp),p}({editable:e.editable,html:a,namespace:n,nodes:o,onError:e=>i(e,r),theme:t});!function(e,t){if(null!==t)if(void 0===t)e.update((()=>{const t=tg();if(t.isEmpty()){const n=Cb();t.append(n);const r=Ab?document.activeElement:null;(null!==Fy()||null!==r&&r===e.getRootElement())&&n.select()}}),Mb);else if(null!==t)switch(typeof t){case"string":{const n=e.parseEditorState(t);e.setEditorState(n,Mb);break}case"object":e.setEditorState(t,Mb);break;case"function":e.update((()=>{tg().isEmpty()&&t(e)}),Mb)}}(r,s),c=r}return[c,l]}),[]);return Nb((()=>{const t=e.editable,[r]=n;r.setEditable(void 0===t||t)}),[]),(0,ti.jsx)($h.Provider,{value:n,children:t})}const jb="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect;function Ib(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function Lb(e){return()=>function(e){if(!function(e,t=!0){if(e)return!1;let n=tg().getTextContent();return t&&(n=n.trim()),""===n}(e,!1))return!1;const t=tg().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function Bb(e,t){const n=_g(e.focus,t);return vb(n)&&!n.isIsolated()||pb(n)&&!n.isInline()&&!n.canBeEmpty()}function Wb(e,t,n){const r=function(e){const t=e.anchor.getNode();return"rtl"===(bb(t)?t:t.getParentOrThrow()).getDirection()}(e);!function(e,t,n){e.modify(t?"extend":"move",n,"character")}(e,t,n?!r:r)}function Ub(e,t,n,r=null){let o=null===r||t.isSelected(r);const i=pb(t)&&t.excludeFromCopy("html");let s=t;if(null!==r){let e=Wg(t);e=my(e)&&null!==r?function(e,t){const n=e.getStartEndPoints();if(t.isSelected(e)&&!t.isSegmented()&&!t.isToken()&&null!==n){const[r,o]=n,i=e.isBackward(),s=r.getNode(),a=o.getNode(),l=t.is(s),c=t.is(a);if(l||c){const[n,r]=Ry(e),o=s.is(a),l=t.is(i?a:s),c=t.is(i?s:a);let u,d=0;return o?(d=n>r?r:n,u=n>r?n:r):l?(d=i?r:n,u=void 0):c&&(d=0,u=i?n:r),t.__text=t.__text.slice(d,u),t}}return t}(r,e):e,s=e}const a=pb(s)?s.getChildren():[],l=e._nodes.get(s.getType());let c;c=l&&void 0!==l.exportDOM?l.exportDOM(e,s):s.exportDOM(e);const{element:u,after:d}=c;if(!u)return!1;const f=document.createDocumentFragment();for(let n=0;n{if(null!==e){const r=function(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}(e,KeyboardEvent)?null:e.clipboardData,o=Fy();if(null!==o&&null!=r){e.preventDefault();const i=function(e){const t=Fy();return null==t&&Kb(166),Ey(t)&&t.isCollapsed()||0===t.getNodes().length?"":function(e,t){if("undefined"==typeof document||"undefined"==typeof window&&void 0===n.g.window)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const r=document.createElement("div"),o=tg().getChildren();for(let n=0;ne.getDecorators()));return ex((()=>e.registerDecoratorListener((e=>{(0,kn.flushSync)((()=>{r(e)}))}))),[e]),(0,o.useEffect)((()=>{r(e.getDecorators())}),[e]),(0,o.useMemo)((()=>{const r=[],i=Object.keys(n);for(let s=0;se._onError(t),children:(0,ti.jsx)(o.Suspense,{fallback:null,children:n[a]})}),c=e.getElementByKey(a);null!==c&&r.push((0,kn.createPortal)(l,c,a))}return r}),[t,n,e])}(r,n);return function(e){ex((()=>Vb(function(e){return Vb(e.registerCommand(Gh,(e=>{const t=Fy();return!!Ey(t)&&(t.deleteCharacter(e),!0)}),0),e.registerCommand(np,(e=>{const t=Fy();return!!Ey(t)&&(t.deleteWord(e),!0)}),0),e.registerCommand(rp,(e=>{const t=Fy();return!!Ey(t)&&(t.deleteLine(e),!0)}),0),e.registerCommand(Qh,(e=>{const t=Fy();if(!Ey(t))return!1;if("string"==typeof e)t.insertText(e);else{const n=e.dataTransfer;if(null!=n)$b(n,t);else{const n=e.data;n&&t.insertText(n)}}return!0}),0),e.registerCommand(tp,(()=>{const e=Fy();return!!Ey(e)&&(e.removeText(),!0)}),0),e.registerCommand(Jh,(e=>{const t=Fy();return!!Ey(t)&&(t.insertLineBreak(e),!0)}),0),e.registerCommand(Zh,(()=>{const e=Fy();return!!Ey(e)&&(e.insertLineBreak(),!0)}),0),e.registerCommand(up,(e=>{const t=Fy();if(!Ey(t))return!1;const n=e,r=n.shiftKey;return!!Bb(t,!0)&&(n.preventDefault(),Wb(t,r,!0),!0)}),0),e.registerCommand(lp,(e=>{const t=Fy();if(!Ey(t))return!1;const n=e,r=n.shiftKey;return!!Bb(t,!1)&&(n.preventDefault(),Wb(t,r,!1),!0)}),0),e.registerCommand(gp,(t=>!!Ey(Fy())&&(t.preventDefault(),e.dispatchCommand(Gh,!0))),0),e.registerCommand(yp,(t=>!!Ey(Fy())&&(t.preventDefault(),e.dispatchCommand(Gh,!1))),0),e.registerCommand(pp,(t=>{if(!Ey(Fy()))return!1;if(null!==t){if((Gb||Xb||Zb)&&Yb)return!1;t.preventDefault()}return e.dispatchCommand(Jh,!1)}),0),e.registerCommand(Cp,(()=>(function(){const e=tg();rg(function(e){return Im(e.anchor),Im(e.focus),e}(e.select(0,e.getChildrenSize())))}(),!0)),0),e.registerCommand(kp,(t=>!!Ey(Fy())&&(Qb(t,e),!0)),0),e.registerCommand(Ep,(t=>!!Ey(Fy())&&(function(e,t){Qb(e,t),t.update((()=>{const e=Fy();Ey(e)&&e.removeText()}))}(t,e),!0)),0),e.registerCommand(ep,(t=>!!Ey(Fy())&&(function(e,t){e.preventDefault(),t.update((()=>{const t=Fy(),{clipboardData:n}=e;null!=n&&Ey(t)&&$b(n,t)}),{tag:"paste"})}(t,e),!0)),0),e.registerCommand(xp,(e=>!!Ey(Fy())&&(e.preventDefault(),!0)),0),e.registerCommand(wp,(e=>!!Ey(Fy())&&(e.preventDefault(),!0)),0))}(e),function(e){const t=window.location.origin,n=n=>{if(n.origin!==t)return;const r=e.getRootElement();if(document.activeElement!==r)return;const o=n.data;if("string"==typeof o){let t;try{t=JSON.parse(o)}catch(e){return}if(t&&"nuanria_messaging"===t.protocol&&"request"===t.type){const r=t.payload;if(r&&"makeChanges"===r.functionId){const t=r.args;if(t){const[r,o,i,s,a,l]=t;e.update((()=>{const e=Fy();if(Ey(e)){const t=e.anchor;let l=t.getNode(),c=0,u=0;if(my(l)&&r>=0&&o>=0&&(c=r,u=r+o,e.setTextNodeRange(l,c,l,u)),c===u&&""===i||(e.insertRawText(i),l=t.getNode()),my(l)){c=s,u=s+a;const t=l.getTextContentSize();c=c>t?t:c,u=u>t?t:u,e.setTextNodeRange(l,c,l,u)}n.stopImmediatePropagation()}}))}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}(e))),[e])}(r),(0,ti.jsxs)(ti.Fragment,{children:[e,(0,ti.jsx)(rx,{content:t}),i]})}function rx({content:e}){const[t]=Hh(),n=function(e){const[t,n]=(0,o.useState)((()=>tx(e)));return ex((()=>{function t(){const t=tx(e);n(t)}return t(),Vb(e.registerUpdateListener((()=>{t()})),e.registerEditableListener((()=>{t()})))}),[e]),t}(t),r=function(e){const[t]=Hh(),n=(0,o.useMemo)((()=>e(t)),[t,e]),r=(0,o.useRef)(n.initialValueFn()),[i,s]=(0,o.useState)(r.current);return jb((()=>{const{initialValueFn:e,subscribe:t}=n,o=e();return r.current!==o&&(r.current=o,s(o)),t((e=>{r.current=e,s(e)}))}),[n,e]),i}(Ib);return n?"function"==typeof e?e(r):e:null}const ox="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect,ix=(0,o.forwardRef)((function({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:i,ariaExpanded:s,ariaLabel:a,ariaLabelledBy:l,ariaMultiline:c,ariaOwns:u,ariaRequired:d,autoCapitalize:f,className:h,id:p,role:m="textbox",spellCheck:g=!0,style:v,tabIndex:y,"data-testid":b,...x},w){const[_,S]=(0,o.useState)(e.isEditable()),k=(0,o.useCallback)((t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)}),[e]),E=(0,o.useMemo)((()=>function(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}(w,k)),[k,w]);return ox((()=>(S(e.isEditable()),e.registerEditableListener((e=>{S(e)})))),[e]),(0,ti.jsx)("div",{...x,"aria-activedescendant":_?t:void 0,"aria-autocomplete":_?n:"none","aria-controls":_?r:void 0,"aria-describedby":i,"aria-expanded":_&&"combobox"===m?!!s:void 0,"aria-label":a,"aria-labelledby":l,"aria-multiline":c,"aria-owns":_?u:void 0,"aria-readonly":!_||void 0,"aria-required":d,autoCapitalize:f,className:h,contentEditable:_,"data-testid":b,id:p,ref:E,role:_?m:void 0,spellCheck:g,style:v,tabIndex:y})}));function sx(e){return e.getEditorState().read(Lb(e.isComposing()))}const ax=(0,o.forwardRef)((function(e,t){const{placeholder:n,editor__DEPRECATED:r,...o}=e,i=r||Hh()[0];return(0,ti.jsxs)(ti.Fragment,{children:[(0,ti.jsx)(ix,{editor:i,...o,ref:t}),null!=n&&(0,ti.jsx)(lx,{editor:i,content:n})]})}));function lx({content:e,editor:t}){const n=function(e){const[t,n]=(0,o.useState)((()=>sx(e)));return ox((()=>{function t(){const t=sx(e);n(t)}return t(),Vb(e.registerUpdateListener((()=>{t()})),e.registerEditableListener((()=>{t()})))}),[e]),t}(t),[r,i]=(0,o.useState)(t.isEditable());if((0,o.useLayoutEffect)((()=>(i(t.isEditable()),t.registerEditableListener((e=>{i(e)})))),[t]),!n)return null;let s=null;return"function"==typeof e?s=e(r):null!==e&&(s=e),null===s?null:(0,ti.jsx)("div",{"aria-hidden":!0,children:s})}const cx=0,ux=1,dx=2,fx=0,hx=1,px=2,mx=3,gx=4;function vx(e){e.undoStack=[],e.redoStack=[],e.current=null}function yx({delay:e,externalHistoryState:t}){const[n]=Hh();return function(e,t,n=1e3){const r=(0,o.useMemo)((()=>t||{current:null,redoStack:[],undoStack:[]}),[t]);(0,o.useEffect)((()=>function(e,t,n){const r=function(e,t){let n=Date.now(),r=fx;return(o,i,s,a,l,c)=>{const u=Date.now();if(c.has("historic"))return r=fx,n=u,dx;const d=function(e,t,n,r,o){if(null===e||0===n.size&&0===r.size&&!o)return fx;const i=t._selection,s=e._selection;if(o)return hx;if(!(Ey(i)&&Ey(s)&&s.isCollapsed()&&i.isCollapsed()))return fx;const a=function(e,t,n){const r=e._nodeMap,o=[];for(const e of t){const t=r.get(e);void 0!==t&&o.push(t)}for(const[e,t]of n){if(!t)continue;const n=r.get(e);void 0===n||bb(n)||o.push(n)}return o}(t,n,r);if(0===a.length)return fx;if(a.length>1){const n=t._nodeMap,r=n.get(i.anchor.key),o=n.get(s.anchor.key);return r&&o&&!e._nodeMap.has(r.__key)&&my(r)&&1===r.__text.length&&1===i.anchor.offset?px:fx}const l=a[0],c=e._nodeMap.get(l.__key);if(!my(c)||!my(l)||c.__mode!==l.__mode)return fx;const u=c.__text,d=l.__text;if(u===d)return fx;const f=i.anchor,h=s.anchor;if(f.key!==h.key||"text"!==f.type)return fx;const p=f.offset,m=h.offset,g=d.length-u.length;return 1===g&&m===p-1?px:-1===g&&m===p+1?mx:-1===g&&m===p?gx:fx}(o,i,a,l,e.isComposing()),f=(()=>{const f=null===s||s.editor===e,h=c.has("history-push");if(!h&&f&&c.has("history-merge"))return cx;if(null===o)return ux;const p=i._selection;return a.size>0||l.size>0?!1===h&&d!==fx&&d===r&&ur.exportJSON())))===JSON.stringify(n.read((()=>o.exportJSON())))}(Array.from(a)[0],o,i)?cx:ux:null!==p?cx:dx})();return n=u,r=d,f}}(e,n),o=Vb(e.registerCommand(ip,(()=>(function(e,t){const n=t.redoStack,r=t.undoStack;if(0!==r.length){const o=t.current,i=r.pop();null!==o&&(n.push(o),e.dispatchCommand(Rp,!0)),0===r.length&&e.dispatchCommand(Op,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:"historic"})}}(e,t),!0)),0),e.registerCommand(sp,(()=>(function(e,t){const n=t.redoStack,r=t.undoStack;if(0!==n.length){const o=t.current;null!==o&&(r.push(o),e.dispatchCommand(Op,!0));const i=n.pop();0===n.length&&e.dispatchCommand(Rp,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:"historic"})}}(e,t),!0)),0),e.registerCommand(Tp,(()=>(vx(t),!1)),0),e.registerCommand(Pp,(()=>(vx(t),e.dispatchCommand(Rp,!1),e.dispatchCommand(Op,!1),!0)),0),e.registerUpdateListener((({editorState:n,prevEditorState:o,dirtyLeaves:i,dirtyElements:s,tags:a})=>{const l=t.current,c=t.redoStack,u=t.undoStack,d=null===l?null:l.editorState;if(null!==l&&n===d)return;const f=r(o,n,l,i,s,a);if(f===ux)0!==c.length&&(t.redoStack=[],e.dispatchCommand(Rp,!1)),null!==l&&(u.push({...l}),e.dispatchCommand(Op,!0));else if(f===dx)return;t.current={editor:e,editorState:n}})));return o}(e,r,n)),[n,e,r])}(n,t,e),null}function bx(e,t){return bx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bx(e,t)}var xx={error:null},wx=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o{if(n)return r.registerUpdateListener((({editorState:o,dirtyElements:i,dirtyLeaves:s,prevEditorState:a,tags:l})=>{t&&0===i.size&&0===s.size||e&&l.has("history-merge")||a.isEmpty()||n(o,r,l)}))}),[r,e,t,n]),null}function Cx({editorRef:e}){const[t]=Hh();return o.useEffect((()=>{"function"==typeof e?e(t):"object"==typeof e&&(e.current=t)}),[t]),null}var Tx={sm:"py-1.5 px-2 rounded [&_.editor-content>p]:text-xs [&_.editor-content>p]:font-medium [&_.editor-content>p]:leading-[1.625rem]",md:"py-2 px-2.5 rounded-md [&_.editor-content>p]:text-xs [&_.editor-content>p]:font-medium [&_.editor-content>p]:leading-[1.625rem]",lg:"py-2.5 px-3 rounded-md [&_.editor-content>p]:text-sm [&_.editor-content>p]:font-medium [&_.editor-content>p]:leading-[1.6875rem]"},Px={sm:"p-1.5 rounded-md max-h-[10.75rem]",md:"p-2 rounded-lg max-h-[13.5rem]",lg:"p-2 rounded-lg max-h-[13.5rem]"},Rx={sm:"p-1.5 rounded text-sm leading-5 font-normal",md:"p-2 rounded-md text-base leading-6 font-normal",lg:"p-2 rounded-md text-base leading-6 font-normal"};const Ox="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect,Ax=e=>{const t=document.getElementById("typeahead-menu");if(!t)return;const n=t.getBoundingClientRect();n.top+n.height>window.innerHeight&&t.scrollIntoView({block:"center"}),n.top<0&&t.scrollIntoView({block:"center"}),e.scrollIntoView({block:"nearest"})};function Nx(e,t){const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.top>r.top&&n.top{d(0)}),[f]);const h=(0,o.useCallback)((n=>{t.update((()=>{const t=null!=r.match&&l?function(e){const t=Fy();if(!Ey(t)||!t.isCollapsed())return null;const n=t.anchor;if("text"!==n.type)return null;const r=n.getNode();if(!r.isSimpleText())return null;const o=n.offset,i=r.getTextContent().slice(0,o),s=e.replaceableString.length,a=o-function(e,t,n){let r=n;for(let n=r;n<=t.length;n++)e.substr(-n)===t.substr(0,n)&&(r=n);return r}(i,e.matchingString,s);if(a<0)return null;let l;return 0===a?[l]=r.splitText(o):[,l]=r.splitText(a,o),l}(r.match):null;a(n,t,e,r.match?r.match.matchingString:"")}))}),[t,l,r.match,a,e]),p=(0,o.useCallback)((e=>{const n=t.getRootElement();null!==n&&(n.setAttribute("aria-activedescendant","typeahead-item-"+e),d(e))}),[t]);return(0,o.useEffect)((()=>()=>{const e=t.getRootElement();null!==e&&e.removeAttribute("aria-activedescendant")}),[t]),Ox((()=>{null===i?d(null):null===u&&p(0)}),[i,u,p]),(0,o.useEffect)((()=>Vb(t.registerCommand(Mx,(({option:e})=>!(!e.ref||null==e.ref.current||(Ax(e.ref.current),0))),c))),[t,p,c]),(0,o.useEffect)((()=>Vb(t.registerCommand(hp,(e=>{const n=e;if(null!==i&&i.length&&null!==u){const e=u!==i.length-1?u+1:0;p(e);const r=i[e];null!=r.ref&&r.ref.current&&t.dispatchCommand(Mx,{index:e,option:r}),n.preventDefault(),n.stopImmediatePropagation()}return!0}),c),t.registerCommand(fp,(e=>{const t=e;if(null!==i&&i.length&&null!==u){const e=0!==u?u-1:i.length-1;p(e);const n=i[e];null!=n.ref&&n.ref.current&&Ax(n.ref.current),t.preventDefault(),t.stopImmediatePropagation()}return!0}),c),t.registerCommand(vp,(t=>{const n=t;return n.preventDefault(),n.stopImmediatePropagation(),e(),!0}),c),t.registerCommand(bp,(e=>{const t=e;return null!==i&&null!==u&&null!=i[u]&&(t.preventDefault(),t.stopImmediatePropagation(),h(i[u]),!0)}),c),t.registerCommand(pp,(e=>null!==i&&null!==u&&null!=i[u]&&(null!==e&&(e.preventDefault(),e.stopImmediatePropagation()),h(i[u]),!0)),c))),[h,e,t,i,u,p,c]),s(n,(0,o.useMemo)((()=>({options:i,selectOptionAndCleanUp:h,selectedIndex:u,setHighlightedIndex:d})),[h,u,i]),r.match?r.match.matchingString:"")}function jx({options:e,onQueryChange:t,onSelectOption:n,onOpen:r,onClose:i,menuRenderFn:s,triggerFn:a,anchorClassName:l,commandPriority:c=Pb,parent:u}){const[d]=Hh(),[f,h]=(0,o.useState)(null),p=function(e,t,n,r=document.body){const[i]=Hh(),s=(0,o.useRef)(document.createElement("div")),a=(0,o.useCallback)((()=>{s.current.style.top=s.current.style.bottom;const t=i.getRootElement(),o=s.current,a=o.firstChild;if(null!==t&&null!==e){const{left:i,top:l,width:c,height:u}=e.getRect(),d=s.current.offsetHeight;if(o.style.top=`${l+window.pageYOffset+d+3}px`,o.style.left=`${i+window.pageXOffset}px`,o.style.height=`${u}px`,o.style.width=`${c}px`,null!==a){a.style.top=`${l}`;const e=a.getBoundingClientRect(),n=e.height,r=e.width,s=t.getBoundingClientRect();i+r>s.right&&(o.style.left=`${s.right-r+window.pageXOffset}px`),(l+n>window.innerHeight||l+n>s.bottom)&&l-s.top>n+u&&(o.style.top=l-n+window.pageYOffset-u+"px")}o.isConnected||(null!=n&&(o.className=n),o.setAttribute("aria-label","Typeahead menu"),o.setAttribute("id","typeahead-menu"),o.setAttribute("role","listbox"),o.style.display="block",o.style.position="absolute",r.append(o)),s.current=o,t.setAttribute("aria-controls","typeahead-menu")}}),[i,e,n,r]);(0,o.useEffect)((()=>{const t=i.getRootElement();if(null!==e)return a(),()=>{null!==t&&t.removeAttribute("aria-controls");const e=s.current;null!==e&&e.isConnected&&e.remove()}}),[i,a,e]);const l=(0,o.useCallback)((n=>{null!==e&&(n||t(null))}),[e,t]);return function(e,t,n,r){const[i]=Hh();(0,o.useEffect)((()=>{if(null!=t&&null!=e){const e=i.getRootElement(),o=null!=e?function(e){let t=getComputedStyle(e);const n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.body;for(let o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.body}(e):document.body;let s=!1,a=Nx(t,o);const l=function(){s||(window.requestAnimationFrame((function(){n(),s=!1})),s=!0);const e=Nx(t,o);e!==a&&(a=e,null!=r&&r(e))},c=new ResizeObserver(n);return window.addEventListener("resize",n),document.addEventListener("scroll",l,{capture:!0,passive:!0}),c.observe(t),()=>{c.unobserve(t),window.removeEventListener("resize",n),document.removeEventListener("scroll",l,!0)}}}),[t,i,r,n,e])}(e,s.current,a,l),s}(f,h,l,u),m=(0,o.useCallback)((()=>{h(null),null!=i&&null!==f&&i()}),[i,f]),g=(0,o.useCallback)((e=>{h(e),null!=r&&null===f&&r(e)}),[r,f]);return(0,o.useEffect)((()=>{const e=d.registerUpdateListener((()=>{d.getEditorState().read((()=>{const e=d._window||window,n=e.document.createRange(),r=Fy(),i=function(e){let t=null;return e.getEditorState().read((()=>{const e=Fy();Ey(e)&&(t=function(e){const t=e.anchor;if("text"!==t.type)return null;const n=t.getNode();if(!n.isSimpleText())return null;const r=t.offset;return n.getTextContent().slice(0,r)}(e))})),t}(d);if(!Ey(r)||!r.isCollapsed()||null===i||null===n)return void m();const s=a(i,d);if(t(s?s.matchingString:null),null!==s&&!function(e,t){return 0===t&&e.getEditorState().read((()=>{const e=Fy();if(Ey(e)){const t=e.anchor.getNode().getPreviousSibling();return my(t)&&t.isTextEntity()}return!1}))}(d,s.leadOffset)){const t=function(e,t,n){const r=n.getSelection();if(null===r||!r.isCollapsed)return!1;const o=r.anchorNode,i=e,s=r.anchorOffset;if(null==o||null==s)return!1;try{t.setStart(o,i),t.setEnd(o,s)}catch(e){return!1}return!0}(s.leadOffset,n,e);if(null!==t)return l=()=>g({getRect:()=>n.getBoundingClientRect(),match:s}),void(o.startTransition?o.startTransition(l):l())}var l;m()}))}));return()=>{e()}}),[d,a,t,f,m,g]),null===f||null===d?null:(0,ti.jsx)(Dx,{close:m,resolution:f,editor:d,anchorElementRef:p,options:e,menuRenderFn:s,shouldSplitNodeWithQuery:!0,onSelectOption:n,commandPriority:c})}function Ix(e){return Ix="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},Ix(e)}function Lx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&void 0!==arguments[2]?arguments[2]:"name",r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rw(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rw(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,o.useState)([]),2),i=r[0],s=r[1];return(0,o.useEffect)((function(){if(null!==t){var r=ow.get(t);null!==r&&(void 0===r?(ow.set(t,null),iw(e,t,(function(e){ow.set(t,e),s(e)}),n)):s(r))}else s([])}),[t]),i},aw=["size","children","selected","className"];function lw(){return lw=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n_:;",pw=["@"].join(""),mw="[^"+pw+hw+"\\s]",gw=new RegExp("(^|\\s|\\()(["+pw+"]((?:"+mw+"(?:\\.[ |$]| |["+hw+"]|)){0,75}))$"),vw=new RegExp("(^|\\s|\\()(["+pw+"]((?:"+mw+"){0,50}))$");function yw(e){var t=gw.exec(e);if(null===t&&(t=vw.exec(e)),null!==t){var n=t[1],r=t[3];if(r.length>=0)return{leadOffset:t.index+n.length,matchingString:r,replaceableString:t[2]}}return null}var bw=function(e){var t=e.optionsArray,n=e.by,r=void 0===n?"name":n,i=e.size,s=void 0===i?"md":i,a=e.menuComponent,l=void 0===a?uw:a,c=e.menuItemComponent,u=void 0===c?uw.Item:c,d=dw(Hh(),1)[0],f=dw((0,o.useState)(null),2),h=f[0],p=f[1],m=sw(t,h,r),g=(0,o.useCallback)((function(e,t,n){d.update((function(){var o=Xx(e.data,r,s);t&&t.replace(o),n()}))}),[d]),v=(0,o.useMemo)((function(){return m.map((function(e){return new nw(e)}))}),[d,m]);return React.createElement(jx,{onQueryChange:p,onSelectOption:g,triggerFn:yw,options:v,menuRenderFn:function(e,t){var n=t.selectedIndex,o=t.selectOptionAndCleanUp,i=t.setHighlightedIndex;return e.current&&!(null==v||!v.length)&&React.createElement(l,{size:s},v.map((function(e,t){var a;return React.createElement(u,{key:t,ref:e.ref,size:s,selected:t===n,onMouseEnter:function(){i(t)},onClick:function(){return o(e)}},"string"==typeof e.data?e.data:null===(a=e.data)||void 0===a?void 0:a[r])})))}})},xw={ltr:"ltr",rtl:"rtl",paragraph:"editor-paragraph",quote:"editor-quote",heading:{h1:"editor-heading-h1",h2:"editor-heading-h2",h3:"editor-heading-h3",h4:"editor-heading-h4",h5:"editor-heading-h5",h6:"editor-heading-h6"},list:{nested:{listitem:"editor-nested-listitem"},ol:"editor-list-ol",ul:"editor-list-ul",listitem:"editor-listItem",listitemChecked:"editor-listItemChecked",listitemUnchecked:"editor-listItemUnchecked"},hashtag:"editor-hashtag",image:"editor-image",link:"editor-link",text:{bold:"editor-textBold",code:"editor-textCode",italic:"editor-textItalic",strikethrough:"editor-textStrikethrough",subscript:"editor-textSubscript",superscript:"editor-textSuperscript",underline:"editor-textUnderline",underlineStrikethrough:"editor-textUnderlineStrikethrough"},code:"editor-code",codeHighlight:{atrule:"editor-tokenAttr",attr:"editor-tokenAttr",boolean:"editor-tokenProperty",builtin:"editor-tokenSelector",cdata:"editor-tokenComment",char:"editor-tokenSelector",class:"editor-tokenFunction","class-name":"editor-tokenFunction",comment:"editor-tokenComment",constant:"editor-tokenProperty",deleted:"editor-tokenProperty",doctype:"editor-tokenComment",entity:"editor-tokenOperator",function:"editor-tokenFunction",important:"editor-tokenVariable",inserted:"editor-tokenSelector",keyword:"editor-tokenAttr",namespace:"editor-tokenVariable",number:"editor-tokenProperty",operator:"editor-tokenOperator",prolog:"editor-tokenComment",property:"editor-tokenProperty",punctuation:"editor-tokenPunctuation",regex:"editor-tokenVariable",selector:"editor-tokenSelector",string:"editor-tokenSelector",symbol:"editor-tokenProperty",tag:"editor-tokenProperty",url:"editor-tokenOperator",variable:"editor-tokenVariable"}},ww=function(e){var t=e.content;return React.createElement("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-start text-field-placeholder"},t)};function _w(e){console.error(e)}var Sw=function(e,t){var n,r,i=e.defaultValue,s=void 0===i?"":i,a=e.placeholder,l=void 0===a?"Press @ to view variable suggestions":a,c=e.onChange,u=e.size,d=void 0===u?"md":u,f=e.autoFocus,h=void 0!==f&&f,p=e.options,m=void 0===p?[]:p,g=e.by,v=void 0===g?"name":g,y=e.menuComponent,b=e.menuItemComponent,x=e.className,w=e.disabled,_=void 0!==w&&w,S={namespace:"Editor",editorTheme:xw,onError:_w,nodes:[Gx],editorState:s||'{\n "root": {\n "children": [\n {\n "children": [],\n "direction": null,\n "format": "",\n "indent": 0,\n "type": "paragraph",\n "version": 1,\n "textFormat": 0,\n "textStyle": ""\n }\n ],\n "direction": null,\n "format": "",\n "indent": 0,\n "type": "root",\n "version": 1\n }\n}',editable:!_};return(0,o.isValidElement)(y)&&(n=y),(0,o.isValidElement)(b)&&(r=b),React.createElement("div",{className:te("relative w-full","border border-solid focus-within:ring-2 focus-within:ring-offset-2 border-field-border hover:border-border-strong focus-within:!border-focus-border focus-within:ring-focus transition duration-150 ease-in-out",Tx[d],_&&"bg-field-secondary-background border-field-border-disabled hover:border-field-border-disabled [&_p]:text-badge-color-disabled cursor-not-allowed")},React.createElement(Db,{initialConfig:S},React.createElement("div",{className:"relative w-full [&_p]:m-0"},React.createElement(nx,{contentEditable:React.createElement(ax,{className:te("editor-content","w-full min-h-[1.625rem] [&>p]:w-full [&>p]:m-0",x)}),placeholder:React.createElement(ww,{content:l}),ErrorBoundary:Sx})),React.createElement(yx,null),React.createElement(bw,{menuComponent:n,menuItemComponent:r,size:d,by:v,optionsArray:m}),React.createElement(Ex,{onChange:function(e,t){"function"==typeof c&&c(e,t)},ignoreSelectionChange:!0}),t&&React.createElement(Cx,{editorRef:t}),h&&React.createElement(qh,null)))},kw=(0,o.forwardRef)(Sw),Ew=["variant","className"];function Cw(){return Cw=Object.assign?Object.assign.bind():function(e){for(var t=1;t array(), 'version' => 'e0b59ef1b652ea401238'); + array(), 'version' => 'b2544125e1436693feb4'); diff --git a/dist/utils/withTW.js b/dist/utils/withTW.js index 33153c1d..4df7f85a 100644 --- a/dist/utils/withTW.js +++ b/dist/utils/withTW.js @@ -1 +1 @@ -!function(r,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["utils/withTW.[file].js"]=e():r["utils/withTW.[file].js"]=e()}("undefined"!=typeof self?self:this,(function(){return r={657:function(r){r.exports={content:["node_modules/@bsf/force-ui/dist/force-ui.js"],theme:{extend:{colors:{"brand-background-50":"#EFF6FF","brand-background-hover-100":"#DBEAFE","brand-200":"#BFDBFE","brand-border-300":"#93C5FD","brand-400":"#60A5FA","brand-500":"#3B82F6","brand-primary-600":"#2563EB","brand-hover-700":"#1D4ED8","brand-800":"#1E40AF","brand-900":"#1E3A8A","brand-text-950":"#172554","background-primary":"#FFFFFF","background-secondary":"#F3F4F6","background-inverse":"#111827","background-brand":"#2563EB","field-primary-background":"#F9FAFB","field-secondary-background":"#FFFFFF","field-primary-hover":"#F3F4F6","field-secondary-hover":"#F3F4F6","field-dropzone-background":"#FFFFFF","field-border":"#E5E7EB","field-dropzone-background-hover":"#F9FAFB","field-dropzone-color":"#2563EB","field-label":"#111827","field-input":"#111827","field-helper":"#9CA3AF","field-background-disabled":"#F9FAFB","field-color-disabled":"#D1D5DB","field-placeholder":"#6B7280","field-border-disabled":"#F3F4F6","field-color-error":"#DC2626","field-border-error":"#FECACA","field-background-error":"#FEF2F2","field-required":"#DC2626","border-interactive":"#2563EB","border-subtle":"#E5E7EB","border-strong":"#6B7280","border-inverse":"#374151","border-disabled":"#E5E7EB","border-muted":"#E5E7EB","border-error":"#DC2626","border-transparent-subtle":"#37415114","border-white":"#FFFFFF","text-primary":"#111827","text-secondary":"#4B5563","text-tertiary":"#9CA3AF","text-on-color":"#FFFFFF","text-error":"#DC2626","text-error-inverse":"#F87171","text-inverse":"#FFFFFF","text-disabled":"#D1D5DB","text-on-button-disabled":"#9CA3AF","link-primary":"#2563EB","link-primary-hover":"#1D4ED8","link-inverse":"#38BDF8","link-visited":"#7C3AED","link-visited-inverse":"#A78BFA","link-inverse-hover":"#7DD3FC","icon-primary":"#111827","icon-secondary":"#4B5563","icon-on-color":"#FFFFFF","icon-inverse":"#FFFFFF","icon-interactive":"#2563EB","icon-on-color-disabled":"#9CA3AF","icon-disabled":"#D1D5DB","support-error":"#DC2626","support-success":"#16A34A","support-warning":"#EAB308","support-info":"#0284C7","support-error-inverse":"#F87171","support-success-inverse":"#4ADE80","support-warning-inverse":"#FDE047","support-info-inverse":"#38BDF8","button-primary":"#2563EB","button-primary-hover":"#1D4ED8","button-secondary":"#1F2937","button-secondary-hover":"#374151","button-tertiary":"#FFFFFF","button-tertiary-hover":"#F9FAFB","button-danger":"#DC2626","button-danger-secondary":"#DC2626","button-danger-hover":"#B91C1C","button-disabled":"#F3F4F6","button-tertiary-border":"#E5E7EB","button-tertiary-color":"#111827",focus:"#2563EB","focus-inset":"#FFFFFF","focus-inverse":"#38BDF8","focus-inverse-inset":"#111827","focus-error":"#DC2626","focus-border":"#BFDBFE","focus-error-border":"#FECACA","misc-highlight":"#BFDBFE","misc-overlay":"#11182780","misc-skeleton-background":"#F3F4F6","misc-skeleton-element":"#D1D5DB","misc-popup-button-hover":"#1118270D","misc-tab-item-hover":"#E5E7EB","misc-dropdown-hover":"#F3F4F6","misc-loader-base":"#1118270D","misc-loader-color":"#2563EB","misc-progress-background":"#E5E7EB","badge-background-gray":"#F9FAFB","badge-color-gray":"#1F2937","badge-hover-gray":"#F3F4F6","badge-border-gray":"#E5E7EB","badge-background-red":"#FEF2F2","badge-color-red":"#B91C1C","badge-hover-red":"#FEE2E2","badge-border-red":"#FECACA","badge-background-yellow":"#FEFCE8","badge-color-yellow":"#A16207","badge-hover-yellow":"#FEF9C3","badge-border-yellow":"#FEF08A","badge-hover-green":"#DCFCE7","badge-border-green":"#BBF7D0","badge-background-green":"#F0FDF4","badge-color-green":"#15803D","badge-background-sky":"#F0F9FF","badge-color-sky":"#0369A1","badge-hover-sky":"#E0F2FE","badge-border-sky":"#BAE6FD","badge-background-disabled":"#F3F4F6","badge-color-disabled":"#D1D5DB","badge-hover-disabled":"#F3F4F6","badge-border-disabled":"#E5E7EB","alert-background-neutral":"#FFFFFF","alert-border-neutral":"#E5E7EB","alert-background-danger":"#FEF2F2","alert-border-danger":"#FECACA","alert-background-warning":"#FEFCE8","alert-border-warning":"#FEF08A","alert-background-green":"#F0FDF4","alert-border-green":"#BBF7D0","alert-background-info":"#F0F9FF","alert-border-info":"#BAE6FD","tab-background":"#F3F4F6","tab-border":"#E5E7EB","tooltip-background-light":"#FFFFFF","tooltip-background-dark":"#111827","toggle-off":"#E5E7EB","toggle-on":"#2563EB","toggle-dial-background":"#FFFFFF","toggle-off-hover":"#D1D5DB","toggle-off-border":"#D1D5DB","toggle-on-hover":"#3B82F6","toggle-on-border":"#60A5FA","toggle-off-disabled":"#F3F4F6"}}},plugins:[],corePlugins:{preflight:!1}}},709:function(r,e,o){function t(r){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},t(r)}function n(r,e){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.push.apply(o,t)}return o}function i(r,e,o){return(e=function(r){var e=function(r){if("object"!=t(r)||!r)return r;var e=r[Symbol.toPrimitive];if(void 0!==e){var o=e.call(r,"string");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(r);return"symbol"==t(e)?e:e+""}(e))in r?Object.defineProperty(r,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[e]=o,r}var a=o(744),F=o(657);r.exports=function(r){return a(F,function(r){for(var e=1;e