diff --git a/.wp-env.ci.json b/.wp-env.ci.json index c98fa1a60..d2c8aef26 100644 --- a/.wp-env.ci.json +++ b/.wp-env.ci.json @@ -1,5 +1,5 @@ { - "core": "https://wordpress.org/wordpress-7.2-RC2.zip", + "core": "https://wordpress.org/wordpress-7.2-RC4.zip", "phpVersion": "8.5", "plugins": ["."], "config": { diff --git a/.wp-env.json b/.wp-env.json index d5a94ce50..f1a6000f0 100644 --- a/.wp-env.json +++ b/.wp-env.json @@ -1,5 +1,5 @@ { - "core": "https://wordpress.org/wordpress-7.2-RC2.zip", + "core": "https://wordpress.org/wordpress-7.2-RC4.zip", "phpVersion": "8.5", "plugins": ["."], "config": { diff --git a/css/gallery-ui.css b/css/gallery-ui.css index c3d086055..5ba0c598c 100644 --- a/css/gallery-ui.css +++ b/css/gallery-ui.css @@ -1,5 +1,5 @@ -@charset "UTF-8";@media not (prefers-reduced-motion){.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top left}.components-animate__appear.is-from-top.is-from-right{transform-origin:top right}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom left}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom right}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}@media not (prefers-reduced-motion){.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}.components-animate__slide-in.is-from-left{transform:translateX(100%)}.components-animate__slide-in.is-from-right{transform:translateX(-100%)}}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}@media not (prefers-reduced-motion){.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content{min-width:200px;padding:8px}.components-autocomplete__result.components-button{display:flex;font-weight:var(--wpds-typography-font-weight-default,400);height:auto;min-height:36px;position:relative;text-align:left;width:100%}.components-autocomplete__result.components-button:is(:focus,.is-selected):not(:disabled,[aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));box-shadow:none;color:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);outline:none}@media (forced-colors:active){.components-autocomplete__result.components-button:is(:focus,.is-selected):not(:disabled,[aria-disabled=true]){background-color:Highlight;color:HighlightText;forced-color-adjust:none}}.components-autocomplete__result.components-button[aria-disabled=true]:is(:focus,.is-selected){outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));outline-offset:0}.components-badge{box-sizing:border-box}.components-badge *,.components-badge :after,.components-badge :before{box-sizing:inherit}.components-badge{background-color:color-mix(in srgb,#fff 90%,var(--base-color));border-radius:2px;color:color-mix(in srgb,#000 50%,var(--base-color));display:inline-block;line-height:0;max-width:100%;min-height:24px;padding:2px 8px}.components-badge:where(.is-default){background-color:#f0f0f0;color:#2f2f2f}.components-badge.has-icon{padding-inline-start:4px}.components-badge.is-info{--base-color:#3858e9}.components-badge.is-warning{--base-color:#f0b849}.components-badge.is-error{--base-color:#cc1818}.components-badge.is-success{--base-color:#4ab866}.components-badge__flex-wrapper{align-items:center;display:inline-flex;font-size:12px;font-weight:400;gap:2px;line-height:20px;max-width:100%}.components-badge__icon{flex-shrink:0}.components-badge__content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.components-button-group{display:inline-block}.components-button-group .components-button{border-color:#1e1e1e;border-radius:0;color:#1e1e1e;display:inline-flex}.components-button-group .components-button+.components-button{margin-left:-1px}.components-button-group .components-button:first-child{border-radius:2px 0 0 2px}.components-button-group .components-button:last-child{border-radius:0 2px 2px 0}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button:focus:is(a){box-shadow:none}.components-button:focus{outline:none}.components-button:focus:not(:active){outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-button{align-items:center;appearance:none;background:none;border:1px solid transparent;border-radius:2px;box-sizing:border-box;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));cursor:var(--wpds-cursor-control,pointer);display:inline-flex;font-family:inherit;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);height:36px;margin:0;padding:4px 12px;text-decoration:none}.components-button.is-next-40px-default-size{height:40px}.components-button:hover:not(:disabled,[aria-disabled=true],[role^=menuitem],[role=option]),.components-button[aria-expanded=true]{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-primary{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));text-decoration:none;text-shadow:none;white-space:nowrap}.components-button.is-primary,.components-button.is-primary:hover:not(:disabled){color:var(--wp-components-color-accent-inverted,var(--wpds-color-foreground-interactive-brand-strong,#fff))}.components-button.is-primary:hover:not(:disabled){background:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6))}.components-button.is-primary:active:not(:disabled){background:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));color:var(--wp-components-color-accent-inverted,var(--wpds-color-foreground-interactive-brand-strong,#fff))}.components-button.is-primary:disabled,.components-button.is-primary:disabled:active:enabled,.components-button.is-primary[aria-disabled=true],.components-button.is-primary[aria-disabled=true]:active:enabled,.components-button.is-primary[aria-disabled=true]:enabled{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:hsla(0,0%,100%,.4)}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 33%,var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6)) 70%,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 70%);background-size:100px 100%;color:var(--wp-components-color-accent-inverted,var(--wpds-color-foreground-interactive-brand-strong,#fff))}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-secondary[aria-disabled=true]:hover,.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true],.components-button.is-tertiary[aria-disabled=true]:hover{background:transparent;color:#949494;transform:none}@media not (prefers-reduced-motion){.components-button.is-secondary{transition:border-color .1s linear}}.components-button.is-secondary{background:transparent;border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));white-space:nowrap}.components-button.is-secondary:active:not(:disabled){border-color:transparent}.components-button.is-secondary:hover:not(:disabled,[aria-disabled=true],.is-pressed){background:color-mix(in srgb,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 4%,transparent);border-color:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6));color:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6))}.components-button.is-secondary:focus:not(:active){border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-button.is-secondary:disabled:not(:focus),.components-button.is-secondary[aria-disabled=true]:hover:not(:focus),.components-button.is-secondary[aria-disabled=true]:not(:focus){border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}.components-button.is-tertiary{background:transparent;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));white-space:nowrap}.components-button.is-tertiary:hover:not(:disabled,[aria-disabled=true],.is-pressed){background:color-mix(in srgb,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 4%,transparent);color:var(--wp-components-color-accent-darker-20,var(--wp-admin-theme-color-darker-20,#183ad6))}.components-button.is-tertiary:active:not(:disabled,[aria-disabled=true]){background:color-mix(in srgb,var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)) 8%,transparent)}p+.components-button.is-tertiary{margin-left:-6px}.components-button.is-destructive{--wp-components-color-accent:#cc1818;--wp-components-color-accent-darker-10:#9e1313;--wp-components-color-accent-darker-20:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link){color:#cc1818}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):hover:not(:disabled,[aria-disabled=true]){color:#710d0d}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):active:not(:disabled,[aria-disabled=true]){background:#ccc}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):disabled,.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link)[aria-disabled=true]{color:#949494}.components-button.is-destructive.is-secondary:hover:not(:disabled,[aria-disabled=true]),.components-button.is-destructive.is-tertiary:hover:not(:disabled,[aria-disabled=true]){background:rgba(204,24,24,.04)}.components-button.is-destructive.is-secondary:active:not(:disabled,[aria-disabled=true]),.components-button.is-destructive.is-tertiary:active:not(:disabled,[aria-disabled=true]){background:rgba(204,24,24,.08)}.components-button.is-link{background:none;border:0;border-radius:0;color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));font-weight:var(--wpds-typography-font-weight-default,400);margin:0;outline:none;padding:0;text-align:left;text-decoration:underline;text-decoration-thickness:from-font;text-underline-offset:.2em}@media not (prefers-reduced-motion){.components-button.is-link{transition-duration:.05s;transition-property:border,background,color;transition-timing-function:ease-in-out}}.components-button.is-link{height:auto}.components-button.is-link:focus:not(:active){border-radius:2px;text-decoration:none}.components-button.is-link:disabled,.components-button.is-link[aria-disabled=true]{color:#949494}.components-button:not(:disabled,[aria-disabled=true]):active{color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e))}.components-button:disabled,.components-button[aria-disabled=true]{color:#949494;cursor:default}@media not (prefers-reduced-motion){.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite}}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,#fafafa 33%,#e0e0e0 0,#e0e0e0 70%,#fafafa 0);background-size:100px 100%}.components-button.is-compact{height:32px}.components-button.is-compact.has-icon:not(.has-text){min-width:32px;padding:0}.components-button.is-small{font-size:11px;height:var(--wpds-dimension-size-sm,24px);line-height:22px;padding:0 8px}.components-button.is-small.has-icon:not(.has-text){min-width:var(--wpds-dimension-size-sm,24px);padding:0}.components-button.has-icon{justify-content:center;min-width:36px;padding:6px}.components-button.has-icon.is-next-40px-default-size{min-width:40px}.components-button.has-icon .dashicon{align-items:center;box-sizing:content-box;display:inline-flex;justify-content:center;padding:2px}.components-button.has-icon.has-text{gap:4px;justify-content:start;padding-left:8px;padding-right:12px}.components-button.has-icon.has-text.has-icon-right{padding-left:12px;padding-right:8px}.components-button.has-icon:not(.has-text) .dashicon,.components-button.has-icon:not(.has-text) svg{margin-inline:-1px}.components-button.is-pressed,.components-button.is-pressed:hover{color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc))}.components-button.is-pressed:hover:not(:disabled,[aria-disabled=true]),.components-button.is-pressed:not(:disabled,[aria-disabled=true]){background:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e))}.components-button.is-pressed:disabled,.components-button.is-pressed[aria-disabled=true]{color:#949494}.components-button.is-pressed:disabled:not(.is-primary):not(.is-secondary):not(.is-tertiary),.components-button.is-pressed[aria-disabled=true]:not(.is-primary):not(.is-secondary):not(.is-tertiary){background:#949494;color:var(--wp-components-color-foreground-inverted,var(--wpds-color-background-surface-neutral,#fcfcfc))}.components-button svg{fill:currentColor;flex-shrink:0;outline:none}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control{--checkbox-input-size:16px;--checkbox-input-margin:8px}.components-checkbox-control__label{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);line-height:var(--checkbox-input-size)}.components-checkbox-control:not(:has(:disabled)) .components-checkbox-control__label{cursor:var(--wpds-cursor-control,pointer)}.components-checkbox-control__input[type=checkbox]{border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-sm,2px);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px;transition:none}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]:hover:not(:disabled,[aria-disabled=true]){border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}.components-checkbox-control__input[type=checkbox]:focus{border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);box-shadow:none;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-checkbox-control__input[type=checkbox]::placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:hover:not(:disabled,[aria-disabled=true]){background:var(--wpds-color-background-interactive-neutral-active,#fff)}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{color:var(--wpds-color-foreground-interactive-brand-strong,#fff);margin:-3px -5px}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9))}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{content:"\f460";display:inline-block;float:left;font:400 30px/1 dashicons;vertical-align:middle;width:16px;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}.components-checkbox-control__input[type=checkbox]:disabled,.components-checkbox-control__input[type=checkbox][aria-disabled=true]{background:var(--wpds-color-background-interactive-neutral-disabled,#fff);border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);cursor:default;opacity:1}@media (forced-colors:active){.components-checkbox-control__input[type=checkbox]:disabled,.components-checkbox-control__input[type=checkbox][aria-disabled=true]{border-color:GrayText}}.components-checkbox-control__input[type=checkbox]:disabled:checked:before,.components-checkbox-control__input[type=checkbox]:disabled[aria-checked=mixed]:before,.components-checkbox-control__input[type=checkbox][aria-disabled=true]:checked:before,.components-checkbox-control__input[type=checkbox][aria-disabled=true][aria-checked=mixed]:before{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}.components-checkbox-control__input[type=checkbox]{appearance:none;background:var(--wpds-color-background-interactive-neutral,#fff);clear:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:inline-block;height:var(--checkbox-input-size);line-height:0;margin:0 4px 0 0;outline:0;padding:0!important;position:relative;text-align:center;vertical-align:top;width:var(--checkbox-input-size)}@media not (prefers-reduced-motion){.components-checkbox-control__input[type=checkbox]{transition:border-color .1s ease-in-out}}.components-checkbox-control__input[type=checkbox]:not(:disabled):is(:checked,:indeterminate){background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9))}.components-checkbox-control__input[type=checkbox]:not(:disabled){cursor:var(--wpds-cursor-control,pointer)}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input[type=checkbox]:after{aspect-ratio:1;content:"";left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:max(var(--checkbox-input-size),24px)}.components-checkbox-control__input-container{aspect-ratio:1;display:inline-block;flex-shrink:0;line-height:1;margin-right:var(--checkbox-input-margin);position:relative;vertical-align:middle;width:var(--checkbox-input-size)}svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{color:var(--wpds-color-foreground-interactive-brand-strong,#fff);cursor:var(--wpds-cursor-control,pointer);forced-color-adjust:auto;height:var(--checkbox-input-size);left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);-webkit-user-select:none;user-select:none;width:var(--checkbox-input-size)}.components-checkbox-control:has(:disabled) svg.components-checkbox-control__checked,.components-checkbox-control:has(:disabled) svg.components-checkbox-control__indeterminate{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}@media (forced-colors:active){.components-checkbox-control:has(:disabled) svg.components-checkbox-control__checked,.components-checkbox-control:has(:disabled) svg.components-checkbox-control__indeterminate{color:GrayText}}.components-checkbox-control__help{display:inline-block;margin-inline-start:calc(var(--checkbox-input-size) + var(--checkbox-input-margin))}.components-circular-option-picker{display:inline-block;isolation:isolate;min-width:188px;width:100%}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end;margin-top:12px}.components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:12px;position:relative;z-index:1}.components-circular-option-picker>:not(.components-circular-option-picker__swatches){position:relative;z-index:0}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;transform:scale(1);vertical-align:top;width:28px}@media not (prefers-reduced-motion){.components-circular-option-picker__option-wrapper{transition:transform .1s ease-out;will-change:transform}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.1)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' fill='none'%3E%3Cpath fill='%23555d65' d='M6 8V6H4v2zm2 0V6h2v2zm2 8H8v-2h2zm2 0v-2h2v2zm0 2v-2h-2v2H8v2h2v-2zm2 0v2h-2v-2zm2 0h-2v-2h2z'/%3E%3Cpath fill='%23555d65' fill-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2zm-2-4v-2h2v2z' clip-rule='evenodd'/%3E%3Cpath fill='%23555d65' d='M18 18v2h-2v-2z'/%3E%3Cpath fill='%23555d65' fill-rule='evenodd' d='M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2zm0 2v-2H6v2zm2 0v-2h2v2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2z' clip-rule='evenodd'/%3E%3Cpath fill='%23555d65' fill-rule='evenodd' d='M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4zm0 4V2H2v2zm2 0V2h2v2zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2z' clip-rule='evenodd'/%3E%3C/svg%3E");border-radius:50%;content:"";inset:1px;position:absolute;z-index:-1}.components-circular-option-picker__option{aspect-ratio:1;background:transparent;border:none;border-radius:50%;box-shadow:inset 0 0 0 14px;display:inline-block;height:100%!important;vertical-align:top}@media not (prefers-reduced-motion){.components-circular-option-picker__option{transition:box-shadow .1s ease}}.components-circular-option-picker__option{cursor:var(--wpds-cursor-control,pointer)}.components-circular-option-picker__option[aria-pressed=true],.components-circular-option-picker__option[aria-selected=true]{overflow:visible;position:relative;z-index:1}.components-circular-option-picker__option[aria-pressed=true]+svg,.components-circular-option-picker__option[aria-selected=true]+svg{border-radius:50%;left:2px;pointer-events:none;position:absolute;top:2px;z-index:2}.components-circular-option-picker__option:after{border:1px solid transparent;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);content:"";inset:-1px;position:absolute}.components-circular-option-picker__button-action .components-circular-option-picker__option{background:#fff;color:#fff}.components-circular-option-picker__dropdown-link-action{margin-right:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.components-palette-edit__popover-duotone-picker,.components-palette-edit__popover-gradient-picker{padding:8px;width:260px}.component-color-indicator{background:#fff linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);display:inline-block;height:20px;padding:0;width:20px}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{background:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:none;box-shadow:none;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-family:inherit;font-size:16px;line-height:inherit;margin:0;min-height:auto;padding:2px;width:100%}@media (min-width:600px){input.components-combobox-control__input[type=text]{font-size:13px}}input.components-combobox-control__input[type=text]:focus{box-shadow:none;outline:none}.components-combobox-control__suggestions-container{border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-sm,2px);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container:hover:not(:disabled,[aria-disabled=true]){border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}.components-combobox-control__suggestions-container:focus{border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);box-shadow:none;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-combobox-control__suggestions-container::placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container{align-items:flex-start;display:flex;flex-wrap:wrap;padding:0;width:100%}.components-combobox-control__suggestions-container:focus-within{outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-combobox-control__suggestions-container .components-spinner{margin:0}.components-color-palette__custom-color-wrapper{position:relative;z-index:0}.components-color-palette__custom-color-button{background:none;border:none;border-radius:4px 4px 0 0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:var(--wpds-cursor-control,pointer);height:64px;outline:1px solid transparent;position:relative;width:100%}.components-color-palette__custom-color-button:focus:not(:active){outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-color-palette__custom-color-button:after{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,24px 24px;background-size:48px 48px;border-radius:3px 3px 0 0;content:"";inset:1px;position:absolute;z-index:-1}.components-color-palette__custom-color-text-wrapper{border-radius:0 0 4px 4px;box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.2),inset 1px 0 0 0 rgba(0,0,0,.2),inset -1px 0 0 0 rgba(0,0,0,.2);font-size:13px;padding:12px 16px;position:relative}.components-color-palette__custom-color-name{color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));margin:0 1px}.components-color-palette__custom-color-value{color:#757575}.components-color-palette__custom-color-value--is-hex{text-transform:uppercase}.components-color-palette__custom-color-value:empty:after{content:"​";visibility:hidden}.components-custom-gradient-picker__gradient-bar{border-radius:2px;height:48px;position:relative;width:100%;z-index:1}.components-custom-gradient-picker__gradient-bar.has-gradient{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,12px 12px;background-size:24px 24px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__gradient-bar-background{inset:0;position:absolute}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{margin-left:auto;margin-right:auto;position:relative;width:calc(100% - 48px)}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-dropdown{display:flex;height:16px;position:absolute;top:16px;width:16px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:before,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown:before{content:"";inset:-16px 0;position:absolute}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown{background:#fff;border-radius:50%;color:#1e1e1e;height:inherit;min-width:16px!important;padding:2px;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 2px 0 rgba(0,0,0,.25);height:inherit;padding:0;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2) #fff,0 0 2px 0 rgba(0,0,0,.25)}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus:not(:active){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 2px 0 rgba(0,0,0,.25),0 0 0 calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) + 2px) var(--wpds-color-background-surface-neutral-strong,#fff);outline-offset:1px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus:not(:active).is-active{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2) #fff,0 0 2px 0 rgba(0,0,0,.25),0 0 0 calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) + 2px) var(--wpds-color-background-surface-neutral-strong,#fff)}.components-custom-gradient-picker__remove-control-point-wrapper{padding-bottom:8px}.components-custom-gradient-picker__inserter{direction:ltr}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;height:20px;width:20px}.components-custom-gradient-picker__ui-line{position:relative;z-index:0}.components-drop-zone{border-radius:2px;bottom:0;left:0;opacity:0;position:absolute;right:0;top:0;visibility:hidden;z-index:40}.components-drop-zone.is-active{opacity:1;visibility:visible}.components-drop-zone .components-drop-zone__content{align-items:center;background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));bottom:0;color:#fff;display:flex;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:absolute;right:0;text-align:center;top:0;width:100%;z-index:50}.components-drop-zone .components-drop-zone__content-inner{opacity:0;transform:scale(.9)}.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content{opacity:1}@media not (prefers-reduced-motion){.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content{transition:opacity .2s ease-in-out}}.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content-inner{opacity:1;transform:scale(1)}@media not (prefers-reduced-motion){.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content-inner{transition:opacity .1s ease-in-out .1s,transform .1s ease-in-out .1s}}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{fill:currentColor;line-height:0;margin:0 auto 8px;pointer-events:none}.components-drop-zone__content-text{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-dropdown{display:inline-block}.components-dropdown__content .components-button[role^=menuitem][aria-disabled=true]:focus:not(:focus-visible){outline:none}.components-dropdown__content .components-button[role^=menuitem]:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000))!important;box-shadow:none;color:var(--wpds-color-foreground-interactive-brand-strong-active,#fff)!important;outline:none}@media (forced-colors:active){.components-dropdown__content .components-button[role^=menuitem]:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]){background-color:Highlight!important;color:HighlightText!important;forced-color-adjust:none}}.components-dropdown__content .components-button[role^=menuitem]:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]) .components-menu-item__info{color:inherit}.components-dropdown__content .components-button[role^=menuitem][aria-expanded=true]:not(:focus,[aria-selected=true],:disabled,[aria-disabled=true]){background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed)!important;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)!important;outline:none}@media (forced-colors:active){.components-dropdown__content .components-button[role^=menuitem][aria-expanded=true]:not(:focus,[aria-selected=true],:disabled,[aria-disabled=true]){outline:var(--wpds-border-width-xs,1px) solid GrayText;outline-offset:0}}.components-dropdown__content .components-button[role^=menuitem][aria-expanded=true]:not(:focus,[aria-selected=true],:disabled,[aria-disabled=true]) .components-menu-item__info{color:inherit}.components-dropdown__content .components-popover__content{padding:8px}.components-dropdown__content .components-popover__content:has(.components-menu-group){padding:0}.components-dropdown__content .components-popover__content:has(.components-menu-group) .components-dropdown-menu__menu>.components-menu-item__button,.components-dropdown__content .components-popover__content:has(.components-menu-group)>.components-menu-item__button{margin:8px;width:auto}.components-dropdown__content [role=menuitem]{white-space:nowrap}.components-dropdown__content .components-menu-group{padding:8px}.components-dropdown__content .components-menu-group+.components-menu-group{border-top:1px solid #ccc;padding:8px}.components-dropdown__content.is-alternate .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-dropdown-menu__toggle{vertical-align:top}.components-dropdown-menu__menu{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{cursor:var(--wpds-cursor-control,pointer);font-weight:var(--wpds-typography-font-weight-default,400);outline:none;padding:6px;white-space:nowrap;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;overflow:visible;position:relative}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:content-box;content:"";display:block;height:1px;left:0;position:absolute;right:0;top:-3px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active .dashicon,.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active .dashicon,.components-dropdown-menu__menu .components-menu-item.is-active svg{background:#1e1e1e;border-radius:1px;box-shadow:0 0 0 1px #1e1e1e;color:#fff}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-icon-only,.components-dropdown-menu__menu .components-menu-item.is-icon-only{width:auto}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{height:auto;min-height:32px;padding:3px 8px;text-align:left}.components-dropdown-menu__menu .components-menu-item__button.components-button.has-icon,.components-dropdown-menu__menu .components-menu-item__button.has-icon{padding-bottom:5px;padding-top:5px}.components-duotone-picker__color-indicator:before{background:transparent}.components-duotone-picker__color-indicator>.components-button,.components-duotone-picker__color-indicator>.components-button.is-pressed:hover:not(:disabled){background:linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);color:transparent}.components-duotone-picker__color-indicator>.components-button:hover:not(:disabled):not([aria-disabled=true]),.components-duotone-picker__color-indicator>.components-button:not([aria-disabled=true]):active{color:transparent}.components-color-list-picker,.components-color-list-picker__swatch-button{width:100%}.components-color-list-picker__color-picker{margin:8px 0}.components-color-list-picker__swatch-color{margin:2px}.components-external-link{border-radius:var(--wpds-border-radius-sm,2px);text-decoration:none}.components-external-link,.components-external-link:visited{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.components-external-link:active,.components-external-link:hover{color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}.components-external-link:focus{border-radius:var(--wpds-border-radius-sm,2px);box-shadow:none}.components-external-link:focus:not(:active){outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-external-link__contents{text-decoration:underline;text-decoration-thickness:from-font;text-underline-offset:.2em}.components-external-link__icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px)}.components-form-toggle{display:inline-block;height:16px;isolation:isolate;position:relative}.components-form-toggle .components-form-toggle__track{background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);border:1px solid var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:8px;box-sizing:border-box;content:"";display:inline-block;height:16px;vertical-align:top;width:32px}@media not (prefers-reduced-motion){.components-form-toggle .components-form-toggle__track{transition:background-color .2s ease,border-color .2s ease}}.components-form-toggle .components-form-toggle__thumb{border-radius:50%;box-sizing:border-box;display:block;height:12px;left:2px;position:absolute;top:2px;width:12px}@media not (prefers-reduced-motion){.components-form-toggle .components-form-toggle__thumb{transition:transform .2s ease,background-color .2s ease-out}}.components-form-toggle .components-form-toggle__thumb{background-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);border:6px solid transparent;box-shadow:0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01)}@media (forced-colors:active){.components-form-toggle .components-form-toggle__thumb{background-color:ButtonText}}.components-form-toggle:not(.is-checked,.is-disabled):hover .components-form-toggle__track{border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}.components-form-toggle.is-checked .components-form-toggle__track{background-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-color:transparent}@media (forced-colors:active){.components-form-toggle.is-checked .components-form-toggle__track{background-color:Highlight}}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);border-width:0;transform:translateX(16px)}@media (forced-colors:active){.components-form-toggle.is-checked .components-form-toggle__thumb{background-color:HighlightText}}.components-form-toggle.is-disabled .components-form-toggle__track,[inert] .components-form-toggle .components-form-toggle__track{background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}@media (forced-colors:active){.components-form-toggle.is-disabled .components-form-toggle__track,[inert] .components-form-toggle .components-form-toggle__track{border-color:GrayText}}.components-form-toggle.is-disabled .components-form-toggle__thumb,[inert] .components-form-toggle .components-form-toggle__thumb{background-color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);box-shadow:none}@media (forced-colors:active){.components-form-toggle.is-disabled .components-form-toggle__thumb,[inert] .components-form-toggle .components-form-toggle__thumb{background-color:GrayText;border-color:GrayText}}.components-form-toggle.is-disabled.is-checked .components-form-toggle__track,[inert] .components-form-toggle.is-checked .components-form-toggle__track{background-color:var(--wpds-color-background-interactive-brand-strong-disabled,#e6e6e6);border-color:transparent}@media (forced-colors:active){.components-form-toggle.is-disabled.is-checked .components-form-toggle__track,[inert] .components-form-toggle.is-checked .components-form-toggle__track{background-color:GrayText}}.components-form-toggle.is-disabled.is-checked .components-form-toggle__thumb,[inert] .components-form-toggle.is-checked .components-form-toggle__thumb{background-color:var(--wpds-color-foreground-interactive-brand-strong-disabled,#8d8d8d)}@media (forced-colors:active){.components-form-toggle.is-disabled.is-checked .components-form-toggle__thumb,[inert] .components-form-toggle.is-checked .components-form-toggle__thumb{background-color:Canvas}}.components-form-toggle input.components-form-toggle__input[type=checkbox]{border:none;height:100%;left:0;margin:0;opacity:0;padding:0;position:absolute;top:0;width:100%;z-index:1}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-toggle input.components-form-toggle__input[type=checkbox]:not(:disabled,[aria-disabled=true]){cursor:var(--wpds-cursor-control,pointer)}.components-form-token-field__input-container{border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-sm,2px);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container:hover:not(:disabled,[aria-disabled=true]){border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}.components-form-token-field__input-container:focus{border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);box-shadow:none;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-form-token-field__input-container::placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container{cursor:text;padding:0;width:100%}.components-form-token-field__input-container.is-disabled{background:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));cursor:default}.components-form-token-field__input-container.is-disabled,.components-form-token-field__input-container.is-disabled:hover{border-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}.components-form-token-field__input-container.is-active{outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-form-token-field__input-container input[type=text].components-form-token-field__input{background:inherit;border:0;box-shadow:none;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:inline-block;flex:1;font-family:inherit;font-size:16px;line-height:1;margin-left:4px;max-width:100%;min-height:24px;min-width:50px;padding:0;width:100%}@media (min-width:600px){.components-form-token-field__input-container input[type=text].components-form-token-field__input{font-size:13px}}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{box-shadow:none;outline:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__token{color:#1e1e1e;display:flex;font-size:13px;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#757575}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token.components-button,.components-form-token-field__token.is-disabled .components-form-token-field__token-text{background:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));color:var(--wp-components-color-gray-600,var(--wpds-color-stroke-interactive-neutral,#8d8d8d))}.components-form-token-field__token.is-borderless{padding:0 24px 0 0;position:relative}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent}.components-form-token-field__token.is-borderless:not(.is-disabled) .components-form-token-field__token-text{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#757575;position:absolute;right:0;top:1px}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#cc1818;padding:0 4px 0 6px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{background:#ddd;display:inline-block;height:auto;min-width:unset}@media not (prefers-reduced-motion){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{transition:all .2s cubic-bezier(.4,1,.4,1)}}.components-form-token-field__token-text{border-radius:1px 0 0 1px;line-height:24px;overflow:hidden;padding:0 0 0 8px;text-overflow:ellipsis;white-space:nowrap}.components-form-token-field__remove-token.components-button{border-radius:0 1px 1px 0;color:#1e1e1e;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-button:hover:not(:disabled){color:#1e1e1e}.components-form-token-field__suggestions-list{flex:1 0 100%;max-height:128px;min-width:100%;overflow-y:auto}@media not (prefers-reduced-motion){.components-form-token-field__suggestions-list{transition:all .15s ease-in-out}}.components-form-token-field__suggestions-list{box-shadow:inset 0 1px 0 0 #949494;list-style:none;margin:0;padding:0}.components-form-token-field__suggestion{box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:block;font-size:13px;margin:0;min-height:32px;padding:8px 12px}.components-form-token-field__suggestion.is-selected:not([aria-disabled=true],.is-empty){background-color:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));box-shadow:none;color:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);outline:none}@media (forced-colors:active){.components-form-token-field__suggestion.is-selected:not([aria-disabled=true],.is-empty){background-color:Highlight;color:HighlightText;forced-color-adjust:none}}.components-form-token-field__suggestion[aria-disabled=true]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);pointer-events:none}.components-form-token-field__suggestion[aria-disabled=true].is-selected{background:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));outline-offset:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1)}.components-form-token-field__suggestion:not(.is-empty){cursor:var(--wpds-cursor-control,pointer)}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__content{margin-top:0;padding:0}.components-guide .components-modal__content:before{content:none}.components-guide .components-modal__header{border-bottom:none;height:64px;padding:0;position:sticky}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 8px 0 0;position:static}.components-guide .components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-64px;min-height:100%}.components-guide .components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide .components-guide__page{min-height:300px}}.components-guide .components-guide__footer{align-content:center;display:flex;height:36px;justify-content:center;margin:0 0 24px;padding:0 24px;position:relative;width:100%}.components-guide .components-guide__page-control{margin:0;text-align:center}.components-guide .components-guide__page-control li{display:inline-block;margin:0}.components-guide .components-guide__page-control .components-button{color:#e0e0e0;margin:-6px 0}.components-guide .components-guide__page-control li[aria-current=step] .components-button{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-modal__frame.components-guide{border:none;max-height:575px;min-width:312px}@media (max-width:600px){.components-modal__frame.components-guide{margin:auto;max-width:calc(100vw - 32px)}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{position:absolute}.components-button.components-guide__back-button{left:24px}.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{right:24px}[role=region]{position:relative}[role=region].interface-interface-skeleton__content:focus-visible:after{bottom:0;box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1) + .5px) hsla(0,0%,100%,.7);content:"";left:0;outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1));pointer-events:none;position:absolute;right:0;top:0;z-index:1000000}.is-focusing-regions [role=region]:focus:after{bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1000000}.is-focusing-regions .interface-interface-skeleton__actions:focus .editor-layout__toggle-entities-saved-states-panel,.is-focusing-regions .interface-interface-skeleton__actions:focus .editor-layout__toggle-publish-panel,.is-focusing-regions .interface-interface-skeleton__actions:focus .editor-post-publish-panel,.is-focusing-regions .interface-interface-skeleton__sidebar .editor-layout__toggle-sidebar-panel,.is-focusing-regions [role=region]:focus:after,.is-focusing-regions.is-distraction-free .interface-interface-skeleton__header .edit-post-header{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1) + .5px) hsla(0,0%,100%,.7);outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1))}.components-input-control__container:focus-within:not(:has(:is(.components-input-control__prefix,.components-input-control__suffix):focus-within)) .components-input-control__backdrop{outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-menu-group+.components-menu-group{border-top:1px solid #1e1e1e;padding-top:8px}.components-menu-group+.components-menu-group.has-hidden-separator{border-top:none;margin-top:0;padding-top:0}.components-menu-group:has(>div:empty){display:none}.components-menu-group__label{color:#757575;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:12px;margin-top:4px;padding:0 8px;text-transform:uppercase;white-space:nowrap}.components-menu-item__button.components-button[aria-disabled=true]:focus:not(:focus-visible),.components-menu-item__button[aria-disabled=true]:focus:not(:focus-visible){outline:none}.components-menu-item__button.components-button:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]),.components-menu-item__button:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000))!important;box-shadow:none;color:var(--wpds-color-foreground-interactive-brand-strong-active,#fff)!important;outline:none}@media (forced-colors:active){.components-menu-item__button.components-button:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]),.components-menu-item__button:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]){background-color:Highlight!important;color:HighlightText!important;forced-color-adjust:none}}.components-menu-item__button.components-button:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]) .components-menu-item__info,.components-menu-item__button:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]) .components-menu-item__info{color:inherit}.components-menu-item__button.components-button[aria-expanded=true]:not(:focus,[aria-selected=true],:disabled,[aria-disabled=true]),.components-menu-item__button[aria-expanded=true]:not(:focus,[aria-selected=true],:disabled,[aria-disabled=true]){background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed)!important;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)!important;outline:none}@media (forced-colors:active){.components-menu-item__button.components-button[aria-expanded=true]:not(:focus,[aria-selected=true],:disabled,[aria-disabled=true]),.components-menu-item__button[aria-expanded=true]:not(:focus,[aria-selected=true],:disabled,[aria-disabled=true]){outline:var(--wpds-border-width-xs,1px) solid GrayText;outline-offset:0}}.components-menu-item__button.components-button[aria-expanded=true]:not(:focus,[aria-selected=true],:disabled,[aria-disabled=true]) .components-menu-item__info,.components-menu-item__button[aria-expanded=true]:not(:focus,[aria-selected=true],:disabled,[aria-disabled=true]) .components-menu-item__info{color:inherit}.components-menu-item__button,.components-menu-item__button.components-button{font-weight:var(--wpds-typography-font-weight-default,400);width:100%}.components-menu-item__button.components-button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button.components-button[role=menuitemradio] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemradio] .components-menu-item__item:only-child{box-sizing:initial;padding-right:46px}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button.components-button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button .components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-items__item-icon.has-icon-right{margin-left:24px;margin-right:-2px}.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right{margin-left:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-left:-2px;margin-right:8px}.components-menu-item__button.components-button.is-primary,.components-menu-item__button.is-primary{justify-content:center}.components-menu-item__button.components-button.is-primary .components-menu-item__item,.components-menu-item__button.is-primary .components-menu-item__item{margin-right:0}.components-menu-item__button.components-button:disabled.is-tertiary,.components-menu-item__button.components-button[aria-disabled=true].is-tertiary,.components-menu-item__button:disabled.is-tertiary,.components-menu-item__button[aria-disabled=true].is-tertiary{background:none;color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));opacity:.3}.components-menu-item__info-wrapper{display:flex;flex-direction:column;margin-right:auto}.components-menu-item__info{color:var(--wpds-color-foreground-content-neutral-weak,#707070);font-size:12px;margin-top:4px;white-space:normal}.components-menu-item__item{align-items:center;display:inline-flex;margin-right:auto;min-width:160px;white-space:nowrap}.components-menu-item__shortcut{align-self:center;color:currentColor;display:none;margin-left:auto;margin-right:0;padding-left:24px}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice,.components-menu-items-choice.components-button{height:auto;min-height:40px}.components-menu-items-choice svg,.components-menu-items-choice.components-button svg{margin-right:12px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-left:12px}body.modal-open{overflow:hidden}.components-modal__screen-overlay{background-color:rgba(0,0,0,.35);bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:100000}@keyframes __wp-base-styles-fade-in{0%{opacity:0}to{opacity:1}}@media not (prefers-reduced-motion){.components-modal__screen-overlay{animation:__wp-base-styles-fade-in var(--wpds-motion-duration-sm,.1s) var(--wpds-motion-easing-subtle,cubic-bezier(.15,0,.15,1)) 0s;animation-fill-mode:forwards}}@keyframes __wp-base-styles-fade-out{0%{opacity:1}to{opacity:0}}@media not (prefers-reduced-motion){.components-modal__screen-overlay.is-animating-out{animation:__wp-base-styles-fade-out var(--wpds-motion-duration-sm,.1s) var(--wpds-motion-easing-subtle,cubic-bezier(.15,0,.15,1)) var(--wpds-motion-duration-xs,50ms);animation-fill-mode:forwards}}.components-modal__frame{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before{box-sizing:inherit}.components-modal__frame{align-self:flex-end;background:var(--wpds-color-background-surface-neutral-strong,#fff);box-shadow:0 5px 15px rgba(0,0,0,.08),0 15px 27px rgba(0,0,0,.07),0 30px 36px rgba(0,0,0,.04),0 50px 43px rgba(0,0,0,.02);margin:0;max-height:calc(100% - var(--wpds-dimension-gap-3xl, 40px));width:100%}@media (forced-colors:active){.components-modal__frame{outline:var(--wpds-border-width-xs,1px) solid CanvasText}}.components-modal__frame{animation-fill-mode:forwards;animation-name:components-modal__appear-animation;animation-timing-function:var(--wpds-motion-easing-expressive,cubic-bezier(.25,0,0,1));border-radius:var(--wpds-border-radius-lg,8px) var(--wpds-border-radius-lg,8px) 0 0;display:flex;overflow:hidden}.components-modal__frame,.components-modal__frame h1,.components-modal__frame h2,.components-modal__frame h3{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}@media not (prefers-reduced-motion){.components-modal__frame{animation-duration:var(--wpds-motion-duration-md,.2s)}}.components-modal__screen-overlay.is-animating-out .components-modal__frame{animation-name:components-modal__disappear-animation;animation-timing-function:var(--wpds-motion-easing-expressive,cubic-bezier(.25,0,0,1))}@media (min-width:600px){.components-modal__frame{align-self:auto;border-radius:var(--wpds-border-radius-lg,8px);margin:auto;max-height:calc(100% - 128px);max-width:calc(100% - var(--wpds-dimension-gap-lg, 16px)*2);min-width:var(--wpds-dimension-surface-width-sm,320px);width:auto}.components-modal__frame.has-size-large,.components-modal__frame.has-size-medium,.components-modal__frame.has-size-small{width:100%}.components-modal__frame.has-size-small{max-width:var(--wpds-dimension-surface-width-md,400px)}.components-modal__frame.has-size-medium{max-width:var(--wpds-dimension-surface-width-lg,560px)}.components-modal__frame.has-size-large{max-width:var(--wpds-dimension-surface-width-2xl,960px)}}@media (min-width:960px){.components-modal__frame{max-height:70%}}.components-modal__frame.is-full-screen{border-radius:0;height:100%;margin:0;max-height:none;width:100%}.components-modal__frame.is-full-screen :where(.components-modal__content){display:flex;margin-bottom:var(--wpds-dimension-gap-xl,24px);padding-bottom:0}.components-modal__frame.is-full-screen :where(.components-modal__content)>:last-child{flex:1}@media (min-width:600px){.components-modal__frame.is-full-screen{border-radius:var(--wpds-border-radius-lg,8px);height:calc(100% - var(--wpds-dimension-gap-lg, 16px)*2);margin:auto;width:calc(100% - var(--wpds-dimension-gap-lg, 16px)*2)}}@media (min-width:782px){.components-modal__frame.is-full-screen{height:calc(100% - var(--wpds-dimension-gap-3xl, 40px)*2);max-width:none;width:calc(100% - var(--wpds-dimension-gap-3xl, 40px)*2)}}@keyframes components-modal__appear-animation{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@keyframes components-modal__disappear-animation{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(100%)}}@media (min-width:600px){@keyframes components-modal__appear-animation{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}@keyframes components-modal__disappear-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.9)}}}.components-modal__header{align-items:center;border-bottom:var(--wpds-border-width-xs,1px) solid transparent;box-sizing:border-box;display:flex;flex-direction:row;height:calc(64px + var(--wpds-dimension-padding-sm, 8px));justify-content:space-between;left:0;padding:var(--wpds-dimension-padding-2xl,24px);position:absolute;top:0;width:100%;z-index:10}.components-modal__header .components-modal__header-heading{font-size:var(--wpds-typography-font-size-xl,20px);font-weight:var(--wpds-typography-font-weight-emphasis,600)}.components-modal__header h1{line-height:1;margin:0}.components-modal__content.has-scrolled-content:not(.hide-header) .components-modal__header{border-bottom-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.components-modal__header+p{margin-top:0}.components-modal__header-heading-container{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:flex-start}.components-modal__header-icon-container{display:inline-block}.components-modal__header-icon-container svg{max-height:36px;max-width:36px;padding:var(--wpds-dimension-padding-sm,8px)}.components-modal__content{flex:1;margin-top:calc(64px + var(--wpds-dimension-padding-sm, 8px));overflow:auto;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}.components-modal__content.hide-header{margin-top:0;padding-top:var(--wpds-dimension-padding-2xl,24px)}.components-modal__content.is-scrollable:focus-visible{outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));outline-offset:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1)}.components-notice{--wp-components-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-info,#adc6e2);--wp-components-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);align-items:start;background-color:var(--wp-components-notice-background-color);border:var(--wpds-border-width-xs,1px) solid var(--wp-components-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);box-sizing:border-box;color:var(--wp-components-notice-text-color);display:grid;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-template-columns:1fr auto;isolation:isolate;line-height:var(--wpds-typography-line-height-sm,20px);padding:var(--wpds-dimension-padding-md,12px)}.components-notice.is-success{--wp-components-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-success,#92d39d);--wp-components-notice-text-color:var(--wpds-color-foreground-content-success,#002900)}.components-notice.is-warning{--wp-components-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bd7c);--wp-components-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900)}.components-notice.is-error{--wp-components-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-error,#e0afa7);--wp-components-notice-text-color:var(--wpds-color-foreground-content-error,#470000)}.components-notice__content{grid-column:1;grid-row:1;padding-block:calc((var(--wpds-dimension-size-sm, 24px) - 1lh)/2)}.components-notice__actions{align-items:center;display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:1;grid-row:2;margin-top:var(--wpds-dimension-gap-sm,8px)}.components-notice__dismiss{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);grid-column:2;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px);mix-blend-mode:luminosity}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}@media (forced-colors:active){.components-notice__dismiss{mix-blend-mode:normal}}.components-notice-list{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-md,12px);max-width:100vw}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{align-items:center;border-bottom:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:content-box;display:flex;flex-shrink:0;height:47px;justify-content:space-between;padding:0 16px}.components-panel__header h2{color:inherit;font-size:inherit;margin:0}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;font-size:inherit;margin-bottom:0;margin-top:0;padding:0}@media not (prefers-reduced-motion){.components-panel__body>.components-panel__body-title{transition:background .1s ease-in-out}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{color:#1e1e1e;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:16px 48px 16px 16px;position:relative;text-align:left;width:100%}@media not (prefers-reduced-motion){.components-panel__body-toggle.components-button{transition:background .1s ease-in-out}}.components-panel__body-toggle.components-button{height:auto}.components-panel__body-toggle.components-button:focus{border-radius:0;outline-offset:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1)}.components-panel__body-toggle.components-button .components-panel__arrow{color:#1e1e1e;fill:currentColor;position:absolute;right:16px;top:50%;transform:translateY(-50%)}@media not (prefers-reduced-motion){.components-panel__body-toggle.components-button .components-panel__arrow{transition:color .1s ease-in-out}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{margin-top:-10px;transform:scaleX(-1)}.components-panel__icon{color:#757575;margin:-2px 0 -2px 6px}.components-panel__body-toggle-icon{margin-right:-5px}.components-panel__color-title{float:left;height:19px}.components-panel__row{align-items:center;display:flex;justify-content:space-between;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{flex-shrink:0;margin-right:12px;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{align-items:flex-start;box-sizing:border-box;color:#1e1e1e;display:flex;flex-direction:column;font-size:13px;gap:16px;margin:0;padding:24px;position:relative;text-align:left;width:100%;-webkit-font-smoothing:subpixel-antialiased;background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;outline:1px solid transparent}.components-placeholder__error,.components-placeholder__fieldset,.components-placeholder__instructions,.components-placeholder__label{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;letter-spacing:normal;line-height:normal;text-transform:none}.components-placeholder__label{align-items:center;display:flex;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:currentColor;margin-right:4px}.components-placeholder__label:empty{display:none}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;flex-wrap:wrap;gap:16px;justify-content:flex-start;width:100%}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-sm,2px);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]:hover:not(:disabled,[aria-disabled=true]){border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}.components-placeholder__input[type=url]:focus{border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);box-shadow:none;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-placeholder__input[type=url]::placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]{flex:1 1 auto}.components-placeholder__error{gap:8px;width:100%}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-left:10px;margin-right:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-right:0}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-button,.components-placeholder.is-medium .components-placeholder__fieldset>*,.components-placeholder.is-small .components-button,.components-placeholder.is-small .components-placeholder__fieldset>*{justify-content:center;width:100%}.components-placeholder.is-small{padding:16px}.components-placeholder.has-illustration{backdrop-filter:blur(100px);backface-visibility:hidden;background-color:transparent;border-radius:0;box-shadow:none;color:inherit;display:flex}.is-dark-theme .components-placeholder.has-illustration{background-color:rgba(0,0,0,.1)}.components-placeholder.has-illustration .components-placeholder__fieldset{margin-left:0;margin-right:0}.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{opacity:0;pointer-events:none}@media not (prefers-reduced-motion){.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{transition:opacity .1s linear}}.is-selected>.components-placeholder.has-illustration .components-button,.is-selected>.components-placeholder.has-illustration .components-placeholder__instructions,.is-selected>.components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.components-placeholder.has-illustration:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.components-placeholder.has-illustration{overflow:hidden}.is-selected .components-placeholder.has-illustration{overflow:auto}.components-placeholder__preview{display:flex;justify-content:center}.components-placeholder__illustration{box-sizing:content-box;height:100%;left:50%;opacity:.25;position:absolute;stroke:currentColor;top:50%;transform:translate(-50%,-50%);width:100%}.components-popover{box-sizing:border-box}.components-popover *,.components-popover :after,.components-popover :before{box-sizing:inherit}.components-popover{z-index:1000000}.components-popover.is-expanded{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1000000!important}.components-popover__content{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-surface-neutral,#dbdbdb),0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);box-sizing:border-box;width:min-content}.is-alternate .components-popover__content{border-radius:2px;box-shadow:0 0 0 1px #1e1e1e}.is-unstyled .components-popover__content{background:none;border-radius:0;box-shadow:none}.components-popover.is-expanded .components-popover__content{box-shadow:0 calc(var(--wpds-border-width-xs, 1px)*-1) 0 0 var(--wpds-color-stroke-surface-neutral,#dbdbdb);height:calc(100% - 48px);overflow-y:visible;position:static;width:auto}.components-popover.is-expanded.is-alternate .components-popover__content{box-shadow:0 -1px 0 #1e1e1e}@media (forced-colors:active){.components-popover:where(:not(.is-unstyled):not(.is-expanded)) .components-popover__content{outline:var(--wpds-border-width-xs,1px) solid transparent}}.components-popover__header{align-items:center;background:var(--wpds-color-background-surface-neutral-strong,#fff);display:flex;height:48px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__arrow{display:flex;height:14px;pointer-events:none;position:absolute;width:14px}.components-popover__arrow:before{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);content:"";height:calc(var(--wpds-border-width-xs, 1px)*2);left:1px;position:absolute;right:1px;top:calc(var(--wpds-border-width-xs, 1px)*-1)}@media (forced-colors:active){.components-popover__arrow:before{background-color:Canvas}}.components-popover__arrow.is-top{bottom:-14px!important;transform:rotate(0)}.components-popover__arrow.is-right{left:-14px!important;transform:rotate(90deg)}.components-popover__arrow.is-bottom{top:-14px!important;transform:rotate(180deg)}.components-popover__arrow.is-left{right:-14px!important;transform:rotate(-90deg)}.components-popover__triangle{display:block;flex:1}.components-popover__triangle-bg{fill:var(--wpds-color-background-surface-neutral-strong,#fff)}@media (forced-colors:active){.components-popover__triangle-bg{fill:Canvas}}.components-popover__triangle-border{fill:transparent;stroke:var(--wpds-color-stroke-surface-neutral,#dbdbdb);stroke-width:var(--wpds-border-width-xs,1px)}.is-alternate .components-popover__triangle-border{stroke:#1e1e1e}@media (forced-colors:active){.components-popover:not(.is-unstyled) .components-popover__triangle-border{stroke:CanvasText}}.components-radio-control{border:0;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;margin:0;padding:0}.components-radio-control__help{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.components-radio-control__option{align-items:center;column-gap:8px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto minmax(0,max-content)}.components-radio-control__input[type=radio]{background:var(--wpds-color-background-interactive-neutral-weak,#0000);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:50%;grid-column:1;grid-row:1;height:16px;max-width:16px;min-width:16px;position:relative;transition:none;width:16px}.components-radio-control__input[type=radio]:after{aspect-ratio:1;content:"";left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:24px}.components-radio-control__input[type=radio]:focus{border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);box-shadow:none;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-radio-control__input[type=radio]:hover{border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}.components-radio-control__input[type=radio]:checked:before{background-color:currentColor;border:4px solid;box-sizing:inherit;height:8px;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:8px}.components-radio-control__input[type=radio]:checked{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-color:transparent;color:var(--wpds-color-foreground-interactive-brand-strong,#fff)}.components-radio-control__input[type=radio]:disabled,.components-radio-control__input[type=radio][aria-disabled=true]{background:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);cursor:default;opacity:1}@media (forced-colors:active){.components-radio-control__input[type=radio]:disabled,.components-radio-control__input[type=radio][aria-disabled=true]{border-color:GrayText;color:GrayText}}.components-radio-control__input[type=radio]{appearance:none;display:inline-flex;margin:0;padding:0}.components-radio-control__input[type=radio]:not(:disabled){cursor:var(--wpds-cursor-control,pointer)}.components-radio-control__input[type=radio]:checked:before{border-radius:50%;content:""}.components-radio-control__input[type=radio]:disabled:checked:before{opacity:1}.components-radio-control__label{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);grid-column:2;grid-row:1}.components-radio-control__input:not(:disabled)+.components-radio-control__label{cursor:var(--wpds-cursor-control,pointer)}.components-radio-control__label{line-height:16px}.components-radio-control__option-description{grid-column:2;grid-row:2;padding-block-start:4px}.components-radio-control__option-description.components-radio-control__option-description{margin-top:0}.components-resizable-box__handle{display:none;height:23px;width:23px;z-index:2}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__handle>div{height:100%;outline:none;position:relative;width:100%;z-index:2}.components-resizable-box__container>img{width:inherit}.components-resizable-box__handle:after{background:#fff;border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)),0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01);content:"";cursor:inherit;display:block;height:15px;outline:2px solid transparent;position:absolute;right:calc(50% - 8px);top:calc(50% - 8px);width:15px}.components-resizable-box__side-handle:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-radius:9999px;content:"";cursor:inherit;display:block;height:3px;position:absolute;right:calc(50% - 1px);top:calc(50% - 1px);width:3px}@media not (prefers-reduced-motion){.components-resizable-box__side-handle:before{transition:transform .1s ease-in;will-change:transform}}.components-resizable-box__side-handle:before{opacity:0}.components-resizable-box__corner-handle,.components-resizable-box__side-handle{z-index:2}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{border-left:0;border-right:0;left:0;width:100%}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{border-bottom:0;border-top:0;height:100%;top:0}@media not (prefers-reduced-motion){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{opacity:0;transform:scaleX(0)}to{opacity:1;transform:scaleX(1)}}@keyframes components-resizable-box__left-right-animation{0%{opacity:0;transform:scaleY(0)}to{opacity:1;transform:scaleY(1)}} +@charset "UTF-8";@media not (prefers-reduced-motion){.components-animate__appear{animation:components-animate__appear-animation .1s cubic-bezier(0,0,.2,1) 0s;animation-fill-mode:forwards}}.components-animate__appear.is-from-top,.components-animate__appear.is-from-top.is-from-left{transform-origin:top left}.components-animate__appear.is-from-top.is-from-right{transform-origin:top right}.components-animate__appear.is-from-bottom,.components-animate__appear.is-from-bottom.is-from-left{transform-origin:bottom left}.components-animate__appear.is-from-bottom.is-from-right{transform-origin:bottom right}@keyframes components-animate__appear-animation{0%{transform:translateY(-2em) scaleY(0) scaleX(0)}to{transform:translateY(0) scaleY(1) scaleX(1)}}@media not (prefers-reduced-motion){.components-animate__slide-in{animation:components-animate__slide-in-animation .1s cubic-bezier(0,0,.2,1);animation-fill-mode:forwards}.components-animate__slide-in.is-from-left{transform:translateX(100%)}.components-animate__slide-in.is-from-right{transform:translateX(-100%)}}@keyframes components-animate__slide-in-animation{to{transform:translateX(0)}}@media not (prefers-reduced-motion){.components-animate__loading{animation:components-animate__loading 1.6s ease-in-out infinite}}@keyframes components-animate__loading{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.components-autocomplete__popover .components-popover__content{min-width:200px;padding:8px}.components-autocomplete__result.components-button{display:flex;font-weight:var(--wpds-typography-font-weight-default,400);height:auto;min-height:36px;position:relative;text-align:left;width:100%}.components-autocomplete__result.components-button:is(:focus,.is-selected):not(:disabled,[aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));box-shadow:none;color:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);outline:none}@media (forced-colors:active){.components-autocomplete__result.components-button:is(:focus,.is-selected):not(:disabled,[aria-disabled=true]){background-color:Highlight;color:HighlightText;forced-color-adjust:none}}.components-autocomplete__result.components-button[aria-disabled=true]:is(:focus,.is-selected){outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));outline-offset:0}.components-badge{box-sizing:border-box}.components-badge *,.components-badge :after,.components-badge :before{box-sizing:inherit}.components-badge{background-color:color-mix(in srgb,#fff 90%,var(--base-color));border-radius:2px;color:color-mix(in srgb,#000 50%,var(--base-color));display:inline-block;line-height:0;max-width:100%;min-height:24px;padding:2px 8px}.components-badge:where(.is-default){background-color:#f0f0f0;color:#2f2f2f}.components-badge.has-icon{padding-inline-start:4px}.components-badge.is-info{--base-color:#3858e9}.components-badge.is-warning{--base-color:#f0b849}.components-badge.is-error{--base-color:#cc1818}.components-badge.is-success{--base-color:#4ab866}.components-badge__flex-wrapper{align-items:center;display:inline-flex;font-size:12px;font-weight:400;gap:2px;line-height:20px;max-width:100%}.components-badge__icon{flex-shrink:0}.components-badge__content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.components-button-group{display:inline-block}.components-button-group .components-button{border-color:var(--wpds-color-stroke-interactive-neutral,#8b8b8b);border-radius:0;display:inline-flex}.components-button-group .components-button+.components-button{margin-left:-1px}.components-button-group .components-button:first-child{border-radius:2px 0 0 2px}.components-button-group .components-button:last-child{border-radius:0 2px 2px 0}.components-button-group .components-button.is-primary,.components-button-group .components-button:focus{position:relative;z-index:1}.components-button{--_wp-components-button-foreground:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));--_wp-components-button-foreground-active:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));--_wp-components-button-foreground-strong:var(--wpds-color-foreground-interactive-brand-strong,#fff);--_wp-components-button-foreground-strong-active:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);--_wp-components-button-foreground-strong-disabled:var(--wpds-color-foreground-interactive-brand-strong-disabled,#8b8b8b);--_wp-components-button-background-strong:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--_wp-components-button-background-strong-active:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));--_wp-components-button-background-strong-disabled:var(--wpds-color-background-interactive-brand-strong-disabled,#e5e5e5);--_wp-components-button-background-weak:var(--wpds-color-background-interactive-neutral-weak,#0000);--_wp-components-button-background-weak-active:var(--wpds-color-background-interactive-neutral-weak-active,#ececec);--_wp-components-button-background-on-active:var(--_wp-components-button-background-weak-active);--_wp-components-button-stroke:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));--_wp-components-button-stroke-active:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 84%,#000));--_wp-components-button-foreground-busy:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.components-button:focus:is(a){box-shadow:none}.components-button:focus{outline:none}.components-button:focus:not(:active){outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-button{align-items:center;appearance:none;background:none;border:1px solid transparent;border-radius:2px;box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:inline-flex;font-family:inherit;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);height:36px;margin:0;padding:4px 12px;text-decoration:none}.components-button.is-next-40px-default-size{height:40px}.components-button:hover:not(:disabled,[aria-disabled=true],[role^=menuitem],[role=option]),.components-button[aria-expanded=true]{color:var(--_wp-components-button-foreground)}.components-button.is-primary{background:var(--_wp-components-button-background-strong);color:var(--_wp-components-button-foreground-strong);text-decoration:none;text-shadow:none;white-space:nowrap}.components-button.is-primary:active:not(:disabled,[aria-disabled=true],.is-pressed),.components-button.is-primary:hover:not(:disabled,[aria-disabled=true],.is-pressed){background-color:var(--_wp-components-button-background-strong-active);color:var(--_wp-components-button-foreground-strong-active)}.components-button.is-primary:disabled,.components-button.is-primary[aria-disabled=true]{background:var(--_wp-components-button-background-strong-disabled);color:var(--_wp-components-button-foreground-strong-disabled)}.components-button.is-primary.is-busy,.components-button.is-primary.is-busy:disabled,.components-button.is-primary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,var(--_wp-components-button-background-strong) 33%,var(--_wp-components-button-background-strong-active) 33%,var(--_wp-components-button-background-strong-active) 70%,var(--_wp-components-button-background-strong) 70%);background-size:100px 100%;color:var(--_wp-components-button-foreground-strong)}.components-button.is-secondary,.components-button.is-tertiary{--_wp-components-button-background-weak:var(--wpds-color-background-interactive-brand-weak,#0000);--_wp-components-button-background-weak-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 13%,#fff));--_wp-components-button-foreground-on-active:var(--_wp-components-button-foreground-active);--_wp-components-button-foreground-busy:var(--_wp-components-button-foreground-active)}.components-button.is-secondary:disabled,.components-button.is-secondary[aria-disabled=true],.components-button.is-tertiary:disabled,.components-button.is-tertiary[aria-disabled=true]{background:transparent;color:var(--wpds-color-foreground-interactive-brand-disabled,#8b8b8b);transform:none}@media not (prefers-reduced-motion){.components-button.is-secondary{transition:border-color .1s linear}}.components-button.is-secondary{background:var(--_wp-components-button-background-weak);border-color:var(--_wp-components-button-stroke);color:var(--_wp-components-button-foreground);white-space:nowrap}.components-button.is-secondary:active:not(:disabled){border-color:transparent}.components-button.is-secondary:hover:not(:disabled,[aria-disabled=true],.is-pressed){background-color:var(--_wp-components-button-background-on-active);border-color:var(--_wp-components-button-stroke-active);color:var(--_wp-components-button-foreground-active)}.components-button.is-secondary:focus:not(:active){border-color:var(--_wp-components-button-stroke)}.components-button.is-secondary:disabled:not(:focus),.components-button.is-secondary[aria-disabled=true]:not(:focus){border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}.components-button.is-tertiary{background:var(--_wp-components-button-background-weak);color:var(--_wp-components-button-foreground);white-space:nowrap}.components-button.is-tertiary:hover:not(:disabled,[aria-disabled=true],.is-pressed){background-color:var(--_wp-components-button-background-on-active);color:var(--_wp-components-button-foreground-active)}.components-button.is-tertiary:active:not(:disabled,[aria-disabled=true],.is-pressed){background-color:var(--_wp-components-button-background-on-active)}p+.components-button.is-tertiary{margin-left:-6px}.components-button.is-destructive{--_wp-components-button-foreground:var(--wpds-color-foreground-interactive-error,#cc1818);--_wp-components-button-foreground-active:var(--wpds-color-foreground-interactive-error-active,#470000);--_wp-components-button-foreground-strong:var(--wpds-color-foreground-interactive-error-strong,#f2efef);--_wp-components-button-foreground-strong-active:var(--wpds-color-foreground-interactive-error-strong-active,#f2efef);--_wp-components-button-foreground-strong-disabled:var(--wpds-color-foreground-interactive-error-strong-disabled,#8b8b8b);--_wp-components-button-background-strong:var(--wpds-color-background-interactive-error-strong,#cc1818);--_wp-components-button-background-strong-active:var(--wpds-color-background-interactive-error-strong-active,#b80000);--_wp-components-button-background-strong-disabled:var(--wpds-color-background-interactive-error-strong-disabled,#e5e5e5);--_wp-components-button-background-weak:var(--wpds-color-background-interactive-error-weak,#0000);--_wp-components-button-background-weak-active:var(--wpds-color-background-interactive-error-weak-active,#fae4e0);--_wp-components-button-stroke:var(--wpds-color-stroke-interactive-error,#cc1818);--_wp-components-button-stroke-active:var(--wpds-color-stroke-interactive-error-active,#9c0000);--_wp-components-button-foreground-on-active:var(--_wp-components-button-foreground-active);--_wp-components-button-foreground-busy:var(--_wp-components-button-foreground-active)}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):not(.is-pressed){color:var(--_wp-components-button-foreground)}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):not(.is-pressed):hover:not(:disabled,[aria-disabled=true]){color:var(--_wp-components-button-foreground-active)}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):not(.is-pressed):active:not(:disabled,[aria-disabled=true]){background-color:var(--wpds-color-background-interactive-error-active,#fff6f5);color:var(--_wp-components-button-foreground-active)}.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):not(.is-pressed):disabled,.components-button.is-destructive:not(.is-primary):not(.is-secondary):not(.is-tertiary):not(.is-link):not(.is-pressed)[aria-disabled=true]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8b8b8b)}.components-button.is-destructive.is-secondary:active:not(:disabled,[aria-disabled=true],.is-pressed){background-color:var(--_wp-components-button-background-on-active)}.components-button.is-link{--_wp-components-button-foreground-busy:var(--_wp-components-button-foreground-active);background:none;border:0;border-radius:0;color:var(--_wp-components-button-foreground);font-weight:var(--wpds-typography-font-weight-default,400);margin:0;outline:none;padding:0;text-align:left;text-decoration:underline;text-decoration-thickness:from-font;text-underline-offset:.2em}@media not (prefers-reduced-motion){.components-button.is-link{transition-duration:.05s;transition-property:border,background,color;transition-timing-function:ease-in-out}}.components-button.is-link{height:auto}.components-button.is-link:focus:not(:active){border-radius:2px;text-decoration:none}.components-button.is-link:disabled,.components-button.is-link[aria-disabled=true]{color:var(--wpds-color-foreground-interactive-brand-disabled,#8b8b8b)}.components-button:not(:disabled,[aria-disabled=true],.is-pressed):active{color:var(--_wp-components-button-foreground-on-active,var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e))}.components-button:disabled,.components-button[aria-disabled=true]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8b8b8b);cursor:default}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{--_wp-components-button-background-on-active:var(--_wp-components-button-background-weak)}.components-button.is-busy:not(.is-primary,.is-pressed),.components-button.is-secondary.is-busy:disabled:not(.is-primary,.is-pressed),.components-button.is-secondary.is-busy:not(.is-primary,.is-pressed),.components-button.is-secondary.is-busy[aria-disabled=true]:not(.is-primary,.is-pressed){color:var(--_wp-components-button-foreground-busy)}@media not (prefers-reduced-motion){.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{animation:components-button__busy-animation 2.5s linear infinite}}.components-button.is-busy,.components-button.is-secondary.is-busy,.components-button.is-secondary.is-busy:disabled,.components-button.is-secondary.is-busy[aria-disabled=true]{background-image:linear-gradient(-45deg,var(--_wp-components-button-background-weak) 33%,var(--_wp-components-button-background-weak-active) 33%,var(--_wp-components-button-background-weak-active) 70%,var(--_wp-components-button-background-weak) 70%);background-size:100px 100%}.components-button.is-compact{height:32px}.components-button.is-compact.has-icon:not(.has-text){min-width:32px;padding:0}.components-button.is-small{font-size:11px;height:var(--wpds-dimension-size-sm,24px);line-height:22px;padding:0 8px}.components-button.is-small.has-icon:not(.has-text){min-width:var(--wpds-dimension-size-sm,24px);padding:0}.components-button.has-icon{justify-content:center;min-width:36px;padding:6px}.components-button.has-icon.is-next-40px-default-size{min-width:40px}.components-button.has-icon .dashicon{align-items:center;box-sizing:content-box;display:inline-flex;justify-content:center;padding:2px}.components-button.has-icon.has-text{gap:4px;justify-content:start;padding-left:8px;padding-right:12px}.components-button.has-icon.has-text.has-icon-right{padding-left:12px;padding-right:8px}.components-button.has-icon:not(.has-text) .dashicon,.components-button.has-icon:not(.has-text) svg{margin-inline:-1px}.components-button.is-pressed{--_wp-components-button-pressed-background:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e)}.components-button.is-pressed,.components-button.is-pressed.is-busy,.components-button.is-pressed:hover{background:var(--_wp-components-button-pressed-background);color:var(--wpds-color-foreground-interactive-neutral-strong-active,#f0f0f0)}.components-button.is-pressed.is-secondary:not(:disabled,[aria-disabled=true]){border-color:var(--wpds-color-stroke-interactive-neutral-active,#6c6c6c)}.components-button.is-pressed:is(:disabled,[aria-disabled=true]){--_wp-components-button-pressed-background:var(--wpds-color-background-interactive-neutral-strong-disabled,#e5e5e5)}.components-button.is-pressed:is(:disabled,[aria-disabled=true]),.components-button.is-pressed:is(:disabled,[aria-disabled=true]).is-busy{background:var(--_wp-components-button-pressed-background);color:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8b8b8b)}.components-button.is-pressed:is(:disabled,[aria-disabled=true]).is-busy{--_wp-components-button-pressed-background:linear-gradient(-45deg,transparent 33%,var(--wpds-color-background-interactive-neutral-disabled,#fff) 33% 70%,transparent 70%) 0 0 /100px 100% var(--wpds-color-background-interactive-neutral-strong-disabled,#e5e5e5)}@media (forced-colors:active){.components-button.is-pressed{background:SelectedItem!important;border-color:ButtonBorder!important;color:SelectedItemText!important;forced-color-adjust:none;outline-color:CanvasText!important}.components-button.is-pressed:disabled,.components-button.is-pressed[aria-disabled=true]{background:GrayText!important;border-color:GrayText!important;color:Canvas!important}}.components-button svg{fill:currentColor;flex-shrink:0;outline:none}@keyframes components-button__busy-animation{0%{background-position:200px 0}}.components-checkbox-control{--checkbox-input-size:16px;--checkbox-input-margin:8px}.components-checkbox-control__label{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);line-height:var(--checkbox-input-size)}.components-checkbox-control:not(:has(:disabled)) .components-checkbox-control__label{cursor:var(--wpds-cursor-control,pointer)}.components-checkbox-control__input[type=checkbox]{border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8b8b8b);border-radius:var(--wpds-border-radius-sm,2px);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px;transition:none}@media (min-width:600px){.components-checkbox-control__input[type=checkbox]{font-size:13px;line-height:normal}}.components-checkbox-control__input[type=checkbox]:hover:not(:disabled,[aria-disabled=true]){border-color:var(--wpds-color-stroke-interactive-neutral-active,#6c6c6c)}.components-checkbox-control__input[type=checkbox]:focus{border-color:var(--wpds-color-stroke-interactive-neutral,#8b8b8b);box-shadow:none;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-checkbox-control__input[type=checkbox]::placeholder{color:rgba(30,30,30,.62)}.components-checkbox-control__input[type=checkbox]:hover:not(:disabled,[aria-disabled=true]){background:var(--wpds-color-background-interactive-neutral-active,#fff)}.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{color:var(--wpds-color-foreground-interactive-brand-strong,#fff);margin:-3px -5px}@media (min-width:782px){.components-checkbox-control__input[type=checkbox]:checked:before,.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{margin:-4px 0 0 -5px}}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9))}.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{content:"\f460";display:inline-block;float:left;font:400 30px/1 dashicons;vertical-align:middle;width:16px;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (min-width:782px){.components-checkbox-control__input[type=checkbox][aria-checked=mixed]:before{float:none;font-size:21px}}.components-checkbox-control__input[type=checkbox]:disabled,.components-checkbox-control__input[type=checkbox][aria-disabled=true]{background:var(--wpds-color-background-interactive-neutral-disabled,#fff);border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8b8b8b);cursor:default;opacity:1}@media (forced-colors:active){.components-checkbox-control__input[type=checkbox]:disabled,.components-checkbox-control__input[type=checkbox][aria-disabled=true]{border-color:GrayText}}.components-checkbox-control__input[type=checkbox]:disabled:checked:before,.components-checkbox-control__input[type=checkbox]:disabled[aria-checked=mixed]:before,.components-checkbox-control__input[type=checkbox][aria-disabled=true]:checked:before,.components-checkbox-control__input[type=checkbox][aria-disabled=true][aria-checked=mixed]:before{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8b8b8b)}.components-checkbox-control__input[type=checkbox]{appearance:none;background:var(--wpds-color-background-interactive-neutral,#fff);clear:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:inline-block;height:var(--checkbox-input-size);line-height:0;margin:0 4px 0 0;outline:0;padding:0!important;position:relative;text-align:center;vertical-align:top;width:var(--checkbox-input-size)}@media not (prefers-reduced-motion){.components-checkbox-control__input[type=checkbox]{transition:border-color .1s ease-in-out}}.components-checkbox-control__input[type=checkbox]:not(:disabled):is(:checked,:indeterminate){background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9))}.components-checkbox-control__input[type=checkbox]:not(:disabled){cursor:var(--wpds-cursor-control,pointer)}.components-checkbox-control__input[type=checkbox]:checked:before{content:none}.components-checkbox-control__input[type=checkbox]:after{aspect-ratio:1;content:"";left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:max(var(--checkbox-input-size),24px)}.components-checkbox-control__input-container{aspect-ratio:1;display:inline-block;flex-shrink:0;line-height:1;margin-right:var(--checkbox-input-margin);position:relative;vertical-align:middle;width:var(--checkbox-input-size)}svg.components-checkbox-control__checked,svg.components-checkbox-control__indeterminate{color:var(--wpds-color-foreground-interactive-brand-strong,#fff);cursor:var(--wpds-cursor-control,pointer);forced-color-adjust:auto;height:var(--checkbox-input-size);left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);-webkit-user-select:none;user-select:none;width:var(--checkbox-input-size)}.components-checkbox-control:has(:disabled) svg.components-checkbox-control__checked,.components-checkbox-control:has(:disabled) svg.components-checkbox-control__indeterminate{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8b8b8b)}@media (forced-colors:active){.components-checkbox-control:has(:disabled) svg.components-checkbox-control__checked,.components-checkbox-control:has(:disabled) svg.components-checkbox-control__indeterminate{color:GrayText}}.components-checkbox-control__help{display:inline-block;margin-inline-start:calc(var(--checkbox-input-size) + var(--checkbox-input-margin))}.components-circular-option-picker{display:inline-block;isolation:isolate;min-width:188px;width:100%}.components-circular-option-picker .components-circular-option-picker__custom-clear-wrapper{display:flex;justify-content:flex-end;margin-top:12px}.components-circular-option-picker .components-circular-option-picker__swatches{display:flex;flex-wrap:wrap;gap:12px;position:relative;z-index:1}.components-circular-option-picker>:not(.components-circular-option-picker__swatches){position:relative;z-index:0}.components-circular-option-picker__option-wrapper{display:inline-block;height:28px;transform:scale(1);vertical-align:top;width:28px}@media not (prefers-reduced-motion){.components-circular-option-picker__option-wrapper{transition:transform .1s ease-out;will-change:transform}}.components-circular-option-picker__option-wrapper:hover{transform:scale(1.1)}.components-circular-option-picker__option-wrapper>div{height:100%;width:100%}.components-circular-option-picker__option-wrapper:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' fill='none'%3E%3Cpath fill='%23555d65' d='M6 8V6H4v2zm2 0V6h2v2zm2 8H8v-2h2zm2 0v-2h2v2zm0 2v-2h-2v2H8v2h2v-2zm2 0v2h-2v-2zm2 0h-2v-2h2z'/%3E%3Cpath fill='%23555d65' fill-rule='evenodd' d='M18 18h2v-2h-2v-2h2v-2h-2v-2h2V8h-2v2h-2V8h-2v2h2v2h-2v2h2v2h2zm-2-4v-2h2v2z' clip-rule='evenodd'/%3E%3Cpath fill='%23555d65' d='M18 18v2h-2v-2z'/%3E%3Cpath fill='%23555d65' fill-rule='evenodd' d='M8 10V8H6v2H4v2h2v2H4v2h2v2H4v2h2v2H4v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2V4h-2v2h-2V4h-2v2h-2V4h-2v2h2v2h-2v2zm0 2v-2H6v2zm2 0v-2h2v2zm0 2v-2H8v2H6v2h2v2H6v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h-2v2h-2V6h-2v2h-2v2h2v2h-2v2z' clip-rule='evenodd'/%3E%3Cpath fill='%23555d65' fill-rule='evenodd' d='M4 0H2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v2H0v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2h-2V0h-2v2H8V0H6v2H4zm0 4V2H2v2zm2 0V2h2v2zm0 2V4H4v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2H2v2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h2v2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2h-2V2h-2v2H8v2z' clip-rule='evenodd'/%3E%3C/svg%3E");border-radius:50%;content:"";inset:1px;position:absolute;z-index:-1}.components-circular-option-picker__option{aspect-ratio:1;background:transparent;border:none;border-radius:50%;box-shadow:inset 0 0 0 14px;display:inline-block;height:100%!important;vertical-align:top}@media not (prefers-reduced-motion){.components-circular-option-picker__option{transition:box-shadow .1s ease}}.components-circular-option-picker__option{cursor:var(--wpds-cursor-control,pointer)}.components-circular-option-picker__option[aria-pressed=true],.components-circular-option-picker__option[aria-selected=true]{overflow:visible;position:relative;z-index:1}.components-circular-option-picker__option[aria-pressed=true]+svg,.components-circular-option-picker__option[aria-selected=true]+svg{border-radius:50%;left:2px;pointer-events:none;position:absolute;top:2px;z-index:2}@media (forced-colors:active){.components-circular-option-picker__option[aria-pressed=true]+svg,.components-circular-option-picker__option[aria-selected=true]+svg{color:CanvasText}.components-circular-option-picker__option.components-button.is-pressed{background:Canvas!important;color:ButtonText!important;forced-color-adjust:auto}}.components-circular-option-picker__option:after{border:1px solid transparent;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);content:"";inset:-1px;position:absolute}.components-circular-option-picker__button-action .components-circular-option-picker__option{background:#fff;color:#fff}.components-circular-option-picker__dropdown-link-action{margin-right:16px}.components-circular-option-picker__dropdown-link-action .components-button{line-height:22px}.components-palette-edit__popover-duotone-picker,.components-palette-edit__popover-gradient-picker{padding:8px;width:260px}.component-color-indicator{background:#fff linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);display:inline-block;height:20px;padding:0;width:20px}.components-combobox-control{width:100%}input.components-combobox-control__input[type=text]{background:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:none;box-shadow:none;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-family:inherit;font-size:16px;line-height:inherit;margin:0;min-height:auto;padding:2px;width:100%}@media (min-width:600px){input.components-combobox-control__input[type=text]{font-size:13px}}input.components-combobox-control__input[type=text]:focus{box-shadow:none;outline:none}.components-combobox-control__suggestions-container{border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8b8b8b);border-radius:var(--wpds-border-radius-sm,2px);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px}@media (min-width:600px){.components-combobox-control__suggestions-container{font-size:13px;line-height:normal}}.components-combobox-control__suggestions-container:hover:not(:disabled,[aria-disabled=true]){border-color:var(--wpds-color-stroke-interactive-neutral-active,#6c6c6c)}.components-combobox-control__suggestions-container:focus{border-color:var(--wpds-color-stroke-interactive-neutral,#8b8b8b);box-shadow:none;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-combobox-control__suggestions-container::placeholder{color:rgba(30,30,30,.62)}.components-combobox-control__suggestions-container{align-items:flex-start;display:flex;flex-wrap:wrap;padding:0;width:100%}.components-combobox-control__suggestions-container:focus-within{outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-combobox-control__suggestions-container .components-spinner{margin:0}.components-color-palette__custom-color-wrapper{position:relative;z-index:0}.components-color-palette__custom-color-button{background:none;border:none;border-radius:4px 4px 0 0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);box-sizing:border-box;cursor:var(--wpds-cursor-control,pointer);height:64px;outline:1px solid transparent;position:relative;width:100%}.components-color-palette__custom-color-button:focus:not(:active){outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-color-palette__custom-color-button:after{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,24px 24px;background-size:48px 48px;border-radius:3px 3px 0 0;content:"";inset:1px;position:absolute;z-index:-1}.components-color-palette__custom-color-text-wrapper{border-radius:0 0 4px 4px;box-shadow:inset 0 -1px 0 0 rgba(0,0,0,.2),inset 1px 0 0 0 rgba(0,0,0,.2),inset -1px 0 0 0 rgba(0,0,0,.2);font-size:13px;padding:12px 16px;position:relative}.components-color-palette__custom-color-name{color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));margin:0 1px}.components-color-palette__custom-color-value{color:#757575}.components-color-palette__custom-color-value--is-hex{text-transform:uppercase}.components-color-palette__custom-color-value:empty:after{content:"​";visibility:hidden}.components-custom-gradient-picker__gradient-bar{border-radius:2px;height:48px;position:relative;width:100%;z-index:1}.components-custom-gradient-picker__gradient-bar.has-gradient{background-image:repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0),repeating-linear-gradient(45deg,#e0e0e0 25%,transparent 0,transparent 75%,#e0e0e0 0,#e0e0e0);background-position:0 0,12px 12px;background-size:24px 24px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__gradient-bar-background{inset:0;position:absolute}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__markers-container{margin-left:auto;margin-right:auto;position:relative;width:calc(100% - 48px)}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-dropdown{display:flex;height:16px;position:absolute;top:16px;width:16px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:before,.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown:before{content:"";inset:-16px 0;position:absolute}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown{background:#fff;border-radius:50%;color:#1e1e1e;height:inherit;min-width:16px!important;padding:2px;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point-dropdown svg{height:100%;width:100%}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 2px 0 rgba(0,0,0,.25);height:inherit;padding:0;width:inherit}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button.is-active{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2) #fff,0 0 2px 0 rgba(0,0,0,.25)}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus:not(:active){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 2px 0 rgba(0,0,0,.25),0 0 0 calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) + 2px) var(--wpds-color-background-surface-neutral-strong,#fff);outline-offset:1px}.components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button:focus:not(:active).is-active{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2) #fff,0 0 2px 0 rgba(0,0,0,.25),0 0 0 calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px)) + 2px) var(--wpds-color-background-surface-neutral-strong,#fff)}.components-custom-gradient-picker__remove-control-point-wrapper{padding-bottom:8px}.components-custom-gradient-picker__inserter{direction:ltr}.components-custom-gradient-picker__liner-gradient-indicator{display:inline-block;flex:0 auto;height:20px;width:20px}.components-custom-gradient-picker__ui-line{position:relative;z-index:0}.components-drop-zone{border-radius:2px;bottom:0;left:0;opacity:0;position:absolute;right:0;top:0;visibility:hidden;z-index:40}.components-drop-zone.is-active{opacity:1;visibility:visible}.components-drop-zone .components-drop-zone__content{align-items:center;background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));bottom:0;color:#fff;display:flex;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:absolute;right:0;text-align:center;top:0;width:100%;z-index:50}.components-drop-zone .components-drop-zone__content-inner{opacity:0;transform:scale(.9)}.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content{opacity:1}@media not (prefers-reduced-motion){.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content{transition:opacity .2s ease-in-out}}.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content-inner{opacity:1;transform:scale(1)}@media not (prefers-reduced-motion){.components-drop-zone.is-active.is-dragging-over-element .components-drop-zone__content-inner{transition:opacity .1s ease-in-out .1s,transform .1s ease-in-out .1s}}.components-drop-zone__content-icon,.components-drop-zone__content-text{display:block}.components-drop-zone__content-icon{fill:currentColor;line-height:0;margin:0 auto 8px;pointer-events:none}.components-drop-zone__content-text{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-dropdown{display:inline-block}.components-dropdown__content .components-button[role^=menuitem][aria-disabled=true]:focus:not(:focus-visible){outline:none}.components-dropdown__content .components-button[role^=menuitem]:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000))!important;box-shadow:none;color:var(--wpds-color-foreground-interactive-brand-strong-active,#fff)!important;outline:none}@media (forced-colors:active){.components-dropdown__content .components-button[role^=menuitem]:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]){background-color:Highlight!important;color:HighlightText!important;forced-color-adjust:none}}.components-dropdown__content .components-button[role^=menuitem]:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]) .components-menu-item__info{color:inherit}.components-dropdown__content .components-button[role^=menuitem][aria-expanded=true]:not(:focus,[aria-selected=true],:disabled,[aria-disabled=true]){background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ececec)!important;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)!important;outline:none}@media (forced-colors:active){.components-dropdown__content .components-button[role^=menuitem][aria-expanded=true]:not(:focus,[aria-selected=true],:disabled,[aria-disabled=true]){outline:var(--wpds-border-width-xs,1px) solid GrayText;outline-offset:0}}.components-dropdown__content .components-button[role^=menuitem][aria-expanded=true]:not(:focus,[aria-selected=true],:disabled,[aria-disabled=true]) .components-menu-item__info{color:inherit}.components-dropdown__content .components-popover__content{padding:8px}.components-dropdown__content .components-popover__content:has(.components-menu-group){padding:0}.components-dropdown__content .components-popover__content:has(.components-menu-group) .components-dropdown-menu__menu>.components-menu-item__button,.components-dropdown__content .components-popover__content:has(.components-menu-group)>.components-menu-item__button{margin:8px;width:auto}.components-dropdown__content [role=menuitem]{white-space:nowrap}.components-dropdown__content .components-menu-group{padding:8px}.components-dropdown__content .components-menu-group+.components-menu-group{border-top:1px solid #ccc;padding:8px}.components-dropdown__content.is-alternate .components-menu-group+.components-menu-group{border-color:#1e1e1e}.components-dropdown-menu__toggle{vertical-align:top}.components-dropdown-menu__menu{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:1.4;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item,.components-dropdown-menu__menu .components-menu-item{cursor:var(--wpds-cursor-control,pointer);font-weight:var(--wpds-typography-font-weight-default,400);outline:none;padding:6px;white-space:nowrap;width:100%}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator,.components-dropdown-menu__menu .components-menu-item.has-separator{margin-top:6px;overflow:visible;position:relative}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.has-separator:before,.components-dropdown-menu__menu .components-menu-item.has-separator:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:content-box;content:"";display:block;height:1px;left:0;position:absolute;right:0;top:-3px}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active .dashicon,.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active svg,.components-dropdown-menu__menu .components-menu-item.is-active .dashicon,.components-dropdown-menu__menu .components-menu-item.is-active svg{background:#1e1e1e;border-radius:1px;box-shadow:0 0 0 1px #1e1e1e;color:#fff;transition:none}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]) .dashicon,.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]) svg,.components-dropdown-menu__menu .components-menu-item.is-active:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]) .dashicon,.components-dropdown-menu__menu .components-menu-item.is-active:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]) svg{background:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);box-shadow:0 0 0 1px var(--wpds-color-foreground-interactive-brand-strong-active,#fff);color:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000))}@media (forced-colors:active){.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]) .dashicon,.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-active:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]) svg,.components-dropdown-menu__menu .components-menu-item.is-active:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]) .dashicon,.components-dropdown-menu__menu .components-menu-item.is-active:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]) svg{background:HighlightText;box-shadow:0 0 0 1px HighlightText;color:Highlight}}.components-dropdown-menu__menu .components-dropdown-menu__menu-item.is-icon-only,.components-dropdown-menu__menu .components-menu-item.is-icon-only{width:auto}.components-dropdown-menu__menu .components-menu-item__button,.components-dropdown-menu__menu .components-menu-item__button.components-button{height:auto;min-height:32px;padding:3px 8px;text-align:left}.components-dropdown-menu__menu .components-menu-item__button.components-button.has-icon,.components-dropdown-menu__menu .components-menu-item__button.has-icon{padding-bottom:5px;padding-top:5px}.components-duotone-picker__color-indicator:before{background:transparent}.components-duotone-picker__color-indicator>.components-button,.components-duotone-picker__color-indicator>.components-button.is-pressed:hover:not(:disabled){background:linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);color:transparent}.components-duotone-picker__color-indicator>.components-button:hover:not(:disabled):not([aria-disabled=true]),.components-duotone-picker__color-indicator>.components-button:not([aria-disabled=true]):active{color:transparent}.components-color-list-picker,.components-color-list-picker__swatch-button{width:100%}.components-color-list-picker__color-picker{margin:8px 0}.components-color-list-picker__swatch-color{margin:2px}.components-external-link{border-radius:var(--wpds-border-radius-sm,2px);text-decoration:none}.components-external-link,.components-external-link:visited{color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.components-external-link:active,.components-external-link:hover{color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}.components-external-link:focus{border-radius:var(--wpds-border-radius-sm,2px);box-shadow:none}.components-external-link:focus:not(:active){outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-external-link__contents{text-decoration:underline;text-decoration-thickness:from-font;text-underline-offset:.2em}.components-external-link__icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px)}.components-form-toggle{display:inline-block;height:16px;isolation:isolate;position:relative}.components-form-toggle .components-form-toggle__track{background-color:var(--wpds-color-background-track-neutral,#dbdbdb);border:1px solid var(--wpds-color-stroke-interactive-neutral,#8b8b8b);border-radius:8px;box-sizing:border-box;content:"";display:inline-block;height:16px;vertical-align:top;width:32px}@media not (prefers-reduced-motion){.components-form-toggle .components-form-toggle__track{transition:border-color .2s ease}}.components-form-toggle .components-form-toggle__labels{border-radius:8px;height:16px;inset-inline-start:0;overflow:hidden;pointer-events:none;position:absolute;top:0;width:32px}.components-form-toggle .components-form-toggle__labels:before{background-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));bottom:0;content:"";inset-inline-start:-22px;position:absolute;top:0;width:32px}@media not (prefers-reduced-motion){.components-form-toggle .components-form-toggle__labels:before{transition:inset-inline-start .2s ease}}@media (forced-colors:active){.components-form-toggle .components-form-toggle__labels:before{background-color:Highlight}}.components-form-toggle .components-form-toggle__thumb{background-color:var(--wpds-color-background-thumb-neutral,#f0f0f0);border:1px solid var(--wpds-color-stroke-interactive-neutral,#8b8b8b);border-radius:8px;box-shadow:0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01);box-sizing:border-box;display:block;height:16px;inset-inline-start:0;position:absolute;top:0;width:20px}@media not (prefers-reduced-motion){.components-form-toggle .components-form-toggle__thumb{transition:inset-inline-start .2s ease,border-color .2s ease}}@media (forced-colors:active){.components-form-toggle .components-form-toggle__thumb{background-color:Canvas;border-color:CanvasText}}.components-form-toggle svg.components-form-toggle__label{bottom:0;forced-color-adjust:auto;height:8px;margin:auto 0;position:absolute;top:0;width:8px}@media not (prefers-reduced-motion){.components-form-toggle svg.components-form-toggle__label{transition:inset-inline-start .2s ease,inset-inline-end .2s ease}}.components-form-toggle svg.components-form-toggle__on-label{color:var(--wpds-color-foreground-interactive-brand-strong,#fff);inset-inline-start:-9px}@media (forced-colors:active){.components-form-toggle svg.components-form-toggle__on-label{color:HighlightText}}.components-form-toggle svg.components-form-toggle__off-label{color:var(--wpds-color-foreground-interactive-neutral-weak,#6e6e6e);inset-inline-end:3px}@media (forced-colors:active){.components-form-toggle svg.components-form-toggle__off-label{color:CanvasText}}.components-form-toggle :where(.components-form-toggle__input:not(:checked,:disabled):hover)~.components-form-toggle__thumb,.components-form-toggle :where(.components-form-toggle__input:not(:checked,:disabled):hover)~.components-form-toggle__track{border-color:var(--wpds-color-stroke-interactive-neutral-active,#6c6c6c)}.components-form-toggle .components-form-toggle__input:focus+.components-form-toggle__track{outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-form-toggle :where(.components-form-toggle__input:checked)~.components-form-toggle__track{border-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9))}@media (forced-colors:active){.components-form-toggle :where(.components-form-toggle__input:checked)~.components-form-toggle__track{border-color:Highlight}}.components-form-toggle :where(.components-form-toggle__input:checked)~.components-form-toggle__labels:before{inset-inline-start:-10px}.components-form-toggle :where(.components-form-toggle__input:checked)~.components-form-toggle__thumb{background-color:var(--wpds-color-background-thumb-brand-strong,#fff);border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));inset-inline-start:12px}@media (forced-colors:active){.components-form-toggle :where(.components-form-toggle__input:checked)~.components-form-toggle__thumb{border-color:Highlight}}.components-form-toggle :where(.components-form-toggle__input:checked)~.components-form-toggle__labels svg.components-form-toggle__on-label{inset-inline-start:3px}.components-form-toggle :where(.components-form-toggle__input:checked)~.components-form-toggle__labels svg.components-form-toggle__off-label{inset-inline-end:-9px}.components-form-toggle.is-disabled .components-form-toggle__track,[inert] .components-form-toggle .components-form-toggle__track{background-color:var(--wpds-color-background-track-neutral-disabled,#e5e5e5);border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}@media (forced-colors:active){.components-form-toggle.is-disabled .components-form-toggle__track,[inert] .components-form-toggle .components-form-toggle__track{border-color:GrayText}}.components-form-toggle.is-disabled .components-form-toggle__labels:before,[inert] .components-form-toggle .components-form-toggle__labels:before{display:none}.components-form-toggle.is-disabled .components-form-toggle__thumb,[inert] .components-form-toggle .components-form-toggle__thumb{background-color:var(--wpds-color-background-thumb-neutral-disabled,#f0f0f0);border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);box-shadow:none}@media (forced-colors:active){.components-form-toggle.is-disabled .components-form-toggle__thumb,[inert] .components-form-toggle .components-form-toggle__thumb{border-color:GrayText}}.components-form-toggle.is-disabled svg.components-form-toggle__label,[inert] .components-form-toggle svg.components-form-toggle__label{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8b8b8b)}@media (forced-colors:active){.components-form-toggle.is-disabled svg.components-form-toggle__label,[inert] .components-form-toggle svg.components-form-toggle__label{color:GrayText}}.components-form-toggle input.components-form-toggle__input[type=checkbox]{border:none;height:100%;left:0;margin:0;opacity:0;padding:0;position:absolute;top:0;width:100%;z-index:1}.components-form-toggle input.components-form-toggle__input[type=checkbox]:checked{background:none}.components-form-toggle input.components-form-toggle__input[type=checkbox]:before{content:""}.components-form-toggle input.components-form-toggle__input[type=checkbox]:not(:disabled,[aria-disabled=true]){cursor:var(--wpds-cursor-control,pointer)}.components-form-token-field__input-container{border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8b8b8b);border-radius:var(--wpds-border-radius-sm,2px);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px}@media (min-width:600px){.components-form-token-field__input-container{font-size:13px;line-height:normal}}.components-form-token-field__input-container:hover:not(:disabled,[aria-disabled=true]){border-color:var(--wpds-color-stroke-interactive-neutral-active,#6c6c6c)}.components-form-token-field__input-container:focus{border-color:var(--wpds-color-stroke-interactive-neutral,#8b8b8b);box-shadow:none;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-form-token-field__input-container::placeholder{color:rgba(30,30,30,.62)}.components-form-token-field__input-container{cursor:text;padding:0;width:100%}.components-form-token-field__input-container.is-disabled{background:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));cursor:default}.components-form-token-field__input-container.is-disabled,.components-form-token-field__input-container.is-disabled:hover{border-color:var(--wp-components-color-gray-400,var(--wpds-color-stroke-interactive-neutral,#8b8b8b))}.components-form-token-field__input-container.is-active{outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-form-token-field__input-container input[type=text].components-form-token-field__input{background:inherit;border:0;box-shadow:none;color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:inline-block;flex:1;font-family:inherit;font-size:16px;line-height:1;margin-left:4px;max-width:100%;min-height:24px;min-width:50px;padding:0;width:100%}@media (min-width:600px){.components-form-token-field__input-container input[type=text].components-form-token-field__input{font-size:13px}}.components-form-token-field.is-active .components-form-token-field__input-container input[type=text].components-form-token-field__input,.components-form-token-field__input-container input[type=text].components-form-token-field__input:focus{box-shadow:none;outline:none}.components-form-token-field__input-container .components-form-token-field__token+input[type=text].components-form-token-field__input{width:auto}.components-form-token-field__token{color:#1e1e1e;display:flex;font-size:13px;max-width:100%}.components-form-token-field__token.is-success .components-form-token-field__remove-token,.components-form-token-field__token.is-success .components-form-token-field__token-text{background:#4ab866}.components-form-token-field__token.is-error .components-form-token-field__remove-token,.components-form-token-field__token.is-error .components-form-token-field__token-text{background:#cc1818}.components-form-token-field__token.is-validating .components-form-token-field__remove-token,.components-form-token-field__token.is-validating .components-form-token-field__token-text{color:#757575}.components-form-token-field__token.is-disabled .components-form-token-field__remove-token.components-button,.components-form-token-field__token.is-disabled .components-form-token-field__token-text{background:var(--wp-components-color-gray-100,var(--wpds-color-background-surface-neutral,#fcfcfc));color:var(--wp-components-color-gray-600,var(--wpds-color-stroke-interactive-neutral,#8b8b8b))}.components-form-token-field__token.is-borderless{padding:0 24px 0 0;position:relative}.components-form-token-field__token.is-borderless .components-form-token-field__token-text{background:transparent}.components-form-token-field__token.is-borderless:not(.is-disabled) .components-form-token-field__token-text{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-form-token-field__token.is-borderless .components-form-token-field__remove-token{background:transparent;color:#757575;position:absolute;right:0;top:1px}.components-form-token-field__token.is-borderless.is-success .components-form-token-field__token-text{color:#4ab866}.components-form-token-field__token.is-borderless.is-error .components-form-token-field__token-text{color:#cc1818;padding:0 4px 0 6px}.components-form-token-field__token.is-borderless.is-validating .components-form-token-field__token-text{color:#1e1e1e}.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{background:#ddd;display:inline-block;height:auto;min-width:unset}@media not (prefers-reduced-motion){.components-form-token-field__remove-token.components-button,.components-form-token-field__token-text{transition:all .2s cubic-bezier(.4,1,.4,1)}}.components-form-token-field__token-text{border-radius:1px 0 0 1px;line-height:24px;overflow:hidden;padding:0 0 0 8px;text-overflow:ellipsis;white-space:nowrap}.components-form-token-field__remove-token.components-button{border-radius:0 1px 1px 0;color:#1e1e1e;line-height:10px;overflow:initial}.components-form-token-field__remove-token.components-button:hover:not(:disabled){color:#1e1e1e}.components-form-token-field__suggestions-list{flex:1 0 100%;max-height:128px;min-width:100%;overflow-y:auto}@media not (prefers-reduced-motion){.components-form-token-field__suggestions-list{transition:all .15s ease-in-out}}.components-form-token-field__suggestions-list{box-shadow:inset 0 1px 0 0 #949494;list-style:none;margin:0;padding:0}.components-form-token-field__suggestion{box-sizing:border-box;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);display:block;font-size:13px;margin:0;min-height:32px;padding:8px 12px}.components-form-token-field__suggestion.is-selected:not([aria-disabled=true],.is-empty){background-color:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));box-shadow:none;color:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);outline:none}@media (forced-colors:active){.components-form-token-field__suggestion.is-selected:not([aria-disabled=true],.is-empty){background-color:Highlight;color:HighlightText;forced-color-adjust:none}}.components-form-token-field__suggestion[aria-disabled=true]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8b8b8b);pointer-events:none}.components-form-token-field__suggestion[aria-disabled=true].is-selected{background:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));outline-offset:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1)}.components-form-token-field__suggestion:not(.is-empty){cursor:var(--wpds-cursor-control,pointer)}@media (min-width:600px){.components-guide{width:600px}}.components-guide .components-modal__content{margin-top:0;padding:0}.components-guide .components-modal__content:before{content:none}.components-guide .components-modal__header{border-bottom:none;height:64px;padding:0;position:sticky}.components-guide .components-modal__header .components-button{align-self:flex-start;margin:8px 8px 0 0;position:static}.components-guide .components-guide__container{display:flex;flex-direction:column;justify-content:space-between;margin-top:-64px;min-height:100%}.components-guide .components-guide__page{display:flex;flex-direction:column;justify-content:center;position:relative}@media (min-width:600px){.components-guide .components-guide__page{min-height:300px}}.components-guide .components-guide__footer{align-content:center;display:flex;height:36px;justify-content:center;margin:0 0 24px;padding:0 24px;position:relative;width:100%}.components-guide .components-guide__page-control{margin:0;text-align:center}.components-guide .components-guide__page-control li{display:inline-block;margin:0}.components-guide .components-guide__page-control .components-button{color:#e0e0e0;margin:-6px 0}.components-guide .components-guide__page-control li[aria-current=step] .components-button{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-modal__frame.components-guide{border:none;max-height:575px;min-width:312px}@media (max-width:600px){.components-modal__frame.components-guide{margin:auto;max-width:calc(100vw - 32px)}}.components-button.components-guide__back-button,.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{position:absolute}.components-button.components-guide__back-button{left:24px}.components-button.components-guide__finish-button,.components-button.components-guide__forward-button{right:24px}[role=region]{position:relative}[role=region].interface-interface-skeleton__content:focus-visible:after{bottom:0;box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1) + .5px) hsla(0,0%,100%,.7);content:"";left:0;outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1));pointer-events:none;position:absolute;right:0;top:0;z-index:1000000}.is-focusing-regions [role=region]:focus:after{bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1000000}.is-focusing-regions .interface-interface-skeleton__actions:focus .editor-layout__toggle-entities-saved-states-panel,.is-focusing-regions .interface-interface-skeleton__actions:focus .editor-layout__toggle-publish-panel,.is-focusing-regions .interface-interface-skeleton__actions:focus .editor-post-publish-panel,.is-focusing-regions .interface-interface-skeleton__sidebar .editor-layout__toggle-sidebar-panel,.is-focusing-regions [role=region]:focus:after,.is-focusing-regions.is-distraction-free .interface-interface-skeleton__header .edit-post-header{box-shadow:inset 0 0 0 calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1) + .5px) hsla(0,0%,100%,.7);outline-color:var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2/var(--wp-block-editor-iframe-zoom-out-scale, 1));outline-style:solid;outline-width:calc(var(--wp-admin-border-width-focus)*2/var(--wp-block-editor-iframe-zoom-out-scale, 1))}.components-input-control__container:focus-within:not(:has(:is(.components-input-control__prefix,.components-input-control__suffix):focus-within)) .components-input-control__backdrop{outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-menu-group+.components-menu-group{border-top:1px solid #1e1e1e;padding-top:8px}.components-menu-group+.components-menu-group.has-hidden-separator{border-top:none;margin-top:0;padding-top:0}.components-menu-group:has(>div:empty){display:none}.components-menu-group__label{color:#757575;font-size:11px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin-bottom:12px;margin-top:4px;padding:0 8px;text-transform:uppercase;white-space:nowrap}.components-menu-item__button.components-button[aria-disabled=true]:focus:not(:focus-visible),.components-menu-item__button[aria-disabled=true]:focus:not(:focus-visible){outline:none}.components-menu-item__button.components-button:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]),.components-menu-item__button:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]){background-color:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000))!important;box-shadow:none;color:var(--wpds-color-foreground-interactive-brand-strong-active,#fff)!important;outline:none}@media (forced-colors:active){.components-menu-item__button.components-button:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]),.components-menu-item__button:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]){background-color:Highlight!important;color:HighlightText!important;forced-color-adjust:none}}.components-menu-item__button.components-button:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]) .components-menu-item__info,.components-menu-item__button:is(:focus,[aria-selected=true]):not(:disabled,[aria-disabled=true]) .components-menu-item__info{color:inherit}.components-menu-item__button.components-button[aria-expanded=true]:not(:focus,[aria-selected=true],:disabled,[aria-disabled=true]),.components-menu-item__button[aria-expanded=true]:not(:focus,[aria-selected=true],:disabled,[aria-disabled=true]){background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ececec)!important;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)!important;outline:none}@media (forced-colors:active){.components-menu-item__button.components-button[aria-expanded=true]:not(:focus,[aria-selected=true],:disabled,[aria-disabled=true]),.components-menu-item__button[aria-expanded=true]:not(:focus,[aria-selected=true],:disabled,[aria-disabled=true]){outline:var(--wpds-border-width-xs,1px) solid GrayText;outline-offset:0}}.components-menu-item__button.components-button[aria-expanded=true]:not(:focus,[aria-selected=true],:disabled,[aria-disabled=true]) .components-menu-item__info,.components-menu-item__button[aria-expanded=true]:not(:focus,[aria-selected=true],:disabled,[aria-disabled=true]) .components-menu-item__info{color:inherit}.components-menu-item__button,.components-menu-item__button.components-button{font-weight:var(--wpds-typography-font-weight-default,400);width:100%}.components-menu-item__button.components-button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button.components-button[role=menuitemradio] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemcheckbox] .components-menu-item__item:only-child,.components-menu-item__button[role=menuitemradio] .components-menu-item__item:only-child{box-sizing:initial;padding-right:46px}.components-menu-item__button .components-menu-items__item-icon,.components-menu-item__button.components-button .components-menu-items__item-icon{display:inline-block;flex:0 0 auto}.components-menu-item__button .components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-items__item-icon.has-icon-right{margin-left:24px;margin-right:-2px}.components-menu-item__button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right,.components-menu-item__button.components-button .components-menu-item__shortcut+.components-menu-items__item-icon.has-icon-right{margin-left:8px}.components-menu-item__button .block-editor-block-icon,.components-menu-item__button.components-button .block-editor-block-icon{margin-left:-2px;margin-right:8px}.components-menu-item__button.components-button.is-primary,.components-menu-item__button.is-primary{justify-content:center}.components-menu-item__button.components-button.is-primary .components-menu-item__item,.components-menu-item__button.is-primary .components-menu-item__item{margin-right:0}.components-menu-item__button.components-button:disabled.is-tertiary,.components-menu-item__button.components-button[aria-disabled=true].is-tertiary,.components-menu-item__button:disabled.is-tertiary,.components-menu-item__button[aria-disabled=true].is-tertiary{background:none;color:var(--wp-components-color-accent-darker-10,var(--wp-admin-theme-color-darker-10,#2145e6));opacity:.3}.components-menu-item__info-wrapper{display:flex;flex-direction:column;margin-right:auto}.components-menu-item__info{color:var(--wpds-color-foreground-content-neutral-weak,#6e6e6e);font-size:12px;margin-top:4px;white-space:normal}.components-menu-item__item{align-items:center;display:inline-flex;margin-right:auto;min-width:160px;white-space:nowrap}.components-menu-item__shortcut{align-self:center;color:currentColor;display:none;margin-left:auto;margin-right:0;padding-left:24px}@media (min-width:480px){.components-menu-item__shortcut{display:inline}}.components-menu-items-choice,.components-menu-items-choice.components-button{height:auto;min-height:40px}.components-menu-items-choice svg,.components-menu-items-choice.components-button svg{margin-right:12px}.components-menu-items-choice.components-button.has-icon,.components-menu-items-choice.has-icon{padding-left:12px}body.modal-open{overflow:hidden}.components-modal__screen-overlay{background-color:rgba(0,0,0,.35);bottom:0;display:flex;left:0;position:fixed;right:0;top:0;z-index:100000}@keyframes __wp-base-styles-fade-in{0%{opacity:0}to{opacity:1}}@media not (prefers-reduced-motion){.components-modal__screen-overlay{animation:__wp-base-styles-fade-in var(--wpds-motion-duration-sm,.1s) var(--wpds-motion-easing-subtle,cubic-bezier(.15,0,.15,1)) 0s;animation-fill-mode:forwards}}@keyframes __wp-base-styles-fade-out{0%{opacity:1}to{opacity:0}}@media not (prefers-reduced-motion){.components-modal__screen-overlay.is-animating-out{animation:__wp-base-styles-fade-out var(--wpds-motion-duration-sm,.1s) var(--wpds-motion-easing-subtle,cubic-bezier(.15,0,.15,1)) var(--wpds-motion-duration-xs,50ms);animation-fill-mode:forwards}}.components-modal__frame{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before{box-sizing:inherit}.components-modal__frame{align-self:flex-end;background:var(--wpds-color-background-surface-neutral-strong,#fff);box-shadow:0 5px 15px rgba(0,0,0,.08),0 15px 27px rgba(0,0,0,.07),0 30px 36px rgba(0,0,0,.04),0 50px 43px rgba(0,0,0,.02);margin:0;max-height:calc(100% - var(--wpds-dimension-gap-3xl, 40px));width:100%}@media (forced-colors:active){.components-modal__frame{outline:var(--wpds-border-width-xs,1px) solid CanvasText}}.components-modal__frame{animation-fill-mode:forwards;animation-name:components-modal__appear-animation;animation-timing-function:var(--wpds-motion-easing-expressive,cubic-bezier(.25,0,0,1));border-radius:var(--wpds-border-radius-lg,8px) var(--wpds-border-radius-lg,8px) 0 0;display:flex;overflow:hidden}.components-modal__frame,.components-modal__frame h1,.components-modal__frame h2,.components-modal__frame h3{color:var(--wpds-color-foreground-content-neutral,#1e1e1e)}@media not (prefers-reduced-motion){.components-modal__frame{animation-duration:var(--wpds-motion-duration-md,.2s)}}.components-modal__screen-overlay.is-animating-out .components-modal__frame{animation-name:components-modal__disappear-animation;animation-timing-function:var(--wpds-motion-easing-expressive,cubic-bezier(.25,0,0,1))}@media (min-width:600px){.components-modal__frame{align-self:auto;border-radius:var(--wpds-border-radius-lg,8px);margin:auto;max-height:calc(100% - 128px);max-width:calc(100% - var(--wpds-dimension-gap-lg, 16px)*2);min-width:var(--wpds-dimension-surface-width-sm,320px);width:auto}.components-modal__frame.has-size-large,.components-modal__frame.has-size-medium,.components-modal__frame.has-size-small{width:100%}.components-modal__frame.has-size-small{max-width:var(--wpds-dimension-surface-width-md,400px)}.components-modal__frame.has-size-medium{max-width:var(--wpds-dimension-surface-width-lg,560px)}.components-modal__frame.has-size-large{max-width:var(--wpds-dimension-surface-width-2xl,960px)}}@media (min-width:960px){.components-modal__frame{max-height:70%}}.components-modal__frame.is-full-screen{border-radius:0;height:100%;margin:0;max-height:none;width:100%}.components-modal__frame.is-full-screen :where(.components-modal__content){border-bottom-left-radius:0;border-bottom-right-radius:0;display:flex;margin-bottom:var(--wpds-dimension-gap-xl,24px);padding-bottom:0}.components-modal__frame.is-full-screen :where(.components-modal__content)>:last-child{flex:1}@media (min-width:600px){.components-modal__frame.is-full-screen{border-radius:var(--wpds-border-radius-lg,8px);height:calc(100% - var(--wpds-dimension-gap-lg, 16px)*2);margin:auto;width:calc(100% - var(--wpds-dimension-gap-lg, 16px)*2)}}@media (min-width:782px){.components-modal__frame.is-full-screen{height:calc(100% - var(--wpds-dimension-gap-3xl, 40px)*2);max-width:none;width:calc(100% - var(--wpds-dimension-gap-3xl, 40px)*2)}}@keyframes components-modal__appear-animation{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@keyframes components-modal__disappear-animation{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(100%)}}@media (min-width:600px){@keyframes components-modal__appear-animation{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}@keyframes components-modal__disappear-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.9)}}}.components-modal__header{align-items:center;border-bottom:var(--wpds-border-width-xs,1px) solid transparent;box-sizing:border-box;display:flex;flex-direction:row;height:calc(64px + var(--wpds-dimension-padding-sm, 8px));justify-content:space-between;left:0;padding:var(--wpds-dimension-padding-2xl,24px);position:absolute;top:0;width:100%;z-index:10}.components-modal__header .components-modal__header-heading{font-size:var(--wpds-typography-font-size-xl,20px);font-weight:var(--wpds-typography-font-weight-emphasis,600)}.components-modal__header h1{line-height:1;margin:0}.components-modal__content.has-scrolled-content:not(.hide-header) .components-modal__header{border-bottom-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb)}.components-modal__header+p{margin-top:0}.components-modal__header-heading-container{align-items:center;display:flex;flex-direction:row;flex-grow:1;justify-content:flex-start}.components-modal__content{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;flex:1;margin-top:calc(64px + var(--wpds-dimension-padding-sm, 8px));overflow:auto;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-2xl,24px) var(--wpds-dimension-padding-2xl,24px)}.components-modal__content.hide-header{border-top-left-radius:inherit;border-top-right-radius:inherit;margin-top:0;padding-top:var(--wpds-dimension-padding-2xl,24px)}.components-modal__content.is-scrollable:focus-visible{outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));outline-offset:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1)}.components-notice{--wp-components-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-info,#acc5e2);--wp-components-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);align-items:start;background-color:var(--wp-components-notice-background-color);border:var(--wpds-border-width-xs,1px) solid var(--wp-components-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);box-sizing:border-box;color:var(--wp-components-notice-text-color);display:grid;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);grid-template-columns:1fr auto;isolation:isolate;line-height:var(--wpds-typography-line-height-sm,20px);padding:var(--wpds-dimension-padding-md,12px)}.components-notice.is-success{--wp-components-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-success,#91d29c);--wp-components-notice-text-color:var(--wpds-color-foreground-content-success,#002900)}.components-notice.is-warning{--wp-components-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-warning,#e0bc7d);--wp-components-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900)}.components-notice.is-error{--wp-components-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-components-notice-border-color:var(--wpds-color-stroke-surface-error,#e1b1a9);--wp-components-notice-text-color:var(--wpds-color-foreground-content-error,#470000)}.components-notice__content{grid-column:1;grid-row:1;padding-block:calc((var(--wpds-dimension-size-sm, 24px) - 1lh)/2)}.components-notice__actions{align-items:center;display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:1;grid-row:2;margin-top:var(--wpds-dimension-gap-sm,8px)}.components-notice__dismiss{color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);grid-column:2;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px);mix-blend-mode:luminosity}.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}@media (forced-colors:active){.components-notice__dismiss{mix-blend-mode:normal}}.components-notice-list{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-md,12px);max-width:100vw}.components-panel{background:#fff;border:1px solid #e0e0e0}.components-panel>.components-panel__body:first-child,.components-panel>.components-panel__header:first-child{margin-top:-1px}.components-panel>.components-panel__body:last-child,.components-panel>.components-panel__header:last-child{border-bottom-width:0}.components-panel+.components-panel{margin-top:-1px}.components-panel__body{border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0}.components-panel__body h3{margin:0 0 .5em}.components-panel__body.is-opened{padding:16px}.components-panel__header{align-items:center;border-bottom:1px solid var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:content-box;display:flex;flex-shrink:0;height:47px;justify-content:space-between;padding:0 16px}.components-panel__header h2{color:inherit;font-size:inherit;margin:0}.components-panel__body+.components-panel__body,.components-panel__body+.components-panel__header,.components-panel__header+.components-panel__body,.components-panel__header+.components-panel__header{margin-top:-1px}.components-panel__body>.components-panel__body-title{display:block;font-size:inherit;margin-bottom:0;margin-top:0;padding:0}@media not (prefers-reduced-motion){.components-panel__body>.components-panel__body-title{transition:background .1s ease-in-out}}.components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 5px}.components-panel__body>.components-panel__body-title:hover{background:#f0f0f0;border:none}.components-panel__body-toggle.components-button{color:#1e1e1e;font-weight:var(--wpds-typography-font-weight-emphasis,600);padding:16px 48px 16px 16px;position:relative;text-align:left;width:100%}@media not (prefers-reduced-motion){.components-panel__body-toggle.components-button{transition:background .1s ease-in-out}}.components-panel__body-toggle.components-button{height:auto}.components-panel__body-toggle.components-button:focus{border-radius:0;outline-offset:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1)}.components-panel__body-toggle.components-button .components-panel__arrow{color:#1e1e1e;fill:currentColor;position:absolute;right:16px;top:50%;transform:translateY(-50%)}@media not (prefers-reduced-motion){.components-panel__body-toggle.components-button .components-panel__arrow{transition:color .1s ease-in-out}}body.rtl .components-panel__body-toggle.components-button .dashicons-arrow-right{margin-top:-10px;transform:scaleX(-1)}.components-panel__icon{color:#757575;margin:-2px 0 -2px 6px}.components-panel__body-toggle-icon{margin-right:-5px}.components-panel__color-title{float:left;height:19px}.components-panel__row{align-items:center;display:flex;justify-content:space-between;margin-top:8px;min-height:36px}.components-panel__row select{min-width:0}.components-panel__row label{flex-shrink:0;margin-right:12px;max-width:75%}.components-panel__row:empty,.components-panel__row:first-of-type{margin-top:0}.components-panel .circle-picker{padding-bottom:20px}.components-placeholder.components-placeholder{align-items:flex-start;box-sizing:border-box;color:#1e1e1e;display:flex;flex-direction:column;font-size:13px;gap:16px;margin:0;padding:24px;position:relative;text-align:left;width:100%;-webkit-font-smoothing:subpixel-antialiased;background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;outline:1px solid transparent}.components-placeholder__error,.components-placeholder__fieldset,.components-placeholder__instructions,.components-placeholder__label{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:400;letter-spacing:normal;line-height:normal;text-transform:none}.components-placeholder__label{align-items:center;display:flex;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.components-placeholder__label .block-editor-block-icon,.components-placeholder__label .dashicon,.components-placeholder__label>svg{fill:currentColor;margin-right:4px}.components-placeholder__label:empty{display:none}.components-placeholder__fieldset,.components-placeholder__fieldset form{display:flex;flex-direction:row;flex-wrap:wrap;gap:16px;justify-content:flex-start;width:100%}.components-placeholder__fieldset form p,.components-placeholder__fieldset p{font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.components-placeholder__fieldset.is-column-layout,.components-placeholder__fieldset.is-column-layout form{flex-direction:column}.components-placeholder__input[type=url]{border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8b8b8b);border-radius:var(--wpds-border-radius-sm,2px);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px}@media (min-width:600px){.components-placeholder__input[type=url]{font-size:13px;line-height:normal}}.components-placeholder__input[type=url]:hover:not(:disabled,[aria-disabled=true]){border-color:var(--wpds-color-stroke-interactive-neutral-active,#6c6c6c)}.components-placeholder__input[type=url]:focus{border-color:var(--wpds-color-stroke-interactive-neutral,#8b8b8b);box-shadow:none;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-placeholder__input[type=url]::placeholder{color:rgba(30,30,30,.62)}.components-placeholder__input[type=url]{flex:1 1 auto}.components-placeholder__error{gap:8px;width:100%}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link{margin-left:10px;margin-right:10px}.components-placeholder__fieldset .components-button:not(.is-link)~.components-button.is-link:last-child{margin-right:0}.components-placeholder.is-medium .components-placeholder__instructions,.components-placeholder.is-small .components-placeholder__instructions{display:none}.components-placeholder.is-medium .components-placeholder__fieldset,.components-placeholder.is-medium .components-placeholder__fieldset form,.components-placeholder.is-small .components-placeholder__fieldset,.components-placeholder.is-small .components-placeholder__fieldset form{flex-direction:column}.components-placeholder.is-medium .components-button,.components-placeholder.is-medium .components-placeholder__fieldset>*,.components-placeholder.is-small .components-button,.components-placeholder.is-small .components-placeholder__fieldset>*{justify-content:center;width:100%}.components-placeholder.is-small{padding:16px}.components-placeholder.has-illustration{backdrop-filter:blur(100px);backface-visibility:hidden;background-color:transparent;border-radius:0;box-shadow:none;color:inherit;display:flex}.is-dark-theme .components-placeholder.has-illustration{background-color:rgba(0,0,0,.1)}.components-placeholder.has-illustration .components-placeholder__fieldset{margin-left:0;margin-right:0}.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{opacity:0;pointer-events:none}@media not (prefers-reduced-motion){.components-placeholder.has-illustration .components-button,.components-placeholder.has-illustration .components-placeholder__instructions,.components-placeholder.has-illustration .components-placeholder__label{transition:opacity .1s linear}}.is-selected>.components-placeholder.has-illustration .components-button,.is-selected>.components-placeholder.has-illustration .components-placeholder__instructions,.is-selected>.components-placeholder.has-illustration .components-placeholder__label{opacity:1;pointer-events:auto}.components-placeholder.has-illustration:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.components-placeholder.has-illustration{overflow:hidden}.is-selected .components-placeholder.has-illustration{overflow:auto}.components-placeholder__preview{display:flex;justify-content:center}.components-placeholder__illustration{box-sizing:content-box;height:100%;left:50%;opacity:.25;position:absolute;stroke:currentColor;top:50%;transform:translate(-50%,-50%);width:100%}.components-popover{box-sizing:border-box}.components-popover *,.components-popover :after,.components-popover :before{box-sizing:inherit}.components-popover{z-index:1000000}.components-popover.is-expanded{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1000000!important}.components-popover__content{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:0 0 0 var(--wpds-border-width-xs,1px) var(--wpds-color-stroke-surface-neutral,#dbdbdb),0 2px 3px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.04),0 12px 12px rgba(0,0,0,.03),0 16px 16px rgba(0,0,0,.02);box-sizing:border-box;width:min-content}.is-alternate .components-popover__content{border-radius:2px;box-shadow:0 0 0 1px #1e1e1e}.is-unstyled .components-popover__content{background:none;border-radius:0;box-shadow:none}.components-popover.is-expanded .components-popover__content{box-shadow:0 calc(var(--wpds-border-width-xs, 1px)*-1) 0 0 var(--wpds-color-stroke-surface-neutral,#dbdbdb);height:calc(100% - 48px);overflow-y:visible;position:static;width:auto}.components-popover.is-expanded.is-alternate .components-popover__content{box-shadow:0 -1px 0 #1e1e1e}@media (forced-colors:active){.components-popover:where(:not(.is-unstyled):not(.is-expanded)) .components-popover__content{outline:var(--wpds-border-width-xs,1px) solid transparent}}.components-popover__header{align-items:center;background:var(--wpds-color-background-surface-neutral-strong,#fff);display:flex;height:48px;justify-content:space-between;padding:0 8px 0 16px}.components-popover__header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.components-popover__arrow{display:flex;height:14px;pointer-events:none;position:absolute;width:14px}.components-popover__arrow:before{background-color:var(--wpds-color-background-surface-neutral-strong,#fff);content:"";height:calc(var(--wpds-border-width-xs, 1px)*2);left:1px;position:absolute;right:1px;top:calc(var(--wpds-border-width-xs, 1px)*-1)}@media (forced-colors:active){.components-popover__arrow:before{background-color:Canvas}}.components-popover__arrow.is-top{bottom:-14px!important;transform:rotate(0)}.components-popover__arrow.is-right{left:-14px!important;transform:rotate(90deg)}.components-popover__arrow.is-bottom{top:-14px!important;transform:rotate(180deg)}.components-popover__arrow.is-left{right:-14px!important;transform:rotate(-90deg)}.components-popover__triangle{display:block;flex:1}.components-popover__triangle-bg{fill:var(--wpds-color-background-surface-neutral-strong,#fff)}@media (forced-colors:active){.components-popover__triangle-bg{fill:Canvas}}.components-popover__triangle-border{fill:transparent;stroke:var(--wpds-color-stroke-surface-neutral,#dbdbdb);stroke-width:var(--wpds-border-width-xs,1px)}.is-alternate .components-popover__triangle-border{stroke:#1e1e1e}@media (forced-colors:active){.components-popover:not(.is-unstyled) .components-popover__triangle-border{stroke:CanvasText}}.components-radio-control{border:0;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;margin:0;padding:0}.components-radio-control__help{color:var(--wpds-color-foreground-content-neutral-weak,#6e6e6e)}.components-radio-control__option{align-items:center;column-gap:8px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto minmax(0,max-content)}.components-radio-control__input[type=radio]{background:var(--wpds-color-background-interactive-neutral-weak,#0000);border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8b8b8b);border-radius:50%;grid-column:1;grid-row:1;height:16px;max-width:16px;min-width:16px;position:relative;transition:none;width:16px}.components-radio-control__input[type=radio]:after{aspect-ratio:1;content:"";left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:24px}.components-radio-control__input[type=radio]:focus{border-color:var(--wpds-color-stroke-interactive-neutral,#8b8b8b);box-shadow:none;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-radio-control__input[type=radio]:hover{border-color:var(--wpds-color-stroke-interactive-neutral-active,#6c6c6c)}.components-radio-control__input[type=radio]:checked:before{background-color:currentColor;border:4px solid;box-sizing:inherit;height:8px;left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:8px}.components-radio-control__input[type=radio]:checked{background:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));border-color:transparent;color:var(--wpds-color-foreground-interactive-brand-strong,#fff)}.components-radio-control__input[type=radio]:disabled,.components-radio-control__input[type=radio][aria-disabled=true]{background:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8b8b8b);cursor:default;opacity:1}@media (forced-colors:active){.components-radio-control__input[type=radio]:disabled,.components-radio-control__input[type=radio][aria-disabled=true]{border-color:GrayText;color:GrayText}}.components-radio-control__input[type=radio]{appearance:none;display:inline-flex;margin:0;padding:0}.components-radio-control__input[type=radio]:not(:disabled){cursor:var(--wpds-cursor-control,pointer)}.components-radio-control__input[type=radio]:checked:before{border-radius:50%;content:""}.components-radio-control__input[type=radio]:disabled:checked:before{opacity:1}.components-radio-control__label{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);grid-column:2;grid-row:1}.components-radio-control__input:not(:disabled)+.components-radio-control__label{cursor:var(--wpds-cursor-control,pointer)}.components-radio-control__label{line-height:16px}.components-radio-control__option-description{grid-column:2;grid-row:2;padding-block-start:4px}.components-radio-control__option-description.components-radio-control__option-description{margin-top:0}.components-resizable-box__handle{display:none;height:23px;width:23px;z-index:2}.components-resizable-box__container.has-show-handle .components-resizable-box__handle{display:block}.components-resizable-box__handle>div{height:100%;outline:none;position:relative;width:100%;z-index:2}.components-resizable-box__container>img{width:inherit}.components-resizable-box__handle:after{background:#fff;border-radius:50%;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9)),0 1px 1px rgba(0,0,0,.03),0 1px 2px rgba(0,0,0,.02),0 3px 3px rgba(0,0,0,.02),0 4px 4px rgba(0,0,0,.01);content:"";cursor:inherit;display:block;height:15px;outline:2px solid transparent;position:absolute;right:calc(50% - 8px);top:calc(50% - 8px);width:15px}.components-resizable-box__side-handle:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));border-radius:9999px;content:"";cursor:inherit;display:block;height:3px;position:absolute;right:calc(50% - 1px);top:calc(50% - 1px);width:3px}@media not (prefers-reduced-motion){.components-resizable-box__side-handle:before{transition:transform .1s ease-in;will-change:transform}}.components-resizable-box__side-handle:before{opacity:0}.components-resizable-box__side-handle{z-index:2}.components-resizable-box__corner-handle{z-index:3}.components-resizable-box__side-handle.components-resizable-box__handle-bottom,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:before,.components-resizable-box__side-handle.components-resizable-box__handle-top,.components-resizable-box__side-handle.components-resizable-box__handle-top:before{border-left:0;border-right:0;left:0;width:100%}.components-resizable-box__side-handle.components-resizable-box__handle-left,.components-resizable-box__side-handle.components-resizable-box__handle-left:before,.components-resizable-box__side-handle.components-resizable-box__handle-right,.components-resizable-box__side-handle.components-resizable-box__handle-right:before{border-bottom:0;border-top:0;height:100%;top:0}@media not (prefers-reduced-motion){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:components-resizable-box__top-bottom-animation .1s ease-out 0s;animation-fill-mode:forwards}.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before{animation:components-resizable-box__left-right-animation .1s ease-out 0s;animation-fill-mode:forwards}}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){.components-resizable-box__side-handle.components-resizable-box__handle-bottom:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-bottom:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-left:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-right:hover:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:active:before,.components-resizable-box__side-handle.components-resizable-box__handle-top:hover:before{animation:none}}}@keyframes components-resizable-box__top-bottom-animation{0%{opacity:0;transform:scaleX(0)}to{opacity:1;transform:scaleX(1)}}@keyframes components-resizable-box__left-right-animation{0%{opacity:0;transform:scaleY(0)}to{opacity:1;transform:scaleY(1)}} /*!rtl:begin:ignore*/.components-resizable-box__handle-right{right:-11.5px}.components-resizable-box__handle-left{left:-11.5px}.components-resizable-box__handle-top{top:-11.5px}.components-resizable-box__handle-bottom{bottom:-11.5px} -/*!rtl:end:ignore*/.components-responsive-wrapper{align-items:center;display:flex;justify-content:center;max-width:100%;position:relative}.components-responsive-wrapper__content{display:block;max-width:100%;width:100%}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}.components-snackbar{backdrop-filter:blur(16px) saturate(180%);background:rgba(0,0,0,.85);border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);box-sizing:border-box;color:#fff;cursor:var(--wpds-cursor-control,pointer);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;max-width:var(--wpds-dimension-surface-width-lg,560px);padding:12px 20px;pointer-events:auto;width:100%}@media (min-width:600px){.components-snackbar{width:fit-content}}.components-snackbar:focus{outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{padding-left:24px;position:relative}.components-snackbar .components-snackbar__icon{left:-8px;position:absolute;top:-2.9px}.components-snackbar .components-snackbar__dismiss-button{cursor:var(--wpds-cursor-control,pointer);margin-left:24px}.components-snackbar__action.components-button,.components-snackbar__action.components-external-link{color:#fff;flex-shrink:0;margin-left:32px;--focus-color:#fff}.components-snackbar__action.components-button:hover,.components-snackbar__action.components-external-link:hover{color:currentColor;text-decoration:none}.components-snackbar__content{align-items:baseline;display:flex;justify-content:space-between;line-height:1.4}.components-snackbar-list{box-sizing:border-box;pointer-events:none;position:absolute;width:100%;z-index:100000}.components-snackbar-list__notice-container{padding-top:8px;position:relative}.components-tab-panel__tabs{align-items:stretch;display:flex;flex-direction:row}.components-tab-panel__tabs[aria-orientation=vertical]{flex-direction:column}.components-tab-panel__tabs-item{background:transparent;border:none;border-radius:0;cursor:var(--wpds-cursor-control,pointer);font-weight:var(--wpds-typography-font-weight-default,400);height:48px!important;isolation:isolate;margin-left:0;padding:3px var(--wpds-dimension-padding-lg,16px);position:relative}.components-tab-panel__tabs-item[aria-selected=true]{cursor:default}.components-tab-panel__tabs-item:disabled,.components-tab-panel__tabs-item[aria-disabled=true]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}.components-tab-panel__tabs .components-tab-panel__tabs-item:not(:disabled,[aria-disabled=true]){color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.components-tab-panel__tabs .components-tab-panel__tabs-item:not(:disabled,[aria-disabled=true]):focus-visible,.components-tab-panel__tabs .components-tab-panel__tabs-item:not(:disabled,[aria-disabled=true]):is(:hover,:active):not([aria-selected=true]){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.components-tab-panel__tabs .components-tab-panel__tabs-item:not(:disabled,[aria-disabled=true]):focus-visible:before,.components-tab-panel__tabs .components-tab-panel__tabs-item:not(:disabled,[aria-disabled=true]):is(:hover,:active):not([aria-selected=true]):before{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed)}.components-tab-panel__tabs-item:focus:not(:disabled){outline:none;position:relative}.components-tab-panel__tabs-item:after{background:currentColor;border-radius:0;bottom:0;content:"";height:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*0);left:0;pointer-events:none;position:absolute;right:0}@media not (prefers-reduced-motion){.components-tab-panel__tabs-item:after{transition:height .1s linear}}.components-tab-panel__tabs-item.is-active:after{height:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*1);outline:2px solid transparent;outline-offset:-1px}.components-tab-panel__tabs-item:before{border-radius:var(--wpds-border-radius-sm,2px);content:"";inset:var(--wpds-dimension-padding-md,12px);pointer-events:none;position:absolute;z-index:-1}.components-tab-panel__tabs-item:focus-visible:before{outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));outline-offset:0}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item:before{inset:0;outline-offset:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1)}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item .components-tab-panel__tabs-item-label{display:inline-flex;position:relative}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item:after{height:var(--wpds-dimension-size-sm,24px);inset-block-end:auto;inset-block-start:50%;inset-inline:0 auto;transform:translateY(-50%);width:0}@media not (prefers-reduced-motion){.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item:after{transition-property:width}}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item:not(.has-icon):after{content:none}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item .components-tab-panel__tabs-item-label:after{background:currentColor;content:"";inset-block:0;inset-inline-start:calc(var(--wpds-dimension-padding-lg, 16px)*-1);pointer-events:none;position:absolute;width:0}@media not (prefers-reduced-motion){.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item .components-tab-panel__tabs-item-label:after{transition:width .1s linear}}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item.is-active .components-tab-panel__tabs-item-label:after,.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item.is-active:after{outline:2px solid transparent;outline-offset:-1px;width:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-tab-panel__tab-content:focus{outline:none}.components-tab-panel__tab-content:focus-visible{outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));outline-offset:0}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{background:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8d8d8d);border-radius:var(--wpds-border-radius-sm,2px);color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:40px;line-height:normal;margin:0;padding:6px 8px;width:100%}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=color]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=date]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=datetime-local]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=datetime]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=email]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=month]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=number]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=password]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=tel]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=text]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=time]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=url]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=week]:hover:not(:disabled,[aria-disabled=true]){border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]:focus{border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);box-shadow:none;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-text-control__input::placeholder,.components-text-control__input[type=color]::placeholder,.components-text-control__input[type=date]::placeholder,.components-text-control__input[type=datetime-local]::placeholder,.components-text-control__input[type=datetime]::placeholder,.components-text-control__input[type=email]::placeholder,.components-text-control__input[type=month]::placeholder,.components-text-control__input[type=number]::placeholder,.components-text-control__input[type=password]::placeholder,.components-text-control__input[type=tel]::placeholder,.components-text-control__input[type=text]::placeholder,.components-text-control__input[type=time]::placeholder,.components-text-control__input[type=url]::placeholder,.components-text-control__input[type=week]::placeholder{color:rgba(30,30,30,.62)}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{padding-left:12px;padding-right:12px}.components-text-control__input::placeholder,.components-text-control__input[type=color]::placeholder,.components-text-control__input[type=date]::placeholder,.components-text-control__input[type=datetime-local]::placeholder,.components-text-control__input[type=datetime]::placeholder,.components-text-control__input[type=email]::placeholder,.components-text-control__input[type=month]::placeholder,.components-text-control__input[type=number]::placeholder,.components-text-control__input[type=password]::placeholder,.components-text-control__input[type=tel]::placeholder,.components-text-control__input[type=text]::placeholder,.components-text-control__input[type=time]::placeholder,.components-text-control__input[type=url]::placeholder,.components-text-control__input[type=week]::placeholder{color:color-mix(in srgb,var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e)),transparent 38%)}.components-text-control__input:disabled,.components-text-control__input[aria-disabled=true],.components-text-control__input[type=color]:disabled,.components-text-control__input[type=color][aria-disabled=true],.components-text-control__input[type=date]:disabled,.components-text-control__input[type=date][aria-disabled=true],.components-text-control__input[type=datetime-local]:disabled,.components-text-control__input[type=datetime-local][aria-disabled=true],.components-text-control__input[type=datetime]:disabled,.components-text-control__input[type=datetime][aria-disabled=true],.components-text-control__input[type=email]:disabled,.components-text-control__input[type=email][aria-disabled=true],.components-text-control__input[type=month]:disabled,.components-text-control__input[type=month][aria-disabled=true],.components-text-control__input[type=number]:disabled,.components-text-control__input[type=number][aria-disabled=true],.components-text-control__input[type=password]:disabled,.components-text-control__input[type=password][aria-disabled=true],.components-text-control__input[type=tel]:disabled,.components-text-control__input[type=tel][aria-disabled=true],.components-text-control__input[type=text]:disabled,.components-text-control__input[type=text][aria-disabled=true],.components-text-control__input[type=time]:disabled,.components-text-control__input[type=time][aria-disabled=true],.components-text-control__input[type=url]:disabled,.components-text-control__input[type=url][aria-disabled=true],.components-text-control__input[type=week]:disabled,.components-text-control__input[type=week][aria-disabled=true]{background:var(--wpds-color-background-interactive-neutral-disabled,#fff);border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}@media (forced-colors:active){.components-text-control__input:disabled,.components-text-control__input[aria-disabled=true],.components-text-control__input[type=color]:disabled,.components-text-control__input[type=color][aria-disabled=true],.components-text-control__input[type=date]:disabled,.components-text-control__input[type=date][aria-disabled=true],.components-text-control__input[type=datetime-local]:disabled,.components-text-control__input[type=datetime-local][aria-disabled=true],.components-text-control__input[type=datetime]:disabled,.components-text-control__input[type=datetime][aria-disabled=true],.components-text-control__input[type=email]:disabled,.components-text-control__input[type=email][aria-disabled=true],.components-text-control__input[type=month]:disabled,.components-text-control__input[type=month][aria-disabled=true],.components-text-control__input[type=number]:disabled,.components-text-control__input[type=number][aria-disabled=true],.components-text-control__input[type=password]:disabled,.components-text-control__input[type=password][aria-disabled=true],.components-text-control__input[type=tel]:disabled,.components-text-control__input[type=tel][aria-disabled=true],.components-text-control__input[type=text]:disabled,.components-text-control__input[type=text][aria-disabled=true],.components-text-control__input[type=time]:disabled,.components-text-control__input[type=time][aria-disabled=true],.components-text-control__input[type=url]:disabled,.components-text-control__input[type=url][aria-disabled=true],.components-text-control__input[type=week]:disabled,.components-text-control__input[type=week][aria-disabled=true]{border-color:GrayText;color:GrayText}}.components-text-control__input:disabled::placeholder,.components-text-control__input[aria-disabled=true]::placeholder,.components-text-control__input[type=color]:disabled::placeholder,.components-text-control__input[type=color][aria-disabled=true]::placeholder,.components-text-control__input[type=date]:disabled::placeholder,.components-text-control__input[type=date][aria-disabled=true]::placeholder,.components-text-control__input[type=datetime-local]:disabled::placeholder,.components-text-control__input[type=datetime-local][aria-disabled=true]::placeholder,.components-text-control__input[type=datetime]:disabled::placeholder,.components-text-control__input[type=datetime][aria-disabled=true]::placeholder,.components-text-control__input[type=email]:disabled::placeholder,.components-text-control__input[type=email][aria-disabled=true]::placeholder,.components-text-control__input[type=month]:disabled::placeholder,.components-text-control__input[type=month][aria-disabled=true]::placeholder,.components-text-control__input[type=number]:disabled::placeholder,.components-text-control__input[type=number][aria-disabled=true]::placeholder,.components-text-control__input[type=password]:disabled::placeholder,.components-text-control__input[type=password][aria-disabled=true]::placeholder,.components-text-control__input[type=tel]:disabled::placeholder,.components-text-control__input[type=tel][aria-disabled=true]::placeholder,.components-text-control__input[type=text]:disabled::placeholder,.components-text-control__input[type=text][aria-disabled=true]::placeholder,.components-text-control__input[type=time]:disabled::placeholder,.components-text-control__input[type=time][aria-disabled=true]::placeholder,.components-text-control__input[type=url]:disabled::placeholder,.components-text-control__input[type=url][aria-disabled=true]::placeholder,.components-text-control__input[type=week]:disabled::placeholder,.components-text-control__input[type=week][aria-disabled=true]::placeholder{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}.components-text-control__input[type=email],.components-text-control__input[type=url]{direction:ltr}.components-tip{color:#757575;display:flex}.components-tip svg{align-self:center;color:#f0b849;flex-shrink:0;margin-right:16px}.components-tip p{margin:0}.components-toggle-control__label{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);line-height:16px}.components-toggle-control__label:not(.is-disabled){cursor:var(--wpds-cursor-control,pointer)}.components-toggle-control__help{display:inline-block;margin-inline-start:40px}.components-accessible-toolbar{border:1px solid var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));border-radius:2px;display:inline-flex;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-right:none}.components-accessible-toolbar.is-unstyled{border:none}.components-accessible-toolbar.is-unstyled>.components-toolbar-group{border-right:none}.components-accessible-toolbar[aria-orientation=vertical],.components-toolbar[aria-orientation=vertical]{align-items:center;display:flex;flex-direction:column}.components-accessible-toolbar .components-button,.components-toolbar .components-button{height:48px;padding-left:16px;padding-right:16px;position:relative;z-index:1}.components-accessible-toolbar .components-button:focus:not(:disabled),.components-toolbar .components-button:focus:not(:disabled){box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media not (prefers-reduced-motion){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{margin-left:auto;margin-right:auto;position:relative}.components-accessible-toolbar .components-button.is-pressed,.components-accessible-toolbar .components-button.is-pressed:hover,.components-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed:hover{background:transparent}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e))}.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-button:focus:before{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.components-accessible-toolbar .components-button.has-icon.has-icon,.components-toolbar .components-button.has-icon.has-icon{min-width:48px;padding-left:8px;padding-right:8px}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 10px 5px 0}.components-toolbar__control.components-button[data-subscript]:after{bottom:10px;content:attr(data-subscript);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:12px;position:absolute;right:8px}.components-toolbar__control.components-button:not(:disabled).is-pressed[data-subscript]:after{color:#fff}.components-toolbar-group{background-color:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border-right:1px solid var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:inline-flex;flex-shrink:0;flex-wrap:wrap;min-height:48px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar-group{line-height:0}.components-toolbar-group .components-button.components-button,.components-toolbar-group .components-button.has-icon.has-icon{justify-content:center;min-width:36px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-button.components-button svg,.components-toolbar-group .components-button.has-icon.has-icon svg{min-width:var(--wpds-dimension-size-sm,24px)}.components-toolbar-group .components-button.components-button:before,.components-toolbar-group .components-button.has-icon.has-icon:before{left:2px;right:2px}.components-toolbar{background-color:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:1px solid var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:inline-flex;flex-shrink:0;flex-wrap:wrap;margin:0;min-height:48px}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:flex;margin:0}div.components-toolbar>div+div.has-left-divider{margin-left:6px;overflow:visible;position:relative}div.components-toolbar>div+div.has-left-divider:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:content-box;content:"";display:inline-block;height:20px;left:-3px;position:absolute;top:8px;width:1px}.components-tooltip{background:#1e1e1e;border-radius:var(--wpds-border-radius-md,4px);box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);color:#f0f0f0;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;line-height:1.4;padding:4px 8px;text-align:center;z-index:1000002}.components-tooltip__shortcut{margin-left:8px}.components-validated-control textarea:invalid[data-validity-visible],.components-validated-control:has(:is(input,select):invalid[data-validity-visible]) .components-input-control__backdrop,.components-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-validated-control__content-editable [role=textbox],.components-validated-control__wrapper-with-error-delegate:has(select:invalid[data-validity-visible]) .components-input-control__backdrop{--focus-color:var(--wpds-color-stroke-interactive-error,#cc1818)}.components-validated-control textarea:invalid[data-validity-visible],.components-validated-control:has(:is(input,select):invalid[data-validity-visible]) .components-input-control__backdrop,.components-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-validated-control__content-editable [role=textbox],.components-validated-control__wrapper-with-error-delegate:has(select:invalid[data-validity-visible]) .components-input-control__backdrop{border-color:var(--wpds-color-stroke-interactive-error,#cc1818)}.components-validated-control__wrapper-with-error-delegate{position:relative}.components-validated-control__error-delegate{height:100%;opacity:0;pointer-events:none;position:absolute;top:0;width:100%}:root{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33.0384615385,68.7307692308,230.4615384615;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:23.6923076923,58.1538461538,214.3076923077;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}} +/*!rtl:end:ignore*/.components-responsive-wrapper{align-items:center;display:flex;justify-content:center;max-width:100%;position:relative}.components-responsive-wrapper__content{display:block;max-width:100%;width:100%}.components-sandbox{overflow:hidden}iframe.components-sandbox{width:100%}body.lockscroll,html.lockscroll{overflow:hidden}.components-select-control__input{outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0)!important}.components-snackbar{backdrop-filter:blur(16px) saturate(180%);background:rgba(0,0,0,.85);border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);box-sizing:border-box;color:#fff;cursor:var(--wpds-cursor-control,pointer);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;max-width:var(--wpds-dimension-surface-width-lg,560px);padding:12px 20px;pointer-events:auto;width:100%}@media (min-width:600px){.components-snackbar{width:fit-content}}.components-snackbar:focus{outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{padding-left:24px;position:relative}.components-snackbar .components-snackbar__icon{left:-8px;position:absolute;top:-2.9px}.components-snackbar .components-snackbar__dismiss-button{cursor:var(--wpds-cursor-control,pointer);margin-left:24px}.components-snackbar__action.components-button,.components-snackbar__action.components-external-link{color:#fff;flex-shrink:0;margin-left:32px;--focus-color:#fff;position:relative}.components-snackbar__action.components-button:after,.components-snackbar__action.components-external-link:after{content:"";inset:-12px;position:absolute}.components-snackbar__action.components-button:hover,.components-snackbar__action.components-external-link:hover{color:currentColor;text-decoration:none}.components-snackbar__content{align-items:baseline;display:flex;justify-content:space-between;line-height:1.4}.components-snackbar-list{box-sizing:border-box;pointer-events:none;position:absolute;width:100%;z-index:100000}.components-snackbar-list__notice-container{padding-top:8px;position:relative}.components-tab-panel__tabs{align-items:stretch;display:flex;flex-direction:row}.components-tab-panel__tabs[aria-orientation=vertical]{flex-direction:column}.components-tab-panel__tabs-item{background:transparent;border:none;border-radius:0;cursor:var(--wpds-cursor-control,pointer);font-weight:var(--wpds-typography-font-weight-default,400);height:48px!important;isolation:isolate;margin-left:0;padding:3px var(--wpds-dimension-padding-lg,16px);position:relative}.components-tab-panel__tabs-item[aria-selected=true]{cursor:default}.components-tab-panel__tabs-item:disabled,.components-tab-panel__tabs-item[aria-disabled=true]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8b8b8b)}.components-tab-panel__tabs .components-tab-panel__tabs-item:not(:disabled,[aria-disabled=true]){color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e)}.components-tab-panel__tabs .components-tab-panel__tabs-item:not(:disabled,[aria-disabled=true]):focus-visible,.components-tab-panel__tabs .components-tab-panel__tabs-item:not(:disabled,[aria-disabled=true]):is(:hover,:active):not([aria-selected=true]){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.components-tab-panel__tabs .components-tab-panel__tabs-item:not(:disabled,[aria-disabled=true]):focus-visible:before,.components-tab-panel__tabs .components-tab-panel__tabs-item:not(:disabled,[aria-disabled=true]):is(:hover,:active):not([aria-selected=true]):before{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ececec)}.components-tab-panel__tabs-item:focus:not(:disabled){outline:none;position:relative}.components-tab-panel__tabs-item:after{background:currentColor;border-radius:0;bottom:0;content:"";height:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*0);left:0;pointer-events:none;position:absolute;right:0}@media not (prefers-reduced-motion){.components-tab-panel__tabs-item:after{transition:height .1s linear}}.components-tab-panel__tabs-item.is-active:after{height:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*1);outline:2px solid transparent;outline-offset:-1px}.components-tab-panel__tabs-item:before{border-radius:var(--wpds-border-radius-sm,2px);content:"";inset:var(--wpds-dimension-padding-md,12px);pointer-events:none;position:absolute;z-index:-1}.components-tab-panel__tabs-item:focus-visible:before{outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));outline-offset:0}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item:before{inset:0;outline-offset:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1)}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item .components-tab-panel__tabs-item-label{display:inline-flex;position:relative}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item:after{height:var(--wpds-dimension-size-sm,24px);inset-block-end:auto;inset-block-start:50%;inset-inline:0 auto;transform:translateY(-50%);width:0}@media not (prefers-reduced-motion){.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item:after{transition-property:width}}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item:not(.has-icon):after{content:none}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item .components-tab-panel__tabs-item-label:after{background:currentColor;content:"";inset-block:0;inset-inline-start:calc(var(--wpds-dimension-padding-lg, 16px)*-1);pointer-events:none;position:absolute;width:0}@media not (prefers-reduced-motion){.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item .components-tab-panel__tabs-item-label:after{transition:width .1s linear}}.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item.is-active .components-tab-panel__tabs-item-label:after,.components-tab-panel__tabs[aria-orientation=vertical] .components-tab-panel__tabs-item.is-active:after{outline:2px solid transparent;outline-offset:-1px;width:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-tab-panel__tab-content:focus{outline:none}.components-tab-panel__tab-content:focus-visible{outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));outline-offset:0}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{background:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-interactive-neutral,#8b8b8b);border-radius:var(--wpds-border-radius-sm,2px);color:var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:40px;line-height:normal;margin:0;padding:6px 8px;width:100%}@media (min-width:600px){.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{font-size:13px;line-height:normal}}.components-text-control__input:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=color]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=date]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=datetime-local]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=datetime]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=email]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=month]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=number]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=password]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=tel]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=text]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=time]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=url]:hover:not(:disabled,[aria-disabled=true]),.components-text-control__input[type=week]:hover:not(:disabled,[aria-disabled=true]){border-color:var(--wpds-color-stroke-interactive-neutral-active,#6c6c6c)}.components-text-control__input:focus,.components-text-control__input[type=color]:focus,.components-text-control__input[type=date]:focus,.components-text-control__input[type=datetime-local]:focus,.components-text-control__input[type=datetime]:focus,.components-text-control__input[type=email]:focus,.components-text-control__input[type=month]:focus,.components-text-control__input[type=number]:focus,.components-text-control__input[type=password]:focus,.components-text-control__input[type=tel]:focus,.components-text-control__input[type=text]:focus,.components-text-control__input[type=time]:focus,.components-text-control__input[type=url]:focus,.components-text-control__input[type=week]:focus{border-color:var(--wpds-color-stroke-interactive-neutral,#8b8b8b);box-shadow:none;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-text-control__input::placeholder,.components-text-control__input[type=color]::placeholder,.components-text-control__input[type=date]::placeholder,.components-text-control__input[type=datetime-local]::placeholder,.components-text-control__input[type=datetime]::placeholder,.components-text-control__input[type=email]::placeholder,.components-text-control__input[type=month]::placeholder,.components-text-control__input[type=number]::placeholder,.components-text-control__input[type=password]::placeholder,.components-text-control__input[type=tel]::placeholder,.components-text-control__input[type=text]::placeholder,.components-text-control__input[type=time]::placeholder,.components-text-control__input[type=url]::placeholder,.components-text-control__input[type=week]::placeholder{color:rgba(30,30,30,.62)}.components-text-control__input,.components-text-control__input[type=color],.components-text-control__input[type=date],.components-text-control__input[type=datetime-local],.components-text-control__input[type=datetime],.components-text-control__input[type=email],.components-text-control__input[type=month],.components-text-control__input[type=number],.components-text-control__input[type=password],.components-text-control__input[type=tel],.components-text-control__input[type=text],.components-text-control__input[type=time],.components-text-control__input[type=url],.components-text-control__input[type=week]{padding-left:12px;padding-right:12px}.components-text-control__input::placeholder,.components-text-control__input[type=color]::placeholder,.components-text-control__input[type=date]::placeholder,.components-text-control__input[type=datetime-local]::placeholder,.components-text-control__input[type=datetime]::placeholder,.components-text-control__input[type=email]::placeholder,.components-text-control__input[type=month]::placeholder,.components-text-control__input[type=number]::placeholder,.components-text-control__input[type=password]::placeholder,.components-text-control__input[type=tel]::placeholder,.components-text-control__input[type=text]::placeholder,.components-text-control__input[type=time]::placeholder,.components-text-control__input[type=url]::placeholder,.components-text-control__input[type=week]::placeholder{color:var(--wpds-color-foreground-interactive-neutral-weak,#6e6e6e)}.components-text-control__input:disabled,.components-text-control__input[aria-disabled=true],.components-text-control__input[type=color]:disabled,.components-text-control__input[type=color][aria-disabled=true],.components-text-control__input[type=date]:disabled,.components-text-control__input[type=date][aria-disabled=true],.components-text-control__input[type=datetime-local]:disabled,.components-text-control__input[type=datetime-local][aria-disabled=true],.components-text-control__input[type=datetime]:disabled,.components-text-control__input[type=datetime][aria-disabled=true],.components-text-control__input[type=email]:disabled,.components-text-control__input[type=email][aria-disabled=true],.components-text-control__input[type=month]:disabled,.components-text-control__input[type=month][aria-disabled=true],.components-text-control__input[type=number]:disabled,.components-text-control__input[type=number][aria-disabled=true],.components-text-control__input[type=password]:disabled,.components-text-control__input[type=password][aria-disabled=true],.components-text-control__input[type=tel]:disabled,.components-text-control__input[type=tel][aria-disabled=true],.components-text-control__input[type=text]:disabled,.components-text-control__input[type=text][aria-disabled=true],.components-text-control__input[type=time]:disabled,.components-text-control__input[type=time][aria-disabled=true],.components-text-control__input[type=url]:disabled,.components-text-control__input[type=url][aria-disabled=true],.components-text-control__input[type=week]:disabled,.components-text-control__input[type=week][aria-disabled=true]{background:var(--wpds-color-background-interactive-neutral-disabled,#fff);border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8b8b8b)}@media (forced-colors:active){.components-text-control__input:disabled,.components-text-control__input[aria-disabled=true],.components-text-control__input[type=color]:disabled,.components-text-control__input[type=color][aria-disabled=true],.components-text-control__input[type=date]:disabled,.components-text-control__input[type=date][aria-disabled=true],.components-text-control__input[type=datetime-local]:disabled,.components-text-control__input[type=datetime-local][aria-disabled=true],.components-text-control__input[type=datetime]:disabled,.components-text-control__input[type=datetime][aria-disabled=true],.components-text-control__input[type=email]:disabled,.components-text-control__input[type=email][aria-disabled=true],.components-text-control__input[type=month]:disabled,.components-text-control__input[type=month][aria-disabled=true],.components-text-control__input[type=number]:disabled,.components-text-control__input[type=number][aria-disabled=true],.components-text-control__input[type=password]:disabled,.components-text-control__input[type=password][aria-disabled=true],.components-text-control__input[type=tel]:disabled,.components-text-control__input[type=tel][aria-disabled=true],.components-text-control__input[type=text]:disabled,.components-text-control__input[type=text][aria-disabled=true],.components-text-control__input[type=time]:disabled,.components-text-control__input[type=time][aria-disabled=true],.components-text-control__input[type=url]:disabled,.components-text-control__input[type=url][aria-disabled=true],.components-text-control__input[type=week]:disabled,.components-text-control__input[type=week][aria-disabled=true]{border-color:GrayText;color:GrayText}}.components-text-control__input:disabled::placeholder,.components-text-control__input[aria-disabled=true]::placeholder,.components-text-control__input[type=color]:disabled::placeholder,.components-text-control__input[type=color][aria-disabled=true]::placeholder,.components-text-control__input[type=date]:disabled::placeholder,.components-text-control__input[type=date][aria-disabled=true]::placeholder,.components-text-control__input[type=datetime-local]:disabled::placeholder,.components-text-control__input[type=datetime-local][aria-disabled=true]::placeholder,.components-text-control__input[type=datetime]:disabled::placeholder,.components-text-control__input[type=datetime][aria-disabled=true]::placeholder,.components-text-control__input[type=email]:disabled::placeholder,.components-text-control__input[type=email][aria-disabled=true]::placeholder,.components-text-control__input[type=month]:disabled::placeholder,.components-text-control__input[type=month][aria-disabled=true]::placeholder,.components-text-control__input[type=number]:disabled::placeholder,.components-text-control__input[type=number][aria-disabled=true]::placeholder,.components-text-control__input[type=password]:disabled::placeholder,.components-text-control__input[type=password][aria-disabled=true]::placeholder,.components-text-control__input[type=tel]:disabled::placeholder,.components-text-control__input[type=tel][aria-disabled=true]::placeholder,.components-text-control__input[type=text]:disabled::placeholder,.components-text-control__input[type=text][aria-disabled=true]::placeholder,.components-text-control__input[type=time]:disabled::placeholder,.components-text-control__input[type=time][aria-disabled=true]::placeholder,.components-text-control__input[type=url]:disabled::placeholder,.components-text-control__input[type=url][aria-disabled=true]::placeholder,.components-text-control__input[type=week]:disabled::placeholder,.components-text-control__input[type=week][aria-disabled=true]::placeholder{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8b8b8b)}.components-text-control__input[type=email],.components-text-control__input[type=url]{direction:ltr}.components-tip{color:#757575;display:flex}.components-tip svg{align-self:center;color:#f0b849;flex-shrink:0;margin-right:16px}.components-tip p{margin:0}.components-toggle-control__label{color:var(--wpds-color-foreground-content-neutral,#1e1e1e);line-height:16px}.components-toggle-control__label:not(.is-disabled){cursor:var(--wpds-cursor-control,pointer)}.components-toggle-control__help{display:inline-block;margin-inline-start:40px}.components-accessible-toolbar{border:1px solid var(--wpds-color-stroke-surface-neutral-strong,#8b8b8b);border-radius:2px;display:inline-flex;flex-shrink:0}.components-accessible-toolbar>.components-toolbar-group:last-child{border-right:none}.components-accessible-toolbar.is-unstyled{border:none}.components-accessible-toolbar.is-unstyled>.components-toolbar-group{border-right:none}.components-accessible-toolbar[aria-orientation=vertical],.components-toolbar[aria-orientation=vertical]{align-items:center;display:flex;flex-direction:column}.components-accessible-toolbar .components-button,.components-toolbar .components-button{height:48px;padding-left:16px;padding-right:16px;position:relative;z-index:1}.components-accessible-toolbar .components-button:focus:not(:disabled),.components-toolbar .components-button:focus:not(:disabled){box-shadow:none;outline:none}.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{border-radius:2px;content:"";display:block;height:32px;left:7px;position:absolute;right:7px;z-index:-1}@media not (prefers-reduced-motion){.components-accessible-toolbar .components-button:before,.components-toolbar .components-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards}}.components-accessible-toolbar .components-button svg,.components-toolbar .components-button svg{margin-left:auto;margin-right:auto;position:relative}.components-accessible-toolbar .components-button.is-pressed,.components-accessible-toolbar .components-button.is-pressed:is(:disabled,[aria-disabled=true]),.components-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed:is(:disabled,[aria-disabled=true]){background:transparent}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:var(--_wp-components-button-pressed-background);background-position:inherit}@media (forced-colors:active){.components-accessible-toolbar .components-button.is-pressed,.components-toolbar .components-button.is-pressed{background:transparent!important}.components-accessible-toolbar .components-button.is-pressed:before,.components-toolbar .components-button.is-pressed:before{background:SelectedItem}.components-accessible-toolbar .components-button.is-pressed:disabled:before,.components-accessible-toolbar .components-button.is-pressed[aria-disabled=true]:before,.components-toolbar .components-button.is-pressed:disabled:before,.components-toolbar .components-button.is-pressed[aria-disabled=true]:before{background:GrayText}.components-accessible-toolbar .components-button.is-pressed:focus:before,.components-toolbar .components-button.is-pressed:focus:before{box-shadow:none;outline-color:CanvasText}}.components-accessible-toolbar .components-button:focus:before,.components-toolbar .components-button:focus:before{outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}.components-accessible-toolbar .components-button.has-icon.has-icon,.components-toolbar .components-button.has-icon.has-icon{min-width:48px;padding-left:8px;padding-right:8px}@keyframes components-button__appear-animation{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.components-toolbar__control.components-button{position:relative}.components-toolbar__control.components-button[data-subscript] svg{padding:5px 10px 5px 0}.components-toolbar__control.components-button[data-subscript]:after{bottom:10px;content:attr(data-subscript);font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:12px;position:absolute;right:8px}.components-toolbar-group{background-color:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border-right:1px solid var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:inline-flex;flex-shrink:0;flex-wrap:wrap;min-height:48px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-toolbar-group.components-toolbar-group{border-width:0;margin:0}.components-toolbar-group{line-height:0}.components-toolbar-group .components-button.components-button,.components-toolbar-group .components-button.has-icon.has-icon{justify-content:center;min-width:36px;padding-left:6px;padding-right:6px}.components-toolbar-group .components-button.components-button svg,.components-toolbar-group .components-button.has-icon.has-icon svg{min-width:var(--wpds-dimension-size-sm,24px)}.components-toolbar-group .components-button.components-button:before,.components-toolbar-group .components-button.has-icon.has-icon:before{left:1px;right:1px}.components-toolbar{background-color:var(--wp-components-color-background,var(--wpds-color-background-surface-neutral-strong,#fff));border:1px solid var(--wp-components-color-foreground,var(--wpds-color-foreground-content-neutral,#1e1e1e));display:inline-flex;flex-shrink:0;flex-wrap:wrap;margin:0;min-height:48px}.components-toolbar .components-toolbar.components-toolbar{border-width:0;margin:0}div.components-toolbar>div{display:flex;margin:0}div.components-toolbar>div+div.has-left-divider{margin-left:6px;overflow:visible;position:relative}div.components-toolbar>div+div.has-left-divider:before{background-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);box-sizing:content-box;content:"";display:inline-block;height:20px;left:-3px;position:absolute;top:8px;width:1px}.components-tooltip{background:#1e1e1e;border-radius:var(--wpds-border-radius-md,4px);box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);color:#f0f0f0;font-family:-apple-system,system-ui,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;line-height:1.4;padding:4px 8px;text-align:center;z-index:1000002}.components-tooltip__shortcut{margin-left:8px}.components-validated-control textarea:invalid[data-validity-visible],.components-validated-control:has(:is(input,select):invalid[data-validity-visible]) .components-input-control__backdrop,.components-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-validated-control__content-editable :has(>[role=textbox]),.components-validated-control__wrapper-with-error-delegate:has(select:invalid[data-validity-visible]) .components-input-control__backdrop{--focus-color:var(--wpds-color-stroke-interactive-error,#cc1818)}.components-validated-control textarea:invalid[data-validity-visible],.components-validated-control:has(:is(input,select):invalid[data-validity-visible]) .components-input-control__backdrop,.components-validated-control__wrapper-with-error-delegate:has(input:invalid[data-validity-visible]) .components-validated-control__content-editable :has(>[role=textbox]),.components-validated-control__wrapper-with-error-delegate:has(select:invalid[data-validity-visible]) .components-input-control__backdrop{border-color:var(--wpds-color-stroke-interactive-error,#cc1818)}.components-validated-control__wrapper-with-error-delegate{position:relative}.components-validated-control__error-delegate{height:100%;opacity:0;pointer-events:none;position:absolute;top:0;width:100%}:root{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33.0384615385,68.7307692308,230.4615384615;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:23.6923076923,58.1538461538,214.3076923077;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}} /*# sourceMappingURL=gallery-ui.css.map*/ \ No newline at end of file diff --git a/js/cloudinary.js b/js/cloudinary.js index 703a8066c..dbde11d9f 100644 --- a/js/cloudinary.js +++ b/js/cloudinary.js @@ -1,2 +1,2 @@ -(()=>{var t={951(t,e){var i,n,s,o;o=function(){var t="BKMGTPEZY".split("");function e(t,e){return t&&t.toLowerCase()===e.toLowerCase()}return function(i,n){return i="number"==typeof i?i:0,(n=n||{}).fixed="number"==typeof n.fixed?n.fixed:2,n.spacer="string"==typeof n.spacer?n.spacer:" ",n.calculate=function(t){var s=e(t,"si")?["k","B"]:["K","iB"],o=e(t,"si")?1e3:1024,r=Math.log(i)/Math.log(o)|0,a=i/Math.pow(o,r),l=a.toFixed(n.fixed);return r-1<3&&!e(t,"si")&&e(t,"jedec")&&(s[1]="B"),{suffix:r?(s[0]+"MGTPEZY")[r-1]+s[1]:1==(0|l)?"Byte":"Bytes",magnitude:r,result:a,fixed:l,bits:{result:a/8,fixed:(a/8).toFixed(n.fixed)}}},n.to=function(n,s){var o=e(s,"si")?1e3:1024,r=t.indexOf("string"==typeof n?n[0].toUpperCase():"B"),a=i;if(-1===r||0===r)return a.toFixed(2);for(;r>0;r--)a/=o;return a.toFixed(2)},n.human=function(t){var e=n.calculate(t);return e.fixed+n.spacer+e.suffix},n}},t.exports?t.exports=o():(n=[],void 0===(s="function"==typeof(i=o)?i.apply(e,n):i)||(t.exports=s))},998(t,e){var i,n,s;n=[],i=function(){"use strict";function t(t,e){var i,s,o;for(i=1,s=arguments.length;i>1].factor>t?s=e-1:n=e;return i[n]},r.prototype.parse=function(t,e){var i=t.match(this._regexp);if(null!==i){var s,o=i[3];if(n(this._prefixes,o))s=this._prefixes[o];else{if(e||(o=o.toLowerCase(),!n(this._lcPrefixes,o)))return;o=this._lcPrefixes[o],s=this._prefixes[o]}var r=+i[2];return void 0!==i[1]&&(r=-r),{factor:s,prefix:o,unit:i[4],value:r}}};var a={binary:r.create(",Ki,Mi,Gi,Ti,Pi,Ei,Zi,Yi".split(","),1024),SI:r.create("q,r,y,z,a,f,p,n,µ,m,,k,M,G,T,P,E,Z,Y,R,Q".split(","),1e3,-10)},l=t({},a.binary._prefixes),c=a.SI._prefixes;for(var h in c)c[h]>=1&&(l[h]=c[h]);var d=new r(l),u={maxDecimals:2,separator:" ",unit:""},f={rounding:"round",scale:"SI",strict:!1};function p(t,e){var n=i(e,u,"decimals"),s=E(t,e,void 0!==n?n:i(e,u,"maxDecimals"));t=void 0!==n?s.value.toFixed(n):String(s.value);var o=s.prefix+i(e,u,"unit");return""===o?t:t+i(e,u,"separator")+o}var g={scale:"binary",unit:"B"};function m(e,i){return p(e,void 0===i?g:t({},g,i))}function b(t,e){return x(_(t,e))}var v={scale:d,unit:"B"};function y(e,i){return x(w(e,void 0===i?v:t({},v,i),!0))}function x(t){var e=String(t.value).split(".")[1];if(void 0!==e&&-1===e.indexOf("e")){var i=Math.pow(10,e.length),n=Math.round(t.value*i)*t.factor;if(n%1==0&&Math.abs(n)<=s)return n/i}return t.value*t.factor}function _(t,e){return w(t,e,!1)}function w(t,e,n){if("string"!=typeof t)throw new TypeError("str must be a string");var s=o(a,i(e,f,"scale"));if(void 0===s)throw new Error("missing scale");var r=i(e,f,"strict"),l=i(e,f,"unit");if(void 0!==l){var c=(t=t.trim()).slice(-l.length);""!==l&&(c===l||n&&!r&&c.toLowerCase()===l.toLowerCase())?t=t.slice(0,-l.length):l=""}var h=s.parse(t,r);if(void 0===h||void 0!==l&&""!==h.unit)throw new Error("cannot parse str");return void 0!==l&&(h.unit=l),h}var k={ceil:function(t){return Math.ceil(+t.toPrecision(15))},floor:function(t){return Math.floor(+t.toPrecision(15))},round:Math.round},M={ceil:"floor",floor:"ceil"};function S(t,e){return t<10*e?10:1}function O(t,e){return E(t,e,i(e,f,"maxDecimals"))}function E(t,e,s){if("number"!=typeof t||t!=t)throw new TypeError("value must be a number");if(0===t)return{value:0,prefix:""};if(!isFinite(t))return{value:t,prefix:""};var r=t<0;r&&(t=-t);var l=o(a,i(e,f,"scale"));if(void 0===l)throw new Error("missing scale");var c=i(e,f,"rounding");if(!n(k,c))throw new Error("invalid rounding");r&&n(M,c)&&(c=M[c]);var h,d=k[c],u="auto"===s;void 0===s||u||(h=Math.pow(10,s));var p,g=i(e,f,"prefix");if(void 0!==g){if(!n(l._prefixes,g))throw new Error("invalid prefix");p=l._prefixes[g]}else{var m=l.findPrefix(t);if(void 0!==s)do{p=m.factor,u&&(h=S(t,p));var b=p/h;t=d(t/b)*b}while((m=l.findPrefix(t)).factor!==p);else p=m.factor;g=m.prefix}return u&&(h=S(t,p)),t=void 0===h?t/p:d(t*h/p)/h,{prefix:g,value:r?-t:t}}return p.bytes=m,p.parse=b,b.bytes=y,b.raw=_,p.raw=O,p.Scale=r,p},void 0===(s="function"==typeof i?i.apply(e,n):i)||(t.exports=s)},336(t){var e,i="loading"in HTMLImageElement.prototype,n="loading"in HTMLIFrameElement.prototype,s="onscroll"in window;function o(t){var e,i,n=[];"picture"===t.parentNode.tagName.toLowerCase()&&((i=(e=t.parentNode).querySelector("source[data-lazy-remove]"))&&e.removeChild(i),n=Array.prototype.slice.call(t.parentNode.querySelectorAll("source"))),n.push(t),n.forEach(function(t){t.hasAttribute("data-lazy-srcset")&&(t.setAttribute("srcset",t.getAttribute("data-lazy-srcset")),t.removeAttribute("data-lazy-srcset"))}),t.setAttribute("src",t.getAttribute("data-lazy-src")),t.removeAttribute("data-lazy-src")}function r(t){var o=document.createElement("div");for(o.innerHTML=function(t){var o=t.textContent||t.innerHTML,r="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 "+((o.match(/width=['"](\d+)['"]/)||!1)[1]||1)+" "+((o.match(/height=['"](\d+)['"]/)||!1)[1]||1)+"%27%3E%3C/svg%3E";return(/\n-1}function zt(t,e){var i=this.__data__,n=te(i,t);return n<0?(++this.size,i.push([t,e])):i[n][1]=e,this}function Nt(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e1?i[s-1]:void 0,r=s>2?i[2]:void 0;for(o=t.length>3&&"function"==typeof o?(s--,o):void 0,r&&ke(i[0],i[1],r)&&(o=s<3?void 0:o,s=1),e=Object(e);++n-1&&t%1==0&&t0){if(++e>=o)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function De(t){if(null!=t){try{return ot.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Ie(t,e){return t===e||t!=t&&e!=e}var Re=se(function(){return arguments}())?se:function(t){return He(t)&&rt.call(t,"callee")&&!bt.call(t,"callee")},je=Array.isArray;function Fe(t){return null!=t&&We(t.length)&&!Be(t)}function ze(t){return He(t)&&Fe(t)}var Ne=_t||Ke;function Be(t){if(!Ve(t))return!1;var e=ne(t);return e==p||e==g||e==h||e==x}function We(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=a}function Ve(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function He(t){return null!=t&&"object"==typeof t}function $e(t){if(!He(t)||ne(t)!=y)return!1;var e=gt(t);if(null===e)return!0;var i=rt.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&ot.call(i)==ct}var Ue=X?K(X):re;function qe(t){return ge(t,Ye(t))}function Ye(t){return Fe(t)?Kt(t,!0):ae(t)}var Xe=me(function(t,e,i){le(t,e,i)});function Je(t){return function(){return t}}function Ge(t){return t}function Ke(){return!1}e.exports=Xe}).call(this)}).call(this,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,i,n){var s,o;s=self,o=function(){return function(){"use strict";var t={720:function(t,e,i){i.r(e),i.d(e,{Scene:function(){return ae},Tweenable:function(){return St},interpolate:function(){return ee},processTweens:function(){return bt},setBezierFunction:function(){return H},shouldScheduleUpdate:function(){return xt},tween:function(){return Ot},unsetBezierFunction:function(){return $}});var n={};i.r(n),i.d(n,{bounce:function(){return R},bouncePast:function(){return j},easeFrom:function(){return z},easeFromTo:function(){return F},easeInBack:function(){return A},easeInCirc:function(){return M},easeInCubic:function(){return c},easeInExpo:function(){return _},easeInOutBack:function(){return C},easeInOutCirc:function(){return O},easeInOutCubic:function(){return d},easeInOutExpo:function(){return k},easeInOutQuad:function(){return l},easeInOutQuart:function(){return p},easeInOutQuint:function(){return b},easeInOutSine:function(){return x},easeInQuad:function(){return r},easeInQuart:function(){return u},easeInQuint:function(){return g},easeInSine:function(){return v},easeOutBack:function(){return T},easeOutBounce:function(){return E},easeOutCirc:function(){return S},easeOutCubic:function(){return h},easeOutExpo:function(){return w},easeOutQuad:function(){return a},easeOutQuart:function(){return f},easeOutQuint:function(){return m},easeOutSine:function(){return y},easeTo:function(){return N},elastic:function(){return P},linear:function(){return o},swingFrom:function(){return D},swingFromTo:function(){return L},swingTo:function(){return I}});var s={};i.r(s),i.d(s,{afterTween:function(){return Jt},beforeTween:function(){return Xt},doesApply:function(){return qt},tweenCreated:function(){return Yt}});var o=function(t){return t},r=function(t){return Math.pow(t,2)},a=function(t){return-(Math.pow(t-1,2)-1)},l=function(t){return(t/=.5)<1?.5*Math.pow(t,2):-.5*((t-=2)*t-2)},c=function(t){return Math.pow(t,3)},h=function(t){return Math.pow(t-1,3)+1},d=function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},u=function(t){return Math.pow(t,4)},f=function(t){return-(Math.pow(t-1,4)-1)},p=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},g=function(t){return Math.pow(t,5)},m=function(t){return Math.pow(t-1,5)+1},b=function(t){return(t/=.5)<1?.5*Math.pow(t,5):.5*(Math.pow(t-2,5)+2)},v=function(t){return 1-Math.cos(t*(Math.PI/2))},y=function(t){return Math.sin(t*(Math.PI/2))},x=function(t){return-.5*(Math.cos(Math.PI*t)-1)},_=function(t){return 0===t?0:Math.pow(2,10*(t-1))},w=function(t){return 1===t?1:1-Math.pow(2,-10*t)},k=function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},M=function(t){return-(Math.sqrt(1-t*t)-1)},S=function(t){return Math.sqrt(1-Math.pow(t-1,2))},O=function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},E=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},A=function(t){var e=1.70158;return t*t*((e+1)*t-e)},T=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},C=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},P=function(t){return-1*Math.pow(4,-8*t)*Math.sin((6*t-1)*(2*Math.PI)/2)+1},L=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},D=function(t){var e=1.70158;return t*t*((e+1)*t-e)},I=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},R=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},j=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?2-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?2-(7.5625*(t-=2.25/2.75)*t+.9375):2-(7.5625*(t-=2.625/2.75)*t+.984375)},F=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},z=function(t){return Math.pow(t,4)},N=function(t){return Math.pow(t,.25)};function B(t,e,i,n,s,o){var r,a,l,c,h,d=0,u=0,f=0,p=function(t){return((d*t+u)*t+f)*t},g=function(t){return(3*d*t+2*u)*t+f},m=function(t){return t>=0?t:0-t};return d=1-(f=3*e)-(u=3*(n-e)-f),l=1-(h=3*i)-(c=3*(s-i)-h),r=t,a=function(t){return 1/(200*t)}(o),function(t){return((l*t+c)*t+h)*t}(function(t,e){var i,n,s,o,r,a;for(s=t,a=0;a<8;a++){if(o=p(s)-t,m(o)(n=1))return n;for(;io?i=s:n=s,s=.5*(n-i)+i}return s}(r,a))}var W,V=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.25,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.25,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.75,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.75;return function(s){return B(s,t,e,i,n,1)}},H=function(t,e,i,n,s){var o=V(e,i,n,s);return o.displayName=t,o.x1=e,o.y1=i,o.x2=n,o.y2=s,St.formulas[t]=o},$=function(t){return delete St.formulas[t]};function U(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function q(t,e){for(var i=0;it.length)&&(e=t.length);for(var i=0,n=new Array(e);ia?a:e;t._hasEnded=l>=a;var c=o-(a-l),h=t._filters.length>0;if(t._hasEnded)return t._render(r,t._data,c),t.stop(!0);h&&t._applyFilter(rt),l1&&void 0!==arguments[1]?arguments[1]:it,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Array.isArray(e))return V.apply(void 0,X(e));var n=Y(e);if(pt[e])return pt[e];if(n===ct||n===lt)for(var s in t)i[s]=e;else for(var o in t)i[o]=e[o]||it;return i},kt=function(t){t===ut?(ut=t._next)?ut._previous=null:ft=null:t===ft?(ft=t._previous)?ft._next=null:ut=null:(tt=t._previous,et=t._next,tt._next=et,et._previous=tt),t._previous=t._next=null},Mt="function"==typeof Promise?Promise:null;W=Symbol.toStringTag;var St=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;U(this,t),Q(this,W,"Promise"),this._config={},this._data={},this._delay=0,this._filters=[],this._next=null,this._previous=null,this._timestamp=null,this._hasEnded=!1,this._resolve=null,this._reject=null,this._currentState=e||{},this._originalState={},this._targetState={},this._start=dt,this._render=dt,this._promiseCtor=Mt,i&&this.setConfig(i)}var e;return e=[{key:"_applyFilter",value:function(t){for(var e=this._filters.length;e>0;e--){var i=this._filters[e-e][t];i&&i(this)}}},{key:"tween",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return this._isPlaying&&this.stop(),!e&&this._config||this.setConfig(e),this._pausedAtTime=null,this._timestamp=t.now(),this._start(this.get(),this._data),this._delay&&this._render(this._currentState,this._data,0),this._resume(this._timestamp)}},{key:"setConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=this._config;for(var n in e)i[n]=e[n];var s=i.promise,o=void 0===s?this._promiseCtor:s,r=i.start,a=void 0===r?dt:r,l=i.finish,c=i.render,h=void 0===c?this._config.step||dt:c,d=i.step,u=void 0===d?dt:d;this._data=i.data||i.attachment||this._data,this._isPlaying=!1,this._pausedAtTime=null,this._scheduleId=null,this._delay=e.delay||0,this._start=a,this._render=h||u,this._duration=i.duration||500,this._promiseCtor=o,l&&(this._resolve=l);var f=e.from,p=e.to,g=void 0===p?{}:p,m=this._currentState,b=this._originalState,v=this._targetState;for(var y in f)m[y]=f[y];var x=!1;for(var _ in m){var w=m[_];x||Y(w)!==ct||(x=!0),b[_]=w,v[_]=g.hasOwnProperty(_)?g[_]:w}if(this._easing=wt(this._currentState,i.easing,this._easing),this._filters.length=0,x){for(var k in t.filters)t.filters[k].doesApply(this)&&this._filters.push(t.filters[k]);this._applyFilter(at)}return this}},{key:"then",value:function(t,e){var i=this;return this._promise=new this._promiseCtor(function(t,e){i._resolve=t,i._reject=e}),this._promise.then(t,e)}},{key:"catch",value:function(t){return this.then().catch(t)}},{key:"finally",value:function(t){return this.then().finally(t)}},{key:"get",value:function(){return K({},this._currentState)}},{key:"set",value:function(t){this._currentState=t}},{key:"pause",value:function(){if(this._isPlaying)return this._pausedAtTime=t.now(),this._isPlaying=!1,kt(this),this}},{key:"resume",value:function(){return this._resume()}},{key:"_resume",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.now();return null===this._timestamp?this.tween():this._isPlaying?this._promise:(this._pausedAtTime&&(this._timestamp+=e-this._pausedAtTime,this._pausedAtTime=null),this._isPlaying=!0,null===ut?(ut=this,ft=this):(this._previous=ft,ft._next=this,ft=this),this)}},{key:"seek",value:function(e){e=Math.max(e,0);var i=t.now();return this._timestamp+e===0||(this._timestamp=i-e,mt(this,i)),this}},{key:"stop",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._isPlaying)return this;this._isPlaying=!1,kt(this);var e=this._filters.length>0;return t&&(e&&this._applyFilter(rt),gt(1,this._currentState,this._originalState,this._targetState,1,0,this._easing),e&&(this._applyFilter(st),this._applyFilter(ot))),this._resolve&&this._resolve({data:this._data,state:this._currentState,tweenable:this}),this._resolve=null,this._reject=null,this}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._currentState,i=this._data;return this._isPlaying?(this._reject&&this._reject({data:i,state:e,tweenable:this}),this._resolve=null,this._reject=null,this.stop(t)):this}},{key:"isPlaying",value:function(){return this._isPlaying}},{key:"hasEnded",value:function(){return this._hasEnded}},{key:"setScheduleFunction",value:function(e){t.setScheduleFunction(e)}},{key:"data",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t&&(this._data=K({},t)),this._data}},{key:"dispose",value:function(){for(var t in this)delete this[t]}}],e&&q(t.prototype,e),t}();function Ot(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new St;return e.tween(t),e.tweenable=e,e}Q(St,"now",function(){return Z}),Q(St,"setScheduleFunction",function(t){return ht=t}),Q(St,"filters",{}),Q(St,"formulas",pt),xt(!0);var Et,At,Tt=/(\d|-|\.)/,Ct=/([^\-0-9.]+)/g,Pt=/[0-9.-]+/g,Lt=(Et=Pt.source,At=/,\s*/.source,new RegExp("rgba?\\(".concat(Et).concat(At).concat(Et).concat(At).concat(Et,"(").concat(At).concat(Et,")?\\)"),"g")),Dt=/^.*\(/,It=/#([0-9]|[a-f]){3,6}/gi,Rt="VAL",jt=function(t,e){return t.map(function(t,i){return"_".concat(e,"_").concat(i)})};function Ft(t){return parseInt(t,16)}var zt=function(t){return"rgb(".concat((e=t,3===(e=e.replace(/#/,"")).length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[Ft(e.substr(0,2)),Ft(e.substr(2,2)),Ft(e.substr(4,2))]).join(","),")");var e},Nt=function(t,e,i){var n=e.match(t),s=e.replace(t,Rt);return n&&n.forEach(function(t){return s=s.replace(Rt,i(t))}),s},Bt=function(t){for(var e in t){var i=t[e];"string"==typeof i&&i.match(It)&&(t[e]=Nt(It,i,zt))}},Wt=function(t){var e=t.match(Pt),i=e.slice(0,3).map(Math.floor),n=t.match(Dt)[0];if(3===e.length)return"".concat(n).concat(i.join(","),")");if(4===e.length)return"".concat(n).concat(i.join(","),",").concat(e[3],")");throw new Error("Invalid rgbChunk: ".concat(t))},Vt=function(t){return t.match(Pt)},Ht=function(t,e){var i={};return e.forEach(function(e){i[e]=t[e],delete t[e]}),i},$t=function(t,e){return e.map(function(e){return t[e]})},Ut=function(t,e){return e.forEach(function(e){return t=t.replace(Rt,+e.toFixed(4))}),t},qt=function(t){for(var e in t._currentState)if("string"==typeof t._currentState[e])return!0;return!1};function Yt(t){var e=t._currentState;[e,t._originalState,t._targetState].forEach(Bt),t._tokenData=function(t){var e,i,n={};for(var s in t){var o=t[s];"string"==typeof o&&(n[s]={formatString:(e=o,i=void 0,i=e.match(Ct),i?(1===i.length||e.charAt(0).match(Tt))&&i.unshift(""):i=["",""],i.join(Rt)),chunkNames:jt(Vt(o),s)})}return n}(e)}function Xt(t){var e=t._currentState,i=t._originalState,n=t._targetState,s=t._easing,o=t._tokenData;!function(t,e){var i=function(i){var n=e[i].chunkNames,s=t[i];if("string"==typeof s){var o=s.split(" "),r=o[o.length-1];n.forEach(function(e,i){return t[e]=o[i]||r})}else n.forEach(function(e){return t[e]=s});delete t[i]};for(var n in e)i(n)}(s,o),[e,i,n].forEach(function(t){return function(t,e){var i=function(i){Vt(t[i]).forEach(function(n,s){return t[e[i].chunkNames[s]]=+n}),delete t[i]};for(var n in e)i(n)}(t,o)})}function Jt(t){var e=t._currentState,i=t._originalState,n=t._targetState,s=t._easing,o=t._tokenData;[e,i,n].forEach(function(t){return function(t,e){for(var i in e){var n=e[i],s=n.chunkNames,o=n.formatString,r=Ut(o,$t(Ht(t,s),s));t[i]=Nt(Lt,r,Wt)}}(t,o)}),function(t,e){for(var i in e){var n=e[i].chunkNames,s=t[n[0]];t[i]="string"==typeof s?n.map(function(e){var i=t[e];return delete t[e],i}).join(" "):s}}(s,o)}function Gt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function Kt(t){for(var e=1;e4&&void 0!==arguments[4]?arguments[4]:0,o=Kt({},t),r=wt(t,n);for(var a in Zt._filters.length=0,Zt.set({}),Zt._currentState=o,Zt._originalState=t,Zt._targetState=e,Zt._easing=r,te)te[a].doesApply(Zt)&&Zt._filters.push(te[a]);Zt._applyFilter("tweenCreated"),Zt._applyFilter("beforeTween");var l=gt(i,o,t,e,1,s,r);return Zt._applyFilter("afterTween"),l};function ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);it.strokeWidth&&(e=t.trailWidth);var i=50-e/2;return s.render(this._pathTemplate,{radius:i,"2radius":2*i})},o.prototype._trailString=function(t){return this._pathString(t)},e.exports=o},{"./shape":8,"./utils":10}],4:[function(t,e,i){var n=t("./shape"),s=t("./utils"),o=function(t,e){this._pathTemplate=e.vertical?"M {center},100 L {center},0":"M 0,{center} L 100,{center}",n.apply(this,arguments)};o.prototype=new n,o.prototype.constructor=o,o.prototype._initializeSvg=function(t,e){var i=e.vertical?"0 0 "+e.strokeWidth+" 100":"0 0 100 "+e.strokeWidth;t.setAttribute("viewBox",i),t.setAttribute("preserveAspectRatio","none")},o.prototype._pathString=function(t){return s.render(this._pathTemplate,{center:t.strokeWidth/2})},o.prototype._trailString=function(t){return this._pathString(t)},e.exports=o},{"./shape":8,"./utils":10}],5:[function(t,e,i){e.exports={Line:t("./line"),Circle:t("./circle"),SemiCircle:t("./semicircle"),Square:t("./square"),Path:t("./path"),Shape:t("./shape"),utils:t("./utils")}},{"./circle":3,"./line":4,"./path":6,"./semicircle":7,"./shape":8,"./square":9,"./utils":10}],6:[function(t,e,i){var n=t("shifty"),s=t("./utils"),o=n.Tweenable,r={easeIn:"easeInCubic",easeOut:"easeOutCubic",easeInOut:"easeInOutCubic"},a=function t(e,i){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");var n;i=s.extend({delay:0,duration:800,easing:"linear",from:{},to:{},step:function(){}},i),n=s.isString(e)?document.querySelector(e):e,this.path=n,this._opts=i,this._tweenable=null;var o=this.path.getTotalLength();this.path.style.strokeDasharray=o+" "+o,this.set(0)};a.prototype.value=function(){var t=this._getComputedDashOffset(),e=this.path.getTotalLength();return parseFloat((1-t/e).toFixed(6),10)},a.prototype.set=function(t){this.stop(),this.path.style.strokeDashoffset=this._progressToOffset(t);var e=this._opts.step;if(s.isFunction(e)){var i=this._easing(this._opts.easing);e(this._calculateTo(t,i),this._opts.shape||this,this._opts.attachment)}},a.prototype.stop=function(){this._stopTween(),this.path.style.strokeDashoffset=this._getComputedDashOffset()},a.prototype.animate=function(t,e,i){e=e||{},s.isFunction(e)&&(i=e,e={});var n=s.extend({},e),r=s.extend({},this._opts);e=s.extend(r,e);var a=this._easing(e.easing),l=this._resolveFromAndTo(t,a,n);this.stop(),this.path.getBoundingClientRect();var c=this._getComputedDashOffset(),h=this._progressToOffset(t),d=this;this._tweenable=new o,this._tweenable.tween({from:s.extend({offset:c},l.from),to:s.extend({offset:h},l.to),duration:e.duration,delay:e.delay,easing:a,step:function(t){d.path.style.strokeDashoffset=t.offset;var i=e.shape||d;e.step(t,i,e.attachment)}}).then(function(t){s.isFunction(i)&&i()}).catch(function(t){throw console.error("Error in tweening:",t),t})},a.prototype._getComputedDashOffset=function(){var t=window.getComputedStyle(this.path,null);return parseFloat(t.getPropertyValue("stroke-dashoffset"),10)},a.prototype._progressToOffset=function(t){var e=this.path.getTotalLength();return e-t*e},a.prototype._resolveFromAndTo=function(t,e,i){return i.from&&i.to?{from:i.from,to:i.to}:{from:this._calculateFrom(e),to:this._calculateTo(t,e)}},a.prototype._calculateFrom=function(t){return n.interpolate(this._opts.from,this._opts.to,this.value(),t)},a.prototype._calculateTo=function(t,e){return n.interpolate(this._opts.from,this._opts.to,t,e)},a.prototype._stopTween=function(){null!==this._tweenable&&(this._tweenable.stop(!0),this._tweenable=null)},a.prototype._easing=function(t){return r.hasOwnProperty(t)?r[t]:t},e.exports=a},{"./utils":10,shifty:2}],7:[function(t,e,i){var n=t("./shape"),s=t("./circle"),o=t("./utils"),r=function(t,e){this._pathTemplate="M 50,50 m -{radius},0 a {radius},{radius} 0 1 1 {2radius},0",this.containerAspectRatio=2,n.apply(this,arguments)};r.prototype=new n,r.prototype.constructor=r,r.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 50")},r.prototype._initializeTextContainer=function(t,e,i){t.text.style&&(i.style.top="auto",i.style.bottom="0",t.text.alignToBottom?o.setStyle(i,"transform","translate(-50%, 0)"):o.setStyle(i,"transform","translate(-50%, 50%)"))},r.prototype._pathString=s.prototype._pathString,r.prototype._trailString=s.prototype._trailString,e.exports=r},{"./circle":3,"./shape":8,"./utils":10}],8:[function(t,e,i){var n=t("./path"),s=t("./utils"),o="Object is destroyed",r=function t(e,i){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");if(0!==arguments.length){this._opts=s.extend({color:"#555",strokeWidth:1,trailColor:null,trailWidth:null,fill:null,text:{style:{color:null,position:"absolute",left:"50%",top:"50%",padding:0,margin:0,transform:{prefix:!0,value:"translate(-50%, -50%)"}},autoStyleContainer:!0,alignToBottom:!0,value:null,className:"progressbar-text"},svgStyle:{display:"block",width:"100%"},warnings:!1},i,!0),s.isObject(i)&&void 0!==i.svgStyle&&(this._opts.svgStyle=i.svgStyle),s.isObject(i)&&s.isObject(i.text)&&void 0!==i.text.style&&(this._opts.text.style=i.text.style);var o,r=this._createSvgView(this._opts);if(!(o=s.isString(e)?document.querySelector(e):e))throw new Error("Container does not exist: "+e);this._container=o,this._container.appendChild(r.svg),this._opts.warnings&&this._warnContainerAspectRatio(this._container),this._opts.svgStyle&&s.setStyles(r.svg,this._opts.svgStyle),this.svg=r.svg,this.path=r.path,this.trail=r.trail,this.text=null;var a=s.extend({attachment:void 0,shape:this},this._opts);this._progressPath=new n(r.path,a),s.isObject(this._opts.text)&&null!==this._opts.text.value&&this.setText(this._opts.text.value)}};r.prototype.animate=function(t,e,i){if(null===this._progressPath)throw new Error(o);this._progressPath.animate(t,e,i)},r.prototype.stop=function(){if(null===this._progressPath)throw new Error(o);void 0!==this._progressPath&&this._progressPath.stop()},r.prototype.pause=function(){if(null===this._progressPath)throw new Error(o);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.pause()},r.prototype.resume=function(){if(null===this._progressPath)throw new Error(o);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.resume()},r.prototype.destroy=function(){if(null===this._progressPath)throw new Error(o);this.stop(),this.svg.parentNode.removeChild(this.svg),this.svg=null,this.path=null,this.trail=null,this._progressPath=null,null!==this.text&&(this.text.parentNode.removeChild(this.text),this.text=null)},r.prototype.set=function(t){if(null===this._progressPath)throw new Error(o);this._progressPath.set(t)},r.prototype.value=function(){if(null===this._progressPath)throw new Error(o);return void 0===this._progressPath?0:this._progressPath.value()},r.prototype.setText=function(t){if(null===this._progressPath)throw new Error(o);null===this.text&&(this.text=this._createTextContainer(this._opts,this._container),this._container.appendChild(this.text)),s.isObject(t)?(s.removeChildren(this.text),this.text.appendChild(t)):this.text.innerHTML=t},r.prototype._createSvgView=function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");this._initializeSvg(e,t);var i=null;(t.trailColor||t.trailWidth)&&(i=this._createTrail(t),e.appendChild(i));var n=this._createPath(t);return e.appendChild(n),{svg:e,path:n,trail:i}},r.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 100")},r.prototype._createPath=function(t){var e=this._pathString(t);return this._createPathElement(e,t)},r.prototype._createTrail=function(t){var e=this._trailString(t),i=s.extend({},t);return i.trailColor||(i.trailColor="#eee"),i.trailWidth||(i.trailWidth=i.strokeWidth),i.color=i.trailColor,i.strokeWidth=i.trailWidth,i.fill=null,this._createPathElement(e,i)},r.prototype._createPathElement=function(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d",t),i.setAttribute("stroke",e.color),i.setAttribute("stroke-width",e.strokeWidth),e.fill?i.setAttribute("fill",e.fill):i.setAttribute("fill-opacity","0"),i},r.prototype._createTextContainer=function(t,e){var i=document.createElement("div");i.className=t.text.className;var n=t.text.style;return n&&(t.text.autoStyleContainer&&(e.style.position="relative"),s.setStyles(i,n),n.color||(i.style.color=t.color)),this._initializeTextContainer(t,e,i),i},r.prototype._initializeTextContainer=function(t,e,i){},r.prototype._pathString=function(t){throw new Error("Override this function for each progress bar")},r.prototype._trailString=function(t){throw new Error("Override this function for each progress bar")},r.prototype._warnContainerAspectRatio=function(t){if(this.containerAspectRatio){var e=window.getComputedStyle(t,null),i=parseFloat(e.getPropertyValue("width"),10),n=parseFloat(e.getPropertyValue("height"),10);s.floatEquals(this.containerAspectRatio,i/n)||(console.warn("Incorrect aspect ratio of container","#"+t.id,"detected:",e.getPropertyValue("width")+"(width)","/",e.getPropertyValue("height")+"(height)","=",i/n),console.warn("Aspect ratio of should be",this.containerAspectRatio))}},e.exports=r},{"./path":6,"./utils":10}],9:[function(t,e,i){var n=t("./shape"),s=t("./utils"),o=function(t,e){this._pathTemplate="M 0,{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{strokeWidth}",this._trailTemplate="M {startMargin},{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{halfOfStrokeWidth}",n.apply(this,arguments)};o.prototype=new n,o.prototype.constructor=o,o.prototype._pathString=function(t){var e=100-t.strokeWidth/2;return s.render(this._pathTemplate,{width:e,strokeWidth:t.strokeWidth,halfOfStrokeWidth:t.strokeWidth/2})},o.prototype._trailString=function(t){var e=100-t.strokeWidth/2;return s.render(this._trailTemplate,{width:e,strokeWidth:t.strokeWidth,halfOfStrokeWidth:t.strokeWidth/2,startMargin:t.strokeWidth/2-t.trailWidth/2})},e.exports=o},{"./shape":8,"./utils":10}],10:[function(t,e,i){var n=t("lodash.merge"),s="Webkit Moz O ms".split(" "),o=.001;function r(t,e){var i=t;for(var n in e)if(e.hasOwnProperty(n)){var s=e[n],o=new RegExp("\\{"+n+"\\}","g");i=i.replace(o,s)}return i}function a(t,e,i){for(var n=t.style,o=0;oo[0];break;case"lt":i=this.value{const e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.hasOwn(t,e),(()=>{let t;globalThis.importScripts&&(t=globalThis.location+"");const e=globalThis.document;if(!t&&e&&("SCRIPT"===e.currentScript?.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){const i=e.getElementsByTagName("script");if(i.length){let e=i.length-1;for(;e>-1&&(!t||!/^https?:/.test(t));)t=i[e--].src}}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),i.p=t})(),(()=>{"use strict";i(336),i(712),i(544);const t={sample:{image:document.getElementById("transformation-sample-image"),video:document.getElementById("transformation-sample-video")},preview:{image:document.getElementById("sample-image"),video:document.getElementById("sample-video")},fields:document.getElementsByClassName("cld-ui-input"),button:{image:document.getElementById("refresh-image-preview"),video:document.getElementById("refresh-video-preview")},spinner:{image:document.getElementById("image-loader"),video:document.getElementById("video-loader")},optimization:{image:document.getElementById("image_settings.image_optimization"),video:document.getElementById("video_settings.video_optimization")},error_container:document.getElementById("cld-preview-error"),activeItem:null,elements:{image:[],video:[]},_placeItem(t){null!==t&&(t.style.display="block",t.style.visibility="visible",t.style.position="absolute",t.style.top=t.parentElement.clientHeight/2-t.clientHeight/2+"px",t.style.left=t.parentElement.clientWidth/2-t.clientWidth/2+"px")},_setLoading(t){this.sample[t]&&(this.button[t].style.display="block",this._placeItem(this.button[t]),this.preview[t].style.opacity="0.1")},_build(t){if(!this.sample[t])return;this.sample[t].innerHTML="",this.elements[t]=[];for(const e of this.fields){if(t!==e.dataset.context||e.dataset.disabled&&"true"===e.dataset.disabled)continue;let i=e.value.trim();if(i.length){if("select-one"===e.type){if("none"===i||!1===this.optimization[t].checked)continue;i=e.dataset.meta+"_"+i}else t=e.dataset.context,e.dataset.meta&&(i=e.dataset.meta+"_"+i),e.dataset.suffix&&(i+=e.dataset.suffix),i=this._transformations(i,t,!0);i&&this.elements[t].push(i)}}let e="";this.elements[t].length&&(e="/"+this._getGlobalTransformationElements(t).replace(/ /g,"%20")),this.sample[t].textContent=e,this.sample[t].parentElement.href="https://res.cloudinary.com/demo/"+this.sample[t].parentElement.innerText.trim().replace("../","").replace(/ /g,"%20")},_clearLoading(t){this.spinner[t].style.visibility="hidden",this.activeItem=null,this.preview[t].style.opacity=1},_refresh(t,e){if(t&&t.preventDefault(),!this.sample[e])return;const i=this,n=CLD_GLOBAL_TRANSFORMATIONS[e].preview_url+this._getGlobalTransformationElements(e)+CLD_GLOBAL_TRANSFORMATIONS[e].file;if(this.button[e].style.display="none",this._placeItem(this.spinner[e]),"image"===e){const t=new Image;t.onload=function(){i.preview[e].src=this.src,i._clearLoading(e),i.error_container&&(i.error_container.style.display="none"),t.remove()},t.onerror=function(){const t=i.elements[e].includes("f_mp4");i.error_container&&(i.error_container.style.display="block",t?(i.error_container.innerHTML=CLD_GLOBAL_TRANSFORMATIONS[e].warning.replace("%s","f_mp4"),i.error_container.classList.replace("settings-alert-error","settings-alert-warning")):(i.error_container.innerHTML=CLD_GLOBAL_TRANSFORMATIONS[e].error,i.error_container.classList.replace("settings-alert-warning","settings-alert-error"))),i._clearLoading(e)},t.src=n}else{const t=i._transformations(i._getGlobalTransformationElements(e),e);samplePlayer.source({publicId:"sailing_boat",transformation:t}),i._clearLoading(e)}},_getGlobalTransformationElements(t){let e=[];return e.push(this.elements[t].slice(0,2).join(",")),e.push(this.elements[t].slice(2).join(",")),e=e.filter(t=>t).join("/"),e},_transformations(t,e,i=!1){const n=CLD_GLOBAL_TRANSFORMATIONS[e].valid_types;let s=null;const o=t.split("/"),r=[];for(let t=0;t0&&!(a>=t[e-1].priority);e--);e===t.length?t[e]=c:t.splice(e,0,c),l.__current.forEach(t=>{t.name===s&&t.currentIndex>=e&&t.currentIndex++})}else l[s]={handlers:[c],runs:0};"hookAdded"!==s&&t.doAction("hookAdded",s,o,r,a)}}function o(t,i,s=!1){return function(o,r){const a=t[i];if(!n(o))return;if(!s&&!e(r))return;if(!a[o])return 0;let l=0;if(s)l=a[o].handlers.length,a[o]={runs:a[o].runs,handlers:[]};else{const t=a[o].handlers;for(let e=t.length-1;e>=0;e--)t[e].namespace===r&&(t.splice(e,1),l++,a.__current.forEach(t=>{t.name===o&&t.currentIndex>=e&&t.currentIndex--}))}return"hookRemoved"!==o&&t.doAction("hookRemoved",o,r),l}}function r(t,e){return function(i,n){const s=t[e];return void 0!==n?i in s&&s[i].handlers.some(t=>t.namespace===n):i in s}}function a(t,e,i,n){return function(s,...o){const r=t[e];r[s]||(r[s]={handlers:[],runs:0}),r[s].runs++;const a=r[s].handlers;if(!a||!a.length)return i?o[0]:void 0;const l={name:s,currentIndex:0};return(n?async function(){try{r.__current.add(l);let t=i?o[0]:void 0;for(;l.currentIndex0:Array.from(n.__current).some(t=>t.name===i)}}function h(t,e){return function(i){const s=t[e];if(n(i))return s[i]&&s[i].runs?s[i].runs:0}}const d=new class{actions;filters;addAction;addFilter;removeAction;removeFilter;hasAction;hasFilter;removeAllActions;removeAllFilters;doAction;doActionAsync;applyFilters;applyFiltersAsync;currentAction;currentFilter;doingAction;doingFilter;didAction;didFilter;constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=s(this,"actions"),this.addFilter=s(this,"filters"),this.removeAction=o(this,"actions"),this.removeFilter=o(this,"filters"),this.hasAction=r(this,"actions"),this.hasFilter=r(this,"filters"),this.removeAllActions=o(this,"actions",!0),this.removeAllFilters=o(this,"filters",!0),this.doAction=a(this,"actions",!1,!1),this.doActionAsync=a(this,"actions",!1,!0),this.applyFilters=a(this,"filters",!0,!1),this.applyFiltersAsync=a(this,"filters",!0,!0),this.currentAction=l(this,"actions"),this.currentFilter=l(this,"filters"),this.doingAction=c(this,"actions"),this.doingFilter=c(this,"filters"),this.didAction=h(this,"actions"),this.didFilter=h(this,"filters")}},{addAction:u,addFilter:f,removeAction:p,removeFilter:g,hasAction:m,hasFilter:b,removeAllActions:v,removeAllFilters:y,doAction:x,doActionAsync:_,applyFilters:w,applyFiltersAsync:k,currentAction:M,currentFilter:S,doingAction:O,doingFilter:E,didAction:A,didFilter:T,actions:C,filters:P}=d;var L,D,I,R;L={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},D=["(","?"],I={")":["("],":":["?","?:"]},R=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var j={"!":function(t){return!t},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"%":function(t,e){return t%e},"+":function(t,e){return t+e},"-":function(t,e){return t-e},"<":function(t,e){return t":function(t,e){return t>e},">=":function(t,e){return t>=e},"==":function(t,e){return t===e},"!=":function(t,e){return t!==e},"&&":function(t,e){return t&&e},"||":function(t,e){return t||e},"?:":function(t,e,i){if(t)throw e;return i}};function F(t){var e=function(t){for(var e,i,n,s,o=[],r=[];e=t.match(R);){for(i=e[0],(n=t.substr(0,e.index).trim())&&o.push(n);s=r.pop();){if(I[i]){if(I[i][0]===s){i=I[i][1]||i;break}}else if(D.indexOf(s)>=0||L[s]1===t?0:1},W=/^i18n\.(n?gettext|has_translation)(_|$)/,V=((t,e,i)=>{const n=new N({}),s=new Set,o=()=>{s.forEach(t=>t())},r=(t,e="default")=>{n.data[e]={...n.data[e],...t},n.data[e][""]={...B,...n.data[e]?.[""]},delete n.pluralForms[e]},a=(t,e)=>{r(t,e),o()},l=(t="default",e,i,s,o)=>(n.data[t]||r(void 0,t),n.dcnpgettext(t,e,i,s,o)),c=t=>t||"default",h=(t,e,n)=>{let s=l(n,e,t);return i?(s=i.applyFilters("i18n.gettext_with_context",s,t,e,n),i.applyFilters("i18n.gettext_with_context_"+c(n),s,t,e,n)):s};if(t&&a(t,e),i){const t=t=>{W.test(t)&&o()};i.addAction("hookAdded","core/i18n",t),i.addAction("hookRemoved","core/i18n",t)}return{getLocaleData:(t="default")=>n.data[t],setLocaleData:a,addLocaleData:(t,e="default")=>{n.data[e]={...n.data[e],...t,"":{...B,...n.data[e]?.[""],...t?.[""]}},delete n.pluralForms[e],o()},resetLocaleData:(t,e)=>{n.data={},n.pluralForms={},a(t,e)},subscribe:t=>(s.add(t),()=>s.delete(t)),__:(t,e)=>{let n=l(e,void 0,t);return i?(n=i.applyFilters("i18n.gettext",n,t,e),i.applyFilters("i18n.gettext_"+c(e),n,t,e)):n},_x:h,_n:(t,e,n,s)=>{let o=l(s,void 0,t,e,n);return i?(o=i.applyFilters("i18n.ngettext",o,t,e,n,s),i.applyFilters("i18n.ngettext_"+c(s),o,t,e,n,s)):o},_nx:(t,e,n,s,o)=>{let r=l(o,s,t,e,n);return i?(r=i.applyFilters("i18n.ngettext_with_context",r,t,e,n,s,o),i.applyFilters("i18n.ngettext_with_context_"+c(o),r,t,e,n,s,o)):r},isRTL:()=>"rtl"===h("ltr","text direction"),hasTranslation:(t,e,s)=>{const o=e?e+""+t:t;let r=!!n.data?.[s??"default"]?.[o];return i&&(r=i.applyFilters("i18n.has_translation",r,t,e,s),r=i.applyFilters("i18n.has_translation_"+c(s),r,t,e,s)),r}}})(void 0,void 0,d),H=(V.getLocaleData.bind(V),V.setLocaleData.bind(V),V.resetLocaleData.bind(V),V.subscribe.bind(V),V.__.bind(V)),$=(V._x.bind(V),V._n.bind(V),V._nx.bind(V),V.isRTL.bind(V),V.hasTranslation.bind(V),["@wordpress/admin-ui","@wordpress/api-fetch","@wordpress/block-directory","@wordpress/block-editor","@wordpress/block-library","@wordpress/blocks","@wordpress/boot","@wordpress/commands","@wordpress/compose","@wordpress/connectors","@wordpress/workflows","@wordpress/components","@wordpress/core-actions","@wordpress/core-commands","@wordpress/core-data","@wordpress/core-fields","@wordpress/customize-widgets","@wordpress/data","@wordpress/edit-post","@wordpress/edit-site","@wordpress/edit-widgets","@wordpress/editor","@wordpress/font-list-route","@wordpress/format-library","@wordpress/notices","@wordpress/patterns","@wordpress/preferences","@wordpress/rich-text","@wordpress/route","@wordpress/router","@wordpress/routes","@wordpress/storybook","@wordpress/theme","@wordpress/dataviews","@wordpress/sync","@wordpress/fields","@wordpress/lazy-editor","@wordpress/media-editor","@wordpress/media-utils","@wordpress/upload-media","@wordpress/global-styles-engine","@wordpress/global-styles-ui","@wordpress/ui","@wordpress/views","@wordpress/widget-dashboard"]);function U(t,e){if(!t)throw new Error("Cannot lock an undefined object.");const i=t;X in i||(i[X]={}),Y.set(i[X],e)}function q(t){if(!t)throw new Error("Cannot unlock an undefined object.");const e=t;if(!(X in e))throw new Error("Cannot unlock an object that was not locked before. ");return Y.get(e[X])}const Y=new WeakMap,X=Symbol("Private API ID");const{lock:J,unlock:G}=((t,e)=>{if(!$.includes(e))throw new Error(`You tried to opt-in to unstable APIs as module "${e}". This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);if("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress."!==t)throw new Error("You tried to opt-in to unstable APIs without confirming you know the consequences. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on the next WordPress release.");return{lock:U,unlock:q}})("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/api-fetch");const K=(t,e)=>{let i,n,s=t.path;return"string"==typeof t.namespace&&"string"==typeof t.endpoint&&(i=t.namespace.replace(/^\/|\/$/g,""),n=t.endpoint.replace(/^\//,""),s=n?i+"/"+n:i),delete t.namespace,delete t.endpoint,e({...t,path:s})};function Q(t){try{return decodeURIComponent(t)}catch{return t}}function Z(t){const e=t.indexOf("?");if(-1===e)return t;const i=t.slice(0,e),n=t.slice(e+1);return n?i+"?"+n.split("&").map(t=>t.split("=")).map(t=>t.map(Q)).sort((t,e)=>t[0].localeCompare(e[0])).map(t=>t.map(encodeURIComponent)).map(t=>t.join("=")).join("&"):i}function tt(t){return(function(t){let e;try{e=new URL(t,"http://example.com").search.substring(1)}catch{}if(e)return e}(t)||"").replace(/\+/g,"%20").split("&").reduce((t,e)=>{const i=e.indexOf("="),n=-1!==i,s=Q(n?e.slice(0,i):e);if(s){const o=n?Q(e.slice(i+1)):"";!function(t,e,i){const n=e.length,s=n-1;for(let o=0;o{"link"===e.toLowerCase()&&(t.headers[e]=i.replace(/<([^>]+)>/,(t,e)=>`<${encodeURI(e)}>`))}),Promise.resolve(e?t.body:new window.Response(JSON.stringify(t.body),{status:200,statusText:"OK",headers:t.headers}))}}const rt=({path:t,url:e,...i},n)=>({...i,url:e&&it(e,n),path:t&&it(t,n)}),at=t=>t.json?t.json():Promise.reject(t),lt=t=>{const{next:e}=(t=>{if(!t)return{};const e=t.match(/<([^>]+)>; rel="next"/);return e?{next:e[1]}:{}})(t.headers.get("link"));return e},ct=async(t,e)=>{if(!1===t.parse)return e(t);if(!(t=>{const e=!!t.path&&-1!==t.path.indexOf("per_page=-1"),i=!!t.url&&-1!==t.url.indexOf("per_page=-1");return e||i})(t))return e(t);const i=await Mt({...rt(t,{per_page:100}),parse:!1}),n=await at(i);if(!Array.isArray(n))return n;let s=lt(i);if(!s)return n;let o=[].concat(n);for(;s;){const e=await Mt({...t,path:void 0,url:s,parse:!1}),i=await at(e);o=o.concat(i),s=lt(e)}return o},ht=new Set(["PATCH","PUT","DELETE"]),dt="GET",ut=(t,e)=>{const{method:i=dt}=t;return ht.has(i.toUpperCase())&&(t={...t,headers:{"Content-Type":"application/json",...t.headers,"X-HTTP-Method-Override":i},method:"POST"}),e(t)};function ft(t,e){return tt(t)[e]}function pt(t,e){return void 0!==ft(t,e)}async function gt(t,e=!1){try{if("function"!=typeof t.text)return await t.json();const i=await t.text();return e&&""===i?null:JSON.parse(i)}catch{throw{code:"invalid_json",message:H("The response is not a valid JSON response."),data:{status:t.status}}}}async function mt(t,e=!0){return e?204===t.status?null:await gt(t,!0):t}async function bt(t,e=!0){if(!e)throw t;const i=await gt(t);if(i&&"object"==typeof i&&!Array.isArray(i)&&void 0===i.data)throw{...i,data:{status:t.status}};throw i}function vt(t,...e){const i=t.replace(/^[^#]*/,""),n=(t=t.replace(/#.*/,"")).indexOf("?");if(-1===n)return t+i;const s=tt(t),o=t.substr(0,n);e.forEach(t=>delete s[t]);const r=et(s);return(r?o+"?"+r:o)+i}const yt={Accept:"application/json, */*;q=0.1"},xt={credentials:"include"},_t=[(t,e)=>("string"!=typeof t.url||pt(t.url,"_locale")||(t.url=it(t.url,{_locale:"user"})),"string"!=typeof t.path||pt(t.path,"_locale")||(t.path=it(t.path,{_locale:"user"})),e(t)),K,ut,ct];const wt=t=>{const{url:e,path:i,data:n,parse:s=!0,...o}=t;let{body:r,headers:a}=t;return a={...yt,...a},n&&(r=JSON.stringify(n),a["Content-Type"]="application/json"),globalThis.fetch(e||i||window.location.href,{...xt,...o,body:r,headers:a}).then(t=>t.ok?mt(t,s):bt(t,s),t=>{if(t&&"AbortError"===t.name)throw t;if(!globalThis.navigator.onLine)throw{code:"offline_error",message:H("Unable to connect. Please check your Internet connection.")};throw{code:"fetch_error",message:H("Could not get a valid response from the server.")}})};let kt=wt;const Mt=t=>_t.reduceRight((t,e)=>i=>e(i,t),kt)(t).catch(e=>"rest_cookie_invalid_nonce"!==e.code?Promise.reject(e):globalThis.fetch(Mt.nonceEndpoint).then(t=>t.ok?t.text():Promise.reject(e)).then(e=>(Mt.nonceMiddleware.nonce=e,Mt(t))));Mt.use=function(t){_t.unshift(t)},Mt.unregister=function(t){const e=_t.indexOf(t);return-1!==e&&(_t.splice(e,1),!0)},Mt.setFetchHandler=function(t){kt=t},Mt.defaultFetchHandler=wt,Mt.privateApis={},J(Mt.privateApis,{enablePreloadMultiUse:function(){for(const t of _t)t[nt]?.()},clearPreloadedData:function(){for(const t of _t)t[st]?.()}}),Mt.createNonceMiddleware=function(t){const e=(t,i)=>{const{headers:n={}}=t;for(const s in n)if("x-wp-nonce"===s.toLowerCase()&&n[s]===e.nonce)return i(t);return i({...t,headers:{...n,"X-WP-Nonce":e.nonce}})};return e.nonce=t,e},Mt.createPreloadingMiddleware=function(t){const{OPTIONS:e={},...i}=Object.fromEntries(Object.entries(t).map(([t,e])=>[Z(t),e])),n=new Set(Object.keys(i)),s=new Set(Object.keys(e));let o=!1;const r=(t,r)=>{const{parse:a=!0}=t;let l=t.path;if(!l&&t.url){const{rest_route:e,...i}=tt(t.url);"string"==typeof e&&(l=it(e,i))}if("string"!=typeof l)return r(t);const c=t.method||"GET",h=Z(l);if("GET"===c&&i[h]){const t=i[h];return o||delete i[h],n.delete(h),ot(t,!!a)}if("OPTIONS"===c&&e[h]){const t=e[h];return o||delete e[h],s.delete(h),ot(t,!!a)}return r(t)};return r[nt]=()=>{o=!0},r[st]=()=>{const t=[...Array.from(n,t=>`GET ${t}`),...Array.from(s,t=>`OPTIONS ${t}`)];t.length?console.warn("[api-fetch][preload] Some preloads were never consumed:",t):console.log("[api-fetch][preload] All preloads consumed."),n.clear(),s.clear();for(const t of Object.keys(i))delete i[t];for(const t of Object.keys(e))delete e[t]},r},Mt.createRootURLMiddleware=t=>(e,i)=>K(e,e=>{let n,s=e.url,o=e.path;return"string"==typeof o&&(n=t,-1!==t.indexOf("?")&&(o=o.replace("?","&")),o=o.replace(/^\//,""),"string"==typeof n&&-1!==n.indexOf("?")&&(o=o.replace("?","&")),s=n+o),i({...e,url:s})}),Mt.fetchAllMiddleware=ct,Mt.httpV1Middleware=ut,Mt.mediaUploadMiddleware=(t,e)=>{if(!function(t){const e=!!t.method&&"POST"===t.method;return(!!t.path&&-1!==t.path.indexOf("/wp/v2/media")||!!t.url&&-1!==t.url.indexOf("/wp/v2/media"))&&e}(t))return e(t);let i=0;const n=t=>(i++,e({path:`/wp/v2/media/${t}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch(()=>i<5?n(t):(e({path:`/wp/v2/media/${t}?force=true`,method:"DELETE"}),Promise.reject())));return e({...t,parse:!1}).catch(e=>{if(!(e instanceof globalThis.Response))return Promise.reject(e);const i=e.headers.get("x-wp-upload-attachment-id");return e.status>=500&&e.status<600&&i?n(i).catch(()=>!1!==t.parse?Promise.reject({code:"post_process",message:H("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(e)):bt(e,t.parse)}).then(e=>mt(e,t.parse))},Mt.createThemePreviewMiddleware=t=>(e,i)=>{if("string"==typeof e.url){const i=ft(e.url,"wp_theme_preview");void 0===i?e.url=it(e.url,{wp_theme_preview:t}):""===i&&(e.url=vt(e.url,"wp_theme_preview"))}if("string"==typeof e.path){const i=ft(e.path,"wp_theme_preview");void 0===i?e.path=it(e.path,{wp_theme_preview:t}):""===i&&(e.path=vt(e.path,"wp_theme_preview"))}return i(e)};const St={wpWrap:document.getElementById("wpwrap"),adminbar:document.getElementById("wpadminbar"),wpContent:document.getElementById("wpbody-content"),libraryWrap:document.getElementById("cloudinary-dam"),cloudinaryHeader:document.getElementById("cloudinary-header"),wpFooter:document.getElementById("wpfooter"),importStatus:document.getElementById("import-status"),downloading:{},_init(){const t=this,e=this.libraryWrap,i=this.importStatus;"undefined"!=typeof CLDN&&document.querySelector(CLDN.mloptions.inline_container)&&(Mt.use(Mt.createNonceMiddleware(CLDN.nonce)),cloudinary.openMediaLibrary(CLDN.mloptions,{insertHandler(n){const s=[];for(let o=0;o{o.style.opacity=1},250),void 0!==n.fetch?Mt({path:cldData.dam.fetch_url,data:{src:n.url,filename:n.filename,attachment_id:n.attachment_id,transformations:n.transformations},method:"POST"}).then(e=>{e&&!1===e.success&&t.showError(e.data)}).catch(e=>{t.showError(e&&e.message)}).finally(()=>{t.removeProgress(s,r)}):t.removeProgress(s,r)})}}}),window.addEventListener("resize",function(){t._resize()}),t._resize())},_resize(){this.libraryWrap.style.height=this.wpFooter.offsetTop-this.libraryWrap.offsetTop-this.adminbar.offsetHeight+"px"},removeProgress(t,e){const i=t[e];delete t[e],i.removeChild(i.firstChild),setTimeout(()=>{i.style.opacity=0,setTimeout(()=>{i.parentNode.removeChild(i),Object.keys(t).length||(this.libraryWrap.style.marginRight="0px",this.importStatus.style.display="none")},1e3)},500)},showError(t){window.alert(t||H("Could not import the asset.","cloudinary"))},makeProgress(t){const e=document.createElement("div"),i=document.createElement("span"),n=document.createElement("span");return e.classList.add("cld-import-item"),i.classList.add("spinner"),n.classList.add("cld-import-item-id"),n.innerText=t.public_id,e.appendChild(i),e.appendChild(n),e}};window.addEventListener("load",()=>St._init());const Ot={_init(){const t=this;if("undefined"!=typeof CLDIS){[...document.getElementsByClassName("cld-notice-box")].forEach(e=>{const i=e.getElementsByClassName("notice-dismiss");i.length&&i[0].addEventListener("click",i=>{e.style.height=e.offsetHeight+"px",i.preventDefault(),setTimeout(function(){t._dismiss(e)},5)})})}},_dismiss(t){const e=t.dataset.dismiss,i=parseInt(t.dataset.duration);t.classList.add("dismissed"),t.style.height="0px",setTimeout(function(){t.remove()},400),00&&Dt(n.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Dt(n.height)/t.offsetHeight||1);var r=(At(t)?Et(t):window).visualViewport,a=!Rt()&&i,l=(n.left+(a&&r?r.offsetLeft:0))/s,c=(n.top+(a&&r?r.offsetTop:0))/o,h=n.width/s,d=n.height/o;return{width:h,height:d,top:c,right:l+h,bottom:c+d,left:l,x:l,y:c}}function Ft(t){var e=Et(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function zt(t){return t?(t.nodeName||"").toLowerCase():null}function Nt(t){return((At(t)?t.ownerDocument:t.document)||window.document).documentElement}function Bt(t){return jt(Nt(t)).left+Ft(t).scrollLeft}function Wt(t){return Et(t).getComputedStyle(t)}function Vt(t){var e=Wt(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Ht(t,e,i){void 0===i&&(i=!1);var n,s,o=Tt(e),r=Tt(e)&&function(t){var e=t.getBoundingClientRect(),i=Dt(e.width)/t.offsetWidth||1,n=Dt(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),a=Nt(e),l=jt(t,r,i),c={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(o||!o&&!i)&&(("body"!==zt(e)||Vt(a))&&(c=(n=e)!==Et(n)&&Tt(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:Ft(n)),Tt(e)?((h=jt(e,!0)).x+=e.clientLeft,h.y+=e.clientTop):a&&(h.x=Bt(a))),{x:l.left+c.scrollLeft-h.x,y:l.top+c.scrollTop-h.y,width:l.width,height:l.height}}function $t(t){var e=jt(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function Ut(t){return"html"===zt(t)?t:t.assignedSlot||t.parentNode||(Ct(t)?t.host:null)||Nt(t)}function qt(t){return["html","body","#document"].indexOf(zt(t))>=0?t.ownerDocument.body:Tt(t)&&Vt(t)?t:qt(Ut(t))}function Yt(t,e){var i;void 0===e&&(e=[]);var n=qt(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),o=Et(n),r=s?[o].concat(o.visualViewport||[],Vt(n)?n:[]):n,a=e.concat(r);return s?a:a.concat(Yt(Ut(r)))}function Xt(t){return["table","td","th"].indexOf(zt(t))>=0}function Jt(t){return Tt(t)&&"fixed"!==Wt(t).position?t.offsetParent:null}function Gt(t){for(var e=Et(t),i=Jt(t);i&&Xt(i)&&"static"===Wt(i).position;)i=Jt(i);return i&&("html"===zt(i)||"body"===zt(i)&&"static"===Wt(i).position)?e:i||function(t){var e=/firefox/i.test(It());if(/Trident/i.test(It())&&Tt(t)&&"fixed"===Wt(t).position)return null;var i=Ut(t);for(Ct(i)&&(i=i.host);Tt(i)&&["html","body"].indexOf(zt(i))<0;){var n=Wt(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}var Kt="top",Qt="bottom",Zt="right",te="left",ee="auto",ie=[Kt,Qt,Zt,te],ne="start",se="end",oe="viewport",re="popper",ae=ie.reduce(function(t,e){return t.concat([e+"-"+ne,e+"-"+se])},[]),le=[].concat(ie,[ee]).reduce(function(t,e){return t.concat([e,e+"-"+ne,e+"-"+se])},[]),ce=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function he(t){var e=new Map,i=new Set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}}),n.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){i.has(t.name)||s(t)}),n}var de={placement:"bottom",modifiers:[],strategy:"absolute"};function ue(){for(var t=arguments.length,e=new Array(t),i=0;i=0?"x":"y"}function ve(t){var e,i=t.reference,n=t.element,s=t.placement,o=s?ge(s):null,r=s?me(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case Kt:e={x:a,y:i.y-n.height};break;case Qt:e={x:a,y:i.y+i.height};break;case Zt:e={x:i.x+i.width,y:l};break;case te:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=o?be(o):null;if(null!=c){var h="y"===c?"height":"width";switch(r){case ne:e[c]=e[c]-(i[h]/2-n[h]/2);break;case se:e[c]=e[c]+(i[h]/2-n[h]/2)}}return e}var ye={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xe(t){var e,i=t.popper,n=t.popperRect,s=t.placement,o=t.variation,r=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,h=t.roundOffsets,d=t.isFixed,u=r.x,f=void 0===u?0:u,p=r.y,g=void 0===p?0:p,m="function"==typeof h?h({x:f,y:g}):{x:f,y:g};f=m.x,g=m.y;var b=r.hasOwnProperty("x"),v=r.hasOwnProperty("y"),y=te,x=Kt,_=window;if(c){var w=Gt(i),k="clientHeight",M="clientWidth";if(w===Et(i)&&"static"!==Wt(w=Nt(i)).position&&"absolute"===a&&(k="scrollHeight",M="scrollWidth"),s===Kt||(s===te||s===Zt)&&o===se)x=Qt,g-=(d&&w===_&&_.visualViewport?_.visualViewport.height:w[k])-n.height,g*=l?1:-1;if(s===te||(s===Kt||s===Qt)&&o===se)y=Zt,f-=(d&&w===_&&_.visualViewport?_.visualViewport.width:w[M])-n.width,f*=l?1:-1}var S,O=Object.assign({position:a},c&&ye),E=!0===h?function(t,e){var i=t.x,n=t.y,s=e.devicePixelRatio||1;return{x:Dt(i*s)/s||0,y:Dt(n*s)/s||0}}({x:f,y:g},Et(i)):{x:f,y:g};return f=E.x,g=E.y,l?Object.assign({},O,((S={})[x]=v?"0":"",S[y]=b?"0":"",S.transform=(_.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",S)):Object.assign({},O,((e={})[x]=v?g+"px":"",e[y]=b?f+"px":"",e.transform="",e))}const _e={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];Tt(s)&&zt(s)&&(Object.assign(s.style,i),Object.keys(n).forEach(function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(t){var n=e.elements[t],s=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce(function(t,e){return t[e]="",t},{});Tt(n)&&zt(n)&&(Object.assign(n.style,o),Object.keys(s).forEach(function(t){n.removeAttribute(t)}))})}},requires:["computeStyles"]};const we={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,o=void 0===s?[0,0]:s,r=le.reduce(function(t,i){return t[i]=function(t,e,i){var n=ge(t),s=[te,Kt].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[te,Zt].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}(i,e.rects,o),t},{}),a=r[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=r}};var ke={left:"right",right:"left",bottom:"top",top:"bottom"};function Me(t){return t.replace(/left|right|bottom|top/g,function(t){return ke[t]})}var Se={start:"end",end:"start"};function Oe(t){return t.replace(/start|end/g,function(t){return Se[t]})}function Ee(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Ct(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ae(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Te(t,e,i){return e===oe?Ae(function(t,e){var i=Et(t),n=Nt(t),s=i.visualViewport,o=n.clientWidth,r=n.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=Rt();(c||!c&&"fixed"===e)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+Bt(t),y:l}}(t,i)):At(e)?function(t,e){var i=jt(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):Ae(function(t){var e,i=Nt(t),n=Ft(t),s=null==(e=t.ownerDocument)?void 0:e.body,o=Pt(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=Pt(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+Bt(t),l=-n.scrollTop;return"rtl"===Wt(s||i).direction&&(a+=Pt(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(Nt(t)))}function Ce(t,e,i,n){var s="clippingParents"===e?function(t){var e=Yt(Ut(t)),i=["absolute","fixed"].indexOf(Wt(t).position)>=0&&Tt(t)?Gt(t):t;return At(i)?e.filter(function(t){return At(t)&&Ee(t,i)&&"body"!==zt(t)}):[]}(t):[].concat(e),o=[].concat(s,[i]),r=o[0],a=o.reduce(function(e,i){var s=Te(t,i,n);return e.top=Pt(s.top,e.top),e.right=Lt(s.right,e.right),e.bottom=Lt(s.bottom,e.bottom),e.left=Pt(s.left,e.left),e},Te(t,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Pe(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Le(t,e){return e.reduce(function(e,i){return e[i]=t,e},{})}function De(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,o=i.strategy,r=void 0===o?t.strategy:o,a=i.boundary,l=void 0===a?"clippingParents":a,c=i.rootBoundary,h=void 0===c?oe:c,d=i.elementContext,u=void 0===d?re:d,f=i.altBoundary,p=void 0!==f&&f,g=i.padding,m=void 0===g?0:g,b=Pe("number"!=typeof m?m:Le(m,ie)),v=u===re?"reference":re,y=t.rects.popper,x=t.elements[p?v:u],_=Ce(At(x)?x:x.contextElement||Nt(t.elements.popper),l,h,r),w=jt(t.elements.reference),k=ve({reference:w,element:y,strategy:"absolute",placement:s}),M=Ae(Object.assign({},y,k)),S=u===re?M:w,O={top:_.top-S.top+b.top,bottom:S.bottom-_.bottom+b.bottom,left:_.left-S.left+b.left,right:S.right-_.right+b.right},E=t.modifiersData.offset;if(u===re&&E){var A=E[s];Object.keys(O).forEach(function(t){var e=[Zt,Qt].indexOf(t)>=0?1:-1,i=[Kt,Qt].indexOf(t)>=0?"y":"x";O[t]+=A[i]*e})}return O}function Ie(t,e,i){return Pt(t,Lt(e,i))}const Re={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,d=i.padding,u=i.tether,f=void 0===u||u,p=i.tetherOffset,g=void 0===p?0:p,m=De(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),b=ge(e.placement),v=me(e.placement),y=!v,x=be(b),_="x"===x?"y":"x",w=e.modifiersData.popperOffsets,k=e.rects.reference,M=e.rects.popper,S="function"==typeof g?g(Object.assign({},e.rects,{placement:e.placement})):g,O="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(w){if(o){var T,C="y"===x?Kt:te,P="y"===x?Qt:Zt,L="y"===x?"height":"width",D=w[x],I=D+m[C],R=D-m[P],j=f?-M[L]/2:0,F=v===ne?k[L]:M[L],z=v===ne?-M[L]:-k[L],N=e.elements.arrow,B=f&&N?$t(N):{width:0,height:0},W=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=W[C],H=W[P],$=Ie(0,k[L],B[L]),U=y?k[L]/2-j-$-V-O.mainAxis:F-$-V-O.mainAxis,q=y?-k[L]/2+j+$+H+O.mainAxis:z+$+H+O.mainAxis,Y=e.elements.arrow&&Gt(e.elements.arrow),X=Y?"y"===x?Y.clientTop||0:Y.clientLeft||0:0,J=null!=(T=null==E?void 0:E[x])?T:0,G=D+q-J,K=Ie(f?Lt(I,D+U-J-X):I,D,f?Pt(R,G):R);w[x]=K,A[x]=K-D}if(a){var Q,Z="x"===x?Kt:te,tt="x"===x?Qt:Zt,et=w[_],it="y"===_?"height":"width",nt=et+m[Z],st=et-m[tt],ot=-1!==[Kt,te].indexOf(b),rt=null!=(Q=null==E?void 0:E[_])?Q:0,at=ot?nt:et-k[it]-M[it]-rt+O.altAxis,lt=ot?et+k[it]+M[it]-rt-O.altAxis:st,ct=f&&ot?function(t,e,i){var n=Ie(t,e,i);return n>i?i:n}(at,et,lt):Ie(f?at:nt,et,f?lt:st);w[_]=ct,A[_]=ct-et}e.modifiersData[n]=A}},requiresIfExists:["offset"]};const je={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=t.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,a=ge(i.placement),l=be(a),c=[te,Zt].indexOf(a)>=0?"height":"width";if(o&&r){var h=function(t,e){return Pe("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Le(t,ie))}(s.padding,i),d=$t(o),u="y"===l?Kt:te,f="y"===l?Qt:Zt,p=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],g=r[l]-i.rects.reference[l],m=Gt(o),b=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,v=p/2-g/2,y=h[u],x=b-d[c]-h[f],_=b/2-d[c]/2+v,w=Ie(y,_,x),k=l;i.modifiersData[n]=((e={})[k]=w,e.centerOffset=w-_,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&Ee(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fe(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function ze(t){return[Kt,Zt,Qt,te].some(function(e){return t[e]>=0})}var Ne=fe({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=Et(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach(function(t){t.addEventListener("scroll",i.update,pe)}),a&&l.addEventListener("resize",i.update,pe),function(){o&&c.forEach(function(t){t.removeEventListener("scroll",i.update,pe)}),a&&l.removeEventListener("resize",i.update,pe)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=ve({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:ge(e.placement),variation:me(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,xe(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,xe(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},_e,we,{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,h=i.boundary,d=i.rootBoundary,u=i.altBoundary,f=i.flipVariations,p=void 0===f||f,g=i.allowedAutoPlacements,m=e.options.placement,b=ge(m),v=l||(b===m||!p?[Me(m)]:function(t){if(ge(t)===ee)return[];var e=Me(t);return[Oe(t),e,Oe(e)]}(m)),y=[m].concat(v).reduce(function(t,i){return t.concat(ge(i)===ee?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?le:l,h=me(n),d=h?a?ae:ae.filter(function(t){return me(t)===h}):ie,u=d.filter(function(t){return c.indexOf(t)>=0});0===u.length&&(u=d);var f=u.reduce(function(e,i){return e[i]=De(t,{placement:i,boundary:s,rootBoundary:o,padding:r})[ge(i)],e},{});return Object.keys(f).sort(function(t,e){return f[t]-f[e]})}(e,{placement:i,boundary:h,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):i)},[]),x=e.rects.reference,_=e.rects.popper,w=new Map,k=!0,M=y[0],S=0;S=0,C=T?"width":"height",P=De(e,{placement:O,boundary:h,rootBoundary:d,altBoundary:u,padding:c}),L=T?A?Zt:te:A?Qt:Kt;x[C]>_[C]&&(L=Me(L));var D=Me(L),I=[];if(o&&I.push(P[E]<=0),a&&I.push(P[L]<=0,P[D]<=0),I.every(function(t){return t})){M=O,k=!1;break}w.set(O,I)}if(k)for(var R=function(t){var e=y.find(function(e){var i=w.get(e);if(i)return i.slice(0,t).every(function(t){return t})});if(e)return M=e,"break"},j=p?3:1;j>0;j--){if("break"===R(j))break}e.placement!==M&&(e.modifiersData[n]._skip=!0,e.placement=M,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},Re,je,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=De(e,{elementContext:"reference"}),a=De(e,{altBoundary:!0}),l=Fe(r,n),c=Fe(a,s,o),h=ze(l),d=ze(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}}]}),Be="tippy-content",We="tippy-backdrop",Ve="tippy-arrow",He="tippy-svg-arrow",$e={passive:!0,capture:!0},Ue=function(){return document.body};function qe(t,e,i){if(Array.isArray(t)){var n=t[e];return n??(Array.isArray(i)?i[e]:i)}return t}function Ye(t,e){var i={}.toString.call(t);return 0===i.indexOf("[object")&&i.indexOf(e+"]")>-1}function Xe(t,e){return"function"==typeof t?t.apply(void 0,e):t}function Je(t,e){return 0===e?t:function(n){clearTimeout(i),i=setTimeout(function(){t(n)},e)};var i}function Ge(t){return[].concat(t)}function Ke(t,e){-1===t.indexOf(e)&&t.push(e)}function Qe(t){return t.split("-")[0]}function Ze(t){return[].slice.call(t)}function ti(t){return Object.keys(t).reduce(function(e,i){return void 0!==t[i]&&(e[i]=t[i]),e},{})}function ei(){return document.createElement("div")}function ii(t){return["Element","Fragment"].some(function(e){return Ye(t,e)})}function ni(t){return Ye(t,"MouseEvent")}function si(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function oi(t){return ii(t)?[t]:function(t){return Ye(t,"NodeList")}(t)?Ze(t):Array.isArray(t)?t:Ze(document.querySelectorAll(t))}function ri(t,e){t.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function ai(t,e){t.forEach(function(t){t&&t.setAttribute("data-state",e)})}function li(t){var e,i=Ge(t)[0];return null!=i&&null!=(e=i.ownerDocument)&&e.body?i.ownerDocument:document}function ci(t,e,i){var n=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(e){t[n](e,i)})}function hi(t,e){for(var i=e;i;){var n;if(t.contains(i))return!0;i=null==i.getRootNode||null==(n=i.getRootNode())?void 0:n.host}return!1}var di={isTouch:!1},ui=0;function fi(){di.isTouch||(di.isTouch=!0,window.performance&&document.addEventListener("mousemove",pi))}function pi(){var t=performance.now();t-ui<20&&(di.isTouch=!1,document.removeEventListener("mousemove",pi)),ui=t}function gi(){var t=document.activeElement;if(si(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}var mi=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var bi={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},vi=Object.assign({appendTo:Ue,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},bi,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),yi=Object.keys(vi);function xi(t){var e=(t.plugins||[]).reduce(function(e,i){var n,s=i.name,o=i.defaultValue;s&&(e[s]=void 0!==t[s]?t[s]:null!=(n=vi[s])?n:o);return e},{});return Object.assign({},t,e)}function _i(t,e){var i=Object.assign({},e,{content:Xe(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(xi(Object.assign({},vi,{plugins:e}))):yi).reduce(function(e,i){var n=(t.getAttribute("data-tippy-"+i)||"").trim();if(!n)return e;if("content"===i)e[i]=n;else try{e[i]=JSON.parse(n)}catch(t){e[i]=n}return e},{})}(t,e.plugins));return i.aria=Object.assign({},vi.aria,i.aria),i.aria={expanded:"auto"===i.aria.expanded?e.interactive:i.aria.expanded,content:"auto"===i.aria.content?e.interactive?null:"describedby":i.aria.content},i}function wi(t,e){t.innerHTML=e}function ki(t){var e=ei();return!0===t?e.className=Ve:(e.className=He,ii(t)?e.appendChild(t):wi(e,t)),e}function Mi(t,e){ii(e.content)?(wi(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?wi(t,e.content):t.textContent=e.content)}function Si(t){var e=t.firstElementChild,i=Ze(e.children);return{box:e,content:i.find(function(t){return t.classList.contains(Be)}),arrow:i.find(function(t){return t.classList.contains(Ve)||t.classList.contains(He)}),backdrop:i.find(function(t){return t.classList.contains(We)})}}function Oi(t){var e=ei(),i=ei();i.className="tippy-box",i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var n=ei();function s(i,n){var s=Si(e),o=s.box,r=s.content,a=s.arrow;n.theme?o.setAttribute("data-theme",n.theme):o.removeAttribute("data-theme"),"string"==typeof n.animation?o.setAttribute("data-animation",n.animation):o.removeAttribute("data-animation"),n.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?o.setAttribute("role",n.role):o.removeAttribute("role"),i.content===n.content&&i.allowHTML===n.allowHTML||Mi(r,t.props),n.arrow?a?i.arrow!==n.arrow&&(o.removeChild(a),o.appendChild(ki(n.arrow))):o.appendChild(ki(n.arrow)):a&&o.removeChild(a)}return n.className=Be,n.setAttribute("data-state","hidden"),Mi(n,t.props),e.appendChild(i),i.appendChild(n),s(t.props,t.props),{popper:e,onUpdate:s}}Oi.$$tippy=!0;var Ei=1,Ai=[],Ti=[];function Ci(t,e){var i,n,s,o,r,a,l,c,h=_i(t,Object.assign({},vi,xi(ti(e)))),d=!1,u=!1,f=!1,p=!1,g=[],m=Je(Y,h.interactiveDebounce),b=Ei++,v=(c=h.plugins).filter(function(t,e){return c.indexOf(t)===e}),y={id:b,reference:t,popper:ei(),popperInstance:null,props:h,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(n),cancelAnimationFrame(s)},setProps:function(e){0;if(y.state.isDestroyed)return;D("onBeforeUpdate",[y,e]),U();var i=y.props,n=_i(t,Object.assign({},i,ti(e),{ignoreAttributes:!0}));y.props=n,$(),i.interactiveDebounce!==n.interactiveDebounce&&(j(),m=Je(Y,n.interactiveDebounce));i.triggerTarget&&!n.triggerTarget?Ge(i.triggerTarget).forEach(function(t){t.removeAttribute("aria-expanded")}):n.triggerTarget&&t.removeAttribute("aria-expanded");R(),L(),w&&w(i,n);y.popperInstance&&(K(),Z().forEach(function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)}));D("onAfterUpdate",[y,e])},setContent:function(t){y.setProps({content:t})},show:function(){0;var t=y.state.isVisible,e=y.state.isDestroyed,i=!y.state.isEnabled,n=di.isTouch&&!y.props.touch,s=qe(y.props.duration,0,vi.duration);if(t||e||i||n)return;if(A().hasAttribute("disabled"))return;if(D("onShow",[y],!1),!1===y.props.onShow(y))return;y.state.isVisible=!0,E()&&(_.style.visibility="visible");L(),B(),y.state.isMounted||(_.style.transition="none");if(E()){var o=C();ri([o.box,o.content],0)}a=function(){var t;if(y.state.isVisible&&!p){if(p=!0,_.offsetHeight,_.style.transition=y.props.moveTransition,E()&&y.props.animation){var e=C(),i=e.box,n=e.content;ri([i,n],s),ai([i,n],"visible")}I(),R(),Ke(Ti,y),null==(t=y.popperInstance)||t.forceUpdate(),D("onMount",[y]),y.props.animation&&E()&&function(t,e){V(t,e)}(s,function(){y.state.isShown=!0,D("onShown",[y])})}},function(){var t,e=y.props.appendTo,i=A();t=y.props.interactive&&e===Ue||"parent"===e?i.parentNode:Xe(e,[i]);t.contains(_)||t.appendChild(_);y.state.isMounted=!0,K(),!1}()},hide:function(){0;var t=!y.state.isVisible,e=y.state.isDestroyed,i=!y.state.isEnabled,n=qe(y.props.duration,1,vi.duration);if(t||e||i)return;if(D("onHide",[y],!1),!1===y.props.onHide(y))return;y.state.isVisible=!1,y.state.isShown=!1,p=!1,d=!1,E()&&(_.style.visibility="hidden");if(j(),W(),L(!0),E()){var s=C(),o=s.box,r=s.content;y.props.animation&&(ri([o,r],n),ai([o,r],"hidden"))}I(),R(),y.props.animation?E()&&function(t,e){V(t,function(){!y.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&e()})}(n,y.unmount):y.unmount()},hideWithInteractivity:function(t){0;T().addEventListener("mousemove",m),Ke(Ai,m),m(t)},enable:function(){y.state.isEnabled=!0},disable:function(){y.hide(),y.state.isEnabled=!1},unmount:function(){0;y.state.isVisible&&y.hide();if(!y.state.isMounted)return;Q(),Z().forEach(function(t){t._tippy.unmount()}),_.parentNode&&_.parentNode.removeChild(_);Ti=Ti.filter(function(t){return t!==y}),y.state.isMounted=!1,D("onHidden",[y])},destroy:function(){0;if(y.state.isDestroyed)return;y.clearDelayTimeouts(),y.unmount(),U(),delete t._tippy,y.state.isDestroyed=!0,D("onDestroy",[y])}};if(!h.render)return y;var x=h.render(y),_=x.popper,w=x.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+y.id,y.popper=_,t._tippy=y,_._tippy=y;var k=v.map(function(t){return t.fn(y)}),M=t.hasAttribute("aria-expanded");return $(),R(),L(),D("onCreate",[y]),h.showOnCreate&&tt(),_.addEventListener("mouseenter",function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),_.addEventListener("mouseleave",function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&T().addEventListener("mousemove",m)}),y;function S(){var t=y.props.touch;return Array.isArray(t)?t:[t,0]}function O(){return"hold"===S()[0]}function E(){var t;return!(null==(t=y.props.render)||!t.$$tippy)}function A(){return l||t}function T(){var t=A().parentNode;return t?li(t):document}function C(){return Si(_)}function P(t){return y.state.isMounted&&!y.state.isVisible||di.isTouch||o&&"focus"===o.type?0:qe(y.props.delay,t?0:1,vi.delay)}function L(t){void 0===t&&(t=!1),_.style.pointerEvents=y.props.interactive&&!t?"":"none",_.style.zIndex=""+y.props.zIndex}function D(t,e,i){var n;(void 0===i&&(i=!0),k.forEach(function(i){i[t]&&i[t].apply(i,e)}),i)&&(n=y.props)[t].apply(n,e)}function I(){var e=y.props.aria;if(e.content){var i="aria-"+e.content,n=_.id;Ge(y.props.triggerTarget||t).forEach(function(t){var e=t.getAttribute(i);if(y.state.isVisible)t.setAttribute(i,e?e+" "+n:n);else{var s=e&&e.replace(n,"").trim();s?t.setAttribute(i,s):t.removeAttribute(i)}})}}function R(){!M&&y.props.aria.expanded&&Ge(y.props.triggerTarget||t).forEach(function(t){y.props.interactive?t.setAttribute("aria-expanded",y.state.isVisible&&t===A()?"true":"false"):t.removeAttribute("aria-expanded")})}function j(){T().removeEventListener("mousemove",m),Ai=Ai.filter(function(t){return t!==m})}function F(e){if(!di.isTouch||!f&&"mousedown"!==e.type){var i=e.composedPath&&e.composedPath()[0]||e.target;if(!y.props.interactive||!hi(_,i)){if(Ge(y.props.triggerTarget||t).some(function(t){return hi(t,i)})){if(di.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[y,e]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),u=!0,setTimeout(function(){u=!1}),y.state.isMounted||W())}}}function z(){f=!0}function N(){f=!1}function B(){var t=T();t.addEventListener("mousedown",F,!0),t.addEventListener("touchend",F,$e),t.addEventListener("touchstart",N,$e),t.addEventListener("touchmove",z,$e)}function W(){var t=T();t.removeEventListener("mousedown",F,!0),t.removeEventListener("touchend",F,$e),t.removeEventListener("touchstart",N,$e),t.removeEventListener("touchmove",z,$e)}function V(t,e){var i=C().box;function n(t){t.target===i&&(ci(i,"remove",n),e())}if(0===t)return e();ci(i,"remove",r),ci(i,"add",n),r=n}function H(e,i,n){void 0===n&&(n=!1),Ge(y.props.triggerTarget||t).forEach(function(t){t.addEventListener(e,i,n),g.push({node:t,eventType:e,handler:i,options:n})})}function $(){var t;O()&&(H("touchstart",q,{passive:!0}),H("touchend",X,{passive:!0})),(t=y.props.trigger,t.split(/\s+/).filter(Boolean)).forEach(function(t){if("manual"!==t)switch(H(t,q),t){case"mouseenter":H("mouseleave",X);break;case"focus":H(mi?"focusout":"blur",J);break;case"focusin":H("focusout",J)}})}function U(){g.forEach(function(t){var e=t.node,i=t.eventType,n=t.handler,s=t.options;e.removeEventListener(i,n,s)}),g=[]}function q(t){var e,i=!1;if(y.state.isEnabled&&!G(t)&&!u){var n="focus"===(null==(e=o)?void 0:e.type);o=t,l=t.currentTarget,R(),!y.state.isVisible&&ni(t)&&Ai.forEach(function(e){return e(t)}),"click"===t.type&&(y.props.trigger.indexOf("mouseenter")<0||d)&&!1!==y.props.hideOnClick&&y.state.isVisible?i=!0:tt(t),"click"===t.type&&(d=!i),i&&!n&&et(t)}}function Y(t){var e=t.target,i=A().contains(e)||_.contains(e);if("mousemove"!==t.type||!i){var n=Z().concat(_).map(function(t){var e,i=null==(e=t._tippy.popperInstance)?void 0:e.state;return i?{popperRect:t.getBoundingClientRect(),popperState:i,props:h}:null}).filter(Boolean);(function(t,e){var i=e.clientX,n=e.clientY;return t.every(function(t){var e=t.popperRect,s=t.popperState,o=t.props.interactiveBorder,r=Qe(s.placement),a=s.modifiersData.offset;if(!a)return!0;var l="bottom"===r?a.top.y:0,c="top"===r?a.bottom.y:0,h="right"===r?a.left.x:0,d="left"===r?a.right.x:0,u=e.top-n+l>o,f=n-e.bottom-c>o,p=e.left-i+h>o,g=i-e.right-d>o;return u||f||p||g})})(n,t)&&(j(),et(t))}}function X(t){G(t)||y.props.trigger.indexOf("click")>=0&&d||(y.props.interactive?y.hideWithInteractivity(t):et(t))}function J(t){y.props.trigger.indexOf("focusin")<0&&t.target!==A()||y.props.interactive&&t.relatedTarget&&_.contains(t.relatedTarget)||et(t)}function G(t){return!!di.isTouch&&O()!==t.type.indexOf("touch")>=0}function K(){Q();var e=y.props,i=e.popperOptions,n=e.placement,s=e.offset,o=e.getReferenceClientRect,r=e.moveTransition,l=E()?Si(_).arrow:null,c=o?{getBoundingClientRect:o,contextElement:o.contextElement||A()}:t,h={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(E()){var i=C().box;["placement","reference-hidden","escaped"].forEach(function(t){"placement"===t?i.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?i.setAttribute("data-"+t,""):i.removeAttribute("data-"+t)}),e.attributes.popper={}}}},d=[{name:"offset",options:{offset:s}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!r}},h];E()&&l&&d.push({name:"arrow",options:{element:l,padding:3}}),d.push.apply(d,(null==i?void 0:i.modifiers)||[]),y.popperInstance=Ne(c,_,Object.assign({},i,{placement:n,onFirstUpdate:a,modifiers:d}))}function Q(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function Z(){return Ze(_.querySelectorAll("[data-tippy-root]"))}function tt(t){y.clearDelayTimeouts(),t&&D("onTrigger",[y,t]),B();var e=P(!0),n=S(),s=n[0],o=n[1];di.isTouch&&"hold"===s&&o&&(e=o),e?i=setTimeout(function(){y.show()},e):y.show()}function et(t){if(y.clearDelayTimeouts(),D("onUntrigger",[y,t]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&d)){var e=P(!1);e?n=setTimeout(function(){y.state.isVisible&&y.hide()},e):s=requestAnimationFrame(function(){y.hide()})}}else W()}}function Pi(t,e){void 0===e&&(e={});var i=vi.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",fi,$e),window.addEventListener("blur",gi);var n=Object.assign({},e,{plugins:i}),s=oi(t).reduce(function(t,e){var i=e&&Ci(e,n);return i&&t.push(i),t},[]);return ii(t)?s[0]:s}Pi.defaultProps=vi,Pi.setDefaultProps=function(t){Object.keys(t).forEach(function(e){vi[e]=t[e]})},Pi.currentInput=di;Object.assign({},_e,{effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow)}});Pi.setDefaultProps({render:Oi});const Li=Pi;var Di=i(951),Ii=i.n(Di);const Ri={controlled:null,bind(t){this.controlled=t,this.controlled.forEach(t=>{this._main(t)}),this._init()},_init(){this.controlled.forEach(t=>{this._checkUp(t)})},_main(t){const e=JSON.parse(t.dataset.main);t.dataset.size&&(t.filesize=parseInt(t.dataset.size,10)),t.mains=e.map(e=>{const i=document.getElementById(e),n=document.getElementById(e+"_size_wrapper");return n&&(i.filesize=0,i.sizespan=n),this._addChild(i,t),i}),this._bindEvents(t),t.mains.forEach(t=>{this._bindEvents(t)})},_bindEvents(t){t.eventBound||(t.addEventListener("click",e=>{const i=e.target;i.elements&&(this._checkDown(i),this._evaluateSize(i)),i.mains&&this._checkUp(t)}),t.eventBound=!0)},_addChild(t,e){const i=t.elements?t.elements:[];-1===i.indexOf(e)&&(i.push(e),t.elements=i)},_removeChild(t,e){const i=t.elements.indexOf(e);-1{e.checked!==t.checked&&(e.checked=t.checked,e.disabled&&(e.checked=!1),e.dispatchEvent(new Event("change")))}),t.elements.forEach(e=>{this._checkDown(e),e.elements||this._checkUp(e,t)}))},_checkUp(t,e){t.mains&&[...t.mains].forEach(t=>{t!==e&&this._evaluateCheckStatus(t),this._checkUp(t),this._evaluateSize(t)})},_evaluateCheckStatus(t){let e=0,i=t.classList.contains("partial");i&&(t.classList.remove("partial"),i=!1),t.elements.forEach(n=>{null!==n.parentNode?(e+=n.checked,n.classList.contains("partial")&&(i=!0)):this._removeChild(t,n)});let n="some";e===t.elements.length?n="on":0===e?n="off":i=!0,i&&t.classList.add("partial");const s="off"!==n;t.checked===s&&t.value===n||(t.value=n,t.checked=s,t.dispatchEvent(new Event("change")))},_evaluateSize(t){if(t.sizespan&&t.elements){t.filesize=0,t.elements.forEach(e=>{e.checked&&(t.filesize+=e.filesize)});let e=null;0Math.max(Math.min(t,i),e);function Wi(t){return Bi(Ni(2.55*t),0,255)}function Vi(t){return Bi(Ni(255*t),0,255)}function Hi(t){return Bi(Ni(t/2.55)/100,0,1)}function $i(t){return Bi(Ni(100*t),0,100)}const Ui={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},qi=[..."0123456789ABCDEF"],Yi=t=>qi[15&t],Xi=t=>qi[(240&t)>>4]+qi[15&t],Ji=t=>(240&t)>>4==(15&t);function Gi(t){var e=(t=>Ji(t.r)&&Ji(t.g)&&Ji(t.b)&&Ji(t.a))(t)?Yi:Xi;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const Ki=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Qi(t,e,i){const n=e*Math.min(i,1-i),s=(e,s=(e+t/30)%12)=>i-n*Math.max(Math.min(s-3,9-s,1),-1);return[s(0),s(8),s(4)]}function Zi(t,e,i){const n=(n,s=(n+t/60)%6)=>i-i*e*Math.max(Math.min(s,4-s,1),0);return[n(5),n(3),n(1)]}function tn(t,e,i){const n=Qi(t,1,.5);let s;for(e+i>1&&(s=1/(e+i),e*=s,i*=s),s=0;s<3;s++)n[s]*=1-e-i,n[s]+=e;return n}function en(t){const e=t.r/255,i=t.g/255,n=t.b/255,s=Math.max(e,i,n),o=Math.min(e,i,n),r=(s+o)/2;let a,l,c;return s!==o&&(c=s-o,l=r>.5?c/(2-s-o):c/(s+o),a=function(t,e,i,n,s){return t===s?(e-i)/n+(e>16&255,o>>8&255,255&o]}return t}(),cn.transparent=[0,0,0,0]);const e=cn[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const dn=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const un=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,fn=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function pn(t,e,i){if(t){let n=en(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*i,0===e?360:1)),n=sn(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function gn(t,e){return t?Object.assign(e||{},t):t}function mn(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Vi(t[3]))):(e=gn(t,{r:0,g:0,b:0,a:1})).a=Vi(e.a),e}function bn(t){return"r"===t.charAt(0)?function(t){const e=dn.exec(t);let i,n,s,o=255;if(e){if(e[7]!==i){const t=+e[7];o=e[8]?Wi(t):Bi(255*t,0,255)}return i=+e[1],n=+e[3],s=+e[5],i=255&(e[2]?Wi(i):Bi(i,0,255)),n=255&(e[4]?Wi(n):Bi(n,0,255)),s=255&(e[6]?Wi(s):Bi(s,0,255)),{r:i,g:n,b:s,a:o}}}(t):rn(t)}class vn{constructor(t){if(t instanceof vn)return t;const e=typeof t;let i;var n,s,o;"object"===e?i=mn(t):"string"===e&&(o=(n=t).length,"#"===n[0]&&(4===o||5===o?s={r:255&17*Ui[n[1]],g:255&17*Ui[n[2]],b:255&17*Ui[n[3]],a:5===o?17*Ui[n[4]]:255}:7!==o&&9!==o||(s={r:Ui[n[1]]<<4|Ui[n[2]],g:Ui[n[3]]<<4|Ui[n[4]],b:Ui[n[5]]<<4|Ui[n[6]],a:9===o?Ui[n[7]]<<4|Ui[n[8]]:255})),i=s||hn(t)||bn(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=gn(this._rgb);return t&&(t.a=Hi(t.a)),t}set rgb(t){this._rgb=mn(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Hi(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?Gi(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=en(t),i=e[0],n=$i(e[1]),s=$i(e[2]);return t.a<255?`hsla(${i}, ${n}%, ${s}%, ${Hi(t.a)})`:`hsl(${i}, ${n}%, ${s}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,n=t.rgb;let s;const o=e===s?.5:e,r=2*o-1,a=i.a-n.a,l=((r*a===-1?r:(r+a)/(1+r*a))+1)/2;s=1-l,i.r=255&l*i.r+s*n.r+.5,i.g=255&l*i.g+s*n.g+.5,i.b=255&l*i.b+s*n.b+.5,i.a=o*i.a+(1-o)*n.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const n=fn(Hi(t.r)),s=fn(Hi(t.g)),o=fn(Hi(t.b));return{r:Vi(un(n+i*(fn(Hi(e.r))-n))),g:Vi(un(s+i*(fn(Hi(e.g))-s))),b:Vi(un(o+i*(fn(Hi(e.b))-o))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new vn(this.rgb)}alpha(t){return this._rgb.a=Vi(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=Ni(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return pn(this._rgb,2,t),this}darken(t){return pn(this._rgb,2,-t),this}saturate(t){return pn(this._rgb,1,t),this}desaturate(t){return pn(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=en(t);i[0]=on(i[0]+e),i=sn(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function yn(){}const xn=(()=>{let t=0;return()=>t++})();function _n(t){return null==t}function wn(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function kn(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function Mn(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function Sn(t,e){return Mn(t)?t:e}function On(t,e){return void 0===t?e:t}const En=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function An(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function Tn(t,e,i,n){let s,o,r;if(wn(t))if(o=t.length,n)for(s=o-1;s>=0;s--)e.call(i,t[s],s);else for(s=0;st,x:t=>t.x,y:t=>t.y};function zn(t,e){const i=Fn[e]||(Fn[e]=function(t){const e=function(t){const e=t.split("."),i=[];let n="";for(const t of e)n+=t,n.endsWith("\\")?n=n.slice(0,-1)+".":(i.push(n),n="");return i}(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function Nn(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Bn=t=>void 0!==t,Wn=t=>"function"==typeof t,Vn=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};const Hn=Math.PI,$n=2*Hn,Un=$n+Hn,qn=Number.POSITIVE_INFINITY,Yn=Hn/180,Xn=Hn/2,Jn=Hn/4,Gn=2*Hn/3,Kn=Math.log10,Qn=Math.sign;function Zn(t,e,i){return Math.abs(t-e)l&&c=Math.min(e,i)-n&&t<=Math.max(e,i)+n}function fs(t,e,i){i=i||(i=>t[i]1;)n=o+s>>1,i(n)?o=n:s=n;return{lo:o,hi:s}}const ps=(t,e,i,n)=>fs(t,i,n?n=>{const s=t[n][e];return st[n][e]fs(t,i,n=>t[n][e]>=i);const ms=["push","pop","shift","splice","unshift"];function bs(t,e){const i=t._chartjs;if(!i)return;const n=i.listeners,s=n.indexOf(e);-1!==s&&n.splice(s,1),n.length>0||(ms.forEach(e=>{delete t[e]}),delete t._chartjs)}function vs(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const ys="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function xs(t,e){let i=[],n=!1;return function(...s){i=s,n||(n=!0,ys.call(window,()=>{n=!1,t.apply(e,i)}))}}const _s=t=>"start"===t?"left":"end"===t?"right":"center",ws=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2;function ks(t,e,i){const n=e.length;let s=0,o=n;if(t._sorted){const{iScale:r,vScale:a,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,h=r.axis,{min:d,max:u,minDefined:f,maxDefined:p}=r.getUserBounds();if(f){if(s=Math.min(ps(l,h,d).lo,i?n:ps(e,h,r.getPixelForValue(d)).lo),c){const t=l.slice(0,s+1).reverse().findIndex(t=>!_n(t[a.axis]));s-=Math.max(0,t)}s=ds(s,0,n-1)}if(p){let t=Math.max(ps(l,r.axis,u,!0).hi+1,i?0:ps(e,h,r.getPixelForValue(u),!0).hi+1);if(c){const e=l.slice(t-1).findIndex(t=>!_n(t[a.axis]));t+=Math.max(0,e)}o=ds(t,s,n)-s}else o=n-s}return{start:s,count:o}}function Ms(t){const{xScale:e,yScale:i,_scaleRanges:n}=t,s={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!n)return t._scaleRanges=s,!0;const o=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,s),o}const Ss=t=>0===t||1===t,Os=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*$n/i),Es=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*$n/i)+1,As={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*Xn),easeOutSine:t=>Math.sin(t*Xn),easeInOutSine:t=>-.5*(Math.cos(Hn*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>Ss(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Ss(t)?t:Os(t,.075,.3),easeOutElastic:t=>Ss(t)?t:Es(t,.075,.3),easeInOutElastic(t){const e=.1125;return Ss(t)?t:t<.5?.5*Os(2*t,e,.45):.5+.5*Es(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-As.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*As.easeInBounce(2*t):.5*As.easeOutBounce(2*t-1)+.5};function Ts(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Cs(t){return Ts(t)?t:new vn(t)}function Ps(t){return Ts(t)?t:new vn(t).saturate(.5).darken(.1).hexString()}const Ls=["x","y","borderWidth","radius","tension"],Ds=["color","borderColor","backgroundColor"];const Is=new Map;function Rs(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let n=Is.get(i);return n||(n=new Intl.NumberFormat(t,e),Is.set(i,n)),n}(e,i).format(t)}const js={values:t=>wn(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const n=this.chart.options.locale;let s,o=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(s="scientific"),o=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t));return i}(t,i)}const r=Kn(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Rs(t,n,l)},logarithmic(t,e,i){if(0===t)return"0";const n=i[e].significand||t/Math.pow(10,Math.floor(Kn(t)));return[1,2,3,5,10,15].includes(n)||e>.8*i.length?js.numeric.call(this,t,e,i):""}};var Fs={formatters:js};const zs=Object.create(null),Ns=Object.create(null);function Bs(t,e){if(!e)return t;const i=e.split(".");for(let e=0,n=i.length;et.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Ps(e.backgroundColor),this.hoverBorderColor=(t,e)=>Ps(e.borderColor),this.hoverColor=(t,e)=>Ps(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return Ws(this,t,e)}get(t){return Bs(this,t)}describe(t,e){return Ws(Ns,t,e)}override(t,e){return Ws(zs,t,e)}route(t,e,i,n){const s=Bs(this,t),o=Bs(this,i),r="_"+e;Object.defineProperties(s,{[r]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[r],e=o[n];return kn(t)?Object.assign({},e,t):On(t,e)},set(t){this[r]=t}}})}apply(t){t.forEach(t=>t(this))}}var Hs=new Vs({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:Ds},numbers:{type:"number",properties:Ls}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Fs.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function $s(t,e,i,n,s){let o=e[s];return o||(o=e[s]=t.measureText(s).width,i.push(s)),o>n&&(n=o),n}function Us(t,e,i,n){let s=(n=n||{}).data=n.data||{},o=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(s=n.data={},o=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let r=0;const a=i.length;let l,c,h,d,u;for(l=0;li.length){for(l=0;l0&&t.stroke()}}function Gs(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.xe.top-i&&t.y0&&""!==o.strokeColor;let l,c;for(t.save(),t.font=s.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),_n(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,o),l=0;l+t||0;function co(t,e){const i={},n=kn(e),s=n?Object.keys(e):e,o=kn(t)?n?i=>On(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of s)i[t]=lo(o(t));return i}function ho(t){return co(t,{top:"y",right:"x",bottom:"y",left:"x"})}function uo(t){return co(t,["topLeft","topRight","bottomLeft","bottomRight"])}function fo(t){const e=ho(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function po(t,e){t=t||{},e=e||Hs.font;let i=On(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let n=On(t.style,e.style);n&&!(""+n).match(ro)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const s={family:On(t.family,e.family),lineHeight:ao(On(t.lineHeight,e.lineHeight),i),size:i,style:n,weight:On(t.weight,e.weight),string:""};return s.string=function(t){return!t||_n(t.size)||_n(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(s),s}function go(t,e,i,n){let s,o,r,a=!0;for(s=0,o=t.length;st[0]){const o=i||t;void 0===n&&(n=Ao("_fallback",t));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:n,_getTarget:s,override:i=>bo([i,...t],e,o,n)};return new Proxy(r,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,n)=>wo(i,n,()=>function(t,e,i,n){let s;for(const o of e)if(s=Ao(xo(o,t),i),void 0!==s)return _o(t,s)?Oo(i,n,t,s):s}(n,e,t,i)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>To(t).includes(e),ownKeys:t=>To(t),set(t,e,i){const n=t._storage||(t._storage=s());return t[e]=n[e]=i,delete t._keys,!0}})}function vo(t,e,i,n){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:yo(t,n),setContext:e=>vo(t,e,i,n),override:s=>vo(t.override(s),e,i,n)};return new Proxy(s,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>wo(t,e,()=>function(t,e,i){const{_proxy:n,_context:s,_subProxy:o,_descriptors:r}=t;let a=n[e];Wn(a)&&r.isScriptable(e)&&(a=function(t,e,i,n){const{_proxy:s,_context:o,_subProxy:r,_stack:a}=i;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(o,r||n);a.delete(t),_o(t,l)&&(l=Oo(s._scopes,s,t,l));return l}(e,a,t,i));wn(a)&&a.length&&(a=function(t,e,i,n){const{_proxy:s,_context:o,_subProxy:r,_descriptors:a}=i;if(void 0!==o.index&&n(t))return e[o.index%e.length];if(kn(e[0])){const i=e,n=s._scopes.filter(t=>t!==i);e=[];for(const l of i){const i=Oo(n,s,t,l);e.push(vo(i,o,r&&r[t],a))}}return e}(e,a,t,r.isIndexable));_o(e,a)&&(a=vo(a,s,o&&o[e],r));return a}(t,e,i)),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,n)=>(t[i]=n,delete e[i],!0)})}function yo(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:n=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:i,indexable:n,isScriptable:Wn(i)?i:()=>i,isIndexable:Wn(n)?n:()=>n}}const xo=(t,e)=>t?t+Nn(e):e,_o=(t,e)=>kn(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function wo(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const n=i();return t[e]=n,n}function ko(t,e,i){return Wn(t)?t(e,i):t}const Mo=(t,e)=>!0===t?e:"string"==typeof t?zn(e,t):void 0;function So(t,e,i,n,s){for(const o of e){const e=Mo(i,o);if(e){t.add(e);const o=ko(e._fallback,i,s);if(void 0!==o&&o!==i&&o!==n)return o}else if(!1===e&&void 0!==n&&i!==n)return null}return!1}function Oo(t,e,i,n){const s=e._rootScopes,o=ko(e._fallback,i,n),r=[...t,...s],a=new Set;a.add(n);let l=Eo(a,r,i,o||i,n);return null!==l&&((void 0===o||o===i||(l=Eo(a,r,o,l,n),null!==l))&&bo(Array.from(a),[""],s,o,()=>function(t,e,i){const n=t._getTarget();e in n||(n[e]={});const s=n[e];if(wn(s)&&kn(i))return i;return s||{}}(e,i,n)))}function Eo(t,e,i,n,s){for(;i;)i=So(t,e,i,n,s);return i}function Ao(t,e){for(const i of e){if(!i)continue;const e=i[t];if(void 0!==e)return e}}function To(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}(t._scopes)),e}function Co(t,e,i,n){const{iScale:s}=t,{key:o="r"}=this._parsing,r=new Array(n);let a,l,c,h;for(a=0,l=n;ae"x"===t?"y":"x";function Io(t,e,i,n){const s=t.skip?e:t,o=e,r=i.skip?e:i,a=as(o,s),l=as(r,o);let c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;const d=n*c,u=n*h;return{previous:{x:o.x-d*(r.x-s.x),y:o.y-d*(r.y-s.y)},next:{x:o.x+u*(r.x-s.x),y:o.y+u*(r.y-s.y)}}}function Ro(t,e="x"){const i=Do(e),n=t.length,s=Array(n).fill(0),o=Array(n);let r,a,l,c=Lo(t,0);for(r=0;r!t.skip)),"monotone"===e.cubicInterpolationMode)Ro(t,s);else{let i=n?t[t.length-1]:t[0];for(o=0,r=t.length;ot.ownerDocument.defaultView.getComputedStyle(t,null);const Vo=["top","right","bottom","left"];function Ho(t,e,i){const n={};i=i?"-"+i:"";for(let s=0;s<4;s++){const o=Vo[s];n[o]=parseFloat(t[e+"-"+o+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function $o(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:n}=e,s=Wo(i),o="border-box"===s.boxSizing,r=Ho(s,"padding"),a=Ho(s,"border","width"),{x:l,y:c,box:h}=function(t,e){const i=t.touches,n=i&&i.length?i[0]:t,{offsetX:s,offsetY:o}=n;let r,a,l=!1;if(((t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot))(s,o,t.target))r=s,a=o;else{const t=e.getBoundingClientRect();r=n.clientX-t.left,a=n.clientY-t.top,l=!0}return{x:r,y:a,box:l}}(t,i),d=r.left+(h&&a.left),u=r.top+(h&&a.top);let{width:f,height:p}=e;return o&&(f-=r.width+a.width,p-=r.height+a.height),{x:Math.round((l-d)/f*i.width/n),y:Math.round((c-u)/p*i.height/n)}}const Uo=t=>Math.round(10*t)/10;function qo(t,e,i,n){const s=Wo(t),o=Ho(s,"margin"),r=Bo(s.maxWidth,t,"clientWidth")||qn,a=Bo(s.maxHeight,t,"clientHeight")||qn,l=function(t,e,i){let n,s;if(void 0===e||void 0===i){const o=t&&No(t);if(o){const t=o.getBoundingClientRect(),r=Wo(o),a=Ho(r,"border","width"),l=Ho(r,"padding");e=t.width-l.width-a.width,i=t.height-l.height-a.height,n=Bo(r.maxWidth,o,"clientWidth"),s=Bo(r.maxHeight,o,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:n||qn,maxHeight:s||qn}}(t,e,i);let{width:c,height:h}=l;if("content-box"===s.boxSizing){const t=Ho(s,"border","width"),e=Ho(s,"padding");c-=e.width+t.width,h-=e.height+t.height}c=Math.max(0,c-o.width),h=Math.max(0,n?c/n:h-o.height),c=Uo(Math.min(c,r,l.maxWidth)),h=Uo(Math.min(h,a,l.maxHeight)),c&&!h&&(h=Uo(c/2));return(void 0!==e||void 0!==i)&&n&&l.height&&h>l.height&&(h=l.height,c=Uo(Math.floor(h*n))),{width:c,height:h}}function Yo(t,e,i){const n=e||1,s=Uo(t.height*n),o=Uo(t.width*n);t.height=Uo(t.height),t.width=Uo(t.width);const r=t.canvas;r.style&&(i||!r.style.height&&!r.style.width)&&(r.style.height=`${t.height}px`,r.style.width=`${t.width}px`);const a=Math.floor(s),l=Math.floor(o);return(t.currentDevicePixelRatio!==n||r.height!==a||r.width!==l)&&(t.currentDevicePixelRatio=n,r.height=a,r.width=l,t.ctx.setTransform(n,0,0,n,0,0),!0)}const Xo=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};zo()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function Jo(t,e){const i=function(t,e){return Wo(t).getPropertyValue(e)}(t,e),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Go(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function Ko(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:"middle"===n?i<.5?t.y:e.y:"after"===n?i<1?t.y:e.y:i>0?e.y:t.y}}function Qo(t,e,i,n){const s={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},r=Go(t,s,i),a=Go(s,o,i),l=Go(o,e,i),c=Go(r,a,i),h=Go(a,l,i);return Go(c,h,i)}function Zo(t,e,i){return t?function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,i):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function tr(t,e){let i,n;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,n=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=n)}function er(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function ir(t){return"angle"===t?{between:hs,compare:ls,normalize:cs}:{between:us,compare:(t,e)=>t-e,normalize:t=>t}}function nr({start:t,end:e,count:i,loop:n,style:s}){return{start:t%i,end:e%i,loop:n&&(e-t+1)%i==0,style:s}}function sr(t,e,i){if(!i)return[t];const{property:n,start:s,end:o}=i,r=e.length,{compare:a,between:l,normalize:c}=ir(n),{start:h,end:d,loop:u,style:f}=function(t,e,i){const{property:n,start:s,end:o}=i,{between:r,normalize:a}=ir(n),l=e.length;let c,h,{start:d,end:u,loop:f}=t;if(f){for(d+=l,u+=l,c=0,h=l;cv||l(s,b,g)&&0!==a(s,b),_=()=>!v||0===a(o,g)||l(o,b,g);for(let t=h,i=h;t<=d;++t)m=e[t%r],m.skip||(g=c(m[n]),g!==b&&(v=l(g,s,o),null===y&&x()&&(y=0===a(g,s)?t:i),null!==y&&_()&&(p.push(nr({start:y,end:t,loop:u,count:r,style:f})),y=null),i=t,b=g));return null!==y&&p.push(nr({start:y,end:d,loop:u,count:r,style:f})),p}function or(t,e){const i=[],n=t.segments;for(let s=0;sn({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=ys.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((i,n)=>{if(!i.running||!i.items.length)return;const s=i.items;let o,r=s.length-1,a=!1;for(;r>=0;--r)o=s[r],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),a=!0):(s[r]=s[s.length-1],s.pop());a&&(n.draw(),this._notify(n,i,t,"progress")),s.length||(i.running=!1,this._notify(n,i,t,"complete"),i.initial=!1),e+=s.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let n=i.length-1;for(;n>=0;--n)i[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var ur=new dr;const fr="transparent",pr={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const n=Cs(t||fr),s=n.valid&&Cs(e||fr);return s&&s.valid?s.mix(n,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class gr{constructor(t,e,i,n){const s=e[i];n=go([t.to,n,s,t.from]);const o=go([t.from,s,n]);this._active=!0,this._fn=t.fn||pr[t.type||typeof o],this._easing=As[t.easing]||As.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=o,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const n=this._target[this._prop],s=i-this._start,o=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=go([t.to,e,n,t.from]),this._from=go([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,n=this._prop,s=this._from,o=this._loop,r=this._to;let a;if(this._active=s!==r&&(o||e1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[n]=this._fn(s,r,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t{const s=t[n];if(!kn(s))return;const o={};for(const t of e)o[t]=s[t];(wn(s.properties)&&s.properties||[n]).forEach(t=>{t!==n&&i.has(t)||i.set(t,o)})})}_animateOptions(t,e){const i=e.options,n=function(t,e){if(!e)return;let i=t.options;if(!i)return void(t.options=e);i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}}));return i}(t,i);if(!n)return[];const s=this._createAnimations(n,i);return i.$shared&&function(t,e){const i=[],n=Object.keys(e);for(let e=0;e{t.options=i},()=>{}),s}_createAnimations(t,e){const i=this._properties,n=[],s=t.$animations||(t.$animations={}),o=Object.keys(e),r=Date.now();let a;for(a=o.length-1;a>=0;--a){const l=o[a];if("$"===l.charAt(0))continue;if("options"===l){n.push(...this._animateOptions(t,e));continue}const c=e[l];let h=s[l];const d=i.get(l);if(h){if(d&&h.active()){h.update(d,c,r);continue}h.cancel()}d&&d.duration?(s[l]=h=new gr(d,t,l,c),n.push(h)):t[l]=c}return n}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(ur.add(this._chart,i),!0):void 0}}function br(t,e){const i=t&&t.options||{},n=i.reverse,s=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:n?o:s,end:n?s:o}}function vr(t,e){const i=[],n=t._getSortedDatasetMetas(e);let s,o;for(s=0,o=n.length;s0||!i&&e<0)return s.index}return null}function kr(t,e){const{chart:i,_cachedMeta:n}=t,s=i._stacks||(i._stacks={}),{iScale:o,vScale:r,index:a}=n,l=o.axis,c=r.axis,h=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(o,r,n),d=e.length;let u;for(let t=0;ti[t].axis===e).shift()}function Sr(t,e){const i=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const t of e){const e=t._stacks;e&&void 0!==e[n]&&void 0!==e[n][i]&&(delete e[n][i],void 0!==e[n]._visualValues&&void 0!==e[n]._visualValues[i]&&delete e[n]._visualValues[i])}}}const Or=t=>"reset"===t||"none"===t,Er=(t,e)=>e?t:Object.assign({},t);class Ar{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=xr(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Sr(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),n=(t,e,i,n)=>"x"===t?e:"r"===t?n:i,s=e.xAxisID=On(i.xAxisID,Mr(t,"x")),o=e.yAxisID=On(i.yAxisID,Mr(t,"y")),r=e.rAxisID=On(i.rAxisID,Mr(t,"r")),a=e.indexAxis,l=e.iAxisID=n(a,s,o,r),c=e.vAxisID=n(a,o,s,r);e.xScale=this.getScaleForId(s),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(r),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&bs(this._data,this),t._stacked&&Sr(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(kn(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:i,vScale:n}=e,s="x"===i.axis?"x":"y",o="x"===n.axis?"x":"y",r=Object.keys(t),a=new Array(r.length);let l,c,h;for(l=0,c=r.length;l{const e="_onData"+Nn(t),i=n[t];Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value(...t){const s=i.apply(this,t);return n._chartjs.listeners.forEach(i=>{"function"==typeof i[e]&&i[e](...t)}),s}})}))),this._syncList=[],this._data=e}var n,s}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let n=!1;this._dataCheck();const s=e._stacked;e._stacked=xr(e.vScale,e),e.stack!==i.stack&&(n=!0,Sr(e),e.stack=i.stack),this._resyncElements(t),(n||s!==e._stacked)&&(kr(this,e._parsed),e._stacked=xr(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:n}=this,{iScale:s,_stacked:o}=i,r=s.axis;let a,l,c,h=0===t&&e===n.length||i._sorted,d=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=n,i._sorted=!0,c=n;else{c=wn(n[t])?this.parseArrayData(i,n,t,e):kn(n[t])?this.parseObjectData(i,n,t,e):this.parsePrimitiveData(i,n,t,e);const s=()=>null===l[r]||d&&l[r]t&&!e.hidden&&e._stacked&&{keys:vr(i,!0),values:null})(e,i,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:h}=function(t){const{min:e,max:i,minDefined:n,maxDefined:s}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:s?i:Number.POSITIVE_INFINITY}}(r);let d,u;function f(){u=n[d];const e=u[r.axis];return!Mn(u[t.axis])||c>e||h=0;--d)if(!f()){this.updateRangeFromParsed(l,t,u,a);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let n,s,o;for(n=0,s=e.length;n=0&&tthis.getContext(i,n,e),h);return f.$shared&&(f.$shared=a,s[o]=Object.freeze(Er(f,a))),f}_resolveAnimations(t,e,i){const n=this.chart,s=this._cachedDataOpts,o=`animation-${e}`,r=s[o];if(r)return r;let a;if(!1!==n.options.animation){const n=this.chart.config,s=n.datasetAnimationScopeKeys(this._type,e),o=n.getOptionScopes(this.getDataset(),s);a=n.createResolver(o,this.getContext(t,i,e))}const l=new mr(n,a&&a.animations);return a&&a._cacheable&&(s[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Or(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),n=this._sharedOptions,s=this.getSharedOptions(i),o=this.includeOptions(e,s)||s!==n;return this.updateSharedOptions(s,e,i),{sharedOptions:s,includeOptions:o}}updateElement(t,e,i,n){Or(n)?Object.assign(t,i):this._resolveAnimations(e,n).update(t,i)}updateSharedOptions(t,e,i){t&&!Or(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,n){t.active=n;const s=this.getStyle(e,n);this._resolveAnimations(e,i,n).update(t,{options:!n&&this.getSharedOptions(s)||s})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];const n=i.length,s=e.length,o=Math.min(s,n);o&&this.parse(0,o),s>n?this._insertElements(n,s-n,t):s{for(t.length+=e,r=t.length-1;r>=o;r--)t[r]=t[r-e]};for(a(s),r=t;rt-e))}return t._cache.$bar}(e,t.type);let n,s,o,r,a=e._length;const l=()=>{32767!==o&&-32768!==o&&(Bn(r)&&(a=Math.min(a,Math.abs(o-r)||a)),r=o)};for(n=0,s=i.length;nMath.abs(a)&&(l=a,c=r),e[i.axis]=c,e._custom={barStart:l,barEnd:c,start:s,end:o,min:r,max:a}}(t,e,i,n):e[i.axis]=i.parse(t,n),e}function Pr(t,e,i,n){const s=t.iScale,o=t.vScale,r=s.getLabels(),a=s===o,l=[];let c,h,d,u;for(c=i,h=i+n;ct.x,i="left",n="right"):(e=t.base"spacing"!==t&&"spacingMode"!==t,_indexable:t=>"spacing"!==t&&"spacingMode"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data,{labels:{pointStyle:i,textAlign:n,color:s,useBorderRadius:o,borderRadius:r}}=t.legend.options;return e.labels.length&&e.datasets.length?e.labels.map((e,a)=>{const l=t.getDatasetMeta(0).controller.getStyle(a);return{text:e,fillStyle:l.backgroundColor,fontColor:s,hidden:!t.getDataVisibility(a),lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:l.borderWidth,strokeStyle:l.borderColor,textAlign:n,pointStyle:i,borderRadius:o&&(r||l.borderRadius),index:a}}):[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=i;else{let s,o,r=t=>+i[t];if(kn(i[t])){const{key:t="value"}=this._parsing;r=e=>+zn(i[e],t)}for(s=t,o=t+e;shs(t,a,l,!0)?1:Math.max(e,e*i,n,n*i),p=(t,e,n)=>hs(t,a,l,!0)?-1:Math.min(e,e*i,n,n*i),g=f(0,c,d),m=f(Xn,h,u),b=p(Hn,c,d),v=p(Hn+Xn,h,u);n=(g-b)/2,s=(m-v)/2,o=-(g+b)/2,r=-(m+v)/2}return{ratioX:n,ratioY:s,offsetX:o,offsetY:r}}(u,d,a),b=(i.width-o)/f,v=(i.height-o)/p,y=Math.max(Math.min(b,v)/2,0),x=En(this.options.radius,y),_=(x-Math.max(x*a,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=m*x,n.total=this.calculateTotal(),this.outerRadius=x-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*h,0),this.updateElements(s,0,s.length,t)}_circumference(t,e){const i=this.options,n=this._cachedMeta,s=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===n._parsed[t]||n.data[t].hidden?0:this.calculateCircumference(n._parsed[t]*s/$n)}updateElements(t,e,i,n){const s="reset"===n,o=this.chart,r=o.chartArea,a=o.options.animation,l=(r.left+r.right)/2,c=(r.top+r.bottom)/2,h=s&&a.animateScale,d=h?0:this.innerRadius,u=h?0:this.outerRadius,{sharedOptions:f,includeOptions:p}=this._getSharedOptions(e,n);let g,m=this._getRotation();for(g=0;g0&&!isNaN(t)?$n*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=Rs(e._parsed[t],i.options.locale);return{label:n[t]||"",value:s}}getMaxBorderWidth(t){let e=0;const i=this.chart;let n,s,o,r,a;if(!t)for(n=0,s=i.data.datasets.length;n{const o=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:n,lineWidth:o.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=Rs(e._parsed[t].r,i.options.locale);return{label:n[t]||"",value:s}}parseObjectData(t,e,i,n){return Co.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((t,i)=>{const n=this.getParsed(i).r;!isNaN(n)&&this.chart.getDataVisibility(i)&&(ne.max&&(e.max=n))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,n=Math.min(e.right-e.left,e.bottom-e.top),s=Math.max(n/2,0),o=(s-Math.max(i.cutoutPercentage?s/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=s-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,i,n){const s="reset"===n,o=this.chart,r=o.options.animation,a=this._cachedMeta.rScale,l=a.xCenter,c=a.yCenter,h=a.getIndexAngle(0)-.5*Hn;let d,u=h;const f=360/this.countVisibleElements();for(d=0;d{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++}),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?ns(this.resolveDataElementOptions(t,e).angle||i):0}}var Nr=Object.freeze({__proto__:null,BarController:class extends Ar{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,i,n){return Pr(t,e,i,n)}parseArrayData(t,e,i,n){return Pr(t,e,i,n)}parseObjectData(t,e,i,n){const{iScale:s,vScale:o}=t,{xAxisKey:r="x",yAxisKey:a="y"}=this._parsing,l="x"===s.axis?r:a,c="x"===o.axis?r:a,h=[];let d,u,f,p;for(d=i,u=i+n;dt.controller.options.grouped),s=i.options.stacked,o=[],r=this._cachedMeta.controller.getParsed(e),a=r&&r[i.axis],l=t=>{const e=t._parsed.find(t=>t[i.axis]===a),n=e&&e[t.vScale.axis];if(_n(n)||isNaN(n))return!0};for(const i of n)if((void 0===e||!l(i))&&((!1===s||-1===o.indexOf(i.stack)||void 0===s&&void 0===i.stack)&&o.push(i.stack),i.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,e=this.chart.options.indexAxis;return Object.keys(t).filter(i=>t[i].axis===e).shift()}_getAxis(){const t={},e=this.getFirstScaleIdForIndexAxis();for(const i of this.chart.data.datasets)t[On("x"===this.chart.options.indexAxis?i.xAxisID:i.yAxisID,e)]=!0;return Object.keys(t)}_getStackIndex(t,e,i){const n=this._getStacks(t,i),s=void 0!==e?n.indexOf(e):-1;return-1===s?n.length-1:s}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,n=[];let s,o;for(s=0,o=e.data.length;s=i?1:-1)}(d,e,r)*o,u===r&&(m-=d/2);const t=e.getPixelForDecimal(0),s=e.getPixelForDecimal(1),l=Math.min(t,s),f=Math.max(t,s);m=Math.max(Math.min(m,f),l),h=m+d,i&&!c&&(a._stacks[e.axis]._visualValues[n]=e.getValueForPixel(h)-e.getValueForPixel(m))}if(m===e.getPixelForValue(r)){const t=Qn(d)*e.getLineWidthForValue(r)/2;m+=t,d-=t}return{size:d,base:m,head:h,center:h+d/2}}_calculateBarIndexPixels(t,e){const i=e.scale,n=this.options,s=n.skipNull,o=On(n.maxBarThickness,1/0);let r,a;const l=this._getAxisCount();if(e.grouped){const i=s?this._getStackCount(t):e.stackCount,c="flex"===n.barThickness?function(t,e,i,n){const s=e.pixels,o=s[t];let r=t>0?s[t-1]:null,a=t=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:n,yScale:s}=e,o=this.getParsed(t),r=n.getLabelForValue(o.x),a=s.getLabelForValue(o.y),l=o._custom;return{label:i[t]||"",value:"("+r+", "+a+(l?", "+l:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,n){const s="reset"===n,{iScale:o,vScale:r}=this._cachedMeta,{sharedOptions:a,includeOptions:l}=this._getSharedOptions(e,n),c=o.axis,h=r.axis;for(let d=e;d0&&this.getParsed(e-1);for(let i=0;i=b){v.skip=!0;continue}const x=this.getParsed(i),_=_n(x[u]),w=v[d]=o.getPixelForValue(x[d],i),k=v[u]=s||_?r.getBasePixel():r.getPixelForValue(a?this.applyStack(r,x,a):x[u],i);v.skip=isNaN(w)||isNaN(k)||_,v.stop=i>0&&Math.abs(x[d]-y[d])>g,p&&(v.parsed=x,v.raw=l.data[i]),h&&(v.options=c||this.resolveDataElementOptions(i,f.active?"active":n)),m||this.updateElement(f,i,v,n),y=x}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,n=t.data||[];if(!n.length)return i;const s=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,s,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}},PieController:class extends Fr{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}},PolarAreaController:zr,RadarController:class extends Ar{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,n){return Co.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta,i=e.dataset,n=e.data||[],s=e.iScale.getLabels();if(i.points=n,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:s.length===n.length,options:e};this.updateElement(i,void 0,o,t)}this.updateElements(n,0,n.length,t)}updateElements(t,e,i,n){const s=this._cachedMeta.rScale,o="reset"===n;for(let r=e;r0&&this.getParsed(e-1);for(let c=e;c0&&Math.abs(i[u]-v[u])>m,g&&(p.parsed=i,p.raw=l.data[c]),d&&(p.options=h||this.resolveDataElementOptions(c,e.active?"active":n)),b||this.updateElement(e,c,p,n),v=i}this.updateSharedOptions(h,n,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,n=i.options&&i.options.borderWidth||0;if(!e.length)return n;const s=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(n,s,o)/2}}});function Br(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Wr{static override(t){Object.assign(Wr.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return Br()}parse(){return Br()}format(){return Br()}add(){return Br()}diff(){return Br()}startOf(){return Br()}endOf(){return Br()}}var Vr=Wr;function Hr(t,e,i,n){const{controller:s,data:o,_sorted:r}=t,a=s._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(a&&e===a.axis&&"r"!==e&&r&&o.length){const r=a._reversePixels?gs:ps;if(!n){const n=r(o,e,i);if(l){const{vScale:e}=s._cachedMeta,{_parsed:i}=t,o=i.slice(0,n.lo+1).reverse().findIndex(t=>!_n(t[e.axis]));n.lo-=Math.max(0,o);const r=i.slice(n.hi).findIndex(t=>!_n(t[e.axis]));n.hi+=Math.max(0,r)}return n}if(s._sharedOptions){const t=o[0],n="function"==typeof t.getRange&&t.getRange(e);if(n){const t=r(o,e,i-n),s=r(o,e,i+n);return{lo:t.lo,hi:s.hi}}}}return{lo:0,hi:o.length-1}}function $r(t,e,i,n,s){const o=t.getSortedVisibleDatasetMetas(),r=i[e];for(let t=0,i=o.length;t{t[r]&&t[r](e[i],s)&&(o.push({element:t,datasetIndex:n,index:l}),a=a||t.inRange(e.x,e.y,s))}),n&&!a?[]:o}var Jr={evaluateInteractionItems:$r,modes:{index(t,e,i,n){const s=$o(e,t),o=i.axis||"x",r=i.includeInvisible||!1,a=i.intersect?Ur(t,s,o,n,r):Yr(t,s,o,!1,n,r),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=a[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})}),l):[]},dataset(t,e,i,n){const s=$o(e,t),o=i.axis||"xy",r=i.includeInvisible||!1;let a=i.intersect?Ur(t,s,o,n,r):Yr(t,s,o,!1,n,r);if(a.length>0){const e=a[0].datasetIndex,i=t.getDatasetMeta(e).data;a=[];for(let t=0;tUr(t,$o(e,t),i.axis||"xy",n,i.includeInvisible||!1),nearest(t,e,i,n){const s=$o(e,t),o=i.axis||"xy",r=i.includeInvisible||!1;return Yr(t,s,o,i.intersect,n,r)},x:(t,e,i,n)=>Xr(t,$o(e,t),"x",i.intersect,n),y:(t,e,i,n)=>Xr(t,$o(e,t),"y",i.intersect,n)}};const Gr=["left","top","right","bottom"];function Kr(t,e){return t.filter(t=>t.pos===e)}function Qr(t,e){return t.filter(t=>-1===Gr.indexOf(t.pos)&&t.box.axis===e)}function Zr(t,e){return t.sort((t,i)=>{const n=e?i:t,s=e?t:i;return n.weight===s.weight?n.index-s.index:n.weight-s.weight})}function ta(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:n,stackWeight:s}=i;if(!t||!Gr.includes(n))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return e}(t),{vBoxMaxWidth:n,hBoxMaxHeight:s}=e;let o,r,a;for(o=0,r=t.length;o{n[t]=Math.max(e[t],i[t])}),n}return n(t?["left","right"]:["top","bottom"])}function oa(t,e,i,n){const s=[];let o,r,a,l,c,h;for(o=0,r=t.length,c=0;ot.box.fullSize),!0),n=Zr(Kr(e,"left"),!0),s=Zr(Kr(e,"right")),o=Zr(Kr(e,"top"),!0),r=Zr(Kr(e,"bottom")),a=Qr(e,"x"),l=Qr(e,"y");return{fullSize:i,leftAndTop:n.concat(o),rightAndBottom:s.concat(l).concat(r).concat(a),chartArea:Kr(e,"chartArea"),vertical:n.concat(s).concat(l),horizontal:o.concat(r).concat(a)}}(t.boxes),l=a.vertical,c=a.horizontal;Tn(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});const h=l.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:i,padding:s,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),u=Object.assign({},s);ia(u,fo(n));const f=Object.assign({maxPadding:u,w:o,h:r,x:s.left,y:s.top},s),p=ta(l.concat(c),d);oa(a.fullSize,f,d,p),oa(l,f,d,p),oa(c,f,d,p)&&oa(l,f,d,p),function(t){const e=t.maxPadding;function i(i){const n=Math.max(e[i]-t[i],0);return t[i]+=n,n}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(f),aa(a.leftAndTop,f,d,p),f.x+=f.w,f.y+=f.h,aa(a.rightAndBottom,f,d,p),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Tn(a.chartArea,e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class ca{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,n){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):i)}}isAttached(t){return!0}updateConfig(t){}}class ha extends ca{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const da="$chartjs",ua={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},fa=t=>null===t||""===t;const pa=!!Xo&&{passive:!0};function ga(t,e,i){t&&t.canvas&&t.canvas.removeEventListener(e,i,pa)}function ma(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function ba(t,e,i){const n=t.canvas,s=new MutationObserver(t=>{let e=!1;for(const i of t)e=e||ma(i.addedNodes,n),e=e&&!ma(i.removedNodes,n);e&&i()});return s.observe(document,{childList:!0,subtree:!0}),s}function va(t,e,i){const n=t.canvas,s=new MutationObserver(t=>{let e=!1;for(const i of t)e=e||ma(i.removedNodes,n),e=e&&!ma(i.addedNodes,n);e&&i()});return s.observe(document,{childList:!0,subtree:!0}),s}const ya=new Map;let xa=0;function _a(){const t=window.devicePixelRatio;t!==xa&&(xa=t,ya.forEach((e,i)=>{i.currentDevicePixelRatio!==t&&e()}))}function wa(t,e,i){const n=t.canvas,s=n&&No(n);if(!s)return;const o=xs((t,e)=>{const n=s.clientWidth;i(t,e),n{const e=t[0],i=e.contentRect.width,n=e.contentRect.height;0===i&&0===n||o(i,n)});return r.observe(s),function(t,e){ya.size||window.addEventListener("resize",_a),ya.set(t,e)}(t,o),r}function ka(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){ya.delete(t),ya.size||window.removeEventListener("resize",_a)}(t)}function Ma(t,e,i){const n=t.canvas,s=xs(e=>{null!==t.ctx&&i(function(t,e){const i=ua[t.type]||t.type,{x:n,y:s}=$o(t,e);return{type:i,chart:e,native:t,x:void 0!==n?n:null,y:void 0!==s?s:null}}(e,t))},t);return function(t,e,i){t&&t.addEventListener(e,i,pa)}(n,e,s),s}class Sa extends ca{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,n=t.getAttribute("height"),s=t.getAttribute("width");if(t[da]={initial:{height:n,width:s,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",fa(s)){const e=Jo(t,"width");void 0!==e&&(t.width=e)}if(fa(n))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Jo(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[da])return!1;const i=e[da].initial;["height","width"].forEach(t=>{const n=i[t];_n(n)?e.removeAttribute(t):e.setAttribute(t,n)});const n=i.style||{};return Object.keys(n).forEach(t=>{e.style[t]=n[t]}),e.width=e.width,delete e[da],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),s={attach:ba,detach:va,resize:wa}[e]||Ma;n[e]=s(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),n=i[e];if(!n)return;({attach:ka,detach:ka,resize:ka}[e]||ga)(t,e,n),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,n){return qo(t,e,i,n)}isAttached(t){const e=t&&No(t);return!(!e||!e.isConnected)}}class Oa{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return es(this.x)&&es(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const n={};return t.forEach(t=>{n[t]=i[t]&&i[t].active()?i[t]._to:this[t]}),n}}function Ea(t,e){const i=t.options.ticks,n=function(t){const e=t.options.offset,i=t._tickSize(),n=t._length/i+(e?0:1),s=t._maxLength/i;return Math.floor(Math.min(n,s))}(t),s=Math.min(i.maxTicksLimit||n,n),o=i.major.enabled?function(t){const e=[];let i,n;for(i=0,n=t.length;is)return function(t,e,i,n){let s,o=0,r=i[0];for(n=Math.ceil(n),s=0;st-e).pop(),e}(n);for(let t=0,e=o.length-1;ts)return e}return Math.max(s,1)}(o,e,s);if(r>0){let t,i;const n=r>1?Math.round((l-a)/(r-1)):null;for(Aa(e,c,h,_n(n)?0:a-n,a),t=0,i=r-1;t"top"===e||"left"===e?t[e]+i:t[e]-i,Ca=(t,e)=>Math.min(e||t,t);function Pa(t,e){const i=[],n=t.length/e,s=t.length;let o=0;for(;or+a)))return c}function Da(t){return t.drawTicks?t.tickLength:0}function Ia(t,e){if(!t.display)return 0;const i=po(t.font,e),n=fo(t.padding);return(wn(t.text)?t.text.length:1)*i.lineHeight+n.height}function Ra(t,e,i){let n=_s(t);return(i&&"right"!==e||!i&&"right"===e)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class ja extends Oa{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:n}=this;return t=Sn(t,Number.POSITIVE_INFINITY),e=Sn(e,Number.NEGATIVE_INFINITY),i=Sn(i,Number.POSITIVE_INFINITY),n=Sn(n,Number.NEGATIVE_INFINITY),{min:Sn(t,i),max:Sn(e,n),minDefined:Mn(t),maxDefined:Mn(e)}}getMinMax(t){let e,{min:i,max:n,minDefined:s,maxDefined:o}=this.getUserBounds();if(s&&o)return{min:i,max:n};const r=this.getMatchingVisibleMetas();for(let a=0,l=r.length;an?n:i,n=s&&i>n?i:n,{min:Sn(i,Sn(n,i)),max:Sn(n,Sn(i,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){An(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:n,grace:s,ticks:o}=this.options,r=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,i){const{min:n,max:s}=t,o=En(e,(s-n)/2),r=(t,e)=>i&&0===t?0:t+e;return{min:r(n,-Math.abs(o)),max:r(s,o)}}(this,s,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=r=s||i<=1||!this.isHorizontal())return void(this.labelRotation=n);const c=this._getLabelSizes(),h=c.widest.width,d=c.highest.height,u=ds(this.chart.width-h,0,this.maxWidth);o=t.offset?this.maxWidth/i:u/(i-1),h+6>o&&(o=u/(i-(t.offset?.5:1)),r=this.maxHeight-Da(t.grid)-e.padding-Ia(t.title,this.chart.options.font),a=Math.sqrt(h*h+d*d),l=ss(Math.min(Math.asin(ds((c.highest.height+6)/o,-1,1)),Math.asin(ds(r/a,-1,1))-Math.asin(ds(d/a,-1,1)))),l=Math.max(n,Math.min(s,l))),this.labelRotation=l}afterCalculateLabelRotation(){An(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){An(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:n,grid:s}}=this,o=this._isVisible(),r=this.isHorizontal();if(o){const o=Ia(n,e.options.font);if(r?(t.width=this.maxWidth,t.height=Da(s)+o):(t.height=this.maxHeight,t.width=Da(s)+o),i.display&&this.ticks.length){const{first:e,last:n,widest:s,highest:o}=this._getLabelSizes(),a=2*i.padding,l=ns(this.labelRotation),c=Math.cos(l),h=Math.sin(l);if(r){const e=i.mirror?0:h*s.width+c*o.height;t.height=Math.min(this.maxHeight,t.height+e+a)}else{const e=i.mirror?0:c*s.width+h*o.height;t.width=Math.min(this.maxWidth,t.width+e+a)}this._calculatePadding(e,n,h,c)}}this._handleMargins(),r?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,n){const{ticks:{align:s,padding:o},position:r}=this.options,a=0!==this.labelRotation,l="top"!==r&&"x"===this.axis;if(this.isHorizontal()){const r=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,d=0;a?l?(h=n*t.width,d=i*e.height):(h=i*t.height,d=n*e.width):"start"===s?d=e.width:"end"===s?h=t.width:"inner"!==s&&(h=t.width/2,d=e.width/2),this.paddingLeft=Math.max((h-r+o)*this.width/(this.width-r),0),this.paddingRight=Math.max((d-c+o)*this.width/(this.width-c),0)}else{let i=e.height/2,n=t.height/2;"start"===s?(i=0,n=t.height):"end"===s&&(i=e.height,n=0),this.paddingTop=i+o,this.paddingBottom=n+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){An(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e{const i=t.gc,n=i.length/2;let s;if(n>e){for(s=0;s({width:o[t]||0,height:r[t]||0});return{first:k(0),last:k(e-1),widest:k(_),highest:k(w),widths:o,heights:r}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return ds(this._alignToPixels?qs(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&tr*n?r/i:a/n:a*n0}_computeGridLineItems(t){const e=this.axis,i=this.chart,n=this.options,{grid:s,position:o,border:r}=n,a=s.offset,l=this.isHorizontal(),c=this.ticks.length+(a?1:0),h=Da(s),d=[],u=r.setContext(this.getContext()),f=u.display?u.width:0,p=f/2,g=function(t){return qs(i,t,f)};let m,b,v,y,x,_,w,k,M,S,O,E;if("top"===o)m=g(this.bottom),_=this.bottom-h,k=m-p,S=g(t.top)+p,E=t.bottom;else if("bottom"===o)m=g(this.top),S=t.top,E=g(t.bottom)-p,_=m+p,k=this.top+h;else if("left"===o)m=g(this.right),x=this.right-h,w=m-p,M=g(t.left)+p,O=t.right;else if("right"===o)m=g(this.left),M=t.left,O=g(t.right)-p,x=m+p,w=this.left+h;else if("x"===e){if("center"===o)m=g((t.top+t.bottom)/2+.5);else if(kn(o)){const t=Object.keys(o)[0],e=o[t];m=g(this.chart.scales[t].getPixelForValue(e))}S=t.top,E=t.bottom,_=m+p,k=_+h}else if("y"===e){if("center"===o)m=g((t.left+t.right)/2);else if(kn(o)){const t=Object.keys(o)[0],e=o[t];m=g(this.chart.scales[t].getPixelForValue(e))}x=m-p,w=x-h,M=t.left,O=t.right}const A=On(n.ticks.maxTicksLimit,c),T=Math.max(1,Math.ceil(c/A));for(b=0;b0&&(o-=n/2)}d={left:o,top:s,width:n+e.width,height:i+e.height,color:t.backdropColor}}g.push({label:y,font:M,textOffset:E,options:{rotation:p,color:i,strokeColor:a,strokeWidth:c,textAlign:u,textBaseline:A,translation:[x,_],backdrop:d}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-ns(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:n,padding:s}}=this.options,o=t+s,r=this._getLabelSizes().widest.width;let a,l;return"left"===e?n?(l=this.right+s,"near"===i?a="left":"center"===i?(a="center",l+=r/2):(a="right",l+=r)):(l=this.right-o,"near"===i?a="right":"center"===i?(a="center",l-=r/2):(a="left",l=this.left)):"right"===e?n?(l=this.left+s,"near"===i?a="right":"center"===i?(a="center",l-=r/2):(a="left",l-=r)):(l=this.left+o,"near"===i?a="left":"center"===i?(a="center",l+=r/2):(a="right",l=this.right)):a="right",{textAlign:a,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:i,top:n,width:s,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,n,s,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex(e=>e.value===t);if(i>=0){return e.setContext(this.getContext(i)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,i=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,o;const r=(t,e,n)=>{n.width&&n.color&&(i.save(),i.lineWidth=n.width,i.strokeStyle=n.color,i.setLineDash(n.borderDash||[]),i.lineDashOffset=n.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(s=0,o=n.length;s{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",n=[];let s,o;for(s=0,o=e.length;s{const n=i.split("."),s=n.pop(),o=[t].concat(n).join("."),r=e[i].split("."),a=r.pop(),l=r.join(".");Hs.route(o,s,l,a)})}(e,t.defaultRoutes);t.descriptors&&Hs.describe(e,t.descriptors)}(t,o,i),this.override&&Hs.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,n=this.scope;i in e&&delete e[i],n&&i in Hs[n]&&(delete Hs[n][i],this.override&&delete zs[i])}}class za{constructor(){this.controllers=new Fa(Ar,"datasets",!0),this.elements=new Fa(Oa,"elements"),this.plugins=new Fa(Object,"plugins"),this.scales=new Fa(ja,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach(e=>{const n=i||this._getRegistryForType(e);i||n.isForType(e)||n===this.plugins&&e.id?this._exec(t,n,e):Tn(e,e=>{const n=i||this._getRegistryForType(e);this._exec(t,n,e)})})}_exec(t,e,i){const n=Nn(t);An(i["before"+n],[],i),e[t](i),An(i["after"+n],[],i)}_getRegistryForType(t){for(let e=0;et.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(n(e,i),t,"stop"),this._notify(n(i,e),t,"start")}}function Wa(t,e){return e||!1!==t?!0===t?{}:t:null}function Va(t,{plugin:e,local:i},n,s){const o=t.pluginScopeKeys(e),r=t.getOptionScopes(n,o);return i&&e.defaults&&r.push(e.defaults),t.createResolver(r,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Ha(t,e){const i=Hs.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function $a(t){if("x"===t||"y"===t||"r"===t)return t}function Ua(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}function qa(t,...e){if($a(t))return t;for(const i of e){const e=i.axis||Ua(i.position)||t.length>1&&$a(t[0].toLowerCase());if(e)return e}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Ya(t,e,i){if(i[e+"AxisID"]===t)return{axis:e}}function Xa(t,e){const i=zs[t.type]||{scales:{}},n=e.scales||{},s=Ha(t.type,e),o=Object.create(null);return Object.keys(n).forEach(e=>{const r=n[e];if(!kn(r))return console.error(`Invalid scale configuration for scale: ${e}`);if(r._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const a=qa(e,r,function(t,e){if(e.data&&e.data.datasets){const i=e.data.datasets.filter(e=>e.xAxisID===t||e.yAxisID===t);if(i.length)return Ya(t,"x",i[0])||Ya(t,"y",i[0])}return{}}(e,t),Hs.scales[r.type]),l=function(t,e){return t===e?"_index_":"_value_"}(a,s),c=i.scales||{};o[e]=Rn(Object.create(null),[{axis:a},r,c[a],c[l]])}),t.data.datasets.forEach(i=>{const s=i.type||t.type,r=i.indexAxis||Ha(s,e),a=(zs[s]||{}).scales||{};Object.keys(a).forEach(t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,r),s=i[e+"AxisID"]||e;o[s]=o[s]||Object.create(null),Rn(o[s],[{axis:e},n[s],a[t]])})}),Object.keys(o).forEach(t=>{const e=o[t];Rn(e,[Hs.scales[e.type],Hs.scale])}),o}function Ja(t){const e=t.options||(t.options={});e.plugins=On(e.plugins,{}),e.scales=Xa(t,e)}function Ga(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Ka=new Map,Qa=new Set;function Za(t,e){let i=Ka.get(t);return i||(i=e(),Ka.set(t,i),Qa.add(i)),i}const tl=(t,e,i)=>{const n=zn(e,i);void 0!==n&&t.add(n)};class el{constructor(t){this._config=function(t){return(t=t||{}).data=Ga(t.data),Ja(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Ga(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Ja(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Za(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return Za(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return Za(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return Za(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const i=this._scopeCache;let n=i.get(t);return n&&!e||(n=new Map,i.set(t,n)),n}getOptionScopes(t,e,i){const{options:n,type:s}=this,o=this._cachedScopes(t,i),r=o.get(e);if(r)return r;const a=new Set;e.forEach(e=>{t&&(a.add(t),e.forEach(e=>tl(a,t,e))),e.forEach(t=>tl(a,n,t)),e.forEach(t=>tl(a,zs[s]||{},t)),e.forEach(t=>tl(a,Hs,t)),e.forEach(t=>tl(a,Ns,t))});const l=Array.from(a);return 0===l.length&&l.push(Object.create(null)),Qa.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,zs[e]||{},Hs.datasets[e]||{},{type:e},Hs,Ns]}resolveNamedOptions(t,e,i,n=[""]){const s={$shared:!0},{resolver:o,subPrefixes:r}=il(this._resolverCache,t,n);let a=o;if(function(t,e){const{isScriptable:i,isIndexable:n}=yo(t);for(const s of e){const e=i(s),o=n(s),r=(o||e)&&t[s];if(e&&(Wn(r)||nl(r))||o&&wn(r))return!0}return!1}(o,e)){s.$shared=!1;a=vo(o,i=Wn(i)?i():i,this.createResolver(t,i,r))}for(const t of e)s[t]=a[t];return s}createResolver(t,e,i=[""],n){const{resolver:s}=il(this._resolverCache,t,i);return kn(e)?vo(s,e,void 0,n):s}}function il(t,e,i){let n=t.get(e);n||(n=new Map,t.set(e,n));const s=i.join();let o=n.get(s);if(!o){o={resolver:bo(e,i),subPrefixes:i.filter(t=>!t.toLowerCase().includes("hover"))},n.set(s,o)}return o}const nl=t=>kn(t)&&Object.getOwnPropertyNames(t).some(e=>Wn(t[e]));const sl=["top","bottom","left","right","chartArea"];function ol(t,e){return"top"===t||"bottom"===t||-1===sl.indexOf(t)&&"x"===e}function rl(t,e){return function(i,n){return i[t]===n[t]?i[e]-n[e]:i[t]-n[t]}}function al(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),An(i&&i.onComplete,[t],e)}function ll(t){const e=t.chart,i=e.options.animation;An(i&&i.onProgress,[t],e)}function cl(t){return zo()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const hl={},dl=t=>{const e=cl(t);return Object.values(hl).filter(t=>t.canvas===e).pop()};function ul(t,e,i){const n=Object.keys(t);for(const s of n){const n=+s;if(n>=e){const o=t[s];delete t[s],(i>0||n>e)&&(t[n+i]=o)}}}class fl{static defaults=Hs;static instances=hl;static overrides=zs;static registry=Na;static version="4.6.1";static getChart=dl;static register(...t){Na.add(...t),pl()}static unregister(...t){Na.remove(...t),pl()}constructor(t,e){const i=this.config=new el(e),n=cl(t),s=dl(n);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!zo()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?ha:Sa}(n)),this.platform.updateConfig(i);const r=this.platform.acquireContext(n,o.aspectRatio),a=r&&r.canvas,l=a&&a.height,c=a&&a.width;this.id=xn(),this.ctx=r,this.canvas=a,this.width=c,this.height=l,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Ba,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let i;return function(...n){return e?(clearTimeout(i),i=setTimeout(t,e,n)):t.apply(this,n),e}}(t=>this.update(t),o.resizeDelay||0),this._dataChanges=[],hl[this.id]=this,r&&a?(ur.listen(this,"complete",al),ur.listen(this,"progress",ll),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:n,_aspectRatio:s}=this;return _n(t)?e&&s?s:n?i/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Na}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Yo(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Ys(this.canvas,this.ctx),this}stop(){return ur.stop(this),this}resize(t,e){ur.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,n=this.canvas,s=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(n,t,e,s),r=i.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Yo(this,r,!0)&&(this.notifyPlugins("resize",{size:o}),An(i.onResize,[this,o],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){Tn(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,n=Object.keys(i).reduce((t,e)=>(t[e]=!1,t),{});let s=[];e&&(s=s.concat(Object.keys(e).map(t=>{const i=e[t],n=qa(t,i),s="r"===n,o="x"===n;return{options:i,dposition:s?"chartArea":o?"bottom":"left",dtype:s?"radialLinear":o?"category":"linear"}}))),Tn(s,e=>{const s=e.options,o=s.id,r=qa(o,s),a=On(s.type,e.dtype);void 0!==s.position&&ol(s.position,r)===ol(e.dposition)||(s.position=e.dposition),n[o]=!0;let l=null;if(o in i&&i[o].type===a)l=i[o];else{l=new(Na.getScale(a))({id:o,type:a,ctx:this.ctx,chart:this}),i[l.id]=l}l.init(s,t)}),Tn(n,(t,e)=>{t||delete i[e]}),Tn(i,t=>{la.configure(this,t,t.options),la.addBox(this,t)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((t,e)=>t.index-e.index),i>e){for(let t=e;te.length&&delete this._stacks,t.forEach((t,i)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,n;for(this._removeUnreferencedMetasets(),i=0,n=e.length;i{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(rl("z","_idx"));const{_active:r,_lastEvent:a}=this;a?this._eventHandler(a,!0):r.length&&this._updateHoverStyles(r,r,!0),this.render()}_updateScales(){Tn(this.scales,t=>{la.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);Vn(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:n,count:s}of e){ul(t,n,"_removeElements"===i?-s:s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),n=i(0);for(let t=1;tt.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;la.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],Tn(this.boxes,t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i={meta:t,index:t.index,cancelable:!0},n=hr(this,t);!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(n&&Ks(e,n),t.controller.draw(),n&&Qs(e),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(t){return Gs(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,n){const s=Jr.modes[e];return"function"==typeof s?s(this,t,i,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let n=i.filter(t=>t&&t._dataset===e).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(n)),n}getContext(){return this.$context||(this.$context=mo(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const n=i?"show":"hide",s=this.getDatasetMeta(t),o=s.controller._resolveAnimations(void 0,n);Bn(e)?(s.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(s,{visible:i}),this.update(e=>e.datasetIndex===t?n:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),ur.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,i,n),t[i]=n},n=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};Tn(this.options.events,t=>i(t,n))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,n)=>{e.addEventListener(this,i,n),t[i]=n},n=(i,n)=>{t[i]&&(e.removeEventListener(this,i,n),delete t[i])},s=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const r=()=>{n("attach",r),this.attached=!0,this.resize(),i("resize",s),i("detach",o)};o=()=>{this.attached=!1,n("resize",s),this._stop(),this._resize(0,0),i("attach",r)},e.isAttached(this.canvas)?r():o()}unbindEvents(){Tn(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},Tn(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const n=i?"set":"remove";let s,o,r,a;for("dataset"===e&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+n+"DatasetHoverStyle"]()),r=0,a=t.length;r{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}});!Cn(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return 1===this._plugins._cache.filter(e=>e.plugin.id===t).length}_updateHoverStyles(t,e,i){const n=this.options.hover,s=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),o=s(e,t),r=i?t:s(t,e);o.length&&this.updateHoverStyle(o,n.mode,!1),r.length&&n.mode&&this.updateHoverStyle(r,n.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,n))return;const s=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,n),(s||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:n=[],options:s}=this,o=e,r=this._getActiveElements(t,n,i,o),a=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,i,n){return i&&"mouseout"!==t.type?n?e:t:null}(t,this._lastEvent,i,a);i&&(this._lastEvent=null,An(s.onHover,[t,r,this],this),a&&An(s.onClick,[t,r,this],this));const c=!Cn(r,n);return(c||e)&&(this._active=r,this._updateHoverStyles(r,n,e)),this._lastEvent=l,c}_getActiveElements(t,e,i,n){if("mouseout"===t.type)return[];if(!i)return e;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,n)}}function pl(){return Tn(fl.instances,t=>t._plugins.invalidate())}function gl(t,e,i,n){const s=co(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const o=(i-e)/2,r=Math.min(o,n*e/2),a=t=>{const e=(i-Math.min(o,t))*n/2;return ds(t,0,Math.min(o,e))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:ds(s.innerStart,0,r),innerEnd:ds(s.innerEnd,0,r)}}function ml(t,e,i,n){return{x:i+t*Math.cos(e),y:n+t*Math.sin(e)}}function bl(t,e,i,n,s,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:h}=e,{spacingMode:d="angular"}=e.options,u=s-l;if(o&&e.options.selfJoin&&Math.abs(u)>=$n-1e-4)return void function(t,e,i,n){const{x:s,y:o,startAngle:r,pixelMargin:a,innerRadius:l}=e,c=Math.max(e.outerRadius+n+i-a,0),h=l>0?l+n+i+a:0;t.beginPath(),t.arc(s,o,c,r,r+$n),h>0&&(t.moveTo(s+Math.cos(r)*h,o+Math.sin(r)*h),t.arc(s,o,h,r+$n,r,!0)),t.closePath()}(t,e,i,n);const f=Math.max(e.outerRadius+n+i-c,0);let p=h>0?h+n+i+c:0,g=0,m=0;const b=f>0?Math.max(.001,u*f-i/Hn)/f:.001,v=(u-b)/2;if(n){const t=((h>0?h-n:0)+(f>0?f-n:0))/2,e=(u-(0!==t?u*t/(t+n):u))/2,i=t>0?Math.asin(Math.min(1,n/t)):0,s=Math.max(0,b/2-.001),o=Math.sin(s);if("parallel"===d){if(0===p&&o>0){const t=n/o,e=Math.max(0,f-.001);p=Math.min(t,e)}const t=Math.min(f>0?f*o:Number.POSITIVE_INFINITY,p>0?p*o:Number.POSITIVE_INFINITY),e=Math.min(n,t);g=f>0?Math.asin(Math.min(1,e/f)):Math.min(s,i),m=p>0?Math.asin(Math.min(1,e/p)):g}else"proportional"===d?(g=Math.min(s,e),m=Math.min(s,e)):(g=Math.min(s,i),m=Math.min(s,i))}const y=l+v+g,x=s-v-g,_=l+v+m,w=s-v-m,k=Math.min(x-y,w-_),{outerStart:M,outerEnd:S,innerStart:O,innerEnd:E}=gl(e,p,f,k),A=f-M,T=f-S,C=y+M/A,P=x-S/T,L=p+O,D=p+E,I=_+O/L,R=w-E/D;if(t.beginPath(),o){const e=(C+P)/2;if(t.arc(r,a,f,C,e),t.arc(r,a,f,e,P),S>0){const e=ml(T,P,r,a);t.arc(e.x,e.y,S,P,x+Xn)}const i=ml(D,w,r,a);if(t.lineTo(i.x,i.y),E>0){const e=ml(D,R,r,a);t.arc(e.x,e.y,E,w+Xn,R+Math.PI)}const n=(w-E/p+(_+O/p))/2;if(t.arc(r,a,p,w-E/p,n,!0),t.arc(r,a,p,n,_+O/p,!0),O>0){const e=ml(L,I,r,a);t.arc(e.x,e.y,O,I+Math.PI,_-Xn)}const s=ml(A,y,r,a);if(t.lineTo(s.x,s.y),M>0){const e=ml(A,C,r,a);t.arc(e.x,e.y,M,y-Xn,C)}}else{t.moveTo(r,a);const e=Math.cos(C)*f+r,i=Math.sin(C)*f+a;t.lineTo(e,i);const n=Math.cos(P)*f+r,s=Math.sin(P)*f+a;t.lineTo(n,s)}t.closePath()}function vl(t,e,i,n,s){const{fullCircles:o,startAngle:r,circumference:a,options:l}=e,{borderWidth:c,borderJoinStyle:h,borderDash:d,borderDashOffset:u,borderRadius:f}=l,p="inner"===l.borderAlign;if(!c)return;t.setLineDash(d||[]),t.lineDashOffset=u,p?(t.lineWidth=2*c,t.lineJoin=h||"round"):(t.lineWidth=c,t.lineJoin=h||"bevel");let g=e.endAngle;const m=Math.abs(g-r)>=$n-1e-4;if(o){bl(t,e,i,n,g,s);for(let e=0;es?(c=s/l,t.arc(o,r,l,i+c,n-c,!0)):t.arc(o,r,s,i+Xn,n-Xn),t.closePath(),t.clip()}(t,e,g);!(m&&e.innerRadius>0)&&l.selfJoin&&g-r>=Hn&&0===f&&"miter"!==h&&function(t,e,i){const{startAngle:n,x:s,y:o,outerRadius:r,innerRadius:a,options:l}=e,{borderWidth:c,borderJoinStyle:h}=l,d=Math.min(c/r,cs(n-i));if(t.beginPath(),t.arc(s,o,r-c/2,n+d/2,i-d/2),a>0){const e=Math.min(c/a,cs(n-i));t.arc(s,o,a+c/2,i-e/2,n+e/2,!0)}else{const e=Math.min(c/2,r*cs(n-i));if("round"===h)t.arc(s,o,e,i-Hn/2,n+Hn/2,!0);else if("bevel"===h){const r=2*e*e,a=-r*Math.cos(i+Hn/2)+s,l=-r*Math.sin(i+Hn/2)+o,c=r*Math.cos(n+Hn/2)+s,h=r*Math.sin(n+Hn/2)+o;t.lineTo(a,l),t.lineTo(c,h)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}(t,e,g),o||(bl(t,e,i,n,g,s),t.stroke())}function yl(t,e,i=e){t.lineCap=On(i.borderCapStyle,e.borderCapStyle),t.setLineDash(On(i.borderDash,e.borderDash)),t.lineDashOffset=On(i.borderDashOffset,e.borderDashOffset),t.lineJoin=On(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=On(i.borderWidth,e.borderWidth),t.strokeStyle=On(i.borderColor,e.borderColor)}function xl(t,e,i){t.lineTo(i.x,i.y)}function _l(t,e,i={}){const n=t.length,{start:s=0,end:o=n-1}=i,{start:r,end:a}=e,l=Math.max(s,r),c=Math.min(o,a),h=sa&&o>a;return{count:n,start:l,loop:e.loop,ilen:c(r+(c?a-t:t))%o,y=()=>{f!==p&&(t.lineTo(m,p),t.lineTo(m,f),t.lineTo(m,g))};for(l&&(d=s[v(0)],t.moveTo(d.x,d.y)),h=0;h<=a;++h){if(d=s[v(h)],d.skip)continue;const e=d.x,i=d.y,n=0|e;n===u?(ip&&(p=i),m=(b*m+e)/++b):(y(),t.lineTo(e,i),u=n,b=0,f=p=i),g=i}y()}function Ml(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i)?kl:wl}const Sl="function"==typeof Path2D;function Ol(t,e,i,n){Sl&&!e.options.segment?function(t,e,i,n){let s=e._path;s||(s=e._path=new Path2D,e.path(s,i,n)&&s.closePath()),yl(t,e.options),t.stroke(s)}(t,e,i,n):function(t,e,i,n){const{segments:s,options:o}=e,r=Ml(e);for(const a of s)yl(t,o,a.style),t.beginPath(),r(t,e,a,{start:i,end:i+n-1})&&t.closePath(),t.stroke()}(t,e,i,n)}class El extends Oa{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const n=i.spanGaps?this._loop:this._fullLoop;Fo(this._points,i,t,n,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const i=t.points,n=t.options.spanGaps,s=i.length;if(!s)return[];const o=!!t._loop,{start:r,end:a}=function(t,e,i,n){let s=0,o=e-1;if(i&&!n)for(;ss&&t[o%e].skip;)o--;return o%=e,{start:s,end:o}}(i,s,o,n);return rr(t,!0===n?[{start:r,end:a,loop:o}]:function(t,e,i,n){const s=t.length,o=[];let r,a=e,l=t[e];for(r=e+1;r<=i;++r){const i=t[r%s];i.skip||i.stop?l.skip||(n=!1,o.push({start:e%s,end:(r-1)%s,loop:n}),e=a=i.stop?r:null):(a=r,l.skip&&(e=r)),l=i}return null!==a&&o.push({start:e%s,end:a%s,loop:n}),o}(i,r,a"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;circular;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,this.circular=!1,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.getProps(["x","y"],i),{angle:s,distance:o}=rs(n,{x:t,y:e}),{startAngle:r,endAngle:a,innerRadius:l,outerRadius:c,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),d=(this.options.spacing+this.options.borderWidth)/2,u=On(h,a-r),f=hs(s,r,a)&&r!==a,p=u>=$n||f,g=us(o,l+d,c+d);return p&&g}getCenterPoint(t){const{x:e,y:i,startAngle:n,endAngle:s,innerRadius:o,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:a,spacing:l}=this.options,c=(n+s)/2,h=(o+r+l+a)/2;return{x:e+Math.cos(c)*h,y:i+Math.sin(c)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,n=(e.offset||0)/4,s=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>$n?Math.floor(i/$n):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();const r=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(r)*n,Math.sin(r)*n);const a=n*(1-Math.sin(Math.min(Hn,i||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,i,n,s){const{fullCircles:o,startAngle:r,circumference:a}=e;let l=e.endAngle;if(o){bl(t,e,i,n,l,s);for(let e=0;et.replace("rgb(","rgba(").replace(")",", 0.5)"));function zl(t){return jl[t%jl.length]}function Nl(t){return Fl[t%Fl.length]}function Bl(t){let e=0;return(i,n)=>{const s=t.getDatasetMeta(n).controller;s instanceof Fr?e=function(t,e){return t.backgroundColor=t.data.map(()=>zl(e++)),e}(i,e):s instanceof zr?e=function(t,e){return t.backgroundColor=t.data.map(()=>Nl(e++)),e}(i,e):s&&(e=function(t,e){return t.borderColor=zl(e),t.backgroundColor=Nl(e),++e}(i,e))}}function Wl(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}var Vl={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,i){if(!i.enabled)return;const{data:{datasets:n},options:s}=t.config,{elements:o}=s,r=Wl(n)||(a=s)&&(a.borderColor||a.backgroundColor)||o&&Wl(o)||"rgba(0,0,0,0.1)"!==Hs.borderColor||"rgba(0,0,0,0.1)"!==Hs.backgroundColor;var a;if(!i.forceOverride&&r)return;const l=Bl(t);n.forEach(l)}};function Hl(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function $l(t){t.data.datasets.forEach(t=>{Hl(t)})}var Ul={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void $l(t);const n=t.width;t.data.datasets.forEach((e,s)=>{const{_data:o,indexAxis:r}=e,a=t.getDatasetMeta(s),l=o||e.data;if("y"===go([r,t.options.indexAxis]))return;if(!a.controller.supportsDecimation)return;const c=t.scales[a.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(t.options.parsing)return;let{start:h,count:d}=function(t,e){const i=e.length;let n,s=0;const{iScale:o}=t,{min:r,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(s=ds(ps(e,o.axis,r).lo,0,i-1)),n=c?ds(ps(e,o.axis,a).hi+1,s,i)-s:i-s,{start:s,count:n}}(a,l);if(d<=(i.threshold||4*n))return void Hl(e);let u;switch(_n(o)&&(e._data=l,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":u=function(t,e,i,n,s){const o=s.samples||n;if(o>=i)return t.slice(e,e+i);const r=[],a=(i-2)/(o-2);let l=0;const c=e+i-1;let h,d,u,f,p,g=e;for(r[l++]=t[g],h=0;hu&&(u=f,d=t[n],p=n);r[l++]=d,g=p}return r[l++]=t[c],r}(l,h,d,n,i);break;case"min-max":u=function(t,e,i,n){let s,o,r,a,l,c,h,d,u,f,p=0,g=0;const m=[],b=e+i-1,v=t[e].x,y=t[b].x-v;for(s=e;sf&&(f=a,h=s),p=(g*p+o.x)/++g;else{const i=s-1;if(!_n(c)&&!_n(h)){const e=Math.min(c,h),n=Math.max(c,h);e!==d&&e!==i&&m.push({...t[e],x:p}),n!==d&&n!==i&&m.push({...t[n],x:p})}s>0&&i!==d&&m.push(t[i]),m.push(o),l=e,g=0,u=f=a,c=h=d=s}}return m}(l,h,d,n);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=u})},destroy(t){$l(t)}};function ql(t,e,i,n){if(n)return;let s=e[t],o=i[t];return"angle"===t&&(s=cs(s),o=cs(o)),{property:t,start:s,end:o}}function Yl(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function Xl(t,e,i,n){return t&&e?n(t[i],e[i]):t?t[i]:e?e[i]:0}function Jl(t,e){let i=[],n=!1;return wn(t)?(n=!0,i=t):i=function(t,e){const{x:i=null,y:n=null}=t||{},s=e.points,o=[];return e.segments.forEach(({start:t,end:e})=>{e=Yl(t,e,s);const r=s[t],a=s[e];null!==n?(o.push({x:r.x,y:n}),o.push({x:a.x,y:n})):null!==i&&(o.push({x:i,y:r.y}),o.push({x:i,y:a.y}))}),o}(t,e),i.length?new El({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function Gl(t){return t&&!1!==t.fill}function Kl(t,e,i){let n=t[e].fill;const s=[e];let o;if(!i)return n;for(;!1!==n&&-1===s.indexOf(n);){if(!Mn(n))return n;if(o=t[n],!o)return!1;if(o.visible)return n;s.push(n),n=o.fill}return!1}function Ql(t,e,i){const n=function(t){const e=t.options,i=e.fill;let n=On(i&&i.target,i);void 0===n&&(n=!!e.backgroundColor);if(!1===n||null===n)return!1;if(!0===n)return"origin";return n}(t);if(kn(n))return!isNaN(n.value)&&n;let s=parseFloat(n);return Mn(s)&&Math.floor(s)===s?function(t,e,i,n){"-"!==t&&"+"!==t||(i=e+i);if(i===e||i<0||i>=n)return!1;return i}(n[0],e,s,i):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function Zl(t,e,i){const n=[];for(let s=0;s=0;--e){const i=s[e].$filler;i&&(i.line.updateControlPoints(o,i.axis),n&&i.fill&&nc(t.ctx,i,o))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const n=t.getSortedVisibleDatasetMetas();for(let e=n.length-1;e>=0;--e){const i=n[e].$filler;Gl(i)&&nc(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const n=e.meta.$filler;Gl(n)&&"beforeDatasetDraw"===i.drawTime&&nc(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const hc=(t,e)=>{let{boxHeight:i=e,boxWidth:n=e}=t;return t.usePointStyle&&(i=Math.min(i,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:i,itemHeight:Math.max(e,i)}};class dc extends Oa{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=An(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,i)=>t.sort(e,i,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,n=po(i.font),s=n.size,o=this._computeTitleHeight(),{boxWidth:r,itemHeight:a}=hc(i,s);let l,c;e.font=n.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(o,s,r,a)+10):(c=this.maxHeight,l=this._fitCols(o,n,r,a)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,n){const{ctx:s,maxWidth:o,options:{labels:{padding:r}}}=this,a=this.legendHitBoxes=[],l=this.lineWidths=[0],c=n+r;let h=t;s.textAlign="left",s.textBaseline="middle";let d=-1,u=-c;return this.legendItems.forEach((t,f)=>{const p=i+e/2+s.measureText(t.text).width;(0===f||l[l.length-1]+p+2*r>o)&&(h+=c,l[l.length-(f>0?0:1)]=0,u+=c,d++),a[f]={left:0,top:u,row:d,width:p,height:n},l[l.length-1]+=p+r}),h}_fitCols(t,e,i,n){const{ctx:s,maxHeight:o,options:{labels:{padding:r}}}=this,a=this.legendHitBoxes=[],l=this.columnSizes=[],c=o-t;let h=r,d=0,u=0,f=0,p=0;return this.legendItems.forEach((t,o)=>{const{itemWidth:g,itemHeight:m}=function(t,e,i,n,s){const o=function(t,e,i,n){let s=t.text;s&&"string"!=typeof s&&(s=s.reduce((t,e)=>t.length>e.length?t:e));return e+i.size/2+n.measureText(s).width}(n,t,e,i),r=function(t,e,i){let n=t;"string"!=typeof e.text&&(n=uc(e,i));return n}(s,n,e.lineHeight);return{itemWidth:o,itemHeight:r}}(i,e,s,t,n);o>0&&u+m+2*r>c&&(h+=d+r,l.push({width:d,height:u}),f+=d+r,p++,d=u=0),a[o]={left:f,top:u,col:p,width:g,height:m},d=Math.max(d,g),u+=m+r}),h+=d,l.push({width:d,height:u}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:n},rtl:s}}=this,o=Zo(s,this.left,this.width);if(this.isHorizontal()){let s=0,r=ws(i,this.left+n,this.right-this.lineWidths[s]);for(const a of e)s!==a.row&&(s=a.row,r=ws(i,this.left+n,this.right-this.lineWidths[s])),a.top+=this.top+t+n,a.left=o.leftForLtr(o.x(r),a.width),r+=a.width+n}else{let s=0,r=ws(i,this.top+t+n,this.bottom-this.columnSizes[s].height);for(const a of e)a.col!==s&&(s=a.col,r=ws(i,this.top+t+n,this.bottom-this.columnSizes[s].height)),a.top=r,a.left+=this.left+n,a.left=o.leftForLtr(o.x(a.left),a.width),r+=a.height+n}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Ks(t,this),this._draw(),Qs(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:n}=this,{align:s,labels:o}=t,r=Hs.color,a=Zo(t.rtl,this.left,this.width),l=po(o.font),{padding:c}=o,h=l.size,d=h/2;let u;this.drawTitle(),n.textAlign=a.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=l.string;const{boxWidth:f,boxHeight:p,itemHeight:g}=hc(o,h),m=this.isHorizontal(),b=this._computeTitleHeight();u=m?{x:ws(s,this.left+c,this.right-i[0]),y:this.top+c+b,line:0}:{x:this.left+c,y:ws(s,this.top+b+c,this.bottom-e[0].height),line:0},tr(this.ctx,t.textDirection);const v=g+c;this.legendItems.forEach((y,x)=>{n.strokeStyle=y.fontColor,n.fillStyle=y.fontColor;const _=n.measureText(y.text).width,w=a.textAlign(y.textAlign||(y.textAlign=o.textAlign)),k=f+d+_;let M=u.x,S=u.y;a.setWidth(this.width),m?x>0&&M+k+c>this.right&&(S=u.y+=v,u.line++,M=u.x=ws(s,this.left+c,this.right-i[u.line])):x>0&&S+v>this.bottom&&(M=u.x=M+e[u.line].width+c,u.line++,S=u.y=ws(s,this.top+b+c,this.bottom-e[u.line].height));if(function(t,e,i){if(isNaN(f)||f<=0||isNaN(p)||p<0)return;n.save();const s=On(i.lineWidth,1);if(n.fillStyle=On(i.fillStyle,r),n.lineCap=On(i.lineCap,"butt"),n.lineDashOffset=On(i.lineDashOffset,0),n.lineJoin=On(i.lineJoin,"miter"),n.lineWidth=s,n.strokeStyle=On(i.strokeStyle,r),n.setLineDash(On(i.lineDash,[])),o.usePointStyle){const r={radius:p*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:s},l=a.xPlus(t,f/2);Js(n,r,l,e+d,o.pointStyleWidth&&f)}else{const o=e+Math.max((h-p)/2,0),r=a.leftForLtr(t,f),l=uo(i.borderRadius);n.beginPath(),Object.values(l).some(t=>0!==t)?so(n,{x:r,y:o,w:f,h:p,radius:l}):n.rect(r,o,f,p),n.fill(),0!==s&&n.stroke()}n.restore()}(a.x(M),S,y),M=((t,e,i,n)=>t===(n?"left":"right")?i:"center"===t?(e+i)/2:e)(w,M+f+d,m?M+k:this.right,t.rtl),function(t,e,i){no(n,i.text,t,e+g/2,l,{strikethrough:i.hidden,textAlign:a.textAlign(i.textAlign)})}(a.x(M),S,y),m)u.x+=k+c;else if("string"!=typeof y.text){const t=l.lineHeight;u.y+=uc(y,t)+c}else u.y+=v}),er(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=po(e.font),n=fo(e.padding);if(!e.display)return;const s=Zo(t.rtl,this.left,this.width),o=this.ctx,r=e.position,a=i.size/2,l=n.top+a;let c,h=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,h=ws(t.align,h,this.right-d);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);c=l+ws(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=ws(r,h,h+d);o.textAlign=s.textAlign(_s(r)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=i.string,no(o,e.text,u,c,i)}_computeTitleHeight(){const t=this.options.title,e=po(t.font),i=fo(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,n,s;if(us(t,this.left,this.right)&&us(e,this.top,this.bottom))for(s=this.legendHitBoxes,i=0;it.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:n,textAlign:s,color:o,useBorderRadius:r,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{const l=t.controller.getStyle(i?0:void 0),c=fo(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:n||l.pointStyle,rotation:l.rotation,textAlign:s||l.textAlign,borderRadius:r&&(a||l.borderRadius),datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class pc extends Oa{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const n=wn(i.text)?i.text.length:1;this._padding=fo(i.padding);const s=n*po(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:n,right:s,options:o}=this,r=o.align;let a,l,c,h=0;return this.isHorizontal()?(l=ws(r,i,s),c=e+t,a=s-i):("left"===o.position?(l=i+t,c=ws(r,n,e),h=-.5*Hn):(l=s-t,c=ws(r,e,n),h=.5*Hn),a=n-e),{titleX:l,titleY:c,maxWidth:a,rotation:h}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=po(e.font),n=i.lineHeight/2+this._padding.top,{titleX:s,titleY:o,maxWidth:r,rotation:a}=this._drawArgs(n);no(t,e.text,0,0,i,{color:e.color,maxWidth:r,rotation:a,textAlign:_s(e.align),textBaseline:"middle",translation:[s,o]})}}var gc={id:"title",_element:pc,start(t,e,i){!function(t,e){const i=new pc({ctx:t.ctx,options:e,chart:t});la.configure(t,i,e),la.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;la.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const n=t.titleBlock;la.configure(t,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const mc=new WeakMap;var bc={id:"subtitle",start(t,e,i){const n=new pc({ctx:t.ctx,options:i,chart:t});la.configure(t,n,i),la.addBox(t,n),mc.set(t,n)},stop(t){la.removeBox(t,mc.get(t)),mc.delete(t)},beforeUpdate(t,e,i){const n=mc.get(t);la.configure(t,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const vc={average(t){if(!t.length)return!1;let e,i,n=new Set,s=0,o=0;for(e=0,i=t.length;et+e)/n.size,y:s/o}},nearest(t,e){if(!t.length)return!1;let i,n,s,o=e.x,r=e.y,a=Number.POSITIVE_INFINITY;for(i=0,n=t.length;i-1?t.split("\n"):t}function _c(t,e){const{element:i,datasetIndex:n,index:s}=e,o=t.getDatasetMeta(n).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:t,label:r,parsed:o.getParsed(s),raw:t.data.datasets[n].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:n,element:i}}function wc(t,e){const i=t.chart.ctx,{body:n,footer:s,title:o}=t,{boxWidth:r,boxHeight:a}=e,l=po(e.bodyFont),c=po(e.titleFont),h=po(e.footerFont),d=o.length,u=s.length,f=n.length,p=fo(e.padding);let g=p.height,m=0,b=n.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);if(b+=t.beforeBody.length+t.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),b){g+=f*(e.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(b-f)*l.lineHeight+(b-1)*e.bodySpacing}u&&(g+=e.footerMarginTop+u*h.lineHeight+(u-1)*e.footerSpacing);let v=0;const y=function(t){m=Math.max(m,i.measureText(t).width+v)};return i.save(),i.font=c.string,Tn(t.title,y),i.font=l.string,Tn(t.beforeBody.concat(t.afterBody),y),v=e.displayColors?r+2+e.boxPadding:0,Tn(n,t=>{Tn(t.before,y),Tn(t.lines,y),Tn(t.after,y)}),v=0,i.font=h.string,Tn(t.footer,y),i.restore(),m+=p.width,{width:m,height:g}}function kc(t,e,i,n){const{x:s,width:o}=i,{width:r,chartArea:{left:a,right:l}}=t;let c="center";return"center"===n?c=s<=(a+l)/2?"left":"right":s<=o/2?c="left":s>=r-o/2&&(c="right"),function(t,e,i,n){const{x:s,width:o}=n,r=i.caretSize+i.caretPadding;return"left"===t&&s+o+r>e.width||"right"===t&&s-o-r<0||void 0}(c,t,e,i)&&(c="center"),c}function Mc(t,e,i){const n=i.yAlign||e.yAlign||function(t,e){const{y:i,height:n}=e;return it.height-n/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||kc(t,e,i,n),yAlign:n}}function Sc(t,e,i,n){const{caretSize:s,caretPadding:o,cornerRadius:r}=t,{xAlign:a,yAlign:l}=i,c=s+o,{topLeft:h,topRight:d,bottomLeft:u,bottomRight:f}=uo(r);let p=function(t,e){let{x:i,width:n}=t;return"right"===e?i-=n:"center"===e&&(i-=n/2),i}(e,a);const g=function(t,e,i){let{y:n,height:s}=t;return"top"===e?n+=i:n-="bottom"===e?s+i:s/2,n}(e,l,c);return"center"===l?"left"===a?p+=c:"right"===a&&(p-=c):"left"===a?p-=Math.max(h,u)+s:"right"===a&&(p+=Math.max(d,f)+s),{x:ds(p,0,n.width-e.width),y:ds(g,0,n.height-e.height)}}function Oc(t,e,i){const n=fo(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function Ec(t){return yc([],xc(t))}function Ac(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}const Tc={beforeTitle:yn,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,n=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex{const e={before:[],lines:[],after:[]},s=Ac(i,t);yc(e.before,xc(Cc(s,"beforeLabel",this,t))),yc(e.lines,Cc(s,"label",this,t)),yc(e.after,xc(Cc(s,"afterLabel",this,t))),n.push(e)}),n}getAfterBody(t,e){return Ec(Cc(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:i}=e,n=Cc(i,"beforeFooter",this,t),s=Cc(i,"footer",this,t),o=Cc(i,"afterFooter",this,t);let r=[];return r=yc(r,xc(n)),r=yc(r,xc(s)),r=yc(r,xc(o)),r}_createItems(t){const e=this._active,i=this.chart.data,n=[],s=[],o=[];let r,a,l=[];for(r=0,a=e.length;rt.filter(e,n,s,i))),t.itemSort&&(l=l.sort((e,n)=>t.itemSort(e,n,i))),Tn(l,e=>{const i=Ac(t.callbacks,e);n.push(Cc(i,"labelColor",this,e)),s.push(Cc(i,"labelPointStyle",this,e)),o.push(Cc(i,"labelTextColor",this,e))}),this.labelColors=n,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),n=this._active;let s,o=[];if(n.length){const t=vc[i.position].call(this,n,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const e=this._size=wc(this,i),r=Object.assign({},t,e),a=Mc(this.chart,i,r),l=Sc(i,r,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,s={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(s={opacity:0});this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,n){const s=this.getCaretPosition(t,i,n);e.lineTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.lineTo(s.x3,s.y3)}getCaretPosition(t,e,i){const{xAlign:n,yAlign:s}=this,{caretSize:o,cornerRadius:r}=i,{topLeft:a,topRight:l,bottomLeft:c,bottomRight:h}=uo(r),{x:d,y:u}=t,{width:f,height:p}=e;let g,m,b,v,y,x;return"center"===s?(y=u+p/2,"left"===n?(g=d,m=g-o,v=y+o,x=y-o):(g=d+f,m=g+o,v=y-o,x=y+o),b=g):(m="left"===n?d+Math.max(a,c)+o:"right"===n?d+f-Math.max(l,h)-o:this.caretX,"top"===s?(v=u,y=v-o,g=m-o,b=m+o):(v=u+p,y=v+o,g=m+o,b=m-o),x=v),{x1:g,x2:m,x3:b,y1:v,y2:y,y3:x}}drawTitle(t,e,i){const n=this.title,s=n.length;let o,r,a;if(s){const l=Zo(i.rtl,this.x,this.width);for(t.x=Oc(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",o=po(i.titleFont),r=i.titleSpacing,e.fillStyle=i.titleColor,e.font=o.string,a=0;a0!==t)?(t.beginPath(),t.fillStyle=s.multiKeyBackground,so(t,{x:e,y:f,w:l,h:a,radius:r}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),so(t,{x:i,y:f+1,w:l-2,h:a-2,radius:r}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(e,f,l,a),t.strokeRect(e,f,l,a),t.fillStyle=o.backgroundColor,t.fillRect(i,f+1,l-2,a-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:n}=this,{bodySpacing:s,bodyAlign:o,displayColors:r,boxHeight:a,boxWidth:l,boxPadding:c}=i,h=po(i.bodyFont);let d=h.lineHeight,u=0;const f=Zo(i.rtl,this.x,this.width),p=function(i){e.fillText(i,f.x(t.x+u),t.y+d/2),t.y+=d+s},g=f.textAlign(o);let m,b,v,y,x,_,w;for(e.textAlign=o,e.textBaseline="middle",e.font=h.string,t.x=Oc(this,g,i),e.fillStyle=i.bodyColor,Tn(this.beforeBody,p),u=r&&"right"!==g?"center"===o?l/2+c:l+2+c:0,y=0,_=n.length;y<_;++y){for(m=n[y],b=this.labelTextColors[y],e.fillStyle=b,Tn(m.before,p),v=m.lines,r&&v.length&&(this._drawColorBox(e,t,y,f,i),d=Math.max(h.lineHeight,a)),x=0,w=v.length;x0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,n=i&&i.x,s=i&&i.y;if(n||s){const i=vc[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=wc(this,t),r=Object.assign({},i,this._size),a=Mc(e,t,r),l=Sc(t,r,a,e);n._to===l.x&&s._to===l.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=fo(e.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&r&&(t.save(),t.globalAlpha=i,this.drawBackground(s,t,n,e),tr(t,e.textDirection),s.y+=o.top,this.drawTitle(s,t,e),this.drawBody(s,t,e),this.drawFooter(s,t,e),er(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,n=t.map(({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}),s=!Cn(i,n),o=this._positionChanged(n,e);(s||o)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,s=this._active||[],o=this._getActiveElements(t,s,e,i),r=this._positionChanged(o,t),a=e||!Cn(o,s)||r;return a&&(this._active=o,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),a}_getActiveElements(t,e,i,n){const s=this.options;if("mouseout"===t.type)return[];if(!n)return e.filter(t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index));const o=this.chart.getElementsAtEventForMode(t,s.mode,s,i);return s.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:i,caretY:n,options:s}=this,o=vc[s.position].call(this,t,e);return!1!==o&&(i!==o.x||n!==o.y)}}var Lc={id:"tooltip",_element:Pc,positioners:vc,afterInit(t,e,i){i&&(t.tooltip=new Pc({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...i,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Tc},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Dc=Object.freeze({__proto__:null,Colors:Vl,Decimation:Ul,Filler:cc,Legend:fc,SubTitle:bc,Title:gc,Tooltip:Lc});function Ic(t,e,i,n){const s=t.indexOf(e);if(-1===s)return((t,e,i,n)=>("string"==typeof e?(i=t.push(e)-1,n.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,n);return s!==t.lastIndexOf(e)?i:s}function Rc(t){const e=this.getLabels();return t>=0&&tf&&(M=ts(k*M/f/u)*u),_n(a)||(x=Math.pow(10,a),M=Math.ceil(M*x)/x),"ticks"===n?(_=Math.floor(p/M)*M,w=Math.ceil(g/M)*M):(_=p,w=g),m&&b&&s&&function(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}((r-o)/s,M/1e3)?(k=Math.round(Math.min((r-o)/M,c)),M=(r-o)/k,_=o,w=r):v?(_=m?o:_,w=b?r:w,k=l-1,M=(w-_)/k):(k=(w-_)/M,k=Zn(k,Math.round(k),M/1e3)?Math.round(k):Math.ceil(k));const S=Math.max(os(M),os(_));x=Math.pow(10,_n(a)?S:a),_=Math.round(_*x)/x,w=Math.round(w*x)/x;let O=0;for(m&&(d&&_!==o?(i.push({value:o}),_r)break;i.push({value:t})}return b&&d&&w!==r?i.length&&Zn(i[i.length-1].value,r,Fc(r,y,t))?i[i.length-1].value=r:i.push({value:r}):b&&w!==r||i.push({value:w}),i}function Fc(t,e,{horizontal:i,minRotation:n}){const s=ns(n),o=(i?Math.sin(s):Math.cos(s))||.001,r=.75*e*(""+t).length;return Math.min(e/o,r)}class zc extends ja{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return _n(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:n,max:s}=this;const o=t=>n=e?n:t,r=t=>s=i?s:t;if(t){const t=Qn(n),e=Qn(s);t<0&&e<0?r(0):t>0&&e>0&&o(0)}if(n===s){let e=0===s?1:Math.abs(.05*s);r(s+e),t||o(n-e)}this.min=n,this.max=s}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:n}=t;return n?(e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const n=jc({maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&is(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const n=(i-e)/Math.max(t.length-1,1)/2;e-=n,i+=n}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return Rs(t,this.chart.options.locale,this.options.ticks.format)}}class Nc extends zc{static id="linear";static defaults={ticks:{callback:Fs.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Mn(t)?t:0,this.max=Mn(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=ns(this.options.ticks.minRotation),n=(t?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,s.lineHeight/n))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const Bc=t=>Math.floor(Kn(t)),Wc=(t,e)=>Math.pow(10,Bc(t)+e);function Vc(t){return 1===t/Math.pow(10,Bc(t))}function Hc(t,e,i){const n=Math.pow(10,i),s=Math.floor(t/n);return Math.ceil(e/n)-s}function $c(t,{min:e,max:i}){e=Sn(t.min,e);const n=[],s=Bc(e);let o=function(t,e){let i=Bc(e-t);for(;Hc(t,e,i)>10;)i++;for(;Hc(t,e,i)<10;)i--;return Math.min(i,Bc(t))}(e,i),r=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=s>o?Math.pow(10,s):0,c=Math.round((e-l)*r)/r,h=Math.floor((e-l)/a/10)*a*10;let d=Math.floor((c-h)/Math.pow(10,o)),u=Sn(t.min,Math.round((l+h+d*Math.pow(10,o))*r)/r);for(;u=10?d=d<15?15:20:d++,d>=20&&(o++,d=2,r=o>=0?1:r),u=Math.round((l+h+d*Math.pow(10,o))*r)/r;const f=Sn(t.max,u);return n.push({value:f,major:Vc(f),significand:d}),n}class Uc extends ja{static id="logarithmic";static defaults={ticks:{callback:Fs.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=zc.prototype.parse.apply(this,[t,e]);if(0!==i)return Mn(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Mn(t)?Math.max(0,t):null,this.max=Mn(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Mn(this._userMin)&&(this.min=t===Wc(this.min,0)?Wc(this.min,-1):Wc(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,n=this.max;const s=e=>i=t?i:e,o=t=>n=e?n:t;i===n&&(i<=0?(s(1),o(10)):(s(Wc(i,-1)),o(Wc(n,1)))),i<=0&&s(Wc(n,-1)),n<=0&&o(Wc(i,1)),this.min=i,this.max=n}buildTicks(){const t=this.options,e=$c({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&is(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":Rs(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Kn(t),this._valueRange=Kn(this.max)-Kn(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Kn(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function qc(t){const e=t.ticks;if(e.display&&t.display){const t=fo(e.backdropPadding);return On(e.font&&e.font.size,Hs.font.size)+t.height}return 0}function Yc(t,e,i){return i=wn(i)?i:[i],{w:Us(t,e.string,i),h:i.length*e.lineHeight}}function Xc(t,e,i,n,s){return t===n||t===s?{start:e-i/2,end:e+i/2}:ts?{start:e-i,end:e}:{start:e,end:e+i}}function Jc(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),n=[],s=[],o=t._pointLabels.length,r=t.options.pointLabels,a=r.centerPointLabels?Hn/o:0;for(let l=0;le.r&&(a=(n.end-e.r)/o,t.r=Math.max(t.r,e.r+a)),s.starte.b&&(l=(s.end-e.b)/r,t.b=Math.max(t.b,e.b+l))}function Kc(t,e,i){const n=t.drawingArea,{extra:s,additionalAngle:o,padding:r,size:a}=i,l=t.getPointPosition(e,n+s+r,o),c=Math.round(ss(cs(l.angle+Xn))),h=function(t,e,i){90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e);return t}(l.y,a.h,c),d=function(t){if(0===t||180===t)return"center";if(t<180)return"left";return"right"}(c),u=function(t,e,i){"right"===i?t-=e:"center"===i&&(t-=e/2);return t}(l.x,a.w,d);return{visible:!0,x:l.x,y:h,textAlign:d,left:u,top:h,right:u+a.w,bottom:h+a.h}}function Qc(t,e){if(!e)return!0;const{left:i,top:n,right:s,bottom:o}=t;return!(Gs({x:i,y:n},e)||Gs({x:i,y:o},e)||Gs({x:s,y:n},e)||Gs({x:s,y:o},e))}function Zc(t,e,i){const{left:n,top:s,right:o,bottom:r}=i,{backdropColor:a}=e;if(!_n(a)){const i=uo(e.borderRadius),l=fo(e.backdropPadding);t.fillStyle=a;const c=n-l.left,h=s-l.top,d=o-n+l.width,u=r-s+l.height;Object.values(i).some(t=>0!==t)?(t.beginPath(),so(t,{x:c,y:h,w:d,h:u,radius:i}),t.fill()):t.fillRect(c,h,d,u)}}function th(t,e,i,n){const{ctx:s}=t;if(i)s.arc(t.xCenter,t.yCenter,e,0,$n);else{let i=t.getPointPosition(0,e);s.moveTo(i.x,i.y);for(let o=1;ot,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=fo(qc(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=Mn(t)&&!isNaN(t)?t:0,this.max=Mn(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/qc(this.options))}generateTickLabels(t){zc.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{const i=An(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){const t=this.options;t.display&&t.pointLabels.display?Jc(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,n){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,n))}getIndexAngle(t){return cs(t*($n/(this._pointLabels.length||1))+ns(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(_n(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(_n(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t=0;s--){const e=t._pointLabelItems[s];if(!e.visible)continue;const o=n.setContext(t.getPointLabelContext(s));Zc(i,o,e);const r=po(o.font),{x:a,y:l,textAlign:c}=e;no(i,t._pointLabels[s],a,l+r.lineHeight/2,r,{color:o.color,textAlign:c,textBaseline:"middle"})}}(this,o),n.display&&this.ticks.forEach((t,e)=>{if(0!==e||0===e&&this.min<0){a=this.getDistanceFromCenterForValue(t.value);const i=this.getContext(e),r=n.setContext(i),l=s.setContext(i);!function(t,e,i,n,s){const o=t.ctx,r=e.circular,{color:a,lineWidth:l}=e;!r&&!n||!a||!l||i<0||(o.save(),o.strokeStyle=a,o.lineWidth=l,o.setLineDash(s.dash||[]),o.lineDashOffset=s.dashOffset,o.beginPath(),th(t,i,r,n),o.closePath(),o.stroke(),o.restore())}(this,r,a,o,l)}}),i.display){for(t.save(),r=o-1;r>=0;r--){const n=i.setContext(this.getPointLabelContext(r)),{color:s,lineWidth:o}=n;o&&s&&(t.lineWidth=o,t.strokeStyle=s,t.setLineDash(n.borderDash),t.lineDashOffset=n.borderDashOffset,a=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),l=this.getPointPosition(r,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const n=this.getIndexAngle(0);let s,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((n,r)=>{if(0===r&&this.min>=0&&!e.reverse)return;const a=i.setContext(this.getContext(r)),l=po(a.font);if(s=this.getDistanceFromCenterForValue(this.ticks[r].value),a.showLabelBackdrop){t.font=l.string,o=t.measureText(n.label).width,t.fillStyle=a.backdropColor;const e=fo(a.backdropPadding);t.fillRect(-o/2-e.left,-s-l.size/2-e.top,o+e.width,l.size+e.height)}no(t,n.label,0,-s,l,{color:a.color,strokeColor:a.textStrokeColor,strokeWidth:a.textStrokeWidth})}),t.restore()}drawTitle(){}}const ih={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},nh=Object.keys(ih);function sh(t,e){return t-e}function oh(t,e){if(_n(e))return null;const i=t._adapter,{parser:n,round:s,isoWeekday:o}=t._parseOpts;let r=e;return"function"==typeof n&&(r=n(r)),Mn(r)||(r="string"==typeof n?i.parse(r,n):i.parse(r)),null===r?null:(s&&(r="week"!==s||!es(o)&&!0!==o?i.startOf(r,s):i.startOf(r,"isoWeek",o)),+r)}function rh(t,e,i,n){const s=nh.length;for(let o=nh.indexOf(t);o=e?i[n]:i[s]]=!0}}else t[e]=!0}function lh(t,e,i){const n=[],s={},o=e.length;let r,a;for(r=0;r=0&&(e[l].major=!0);return e}(t,n,s,i):n}class ch extends ja{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const i=t.time||(t.time={}),n=this._adapter=new Vr(t.adapters.date);n.init(e),Rn(i.displayFormats,n.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:oh(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:n,max:s,minDefined:o,maxDefined:r}=this.getUserBounds();function a(t){o||isNaN(t.min)||(n=Math.min(n,t.min)),r||isNaN(t.max)||(s=Math.max(s,t.max))}o&&r||(a(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||a(this.getMinMax(!1))),n=Mn(n)&&!isNaN(n)?n:+e.startOf(Date.now(),i),s=Mn(s)&&!isNaN(s)?s:+e.endOf(Date.now(),i)+1,this.min=Math.min(n,s-1),this.max=Math.max(n+1,s)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,n="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const s=this.min,o=function(t,e,i){let n=0,s=t.length;for(;nn&&t[s-1]>i;)s--;return n>0||s=nh.indexOf(i);o--){const i=nh[o];if(ih[i].common&&t._adapter.diff(s,n,i)>=e-1)return i}return nh[i?nh.indexOf(i):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=nh.indexOf(t)+1,i=nh.length;e+t.value))}initOffsets(t=[]){let e,i,n=0,s=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),n=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),s=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=ds(n,0,o),s=ds(s,0,o),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){const t=this._adapter,e=this.min,i=this.max,n=this.options,s=n.time,o=s.unit||rh(s.minUnit,e,i,this._getLabelCapacity(e)),r=On(n.ticks.stepSize,1),a="week"===o&&s.isoWeekday,l=es(a)||!0===a,c={};let h,d,u=e;if(l&&(u=+t.startOf(u,"isoWeek",a)),u=+t.startOf(u,l?"day":o),t.diff(i,e,o)>1e5*r)throw new Error(e+" and "+i+" are too far apart with stepSize of "+r+" "+o);const f="data"===n.ticks.source&&this.getDataTimestamps();for(h=u,d=0;h+t)}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}format(t,e){const i=this.options.time.displayFormats,n=this._unit,s=e||i[n];return this._adapter.format(t,s)}_tickFormatFunction(t,e,i,n){const s=this.options,o=s.ticks.callback;if(o)return An(o,[t,e,i],this);const r=s.time.displayFormats,a=this._unit,l=this._majorUnit,c=a&&r[a],h=l&&r[l],d=i[e],u=l&&h&&d&&d.major;return this._adapter.format(t,n||(u?h:c))}generateTickLabels(t){let e,i,n;for(e=0,i=t.length;e0?r:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(t=0,e=n.length;t=t[a].pos&&e<=t[l].pos&&({lo:a,hi:l}=ps(t,"pos",e)),({pos:n,time:o}=t[a]),({pos:s,time:r}=t[l])):(e>=t[a].time&&e<=t[l].time&&({lo:a,hi:l}=ps(t,"time",e)),({time:n,pos:o}=t[a]),({time:s,pos:r}=t[l]));const c=s-n;return c?o+(r-o)*(e-n)/c:o}var dh=Object.freeze({__proto__:null,CategoryScale:class extends ja{static id="category";static defaults={ticks:{callback:Rc}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:i,label:n}of e)t[i]===n&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(_n(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:ds(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:Ic(i,t,On(e,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:n}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(n=this.getLabels().length-1)),this.min=i,this.max=n}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,n=[];let s=this.getLabels();s=0===t&&e===s.length-1?s:s.slice(t,e+1),this._valueRange=Math.max(s.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)n.push({value:i});return n}getLabelForValue(t){return Rc.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}},LinearScale:Nc,LogarithmicScale:Uc,RadialLinearScale:eh,TimeScale:ch,TimeSeriesScale:class extends ch{static id="timeseries";static defaults=ch.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=hh(e,this.min),this._tableRange=hh(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,n=[],s=[];let o,r,a,l,c;for(o=0,r=t.length;o=e&&l<=i&&n.push(l);if(n.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,r=n.length;ot-e)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(hh(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return hh(this._table,i*this._tableRange+this._minPos,!0)}}});const uh=[Nr,Rl,Dc,dh];fl.register(...uh);const fh=fl;var ph=i(998),gh=i.n(ph);const mh={data:{},nonce:"",context:null,init(t){this.context=t;const e=t.querySelectorAll("[data-progress]"),i=t.querySelectorAll("[data-chart]");[...e].forEach(t=>{t.dataset.url&&(this.data[t.dataset.url]||(this.data[t.dataset.url]={items:[],poll:null}),this.data[t.dataset.url].items.push(t)),"line"===t.dataset.progress?this.line(t):"circle"===t.dataset.progress&&this.circle(t),this.nonce||(this.nonce=t.dataset?.nonce)});for(const t in this.data)this.getValues(t);[...i].forEach(t=>{const e={labels:JSON.parse(t.dataset.dates),datasets:[{backgroundColor:t.dataset.color,borderColor:t.dataset.color,data:JSON.parse(t.dataset.data),cubicInterpolationMode:"monotone"}]};new fh(t,{type:"line",data:e,options:{responsive:!0,radius:0,interaction:{intersect:!1},plugins:{legend:{display:!1}},scales:{y:{suggestedMin:0,ticks:{color:"#999999",callback:(t,e)=>gh()(t,{decimals:2,scale:"SI"})},grid:{color:"#d3dce3"}},x:{ticks:{color:"#999999"},grid:{color:"#d3dce3"}}}}})})},line(t){new(zi().Line)(t,{strokeWidth:2,easing:"easeInOut",duration:1400,color:t.dataset.color,trailColor:"#d3dce3",trailWidth:2,svgStyle:{width:"100%",height:"100%",display:"block"}}).animate(t.dataset.value/100)},circle(t){t.dataset.basetext=t.dataset.text,t.dataset.text="";const e=t.dataset.value,i=this;if(t.bar=new(zi().Circle)(t,{strokeWidth:3,easing:"easeInOut",duration:1400,color:t.dataset.color,trailColor:"#d3dce3",trailWidth:3,svgStyle:null,text:{autoStyleContainer:!1,style:{color:"#222222"}},step(e,n){const s=Math.floor(100*n.value());i.setText(n,parseFloat(s),t.dataset.text)}}),!t.dataset.url){const i=e/100;t.bar.animate(i)}},getValues(t){this.data[t].poll&&(clearTimeout(this.data[t].poll),this.data[t].poll=null),Mt({path:t,method:"GET",headers:{"X-WP-Nonce":this.nonce}}).then(e=>{this.data[t].items.forEach(i=>{void 0!==e[i.dataset.basetext]?i.dataset.text=e[i.dataset.basetext]:i.dataset.text=i.dataset.basetext,i.bar.animate(e[i.dataset.value]),i.dataset.poll&&!this.data[t].poll&&(this.data[t].poll=setTimeout(()=>{this.getValues(t)},1e4))});for(const t in e){const i=this.context.querySelectorAll(`[data-key="${t}"]`),n=this.context.querySelectorAll(`[data-text="${t}"]`);i.forEach(i=>{i.dataset.value=e[t],i.dispatchEvent(new Event("focus"))}),n.forEach(i=>{i.innerText=e[t],i.classList.contains("cld-toggle")&&(e[t]?i.classList.remove("hidden"):i.classList.add("hidden"))})}})},setText(t,e,i){if(!t)return;const n=document.createElement("span"),s=document.createElement("h2"),o=document.createTextNode(i);s.innerText=e+"%",n.appendChild(s),n.appendChild(o),t.setText(n)}},bh=mh,vh={key:"_cld_pending_state",data:null,pending:null,changed:!1,previous:{},init(){this.data=cldData.stateData?cldData.stateData:{};let t=localStorage.getItem(this.key);t&&(t=JSON.parse(t),this.data={...this.data,...t},this.sendStates()),this.previous=JSON.stringify(this.data)},_update(){this.pending&&(clearTimeout(this.pending),localStorage.removeItem(this.key)),this.previous!==JSON.stringify(this.data)&&(this.pending=setTimeout(()=>this.sendStates(),2e3),localStorage.setItem(this.key,JSON.stringify(this.data)))},set(t,e){this.data[t]&&this.data[t]===e||(this.data[t]=e,this._update())},get(t){let e=null;return this.data[t]&&(e=this.data[t]),e},sendStates(){fetch(cldData.stateURL,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":cldData.stateNonce},body:JSON.stringify(this.data)}).then(t=>t.json()).then(t=>{t.success&&(this.previous=JSON.stringify(t.state),localStorage.removeItem(this.key))})}},yh={init(t){[...t.querySelectorAll("[data-remove]")].forEach(t=>{t.addEventListener("click",e=>{if(t.dataset.message&&!confirm(t.dataset.message))return;const i=document.getElementById(t.dataset.remove);i.parentNode.removeChild(i)})})}},xh={values:{},inputs:{},context:null,init(t){this.context=t;t.querySelectorAll("[data-tags]").forEach(t=>this.bind(t))},bind(t){t.innerText=t.dataset.placeholder;const e=t.dataset.tags,i=document.getElementById(e),n=this.context.querySelectorAll(`[data-tags-delete="${e}"]`);this.values[e]=JSON.parse(i.value),this.inputs[e]=i,t.boundInput=e,t.boundDisplay=this.context.querySelector(`[data-tags-display="${e}"]`),t.boundDisplay.addEventListener("click",e=>{t.focus()}),t.addEventListener("focus",e=>{t.innerText=null}),t.addEventListener("blur",e=>{3{if("Tab"===i.key)3{"Comma"!==e.code&&"Enter"!==e.code&&"Tab"!==e.code&&"Space"!==e.code||(e.preventDefault(),3{t.parentNode.control=t,t.parentNode.style.width=getComputedStyle(t.parentNode).width,t.addEventListener("click",e=>{e.stopPropagation(),this.deleteTag(t)})})},deleteTag(t){const e=t.parentNode,i=e.dataset.inputId,n=this.values[i].indexOf(e.dataset.value);0<=n&&this.values[i].splice(n,1),e.style.width=0,e.style.opacity=0,e.style.padding=0,e.style.margin=0,setTimeout(()=>{e.parentNode.removeChild(e)},500),this.updateInput(i)},captureTag(t,e){if(this[t.dataset.format]&&"string"!=typeof(e=this[t.dataset.format](e)))return t.classList.add("pulse"),void setTimeout(()=>{t.classList.remove("pulse")},1e3);if(!this.validateUnique(t.boundDisplay,e)){const i=this.createTag(e);i.dataset.inputId=t.boundInput,this.values[t.boundInput].push(e),t.innerText=null,t.boundDisplay.insertBefore(i,t),i.style.width=getComputedStyle(i).width,i.style.opacity=1,this.updateInput(t.boundInput)}},createTag(t){const e=document.createElement("span"),i=document.createElement("span"),n=document.createElement("span");return e.classList.add("cld-input-tags-item"),i.classList.add("cld-input-tags-item-text"),n.className="cld-input-tags-item-delete dashicons dashicons-no-alt",n.addEventListener("click",()=>this.deleteTag(n)),i.innerText=t,e.appendChild(i),e.appendChild(n),e.dataset.value=t,e.style.opacity=0,e.control=n,e},validateUnique(t,e){const i=t.querySelector(`[data-value="${e}"]`);let n=!1;return i&&(i.classList.remove("pulse"),i.classList.add("pulse"),setTimeout(()=>{i.classList.remove("pulse")},500),n=!0),n},updateInput(t){this.inputs[t].value=JSON.stringify(this.values[t])},host(t){!1===/^(?:http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)/.test(t)&&(t="https://"+t);let e="";try{e=new URL(t)}catch(t){return t}return decodeURIComponent(e.host)}},_h=xh,wh={suffixInputs:null,init(t){this.suffixInputs=t.querySelectorAll("[data-suffix]"),[...this.suffixInputs].forEach(t=>this.bindInput(t))},bindInput(t){const e=document.getElementById(t.dataset.suffix),i=e.dataset.template.split("@value");this.setSuffix(e,i,t.value),t.addEventListener("change",()=>this.setSuffix(e,i,t.value)),t.addEventListener("input",()=>this.setSuffix(e,i,t.value))},setSuffix(t,e,i){t.innerHTML="",t.classList.add("hidden"),-1===["none","off",""].indexOf(i)&&t.classList.remove("hidden");const n=document.createTextNode(e.join(i));t.appendChild(n)}},kh={wrappers:null,frame:null,error:'data:image/svg+xml;utf8,%26%23x26A0%3B︎',init(t){this.wrappers=t.querySelectorAll(".cld-size-items"),this.wrappers.forEach(t=>{const e=t.querySelectorAll(".cld-size-selector-item");e.forEach(i=>{i.addEventListener("click",()=>{e.forEach(t=>{delete t.dataset.selected}),i.dataset.selected=!0,this.switchSizeContent(t,i.dataset.size)})});const i=t.querySelector(".cld-size-selector-item[data-selected]");i&&this.switchSizeContent(t,i.dataset.size)})},switchSizeContent(t,e){t.querySelectorAll(".cld-size-content").forEach(t=>{t.style.display="none"});const i=t.querySelector(`.cld-size-content[data-size="${e}"]`);i&&(i.style.display="block",this.buildImages(t,i))},buildImages(t,e){const i=t.dataset.base,n=e.querySelector(".regular-text"),s=e.querySelector(".disable-toggle");if(!n||!s)return;const o=e.querySelectorAll("img"),r=n.value.length?n.value.replace(" ",""):n.placeholder;if(o.forEach(t=>{const e=t.dataset.size,o=t.dataset.file;s.checked?(n.disabled=!0,t.src=`${i}/${e}/${o}`):(n.disabled=!1,t.src=`${i}/${e},${r}/${o}`),t.bound||(t.addEventListener("error",()=>{t.src=this.error}),t.bound=!0)}),!n.bound){let i=null;n.addEventListener("input",()=>{i&&clearTimeout(i),i=setTimeout(()=>{this.buildImages(t,e)},1e3)}),n.bound=!0}s.bound||(s.addEventListener("change",()=>{this.buildImages(t,e)}),s.bound=!0);const a=e.querySelector(".clear-crop-input");a&&!a.bound&&(a.addEventListener("click",()=>{n.value="",this.buildImages(t,e)}),a.bound=!0)}},Mh={bindings:{},parent_check_data:{},check_parents:{},_init(t){const e=t.querySelectorAll("[data-condition]"),i=t.querySelectorAll("[data-toggle]"),n=t.querySelectorAll("[data-for]"),s=t.querySelectorAll("[data-tooltip]"),o=t.querySelectorAll("[data-bind-trigger]"),r=t.querySelectorAll("[data-main]"),a=t.querySelectorAll("[data-file]"),l=t.querySelectorAll("[data-auto-suffix]"),c=t.querySelectorAll("[data-confirm]"),h={};vh.init(),ji.bind(r),l.forEach(t=>this._autoSuffix(t)),o.forEach(t=>this._trigger(t)),i.forEach(t=>this._toggle(t)),e.forEach(t=>this._bind(t)),n.forEach(t=>this._alias(t)),a.forEach(t=>this._files(t,h)),Li(s,{theme:"cloudinary",arrow:!1,placement:"bottom-start",aria:{content:"auto",expanded:"auto"},content:t=>document.getElementById(t.dataset.tooltip).innerHTML}),[...o].forEach(t=>{t.dispatchEvent(new Event("input"))}),c.forEach(t=>{t.addEventListener("click",e=>{confirm(t.dataset.confirm)||(e.preventDefault(),e.stopPropagation())})}),bh.init(t),yh.init(t),_h.init(t),wh.init(t),kh.init(t)},_autoSuffix(t){const e=t.dataset.autoSuffix;let i="";const n=[...e.split(";")].map(t=>0===t.indexOf("*")?(i=t.replace("*",""),i):t);t.addEventListener("change",()=>{const e=t.value.replace(" ",""),s=e.replace(/[^0-9]/g,""),o=e.replace(/[0-9]/g,"").toLowerCase();s&&(-1===n.indexOf(o)?t.value=s+i:t.value=s+o)}),t.dispatchEvent(new Event("change"))},_files(t,e){const i=t.dataset.parent;i&&(this.check_parents[i]=document.getElementById(i),this.parent_check_data[i]||(this.parent_check_data[i]=this.check_parents[i].value?JSON.parse(this.check_parents[i].value):[]),t.addEventListener("change",()=>{const n=this.parent_check_data[i].indexOf(t.value);t.checked?this.parent_check_data[i].push(t.value):this.parent_check_data[i].splice(n,1),e[i]&&clearTimeout(e[i]),e[i]=setTimeout(()=>{this._compileParent(i)},10)}))},_compileParent(t){this.check_parents[t].value=JSON.stringify(this.parent_check_data[t]),this.check_parents[t].dispatchEvent(new Event("change"))},_bind(t){t.condition=JSON.parse(t.dataset.condition);for(const e in t.condition)this.bindings[e]&&this.bindings[e].elements.push(t)},_trigger(t){const e=t.dataset.bindTrigger,i=this;i.bindings[e]={input:t,value:t.value,checked:!0,elements:[]},t.addEventListener("change",function(e){t.dispatchEvent(new Event("input"))}),t.addEventListener("input",function(){if(i.bindings[e].value=t.value,"checkbox"===t.type&&(i.bindings[e].checked=t.checked),"radio"!==t.type||!1!==t.checked)for(const n in i.bindings[e].elements)i.toggle(i.bindings[e].elements[n],t)})},_alias(t){t.addEventListener("click",function(){document.getElementById(t.dataset.for).dispatchEvent(new Event("click"))})},_toggle(t){const e=this,i=document.querySelector('[data-wrap="'+t.dataset.toggle+'"]');if(!i)return;const n=vh.get(t.id);t.addEventListener("click",function(n){n.stopPropagation();const s=i.classList.contains("open")?"closed":"open";e.toggle(i,t,s)}),n!==t.dataset.state&&this.toggle(i,t,n)},toggle(t,e,i){if(!i){i="open";for(const e in t.condition){let n=this.bindings[e].value;const s=t.condition[e];"boolean"==typeof s&&(n=this.bindings[e].checked),s!==n&&(i="closed")}}"closed"===i?this.close(t,e):this.open(t,e),vh.set(e.id,i)},open(t,e){const i=t.getElementsByClassName("cld-ui-input");t.classList.remove("closed"),t.classList.add("open"),e&&e.classList.contains("dashicons")&&(e.classList.remove("dashicons-arrow-down-alt2"),e.classList.add("dashicons-arrow-up-alt2")),[...i].forEach(function(t){t.dataset.disabled=!1})},close(t,e){const i=t.getElementsByClassName("cld-ui-input");t.classList.remove("open"),t.classList.add("closed"),e&&e.classList.contains("dashicons")&&(e.classList.remove("dashicons-arrow-up-alt2"),e.classList.add("dashicons-arrow-down-alt2")),[...i].forEach(function(t){t.dataset.disabled=!0})}},Sh=document.querySelectorAll(".cld-settings,.cld-meta-box");Sh.length&&Sh.forEach(t=>{t&&window.addEventListener("load",Mh._init(t))});const Oh={config:null,init(){this.config||"undefined"!=typeof cldData&&cldData.analytics&&cldData.analytics.enabled&&(this.config=cldData.analytics,Mt.use(Mt.createNonceMiddleware(this.config.nonce)))},track(t,e={},i="activation_funnel",n=null){if(this.config||this.init(),this.config&&this.config.enabled&&t)try{Mt({url:this.config.endpoint,method:"POST",data:{event_name:t,event_category:i,funnel_step:n,params:e}}).catch(()=>{})}catch(t){}},trackReliable(t,e={},i="activation_funnel"){if(this.config||this.init(),this.config&&this.config.enabled&&t)if(navigator.sendBeacon)try{const n=this.config.endpoint.includes("?")?"&":"?",s=this.config.endpoint+n+"_wpnonce="+encodeURIComponent(this.config.nonce),o=new Blob([JSON.stringify({event_name:t,event_category:i,funnel_step:null,params:e})],{type:"application/json"});navigator.sendBeacon(s,o)}catch(t){}else this.track(t,e,i)}};window.addEventListener("load",()=>Oh.init());const Eh=Oh,Ah={storageKey:"_cld_wizard",testing:null,connectAttempts:0,startedEntry:!1,startedTracked:!1,next:document.querySelector('[data-navigate="next"]'),back:document.querySelector('[data-navigate="back"]'),lock:document.getElementById("pad-lock"),lockIcon:document.getElementById("lock-icon"),options:document.querySelectorAll('.cld-ui-input[type="checkbox"]'),settings:document.getElementById("optimize"),tabBar:document.getElementById("wizard-tabs"),tracking:document.getElementById("tracking"),complete:document.getElementById("complete-wizard"),tabs:{"tab-1":document.getElementById("tab-icon-1"),"tab-2":document.getElementById("tab-icon-2"),"tab-3":document.getElementById("tab-icon-3")},content:{"tab-1":document.getElementById("tab-1"),"tab-2":document.getElementById("tab-2"),"tab-3":document.getElementById("tab-3"),"tab-4":document.getElementById("tab-4")},connection:{error:document.getElementById("connection-error"),success:document.getElementById("connection-success"),working:document.getElementById("connection-working")},debounceConnect:null,updateConnection:document.getElementById("update-connection"),cancelUpdateConnection:document.getElementById("cancel-update-connection"),config:{},didSave:!1,init(){if(!cldData.wizard)return;this.config=cldData.wizard.config,window.localStorage.getItem(this.storageKey)&&(this.config=JSON.parse(window.localStorage.getItem(this.storageKey))),document.location.hash.length&&this.hashChange(),Mt.use(Mt.createNonceMiddleware(cldData.wizard.saveNonce));const t=document.querySelectorAll("[data-navigate]"),e=document.getElementById("connect.cloudinary_url");this.updateConnection.addEventListener("click",()=>{this.lockNext(),e.parentNode.classList.remove("hidden"),this.cancelUpdateConnection.classList.remove("hidden"),this.updateConnection.classList.add("hidden")}),this.cancelUpdateConnection.addEventListener("click",()=>{this.unlockNext(),e.parentNode.classList.add("hidden"),this.cancelUpdateConnection.classList.add("hidden"),this.updateConnection.classList.remove("hidden"),this.config.cldString=!0,e.value="",this.connection.error.classList.remove("active"),this.connection.success.classList.add("active")}),[...t].forEach(t=>{t.addEventListener("click",()=>{this.navigate(t.dataset.navigate)})}),this.lock.addEventListener("click",()=>{this.lockIcon.classList.toggle("dashicons-unlock"),this.settings.classList.toggle("disabled"),this.options.forEach(t=>{t.disabled=t.disabled?"":"disabled"})}),e.addEventListener("input",t=>{this.lockNext(),this.startedEntry||(this.startedEntry=!0,Eh.track("credentials_entry_started",{},"activation_funnel",3));const i=e.value.replace("CLOUDINARY_URL=","");this.connection.error.classList.remove("active"),this.connection.success.classList.remove("active"),this.connection.working.classList.remove("active"),i.length&&(this.testing=i,this.debounceConnect&&clearTimeout(this.debounceConnect),this.debounceConnect=setTimeout(()=>{const t=this.evaluateConnectionString(i);Eh.track("credentials_format_validated",{format_valid:t,invalid_reason:t?"":this.invalidReason(i)},"activation_funnel",3),t?(this.connection.working.classList.add("active"),this.testConnection(i)):this.connection.error.classList.add("active")},500))}),this.config.cldString&&(e.parentNode.classList.add("hidden"),this.updateConnection.classList.remove("hidden"));const i=document.querySelector('a[href="https://cloudinary.com/signup"]');i&&i.addEventListener("click",()=>{Eh.track("wizard_signup_clicked",{},"activation_funnel",2)}),this.complete&&this.complete.addEventListener("click",()=>{Eh.track("wizard_dashboard_clicked",{},"activation_funnel",7)}),this.getTab(this.config.tab),this.initFeatures(),window.addEventListener("hashchange",t=>{this.hashChange()})},hashChange(){const t=parseInt(document.location.hash.replace("#",""));t&&0t&&this.getTab(t)},initFeatures(){const t=(t,e)=>{Eh.track("wizard_setting_toggled",{setting_key:t,enabled:e},"activation_funnel",4)},e=document.getElementById("media_library");e.checked=this.config.mediaLibrary,e.addEventListener("change",()=>{this.setConfig("mediaLibrary",e.checked),t("media_library",e.checked)});const i=document.getElementById("non_media");i.checked=this.config.nonMedia,i.addEventListener("change",()=>{this.setConfig("nonMedia",i.checked),t("non_media",i.checked)});const n=document.getElementById("advanced");n.checked=this.config.advanced,n.addEventListener("change",()=>{this.setConfig("advanced",n.checked),t("advanced",n.checked)})},getCurrent(){return this.content[`tab-${this.config.tab}`]},hideTabs(){Object.keys(this.content).forEach(t=>{this.hide(this.content[t])})},completeTab(t){this.incompleteTab(),Object.keys(this.tabs).forEach(e=>{const i=parseInt(this.tabs[e].dataset.tab);t>i?this.tabs[e].classList.add("complete"):t===i&&this.tabs[e].classList.add("active")})},incompleteTab(t){Object.keys(this.tabs).forEach(t=>{this.tabs[t].classList.remove("complete","active")})},getCurrentTab(){return this.tabs[`tab-icon-${this.config.tab}`]},getTab(t){if(4===t&&window.localStorage.getItem(this.storageKey)&&!this.didSave)return void this.saveConfig();const e=this.getCurrent(),i=document.getElementById(`tab-${t}`);switch(this.hideTabs(),this.completeTab(t),this.hide(document.getElementById(`tab-${this.config.tab}`)),e.classList.remove("active"),this.show(i),this.show(this.next),this.hide(this.lock),t){case 1:this.hide(this.back),this.unlockNext(),this.startedTracked||(this.startedTracked=!0,this.config.wizardStartedAt||this.setConfig("wizardStartedAt",Date.now()),Eh.track("wizard_started",{entry_point:this.getEntryPoint()},"activation_funnel",2));break;case 2:Eh.track("wizard_connect_viewed",{},"activation_funnel",3),this.show(this.back),this.config.cldString?this.showSuccess():(this.lockNext(),setTimeout(()=>{document.getElementById("connect.cloudinary_url").focus()},0)),this.updateConnection.classList.contains("hidden")&&this.lockNext();break;case 3:if(!this.config.cldString)return void(document.location.hash="1");Eh.track("wizard_settings_viewed",{},"activation_funnel",4),this.show(this.lock),this.show(this.back);break;case 4:if(!this.config.cldString)return void(document.location.hash="1");Eh.track("wizard_completed",{time_to_complete_sec:this.timeToCompleteSec()},"activation_funnel",6),this.hide(this.tabBar),this.hide(this.next),this.hide(this.back)}this.setConfig("tab",t)},navigate(t){"next"===t?this.navigateNext():"back"===t&&this.navigateBack()},navigateBack(){document.location.hash=this.config.tab-1},navigateNext(){document.location.hash=this.config.tab+1},showError(){this.connection.error.classList.add("active"),this.connection.success.classList.remove("active")},showSuccess(){this.connection.error.classList.remove("active"),this.connection.success.classList.add("active")},show(t){t.classList.remove("hidden"),t.style.display=""},hide(t){t.classList.add("hidden"),t.style.display="none"},lockNext(){this.next.disabled="disabled"},unlockNext(){this.next.disabled=""},evaluateConnectionString:t=>new RegExp(/^(?:CLOUDINARY_URL=)?(cloudinary:\/\/){1}(\d*)[:]{1}([^@]*)[@]{1}([^@]*)$/gim).test(t),invalidReason(t){const e=t.replace("CLOUDINARY_URL=","");if(0!==e.indexOf("cloudinary://"))return"missing_scheme";if(-1===e.indexOf("@"))return"missing_cloud_name";const i=e.replace("cloudinary://","").split("@")[0];return-1===i.indexOf(":")?"missing_secret":/^\d+$/.test(i.split(":")[0])?"invalid_format":"invalid_api_key"},getEntryPoint:()=>-1!==document.referrer.indexOf("plugins.php")?"auto_redirect":"menu",timeToCompleteSec(){const t=this.config.wizardStartedAt;return t?Math.max(0,Math.round((Date.now()-t)/1e3)):null},testConnection(t){this.connectAttempts+=1,Eh.track("connection_test_started",{attempt_number:this.connectAttempts},"activation_funnel",3),Mt({path:cldData.wizard.testURL,data:{cloudinary_url:t,attempt_number:this.connectAttempts},method:"POST"}).then(e=>{e.url===this.testing&&(this.connection.working.classList.remove("active"),"connection_error"===e.type?this.showError():"connection_success"===e.type&&(this.showSuccess(),this.unlockNext(),this.setConfig("cldString",t)))})},setConfig(t,e){this.config[t]=e,window.localStorage.setItem(this.storageKey,JSON.stringify(this.config))},saveConfig(){this.lockNext(),this.next.innerText=H("Setting up Cloudinary","cloudinary"),this.didSave=!0,Mt({path:cldData.wizard.saveURL,data:this.config,method:"POST"}).then(t=>{this.next.innerText=H("Next","cloudinary"),this.unlockNext(),this.getTab(4),window.localStorage.removeItem(this.storageKey)}).fail(t=>{this.didSave=!1})}};window.addEventListener("load",()=>Ah.init());const Th={select:document.getElementById("connect.offload"),tooltip:null,descriptions:{},change(){[...this.descriptions].forEach(t=>{t.classList.remove("selected")}),this.tooltip.querySelector("."+this.select.value).classList.add("selected")},addEventListener(){this.select.addEventListener("change",this.change.bind(this))},_init(){this.select&&(this.addEventListener(),this.tooltip=this.select.parentNode.querySelector(".cld-tooltip"),this.descriptions=this.tooltip.querySelectorAll("li"),this.change())}};window.addEventListener("load",()=>Th._init());const Ch={pageReloader:document.getElementById("page-reloader"),init(){if(!cldData.extensions)return;Mt.use(Mt.createNonceMiddleware(cldData.extensions.nonce));[...document.querySelectorAll("[data-extension]")].forEach(t=>{t.addEventListener("change",e=>{t.spinner||(t.spinner=this.createSpinner(),t.parentNode.appendChild(t.spinner)),t.debounce&&clearTimeout(t.debounce),t.debounce=setTimeout(()=>{this.toggleExtension(t),t.debounce=null},1e3)})})},toggleExtension(t){const e=t.dataset.extension,i=t.checked;Eh.track("extension_toggled",{extension_id:e,enabled:i},"features"),Mt({path:cldData.extensions.url,data:{extension:e,enabled:i},method:"POST"}).then(e=>{t.spinner&&(t.parentNode.removeChild(t.spinner),delete t.spinner),Object.keys(e).forEach(t=>{document.querySelectorAll(`[data-text="${t}"]`).forEach(i=>{i.innerText=e[t]})}),this.pageReloader.style.display="block"})},createSpinner(){const t=document.createElement("span");return t.classList.add("spinner"),t.classList.add("cld-extension-spinner"),t}};window.addEventListener("load",()=>Ch.init());const Ph={tabButtonSelectors:null,selectedTabID:"",deselectOldTab(){document.getElementById(this.selectedTabID).classList.remove("is-active"),this.filterActive([...this.tabButtonSelectors]).classList.remove("is-active")},selectCurrentTab(t){this.selectedTabID=t.dataset.tab,t.classList.add("is-active"),document.getElementById(this.selectedTabID).classList.add("is-active")},selectTab(t){t.preventDefault(),t.target.classList.contains("is-active")||(this.deselectOldTab(),this.selectCurrentTab(t.target))},filterTabs(){[...this.tabButtonSelectors].forEach(t=>{t.dataset.tab&&t.addEventListener("click",this.selectTab.bind(this))})},filterActive:t=>t.filter(t=>t.classList.contains("is-active")).pop(),init(){this.tabButtonSelectors=document.querySelectorAll(".cld-page-tabs-tab button"),0!==this.tabButtonSelectors.length&&(this.selectCurrentTab(this.filterActive([...this.tabButtonSelectors])),this.filterTabs())}};window.addEventListener("load",()=>Ph.init());const Lh={init(){document.querySelectorAll(".cld-special-offer-link").forEach(t=>{t.addEventListener("click",()=>{Eh.track("special_offer_clicked",{offer_id:"small_plan_29"},"settings")})})}};window.addEventListener("load",()=>Lh.init());i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p;window.$=window.jQuery})()})(); +(()=>{var t={951(t,e){var i,n,s,o;o=function(){var t="BKMGTPEZY".split("");function e(t,e){return t&&t.toLowerCase()===e.toLowerCase()}return function(i,n){return i="number"==typeof i?i:0,(n=n||{}).fixed="number"==typeof n.fixed?n.fixed:2,n.spacer="string"==typeof n.spacer?n.spacer:" ",n.calculate=function(t){var s=e(t,"si")?["k","B"]:["K","iB"],o=e(t,"si")?1e3:1024,r=Math.log(i)/Math.log(o)|0,a=i/Math.pow(o,r),l=a.toFixed(n.fixed);return r-1<3&&!e(t,"si")&&e(t,"jedec")&&(s[1]="B"),{suffix:r?(s[0]+"MGTPEZY")[r-1]+s[1]:1==(0|l)?"Byte":"Bytes",magnitude:r,result:a,fixed:l,bits:{result:a/8,fixed:(a/8).toFixed(n.fixed)}}},n.to=function(n,s){var o=e(s,"si")?1e3:1024,r=t.indexOf("string"==typeof n?n[0].toUpperCase():"B"),a=i;if(-1===r||0===r)return a.toFixed(2);for(;r>0;r--)a/=o;return a.toFixed(2)},n.human=function(t){var e=n.calculate(t);return e.fixed+n.spacer+e.suffix},n}},t.exports?t.exports=o():(n=[],void 0===(s="function"==typeof(i=o)?i.apply(e,n):i)||(t.exports=s))},998(t,e){var i,n,s;n=[],i=function(){"use strict";function t(t,e){var i,s,o;for(i=1,s=arguments.length;i>1].factor>t?s=e-1:n=e;return i[n]},r.prototype.parse=function(t,e){var i=t.match(this._regexp);if(null!==i){var s,o=i[3];if(n(this._prefixes,o))s=this._prefixes[o];else{if(e||(o=o.toLowerCase(),!n(this._lcPrefixes,o)))return;o=this._lcPrefixes[o],s=this._prefixes[o]}var r=+i[2];return void 0!==i[1]&&(r=-r),{factor:s,prefix:o,unit:i[4],value:r}}};var a={binary:r.create(",Ki,Mi,Gi,Ti,Pi,Ei,Zi,Yi".split(","),1024),SI:r.create("q,r,y,z,a,f,p,n,µ,m,,k,M,G,T,P,E,Z,Y,R,Q".split(","),1e3,-10)},l=t({},a.binary._prefixes),c=a.SI._prefixes;for(var h in c)c[h]>=1&&(l[h]=c[h]);var d=new r(l),u={maxDecimals:2,separator:" ",unit:""},f={rounding:"round",scale:"SI",strict:!1};function p(t,e){var n=i(e,u,"decimals"),s=E(t,e,void 0!==n?n:i(e,u,"maxDecimals"));t=void 0!==n?s.value.toFixed(n):String(s.value);var o=s.prefix+i(e,u,"unit");return""===o?t:t+i(e,u,"separator")+o}var g={scale:"binary",unit:"B"};function m(e,i){return p(e,void 0===i?g:t({},g,i))}function b(t,e){return x(_(t,e))}var v={scale:d,unit:"B"};function y(e,i){return x(w(e,void 0===i?v:t({},v,i),!0))}function x(t){var e=String(t.value).split(".")[1];if(void 0!==e&&-1===e.indexOf("e")){var i=Math.pow(10,e.length),n=Math.round(t.value*i)*t.factor;if(n%1==0&&Math.abs(n)<=s)return n/i}return t.value*t.factor}function _(t,e){return w(t,e,!1)}function w(t,e,n){if("string"!=typeof t)throw new TypeError("str must be a string");var s=o(a,i(e,f,"scale"));if(void 0===s)throw new Error("missing scale");var r=i(e,f,"strict"),l=i(e,f,"unit");if(void 0!==l){var c=(t=t.trim()).slice(-l.length);""!==l&&(c===l||n&&!r&&c.toLowerCase()===l.toLowerCase())?t=t.slice(0,-l.length):l=""}var h=s.parse(t,r);if(void 0===h||void 0!==l&&""!==h.unit)throw new Error("cannot parse str");return void 0!==l&&(h.unit=l),h}var k={ceil:function(t){return Math.ceil(+t.toPrecision(15))},floor:function(t){return Math.floor(+t.toPrecision(15))},round:Math.round},M={ceil:"floor",floor:"ceil"};function S(t,e){return t<10*e?10:1}function O(t,e){return E(t,e,i(e,f,"maxDecimals"))}function E(t,e,s){if("number"!=typeof t||t!=t)throw new TypeError("value must be a number");if(0===t)return{value:0,prefix:""};if(!isFinite(t))return{value:t,prefix:""};var r=t<0;r&&(t=-t);var l=o(a,i(e,f,"scale"));if(void 0===l)throw new Error("missing scale");var c=i(e,f,"rounding");if(!n(k,c))throw new Error("invalid rounding");r&&n(M,c)&&(c=M[c]);var h,d=k[c],u="auto"===s;void 0===s||u||(h=Math.pow(10,s));var p,g=i(e,f,"prefix");if(void 0!==g){if(!n(l._prefixes,g))throw new Error("invalid prefix");p=l._prefixes[g]}else{var m=l.findPrefix(t);if(void 0!==s)do{p=m.factor,u&&(h=S(t,p));var b=p/h;t=d(t/b)*b}while((m=l.findPrefix(t)).factor!==p);else p=m.factor;g=m.prefix}return u&&(h=S(t,p)),t=void 0===h?t/p:d(t*h/p)/h,{prefix:g,value:r?-t:t}}return p.bytes=m,p.parse=b,b.bytes=y,b.raw=_,p.raw=O,p.Scale=r,p},void 0===(s="function"==typeof i?i.apply(e,n):i)||(t.exports=s)},336(t){var e,i="loading"in HTMLImageElement.prototype,n="loading"in HTMLIFrameElement.prototype,s="onscroll"in window;function o(t){var e,i,n=[];"picture"===t.parentNode.tagName.toLowerCase()&&((i=(e=t.parentNode).querySelector("source[data-lazy-remove]"))&&e.removeChild(i),n=Array.prototype.slice.call(t.parentNode.querySelectorAll("source"))),n.push(t),n.forEach(function(t){t.hasAttribute("data-lazy-srcset")&&(t.setAttribute("srcset",t.getAttribute("data-lazy-srcset")),t.removeAttribute("data-lazy-srcset"))}),t.setAttribute("src",t.getAttribute("data-lazy-src")),t.removeAttribute("data-lazy-src")}function r(t){var o=document.createElement("div");for(o.innerHTML=function(t){var o=t.textContent||t.innerHTML,r="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 "+((o.match(/width=['"](\d+)['"]/)||!1)[1]||1)+" "+((o.match(/height=['"](\d+)['"]/)||!1)[1]||1)+"%27%3E%3C/svg%3E";return(/\n-1}function zt(t,e){var i=this.__data__,n=te(i,t);return n<0?(++this.size,i.push([t,e])):i[n][1]=e,this}function Bt(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e1?i[s-1]:void 0,r=s>2?i[2]:void 0;for(o=t.length>3&&"function"==typeof o?(s--,o):void 0,r&&ke(i[0],i[1],r)&&(o=s<3?void 0:o,s=1),e=Object(e);++n-1&&t%1==0&&t0){if(++e>=o)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function De(t){if(null!=t){try{return ot.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Ie(t,e){return t===e||t!=t&&e!=e}var Re=se(function(){return arguments}())?se:function(t){return He(t)&&rt.call(t,"callee")&&!bt.call(t,"callee")},je=Array.isArray;function Fe(t){return null!=t&&We(t.length)&&!Ne(t)}function ze(t){return He(t)&&Fe(t)}var Be=_t||Xe;function Ne(t){if(!Ve(t))return!1;var e=ne(t);return e==p||e==g||e==h||e==x}function We(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=a}function Ve(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function He(t){return null!=t&&"object"==typeof t}function $e(t){if(!He(t)||ne(t)!=y)return!1;var e=gt(t);if(null===e)return!0;var i=rt.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&ot.call(i)==ct}var qe=J?X(J):re;function Ue(t){return ge(t,Ye(t))}function Ye(t){return Fe(t)?Xt(t,!0):ae(t)}var Je=me(function(t,e,i){le(t,e,i)});function Ge(t){return function(){return t}}function Ke(t){return t}function Xe(){return!1}e.exports=Je}).call(this)}).call(this,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,i,n){var s,o;s=self,o=function(){return function(){"use strict";var t={720:function(t,e,i){i.r(e),i.d(e,{Scene:function(){return ae},Tweenable:function(){return St},interpolate:function(){return ee},processTweens:function(){return bt},setBezierFunction:function(){return H},shouldScheduleUpdate:function(){return xt},tween:function(){return Ot},unsetBezierFunction:function(){return $}});var n={};i.r(n),i.d(n,{bounce:function(){return R},bouncePast:function(){return j},easeFrom:function(){return z},easeFromTo:function(){return F},easeInBack:function(){return A},easeInCirc:function(){return M},easeInCubic:function(){return c},easeInExpo:function(){return _},easeInOutBack:function(){return C},easeInOutCirc:function(){return O},easeInOutCubic:function(){return d},easeInOutExpo:function(){return k},easeInOutQuad:function(){return l},easeInOutQuart:function(){return p},easeInOutQuint:function(){return b},easeInOutSine:function(){return x},easeInQuad:function(){return r},easeInQuart:function(){return u},easeInQuint:function(){return g},easeInSine:function(){return v},easeOutBack:function(){return T},easeOutBounce:function(){return E},easeOutCirc:function(){return S},easeOutCubic:function(){return h},easeOutExpo:function(){return w},easeOutQuad:function(){return a},easeOutQuart:function(){return f},easeOutQuint:function(){return m},easeOutSine:function(){return y},easeTo:function(){return B},elastic:function(){return P},linear:function(){return o},swingFrom:function(){return D},swingFromTo:function(){return L},swingTo:function(){return I}});var s={};i.r(s),i.d(s,{afterTween:function(){return Gt},beforeTween:function(){return Jt},doesApply:function(){return Ut},tweenCreated:function(){return Yt}});var o=function(t){return t},r=function(t){return Math.pow(t,2)},a=function(t){return-(Math.pow(t-1,2)-1)},l=function(t){return(t/=.5)<1?.5*Math.pow(t,2):-.5*((t-=2)*t-2)},c=function(t){return Math.pow(t,3)},h=function(t){return Math.pow(t-1,3)+1},d=function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},u=function(t){return Math.pow(t,4)},f=function(t){return-(Math.pow(t-1,4)-1)},p=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},g=function(t){return Math.pow(t,5)},m=function(t){return Math.pow(t-1,5)+1},b=function(t){return(t/=.5)<1?.5*Math.pow(t,5):.5*(Math.pow(t-2,5)+2)},v=function(t){return 1-Math.cos(t*(Math.PI/2))},y=function(t){return Math.sin(t*(Math.PI/2))},x=function(t){return-.5*(Math.cos(Math.PI*t)-1)},_=function(t){return 0===t?0:Math.pow(2,10*(t-1))},w=function(t){return 1===t?1:1-Math.pow(2,-10*t)},k=function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},M=function(t){return-(Math.sqrt(1-t*t)-1)},S=function(t){return Math.sqrt(1-Math.pow(t-1,2))},O=function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},E=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},A=function(t){var e=1.70158;return t*t*((e+1)*t-e)},T=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},C=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},P=function(t){return-1*Math.pow(4,-8*t)*Math.sin((6*t-1)*(2*Math.PI)/2)+1},L=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},D=function(t){var e=1.70158;return t*t*((e+1)*t-e)},I=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},R=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},j=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?2-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?2-(7.5625*(t-=2.25/2.75)*t+.9375):2-(7.5625*(t-=2.625/2.75)*t+.984375)},F=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},z=function(t){return Math.pow(t,4)},B=function(t){return Math.pow(t,.25)};function N(t,e,i,n,s,o){var r,a,l,c,h,d=0,u=0,f=0,p=function(t){return((d*t+u)*t+f)*t},g=function(t){return(3*d*t+2*u)*t+f},m=function(t){return t>=0?t:0-t};return d=1-(f=3*e)-(u=3*(n-e)-f),l=1-(h=3*i)-(c=3*(s-i)-h),r=t,a=function(t){return 1/(200*t)}(o),function(t){return((l*t+c)*t+h)*t}(function(t,e){var i,n,s,o,r,a;for(s=t,a=0;a<8;a++){if(o=p(s)-t,m(o)(n=1))return n;for(;io?i=s:n=s,s=.5*(n-i)+i}return s}(r,a))}var W,V=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.25,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.25,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.75,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.75;return function(s){return N(s,t,e,i,n,1)}},H=function(t,e,i,n,s){var o=V(e,i,n,s);return o.displayName=t,o.x1=e,o.y1=i,o.x2=n,o.y2=s,St.formulas[t]=o},$=function(t){return delete St.formulas[t]};function q(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function U(t,e){for(var i=0;it.length)&&(e=t.length);for(var i=0,n=new Array(e);ia?a:e;t._hasEnded=l>=a;var c=o-(a-l),h=t._filters.length>0;if(t._hasEnded)return t._render(r,t._data,c),t.stop(!0);h&&t._applyFilter(rt),l1&&void 0!==arguments[1]?arguments[1]:it,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Array.isArray(e))return V.apply(void 0,J(e));var n=Y(e);if(pt[e])return pt[e];if(n===ct||n===lt)for(var s in t)i[s]=e;else for(var o in t)i[o]=e[o]||it;return i},kt=function(t){t===ut?(ut=t._next)?ut._previous=null:ft=null:t===ft?(ft=t._previous)?ft._next=null:ut=null:(tt=t._previous,et=t._next,tt._next=et,et._previous=tt),t._previous=t._next=null},Mt="function"==typeof Promise?Promise:null;W=Symbol.toStringTag;var St=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;q(this,t),Q(this,W,"Promise"),this._config={},this._data={},this._delay=0,this._filters=[],this._next=null,this._previous=null,this._timestamp=null,this._hasEnded=!1,this._resolve=null,this._reject=null,this._currentState=e||{},this._originalState={},this._targetState={},this._start=dt,this._render=dt,this._promiseCtor=Mt,i&&this.setConfig(i)}var e;return e=[{key:"_applyFilter",value:function(t){for(var e=this._filters.length;e>0;e--){var i=this._filters[e-e][t];i&&i(this)}}},{key:"tween",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return this._isPlaying&&this.stop(),!e&&this._config||this.setConfig(e),this._pausedAtTime=null,this._timestamp=t.now(),this._start(this.get(),this._data),this._delay&&this._render(this._currentState,this._data,0),this._resume(this._timestamp)}},{key:"setConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=this._config;for(var n in e)i[n]=e[n];var s=i.promise,o=void 0===s?this._promiseCtor:s,r=i.start,a=void 0===r?dt:r,l=i.finish,c=i.render,h=void 0===c?this._config.step||dt:c,d=i.step,u=void 0===d?dt:d;this._data=i.data||i.attachment||this._data,this._isPlaying=!1,this._pausedAtTime=null,this._scheduleId=null,this._delay=e.delay||0,this._start=a,this._render=h||u,this._duration=i.duration||500,this._promiseCtor=o,l&&(this._resolve=l);var f=e.from,p=e.to,g=void 0===p?{}:p,m=this._currentState,b=this._originalState,v=this._targetState;for(var y in f)m[y]=f[y];var x=!1;for(var _ in m){var w=m[_];x||Y(w)!==ct||(x=!0),b[_]=w,v[_]=g.hasOwnProperty(_)?g[_]:w}if(this._easing=wt(this._currentState,i.easing,this._easing),this._filters.length=0,x){for(var k in t.filters)t.filters[k].doesApply(this)&&this._filters.push(t.filters[k]);this._applyFilter(at)}return this}},{key:"then",value:function(t,e){var i=this;return this._promise=new this._promiseCtor(function(t,e){i._resolve=t,i._reject=e}),this._promise.then(t,e)}},{key:"catch",value:function(t){return this.then().catch(t)}},{key:"finally",value:function(t){return this.then().finally(t)}},{key:"get",value:function(){return X({},this._currentState)}},{key:"set",value:function(t){this._currentState=t}},{key:"pause",value:function(){if(this._isPlaying)return this._pausedAtTime=t.now(),this._isPlaying=!1,kt(this),this}},{key:"resume",value:function(){return this._resume()}},{key:"_resume",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.now();return null===this._timestamp?this.tween():this._isPlaying?this._promise:(this._pausedAtTime&&(this._timestamp+=e-this._pausedAtTime,this._pausedAtTime=null),this._isPlaying=!0,null===ut?(ut=this,ft=this):(this._previous=ft,ft._next=this,ft=this),this)}},{key:"seek",value:function(e){e=Math.max(e,0);var i=t.now();return this._timestamp+e===0||(this._timestamp=i-e,mt(this,i)),this}},{key:"stop",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._isPlaying)return this;this._isPlaying=!1,kt(this);var e=this._filters.length>0;return t&&(e&&this._applyFilter(rt),gt(1,this._currentState,this._originalState,this._targetState,1,0,this._easing),e&&(this._applyFilter(st),this._applyFilter(ot))),this._resolve&&this._resolve({data:this._data,state:this._currentState,tweenable:this}),this._resolve=null,this._reject=null,this}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._currentState,i=this._data;return this._isPlaying?(this._reject&&this._reject({data:i,state:e,tweenable:this}),this._resolve=null,this._reject=null,this.stop(t)):this}},{key:"isPlaying",value:function(){return this._isPlaying}},{key:"hasEnded",value:function(){return this._hasEnded}},{key:"setScheduleFunction",value:function(e){t.setScheduleFunction(e)}},{key:"data",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t&&(this._data=X({},t)),this._data}},{key:"dispose",value:function(){for(var t in this)delete this[t]}}],e&&U(t.prototype,e),t}();function Ot(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new St;return e.tween(t),e.tweenable=e,e}Q(St,"now",function(){return Z}),Q(St,"setScheduleFunction",function(t){return ht=t}),Q(St,"filters",{}),Q(St,"formulas",pt),xt(!0);var Et,At,Tt=/(\d|-|\.)/,Ct=/([^\-0-9.]+)/g,Pt=/[0-9.-]+/g,Lt=(Et=Pt.source,At=/,\s*/.source,new RegExp("rgba?\\(".concat(Et).concat(At).concat(Et).concat(At).concat(Et,"(").concat(At).concat(Et,")?\\)"),"g")),Dt=/^.*\(/,It=/#([0-9]|[a-f]){3,6}/gi,Rt="VAL",jt=function(t,e){return t.map(function(t,i){return"_".concat(e,"_").concat(i)})};function Ft(t){return parseInt(t,16)}var zt=function(t){return"rgb(".concat((e=t,3===(e=e.replace(/#/,"")).length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[Ft(e.substr(0,2)),Ft(e.substr(2,2)),Ft(e.substr(4,2))]).join(","),")");var e},Bt=function(t,e,i){var n=e.match(t),s=e.replace(t,Rt);return n&&n.forEach(function(t){return s=s.replace(Rt,i(t))}),s},Nt=function(t){for(var e in t){var i=t[e];"string"==typeof i&&i.match(It)&&(t[e]=Bt(It,i,zt))}},Wt=function(t){var e=t.match(Pt),i=e.slice(0,3).map(Math.floor),n=t.match(Dt)[0];if(3===e.length)return"".concat(n).concat(i.join(","),")");if(4===e.length)return"".concat(n).concat(i.join(","),",").concat(e[3],")");throw new Error("Invalid rgbChunk: ".concat(t))},Vt=function(t){return t.match(Pt)},Ht=function(t,e){var i={};return e.forEach(function(e){i[e]=t[e],delete t[e]}),i},$t=function(t,e){return e.map(function(e){return t[e]})},qt=function(t,e){return e.forEach(function(e){return t=t.replace(Rt,+e.toFixed(4))}),t},Ut=function(t){for(var e in t._currentState)if("string"==typeof t._currentState[e])return!0;return!1};function Yt(t){var e=t._currentState;[e,t._originalState,t._targetState].forEach(Nt),t._tokenData=function(t){var e,i,n={};for(var s in t){var o=t[s];"string"==typeof o&&(n[s]={formatString:(e=o,i=void 0,i=e.match(Ct),i?(1===i.length||e.charAt(0).match(Tt))&&i.unshift(""):i=["",""],i.join(Rt)),chunkNames:jt(Vt(o),s)})}return n}(e)}function Jt(t){var e=t._currentState,i=t._originalState,n=t._targetState,s=t._easing,o=t._tokenData;!function(t,e){var i=function(i){var n=e[i].chunkNames,s=t[i];if("string"==typeof s){var o=s.split(" "),r=o[o.length-1];n.forEach(function(e,i){return t[e]=o[i]||r})}else n.forEach(function(e){return t[e]=s});delete t[i]};for(var n in e)i(n)}(s,o),[e,i,n].forEach(function(t){return function(t,e){var i=function(i){Vt(t[i]).forEach(function(n,s){return t[e[i].chunkNames[s]]=+n}),delete t[i]};for(var n in e)i(n)}(t,o)})}function Gt(t){var e=t._currentState,i=t._originalState,n=t._targetState,s=t._easing,o=t._tokenData;[e,i,n].forEach(function(t){return function(t,e){for(var i in e){var n=e[i],s=n.chunkNames,o=n.formatString,r=qt(o,$t(Ht(t,s),s));t[i]=Bt(Lt,r,Wt)}}(t,o)}),function(t,e){for(var i in e){var n=e[i].chunkNames,s=t[n[0]];t[i]="string"==typeof s?n.map(function(e){var i=t[e];return delete t[e],i}).join(" "):s}}(s,o)}function Kt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function Xt(t){for(var e=1;e4&&void 0!==arguments[4]?arguments[4]:0,o=Xt({},t),r=wt(t,n);for(var a in Zt._filters.length=0,Zt.set({}),Zt._currentState=o,Zt._originalState=t,Zt._targetState=e,Zt._easing=r,te)te[a].doesApply(Zt)&&Zt._filters.push(te[a]);Zt._applyFilter("tweenCreated"),Zt._applyFilter("beforeTween");var l=gt(i,o,t,e,1,s,r);return Zt._applyFilter("afterTween"),l};function ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);it.strokeWidth&&(e=t.trailWidth);var i=50-e/2;return s.render(this._pathTemplate,{radius:i,"2radius":2*i})},o.prototype._trailString=function(t){return this._pathString(t)},e.exports=o},{"./shape":8,"./utils":10}],4:[function(t,e,i){var n=t("./shape"),s=t("./utils"),o=function(t,e){this._pathTemplate=e.vertical?"M {center},100 L {center},0":"M 0,{center} L 100,{center}",n.apply(this,arguments)};o.prototype=new n,o.prototype.constructor=o,o.prototype._initializeSvg=function(t,e){var i=e.vertical?"0 0 "+e.strokeWidth+" 100":"0 0 100 "+e.strokeWidth;t.setAttribute("viewBox",i),t.setAttribute("preserveAspectRatio","none")},o.prototype._pathString=function(t){return s.render(this._pathTemplate,{center:t.strokeWidth/2})},o.prototype._trailString=function(t){return this._pathString(t)},e.exports=o},{"./shape":8,"./utils":10}],5:[function(t,e,i){e.exports={Line:t("./line"),Circle:t("./circle"),SemiCircle:t("./semicircle"),Square:t("./square"),Path:t("./path"),Shape:t("./shape"),utils:t("./utils")}},{"./circle":3,"./line":4,"./path":6,"./semicircle":7,"./shape":8,"./square":9,"./utils":10}],6:[function(t,e,i){var n=t("shifty"),s=t("./utils"),o=n.Tweenable,r={easeIn:"easeInCubic",easeOut:"easeOutCubic",easeInOut:"easeInOutCubic"},a=function t(e,i){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");var n;i=s.extend({delay:0,duration:800,easing:"linear",from:{},to:{},step:function(){}},i),n=s.isString(e)?document.querySelector(e):e,this.path=n,this._opts=i,this._tweenable=null;var o=this.path.getTotalLength();this.path.style.strokeDasharray=o+" "+o,this.set(0)};a.prototype.value=function(){var t=this._getComputedDashOffset(),e=this.path.getTotalLength();return parseFloat((1-t/e).toFixed(6),10)},a.prototype.set=function(t){this.stop(),this.path.style.strokeDashoffset=this._progressToOffset(t);var e=this._opts.step;if(s.isFunction(e)){var i=this._easing(this._opts.easing);e(this._calculateTo(t,i),this._opts.shape||this,this._opts.attachment)}},a.prototype.stop=function(){this._stopTween(),this.path.style.strokeDashoffset=this._getComputedDashOffset()},a.prototype.animate=function(t,e,i){e=e||{},s.isFunction(e)&&(i=e,e={});var n=s.extend({},e),r=s.extend({},this._opts);e=s.extend(r,e);var a=this._easing(e.easing),l=this._resolveFromAndTo(t,a,n);this.stop(),this.path.getBoundingClientRect();var c=this._getComputedDashOffset(),h=this._progressToOffset(t),d=this;this._tweenable=new o,this._tweenable.tween({from:s.extend({offset:c},l.from),to:s.extend({offset:h},l.to),duration:e.duration,delay:e.delay,easing:a,step:function(t){d.path.style.strokeDashoffset=t.offset;var i=e.shape||d;e.step(t,i,e.attachment)}}).then(function(t){s.isFunction(i)&&i()}).catch(function(t){throw console.error("Error in tweening:",t),t})},a.prototype._getComputedDashOffset=function(){var t=window.getComputedStyle(this.path,null);return parseFloat(t.getPropertyValue("stroke-dashoffset"),10)},a.prototype._progressToOffset=function(t){var e=this.path.getTotalLength();return e-t*e},a.prototype._resolveFromAndTo=function(t,e,i){return i.from&&i.to?{from:i.from,to:i.to}:{from:this._calculateFrom(e),to:this._calculateTo(t,e)}},a.prototype._calculateFrom=function(t){return n.interpolate(this._opts.from,this._opts.to,this.value(),t)},a.prototype._calculateTo=function(t,e){return n.interpolate(this._opts.from,this._opts.to,t,e)},a.prototype._stopTween=function(){null!==this._tweenable&&(this._tweenable.stop(!0),this._tweenable=null)},a.prototype._easing=function(t){return r.hasOwnProperty(t)?r[t]:t},e.exports=a},{"./utils":10,shifty:2}],7:[function(t,e,i){var n=t("./shape"),s=t("./circle"),o=t("./utils"),r=function(t,e){this._pathTemplate="M 50,50 m -{radius},0 a {radius},{radius} 0 1 1 {2radius},0",this.containerAspectRatio=2,n.apply(this,arguments)};r.prototype=new n,r.prototype.constructor=r,r.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 50")},r.prototype._initializeTextContainer=function(t,e,i){t.text.style&&(i.style.top="auto",i.style.bottom="0",t.text.alignToBottom?o.setStyle(i,"transform","translate(-50%, 0)"):o.setStyle(i,"transform","translate(-50%, 50%)"))},r.prototype._pathString=s.prototype._pathString,r.prototype._trailString=s.prototype._trailString,e.exports=r},{"./circle":3,"./shape":8,"./utils":10}],8:[function(t,e,i){var n=t("./path"),s=t("./utils"),o="Object is destroyed",r=function t(e,i){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");if(0!==arguments.length){this._opts=s.extend({color:"#555",strokeWidth:1,trailColor:null,trailWidth:null,fill:null,text:{style:{color:null,position:"absolute",left:"50%",top:"50%",padding:0,margin:0,transform:{prefix:!0,value:"translate(-50%, -50%)"}},autoStyleContainer:!0,alignToBottom:!0,value:null,className:"progressbar-text"},svgStyle:{display:"block",width:"100%"},warnings:!1},i,!0),s.isObject(i)&&void 0!==i.svgStyle&&(this._opts.svgStyle=i.svgStyle),s.isObject(i)&&s.isObject(i.text)&&void 0!==i.text.style&&(this._opts.text.style=i.text.style);var o,r=this._createSvgView(this._opts);if(!(o=s.isString(e)?document.querySelector(e):e))throw new Error("Container does not exist: "+e);this._container=o,this._container.appendChild(r.svg),this._opts.warnings&&this._warnContainerAspectRatio(this._container),this._opts.svgStyle&&s.setStyles(r.svg,this._opts.svgStyle),this.svg=r.svg,this.path=r.path,this.trail=r.trail,this.text=null;var a=s.extend({attachment:void 0,shape:this},this._opts);this._progressPath=new n(r.path,a),s.isObject(this._opts.text)&&null!==this._opts.text.value&&this.setText(this._opts.text.value)}};r.prototype.animate=function(t,e,i){if(null===this._progressPath)throw new Error(o);this._progressPath.animate(t,e,i)},r.prototype.stop=function(){if(null===this._progressPath)throw new Error(o);void 0!==this._progressPath&&this._progressPath.stop()},r.prototype.pause=function(){if(null===this._progressPath)throw new Error(o);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.pause()},r.prototype.resume=function(){if(null===this._progressPath)throw new Error(o);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.resume()},r.prototype.destroy=function(){if(null===this._progressPath)throw new Error(o);this.stop(),this.svg.parentNode.removeChild(this.svg),this.svg=null,this.path=null,this.trail=null,this._progressPath=null,null!==this.text&&(this.text.parentNode.removeChild(this.text),this.text=null)},r.prototype.set=function(t){if(null===this._progressPath)throw new Error(o);this._progressPath.set(t)},r.prototype.value=function(){if(null===this._progressPath)throw new Error(o);return void 0===this._progressPath?0:this._progressPath.value()},r.prototype.setText=function(t){if(null===this._progressPath)throw new Error(o);null===this.text&&(this.text=this._createTextContainer(this._opts,this._container),this._container.appendChild(this.text)),s.isObject(t)?(s.removeChildren(this.text),this.text.appendChild(t)):this.text.innerHTML=t},r.prototype._createSvgView=function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");this._initializeSvg(e,t);var i=null;(t.trailColor||t.trailWidth)&&(i=this._createTrail(t),e.appendChild(i));var n=this._createPath(t);return e.appendChild(n),{svg:e,path:n,trail:i}},r.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 100")},r.prototype._createPath=function(t){var e=this._pathString(t);return this._createPathElement(e,t)},r.prototype._createTrail=function(t){var e=this._trailString(t),i=s.extend({},t);return i.trailColor||(i.trailColor="#eee"),i.trailWidth||(i.trailWidth=i.strokeWidth),i.color=i.trailColor,i.strokeWidth=i.trailWidth,i.fill=null,this._createPathElement(e,i)},r.prototype._createPathElement=function(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d",t),i.setAttribute("stroke",e.color),i.setAttribute("stroke-width",e.strokeWidth),e.fill?i.setAttribute("fill",e.fill):i.setAttribute("fill-opacity","0"),i},r.prototype._createTextContainer=function(t,e){var i=document.createElement("div");i.className=t.text.className;var n=t.text.style;return n&&(t.text.autoStyleContainer&&(e.style.position="relative"),s.setStyles(i,n),n.color||(i.style.color=t.color)),this._initializeTextContainer(t,e,i),i},r.prototype._initializeTextContainer=function(t,e,i){},r.prototype._pathString=function(t){throw new Error("Override this function for each progress bar")},r.prototype._trailString=function(t){throw new Error("Override this function for each progress bar")},r.prototype._warnContainerAspectRatio=function(t){if(this.containerAspectRatio){var e=window.getComputedStyle(t,null),i=parseFloat(e.getPropertyValue("width"),10),n=parseFloat(e.getPropertyValue("height"),10);s.floatEquals(this.containerAspectRatio,i/n)||(console.warn("Incorrect aspect ratio of container","#"+t.id,"detected:",e.getPropertyValue("width")+"(width)","/",e.getPropertyValue("height")+"(height)","=",i/n),console.warn("Aspect ratio of should be",this.containerAspectRatio))}},e.exports=r},{"./path":6,"./utils":10}],9:[function(t,e,i){var n=t("./shape"),s=t("./utils"),o=function(t,e){this._pathTemplate="M 0,{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{strokeWidth}",this._trailTemplate="M {startMargin},{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{halfOfStrokeWidth}",n.apply(this,arguments)};o.prototype=new n,o.prototype.constructor=o,o.prototype._pathString=function(t){var e=100-t.strokeWidth/2;return s.render(this._pathTemplate,{width:e,strokeWidth:t.strokeWidth,halfOfStrokeWidth:t.strokeWidth/2})},o.prototype._trailString=function(t){var e=100-t.strokeWidth/2;return s.render(this._trailTemplate,{width:e,strokeWidth:t.strokeWidth,halfOfStrokeWidth:t.strokeWidth/2,startMargin:t.strokeWidth/2-t.trailWidth/2})},e.exports=o},{"./shape":8,"./utils":10}],10:[function(t,e,i){var n=t("lodash.merge"),s="Webkit Moz O ms".split(" "),o=.001;function r(t,e){var i=t;for(var n in e)if(e.hasOwnProperty(n)){var s=e[n],o=new RegExp("\\{"+n+"\\}","g");i=i.replace(o,s)}return i}function a(t,e,i){for(var n=t.style,o=0;oo[0];break;case"lt":i=this.value{const e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.hasOwn(t,e),(()=>{let t;globalThis.importScripts&&(t=globalThis.location+"");const e=globalThis.document;if(!t&&e&&("SCRIPT"===e.currentScript?.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){const i=e.getElementsByTagName("script");if(i.length){let e=i.length-1;for(;e>-1&&(!t||!/^https?:/.test(t));)t=i[e--].src}}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),i.p=t})(),(()=>{"use strict";i(336),i(712),i(544);const t={sample:{image:document.getElementById("transformation-sample-image"),video:document.getElementById("transformation-sample-video")},preview:{image:document.getElementById("sample-image"),video:document.getElementById("sample-video")},fields:document.getElementsByClassName("cld-ui-input"),button:{image:document.getElementById("refresh-image-preview"),video:document.getElementById("refresh-video-preview")},spinner:{image:document.getElementById("image-loader"),video:document.getElementById("video-loader")},optimization:{image:document.getElementById("image_settings.image_optimization"),video:document.getElementById("video_settings.video_optimization")},error_container:document.getElementById("cld-preview-error"),activeItem:null,elements:{image:[],video:[]},_placeItem(t){null!==t&&(t.style.display="block",t.style.visibility="visible",t.style.position="absolute",t.style.top=t.parentElement.clientHeight/2-t.clientHeight/2+"px",t.style.left=t.parentElement.clientWidth/2-t.clientWidth/2+"px")},_setLoading(t){this.sample[t]&&(this.button[t].style.display="block",this._placeItem(this.button[t]),this.preview[t].style.opacity="0.1")},_build(t){if(!this.sample[t])return;this.sample[t].innerHTML="",this.elements[t]=[];for(const e of this.fields){if(t!==e.dataset.context||e.dataset.disabled&&"true"===e.dataset.disabled)continue;let i=e.value.trim();if(i.length){if("select-one"===e.type){if("none"===i||!1===this.optimization[t].checked)continue;i=e.dataset.meta+"_"+i}else t=e.dataset.context,e.dataset.meta&&(i=e.dataset.meta+"_"+i),e.dataset.suffix&&(i+=e.dataset.suffix),i=this._transformations(i,t,!0);i&&this.elements[t].push(i)}}let e="";this.elements[t].length&&(e="/"+this._getGlobalTransformationElements(t).replace(/ /g,"%20")),this.sample[t].textContent=e,this.sample[t].parentElement.href="https://res.cloudinary.com/demo/"+this.sample[t].parentElement.innerText.trim().replace("../","").replace(/ /g,"%20")},_clearLoading(t){this.spinner[t].style.visibility="hidden",this.activeItem=null,this.preview[t].style.opacity=1},_refresh(t,e){if(t&&t.preventDefault(),!this.sample[e])return;const i=this,n=CLD_GLOBAL_TRANSFORMATIONS[e].preview_url+this._getGlobalTransformationElements(e)+CLD_GLOBAL_TRANSFORMATIONS[e].file;if(this.button[e].style.display="none",this._placeItem(this.spinner[e]),"image"===e){const t=new Image;t.onload=function(){i.preview[e].src=this.src,i._clearLoading(e),i.error_container&&(i.error_container.style.display="none"),t.remove()},t.onerror=function(){const t=i.elements[e].includes("f_mp4");i.error_container&&(i.error_container.style.display="block",t?(i.error_container.innerHTML=CLD_GLOBAL_TRANSFORMATIONS[e].warning.replace("%s","f_mp4"),i.error_container.classList.replace("settings-alert-error","settings-alert-warning")):(i.error_container.innerHTML=CLD_GLOBAL_TRANSFORMATIONS[e].error,i.error_container.classList.replace("settings-alert-warning","settings-alert-error"))),i._clearLoading(e)},t.src=n}else{const t=i._transformations(i._getGlobalTransformationElements(e),e);samplePlayer.source({publicId:"sailing_boat",transformation:t}),i._clearLoading(e)}},_getGlobalTransformationElements(t){let e=[];return e.push(this.elements[t].slice(0,2).join(",")),e.push(this.elements[t].slice(2).join(",")),e=e.filter(t=>t).join("/"),e},_transformations(t,e,i=!1){const n=CLD_GLOBAL_TRANSFORMATIONS[e].valid_types;let s=null;const o=t.split("/"),r=[];for(let t=0;t0&&!(a>=t[e-1].priority);e--);e===t.length?t[e]=c:t.splice(e,0,c),l.__current.forEach(t=>{t.name===s&&t.currentIndex>=e&&t.currentIndex++})}else l[s]={handlers:[c],runs:0};"hookAdded"!==s&&t.doAction("hookAdded",s,o,r,a)}}function o(t,i,s=!1){return function(o,r){const a=t[i];if(!n(o))return;if(!s&&!e(r))return;if(!a[o])return 0;let l=0;if(s)l=a[o].handlers.length,a[o]={runs:a[o].runs,handlers:[]};else{const t=a[o].handlers;for(let e=t.length-1;e>=0;e--)t[e].namespace===r&&(t.splice(e,1),l++,a.__current.forEach(t=>{t.name===o&&t.currentIndex>=e&&t.currentIndex--}))}return"hookRemoved"!==o&&t.doAction("hookRemoved",o,r),l}}function r(t,e){return function(i,n){const s=t[e];return void 0!==n?i in s&&s[i].handlers.some(t=>t.namespace===n):i in s}}function a(t,e,i,n){return function(s,...o){const r=t[e];r[s]||(r[s]={handlers:[],runs:0}),r[s].runs++;const a=r[s].handlers;if(!a||!a.length)return i?o[0]:void 0;const l={name:s,currentIndex:0};return(n?async function(){try{r.__current.add(l);let t=i?o[0]:void 0;for(;l.currentIndex0:Array.from(n.__current).some(t=>t.name===i)}}function h(t,e){return function(i){const s=t[e];if(n(i))return s[i]&&s[i].runs?s[i].runs:0}}const d=new class{actions;filters;addAction;addFilter;removeAction;removeFilter;hasAction;hasFilter;removeAllActions;removeAllFilters;doAction;doActionAsync;applyFilters;applyFiltersAsync;currentAction;currentFilter;doingAction;doingFilter;didAction;didFilter;constructor(){this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=s(this,"actions"),this.addFilter=s(this,"filters"),this.removeAction=o(this,"actions"),this.removeFilter=o(this,"filters"),this.hasAction=r(this,"actions"),this.hasFilter=r(this,"filters"),this.removeAllActions=o(this,"actions",!0),this.removeAllFilters=o(this,"filters",!0),this.doAction=a(this,"actions",!1,!1),this.doActionAsync=a(this,"actions",!1,!0),this.applyFilters=a(this,"filters",!0,!1),this.applyFiltersAsync=a(this,"filters",!0,!0),this.currentAction=l(this,"actions"),this.currentFilter=l(this,"filters"),this.doingAction=c(this,"actions"),this.doingFilter=c(this,"filters"),this.didAction=h(this,"actions"),this.didFilter=h(this,"filters")}},{addAction:u,addFilter:f,removeAction:p,removeFilter:g,hasAction:m,hasFilter:b,removeAllActions:v,removeAllFilters:y,doAction:x,doActionAsync:_,applyFilters:w,applyFiltersAsync:k,currentAction:M,currentFilter:S,doingAction:O,doingFilter:E,didAction:A,didFilter:T,actions:C,filters:P}=d;var L,D,I,R;L={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},D=["(","?"],I={")":["("],":":["?","?:"]},R=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var j={"!":function(t){return!t},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"%":function(t,e){return t%e},"+":function(t,e){return t+e},"-":function(t,e){return t-e},"<":function(t,e){return t":function(t,e){return t>e},">=":function(t,e){return t>=e},"==":function(t,e){return t===e},"!=":function(t,e){return t!==e},"&&":function(t,e){return t&&e},"||":function(t,e){return t||e},"?:":function(t,e,i){if(t)throw e;return i}};function F(t){var e=function(t){for(var e,i,n,s,o=[],r=[];e=t.match(R);){for(i=e[0],(n=t.substr(0,e.index).trim())&&o.push(n);s=r.pop();){if(I[i]){if(I[i][0]===s){i=I[i][1]||i;break}}else if(D.indexOf(s)>=0||L[s]1===t?0:1},W=/^i18n\.(n?gettext|has_translation)(_|$)/,V=((t,e,i)=>{const n=new B({}),s=new Set,o=()=>{s.forEach(t=>t())},r=(t,e="default")=>{n.data[e]={...n.data[e],...t},n.data[e][""]={...N,...n.data[e]?.[""]},delete n.pluralForms[e]},a=(t,e)=>{r(t,e),o()},l=(t="default",e,i,s,o)=>(n.data[t]||r(void 0,t),n.dcnpgettext(t,e,i,s,o)),c=t=>t||"default",h=(t,e,n)=>{let s=l(n,e,t);return i?(s=i.applyFilters("i18n.gettext_with_context",s,t,e,n),i.applyFilters("i18n.gettext_with_context_"+c(n),s,t,e,n)):s};if(t&&a(t,e),i){const t=t=>{W.test(t)&&o()};i.addAction("hookAdded","core/i18n",t),i.addAction("hookRemoved","core/i18n",t)}return{getLocaleData:(t="default")=>n.data[t],setLocaleData:a,addLocaleData:(t,e="default")=>{n.data[e]={...n.data[e],...t,"":{...N,...n.data[e]?.[""],...t?.[""]}},delete n.pluralForms[e],o()},resetLocaleData:(t,e)=>{n.data={},n.pluralForms={},a(t,e)},subscribe:t=>(s.add(t),()=>s.delete(t)),__:(t,e)=>{let n=l(e,void 0,t);return i?(n=i.applyFilters("i18n.gettext",n,t,e),i.applyFilters("i18n.gettext_"+c(e),n,t,e)):n},_x:h,_n:(t,e,n,s)=>{let o=l(s,void 0,t,e,n);return i?(o=i.applyFilters("i18n.ngettext",o,t,e,n,s),i.applyFilters("i18n.ngettext_"+c(s),o,t,e,n,s)):o},_nx:(t,e,n,s,o)=>{let r=l(o,s,t,e,n);return i?(r=i.applyFilters("i18n.ngettext_with_context",r,t,e,n,s,o),i.applyFilters("i18n.ngettext_with_context_"+c(o),r,t,e,n,s,o)):r},isRTL:()=>"rtl"===h("ltr","text direction"),hasTranslation:(t,e,s)=>{const o=e?e+""+t:t;let r=!!n.data?.[s??"default"]?.[o];return i&&(r=i.applyFilters("i18n.has_translation",r,t,e,s),r=i.applyFilters("i18n.has_translation_"+c(s),r,t,e,s)),r}}})(void 0,void 0,d),H=(V.getLocaleData.bind(V),V.setLocaleData.bind(V),V.resetLocaleData.bind(V),V.subscribe.bind(V),V.__.bind(V)),$=(V._x.bind(V),V._n.bind(V),V._nx.bind(V),V.isRTL.bind(V),V.hasTranslation.bind(V),["@wordpress/admin-ui","@wordpress/api-fetch","@wordpress/block-directory","@wordpress/block-editor","@wordpress/block-library","@wordpress/blocks","@wordpress/boot","@wordpress/commands","@wordpress/compose","@wordpress/connectors","@wordpress/workflows","@wordpress/components","@wordpress/core-actions","@wordpress/core-commands","@wordpress/core-data","@wordpress/core-fields","@wordpress/customize-widgets","@wordpress/data","@wordpress/edit-post","@wordpress/edit-site","@wordpress/edit-widgets","@wordpress/editor","@wordpress/font-list-route","@wordpress/format-library","@wordpress/notices","@wordpress/patterns","@wordpress/preferences","@wordpress/rich-text","@wordpress/route","@wordpress/router","@wordpress/routes","@wordpress/storybook","@wordpress/theme","@wordpress/dataviews","@wordpress/sync","@wordpress/fields","@wordpress/lazy-editor","@wordpress/media-editor","@wordpress/media-utils","@wordpress/upload-media","@wordpress/global-styles-engine","@wordpress/global-styles-ui","@wordpress/ui","@wordpress/views","@wordpress/widget-dashboard"]);function q(t,e){if(!t)throw new Error("Cannot lock an undefined object.");const i=t;J in i||(i[J]={}),Y.set(i[J],e)}function U(t){if(!t)throw new Error("Cannot unlock an undefined object.");const e=t;if(!(J in e))throw new Error("Cannot unlock an object that was not locked before. ");return Y.get(e[J])}const Y=new WeakMap,J=Symbol("Private API ID");const{lock:G,unlock:K}=((t,e)=>{if(!$.includes(e))throw new Error(`You tried to opt-in to unstable APIs as module "${e}". This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);if("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress."!==t)throw new Error("You tried to opt-in to unstable APIs without confirming you know the consequences. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on the next WordPress release.");return{lock:q,unlock:U}})("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/api-fetch");const X=(t,e)=>{let i,n,s=t.path;return"string"==typeof t.namespace&&"string"==typeof t.endpoint&&(i=t.namespace.replace(/^\/|\/$/g,""),n=t.endpoint.replace(/^\//,""),s=n?i+"/"+n:i),delete t.namespace,delete t.endpoint,e({...t,path:s})};function Q(t){try{return decodeURIComponent(t)}catch{return t}}function Z(t){const e=t.indexOf("?");if(-1===e)return t;const i=t.slice(0,e),n=t.slice(e+1);return n?i+"?"+n.split("&").map(t=>t.split("=")).map(t=>t.map(Q)).sort((t,e)=>t[0].localeCompare(e[0])).map(t=>t.map(encodeURIComponent)).map(t=>t.join("=")).join("&"):i}function tt(t){return(function(t){let e;try{e=new URL(t,"http://example.com").search.substring(1)}catch{}if(e)return e}(t)||"").replace(/\+/g,"%20").split("&").reduce((t,e)=>{const i=e.indexOf("="),n=-1!==i,s=Q(n?e.slice(0,i):e);if(s){const o=n?Q(e.slice(i+1)):"";!function(t,e,i){const n=e.length,s=n-1;for(let o=0;o{"link"===e.toLowerCase()&&(t.headers[e]=i.replace(/<([^>]+)>/,(t,e)=>`<${encodeURI(e)}>`))}),Promise.resolve(e?t.body:new window.Response(JSON.stringify(t.body),{status:200,statusText:"OK",headers:t.headers}))}}const rt=({path:t,url:e,...i},n)=>({...i,url:e&&it(e,n),path:t&&it(t,n)}),at=t=>t.json?t.json():Promise.reject(t),lt=t=>{const{next:e}=(t=>{if(!t)return{};const e=t.match(/<([^>]+)>; rel="next"/);return e?{next:e[1]}:{}})(t.headers.get("link"));return e},ct=async(t,e)=>{if(!1===t.parse)return e(t);if(!(t=>{const e=!!t.path&&-1!==t.path.indexOf("per_page=-1"),i=!!t.url&&-1!==t.url.indexOf("per_page=-1");return e||i})(t))return e(t);const i=await Mt({...rt(t,{per_page:100}),parse:!1}),n=await at(i);if(!Array.isArray(n))return n;let s=lt(i);if(!s)return n;let o=[].concat(n);for(;s;){const e=await Mt({...t,path:void 0,url:s,parse:!1}),i=await at(e);o=o.concat(i),s=lt(e)}return o},ht=new Set(["PATCH","PUT","DELETE"]),dt="GET",ut=(t,e)=>{const{method:i=dt}=t;return ht.has(i.toUpperCase())&&(t={...t,headers:{"Content-Type":"application/json",...t.headers,"X-HTTP-Method-Override":i},method:"POST"}),e(t)};function ft(t,e){return tt(t)[e]}function pt(t,e){return void 0!==ft(t,e)}async function gt(t,e=!1){try{if("function"!=typeof t.text)return await t.json();const i=await t.text();return e&&""===i?null:JSON.parse(i)}catch{throw{code:"invalid_json",message:H("The response is not a valid JSON response."),data:{status:t.status}}}}async function mt(t,e=!0){return e?204===t.status?null:await gt(t,!0):t}async function bt(t,e=!0){if(!e)throw t;const i=await gt(t);if(i&&"object"==typeof i&&!Array.isArray(i)&&void 0===i.data)throw{...i,data:{status:t.status}};throw i}function vt(t,...e){const i=t.replace(/^[^#]*/,""),n=(t=t.replace(/#.*/,"")).indexOf("?");if(-1===n)return t+i;const s=tt(t),o=t.substr(0,n);e.forEach(t=>delete s[t]);const r=et(s);return(r?o+"?"+r:o)+i}const yt={Accept:"application/json, */*;q=0.1"},xt={credentials:"include"},_t=[(t,e)=>("string"!=typeof t.url||pt(t.url,"_locale")||(t.url=it(t.url,{_locale:"user"})),"string"!=typeof t.path||pt(t.path,"_locale")||(t.path=it(t.path,{_locale:"user"})),e(t)),X,ut,ct];const wt=t=>{const{url:e,path:i,data:n,parse:s=!0,...o}=t;let{body:r,headers:a}=t;return a={...yt,...a},n&&(r=JSON.stringify(n),a["Content-Type"]="application/json"),globalThis.fetch(e||i||window.location.href,{...xt,...o,body:r,headers:a}).then(t=>t.ok?mt(t,s):bt(t,s),t=>{if(t&&"AbortError"===t.name)throw t;if(!globalThis.navigator.onLine)throw{code:"offline_error",message:H("Unable to connect. Please check your Internet connection.")};throw{code:"fetch_error",message:H("Could not get a valid response from the server.")}})};let kt=wt;const Mt=t=>_t.reduceRight((t,e)=>i=>e(i,t),kt)(t).catch(e=>"rest_cookie_invalid_nonce"!==e.code?Promise.reject(e):globalThis.fetch(Mt.nonceEndpoint).then(t=>t.ok?t.text():Promise.reject(e)).then(e=>(Mt.nonceMiddleware.nonce=e,Mt(t))));Mt.use=function(t){_t.unshift(t)},Mt.unregister=function(t){const e=_t.indexOf(t);return-1!==e&&(_t.splice(e,1),!0)},Mt.setFetchHandler=function(t){kt=t},Mt.defaultFetchHandler=wt,Mt.privateApis={},G(Mt.privateApis,{enablePreloadMultiUse:function(){for(const t of _t)t[nt]?.()},clearPreloadedData:function(){for(const t of _t)t[st]?.()}}),Mt.createNonceMiddleware=function(t){const e=(t,i)=>{const{headers:n={}}=t;for(const s in n)if("x-wp-nonce"===s.toLowerCase()&&n[s]===e.nonce)return i(t);return i({...t,headers:{...n,"X-WP-Nonce":e.nonce}})};return e.nonce=t,e},Mt.createPreloadingMiddleware=function(t){const{OPTIONS:e={},...i}=Object.fromEntries(Object.entries(t).map(([t,e])=>[Z(t),e])),n=new Set(Object.keys(i)),s=new Set(Object.keys(e));let o=!1;const r=(t,r)=>{const{parse:a=!0}=t;let l=t.path;if(!l&&t.url){const{rest_route:e,...i}=tt(t.url);"string"==typeof e&&(l=it(e,i))}if("string"!=typeof l)return r(t);const c=t.method||"GET",h=Z(l);if("GET"===c&&i[h]){const t=i[h];return o||delete i[h],n.delete(h),ot(t,!!a)}if("OPTIONS"===c&&e[h]){const t=e[h];return o||delete e[h],s.delete(h),ot(t,!!a)}return r(t)};return r[nt]=()=>{o=!0},r[st]=()=>{const t=[...Array.from(n,t=>`GET ${t}`),...Array.from(s,t=>`OPTIONS ${t}`)];t.length?console.warn("[api-fetch][preload] Some preloads were never consumed:",t):console.log("[api-fetch][preload] All preloads consumed."),n.clear(),s.clear();for(const t of Object.keys(i))delete i[t];for(const t of Object.keys(e))delete e[t]},r},Mt.createRootURLMiddleware=t=>(e,i)=>X(e,e=>{let n,s=e.url,o=e.path;return"string"==typeof o&&(n=t,-1!==t.indexOf("?")&&(o=o.replace("?","&")),o=o.replace(/^\//,""),"string"==typeof n&&-1!==n.indexOf("?")&&(o=o.replace("?","&")),s=n+o),i({...e,url:s})}),Mt.fetchAllMiddleware=ct,Mt.httpV1Middleware=ut,Mt.mediaUploadMiddleware=(t,e)=>{if(!function(t){const e=!!t.method&&"POST"===t.method;return(!!t.path&&-1!==t.path.indexOf("/wp/v2/media")||!!t.url&&-1!==t.url.indexOf("/wp/v2/media"))&&e}(t))return e(t);let i=0;const n=t=>(i++,e({path:`/wp/v2/media/${t}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch(()=>i<5?n(t):(e({path:`/wp/v2/media/${t}?force=true`,method:"DELETE"}),Promise.reject())));return e({...t,parse:!1}).catch(e=>{if(!(e instanceof globalThis.Response))return Promise.reject(e);const i=e.headers.get("x-wp-upload-attachment-id");return e.status>=500&&e.status<600&&i?n(i).catch(()=>!1!==t.parse?Promise.reject({code:"post_process",message:H("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(e)):bt(e,t.parse)}).then(e=>mt(e,t.parse))},Mt.createThemePreviewMiddleware=t=>(e,i)=>{if("string"==typeof e.url){const i=ft(e.url,"wp_theme_preview");void 0===i?e.url=it(e.url,{wp_theme_preview:t}):""===i&&(e.url=vt(e.url,"wp_theme_preview"))}if("string"==typeof e.path){const i=ft(e.path,"wp_theme_preview");void 0===i?e.path=it(e.path,{wp_theme_preview:t}):""===i&&(e.path=vt(e.path,"wp_theme_preview"))}return i(e)};const St={wpWrap:document.getElementById("wpwrap"),adminbar:document.getElementById("wpadminbar"),wpContent:document.getElementById("wpbody-content"),libraryWrap:document.getElementById("cloudinary-dam"),cloudinaryHeader:document.getElementById("cloudinary-header"),wpFooter:document.getElementById("wpfooter"),importStatus:document.getElementById("import-status"),downloading:{},_init(){const t=this,e=this.libraryWrap,i=this.importStatus;"undefined"!=typeof CLDN&&document.querySelector(CLDN.mloptions.inline_container)&&(Mt.use(Mt.createNonceMiddleware(CLDN.nonce)),cloudinary.openMediaLibrary(CLDN.mloptions,{insertHandler(n){const s=[];for(let o=0;o{o.style.opacity=1},250),void 0!==n.fetch?Mt({path:cldData.dam.fetch_url,data:{src:n.url,filename:n.filename,attachment_id:n.attachment_id,transformations:n.transformations},method:"POST"}).then(e=>{e&&!1===e.success&&t.showError(e.data)}).catch(e=>{t.showError(e&&e.message)}).finally(()=>{t.removeProgress(s,r)}):t.removeProgress(s,r)})}}}),window.addEventListener("resize",function(){t._resize()}),t._resize())},_resize(){this.libraryWrap.style.height=this.wpFooter.offsetTop-this.libraryWrap.offsetTop-this.adminbar.offsetHeight+"px"},removeProgress(t,e){const i=t[e];delete t[e],i.removeChild(i.firstChild),setTimeout(()=>{i.style.opacity=0,setTimeout(()=>{i.parentNode.removeChild(i),Object.keys(t).length||(this.libraryWrap.style.marginRight="0px",this.importStatus.style.display="none")},1e3)},500)},showError(t){window.alert(t||H("Could not import the asset.","cloudinary"))},makeProgress(t){const e=document.createElement("div"),i=document.createElement("span"),n=document.createElement("span");return e.classList.add("cld-import-item"),i.classList.add("spinner"),n.classList.add("cld-import-item-id"),n.innerText=t.public_id,e.appendChild(i),e.appendChild(n),e}};window.addEventListener("load",()=>St._init());const Ot={_init(){const t=this;if("undefined"!=typeof CLDIS){[...document.getElementsByClassName("cld-notice-box")].forEach(e=>{const i=e.getElementsByClassName("notice-dismiss");i.length&&i[0].addEventListener("click",i=>{e.style.height=e.offsetHeight+"px",i.preventDefault(),setTimeout(function(){t._dismiss(e)},5)})})}},_dismiss(t){const e=t.dataset.dismiss,i=parseInt(t.dataset.duration);t.classList.add("dismissed"),t.style.height="0px",setTimeout(function(){t.remove()},400),00&&Dt(n.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Dt(n.height)/t.offsetHeight||1);var r=(At(t)?Et(t):window).visualViewport,a=!Rt()&&i,l=(n.left+(a&&r?r.offsetLeft:0))/s,c=(n.top+(a&&r?r.offsetTop:0))/o,h=n.width/s,d=n.height/o;return{width:h,height:d,top:c,right:l+h,bottom:c+d,left:l,x:l,y:c}}function Ft(t){var e=Et(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function zt(t){return t?(t.nodeName||"").toLowerCase():null}function Bt(t){return((At(t)?t.ownerDocument:t.document)||window.document).documentElement}function Nt(t){return jt(Bt(t)).left+Ft(t).scrollLeft}function Wt(t){return Et(t).getComputedStyle(t)}function Vt(t){var e=Wt(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Ht(t,e,i){void 0===i&&(i=!1);var n,s,o=Tt(e),r=Tt(e)&&function(t){var e=t.getBoundingClientRect(),i=Dt(e.width)/t.offsetWidth||1,n=Dt(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),a=Bt(e),l=jt(t,r,i),c={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(o||!o&&!i)&&(("body"!==zt(e)||Vt(a))&&(c=(n=e)!==Et(n)&&Tt(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:Ft(n)),Tt(e)?((h=jt(e,!0)).x+=e.clientLeft,h.y+=e.clientTop):a&&(h.x=Nt(a))),{x:l.left+c.scrollLeft-h.x,y:l.top+c.scrollTop-h.y,width:l.width,height:l.height}}function $t(t){var e=jt(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function qt(t){return"html"===zt(t)?t:t.assignedSlot||t.parentNode||(Ct(t)?t.host:null)||Bt(t)}function Ut(t){return["html","body","#document"].indexOf(zt(t))>=0?t.ownerDocument.body:Tt(t)&&Vt(t)?t:Ut(qt(t))}function Yt(t,e){var i;void 0===e&&(e=[]);var n=Ut(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),o=Et(n),r=s?[o].concat(o.visualViewport||[],Vt(n)?n:[]):n,a=e.concat(r);return s?a:a.concat(Yt(qt(r)))}function Jt(t){return["table","td","th"].indexOf(zt(t))>=0}function Gt(t){return Tt(t)&&"fixed"!==Wt(t).position?t.offsetParent:null}function Kt(t){for(var e=Et(t),i=Gt(t);i&&Jt(i)&&"static"===Wt(i).position;)i=Gt(i);return i&&("html"===zt(i)||"body"===zt(i)&&"static"===Wt(i).position)?e:i||function(t){var e=/firefox/i.test(It());if(/Trident/i.test(It())&&Tt(t)&&"fixed"===Wt(t).position)return null;var i=qt(t);for(Ct(i)&&(i=i.host);Tt(i)&&["html","body"].indexOf(zt(i))<0;){var n=Wt(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}var Xt="top",Qt="bottom",Zt="right",te="left",ee="auto",ie=[Xt,Qt,Zt,te],ne="start",se="end",oe="viewport",re="popper",ae=ie.reduce(function(t,e){return t.concat([e+"-"+ne,e+"-"+se])},[]),le=[].concat(ie,[ee]).reduce(function(t,e){return t.concat([e,e+"-"+ne,e+"-"+se])},[]),ce=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function he(t){var e=new Map,i=new Set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}}),n.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){i.has(t.name)||s(t)}),n}var de={placement:"bottom",modifiers:[],strategy:"absolute"};function ue(){for(var t=arguments.length,e=new Array(t),i=0;i=0?"x":"y"}function ve(t){var e,i=t.reference,n=t.element,s=t.placement,o=s?ge(s):null,r=s?me(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case Xt:e={x:a,y:i.y-n.height};break;case Qt:e={x:a,y:i.y+i.height};break;case Zt:e={x:i.x+i.width,y:l};break;case te:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=o?be(o):null;if(null!=c){var h="y"===c?"height":"width";switch(r){case ne:e[c]=e[c]-(i[h]/2-n[h]/2);break;case se:e[c]=e[c]+(i[h]/2-n[h]/2)}}return e}var ye={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xe(t){var e,i=t.popper,n=t.popperRect,s=t.placement,o=t.variation,r=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,h=t.roundOffsets,d=t.isFixed,u=r.x,f=void 0===u?0:u,p=r.y,g=void 0===p?0:p,m="function"==typeof h?h({x:f,y:g}):{x:f,y:g};f=m.x,g=m.y;var b=r.hasOwnProperty("x"),v=r.hasOwnProperty("y"),y=te,x=Xt,_=window;if(c){var w=Kt(i),k="clientHeight",M="clientWidth";if(w===Et(i)&&"static"!==Wt(w=Bt(i)).position&&"absolute"===a&&(k="scrollHeight",M="scrollWidth"),s===Xt||(s===te||s===Zt)&&o===se)x=Qt,g-=(d&&w===_&&_.visualViewport?_.visualViewport.height:w[k])-n.height,g*=l?1:-1;if(s===te||(s===Xt||s===Qt)&&o===se)y=Zt,f-=(d&&w===_&&_.visualViewport?_.visualViewport.width:w[M])-n.width,f*=l?1:-1}var S,O=Object.assign({position:a},c&&ye),E=!0===h?function(t,e){var i=t.x,n=t.y,s=e.devicePixelRatio||1;return{x:Dt(i*s)/s||0,y:Dt(n*s)/s||0}}({x:f,y:g},Et(i)):{x:f,y:g};return f=E.x,g=E.y,l?Object.assign({},O,((S={})[x]=v?"0":"",S[y]=b?"0":"",S.transform=(_.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",S)):Object.assign({},O,((e={})[x]=v?g+"px":"",e[y]=b?f+"px":"",e.transform="",e))}const _e={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];Tt(s)&&zt(s)&&(Object.assign(s.style,i),Object.keys(n).forEach(function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(t){var n=e.elements[t],s=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce(function(t,e){return t[e]="",t},{});Tt(n)&&zt(n)&&(Object.assign(n.style,o),Object.keys(s).forEach(function(t){n.removeAttribute(t)}))})}},requires:["computeStyles"]};const we={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,o=void 0===s?[0,0]:s,r=le.reduce(function(t,i){return t[i]=function(t,e,i){var n=ge(t),s=[te,Xt].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[te,Zt].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}(i,e.rects,o),t},{}),a=r[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=r}};var ke={left:"right",right:"left",bottom:"top",top:"bottom"};function Me(t){return t.replace(/left|right|bottom|top/g,function(t){return ke[t]})}var Se={start:"end",end:"start"};function Oe(t){return t.replace(/start|end/g,function(t){return Se[t]})}function Ee(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Ct(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ae(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Te(t,e,i){return e===oe?Ae(function(t,e){var i=Et(t),n=Bt(t),s=i.visualViewport,o=n.clientWidth,r=n.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=Rt();(c||!c&&"fixed"===e)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+Nt(t),y:l}}(t,i)):At(e)?function(t,e){var i=jt(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):Ae(function(t){var e,i=Bt(t),n=Ft(t),s=null==(e=t.ownerDocument)?void 0:e.body,o=Pt(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=Pt(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+Nt(t),l=-n.scrollTop;return"rtl"===Wt(s||i).direction&&(a+=Pt(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(Bt(t)))}function Ce(t,e,i,n){var s="clippingParents"===e?function(t){var e=Yt(qt(t)),i=["absolute","fixed"].indexOf(Wt(t).position)>=0&&Tt(t)?Kt(t):t;return At(i)?e.filter(function(t){return At(t)&&Ee(t,i)&&"body"!==zt(t)}):[]}(t):[].concat(e),o=[].concat(s,[i]),r=o[0],a=o.reduce(function(e,i){var s=Te(t,i,n);return e.top=Pt(s.top,e.top),e.right=Lt(s.right,e.right),e.bottom=Lt(s.bottom,e.bottom),e.left=Pt(s.left,e.left),e},Te(t,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Pe(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Le(t,e){return e.reduce(function(e,i){return e[i]=t,e},{})}function De(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,o=i.strategy,r=void 0===o?t.strategy:o,a=i.boundary,l=void 0===a?"clippingParents":a,c=i.rootBoundary,h=void 0===c?oe:c,d=i.elementContext,u=void 0===d?re:d,f=i.altBoundary,p=void 0!==f&&f,g=i.padding,m=void 0===g?0:g,b=Pe("number"!=typeof m?m:Le(m,ie)),v=u===re?"reference":re,y=t.rects.popper,x=t.elements[p?v:u],_=Ce(At(x)?x:x.contextElement||Bt(t.elements.popper),l,h,r),w=jt(t.elements.reference),k=ve({reference:w,element:y,strategy:"absolute",placement:s}),M=Ae(Object.assign({},y,k)),S=u===re?M:w,O={top:_.top-S.top+b.top,bottom:S.bottom-_.bottom+b.bottom,left:_.left-S.left+b.left,right:S.right-_.right+b.right},E=t.modifiersData.offset;if(u===re&&E){var A=E[s];Object.keys(O).forEach(function(t){var e=[Zt,Qt].indexOf(t)>=0?1:-1,i=[Xt,Qt].indexOf(t)>=0?"y":"x";O[t]+=A[i]*e})}return O}function Ie(t,e,i){return Pt(t,Lt(e,i))}const Re={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,d=i.padding,u=i.tether,f=void 0===u||u,p=i.tetherOffset,g=void 0===p?0:p,m=De(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),b=ge(e.placement),v=me(e.placement),y=!v,x=be(b),_="x"===x?"y":"x",w=e.modifiersData.popperOffsets,k=e.rects.reference,M=e.rects.popper,S="function"==typeof g?g(Object.assign({},e.rects,{placement:e.placement})):g,O="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(w){if(o){var T,C="y"===x?Xt:te,P="y"===x?Qt:Zt,L="y"===x?"height":"width",D=w[x],I=D+m[C],R=D-m[P],j=f?-M[L]/2:0,F=v===ne?k[L]:M[L],z=v===ne?-M[L]:-k[L],B=e.elements.arrow,N=f&&B?$t(B):{width:0,height:0},W=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=W[C],H=W[P],$=Ie(0,k[L],N[L]),q=y?k[L]/2-j-$-V-O.mainAxis:F-$-V-O.mainAxis,U=y?-k[L]/2+j+$+H+O.mainAxis:z+$+H+O.mainAxis,Y=e.elements.arrow&&Kt(e.elements.arrow),J=Y?"y"===x?Y.clientTop||0:Y.clientLeft||0:0,G=null!=(T=null==E?void 0:E[x])?T:0,K=D+U-G,X=Ie(f?Lt(I,D+q-G-J):I,D,f?Pt(R,K):R);w[x]=X,A[x]=X-D}if(a){var Q,Z="x"===x?Xt:te,tt="x"===x?Qt:Zt,et=w[_],it="y"===_?"height":"width",nt=et+m[Z],st=et-m[tt],ot=-1!==[Xt,te].indexOf(b),rt=null!=(Q=null==E?void 0:E[_])?Q:0,at=ot?nt:et-k[it]-M[it]-rt+O.altAxis,lt=ot?et+k[it]+M[it]-rt-O.altAxis:st,ct=f&&ot?function(t,e,i){var n=Ie(t,e,i);return n>i?i:n}(at,et,lt):Ie(f?at:nt,et,f?lt:st);w[_]=ct,A[_]=ct-et}e.modifiersData[n]=A}},requiresIfExists:["offset"]};const je={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=t.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,a=ge(i.placement),l=be(a),c=[te,Zt].indexOf(a)>=0?"height":"width";if(o&&r){var h=function(t,e){return Pe("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Le(t,ie))}(s.padding,i),d=$t(o),u="y"===l?Xt:te,f="y"===l?Qt:Zt,p=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],g=r[l]-i.rects.reference[l],m=Kt(o),b=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,v=p/2-g/2,y=h[u],x=b-d[c]-h[f],_=b/2-d[c]/2+v,w=Ie(y,_,x),k=l;i.modifiersData[n]=((e={})[k]=w,e.centerOffset=w-_,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&Ee(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fe(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function ze(t){return[Xt,Zt,Qt,te].some(function(e){return t[e]>=0})}var Be=fe({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=Et(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach(function(t){t.addEventListener("scroll",i.update,pe)}),a&&l.addEventListener("resize",i.update,pe),function(){o&&c.forEach(function(t){t.removeEventListener("scroll",i.update,pe)}),a&&l.removeEventListener("resize",i.update,pe)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=ve({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:ge(e.placement),variation:me(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,xe(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,xe(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},_e,we,{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,h=i.boundary,d=i.rootBoundary,u=i.altBoundary,f=i.flipVariations,p=void 0===f||f,g=i.allowedAutoPlacements,m=e.options.placement,b=ge(m),v=l||(b===m||!p?[Me(m)]:function(t){if(ge(t)===ee)return[];var e=Me(t);return[Oe(t),e,Oe(e)]}(m)),y=[m].concat(v).reduce(function(t,i){return t.concat(ge(i)===ee?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?le:l,h=me(n),d=h?a?ae:ae.filter(function(t){return me(t)===h}):ie,u=d.filter(function(t){return c.indexOf(t)>=0});0===u.length&&(u=d);var f=u.reduce(function(e,i){return e[i]=De(t,{placement:i,boundary:s,rootBoundary:o,padding:r})[ge(i)],e},{});return Object.keys(f).sort(function(t,e){return f[t]-f[e]})}(e,{placement:i,boundary:h,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):i)},[]),x=e.rects.reference,_=e.rects.popper,w=new Map,k=!0,M=y[0],S=0;S=0,C=T?"width":"height",P=De(e,{placement:O,boundary:h,rootBoundary:d,altBoundary:u,padding:c}),L=T?A?Zt:te:A?Qt:Xt;x[C]>_[C]&&(L=Me(L));var D=Me(L),I=[];if(o&&I.push(P[E]<=0),a&&I.push(P[L]<=0,P[D]<=0),I.every(function(t){return t})){M=O,k=!1;break}w.set(O,I)}if(k)for(var R=function(t){var e=y.find(function(e){var i=w.get(e);if(i)return i.slice(0,t).every(function(t){return t})});if(e)return M=e,"break"},j=p?3:1;j>0;j--){if("break"===R(j))break}e.placement!==M&&(e.modifiersData[n]._skip=!0,e.placement=M,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},Re,je,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=De(e,{elementContext:"reference"}),a=De(e,{altBoundary:!0}),l=Fe(r,n),c=Fe(a,s,o),h=ze(l),d=ze(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}}]}),Ne="tippy-content",We="tippy-backdrop",Ve="tippy-arrow",He="tippy-svg-arrow",$e={passive:!0,capture:!0},qe=function(){return document.body};function Ue(t,e,i){if(Array.isArray(t)){var n=t[e];return n??(Array.isArray(i)?i[e]:i)}return t}function Ye(t,e){var i={}.toString.call(t);return 0===i.indexOf("[object")&&i.indexOf(e+"]")>-1}function Je(t,e){return"function"==typeof t?t.apply(void 0,e):t}function Ge(t,e){return 0===e?t:function(n){clearTimeout(i),i=setTimeout(function(){t(n)},e)};var i}function Ke(t){return[].concat(t)}function Xe(t,e){-1===t.indexOf(e)&&t.push(e)}function Qe(t){return t.split("-")[0]}function Ze(t){return[].slice.call(t)}function ti(t){return Object.keys(t).reduce(function(e,i){return void 0!==t[i]&&(e[i]=t[i]),e},{})}function ei(){return document.createElement("div")}function ii(t){return["Element","Fragment"].some(function(e){return Ye(t,e)})}function ni(t){return Ye(t,"MouseEvent")}function si(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function oi(t){return ii(t)?[t]:function(t){return Ye(t,"NodeList")}(t)?Ze(t):Array.isArray(t)?t:Ze(document.querySelectorAll(t))}function ri(t,e){t.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function ai(t,e){t.forEach(function(t){t&&t.setAttribute("data-state",e)})}function li(t){var e,i=Ke(t)[0];return null!=i&&null!=(e=i.ownerDocument)&&e.body?i.ownerDocument:document}function ci(t,e,i){var n=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(e){t[n](e,i)})}function hi(t,e){for(var i=e;i;){var n;if(t.contains(i))return!0;i=null==i.getRootNode||null==(n=i.getRootNode())?void 0:n.host}return!1}var di={isTouch:!1},ui=0;function fi(){di.isTouch||(di.isTouch=!0,window.performance&&document.addEventListener("mousemove",pi))}function pi(){var t=performance.now();t-ui<20&&(di.isTouch=!1,document.removeEventListener("mousemove",pi)),ui=t}function gi(){var t=document.activeElement;if(si(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}var mi=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var bi={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},vi=Object.assign({appendTo:qe,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},bi,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),yi=Object.keys(vi);function xi(t){var e=(t.plugins||[]).reduce(function(e,i){var n,s=i.name,o=i.defaultValue;s&&(e[s]=void 0!==t[s]?t[s]:null!=(n=vi[s])?n:o);return e},{});return Object.assign({},t,e)}function _i(t,e){var i=Object.assign({},e,{content:Je(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(xi(Object.assign({},vi,{plugins:e}))):yi).reduce(function(e,i){var n=(t.getAttribute("data-tippy-"+i)||"").trim();if(!n)return e;if("content"===i)e[i]=n;else try{e[i]=JSON.parse(n)}catch(t){e[i]=n}return e},{})}(t,e.plugins));return i.aria=Object.assign({},vi.aria,i.aria),i.aria={expanded:"auto"===i.aria.expanded?e.interactive:i.aria.expanded,content:"auto"===i.aria.content?e.interactive?null:"describedby":i.aria.content},i}function wi(t,e){t.innerHTML=e}function ki(t){var e=ei();return!0===t?e.className=Ve:(e.className=He,ii(t)?e.appendChild(t):wi(e,t)),e}function Mi(t,e){ii(e.content)?(wi(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?wi(t,e.content):t.textContent=e.content)}function Si(t){var e=t.firstElementChild,i=Ze(e.children);return{box:e,content:i.find(function(t){return t.classList.contains(Ne)}),arrow:i.find(function(t){return t.classList.contains(Ve)||t.classList.contains(He)}),backdrop:i.find(function(t){return t.classList.contains(We)})}}function Oi(t){var e=ei(),i=ei();i.className="tippy-box",i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var n=ei();function s(i,n){var s=Si(e),o=s.box,r=s.content,a=s.arrow;n.theme?o.setAttribute("data-theme",n.theme):o.removeAttribute("data-theme"),"string"==typeof n.animation?o.setAttribute("data-animation",n.animation):o.removeAttribute("data-animation"),n.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?o.setAttribute("role",n.role):o.removeAttribute("role"),i.content===n.content&&i.allowHTML===n.allowHTML||Mi(r,t.props),n.arrow?a?i.arrow!==n.arrow&&(o.removeChild(a),o.appendChild(ki(n.arrow))):o.appendChild(ki(n.arrow)):a&&o.removeChild(a)}return n.className=Ne,n.setAttribute("data-state","hidden"),Mi(n,t.props),e.appendChild(i),i.appendChild(n),s(t.props,t.props),{popper:e,onUpdate:s}}Oi.$$tippy=!0;var Ei=1,Ai=[],Ti=[];function Ci(t,e){var i,n,s,o,r,a,l,c,h=_i(t,Object.assign({},vi,xi(ti(e)))),d=!1,u=!1,f=!1,p=!1,g=[],m=Ge(Y,h.interactiveDebounce),b=Ei++,v=(c=h.plugins).filter(function(t,e){return c.indexOf(t)===e}),y={id:b,reference:t,popper:ei(),popperInstance:null,props:h,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(n),cancelAnimationFrame(s)},setProps:function(e){0;if(y.state.isDestroyed)return;D("onBeforeUpdate",[y,e]),q();var i=y.props,n=_i(t,Object.assign({},i,ti(e),{ignoreAttributes:!0}));y.props=n,$(),i.interactiveDebounce!==n.interactiveDebounce&&(j(),m=Ge(Y,n.interactiveDebounce));i.triggerTarget&&!n.triggerTarget?Ke(i.triggerTarget).forEach(function(t){t.removeAttribute("aria-expanded")}):n.triggerTarget&&t.removeAttribute("aria-expanded");R(),L(),w&&w(i,n);y.popperInstance&&(X(),Z().forEach(function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)}));D("onAfterUpdate",[y,e])},setContent:function(t){y.setProps({content:t})},show:function(){0;var t=y.state.isVisible,e=y.state.isDestroyed,i=!y.state.isEnabled,n=di.isTouch&&!y.props.touch,s=Ue(y.props.duration,0,vi.duration);if(t||e||i||n)return;if(A().hasAttribute("disabled"))return;if(D("onShow",[y],!1),!1===y.props.onShow(y))return;y.state.isVisible=!0,E()&&(_.style.visibility="visible");L(),N(),y.state.isMounted||(_.style.transition="none");if(E()){var o=C();ri([o.box,o.content],0)}a=function(){var t;if(y.state.isVisible&&!p){if(p=!0,_.offsetHeight,_.style.transition=y.props.moveTransition,E()&&y.props.animation){var e=C(),i=e.box,n=e.content;ri([i,n],s),ai([i,n],"visible")}I(),R(),Xe(Ti,y),null==(t=y.popperInstance)||t.forceUpdate(),D("onMount",[y]),y.props.animation&&E()&&function(t,e){V(t,e)}(s,function(){y.state.isShown=!0,D("onShown",[y])})}},function(){var t,e=y.props.appendTo,i=A();t=y.props.interactive&&e===qe||"parent"===e?i.parentNode:Je(e,[i]);t.contains(_)||t.appendChild(_);y.state.isMounted=!0,X(),!1}()},hide:function(){0;var t=!y.state.isVisible,e=y.state.isDestroyed,i=!y.state.isEnabled,n=Ue(y.props.duration,1,vi.duration);if(t||e||i)return;if(D("onHide",[y],!1),!1===y.props.onHide(y))return;y.state.isVisible=!1,y.state.isShown=!1,p=!1,d=!1,E()&&(_.style.visibility="hidden");if(j(),W(),L(!0),E()){var s=C(),o=s.box,r=s.content;y.props.animation&&(ri([o,r],n),ai([o,r],"hidden"))}I(),R(),y.props.animation?E()&&function(t,e){V(t,function(){!y.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&e()})}(n,y.unmount):y.unmount()},hideWithInteractivity:function(t){0;T().addEventListener("mousemove",m),Xe(Ai,m),m(t)},enable:function(){y.state.isEnabled=!0},disable:function(){y.hide(),y.state.isEnabled=!1},unmount:function(){0;y.state.isVisible&&y.hide();if(!y.state.isMounted)return;Q(),Z().forEach(function(t){t._tippy.unmount()}),_.parentNode&&_.parentNode.removeChild(_);Ti=Ti.filter(function(t){return t!==y}),y.state.isMounted=!1,D("onHidden",[y])},destroy:function(){0;if(y.state.isDestroyed)return;y.clearDelayTimeouts(),y.unmount(),q(),delete t._tippy,y.state.isDestroyed=!0,D("onDestroy",[y])}};if(!h.render)return y;var x=h.render(y),_=x.popper,w=x.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+y.id,y.popper=_,t._tippy=y,_._tippy=y;var k=v.map(function(t){return t.fn(y)}),M=t.hasAttribute("aria-expanded");return $(),R(),L(),D("onCreate",[y]),h.showOnCreate&&tt(),_.addEventListener("mouseenter",function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),_.addEventListener("mouseleave",function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&T().addEventListener("mousemove",m)}),y;function S(){var t=y.props.touch;return Array.isArray(t)?t:[t,0]}function O(){return"hold"===S()[0]}function E(){var t;return!(null==(t=y.props.render)||!t.$$tippy)}function A(){return l||t}function T(){var t=A().parentNode;return t?li(t):document}function C(){return Si(_)}function P(t){return y.state.isMounted&&!y.state.isVisible||di.isTouch||o&&"focus"===o.type?0:Ue(y.props.delay,t?0:1,vi.delay)}function L(t){void 0===t&&(t=!1),_.style.pointerEvents=y.props.interactive&&!t?"":"none",_.style.zIndex=""+y.props.zIndex}function D(t,e,i){var n;(void 0===i&&(i=!0),k.forEach(function(i){i[t]&&i[t].apply(i,e)}),i)&&(n=y.props)[t].apply(n,e)}function I(){var e=y.props.aria;if(e.content){var i="aria-"+e.content,n=_.id;Ke(y.props.triggerTarget||t).forEach(function(t){var e=t.getAttribute(i);if(y.state.isVisible)t.setAttribute(i,e?e+" "+n:n);else{var s=e&&e.replace(n,"").trim();s?t.setAttribute(i,s):t.removeAttribute(i)}})}}function R(){!M&&y.props.aria.expanded&&Ke(y.props.triggerTarget||t).forEach(function(t){y.props.interactive?t.setAttribute("aria-expanded",y.state.isVisible&&t===A()?"true":"false"):t.removeAttribute("aria-expanded")})}function j(){T().removeEventListener("mousemove",m),Ai=Ai.filter(function(t){return t!==m})}function F(e){if(!di.isTouch||!f&&"mousedown"!==e.type){var i=e.composedPath&&e.composedPath()[0]||e.target;if(!y.props.interactive||!hi(_,i)){if(Ke(y.props.triggerTarget||t).some(function(t){return hi(t,i)})){if(di.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[y,e]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),u=!0,setTimeout(function(){u=!1}),y.state.isMounted||W())}}}function z(){f=!0}function B(){f=!1}function N(){var t=T();t.addEventListener("mousedown",F,!0),t.addEventListener("touchend",F,$e),t.addEventListener("touchstart",B,$e),t.addEventListener("touchmove",z,$e)}function W(){var t=T();t.removeEventListener("mousedown",F,!0),t.removeEventListener("touchend",F,$e),t.removeEventListener("touchstart",B,$e),t.removeEventListener("touchmove",z,$e)}function V(t,e){var i=C().box;function n(t){t.target===i&&(ci(i,"remove",n),e())}if(0===t)return e();ci(i,"remove",r),ci(i,"add",n),r=n}function H(e,i,n){void 0===n&&(n=!1),Ke(y.props.triggerTarget||t).forEach(function(t){t.addEventListener(e,i,n),g.push({node:t,eventType:e,handler:i,options:n})})}function $(){var t;O()&&(H("touchstart",U,{passive:!0}),H("touchend",J,{passive:!0})),(t=y.props.trigger,t.split(/\s+/).filter(Boolean)).forEach(function(t){if("manual"!==t)switch(H(t,U),t){case"mouseenter":H("mouseleave",J);break;case"focus":H(mi?"focusout":"blur",G);break;case"focusin":H("focusout",G)}})}function q(){g.forEach(function(t){var e=t.node,i=t.eventType,n=t.handler,s=t.options;e.removeEventListener(i,n,s)}),g=[]}function U(t){var e,i=!1;if(y.state.isEnabled&&!K(t)&&!u){var n="focus"===(null==(e=o)?void 0:e.type);o=t,l=t.currentTarget,R(),!y.state.isVisible&&ni(t)&&Ai.forEach(function(e){return e(t)}),"click"===t.type&&(y.props.trigger.indexOf("mouseenter")<0||d)&&!1!==y.props.hideOnClick&&y.state.isVisible?i=!0:tt(t),"click"===t.type&&(d=!i),i&&!n&&et(t)}}function Y(t){var e=t.target,i=A().contains(e)||_.contains(e);if("mousemove"!==t.type||!i){var n=Z().concat(_).map(function(t){var e,i=null==(e=t._tippy.popperInstance)?void 0:e.state;return i?{popperRect:t.getBoundingClientRect(),popperState:i,props:h}:null}).filter(Boolean);(function(t,e){var i=e.clientX,n=e.clientY;return t.every(function(t){var e=t.popperRect,s=t.popperState,o=t.props.interactiveBorder,r=Qe(s.placement),a=s.modifiersData.offset;if(!a)return!0;var l="bottom"===r?a.top.y:0,c="top"===r?a.bottom.y:0,h="right"===r?a.left.x:0,d="left"===r?a.right.x:0,u=e.top-n+l>o,f=n-e.bottom-c>o,p=e.left-i+h>o,g=i-e.right-d>o;return u||f||p||g})})(n,t)&&(j(),et(t))}}function J(t){K(t)||y.props.trigger.indexOf("click")>=0&&d||(y.props.interactive?y.hideWithInteractivity(t):et(t))}function G(t){y.props.trigger.indexOf("focusin")<0&&t.target!==A()||y.props.interactive&&t.relatedTarget&&_.contains(t.relatedTarget)||et(t)}function K(t){return!!di.isTouch&&O()!==t.type.indexOf("touch")>=0}function X(){Q();var e=y.props,i=e.popperOptions,n=e.placement,s=e.offset,o=e.getReferenceClientRect,r=e.moveTransition,l=E()?Si(_).arrow:null,c=o?{getBoundingClientRect:o,contextElement:o.contextElement||A()}:t,h={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(E()){var i=C().box;["placement","reference-hidden","escaped"].forEach(function(t){"placement"===t?i.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?i.setAttribute("data-"+t,""):i.removeAttribute("data-"+t)}),e.attributes.popper={}}}},d=[{name:"offset",options:{offset:s}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!r}},h];E()&&l&&d.push({name:"arrow",options:{element:l,padding:3}}),d.push.apply(d,(null==i?void 0:i.modifiers)||[]),y.popperInstance=Be(c,_,Object.assign({},i,{placement:n,onFirstUpdate:a,modifiers:d}))}function Q(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function Z(){return Ze(_.querySelectorAll("[data-tippy-root]"))}function tt(t){y.clearDelayTimeouts(),t&&D("onTrigger",[y,t]),N();var e=P(!0),n=S(),s=n[0],o=n[1];di.isTouch&&"hold"===s&&o&&(e=o),e?i=setTimeout(function(){y.show()},e):y.show()}function et(t){if(y.clearDelayTimeouts(),D("onUntrigger",[y,t]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&d)){var e=P(!1);e?n=setTimeout(function(){y.state.isVisible&&y.hide()},e):s=requestAnimationFrame(function(){y.hide()})}}else W()}}function Pi(t,e){void 0===e&&(e={});var i=vi.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",fi,$e),window.addEventListener("blur",gi);var n=Object.assign({},e,{plugins:i}),s=oi(t).reduce(function(t,e){var i=e&&Ci(e,n);return i&&t.push(i),t},[]);return ii(t)?s[0]:s}Pi.defaultProps=vi,Pi.setDefaultProps=function(t){Object.keys(t).forEach(function(e){vi[e]=t[e]})},Pi.currentInput=di;Object.assign({},_e,{effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow)}});Pi.setDefaultProps({render:Oi});const Li=Pi;var Di=i(951),Ii=i.n(Di);const Ri={controlled:null,bind(t){this.controlled=t,this.controlled.forEach(t=>{this._main(t)}),this._init()},_init(){this.controlled.forEach(t=>{this._checkUp(t)})},_main(t){const e=JSON.parse(t.dataset.main);t.dataset.size&&(t.filesize=parseInt(t.dataset.size,10)),t.mains=e.map(e=>{const i=document.getElementById(e),n=document.getElementById(e+"_size_wrapper");return n&&(i.filesize=0,i.sizespan=n),this._addChild(i,t),i}),this._bindEvents(t),t.mains.forEach(t=>{this._bindEvents(t)})},_bindEvents(t){t.eventBound||(t.addEventListener("click",e=>{const i=e.target;i.elements&&(this._checkDown(i),this._evaluateSize(i)),i.mains&&this._checkUp(t)}),t.eventBound=!0)},_addChild(t,e){const i=t.elements?t.elements:[];-1===i.indexOf(e)&&(i.push(e),t.elements=i)},_removeChild(t,e){const i=t.elements.indexOf(e);-1{e.checked!==t.checked&&(e.checked=t.checked,e.disabled&&(e.checked=!1),e.dispatchEvent(new Event("change")))}),t.elements.forEach(e=>{this._checkDown(e),e.elements||this._checkUp(e,t)}))},_checkUp(t,e){t.mains&&[...t.mains].forEach(t=>{t!==e&&this._evaluateCheckStatus(t),this._checkUp(t),this._evaluateSize(t)})},_evaluateCheckStatus(t){let e=0,i=t.classList.contains("partial");i&&(t.classList.remove("partial"),i=!1),t.elements.forEach(n=>{null!==n.parentNode?(e+=n.checked,n.classList.contains("partial")&&(i=!0)):this._removeChild(t,n)});let n="some";e===t.elements.length?n="on":0===e?n="off":i=!0,i&&t.classList.add("partial");const s="off"!==n;t.checked===s&&t.value===n||(t.value=n,t.checked=s,t.dispatchEvent(new Event("change")))},_evaluateSize(t){if(t.sizespan&&t.elements){t.filesize=0,t.elements.forEach(e=>{e.checked&&(t.filesize+=e.filesize)});let e=null;0Math.max(Math.min(t,i),e);function Wi(t){return Ni(Bi(255*t/100),0,255)}function Vi(t){return Ni(Bi(255*t),0,255)}function Hi(t){return Ni(Bi(t/2.55)/100,0,1)}function $i(t){return Ni(Bi(100*t),0,100)}function qi(t,e){if(void 0===t)return 255;const i="none"===t?0:+t;return e?Wi(i):Vi(i)}var Ui={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,a:10,B:11,b:11,C:12,c:12,D:13,d:13,E:14,e:14,F:15,f:15},Yi=[..."0123456789ABCDEF"],Ji=t=>Yi[15&t],Gi=t=>Yi[(240&t)>>4]+Yi[15&t],Ki=t=>(240&t)>>4==(15&t);function Xi(t){const e=t&&(Ki((i=t).r)&&Ki(i.g)&&Ki(i.b)&&Ki(i.a))?Ji:Gi;var i;return t?`#${e(t.r)}${e(t.g)}${e(t.b)}${((t,e)=>t<255?e(t):"")(t.a,e)}`:void 0}var Qi=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Zi(t,e,i){const n=e*Math.min(i,1-i),s=(e,s=(e+t/30)%12)=>i-n*Math.max(Math.min(s-3,9-s,1),-1);return[s(0),s(8),s(4)]}function tn(t,e,i){const n=(n,s=(n+t/60)%6)=>i-i*e*Math.max(Math.min(s,4-s,1),0);return[n(5),n(3),n(1)]}function en(t,e,i){const n=Zi(t,1,.5);let s;for(e+i>1&&(s=1/(e+i),e*=s,i*=s),s=0;s<3;s++)n[s]*=1-e-i,n[s]+=e;return n}function nn(t){const e=t.r/255,i=t.g/255,n=t.b/255,s=Math.max(e,i,n),o=Math.min(e,i,n),r=(s+o)/2;let a,l=0,c=0;return s!==o&&(a=s-o,c=r>.5?a/(2-s-o):a/(s+o),l=function(t,e,i,n,s){return t===s?(e-i)/n+(e>16&255,i>>8&255,255&i]}return t}()).transparent=[0,0,0,0]);const e=an[t.toLowerCase()];return e&&{a:4===e.length?e[3]:255,b:e[2],g:e[1],r:e[0]}}function cn(t){return t<=.0031308?12.92*t:t**(1/2.4)*1.055-.055}function hn(t){return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}var dn=/^oklch\(\s*([-+.e\d]+|none)(%)?[\s,]+([-+.e\d]+|none)(%)?[\s,]+([-+.e\d]+|none)(deg|rad|grad|turn)?(?:[\s,/]+([-+.e\d]+|none)(%)?)?\s*\)$/,un={deg:1,grad:.9,rad:180/Math.PI,turn:360};function fn(t){const[e,i,n]=function(t,e,i){const n=hn(t/255),s=hn(e/255),o=hn(i/255),r=Math.cbrt(.4122214708*n+.5363325363*s+.0514459929*o),a=Math.cbrt(.2119034982*n+.6806995451*s+.1073969566*o),l=Math.cbrt(.0883024619*n+.2817188376*s+.6299787005*o);return[.2104542553*r+.793617785*a-.0040720468*l,1.9779984951*r-2.428592205*a+.4505937099*l,.0259040371*r+.7827717662*a-.808675766*l]}(t.r,t.g,t.b),s=Math.hypot(i,n);let o=0;return s>=1e-4&&(o=180*Math.atan2(n,i)/Math.PI,o<0&&(o+=360)),[e,s,o]}function pn(t,e,i){let n,s,o;Array.isArray(t)?(n=t[0],s=t[1],o=t[2]):(n=t,s=e,o=i);const r=o*Math.PI/180,a=function(t,e,i){const n=t+.3963377774*e+.2158037573*i,s=t-.1055613458*e-.0638541728*i,o=t-.0894841775*e-1.291485548*i,r=n*n*n,a=s*s*s,l=o*o*o;return[cn(4.0767416621*r-3.3077115913*a+.2309699292*l),cn(-1.2684380046*r+2.6097574011*a-.3413193965*l),cn(-.0041960863*r-.7034186147*a+1.707614701*l)]}(n,s*Math.cos(r),s*Math.sin(r));return a[0]=Vi(a[0]),a[1]=Vi(a[1]),a[2]=Vi(a[2]),a}function gn(t){return"none"===t?0:+t}var mn=String.raw`([-+]?(?:\d*\.\d+|\d+)(?:[eE][-+]?\d+)?)`,bn=new RegExp(String.raw`^rgba?\(\s*${mn}(%)?[\s,]+${mn}(%)?[\s,]+${mn}(%)?(?:[\s,/]+${mn}(%)?)?\s*\)$`);var vn=/\/\*[\s\S]*?\*\//g;function yn(t,e,i){if(t){const n=nn(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*i,0===e?360:1));const s=Zi(n[0],n[1],n[2]);t.r=Vi(s[0]),t.g=Vi(s[1]),t.b=Vi(s[2])}}function xn(t,e){return t?Object.assign(e||{},t):t}function _n(t){let e={a:255,b:0,g:0,r:0};return Array.isArray(t)?t.length>=3&&(e={a:255,b:t[2],g:t[1],r:t[0]},t.length>3&&(e.a=Vi(t[3]))):(e=xn(t,{a:1,b:0,g:0,r:0}),e.a=Vi(e.a)),e}function wn(t){const e=(-1===t.indexOf("/*")?t:t.replace(vn,"")).trim(),i=e.charAt(0);return"r"===i?function(t){const e=bn.exec(t);let i,n,s,o=255;if(e){if(void 0!==e[7]){const t=+e[7];o=e[8]?Wi(t):Ni(255*t,0,255)}return i=+e[1],n=+e[3],s=+e[5],i=e[2]?Wi(i):Bi(Ni(i,0,255)),n=e[4]?Wi(n):Bi(Ni(n,0,255)),s=e[6]?Wi(s):Bi(Ni(s,0,255)),{a:o,b:s,g:n,r:i}}}(e):"o"===i?function(t){const e=dn.exec(t);if(!e)return;const i=gn(e[1]),n=Ni(e[2]?i/100:i,0,1),s=gn(e[3]),o=Math.max(e[4]?s/100*.4:s,0),r=gn(e[5])*(e[6]?un[e[6]]:1),a=qi(e[7],!!e[8]),l=pn(n,o,r);return{a,b:l[2],g:l[1],r:l[0]}}(e):rn(e)}var kn=class t{constructor(e){if(e instanceof t)return e;const i=typeof e;let n;"object"===i?n=_n(e):"string"===i&&(n=function(t){if("#"!==t[0])return;const e=t.length;return 4===e||5===e?{a:5===e?Ui[t[4]]<<4|Ui[t[4]]:255,b:Ui[t[3]]<<4|Ui[t[3]],g:Ui[t[2]]<<4|Ui[t[2]],r:Ui[t[1]]<<4|Ui[t[1]]}:7===e||9===e?{a:9===e?Ui[t[7]]<<4|Ui[t[8]]:255,b:Ui[t[5]]<<4|Ui[t[6]],g:Ui[t[3]]<<4|Ui[t[4]],r:Ui[t[1]]<<4|Ui[t[2]]}:void 0}(e)||ln(e)||wn(e)),this.h=n,this.i=!!n}get valid(){return this.i}get rgb(){const t=xn(this.h);return t&&(t.a=Hi(t.a)),t}set rgb(t){this.h=_n(t)}rgbString(){return this.i?function(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Hi(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this.h):void 0}hexString(){return this.i?Xi(this.h):void 0}hslString(){return this.i?function(t){if(!t)return;const e=nn(t),i=e[0],n=$i(e[1]),s=$i(e[2]);return t.a<255?`hsla(${i}, ${n}%, ${s}%, ${Hi(t.a)})`:`hsl(${i}, ${n}%, ${s}%)`}(this.h):void 0}oklchString(){return this.i?function(t){if(!t)return;const[e,i,n]=fn(t),s=Math.round(1e4*e)/1e4,o=Math.round(1e4*i)/1e4,r=Math.round(100*n)/100;return t.a<255?`oklch(${s} ${o} ${r} / ${Hi(t.a)})`:`oklch(${s} ${o} ${r})`}(this.h):void 0}mix(t,e=.5){if(t){const i=this.h,n=t.h,s=Hi(i.a),o=Hi(n.a),r=2*e-1,a=s-o,l=((r*a===-1?r:(r+a)/(1+r*a))+1)/2,c=1-l;i.r=255&l*i.r+c*n.r+.5,i.g=255&l*i.g+c*n.g+.5,i.b=255&l*i.b+c*n.b+.5,i.a=Vi(e*s+(1-e)*o)}return this}interpolate(t,e){return t&&(this.h=function(t,e,i){const n=hn(Hi(t.r)),s=hn(Hi(t.g)),o=hn(Hi(t.b));return{a:t.a+i*(e.a-t.a),b:Vi(cn(o+i*(hn(Hi(e.b))-o))),g:Vi(cn(s+i*(hn(Hi(e.g))-s))),r:Vi(cn(n+i*(hn(Hi(e.r))-n)))}}(this.h,t.h,e)),this}clone(){return new t(this.rgb)}alpha(t){return this.h.a=Vi(t),this}clearer(t){return this.h.a*=1-t,this}greyscale(){const t=this.h,e=Bi(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this.h.a*=1+t,this}negate(){const t=this.h;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return yn(this.h,2,t),this}darken(t){return yn(this.h,2,-t),this}saturate(t){return yn(this.h,1,t),this}desaturate(t){return yn(this.h,1,-t),this}rotate(t){return function(t,e){const i=nn(t),n=Zi(on(i[0]+e),i[1],i[2]);t.r=Vi(n[0]),t.g=Vi(n[1]),t.b=Vi(n[2])}(this.h,t),this}};function Mn(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Sn(t){return Mn(t)?t:new kn(t)}function On(t){return Mn(t)?t:new kn(t).saturate(.5).darken(.1).hexString()}function En(){}const An=(()=>{let t=0;return()=>t++})();function Tn(t){return null==t}function Cn(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function Pn(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function Ln(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function Dn(t,e){return Ln(t)?t:e}function In(t,e){return void 0===t?e:t}const Rn=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function jn(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function Fn(t,e,i,n){let s,o,r;if(Cn(t))if(o=t.length,n)for(s=o-1;s>=0;s--)e.call(i,t[s],s);else for(s=0;s{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function Yn(t){return t.charAt(0).toUpperCase()+t.slice(1)}qn[""]=t=>t,qn.x=t=>t.x,qn.y=t=>t.y;const Jn=t=>void 0!==t,Gn=t=>"function"==typeof t,Kn=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};const Xn=Math.PI,Qn=2*Xn,Zn=Qn+Xn,ts=Number.POSITIVE_INFINITY,es=Xn/180,is=Xn/2,ns=Xn/4,ss=2*Xn/3,os=Math.log10,rs=Math.sign;function as(t,e,i){return Math.abs(t-e)l&&c=Math.min(e,i)-n&&t<=Math.max(e,i)+n}function _s(t,e,i,n,s){let o=e[s];return o||(o=e[s]=t.measureText(s).width,i.push(s)),o>n&&(n=o),n}function ws(t,e,i,n){let s=(n=n||{}).data=n.data||{},o=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(s=n.data={},o=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let r=0;const a=i.length;let l,c,h,d,u;for(l=0;li.length){for(l=0;l0&&t.stroke()}}function Es(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.xe.top-i&&t.y0&&""!==o.strokeColor;let l,c;for(t.save(),t.font=s.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),Tn(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,o),l=0;lt[i]1;)n=o+s>>1,i(n)?o=n:s=n;return{lo:o,hi:s}}const Fs=(t,e,i,n)=>js(t,i,n?n=>{const s=t[n][e];return st[n][e]js(t,i,n=>t[n][e]>=i);const Bs=["push","pop","shift","splice","unshift"];function Ns(t,e){const i=t._chartjs;if(!i)return;const n=i.listeners,s=n.indexOf(e);-1!==s&&n.splice(s,1),n.length>0||(Bs.forEach(e=>{delete t[e]}),delete t._chartjs)}function Ws(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}function Vs(t,e=[""],i,n,s=()=>t[0]){const o=i||t;void 0===n&&(n=Zs("_fallback",t));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:n,_getTarget:s,override:i=>Vs([i,...t],e,o,n)};return new Proxy(r,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,n)=>Ys(i,n,()=>function(t,e,i,n){let s;for(const o of e)if(s=Zs(qs(o,t),i),void 0!==s)return Us(t,s)?Xs(i,n,t,s):s}(n,e,t,i)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>to(t).includes(e),ownKeys:t=>to(t),set(t,e,i){const n=t._storage||(t._storage=s());return t[e]=n[e]=i,delete t._keys,!0}})}function Hs(t,e,i,n){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:$s(t,n),setContext:e=>Hs(t,e,i,n),override:s=>Hs(t.override(s),e,i,n)};return new Proxy(s,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>Ys(t,e,()=>function(t,e,i){const{_proxy:n,_context:s,_subProxy:o,_descriptors:r}=t;let a=n[e];Gn(a)&&r.isScriptable(e)&&(a=function(t,e,i,n){const{_proxy:s,_context:o,_subProxy:r,_stack:a}=i;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(o,r||n);a.delete(t),Us(t,l)&&(l=Xs(s._scopes,s,t,l));return l}(e,a,t,i));Cn(a)&&a.length&&(a=function(t,e,i,n){const{_proxy:s,_context:o,_subProxy:r,_descriptors:a}=i;if(void 0!==o.index&&n(t))return e[o.index%e.length];if(Pn(e[0])){const i=e,n=s._scopes.filter(t=>t!==i);e=[];for(const l of i){const i=Xs(n,s,t,l);e.push(Hs(i,o,r&&r[t],a))}}return e}(e,a,t,r.isIndexable));Us(e,a)&&(a=Hs(a,s,o&&o[e],r));return a}(t,e,i)),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,n)=>(t[i]=n,delete e[i],!0)})}function $s(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:n=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:i,indexable:n,isScriptable:Gn(i)?i:()=>i,isIndexable:Gn(n)?n:()=>n}}const qs=(t,e)=>t?t+Yn(e):e,Us=(t,e)=>Pn(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Ys(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const n=i();return t[e]=n,n}function Js(t,e,i){return Gn(t)?t(e,i):t}const Gs=(t,e)=>!0===t?e:"string"==typeof t?Un(e,t):void 0;function Ks(t,e,i,n,s){for(const o of e){const e=Gs(i,o);if(e){t.add(e);const o=Js(e._fallback,i,s);if(void 0!==o&&o!==i&&o!==n)return o}else if(!1===e&&void 0!==n&&i!==n)return null}return!1}function Xs(t,e,i,n){const s=e._rootScopes,o=Js(e._fallback,i,n),r=[...t,...s],a=new Set;a.add(n);let l=Qs(a,r,i,o||i,n);return null!==l&&((void 0===o||o===i||(l=Qs(a,r,o,l,n),null!==l))&&Vs(Array.from(a),[""],s,o,()=>function(t,e,i){const n=t._getTarget();e in n||(n[e]={});const s=n[e];if(Cn(s)&&Pn(i))return i;return s||{}}(e,i,n)))}function Qs(t,e,i,n,s){for(;i;)i=Ks(t,e,i,n,s);return i}function Zs(t,e){for(const i of e){if(!i)continue;const e=i[t];if(void 0!==e)return e}}function to(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}(t._scopes)),e}function eo(t,e,i,n){const{iScale:s}=t,{key:o="r"}=this._parsing,r=new Array(n);let a,l,c,h;for(a=0,l=n;ae"x"===t?"y":"x";function oo(t,e,i,n){const s=t.skip?e:t,o=e,r=i.skip?e:i,a=gs(o,s),l=gs(r,o);let c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;const d=n*c,u=n*h;return{previous:{x:o.x-d*(r.x-s.x),y:o.y-d*(r.y-s.y)},next:{x:o.x+u*(r.x-s.x),y:o.y+u*(r.y-s.y)}}}function ro(t,e="x"){const i=so(e),n=t.length,s=Array(n).fill(0),o=Array(n);let r,a,l,c=no(t,0);for(r=0;r!t.skip)),"monotone"===e.cubicInterpolationMode)ro(t,s);else{let i=n?t[t.length-1]:t[0];for(o=0,r=t.length;ot.ownerDocument.defaultView.getComputedStyle(t,null);const po=["top","right","bottom","left"];function go(t,e,i){const n={};i=i?"-"+i:"";for(let s=0;s<4;s++){const o=po[s];n[o]=parseFloat(t[e+"-"+o+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function mo(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:n}=e,s=fo(i),o="border-box"===s.boxSizing,r=go(s,"padding"),a=go(s,"border","width"),{x:l,y:c,box:h}=function(t,e){const i=t.touches,n=i&&i.length?i[0]:t,{offsetX:s,offsetY:o}=n;let r,a,l=!1;if(((t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot))(s,o,t.target))r=s,a=o;else{const t=e.getBoundingClientRect();r=n.clientX-t.left,a=n.clientY-t.top,l=!0}return{x:r,y:a,box:l}}(t,i),d=r.left+(h&&a.left),u=r.top+(h&&a.top);let{width:f,height:p}=e;return o&&(f-=r.width+a.width,p-=r.height+a.height),{x:Math.round((l-d)/f*i.width/n),y:Math.round((c-u)/p*i.height/n)}}const bo=t=>Math.round(10*t)/10;function vo(t,e,i,n){const s=fo(t),o=go(s,"margin"),r=uo(s.maxWidth,t,"clientWidth")||ts,a=uo(s.maxHeight,t,"clientHeight")||ts,l=function(t,e,i){let n,s;if(void 0===e||void 0===i){const o=t&&ho(t);if(o){const t=o.getBoundingClientRect(),r=fo(o),a=go(r,"border","width"),l=go(r,"padding");e=t.width-l.width-a.width,i=t.height-l.height-a.height,n=uo(r.maxWidth,o,"clientWidth"),s=uo(r.maxHeight,o,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:n||ts,maxHeight:s||ts}}(t,e,i);let{width:c,height:h}=l;if("content-box"===s.boxSizing){const t=go(s,"border","width"),e=go(s,"padding");c-=e.width+t.width,h-=e.height+t.height}c=Math.max(0,c-o.width),h=Math.max(0,n?c/n:h-o.height),c=bo(Math.min(c,r,l.maxWidth)),h=bo(Math.min(h,a,l.maxHeight)),c&&!h&&(h=bo(c/2));if((void 0!==e||void 0!==i)&&n&&l.height&&h>l.height){const e=function(t,e){const i=ho(t),n=t.style;if(!i||!n)return;const s=n.height;n.height=`${e}px`;const o=fo(i);let r=parseFloat(o.height);return"border-box"===o.boxSizing&&(r-=go(o,"padding").height+go(o,"border","width").height),n.height=s,isNaN(r)?void 0:r}(t,h);void 0===e?(h=l.height,c=bo(Math.floor(h*n))):e0===t||1===t,ko=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*Qn/i),Mo=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*Qn/i)+1,So={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*is),easeOutSine:t=>Math.sin(t*is),easeInOutSine:t=>-.5*(Math.cos(Xn*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>wo(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>wo(t)?t:ko(t,.075,.3),easeOutElastic:t=>wo(t)?t:Mo(t,.075,.3),easeInOutElastic(t){const e=.1125;return wo(t)?t:t<.5?.5*ko(2*t,e,.45):.5+.5*Mo(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-So.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*So.easeInBounce(2*t):.5*So.easeOutBounce(2*t-1)+.5};const Oo="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function Eo(t,e){let i=[],n=!1;return function(...s){i=s,n||(n=!0,Oo.call(window,()=>{n=!1,t.apply(e,i)}))}}const Ao=t=>"start"===t?"left":"end"===t?"right":"center",To=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2;function Co(t,e,i){const n=e.length;let s=0,o=n;if(t._sorted){const{iScale:r,vScale:a,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,h=r.axis,{min:d,max:u,minDefined:f,maxDefined:p}=r.getUserBounds();if(f){if(s=Math.min(Fs(l,h,d).lo,i?n:Fs(e,h,r.getPixelForValue(d)).lo),c){const t=l.slice(0,s+1).reverse().findIndex(t=>!Tn(t[a.axis]));s-=Math.max(0,t)}s=ys(s,0,n-1)}if(p){let t=Math.max(Fs(l,r.axis,u,!0).hi+1,i?0:Fs(e,h,r.getPixelForValue(u),!0).hi+1);if(c){const e=l.slice(t-1).findIndex(t=>!Tn(t[a.axis]));t+=Math.max(0,e)}o=ys(t,s,n)-s}else o=n-s}return{start:s,count:o}}function Po(t){const{xScale:e,yScale:i,_scaleRanges:n}=t,s={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!n)return t._scaleRanges=s,!0;const o=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,s),o}function Lo(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function Do(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:"middle"===n?i<.5?t.y:e.y:"after"===n?i<1?t.y:e.y:i>0?e.y:t.y}}function Io(t,e,i,n){const s={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},r=Lo(t,s,i),a=Lo(s,o,i),l=Lo(o,e,i),c=Lo(r,a,i),h=Lo(a,l,i);return Lo(c,h,i)}const Ro=new Map;function jo(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let n=Ro.get(i);return n||(n=new Intl.NumberFormat(t,e),Ro.set(i,n)),n}(e,i).format(t)}const Fo=["x","y","borderWidth","radius","tension"],zo=["color","borderColor","backgroundColor"];function Bo(t,e){return Object.assign(t,e),t.minimumFractionDigits>t.maximumFractionDigits&&(void 0===e.minimumFractionDigits?t.minimumFractionDigits=t.maximumFractionDigits:void 0===e.maximumFractionDigits&&(t.maximumFractionDigits=t.minimumFractionDigits)),t}const No={values:t=>Cn(t)?t:""+t,numeric(t,e,i){const n=this.chart.options.locale;if(0===t)return jo(0,n,Bo({minimumFractionDigits:0,maximumFractionDigits:0},this.options.ticks.format));let s,o=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(s="scientific"),o=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t));return i}(t,i)}const r=os(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0);return jo(t,n,Bo({notation:s,minimumFractionDigits:a,maximumFractionDigits:a},this.options.ticks.format))},logarithmic(t,e,i){if(0===t)return"0";const n=i[e].significand||t/Math.pow(10,Math.floor(os(t)));return[1,2,3,5,10,15].includes(n)||e>.8*i.length?No.numeric.call(this,t,e,i):""}};var Wo={formatters:No};const Vo=Object.create(null),Ho=Object.create(null);function $o(t,e){if(!e)return t;const i=e.split(".");for(let e=0,n=i.length;et.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>On(e.backgroundColor),this.hoverBorderColor=(t,e)=>On(e.borderColor),this.hoverColor=(t,e)=>On(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return qo(this,t,e)}get(t){return $o(this,t)}describe(t,e){return qo(Ho,t,e)}override(t,e){return qo(Vo,t,e)}route(t,e,i,n){const s=$o(this,t),o=$o(this,i),r="_"+e;Object.defineProperties(s,{[r]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[r],e=o[n];return Pn(t)?Object.assign({},e,t):In(t,e)},set(t){this[r]=t}}})}apply(t){t.forEach(t=>t(this))}}var Yo=new Uo({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:zo},numbers:{type:"number",properties:Fo}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Wo.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);const Jo=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Go=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Ko(t,e){const i=(""+t).match(Jo);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}const Xo=t=>+t||0;function Qo(t,e){const i={},n=Pn(e),s=n?Object.keys(e):e,o=Pn(t)?n?i=>In(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of s)i[t]=Xo(o(t));return i}function Zo(t){return Qo(t,{top:"y",right:"x",bottom:"y",left:"x"})}function tr(t){return Qo(t,["topLeft","topRight","bottomLeft","bottomRight"])}function er(t){const e=Zo(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function ir(t,e){t=t||{},e=e||Yo.font;let i=In(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let n=In(t.style,e.style);n&&!(""+n).match(Go)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const s={family:In(t.family,e.family),lineHeight:Ko(In(t.lineHeight,e.lineHeight),i),size:i,style:n,weight:In(t.weight,e.weight),string:""};return s.string=function(t){return!t||Tn(t.size)||Tn(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(s),s}function nr(t,e,i,n){let s,o,r,a=!0;for(s=0,o=t.length;st+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,i):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function rr(t,e){let i,n;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,n=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=n)}function ar(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function lr(t){return"angle"===t?{between:vs,compare:ms,normalize:bs}:{between:xs,compare:(t,e)=>t-e,normalize:t=>t}}function cr({start:t,end:e,count:i,loop:n,style:s}){return{start:t%i,end:e%i,loop:n&&(e-t+1)%i==0,style:s}}function hr(t,e,i){if(!i)return[t];const{property:n,start:s,end:o}=i,r=e.length,{compare:a,between:l,normalize:c}=lr(n),{start:h,end:d,loop:u,style:f}=function(t,e,i){const{property:n,start:s,end:o}=i,{between:r,normalize:a}=lr(n),l=e.length;let c,h,{start:d,end:u,loop:f}=t;if(f){for(d+=l,u+=l,c=0,h=l;cv||l(s,b,g)&&0!==a(s,b),_=()=>!v||0===a(o,g)||l(o,b,g);for(let t=h,i=h;t<=d;++t)m=e[t%r],m.skip||(g=c(m[n]),g!==b&&(v=l(g,s,o),null===y&&x()&&(y=0===a(g,s)?t:i),null!==y&&_()&&(p.push(cr({start:y,end:t,loop:u,count:r,style:f})),y=null),i=t,b=g));return null!==y&&p.push(cr({start:y,end:d,loop:u,count:r,style:f})),p}function dr(t,e){const i=[],n=t.segments;for(let s=0;sn({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=Oo.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((i,n)=>{if(!i.running||!i.items.length)return;const s=i.items;let o,r=s.length-1,a=!1;for(;r>=0;--r)o=s[r],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),a=!0):(s[r]=s[s.length-1],s.pop());a&&(n.draw(),this._notify(n,i,t,"progress")),s.length||(i.running=!1,this._notify(n,i,t,"complete"),i.initial=!1),e+=s.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let n=i.length-1;for(;n>=0;--n)i[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var vr=new br;const yr="transparent",xr={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const n=Sn(t||yr),s=n.valid&&Sn(e||yr);return s&&s.valid?s.mix(n,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class _r{constructor(t,e,i,n){const s=e[i];n=nr([t.to,n,s,t.from]);const o=nr([t.from,s,n]);this._active=!0,this._fn=t.fn||xr[t.type||typeof o],this._easing=So[t.easing]||So.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=o,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const n=this._target[this._prop],s=i-this._start,o=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=nr([t.to,e,n,t.from]),this._from=nr([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,n=this._prop,s=this._from,o=this._loop,r=this._to;let a;if(this._active=s!==r&&(o||e1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[n]=this._fn(s,r,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t{const s=t[n];if(!Pn(s))return;const o={};for(const t of e)o[t]=s[t];(Cn(s.properties)&&s.properties||[n]).forEach(t=>{t!==n&&i.has(t)||i.set(t,o)})})}_animateOptions(t,e){const i=e.options,n=function(t,e){if(!e)return;let i=t.options;if(!i)return void(t.options=e);i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}}));return i}(t,i);if(!n)return[];const s=this._createAnimations(n,i);return i.$shared&&function(t,e){const i=[],n=Object.keys(e);for(let e=0;e{t.options=i},()=>{}),s}_createAnimations(t,e){const i=this._properties,n=[],s=t.$animations||(t.$animations={}),o=Object.keys(e),r=Date.now();let a;for(a=o.length-1;a>=0;--a){const l=o[a];if("$"===l.charAt(0))continue;if("options"===l){n.push(...this._animateOptions(t,e));continue}const c=e[l];let h=s[l];const d=i.get(l);if(h){if(d&&h.active()){h.update(d,c,r);continue}h.cancel()}d&&d.duration?(s[l]=h=new _r(d,t,l,c),n.push(h)):t[l]=c}return n}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(vr.add(this._chart,i),!0):void 0}}function kr(t,e){const i=t&&t.options||{},n=i.reverse,s=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:n?o:s,end:n?s:o}}function Mr(t,e){const i=[],n=t._getSortedDatasetMetas(e);let s,o;for(s=0,o=n.length;s0||!i&&e<0)return s.index}return null}function Tr(t,e){const{chart:i,_cachedMeta:n}=t,s=i._stacks||(i._stacks={}),{iScale:o,vScale:r,index:a}=n,l=o.axis,c=r.axis,h=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(o,r,n),d=e.length;let u;for(let t=0;ti[t].axis===e).shift()}function Pr(t,e){const i=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const t of e){const e=t._stacks;e&&void 0!==e[n]&&void 0!==e[n][i]&&(delete e[n][i],void 0!==e[n]._visualValues&&void 0!==e[n]._visualValues[i]&&delete e[n]._visualValues[i])}}}const Lr=t=>"reset"===t||"none"===t,Dr=(t,e)=>e?t:Object.assign({},t);class Ir{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Or(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Pr(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),n=(t,e,i,n)=>"x"===t?e:"r"===t?n:i,s=e.xAxisID=In(i.xAxisID,Cr(t,"x")),o=e.yAxisID=In(i.yAxisID,Cr(t,"y")),r=e.rAxisID=In(i.rAxisID,Cr(t,"r")),a=e.indexAxis,l=e.iAxisID=n(a,s,o,r),c=e.vAxisID=n(a,o,s,r);e.xScale=this.getScaleForId(s),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(r),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ns(this._data,this),t._stacked&&Pr(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(Pn(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:i,vScale:n}=e,s="x"===i.axis?"x":"y",o="x"===n.axis?"x":"y",r=Object.keys(t),a=new Array(r.length);let l,c,h;for(l=0,c=r.length;l{const e="_onData"+Yn(t),i=n[t];Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value(...t){const s=i.apply(this,t);return n._chartjs.listeners.forEach(i=>{"function"==typeof i[e]&&i[e](...t)}),s}})}))),this._syncList=[],this._data=e}var n,s}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let n=!1;this._dataCheck();const s=e._stacked;e._stacked=Or(e.vScale,e),e.stack!==i.stack&&(n=!0,Pr(e),e.stack=i.stack),this._resyncElements(t),(n||s!==e._stacked)&&(Tr(this,e._parsed),e._stacked=Or(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:n}=this,{iScale:s,_stacked:o}=i,r=s.axis;let a,l,c,h=0===t&&e===n.length||i._sorted,d=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=n,i._sorted=!0,c=n;else{c=Cn(n[t])?this.parseArrayData(i,n,t,e):Pn(n[t])?this.parseObjectData(i,n,t,e):this.parsePrimitiveData(i,n,t,e);const s=()=>null===l[r]||d&&l[r]t&&!e.hidden&&e._stacked&&{keys:Mr(i,!0),values:null})(e,i,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:h}=function(t){const{min:e,max:i,minDefined:n,maxDefined:s}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:s?i:Number.POSITIVE_INFINITY}}(r);let d,u;function f(){u=n[d];const e=u[r.axis];return!Ln(u[t.axis])||c>e||h=0;--d)if(!f()){this.updateRangeFromParsed(l,t,u,a);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let n,s,o;for(n=0,s=e.length;n=0&&tthis.getContext(i,n,e),h);return f.$shared&&(f.$shared=a,s[o]=Object.freeze(Dr(f,a))),f}_resolveAnimations(t,e,i){const n=this.chart,s=this._cachedDataOpts,o=`animation-${e}`,r=s[o];if(r)return r;let a;if(!1!==n.options.animation){const n=this.chart.config,s=n.datasetAnimationScopeKeys(this._type,e),o=n.getOptionScopes(this.getDataset(),s);a=n.createResolver(o,this.getContext(t,i,e))}const l=new wr(n,a&&a.animations);return a&&a._cacheable&&(s[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Lr(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),n=this._sharedOptions,s=this.getSharedOptions(i),o=this.includeOptions(e,s)||s!==n;return this.updateSharedOptions(s,e,i),{sharedOptions:s,includeOptions:o}}updateElement(t,e,i,n){Lr(n)?Object.assign(t,i):this._resolveAnimations(e,n).update(t,i)}updateSharedOptions(t,e,i){t&&!Lr(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,n){t.active=n;const s=this.getStyle(e,n);this._resolveAnimations(e,i,n).update(t,{options:!n&&this.getSharedOptions(s)||s})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];const n=i.length,s=e.length,o=Math.min(s,n);o&&this.parse(0,o),s>n?this._insertElements(n,s-n,t):s{for(t.length+=e,r=t.length-1;r>=o;r--)t[r]=t[r-e]};for(a(s),r=t;r0&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Rr(t){const e=t.iScale,i=function(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let n=[];for(let e=0,s=i.length;et-e))}return t._cache.$bar}(e,t.type);let n,s,o,r,a=e._length;const l=()=>{32767!==o&&-32768!==o&&(Jn(r)&&(a=Math.min(a,Math.abs(o-r)||a)),r=o)};for(n=0,s=i.length;nMath.abs(a)&&(l=a,c=r),e[i.axis]=c,e._custom={barStart:l,barEnd:c,start:s,end:o,min:r,max:a}}(t,e,i,n):e[i.axis]=i.parse(t,n),e}function Fr(t,e,i,n){const s=t.iScale,o=t.vScale,r=s.getLabels(),a=s===o,l=[];let c,h,d,u;for(c=i,h=i+n;ct.x,i="left",n="right"):(e=t.base"spacing"!==t&&"spacingMode"!==t,_indexable:t=>"spacing"!==t&&"spacingMode"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data,{labels:{pointStyle:i,textAlign:n,color:s,useBorderRadius:o,borderRadius:r}}=t.legend.options;return e.labels.length&&e.datasets.length?e.labels.map((e,a)=>{const l=t.getDatasetMeta(0).controller.getStyle(a);return{text:e,fillStyle:l.backgroundColor,fontColor:s,hidden:!t.getDataVisibility(a),lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:l.borderWidth,strokeStyle:l.borderColor,textAlign:n,pointStyle:i,borderRadius:o&&(r||l.borderRadius),index:a}}):[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=i;else{let s,o,r=t=>+i[t];if(Pn(i[t])){const{key:t="value"}=this._parsing;r=e=>+Un(i[e],t)}for(s=t,o=t+e;svs(t,a,l,!0)?1:Math.max(e,e*i,n,n*i),p=(t,e,n)=>vs(t,a,l,!0)?-1:Math.min(e,e*i,n,n*i),g=f(0,c,d),m=f(is,h,u),b=p(Xn,c,d),v=p(Xn+is,h,u);n=(g-b)/2,s=(m-v)/2,o=-(g+b)/2,r=-(m+v)/2}return{ratioX:n,ratioY:s,offsetX:o,offsetY:r}}(u,d,a),b=(i.width-o)/f,v=(i.height-o)/p,y=Math.max(Math.min(b,v)/2,0),x=Rn(this.options.radius,y),_=(x-Math.max(x*a,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*x,this.offsetY=m*x,n.total=this.calculateTotal(),this.outerRadius=x-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*h,0),this.updateElements(s,0,s.length,t)}_circumference(t,e){const i=this.options,n=this._cachedMeta,s=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===n._parsed[t]||n.data[t].hidden?0:this.calculateCircumference(n._parsed[t]*s/Qn)}updateElements(t,e,i,n){const s="reset"===n,o=this.chart,r=o.chartArea,a=o.options.animation,l=(r.left+r.right)/2,c=(r.top+r.bottom)/2,h=s&&a.animateScale,d=h?0:this.innerRadius,u=h?0:this.outerRadius,{sharedOptions:f,includeOptions:p}=this._getSharedOptions(e,n);let g,m=this._getRotation();for(g=0;g0&&!isNaN(t)?Qn*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=jo(e._parsed[t],i.options.locale);return{label:n[t]||"",value:s}}getMaxBorderWidth(t){let e=0;const i=this.chart;let n,s,o,r,a;if(!t)for(n=0,s=i.data.datasets.length;n{const o=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:n,lineWidth:o.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=jo(e._parsed[t].r,i.options.locale);return{label:n[t]||"",value:s}}parseObjectData(t,e,i,n){return eo.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((t,i)=>{const n=this.getParsed(i).r;!isNaN(n)&&this.chart.getDataVisibility(i)&&(ne.max&&(e.max=n))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,n=Math.min(e.right-e.left,e.bottom-e.top),s=Math.max(n/2,0),o=(s-Math.max(i.cutoutPercentage?s/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=s-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,i,n){const s="reset"===n,o=this.chart,r=o.options.animation,a=this._cachedMeta.rScale,l=a.xCenter,c=a.yCenter,h=a.getIndexAngle(0)-.5*Xn;let d,u=h;const f=360/this.countVisibleElements();for(d=0;d{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++}),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?ds(this.resolveDataElementOptions(t,e).angle||i):0}}var qr=Object.freeze({__proto__:null,BarController:class extends Ir{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,i,n){return Fr(t,e,i,n)}parseArrayData(t,e,i,n){return Fr(t,e,i,n)}parseObjectData(t,e,i,n){const{iScale:s,vScale:o}=t,{xAxisKey:r="x",yAxisKey:a="y"}=this._parsing,l="x"===s.axis?r:a,c="x"===o.axis?r:a,h=[];let d,u,f,p;for(d=i,u=i+n;dt.controller.options.grouped),s=i.options.stacked,o=[],r=this._cachedMeta.controller.getParsed(e),a=r&&r[i.axis],l=t=>{const e=t._parsed.find(t=>t[i.axis]===a),n=e&&e[t.vScale.axis];if(Tn(n)||isNaN(n))return!0};for(const i of n)if((void 0===e||!l(i))&&((!1===s||-1===o.indexOf(i.stack)||void 0===s&&void 0===i.stack)&&o.push(i.stack),i.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,e=this.chart.options.indexAxis;return Object.keys(t).filter(i=>t[i].axis===e).shift()}_getAxis(){const t={},e=this.getFirstScaleIdForIndexAxis();for(const i of this.chart.data.datasets)t[In("x"===this.chart.options.indexAxis?i.xAxisID:i.yAxisID,e)]=!0;return Object.keys(t)}_getStackIndex(t,e,i){const n=this._getStacks(t,i),s=void 0!==e?n.indexOf(e):-1;return-1===s?n.length-1:s}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,n=[];let s,o;for(s=0,o=e.data.length;s=i?1:-1)}(d,e,r)*o,u===r&&(m-=d/2);const t=e.getPixelForDecimal(0),s=e.getPixelForDecimal(1),l=Math.min(t,s),f=Math.max(t,s);m=Math.max(Math.min(m,f),l),h=m+d,i&&!c&&(a._stacks[e.axis]._visualValues[n]=e.getValueForPixel(h)-e.getValueForPixel(m))}if(m===e.getPixelForValue(r)){const t=rs(d)*e.getLineWidthForValue(r)/2;m+=t,d-=t}return{size:d,base:m,head:h,center:h+d/2}}_calculateBarIndexPixels(t,e){const i=e.scale,n=this.options,s=n.skipNull,o=In(n.maxBarThickness,1/0);let r,a;const l=this._getAxisCount();if(e.grouped){const i=s?this._getStackCount(t):e.stackCount,c="flex"===n.barThickness?function(t,e,i,n){const s=e.pixels,o=s[t];let r=t>0?s[t-1]:null,a=t=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:n,yScale:s}=e,o=this.getParsed(t),r=n.getLabelForValue(o.x),a=s.getLabelForValue(o.y),l=o._custom;return{label:i[t]||"",value:"("+r+", "+a+(l?", "+l:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,n){const s="reset"===n,{iScale:o,vScale:r}=this._cachedMeta,{sharedOptions:a,includeOptions:l}=this._getSharedOptions(e,n),c=o.axis,h=r.axis;for(let d=e;d0&&this.getParsed(e-1);for(let i=0;i=b){v.skip=!0;continue}const x=this.getParsed(i),_=Tn(x[u]),w=v[d]=o.getPixelForValue(x[d],i),k=v[u]=s||_?r.getBasePixel():r.getPixelForValue(a?this.applyStack(r,x,a):x[u],i);v.skip=isNaN(w)||isNaN(k)||_,v.stop=i>0&&Math.abs(x[d]-y[d])>g,p&&(v.parsed=x,v.raw=l.data[i]),h&&(v.options=c||this.resolveDataElementOptions(i,f.active?"active":n)),m||this.updateElement(f,i,v,n),y=x}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,n=t.data||[];if(!n.length)return i;const s=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,s,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}},PieController:class extends Hr{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}},PolarAreaController:$r,RadarController:class extends Ir{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,n){return eo.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta,i=e.dataset,n=e.data||[],s=e.iScale.getLabels();if(i.points=n,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:s.length===n.length,options:e};this.updateElement(i,void 0,o,t)}this.updateElements(n,0,n.length,t)}updateElements(t,e,i,n){const s=this._cachedMeta.rScale,o="reset"===n;for(let r=e;r0&&this.getParsed(e-1);for(let c=e;c0&&Math.abs(i[u]-v[u])>m,g&&(p.parsed=i,p.raw=l.data[c]),d&&(p.options=h||this.resolveDataElementOptions(c,e.active?"active":n)),b||this.updateElement(e,c,p,n),v=i}this.updateSharedOptions(h,n,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,n=i.options&&i.options.borderWidth||0;if(!e.length)return n;const s=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(n,s,o)/2}}});function Ur(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Yr{static override(t){Object.assign(Yr.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return Ur()}parse(){return Ur()}format(){return Ur()}add(){return Ur()}diff(){return Ur()}startOf(){return Ur()}endOf(){return Ur()}}var Jr=Yr;function Gr(t,e,i,n){const{controller:s,data:o,_sorted:r}=t,a=s._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(a&&e===a.axis&&"r"!==e&&r&&o.length){const r=a._reversePixels?zs:Fs;if(!n){const n=r(o,e,i);if(l){const{vScale:e}=s._cachedMeta,{_parsed:i}=t,o=i.slice(0,n.lo+1).reverse().findIndex(t=>!Tn(t[e.axis]));n.lo-=Math.max(0,o);const r=i.slice(n.hi).findIndex(t=>!Tn(t[e.axis]));n.hi+=Math.max(0,r)}return n}if(s._sharedOptions){const t=o[0],n="function"==typeof t.getRange&&t.getRange(e);if(n){const t=r(o,e,i-n),s=r(o,e,i+n);return{lo:t.lo,hi:s.hi}}}}return{lo:0,hi:o.length-1}}function Kr(t,e,i,n,s){const o=t.getSortedVisibleDatasetMetas(),r=i[e];for(let t=0,i=o.length;t{t[r]&&t[r](e[i],s)&&(o.push({element:t,datasetIndex:n,index:l}),a=a||t.inRange(e.x,e.y,s))}),n&&!a?[]:o}var ea={evaluateInteractionItems:Kr,modes:{index(t,e,i,n){const s=mo(e,t),o=i.axis||"x",r=i.includeInvisible||!1,a=i.intersect?Xr(t,s,o,n,r):Zr(t,s,o,!1,n,r),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=a[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})}),l):[]},dataset(t,e,i,n){const s=mo(e,t),o=i.axis||"xy",r=i.includeInvisible||!1;let a=i.intersect?Xr(t,s,o,n,r):Zr(t,s,o,!1,n,r);if(a.length>0){const e=a[0].datasetIndex,i=t.getDatasetMeta(e).data;a=[];for(let t=0;tXr(t,mo(e,t),i.axis||"xy",n,i.includeInvisible||!1),nearest(t,e,i,n){const s=mo(e,t),o=i.axis||"xy",r=i.includeInvisible||!1;return Zr(t,s,o,i.intersect,n,r)},x:(t,e,i,n)=>ta(t,mo(e,t),"x",i.intersect,n),y:(t,e,i,n)=>ta(t,mo(e,t),"y",i.intersect,n)}};const ia=["left","top","right","bottom"];function na(t,e){return t.filter(t=>t.pos===e)}function sa(t,e){return t.filter(t=>-1===ia.indexOf(t.pos)&&t.box.axis===e)}function oa(t,e){return t.sort((t,i)=>{const n=e?i:t,s=e?t:i;return n.weight===s.weight?n.index-s.index:n.weight-s.weight})}function ra(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:n,stackWeight:s}=i;if(!t||!ia.includes(n))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return e}(t),{vBoxMaxWidth:n,hBoxMaxHeight:s}=e;let o,r,a;for(o=0,r=t.length;o{n[t]=Math.max(e[t],i[t])}),n}return n(t?["left","right"]:["top","bottom"])}function da(t,e,i,n){const s=[];let o,r,a,l,c,h;for(o=0,r=t.length,c=0;ot.box.fullSize),!0),n=oa(na(e,"left"),!0),s=oa(na(e,"right")),o=oa(na(e,"top"),!0),r=oa(na(e,"bottom")),a=sa(e,"x"),l=sa(e,"y");return{fullSize:i,leftAndTop:n.concat(o),rightAndBottom:s.concat(l).concat(r).concat(a),chartArea:na(e,"chartArea"),vertical:n.concat(s).concat(l),horizontal:o.concat(r).concat(a)}}(t.boxes),l=a.vertical,c=a.horizontal;Fn(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});const h=l.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:i,padding:s,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),u=Object.assign({},s);la(u,er(n));const f=Object.assign({maxPadding:u,w:o,h:r,x:s.left,y:s.top},s),p=ra(l.concat(c),d);da(a.fullSize,f,d,p),da(l,f,d,p),da(c,f,d,p)&&da(l,f,d,p),function(t){const e=t.maxPadding;function i(i){const n=Math.max(e[i]-t[i],0);return t[i]+=n,n}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(f),fa(a.leftAndTop,f,d,p),f.x+=f.w,f.y+=f.h,fa(a.rightAndBottom,f,d,p),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Fn(a.chartArea,e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class ga{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,n){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):i)}}isAttached(t){return!0}updateConfig(t){}}class ma extends ga{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const ba="$chartjs",va={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ya=t=>null===t||""===t;const xa=!!xo&&{passive:!0};function _a(t,e,i){t&&t.canvas&&t.canvas.removeEventListener(e,i,xa)}function wa(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function ka(t,e,i){const n=t.canvas,s=new MutationObserver(t=>{let e=!1;for(const i of t)e=e||wa(i.addedNodes,n),e=e&&!wa(i.removedNodes,n);e&&i()});return s.observe(document,{childList:!0,subtree:!0}),s}function Ma(t,e,i){const n=t.canvas,s=new MutationObserver(t=>{let e=!1;for(const i of t)e=e||wa(i.removedNodes,n),e=e&&!wa(i.addedNodes,n);e&&i()});return s.observe(document,{childList:!0,subtree:!0}),s}const Sa=new Map;let Oa=0;function Ea(){const t=window.devicePixelRatio;t!==Oa&&(Oa=t,Sa.forEach((e,i)=>{i.currentDevicePixelRatio!==t&&e()}))}function Aa(t,e,i){const n=t.canvas,s=n&&ho(n);if(!s)return;const o=Eo((t,e)=>{const n=s.clientWidth;i(t,e),n{const e=t[0],i=e.contentRect.width,n=e.contentRect.height;0===i&&0===n||o(i,n)});return r.observe(s),function(t,e){Sa.size||window.addEventListener("resize",Ea),Sa.set(t,e)}(t,o),r}function Ta(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){Sa.delete(t),Sa.size||window.removeEventListener("resize",Ea)}(t)}function Ca(t,e,i){const n=t.canvas,s=Eo(e=>{null!==t.ctx&&i(function(t,e){const i=va[t.type]||t.type,{x:n,y:s}=mo(t,e);return{type:i,chart:e,native:t,x:void 0!==n?n:null,y:void 0!==s?s:null}}(e,t))},t);return function(t,e,i){t&&t.addEventListener(e,i,xa)}(n,e,s),s}class Pa extends ga{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,n=t.getAttribute("height"),s=t.getAttribute("width");if(t[ba]={initial:{height:n,width:s,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",ya(s)){const e=_o(t,"width");void 0!==e&&(t.width=e)}if(ya(n))if(""===t.style.height)t.height=t.width/(e||2);else{const e=_o(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[ba])return!1;const i=e[ba].initial;["height","width"].forEach(t=>{const n=i[t];Tn(n)?e.removeAttribute(t):e.setAttribute(t,n)});const n=i.style||{};return Object.keys(n).forEach(t=>{e.style[t]=n[t]}),e.width=e.width,delete e[ba],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),s={attach:ka,detach:Ma,resize:Aa}[e]||Ca;n[e]=s(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),n=i[e];if(!n)return;({attach:Ta,detach:Ta,resize:Ta}[e]||_a)(t,e,n),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,n){return vo(t,e,i,n)}isAttached(t){const e=t&&ho(t);return!(!e||!e.isConnected)}}class La{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return cs(this.x)&&cs(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const n={};return t.forEach(t=>{n[t]=i[t]&&i[t].active()?i[t]._to:this[t]}),n}}function Da(t,e){const i=t.options.ticks,n=function(t){const e=t.options.offset,i=t._tickSize(),n=t._length/i+(e?0:1),s=t._maxLength/i;return Math.floor(Math.min(n,s))}(t),s=Math.min(i.maxTicksLimit||n,n),o=i.major.enabled?function(t){const e=[];let i,n;for(i=0,n=t.length;is)return function(t,e,i,n){let s,o=0,r=i[0];for(n=Math.ceil(n),s=0;st-e).pop(),e}(n);for(let t=0,e=o.length-1;ts)return e}return Math.max(s,1)}(o,e,s);if(r>0){let t,i;const n=r>1?Math.round((l-a)/(r-1)):null;for(Ia(e,c,h,Tn(n)?0:a-n,a),t=0,i=r-1;t"top"===e||"left"===e?t[e]+i:t[e]-i,ja=(t,e)=>Math.min(e||t,t);function Fa(t,e){const i=[],n=t.length/e,s=t.length;let o=0;for(;or+a)))return c}function Ba(t){return t.drawTicks?t.tickLength:0}function Na(t,e){if(!t.display)return 0;const i=ir(t.font,e),n=er(t.padding);return(Cn(t.text)?t.text.length:1)*i.lineHeight+n.height}function Wa(t,e,i){let n=Ao(t);return(i&&"right"!==e||!i&&"right"===e)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class Va extends La{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:n}=this;return t=Dn(t,Number.POSITIVE_INFINITY),e=Dn(e,Number.NEGATIVE_INFINITY),i=Dn(i,Number.POSITIVE_INFINITY),n=Dn(n,Number.NEGATIVE_INFINITY),{min:Dn(t,i),max:Dn(e,n),minDefined:Ln(t),maxDefined:Ln(e)}}getMinMax(t){let e,{min:i,max:n,minDefined:s,maxDefined:o}=this.getUserBounds();if(s&&o)return{min:i,max:n};const r=this.getMatchingVisibleMetas();for(let a=0,l=r.length;an?n:i,n=s&&i>n?i:n,{min:Dn(i,Dn(n,i)),max:Dn(n,Dn(i,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){jn(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:n,grace:s,ticks:o}=this.options,r=o.sampleSize;if(this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,!this._dataLimitsCached){this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits();const t=function(t,e,i){const{min:n,max:s}=t,o=Rn(e,(s-n)/2),r=(t,e)=>i&&0===t?0:t+e;return{min:r(n,-Math.abs(o)),max:r(s,o)}}(this,s,n),{minDefined:e,maxDefined:i}=this.getUserBounds();this._range={min:e?this.min:t.min,max:i?this.max:t.max},this._dataLimitsCached=!0}this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=r=s||i<=1||!this.isHorizontal())return void(this.labelRotation=n);const c=this._getLabelSizes(),h=c.widest.width,d=c.highest.height,u=ys(this.chart.width-h,0,this.maxWidth);o=t.offset?this.maxWidth/i:u/(i-1),h+6>o&&(o=u/(i-(t.offset?.5:1)),r=this.maxHeight-Ba(t.grid)-e.padding-Na(t.title,this.chart.options.font),a=Math.sqrt(h*h+d*d),l=us(Math.min(Math.asin(ys((c.highest.height+6)/o,-1,1)),Math.asin(ys(r/a,-1,1))-Math.asin(ys(d/a,-1,1)))),l=Math.max(n,Math.min(s,l))),this.labelRotation=l}afterCalculateLabelRotation(){jn(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){jn(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:n,grid:s}}=this,o=this._isVisible(),r=this.isHorizontal();if(o){const o=Na(n,e.options.font);if(r?(t.width=this.maxWidth,t.height=Ba(s)+o):(t.height=this.maxHeight,t.width=Ba(s)+o),i.display&&this.ticks.length){const{first:e,last:n,widest:s,highest:o}=this._getLabelSizes(),a=2*i.padding,l=ds(this.labelRotation),c=Math.cos(l),h=Math.sin(l);if(r){const e=i.mirror?0:h*s.width+c*o.height;t.height=Math.min(this.maxHeight,t.height+e+a)}else{const e=i.mirror?0:c*s.width+h*o.height;t.width=Math.min(this.maxWidth,t.width+e+a)}this._calculatePadding(e,n,h,c)}}this._handleMargins(),r?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,n){const{ticks:{align:s,padding:o},position:r}=this.options,a=0!==this.labelRotation,l="top"!==r&&"x"===this.axis;if(this.isHorizontal()){const r=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,d=0;a?l?(h=n*t.width,d=i*e.height):(h=i*t.height,d=n*e.width):"start"===s?d=e.width:"end"===s?h=t.width:"inner"!==s&&(h=t.width/2,d=e.width/2),this.paddingLeft=Math.max((h-r+o)*this.width/(this.width-r),0),this.paddingRight=Math.max((d-c+o)*this.width/(this.width-c),0)}else{let i=e.height/2,n=t.height/2;"start"===s?(i=0,n=t.height):"end"===s&&(i=e.height,n=0),this.paddingTop=i+o,this.paddingBottom=n+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){jn(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e{const i=t.gc,n=i.length/2;let s;if(n>e){for(s=0;s({width:o[t]||0,height:r[t]||0});return{first:k(0),last:k(e-1),widest:k(_),highest:k(w),widths:o,heights:r}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return ys(this._alignToPixels?ks(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&tr*n?r/i:a/n:a*n0}_computeGridLineItems(t){const e=this.axis,i=this.chart,n=this.options,{grid:s,position:o,border:r}=n,a=s.offset,l=this.isHorizontal(),c=this.ticks.length+(a?1:0),h=Ba(s),d=[],u=r.setContext(this.getContext()),f=u.display?u.width:0,p=f/2,g=function(t){return ks(i,t,f)};let m,b,v,y,x,_,w,k,M,S,O,E;if("top"===o)m=g(this.bottom),_=this.bottom-h,k=m-p,S=g(t.top)+p,E=t.bottom;else if("bottom"===o)m=g(this.top),S=t.top,E=g(t.bottom)-p,_=m+p,k=this.top+h;else if("left"===o)m=g(this.right),x=this.right-h,w=m-p,M=g(t.left)+p,O=t.right;else if("right"===o)m=g(this.left),M=t.left,O=g(t.right)-p,x=m+p,w=this.left+h;else if("x"===e){if("center"===o)m=g((t.top+t.bottom)/2+.5);else if(Pn(o)){const t=Object.keys(o)[0],e=o[t];m=g(this.chart.scales[t].getPixelForValue(e))}S=t.top,E=t.bottom,_=m+p,k=_+h}else if("y"===e){if("center"===o)m=g((t.left+t.right)/2);else if(Pn(o)){const t=Object.keys(o)[0],e=o[t];m=g(this.chart.scales[t].getPixelForValue(e))}x=m-p,w=x-h,M=t.left,O=t.right}const A=In(n.ticks.maxTicksLimit,c),T=Math.max(1,Math.ceil(c/A));for(b=0;b0&&this.getPixelForTick(0)>this.getPixelForTick(C);for(m=0,b=r.length;me.value===t);if(i>=0){return e.setContext(this.getContext(i)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,i=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,o;const r=(t,e,n)=>{n.width&&n.color&&(i.save(),i.lineWidth=n.width,i.strokeStyle=n.color,i.setLineDash(n.borderDash||[]),i.lineDashOffset=n.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(s=0,o=n.length;s{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",n=[];let s,o;for(s=0,o=e.length;s{const n=i.split("."),s=n.pop(),o=[t].concat(n).join("."),r=e[i].split("."),a=r.pop(),l=r.join(".");Yo.route(o,s,l,a)})}(e,t.defaultRoutes);t.descriptors&&Yo.describe(e,t.descriptors)}(t,o,i),this.override&&Yo.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,n=this.scope;i in e&&delete e[i],n&&i in Yo[n]&&(delete Yo[n][i],this.override&&delete Vo[i])}}class $a{constructor(){this.controllers=new Ha(Ir,"datasets",!0),this.elements=new Ha(La,"elements"),this.plugins=new Ha(Object,"plugins"),this.scales=new Ha(Va,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach(e=>{const n=i||this._getRegistryForType(e);i||n.isForType(e)||n===this.plugins&&e.id?this._exec(t,n,e):Fn(e,e=>{const n=i||this._getRegistryForType(e);this._exec(t,n,e)})})}_exec(t,e,i){const n=Yn(t);jn(i["before"+n],[],i),e[t](i),jn(i["after"+n],[],i)}_getRegistryForType(t){for(let e=0;et.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(n(e,i),t,"stop"),this._notify(n(i,e),t,"start")}}function Ya(t,e){return e||!1!==t?!0===t?{}:t:null}function Ja(t,{plugin:e,local:i},n,s){const o=t.pluginScopeKeys(e),r=t.getOptionScopes(n,o);return i&&e.defaults&&r.push(e.defaults),t.createResolver(r,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Ga(t,e){const i=Yo.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function Ka(t){if("x"===t||"y"===t||"r"===t)return t}function Xa(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}function Qa(t,...e){if(Ka(t))return t;for(const i of e){const e=i.axis||Xa(i.position)||t.length>1&&Ka(t[0].toLowerCase());if(e)return e}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Za(t,e,i){if(i[e+"AxisID"]===t)return{axis:e}}function tl(t,e){const i=Vo[t.type]||{scales:{}},n=e.scales||{},s=Ga(t.type,e),o=Object.create(null);return Object.keys(n).forEach(e=>{const r=n[e];if(!Pn(r))return console.error(`Invalid scale configuration for scale: ${e}`);if(r._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const a=Qa(e,r,function(t,e){if(e.data&&e.data.datasets){const i=e.data.datasets.filter(e=>e.xAxisID===t||e.yAxisID===t);if(i.length)return Za(t,"x",i[0])||Za(t,"y",i[0])}return{}}(e,t),Yo.scales[r.type]),l=function(t,e){return t===e?"_index_":"_value_"}(a,s),c=i.scales||{};o[e]=Hn(Object.create(null),[{axis:a},r,c[a],c[l]])}),t.data.datasets.forEach(i=>{const s=i.type||t.type,r=i.indexAxis||Ga(s,e),a=(Vo[s]||{}).scales||{};Object.keys(a).forEach(t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,r),s=i[e+"AxisID"]||e;o[s]=o[s]||Object.create(null),Hn(o[s],[{axis:e},n[s],a[t]])})}),Object.keys(o).forEach(t=>{const e=o[t];Hn(e,[Yo.scales[e.type],Yo.scale])}),o}function el(t){const e=t.options||(t.options={});e.plugins=In(e.plugins,{}),e.scales=tl(t,e)}function il(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const nl=new Map,sl=new Set;function ol(t,e){let i=nl.get(t);return i||(i=e(),nl.set(t,i),sl.add(i)),i}const rl=(t,e,i)=>{const n=Un(e,i);void 0!==n&&t.add(n)};class al{constructor(t){this._config=function(t){return(t=t||{}).data=il(t.data),el(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=il(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),el(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return ol(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return ol(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return ol(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return ol(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const i=this._scopeCache;let n=i.get(t);return n&&!e||(n=new Map,i.set(t,n)),n}getOptionScopes(t,e,i){const{options:n,type:s}=this,o=this._cachedScopes(t,i),r=o.get(e);if(r)return r;const a=new Set;e.forEach(e=>{t&&(a.add(t),e.forEach(e=>rl(a,t,e))),e.forEach(t=>rl(a,n,t)),e.forEach(t=>rl(a,Vo[s]||{},t)),e.forEach(t=>rl(a,Yo,t)),e.forEach(t=>rl(a,Ho,t))});const l=Array.from(a);return 0===l.length&&l.push(Object.create(null)),sl.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Vo[e]||{},Yo.datasets[e]||{},{type:e},Yo,Ho]}resolveNamedOptions(t,e,i,n=[""]){const s={$shared:!0},{resolver:o,subPrefixes:r}=ll(this._resolverCache,t,n);let a=o;if(function(t,e){const{isScriptable:i,isIndexable:n}=$s(t);for(const s of e){const e=i(s),o=n(s),r=(o||e)&&t[s];if(e&&(Gn(r)||cl(r))||o&&Cn(r))return!0}return!1}(o,e)){s.$shared=!1;a=Hs(o,i=Gn(i)?i():i,this.createResolver(t,i,r))}for(const t of e)s[t]=a[t];return s}createResolver(t,e,i=[""],n){const{resolver:s}=ll(this._resolverCache,t,i);return Pn(e)?Hs(s,e,void 0,n):s}}function ll(t,e,i){let n=t.get(e);n||(n=new Map,t.set(e,n));const s=i.join();let o=n.get(s);if(!o){o={resolver:Vs(e,i),subPrefixes:i.filter(t=>!t.toLowerCase().includes("hover"))},n.set(s,o)}return o}const cl=t=>Pn(t)&&Object.getOwnPropertyNames(t).some(e=>Gn(t[e]));const hl=["top","bottom","left","right","chartArea"];function dl(t,e){return"top"===t||"bottom"===t||-1===hl.indexOf(t)&&"x"===e}function ul(t,e){return function(i,n){return i[t]===n[t]?i[e]-n[e]:i[t]-n[t]}}function fl(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),jn(i&&i.onComplete,[t],e)}function pl(t){const e=t.chart,i=e.options.animation;jn(i&&i.onProgress,[t],e)}function gl(t){return co()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const ml={},bl=t=>{const e=gl(t);return Object.values(ml).filter(t=>t.canvas===e).pop()};function vl(t,e,i){const n=Object.keys(t);for(const s of n){const n=+s;if(n>=e){const o=t[s];delete t[s],(i>0||n>e)&&(t[n+i]=o)}}}class yl{static defaults=Yo;static instances=ml;static overrides=Vo;static registry=qa;static version="4.6.2";static getChart=bl;static register(...t){qa.add(...t),xl()}static unregister(...t){qa.remove(...t),xl()}constructor(t,e){const i=this.config=new al(e),n=gl(t),s=bl(n);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!co()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?ma:Pa}(n)),this.platform.updateConfig(i);const r=this.platform.acquireContext(n,o.aspectRatio),a=r&&r.canvas,l=a&&a.height,c=a&&a.width;this.id=An(),this.ctx=r,this.canvas=a,this.width=c,this.height=l,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Ua,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let i;return function(...n){return e?(clearTimeout(i),i=setTimeout(t,e,...n)):t.apply(this,n),e}}(t=>this.update(t),o.resizeDelay||0),this._dataChanges=[],ml[this.id]=this,r&&a?(vr.listen(this,"complete",fl),vr.listen(this,"progress",pl),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:n,_aspectRatio:s}=this;return Tn(t)?e&&s?s:n?i/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return qa}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():yo(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Ms(this.canvas,this.ctx),this}stop(){return vr.stop(this),this}resize(t,e){vr.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,n=this.canvas,s=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(n,t,e,s),r=i.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,yo(this,r,!0)&&(this.notifyPlugins("resize",{size:o}),jn(i.onResize,[this,o],this),this.attached&&("attach"!==a&&this.chartArea?this._doResize(a)&&this.render():this.update(a)))}ensureScalesHaveIDs(){Fn(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,n=Object.keys(i).reduce((t,e)=>(t[e]=!1,t),{});let s=[];e&&(s=s.concat(Object.keys(e).map(t=>{const i=e[t],n=Qa(t,i),s="r"===n,o="x"===n;return{options:i,dposition:s?"chartArea":o?"bottom":"left",dtype:s?"radialLinear":o?"category":"linear"}}))),Fn(s,e=>{const s=e.options,o=s.id,r=Qa(o,s),a=In(s.type,e.dtype);void 0!==s.position&&dl(s.position,r)===dl(e.dposition)||(s.position=e.dposition),n[o]=!0;let l=null;if(o in i&&i[o].type===a)l=i[o];else{l=new(qa.getScale(a))({id:o,type:a,ctx:this.ctx,chart:this}),i[l.id]=l}l.init(s,t)}),Fn(n,(t,e)=>{t||delete i[e]}),Fn(i,t=>{pa.configure(this,t,t.options),pa.addBox(this,t)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((t,e)=>t.index-e.index),i>e){for(let t=e;te.length&&delete this._stacks,t.forEach((t,i)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,n;for(this._removeUnreferencedMetasets(),i=0,n=e.length;i{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ul("z","_idx"));const{_active:r,_lastEvent:a}=this;a?this._eventHandler(a,!0):r.length&&this._updateHoverStyles(r,r,!0),this.render()}_updateScales(){Fn(this.scales,t=>{pa.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);Kn(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:n,count:s}of e){vl(t,n,"_removeElements"===i?-s:s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),n=i(0);for(let t=1;tt.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;pa.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],Fn(this.boxes,t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i={meta:t,index:t.index,cancelable:!0},n=mr(this,t);!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(n&&As(e,n),t.controller.draw(),n&&Ts(e),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(t){return Es(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,n){const s=ea.modes[e];return"function"==typeof s?s(this,t,i,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let n=i.filter(t=>t&&t._dataset===e).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(n)),n}getContext(){return this.$context||(this.$context=sr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const n=i?"show":"hide",s=this.getDatasetMeta(t),o=s.controller._resolveAnimations(void 0,n);Jn(e)?(s.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(s,{visible:i}),this.update(e=>e.datasetIndex===t?n:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),vr.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,i,n),t[i]=n},n=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};Fn(this.options.events,t=>i(t,n))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,n)=>{e.addEventListener(this,i,n),t[i]=n},n=(i,n)=>{t[i]&&(e.removeEventListener(this,i,n),delete t[i])},s=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const r=()=>{n("attach",r),this.attached=!0,this.resize(),i("resize",s),i("detach",o)};o=()=>{this.attached=!1,n("resize",s),this._stop(),this._resize(0,0),i("attach",r)},e.isAttached(this.canvas)?r():o()}unbindEvents(){Fn(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},Fn(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const n=i?"set":"remove";let s,o,r,a;for("dataset"===e&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+n+"DatasetHoverStyle"]()),r=0,a=t.length;r{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}).filter(({element:t})=>t);!zn(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return 1===this._plugins._cache.filter(e=>e.plugin.id===t).length}_updateHoverStyles(t,e,i){const n=this.options.hover,s=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),o=s(e,t),r=i?t:s(t,e);o.length&&this.updateHoverStyle(o,n.mode,!1),r.length&&n.mode&&this.updateHoverStyle(r,n.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,n))return;const s=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,n),(s||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:n=[],options:s}=this,o=e,r=this._getActiveElements(t,n,i,o),a=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,i,n){return i&&"mouseout"!==t.type?n?e:t:null}(t,this._lastEvent,i,a);i&&(this._lastEvent=null,jn(s.onHover,[t,r,this],this),a&&jn(s.onClick,[t,r,this],this));const c=!zn(r,n);return(c||e)&&(this._active=r,this._updateHoverStyles(r,n,e)),this._lastEvent=l,c}_getActiveElements(t,e,i,n){if("mouseout"===t.type)return[];if(!i)return e;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,n)}}function xl(){return Fn(yl.instances,t=>t._plugins.invalidate())}function _l(t,e,i,n){const s=Qo(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const o=(i-e)/2,r=Math.min(o,n*e/2),a=t=>{const e=(i-Math.min(o,t))*n/2;return ys(t,0,Math.min(o,e))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:ys(s.innerStart,0,r),innerEnd:ys(s.innerEnd,0,r)}}function wl(t,e,i,n){return{x:i+t*Math.cos(e),y:n+t*Math.sin(e)}}function kl(t,e,i,n,s,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:h}=e,{spacingMode:d="angular"}=e.options,u=s-l;if(o&&e.options.selfJoin&&Math.abs(u)>=Qn-1e-4)return void function(t,e,i,n){const{x:s,y:o,startAngle:r,pixelMargin:a,innerRadius:l}=e,c=Math.max(e.outerRadius+n+i-a,0),h=l>0?l+n+i+a:0;t.beginPath(),t.arc(s,o,c,r,r+Qn),h>0&&(t.moveTo(s+Math.cos(r)*h,o+Math.sin(r)*h),t.arc(s,o,h,r+Qn,r,!0)),t.closePath()}(t,e,i,n);const f=Math.max(e.outerRadius+n+i-c,0);let p=h>0?h+n+i+c:0,g=0,m=0;const b=f>0?Math.max(.001,u*f-i/Xn)/f:.001,v=(u-b)/2;if(n){const t=((h>0?h-n:0)+(f>0?f-n:0))/2,e=(u-(0!==t?u*t/(t+n):u))/2,i=t>0?Math.asin(Math.min(1,n/t)):0,s=Math.max(0,b/2-.001),o=Math.sin(s);if("parallel"===d){if(0===p&&o>0){const t=n/o,e=Math.max(0,f-.001);p=Math.min(t,e)}const t=Math.min(f>0?f*o:Number.POSITIVE_INFINITY,p>0?p*o:Number.POSITIVE_INFINITY),e=Math.min(n,t);g=f>0?Math.asin(Math.min(1,e/f)):Math.min(s,i),m=p>0?Math.asin(Math.min(1,e/p)):g}else"proportional"===d?(g=Math.min(s,e),m=Math.min(s,e)):(g=Math.min(s,i),m=Math.min(s,i))}const y=l+v+g,x=s-v-g,_=l+v+m,w=s-v-m,k=Math.min(x-y,w-_),{outerStart:M,outerEnd:S,innerStart:O,innerEnd:E}=_l(e,p,f,k),A=f-M,T=f-S,C=y+M/A,P=x-S/T,L=p+O,D=p+E,I=_+O/L,R=w-E/D;if(t.beginPath(),o){const e=(C+P)/2;if(t.arc(r,a,f,C,e),t.arc(r,a,f,e,P),S>0){const e=wl(T,P,r,a);t.arc(e.x,e.y,S,P,x+is)}const i=wl(D,w,r,a);if(t.lineTo(i.x,i.y),E>0){const e=wl(D,R,r,a);t.arc(e.x,e.y,E,w+is,R+Math.PI)}const n=(w-E/p+(_+O/p))/2;if(t.arc(r,a,p,w-E/p,n,!0),t.arc(r,a,p,n,_+O/p,!0),O>0){const e=wl(L,I,r,a);t.arc(e.x,e.y,O,I+Math.PI,_-is)}const s=wl(A,y,r,a);if(t.lineTo(s.x,s.y),M>0){const e=wl(A,C,r,a);t.arc(e.x,e.y,M,y-is,C)}}else{t.moveTo(r,a);const e=Math.cos(C)*f+r,i=Math.sin(C)*f+a;t.lineTo(e,i);const n=Math.cos(P)*f+r,s=Math.sin(P)*f+a;t.lineTo(n,s)}t.closePath()}function Ml(t,e,i,n,s){const{fullCircles:o,startAngle:r,circumference:a,options:l}=e,{borderWidth:c,borderJoinStyle:h,borderDash:d,borderDashOffset:u,borderRadius:f}=l,p="inner"===l.borderAlign;if(!c)return;t.setLineDash(d||[]),t.lineDashOffset=u,p?(t.lineWidth=2*c,t.lineJoin=h||"round"):(t.lineWidth=c,t.lineJoin=h||"bevel");let g=e.endAngle;const m=Math.abs(g-r)>=Qn-1e-4;if(o){kl(t,e,i,n,g,s);for(let e=0;es?(c=s/l,t.arc(o,r,l,i+c,n-c,!0)):t.arc(o,r,s,i+is,n-is),t.closePath(),t.clip()}(t,e,g);!(m&&e.innerRadius>0)&&l.selfJoin&&g-r>=Xn&&0===f&&"miter"!==h&&function(t,e,i){const{startAngle:n,x:s,y:o,outerRadius:r,innerRadius:a,options:l}=e,{borderWidth:c,borderJoinStyle:h}=l,d=Math.min(c/r,bs(n-i));if(t.beginPath(),t.arc(s,o,r-c/2,n+d/2,i-d/2),a>0){const e=Math.min(c/a,bs(n-i));t.arc(s,o,a+c/2,i-e/2,n+e/2,!0)}else{const e=Math.min(c/2,r*bs(n-i));if("round"===h)t.arc(s,o,e,i-Xn/2,n+Xn/2,!0);else if("bevel"===h){const r=2*e*e,a=-r*Math.cos(i+Xn/2)+s,l=-r*Math.sin(i+Xn/2)+o,c=r*Math.cos(n+Xn/2)+s,h=r*Math.sin(n+Xn/2)+o;t.lineTo(a,l),t.lineTo(c,h)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}(t,e,g),o||(kl(t,e,i,n,g,s),t.stroke())}function Sl(t,e,i=e){t.lineCap=In(i.borderCapStyle,e.borderCapStyle),t.setLineDash(In(i.borderDash,e.borderDash)),t.lineDashOffset=In(i.borderDashOffset,e.borderDashOffset),t.lineJoin=In(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=In(i.borderWidth,e.borderWidth),t.strokeStyle=In(i.borderColor,e.borderColor)}function Ol(t,e,i){t.lineTo(i.x,i.y)}function El(t,e,i={}){const n=t.length,{start:s=0,end:o=n-1}=i,{start:r,end:a}=e,l=Math.max(s,r),c=Math.min(o,a),h=sa&&o>a;return{count:n,start:l,loop:e.loop,ilen:c(r+(c?a-t:t))%o,y=()=>{f!==p&&(t.lineTo(m,p),t.lineTo(m,f),t.lineTo(m,g))};for(l&&(d=s[v(0)],t.moveTo(d.x,d.y)),h=0;h<=a;++h){if(d=s[v(h)],d.skip)continue;const e=d.x,i=d.y,n=0|e;n===u?(ip&&(p=i),m=(b*m+e)/++b):(y(),t.lineTo(e,i),u=n,b=0,f=p=i),g=i}y()}function Cl(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i)?Tl:Al}const Pl="function"==typeof Path2D;function Ll(t,e,i,n){Pl&&!e.options.segment?function(t,e,i,n){let s=e._path;s||(s=e._path=new Path2D,e.path(s,i,n)&&s.closePath()),Sl(t,e.options),t.stroke(s)}(t,e,i,n):function(t,e,i,n){const{segments:s,options:o}=e,r=Cl(e);for(const a of s)Sl(t,o,a.style),t.beginPath(),r(t,e,a,{start:i,end:i+n-1})&&t.closePath(),t.stroke()}(t,e,i,n)}class Dl extends La{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const n=i.spanGaps?this._loop:this._fullLoop;lo(this._points,i,t,n,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const i=t.points,n=t.options.spanGaps,s=i.length;if(!s)return[];const o=!!t._loop,{start:r,end:a}=function(t,e,i,n){let s=0,o=e-1;if(i&&!n)for(;ss&&t[o%e].skip;)o--;return o%=e,{start:s,end:o}}(i,s,o,n);return ur(t,!0===n?[{start:r,end:a,loop:o}]:function(t,e,i,n){const s=t.length,o=[];let r,a=e,l=t[e];for(r=e+1;r<=i;++r){const i=t[r%s];i.skip||i.stop?l.skip||(n=!1,o.push({start:e%s,end:(r-1)%s,loop:n}),e=a=i.stop?r:null):(a=r,l.skip&&(e=r)),l=i}return null!==a&&o.push({start:e%s,end:a%s,loop:n}),o}(i,r,a"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;circular;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,this.circular=!1,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.getProps(["x","y"],i),{angle:s,distance:o}=ps(n,{x:t,y:e}),{startAngle:r,endAngle:a,innerRadius:l,outerRadius:c,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),d=(this.options.spacing+this.options.borderWidth)/2,u=In(h,a-r),f=vs(s,r,a)&&r!==a,p=u>=Qn||f,g=xs(o,l+d,c+d);return p&&g}getCenterPoint(t){const{x:e,y:i,startAngle:n,endAngle:s,innerRadius:o,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:a,spacing:l}=this.options,c=(n+s)/2,h=(o+r+l+a)/2;return{x:e+Math.cos(c)*h,y:i+Math.sin(c)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,n=(e.offset||0)/4,s=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>Qn?Math.floor(i/Qn):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();const r=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(r)*n,Math.sin(r)*n);const a=n*(1-Math.sin(Math.min(Xn,i||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,i,n,s){const{fullCircles:o,startAngle:r,circumference:a}=e;let l=e.endAngle;if(o){kl(t,e,i,n,l,s);for(let e=0;et.replace("rgb(","rgba(").replace(")",", 0.5)"));function $l(t){return Vl[t%Vl.length]}function ql(t){return Hl[t%Hl.length]}function Ul(t){let e=0;return(i,n)=>{const s=t.getDatasetMeta(n).controller;s instanceof Hr?e=function(t,e){return t.backgroundColor=t.data.map(()=>$l(e++)),e}(i,e):s instanceof $r?e=function(t,e){return t.backgroundColor=t.data.map(()=>ql(e++)),e}(i,e):s&&(e=function(t,e){return t.borderColor=$l(e),t.backgroundColor=ql(e),++e}(i,e))}}function Yl(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}var Jl={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,i){if(!i.enabled)return;const{data:{datasets:n},options:s}=t.config,{elements:o}=s,r=Yl(n)||(a=s)&&(a.borderColor||a.backgroundColor)||o&&Yl(o)||"rgba(0,0,0,0.1)"!==Yo.borderColor||"rgba(0,0,0,0.1)"!==Yo.backgroundColor;var a;if(!i.forceOverride&&r)return;const l=Ul(t);n.forEach(l)}};function Gl(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function Kl(t){t.data.datasets.forEach(t=>{Gl(t)})}var Xl={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void Kl(t);const n=t.width;t.data.datasets.forEach((e,s)=>{const{_data:o,indexAxis:r}=e,a=t.getDatasetMeta(s),l=o||e.data;if("y"===nr([r,t.options.indexAxis]))return;if(!a.controller.supportsDecimation)return;const c=t.scales[a.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(t.options.parsing)return;let{start:h,count:d}=function(t,e){const i=e.length;let n,s=0;const{iScale:o}=t,{min:r,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(s=ys(Fs(e,o.axis,r).lo,0,i-1)),n=c?ys(Fs(e,o.axis,a).hi+1,s,i)-s:i-s,{start:s,count:n}}(a,l);if(d<=(i.threshold||4*n))return void Gl(e);let u;switch(Tn(o)&&(e._data=l,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":u=function(t,e,i,n,s){const o=s.samples||n;if(o>=i)return t.slice(e,e+i);const r=[],a=(i-2)/(o-2);let l=0;const c=e+i-1;let h,d,u,f,p,g=e;for(r[l++]=t[g],h=0;hu&&(u=f,d=t[n],p=n);r[l++]=d,g=p}return r[l++]=t[c],r}(l,h,d,n,i);break;case"min-max":u=function(t,e,i,n){let s,o,r,a,l,c,h,d,u,f,p=0,g=0;const m=[],b=e+i-1,v=t[e].x,y=t[b].x-v;for(s=e;sf&&(f=a,h=s),p=(g*p+o.x)/++g;else{const i=s-1;if(!Tn(c)&&!Tn(h)){const e=Math.min(c,h),n=Math.max(c,h);e!==d&&e!==i&&m.push({...t[e],x:p}),n!==d&&n!==i&&m.push({...t[n],x:p})}s>0&&i!==d&&m.push(t[i]),m.push(o),l=e,g=0,u=f=a,c=h=d=s}}return m}(l,h,d,n);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=u})},destroy(t){Kl(t)}};function Ql(t,e,i,n){if(n)return;let s=e[t],o=i[t];return"angle"===t&&(s=bs(s),o=bs(o)),{property:t,start:s,end:o}}function Zl(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function tc(t,e,i,n){return t&&e?n(t[i],e[i]):t?t[i]:e?e[i]:0}function ec(t,e){let i=[],n=!1;return Cn(t)?(n=!0,i=t):i=function(t,e){const{x:i=null,y:n=null}=t||{},s=e.points,o=[];return e.segments.forEach(({start:t,end:e})=>{e=Zl(t,e,s);const r=s[t],a=s[e];null!==n?(o.push({x:r.x,y:n}),o.push({x:a.x,y:n})):null!==i&&(o.push({x:i,y:r.y}),o.push({x:i,y:a.y}))}),o}(t,e),i.length?new Dl({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function ic(t){return t&&!1!==t.fill}function nc(t,e,i){let n=t[e].fill;const s=[e];let o;if(!i)return n;for(;!1!==n&&-1===s.indexOf(n);){if(!Ln(n))return n;if(o=t[n],!o)return!1;if(o.visible)return n;s.push(n),n=o.fill}return!1}function sc(t,e,i){const n=function(t){const e=t.options,i=e.fill;let n=In(i&&i.target,i);void 0===n&&(n=!!e.backgroundColor);if(!1===n||null===n)return!1;if(!0===n)return"origin";return n}(t);if(Pn(n))return!isNaN(n.value)&&n;let s=parseFloat(n);return Ln(s)&&Math.floor(s)===s?function(t,e,i,n){"-"!==t&&"+"!==t||(i=e+i);if(i===e||i<0||i>=n)return!1;return i}(n[0],e,s,i):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function oc(t,e,i){const n=[];for(let s=0;s=0;--e){const i=s[e].$filler;i&&(i.line.updateControlPoints(o,i.axis),n&&i.fill&&cc(t.ctx,i,o))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const n=t.getSortedVisibleDatasetMetas();for(let e=n.length-1;e>=0;--e){const i=n[e].$filler;ic(i)&&cc(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const n=e.meta.$filler;ic(n)&&"beforeDatasetDraw"===i.drawTime&&cc(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const mc=(t,e)=>{let{boxHeight:i=e,boxWidth:n=e}=t;return t.usePointStyle&&(i=Math.min(i,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:i,itemHeight:Math.max(e,i)}};class bc extends La{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=jn(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,i)=>t.sort(e,i,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,n=ir(i.font),s=n.size,o=this._computeTitleHeight(),{boxWidth:r,itemHeight:a}=mc(i,s);let l,c;e.font=n.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(o,s,r,a)+10):(c=this.maxHeight,l=this._fitCols(o,n,r,a)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,n){const{ctx:s,maxWidth:o,options:{labels:{padding:r}}}=this,a=this.legendHitBoxes=[],l=this.lineWidths=[0],c=n+r;let h=t;s.textAlign="left",s.textBaseline="middle";let d=-1,u=-c;return this.legendItems.forEach((t,f)=>{const p=i+e/2+s.measureText(t.text).width;(0===f||l[l.length-1]+p+2*r>o)&&(h+=c,l[l.length-(f>0?0:1)]=0,u+=c,d++),a[f]={left:0,top:u,row:d,width:p,height:n},l[l.length-1]+=p+r}),h}_fitCols(t,e,i,n){const{ctx:s,maxHeight:o,options:{labels:{padding:r}}}=this,a=this.legendHitBoxes=[],l=this.columnSizes=[],c=o-t;let h=r,d=0,u=0,f=0,p=0;return this.legendItems.forEach((t,o)=>{const{itemWidth:g,itemHeight:m}=function(t,e,i,n,s){const o=function(t,e,i,n){const s=t.text,o=s&&"string"!=typeof s?s.reduce((t,e)=>Math.max(t,n.measureText(e).width),0):n.measureText(s).width;return e+i.size/2+o}(n,t,e,i),r=function(t,e,i){let n=t;"string"!=typeof e.text&&(n=vc(e,i));return n}(s,n,e.lineHeight);return{itemWidth:o,itemHeight:r}}(i,e,s,t,n);o>0&&u+m+2*r>c&&(h+=d+r,l.push({width:d,height:u}),f+=d+r,p++,d=u=0),a[o]={left:f,top:u,col:p,width:g,height:m},d=Math.max(d,g),u+=m+r}),h+=d,l.push({width:d,height:u}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:n},rtl:s}}=this,o=or(s,this.left,this.width);if(this.isHorizontal()){let s=0,r=To(i,this.left+n,this.right-this.lineWidths[s]);for(const a of e)s!==a.row&&(s=a.row,r=To(i,this.left+n,this.right-this.lineWidths[s])),a.top+=this.top+t+n,a.left=o.leftForLtr(o.x(r),a.width),r+=a.width+n}else{let s=0,r=To(i,this.top+t+n,this.bottom-this.columnSizes[s].height);for(const a of e)a.col!==s&&(s=a.col,r=To(i,this.top+t+n,this.bottom-this.columnSizes[s].height)),a.top=r,a.left+=this.left+n,a.left=o.leftForLtr(o.x(a.left),a.width),r+=a.height+n}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;As(t,this),this._draw(),Ts(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:n}=this,{align:s,labels:o}=t,r=Yo.color,a=or(t.rtl,this.left,this.width),l=ir(o.font),{padding:c}=o,h=l.size,d=h/2;let u;this.drawTitle(),n.textAlign=a.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=l.string;const{boxWidth:f,boxHeight:p,itemHeight:g}=mc(o,h),m=this.isHorizontal(),b=this._computeTitleHeight();u=m?{x:To(s,this.left+c,this.right-i[0]),y:this.top+c+b,line:0}:{x:this.left+c,y:To(s,this.top+b+c,this.bottom-e[0].height),line:0},rr(this.ctx,t.textDirection);const v=g+c;this.legendItems.forEach((y,x)=>{n.strokeStyle=y.fontColor,n.fillStyle=y.fontColor;const _=n.measureText(y.text).width,w=a.textAlign(y.textAlign||(y.textAlign=o.textAlign)),k=f+d+_;let M=u.x,S=u.y;a.setWidth(this.width),m?x>0&&M+k+c>this.right&&(S=u.y+=v,u.line++,M=u.x=To(s,this.left+c,this.right-i[u.line])):x>0&&S+v>this.bottom&&(M=u.x=M+e[u.line].width+c,u.line++,S=u.y=To(s,this.top+b+c,this.bottom-e[u.line].height));if(function(t,e,i){if(isNaN(f)||f<=0||isNaN(p)||p<0)return;n.save();const s=In(i.lineWidth,1);if(n.fillStyle=In(i.fillStyle,r),n.lineCap=In(i.lineCap,"butt"),n.lineDashOffset=In(i.lineDashOffset,0),n.lineJoin=In(i.lineJoin,"miter"),n.lineWidth=s,n.strokeStyle=In(i.strokeStyle,r),n.setLineDash(In(i.lineDash,[])),o.usePointStyle){const r={radius:p*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:s},l=a.xPlus(t,f/2);Os(n,r,l,e+d,o.pointStyleWidth&&f)}else{const o=e+Math.max((h-p)/2,0),r=a.leftForLtr(t,f),l=tr(i.borderRadius);n.beginPath(),Object.values(l).some(t=>0!==t)?Rs(n,{x:r,y:o,w:f,h:p,radius:l}):n.rect(r,o,f,p),n.fill(),0!==s&&n.stroke()}n.restore()}(a.x(M),S,y),M=((t,e,i,n)=>t===(n?"left":"right")?i:"center"===t?(e+i)/2:e)(w,M+f+d,m?M+k:this.right,t.rtl),function(t,e,i){Is(n,i.text,t,e+g/2,l,{strikethrough:i.hidden,textAlign:a.textAlign(i.textAlign)})}(a.x(M),S,y),m)u.x+=k+c;else if("string"!=typeof y.text){const t=l.lineHeight;u.y+=vc(y,t)+c}else u.y+=v}),ar(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=ir(e.font),n=er(e.padding);if(!e.display)return;const s=or(t.rtl,this.left,this.width),o=this.ctx,r=e.position,a=i.size/2,l=n.top+a;let c,h=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,h=To(t.align,h,this.right-d);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);c=l+To(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=To(r,h,h+d);o.textAlign=s.textAlign(Ao(r)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=i.string,Is(o,e.text,u,c,i)}_computeTitleHeight(){const t=this.options.title,e=ir(t.font),i=er(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,n,s;if(xs(t,this.left,this.right)&&xs(e,this.top,this.bottom))for(s=this.legendHitBoxes,i=0;it.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:n,textAlign:s,color:o,useBorderRadius:r,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{const l=t.controller.getStyle(i?0:void 0),c=er(l.borderWidth),h=n||l.pointStyle,d=i&&"line"===h?t.controller.getStyle(void 0):l;return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:h,rotation:l.rotation,textAlign:s||l.textAlign,borderRadius:r&&(a||l.borderRadius),datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class xc extends La{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const n=Cn(i.text)?i.text.length:1;this._padding=er(i.padding);const s=n*ir(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:n,right:s,options:o}=this,r=o.align;let a,l,c,h=0;return this.isHorizontal()?(l=To(r,i,s),c=e+t,a=s-i):("left"===o.position?(l=i+t,c=To(r,n,e),h=-.5*Xn):(l=s-t,c=To(r,e,n),h=.5*Xn),a=n-e),{titleX:l,titleY:c,maxWidth:a,rotation:h}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=ir(e.font),n=i.lineHeight/2+this._padding.top,{titleX:s,titleY:o,maxWidth:r,rotation:a}=this._drawArgs(n);Is(t,e.text,0,0,i,{color:e.color,maxWidth:r,rotation:a,textAlign:Ao(e.align),textBaseline:"middle",translation:[s,o]})}}var _c={id:"title",_element:xc,start(t,e,i){!function(t,e){const i=new xc({ctx:t.ctx,options:e,chart:t});pa.configure(t,i,e),pa.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;pa.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const n=t.titleBlock;pa.configure(t,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const wc=new WeakMap;var kc={id:"subtitle",start(t,e,i){const n=new xc({ctx:t.ctx,options:i,chart:t});pa.configure(t,n,i),pa.addBox(t,n),wc.set(t,n)},stop(t){pa.removeBox(t,wc.get(t)),wc.delete(t)},beforeUpdate(t,e,i){const n=wc.get(t);pa.configure(t,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Mc={average(t){if(!t.length)return!1;let e,i,n=new Set,s=0,o=0;for(e=0,i=t.length;et+e)/n.size,y:s/o}},nearest(t,e){if(!t.length)return!1;let i,n,s,o=e.x,r=e.y,a=Number.POSITIVE_INFINITY;for(i=0,n=t.length;i-1?t.split("\n"):t}function Ec(t,e){const{element:i,datasetIndex:n,index:s}=e,o=t.getDatasetMeta(n).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:t,label:r,parsed:o.getParsed(s),raw:t.data.datasets[n].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:n,element:i}}function Ac(t,e){const i=t.chart.ctx,{body:n,footer:s,title:o}=t,{boxWidth:r,boxHeight:a}=e,l=ir(e.bodyFont),c=ir(e.titleFont),h=ir(e.footerFont),d=o.length,u=s.length,f=n.length,p=er(e.padding);let g=p.height,m=0,b=n.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);if(b+=t.beforeBody.length+t.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),b){g+=f*(e.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(b-f)*l.lineHeight+(b-1)*e.bodySpacing}u&&(g+=e.footerMarginTop+u*h.lineHeight+(u-1)*e.footerSpacing);let v=0;const y=function(t){m=Math.max(m,i.measureText(t).width+v)};return i.save(),i.font=c.string,Fn(t.title,y),i.font=l.string,Fn(t.beforeBody.concat(t.afterBody),y),v=e.displayColors?r+2+e.boxPadding:0,Fn(n,t=>{Fn(t.before,y),Fn(t.lines,y),Fn(t.after,y)}),v=0,i.font=h.string,Fn(t.footer,y),i.restore(),m+=p.width,{width:m,height:g}}function Tc(t,e,i,n){const{x:s,width:o}=i,{width:r,chartArea:{left:a,right:l}}=t;let c="center";return"center"===n?c=s<=(a+l)/2?"left":"right":s<=o/2?c="left":s>=r-o/2&&(c="right"),function(t,e,i,n){const{x:s,width:o}=n,r=i.caretSize+i.caretPadding;return"left"===t&&s+o+r>e.width||"right"===t&&s-o-r<0||void 0}(c,t,e,i)&&(c="center"),c}function Cc(t,e,i){const n=i.yAlign||e.yAlign||function(t,e){const{y:i,height:n}=e;return it.height-n/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||Tc(t,e,i,n),yAlign:n}}function Pc(t,e,i,n){const{caretSize:s,caretPadding:o,cornerRadius:r}=t,{xAlign:a,yAlign:l}=i,c=s+o,{topLeft:h,topRight:d,bottomLeft:u,bottomRight:f}=tr(r);let p=function(t,e){let{x:i,width:n}=t;return"right"===e?i-=n:"center"===e&&(i-=n/2),i}(e,a);const g=function(t,e,i){let{y:n,height:s}=t;return"top"===e?n+=i:n-="bottom"===e?s+i:s/2,n}(e,l,c);return"center"===l?"left"===a?p+=c:"right"===a&&(p-=c):"left"===a?p-=Math.max(h,u)+s:"right"===a&&(p+=Math.max(d,f)+s),{x:ys(p,0,n.width-e.width),y:ys(g,0,n.height-e.height)}}function Lc(t,e,i){const n=er(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function Dc(t){return Sc([],Oc(t))}function Ic(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}const Rc={beforeTitle:En,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,n=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex{const e={before:[],lines:[],after:[]},s=Ic(i,t);Sc(e.before,Oc(jc(s,"beforeLabel",this,t))),Sc(e.lines,jc(s,"label",this,t)),Sc(e.after,Oc(jc(s,"afterLabel",this,t))),n.push(e)}),n}getAfterBody(t,e){return Dc(jc(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:i}=e,n=jc(i,"beforeFooter",this,t),s=jc(i,"footer",this,t),o=jc(i,"afterFooter",this,t);let r=[];return r=Sc(r,Oc(n)),r=Sc(r,Oc(s)),r=Sc(r,Oc(o)),r}_createItems(t){const e=this._active,i=this.chart.data,n=[],s=[],o=[];let r,a,l=[];for(r=0,a=e.length;rt.filter(e,n,s,i))),t.itemSort&&(l=l.sort((e,n)=>t.itemSort(e,n,i))),Fn(l,e=>{const i=Ic(t.callbacks,e);n.push(jc(i,"labelColor",this,e)),s.push(jc(i,"labelPointStyle",this,e)),o.push(jc(i,"labelTextColor",this,e))}),this.labelColors=n,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),n=this._active;let s,o=[];if(n.length){const t=Mc[i.position].call(this,n,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const e=this._size=Ac(this,i),r=Object.assign({},t,e),a=Cc(this.chart,i,r),l=Pc(i,r,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,s={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(s={opacity:0});this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,n){const s=this.getCaretPosition(t,i,n);e.lineTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.lineTo(s.x3,s.y3)}getCaretPosition(t,e,i){const{xAlign:n,yAlign:s}=this,{caretSize:o,cornerRadius:r}=i,{topLeft:a,topRight:l,bottomLeft:c,bottomRight:h}=tr(r),{x:d,y:u}=t,{width:f,height:p}=e;let g,m,b,v,y,x;return"center"===s?(y=u+p/2,"left"===n?(g=d,m=g-o,v=y+o,x=y-o):(g=d+f,m=g+o,v=y-o,x=y+o),b=g):(m="left"===n?d+Math.max(a,c)+o:"right"===n?d+f-Math.max(l,h)-o:this.caretX,"top"===s?(v=u,y=v-o,g=m-o,b=m+o):(v=u+p,y=v+o,g=m+o,b=m-o),x=v),{x1:g,x2:m,x3:b,y1:v,y2:y,y3:x}}drawTitle(t,e,i){const n=this.title,s=n.length;let o,r,a;if(s){const l=or(i.rtl,this.x,this.width);for(t.x=Lc(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",o=ir(i.titleFont),r=i.titleSpacing,e.fillStyle=i.titleColor,e.font=o.string,a=0;a0!==t)?(t.beginPath(),t.fillStyle=s.multiKeyBackground,Rs(t,{x:e,y:f,w:l,h:a,radius:r}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),Rs(t,{x:i,y:f+1,w:l-2,h:a-2,radius:r}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(e,f,l,a),t.strokeRect(e,f,l,a),t.fillStyle=o.backgroundColor,t.fillRect(i,f+1,l-2,a-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:n}=this,{bodySpacing:s,bodyAlign:o,displayColors:r,boxHeight:a,boxWidth:l,boxPadding:c}=i,h=ir(i.bodyFont);let d=h.lineHeight,u=0;const f=or(i.rtl,this.x,this.width),p=function(i){e.fillText(i,f.x(t.x+u),t.y+d/2),t.y+=d+s},g=f.textAlign(o);let m,b,v,y,x,_,w;for(e.textAlign=o,e.textBaseline="middle",e.font=h.string,t.x=Lc(this,g,i),e.fillStyle=i.bodyColor,Fn(this.beforeBody,p),u=r&&"right"!==g?"center"===o?l/2+c:l+2+c:0,y=0,_=n.length;y<_;++y){for(m=n[y],b=this.labelTextColors[y],e.fillStyle=b,Fn(m.before,p),v=m.lines,r&&v.length&&(this._drawColorBox(e,t,y,f,i),d=Math.max(h.lineHeight,a)),x=0,w=v.length;x0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,n=i&&i.x,s=i&&i.y;if(n||s){const i=Mc[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=Ac(this,t),r=Object.assign({},i,this._size),a=Cc(e,t,r),l=Pc(t,r,a,e);n._to===l.x&&s._to===l.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=er(e.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&r&&(t.save(),t.globalAlpha=i,this.drawBackground(s,t,n,e),rr(t,e.textDirection),s.y+=o.top,this.drawTitle(s,t,e),this.drawBody(s,t,e),this.drawFooter(s,t,e),ar(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,n=t.map(({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}).filter(({element:t})=>t),s=!zn(i,n),o=this._positionChanged(n,e);(s||o)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,s=this._active||[],o=this._getActiveElements(t,s,e,i),r=this._positionChanged(o,t),a=e||!zn(o,s)||r;return a&&(this._active=o,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),a}_getActiveElements(t,e,i,n){const s=this.options;if("mouseout"===t.type)return[];if(!n)return e.filter(t=>{const e=this.chart.data.datasets[t.datasetIndex]&&this.chart.getDatasetMeta(t.datasetIndex).controller;return e&&void 0!==e.getParsed(t.index)});const o=this.chart.getElementsAtEventForMode(t,s.mode,s,i);return s.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:i,caretY:n,options:s}=this,o=Mc[s.position].call(this,t,e);return!1!==o&&(i!==o.x||n!==o.y)}}var zc={id:"tooltip",_element:Fc,positioners:Mc,afterInit(t,e,i){i&&(t.tooltip=new Fc({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...i,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Rc},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Bc=Object.freeze({__proto__:null,Colors:Jl,Decimation:Xl,Filler:gc,Legend:yc,SubTitle:kc,Title:_c,Tooltip:zc});function Nc(t,e,i,n){const s=t.indexOf(e);if(-1===s)return((t,e,i,n)=>("string"==typeof e?(i=t.push(e)-1,n.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,n);return s!==t.lastIndexOf(e)?i:s}function Wc(t){const e=this.getLabels();return t>=0&&tf&&(M=ls(k*M/f/u)*u),Tn(a)||(x=Math.pow(10,a),M=Math.ceil(M*x)/x),"ticks"===n){const t=Math.pow(10,fs(M));_=Math.round(Math.floor(p/M)*M*t)/t,w=Math.round(Math.ceil(g/M)*M*t)/t}else _=p,w=g;m&&b&&s&&function(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}((r-o)/s,M/1e3)?(k=Math.round(Math.min((r-o)/M,c)),M=(r-o)/k,_=o,w=r):v?(_=m?o:_,w=b?r:w,k=l-1,M=(w-_)/k):(k=(w-_)/M,k=as(k,Math.round(k),M/1e3)?Math.round(k):Math.ceil(k));const S=Math.max(fs(M),fs(_));x=Math.pow(10,Tn(a)?S:a),_=Math.round(_*x)/x,w=Math.round(w*x)/x;let O=0;for(m&&(d&&_!==o?(i.push({value:o}),_r)break;i.push({value:t})}return b&&d&&w!==r?i.length&&as(i[i.length-1].value,r,Hc(r,y,t))?i[i.length-1].value=r:i.push({value:r}):b&&w!==r||i.push({value:w}),i}function Hc(t,e,{horizontal:i,minRotation:n}){const s=ds(n),o=(i?Math.sin(s):Math.cos(s))||.001,r=.75*e*(""+t).length;return Math.min(e/o,r)}class $c extends Va{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return Tn(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:n,max:s}=this;const o=t=>n=e?n:t,r=t=>s=i?s:t;if(t){const t=rs(n),e=rs(s);t<0&&e<0?r(0):t>0&&e>0&&o(0)}if(n===s){let e=0===s?1:Math.abs(.05*s);r(s+e),t||o(n-e)}this.min=n,this.max=s}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:n}=t;return n?(e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const n=Vc({maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&hs(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const n=(i-e)/Math.max(t.length-1,1)/2;e-=n,i+=n}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return jo(t,this.chart.options.locale,this.options.ticks.format)}}class qc extends $c{static id="linear";static defaults={ticks:{callback:Wo.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Ln(t)?t:0,this.max=Ln(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=ds(this.options.ticks.minRotation),n=(t?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,s.lineHeight/n))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const Uc=t=>Math.floor(os(t)),Yc=(t,e)=>Math.pow(10,Uc(t)+e);function Jc(t){return 1===t/Math.pow(10,Uc(t))}function Gc(t,e,i){const n=Math.pow(10,i),s=Math.floor(t/n);return Math.ceil(e/n)-s}function Kc(t,{min:e,max:i}){e=Dn(t.min,e);const n=[],s=Uc(e);let o=function(t,e){let i=Uc(e-t);for(;Gc(t,e,i)>10;)i++;for(;Gc(t,e,i)<10;)i--;return Math.min(i,Uc(t))}(e,i),r=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=s>o?Math.pow(10,s):0,c=Math.round((e-l)*r)/r,h=Math.floor((e-l)/a/10)*a*10;let d=Math.floor((c-h)/Math.pow(10,o)),u=Dn(t.min,Math.round((l+h+d*Math.pow(10,o))*r)/r);for(;u=10?d=d<15?15:20:d++,d>=20&&(o++,d=2,r=o>=0?1:r),u=Math.round((l+h+d*Math.pow(10,o))*r)/r;const f=Dn(t.max,u);return n.push({value:f,major:Jc(f),significand:d}),n}class Xc extends Va{static id="logarithmic";static defaults={ticks:{callback:Wo.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=$c.prototype.parse.apply(this,[t,e]);if(0!==i)return Ln(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Ln(t)?Math.max(0,t):null,this.max=Ln(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Ln(this._userMin)&&(this.min=t===Yc(this.min,0)?Yc(this.min,-1):Yc(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,n=this.max;const s=e=>i=t?i:e,o=t=>n=e?n:t;i===n&&(i<=0?(s(1),o(10)):(s(Yc(i,-1)),o(Yc(n,1)))),i<=0&&s(Yc(n,-1)),n<=0&&o(Yc(i,1)),this.min=i,this.max=n}buildTicks(){const t=this.options,e=Kc({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&hs(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":jo(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=os(t),this._valueRange=os(this.max)-os(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(os(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Qc(t){const e=t.ticks;if(e.display&&t.display){const t=er(e.backdropPadding);return In(e.font&&e.font.size,Yo.font.size)+t.height}return 0}function Zc(t,e,i){return i=Cn(i)?i:[i],{w:ws(t,e.string,i),h:i.length*e.lineHeight}}function th(t,e,i,n,s){return t===n||t===s?{start:e-i/2,end:e+i/2}:ts?{start:e-i,end:e}:{start:e,end:e+i}}function eh(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),n=[],s=[],o=t._pointLabels.length,r=t.options.pointLabels,a=r.centerPointLabels?Xn/o:0;for(let l=0;le.r&&(a=(n.end-e.r)/o,t.r=Math.max(t.r,e.r+a)),s.starte.b&&(l=(s.end-e.b)/r,t.b=Math.max(t.b,e.b+l))}function nh(t,e,i){const n=t.drawingArea,{extra:s,additionalAngle:o,padding:r,size:a}=i,l=t.getPointPosition(e,n+s+r,o),c=Math.round(us(bs(l.angle+is))),h=function(t,e,i){90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e);return t}(l.y,a.h,c),d=function(t){if(0===t||180===t)return"center";if(t<180)return"left";return"right"}(c),u=function(t,e,i){"right"===i?t-=e:"center"===i&&(t-=e/2);return t}(l.x,a.w,d);return{visible:!0,x:l.x,y:h,textAlign:d,left:u,top:h,right:u+a.w,bottom:h+a.h}}function sh(t,e){if(!e)return!0;const{left:i,top:n,right:s,bottom:o}=t;return!(Es({x:i,y:n},e)||Es({x:i,y:o},e)||Es({x:s,y:n},e)||Es({x:s,y:o},e))}function oh(t,e,i){const{left:n,top:s,right:o,bottom:r}=i,{backdropColor:a}=e;if(!Tn(a)){const i=tr(e.borderRadius),l=er(e.backdropPadding);t.fillStyle=a;const c=n-l.left,h=s-l.top,d=o-n+l.width,u=r-s+l.height;Object.values(i).some(t=>0!==t)?(t.beginPath(),Rs(t,{x:c,y:h,w:d,h:u,radius:i}),t.fill()):t.fillRect(c,h,d,u)}}function rh(t,e,i,n){const{ctx:s}=t;if(i)s.arc(t.xCenter,t.yCenter,e,0,Qn);else{let i=t.getPointPosition(0,e);s.moveTo(i.x,i.y);for(let o=1;ot,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=er(Qc(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=Ln(t)&&!isNaN(t)?t:0,this.max=Ln(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Qc(this.options))}generateTickLabels(t){$c.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{const i=jn(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){const t=this.options;t.display&&t.pointLabels.display?eh(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,n){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,n))}getIndexAngle(t){return bs(t*(Qn/(this._pointLabels.length||1))+ds(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(Tn(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(Tn(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t=0;s--){const e=t._pointLabelItems[s];if(!e.visible)continue;const o=n.setContext(t.getPointLabelContext(s));oh(i,o,e);const r=ir(o.font),{x:a,y:l,textAlign:c}=e;Is(i,t._pointLabels[s],a,l+r.lineHeight/2,r,{color:o.color,textAlign:c,textBaseline:"middle"})}}(this,o),n.display&&this.ticks.forEach((t,e)=>{if(0!==e||0===e&&this.min<0){a=this.getDistanceFromCenterForValue(t.value);const i=this.getContext(e),r=n.setContext(i),l=s.setContext(i);!function(t,e,i,n,s){const o=t.ctx,r=e.circular,{color:a,lineWidth:l}=e;!r&&!n||!a||!l||i<0||(o.save(),o.strokeStyle=a,o.lineWidth=l,o.setLineDash(s.dash||[]),o.lineDashOffset=s.dashOffset,o.beginPath(),rh(t,i,r,n),o.closePath(),o.stroke(),o.restore())}(this,r,a,o,l)}}),i.display){for(t.save(),r=o-1;r>=0;r--){const n=i.setContext(this.getPointLabelContext(r)),{color:s,lineWidth:o}=n;o&&s&&(t.lineWidth=o,t.strokeStyle=s,t.setLineDash(n.borderDash),t.lineDashOffset=n.borderDashOffset,a=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),l=this.getPointPosition(r,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const n=this.getIndexAngle(0);let s,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((n,r)=>{if(0===r&&this.min>=0&&!e.reverse)return;const a=i.setContext(this.getContext(r)),l=ir(a.font);if(s=this.getDistanceFromCenterForValue(this.ticks[r].value),a.showLabelBackdrop){t.font=l.string,o=t.measureText(n.label).width,t.fillStyle=a.backdropColor;const e=er(a.backdropPadding);t.fillRect(-o/2-e.left,-s-l.size/2-e.top,o+e.width,l.size+e.height)}Is(t,n.label,0,-s,l,{color:a.color,strokeColor:a.textStrokeColor,strokeWidth:a.textStrokeWidth})}),t.restore()}drawTitle(){}}const lh={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ch=Object.keys(lh);function hh(t,e){return t-e}function dh(t,e){if(Tn(e))return null;const i=t._adapter,{parser:n,round:s,isoWeekday:o}=t._parseOpts;let r=e;return"function"==typeof n&&(r=n(r)),Ln(r)||(r="string"==typeof n?i.parse(r,n):i.parse(r)),null===r?null:(s&&(r="week"!==s||!cs(o)&&!0!==o?i.startOf(r,s):i.startOf(r,"isoWeek",o)),+r)}function uh(t,e,i,n){const s=ch.length;for(let o=ch.indexOf(t);o=e?i[n]:i[s]]=!0}}else t[e]=!0}function ph(t,e,i){const n=[],s={},o=e.length;let r,a;for(r=0;r=0&&(e[l].major=!0);return e}(t,n,s,i):n}class gh extends Va{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const i=t.time||(t.time={}),n=this._adapter=new Jr(t.adapters.date);n.init(e),Hn(i.displayFormats,n.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:dh(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:n,max:s,minDefined:o,maxDefined:r}=this.getUserBounds();function a(t){o||isNaN(t.min)||(n=Math.min(n,t.min)),r||isNaN(t.max)||(s=Math.max(s,t.max))}o&&r||(a(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||a(this.getMinMax(!1))),n=Ln(n)&&!isNaN(n)?n:+e.startOf(Date.now(),i),s=Ln(s)&&!isNaN(s)?s:+e.endOf(Date.now(),i)+1,this.min=Math.min(n,s-1),this.max=Math.max(n+1,s)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,n="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const s=this.min,o=function(t,e,i){let n=0,s=t.length;for(;nn&&t[s-1]>i;)s--;return n>0||s=ch.indexOf(i);o--){const i=ch[o];if(lh[i].common&&t._adapter.diff(s,n,i)>=e-1)return i}return ch[i?ch.indexOf(i):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=ch.indexOf(t)+1,i=ch.length;e+t.value))}initOffsets(t=[]){let e,i,n=0,s=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),n=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),s=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=ys(n,0,o),s=ys(s,0,o),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){const t=this._adapter,e=this.min,i=this.max,n=this.options,s=n.time,o=s.unit||uh(s.minUnit,e,i,this._getLabelCapacity(e)),r=In(n.ticks.stepSize,1),a="week"===o&&s.isoWeekday,l=cs(a)||!0===a,c={};let h,d,u=e;if(l&&(u=+t.startOf(u,"isoWeek",a)),u=+t.startOf(u,l?"day":o),t.diff(i,e,o)>1e5*r)throw new Error(e+" and "+i+" are too far apart with stepSize of "+r+" "+o);const f="data"===n.ticks.source&&this.getDataTimestamps();for(h=u,d=0;h+t)}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}format(t,e){const i=this.options.time.displayFormats,n=this._unit,s=e||i[n];return this._adapter.format(t,s)}_tickFormatFunction(t,e,i,n){const s=this.options,o=s.ticks.callback;if(o)return jn(o,[t,e,i],this);const r=s.time.displayFormats,a=this._unit,l=this._majorUnit,c=a&&r[a],h=l&&r[l],d=i[e],u=l&&h&&d&&d.major;return this._adapter.format(t,n||(u?h:c))}generateTickLabels(t){let e,i,n;for(e=0,i=t.length;e0?r:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(t=0,e=n.length;t=t[a].pos&&e<=t[l].pos&&({lo:a,hi:l}=Fs(t,"pos",e)),({pos:n,time:o}=t[a]),({pos:s,time:r}=t[l])):(e>=t[a].time&&e<=t[l].time&&({lo:a,hi:l}=Fs(t,"time",e)),({time:n,pos:o}=t[a]),({time:s,pos:r}=t[l]));const c=s-n;return c?o+(r-o)*(e-n)/c:o}var bh=Object.freeze({__proto__:null,CategoryScale:class extends Va{static id="category";static defaults={ticks:{callback:Wc}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:i,label:n}of e)t[i]===n&&t.splice(i,1);this._addedLabels=[]}super.init(t)}beforeLayout(){super.beforeLayout(),this._userMin=this.parse(this.options.min),this._userMax=this.parse(this.options.max)}parse(t,e){if(Tn(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:ys(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:Nc(i,t,In(e,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:n}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(n=this.getLabels().length-1)),this.min=i,this.max=n}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,n=[];let s=this.getLabels();s=0===t&&e===s.length-1?s:s.slice(t,e+1),this._valueRange=Math.max(s.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)n.push({value:i});return n}getLabelForValue(t){return Wc.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}},LinearScale:qc,LogarithmicScale:Xc,RadialLinearScale:ah,TimeScale:gh,TimeSeriesScale:class extends gh{static id="timeseries";static defaults=gh.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=mh(e,this.min),this._tableRange=mh(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,n=[],s=[];let o,r,a,l,c;for(o=0,r=t.length;o=e&&l<=i&&n.push(l);if(n.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,r=n.length;ot-e)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(mh(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.start;return mh(this._table,i*this._tableRange+this._minPos,!0)}}});const vh=[qr,Wl,Bc,bh];yl.register(...vh);const yh=yl;var xh=i(998),_h=i.n(xh);const wh={data:{},nonce:"",context:null,init(t){this.context=t;const e=t.querySelectorAll("[data-progress]"),i=t.querySelectorAll("[data-chart]");[...e].forEach(t=>{t.dataset.url&&(this.data[t.dataset.url]||(this.data[t.dataset.url]={items:[],poll:null}),this.data[t.dataset.url].items.push(t)),"line"===t.dataset.progress?this.line(t):"circle"===t.dataset.progress&&this.circle(t),this.nonce||(this.nonce=t.dataset?.nonce)});for(const t in this.data)this.getValues(t);[...i].forEach(t=>{const e={labels:JSON.parse(t.dataset.dates),datasets:[{backgroundColor:t.dataset.color,borderColor:t.dataset.color,data:JSON.parse(t.dataset.data),cubicInterpolationMode:"monotone"}]};new yh(t,{type:"line",data:e,options:{responsive:!0,radius:0,interaction:{intersect:!1},plugins:{legend:{display:!1}},scales:{y:{suggestedMin:0,ticks:{color:"#999999",callback:(t,e)=>_h()(t,{decimals:2,scale:"SI"})},grid:{color:"#d3dce3"}},x:{ticks:{color:"#999999"},grid:{color:"#d3dce3"}}}}})})},line(t){new(zi().Line)(t,{strokeWidth:2,easing:"easeInOut",duration:1400,color:t.dataset.color,trailColor:"#d3dce3",trailWidth:2,svgStyle:{width:"100%",height:"100%",display:"block"}}).animate(t.dataset.value/100)},circle(t){t.dataset.basetext=t.dataset.text,t.dataset.text="";const e=t.dataset.value,i=this;if(t.bar=new(zi().Circle)(t,{strokeWidth:3,easing:"easeInOut",duration:1400,color:t.dataset.color,trailColor:"#d3dce3",trailWidth:3,svgStyle:null,text:{autoStyleContainer:!1,style:{color:"#222222"}},step(e,n){const s=Math.floor(100*n.value());i.setText(n,parseFloat(s),t.dataset.text)}}),!t.dataset.url){const i=e/100;t.bar.animate(i)}},getValues(t){this.data[t].poll&&(clearTimeout(this.data[t].poll),this.data[t].poll=null),Mt({path:t,method:"GET",headers:{"X-WP-Nonce":this.nonce}}).then(e=>{this.data[t].items.forEach(i=>{void 0!==e[i.dataset.basetext]?i.dataset.text=e[i.dataset.basetext]:i.dataset.text=i.dataset.basetext,i.bar.animate(e[i.dataset.value]),i.dataset.poll&&!this.data[t].poll&&(this.data[t].poll=setTimeout(()=>{this.getValues(t)},1e4))});for(const t in e){const i=this.context.querySelectorAll(`[data-key="${t}"]`),n=this.context.querySelectorAll(`[data-text="${t}"]`);i.forEach(i=>{i.dataset.value=e[t],i.dispatchEvent(new Event("focus"))}),n.forEach(i=>{i.innerText=e[t],i.classList.contains("cld-toggle")&&(e[t]?i.classList.remove("hidden"):i.classList.add("hidden"))})}})},setText(t,e,i){if(!t)return;const n=document.createElement("span"),s=document.createElement("h2"),o=document.createTextNode(i);s.innerText=e+"%",n.appendChild(s),n.appendChild(o),t.setText(n)}},kh=wh,Mh={key:"_cld_pending_state",data:null,pending:null,changed:!1,previous:{},init(){this.data=cldData.stateData?cldData.stateData:{};let t=localStorage.getItem(this.key);t&&(t=JSON.parse(t),this.data={...this.data,...t},this.sendStates()),this.previous=JSON.stringify(this.data)},_update(){this.pending&&(clearTimeout(this.pending),localStorage.removeItem(this.key)),this.previous!==JSON.stringify(this.data)&&(this.pending=setTimeout(()=>this.sendStates(),2e3),localStorage.setItem(this.key,JSON.stringify(this.data)))},set(t,e){this.data[t]&&this.data[t]===e||(this.data[t]=e,this._update())},get(t){let e=null;return this.data[t]&&(e=this.data[t]),e},sendStates(){fetch(cldData.stateURL,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":cldData.stateNonce},body:JSON.stringify(this.data)}).then(t=>t.json()).then(t=>{t.success&&(this.previous=JSON.stringify(t.state),localStorage.removeItem(this.key))})}},Sh={init(t){[...t.querySelectorAll("[data-remove]")].forEach(t=>{t.addEventListener("click",e=>{if(t.dataset.message&&!confirm(t.dataset.message))return;const i=document.getElementById(t.dataset.remove);i.parentNode.removeChild(i)})})}},Oh={values:{},inputs:{},context:null,init(t){this.context=t;t.querySelectorAll("[data-tags]").forEach(t=>this.bind(t))},bind(t){t.innerText=t.dataset.placeholder;const e=t.dataset.tags,i=document.getElementById(e),n=this.context.querySelectorAll(`[data-tags-delete="${e}"]`);this.values[e]=JSON.parse(i.value),this.inputs[e]=i,t.boundInput=e,t.boundDisplay=this.context.querySelector(`[data-tags-display="${e}"]`),t.boundDisplay.addEventListener("click",e=>{t.focus()}),t.addEventListener("focus",e=>{t.innerText=null}),t.addEventListener("blur",e=>{3{if("Tab"===i.key)3{"Comma"!==e.code&&"Enter"!==e.code&&"Tab"!==e.code&&"Space"!==e.code||(e.preventDefault(),3{t.parentNode.control=t,t.parentNode.style.width=getComputedStyle(t.parentNode).width,t.addEventListener("click",e=>{e.stopPropagation(),this.deleteTag(t)})})},deleteTag(t){const e=t.parentNode,i=e.dataset.inputId,n=this.values[i].indexOf(e.dataset.value);0<=n&&this.values[i].splice(n,1),e.style.width=0,e.style.opacity=0,e.style.padding=0,e.style.margin=0,setTimeout(()=>{e.parentNode.removeChild(e)},500),this.updateInput(i)},captureTag(t,e){if(this[t.dataset.format]&&"string"!=typeof(e=this[t.dataset.format](e)))return t.classList.add("pulse"),void setTimeout(()=>{t.classList.remove("pulse")},1e3);if(!this.validateUnique(t.boundDisplay,e)){const i=this.createTag(e);i.dataset.inputId=t.boundInput,this.values[t.boundInput].push(e),t.innerText=null,t.boundDisplay.insertBefore(i,t),i.style.width=getComputedStyle(i).width,i.style.opacity=1,this.updateInput(t.boundInput)}},createTag(t){const e=document.createElement("span"),i=document.createElement("span"),n=document.createElement("span");return e.classList.add("cld-input-tags-item"),i.classList.add("cld-input-tags-item-text"),n.className="cld-input-tags-item-delete dashicons dashicons-no-alt",n.addEventListener("click",()=>this.deleteTag(n)),i.innerText=t,e.appendChild(i),e.appendChild(n),e.dataset.value=t,e.style.opacity=0,e.control=n,e},validateUnique(t,e){const i=t.querySelector(`[data-value="${e}"]`);let n=!1;return i&&(i.classList.remove("pulse"),i.classList.add("pulse"),setTimeout(()=>{i.classList.remove("pulse")},500),n=!0),n},updateInput(t){this.inputs[t].value=JSON.stringify(this.values[t])},host(t){!1===/^(?:http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)/.test(t)&&(t="https://"+t);let e="";try{e=new URL(t)}catch(t){return t}return decodeURIComponent(e.host)}},Eh=Oh,Ah={suffixInputs:null,init(t){this.suffixInputs=t.querySelectorAll("[data-suffix]"),[...this.suffixInputs].forEach(t=>this.bindInput(t))},bindInput(t){const e=document.getElementById(t.dataset.suffix),i=e.dataset.template.split("@value");this.setSuffix(e,i,t.value),t.addEventListener("change",()=>this.setSuffix(e,i,t.value)),t.addEventListener("input",()=>this.setSuffix(e,i,t.value))},setSuffix(t,e,i){t.innerHTML="",t.classList.add("hidden"),-1===["none","off",""].indexOf(i)&&t.classList.remove("hidden");const n=document.createTextNode(e.join(i));t.appendChild(n)}},Th={wrappers:null,frame:null,error:'data:image/svg+xml;utf8,%26%23x26A0%3B︎',init(t){this.wrappers=t.querySelectorAll(".cld-size-items"),this.wrappers.forEach(t=>{const e=t.querySelectorAll(".cld-size-selector-item");e.forEach(i=>{i.addEventListener("click",()=>{e.forEach(t=>{delete t.dataset.selected}),i.dataset.selected=!0,this.switchSizeContent(t,i.dataset.size)})});const i=t.querySelector(".cld-size-selector-item[data-selected]");i&&this.switchSizeContent(t,i.dataset.size)})},switchSizeContent(t,e){t.querySelectorAll(".cld-size-content").forEach(t=>{t.style.display="none"});const i=t.querySelector(`.cld-size-content[data-size="${e}"]`);i&&(i.style.display="block",this.buildImages(t,i))},buildImages(t,e){const i=t.dataset.base,n=e.querySelector(".regular-text"),s=e.querySelector(".disable-toggle");if(!n||!s)return;const o=e.querySelectorAll("img"),r=n.value.length?n.value.replace(" ",""):n.placeholder;if(o.forEach(t=>{const e=t.dataset.size,o=t.dataset.file;s.checked?(n.disabled=!0,t.src=`${i}/${e}/${o}`):(n.disabled=!1,t.src=`${i}/${e},${r}/${o}`),t.bound||(t.addEventListener("error",()=>{t.src=this.error}),t.bound=!0)}),!n.bound){let i=null;n.addEventListener("input",()=>{i&&clearTimeout(i),i=setTimeout(()=>{this.buildImages(t,e)},1e3)}),n.bound=!0}s.bound||(s.addEventListener("change",()=>{this.buildImages(t,e)}),s.bound=!0);const a=e.querySelector(".clear-crop-input");a&&!a.bound&&(a.addEventListener("click",()=>{n.value="",this.buildImages(t,e)}),a.bound=!0)}},Ch={bindings:{},parent_check_data:{},check_parents:{},_init(t){const e=t.querySelectorAll("[data-condition]"),i=t.querySelectorAll("[data-toggle]"),n=t.querySelectorAll("[data-for]"),s=t.querySelectorAll("[data-tooltip]"),o=t.querySelectorAll("[data-bind-trigger]"),r=t.querySelectorAll("[data-main]"),a=t.querySelectorAll("[data-file]"),l=t.querySelectorAll("[data-auto-suffix]"),c=t.querySelectorAll("[data-confirm]"),h={};Mh.init(),ji.bind(r),l.forEach(t=>this._autoSuffix(t)),o.forEach(t=>this._trigger(t)),i.forEach(t=>this._toggle(t)),e.forEach(t=>this._bind(t)),n.forEach(t=>this._alias(t)),a.forEach(t=>this._files(t,h)),Li(s,{theme:"cloudinary",arrow:!1,placement:"bottom-start",aria:{content:"auto",expanded:"auto"},content:t=>document.getElementById(t.dataset.tooltip).innerHTML}),[...o].forEach(t=>{t.dispatchEvent(new Event("input"))}),c.forEach(t=>{t.addEventListener("click",e=>{confirm(t.dataset.confirm)||(e.preventDefault(),e.stopPropagation())})}),kh.init(t),Sh.init(t),Eh.init(t),Ah.init(t),Th.init(t)},_autoSuffix(t){const e=t.dataset.autoSuffix;let i="";const n=[...e.split(";")].map(t=>0===t.indexOf("*")?(i=t.replace("*",""),i):t);t.addEventListener("change",()=>{const e=t.value.replace(" ",""),s=e.replace(/[^0-9]/g,""),o=e.replace(/[0-9]/g,"").toLowerCase();s&&(-1===n.indexOf(o)?t.value=s+i:t.value=s+o)}),t.dispatchEvent(new Event("change"))},_files(t,e){const i=t.dataset.parent;i&&(this.check_parents[i]=document.getElementById(i),this.parent_check_data[i]||(this.parent_check_data[i]=this.check_parents[i].value?JSON.parse(this.check_parents[i].value):[]),t.addEventListener("change",()=>{const n=this.parent_check_data[i].indexOf(t.value);t.checked?this.parent_check_data[i].push(t.value):this.parent_check_data[i].splice(n,1),e[i]&&clearTimeout(e[i]),e[i]=setTimeout(()=>{this._compileParent(i)},10)}))},_compileParent(t){this.check_parents[t].value=JSON.stringify(this.parent_check_data[t]),this.check_parents[t].dispatchEvent(new Event("change"))},_bind(t){t.condition=JSON.parse(t.dataset.condition);for(const e in t.condition)this.bindings[e]&&this.bindings[e].elements.push(t)},_trigger(t){const e=t.dataset.bindTrigger,i=this;i.bindings[e]={input:t,value:t.value,checked:!0,elements:[]},t.addEventListener("change",function(e){t.dispatchEvent(new Event("input"))}),t.addEventListener("input",function(){if(i.bindings[e].value=t.value,"checkbox"===t.type&&(i.bindings[e].checked=t.checked),"radio"!==t.type||!1!==t.checked)for(const n in i.bindings[e].elements)i.toggle(i.bindings[e].elements[n],t)})},_alias(t){t.addEventListener("click",function(){document.getElementById(t.dataset.for).dispatchEvent(new Event("click"))})},_toggle(t){const e=this,i=document.querySelector('[data-wrap="'+t.dataset.toggle+'"]');if(!i)return;const n=Mh.get(t.id);t.addEventListener("click",function(n){n.stopPropagation();const s=i.classList.contains("open")?"closed":"open";e.toggle(i,t,s)}),n!==t.dataset.state&&this.toggle(i,t,n)},toggle(t,e,i){if(!i){i="open";for(const e in t.condition){let n=this.bindings[e].value;const s=t.condition[e];"boolean"==typeof s&&(n=this.bindings[e].checked),s!==n&&(i="closed")}}"closed"===i?this.close(t,e):this.open(t,e),Mh.set(e.id,i)},open(t,e){const i=t.getElementsByClassName("cld-ui-input");t.classList.remove("closed"),t.classList.add("open"),e&&e.classList.contains("dashicons")&&(e.classList.remove("dashicons-arrow-down-alt2"),e.classList.add("dashicons-arrow-up-alt2")),[...i].forEach(function(t){t.dataset.disabled=!1})},close(t,e){const i=t.getElementsByClassName("cld-ui-input");t.classList.remove("open"),t.classList.add("closed"),e&&e.classList.contains("dashicons")&&(e.classList.remove("dashicons-arrow-up-alt2"),e.classList.add("dashicons-arrow-down-alt2")),[...i].forEach(function(t){t.dataset.disabled=!0})}},Ph=document.querySelectorAll(".cld-settings,.cld-meta-box");Ph.length&&Ph.forEach(t=>{t&&window.addEventListener("load",Ch._init(t))});const Lh={config:null,init(){this.config||"undefined"!=typeof cldData&&cldData.analytics&&cldData.analytics.enabled&&(this.config=cldData.analytics,Mt.use(Mt.createNonceMiddleware(this.config.nonce)))},track(t,e={},i="activation_funnel",n=null){if(this.config||this.init(),this.config&&this.config.enabled&&t)try{Mt({url:this.config.endpoint,method:"POST",data:{event_name:t,event_category:i,funnel_step:n,params:e}}).catch(()=>{})}catch(t){}},trackReliable(t,e={},i="activation_funnel"){if(this.config||this.init(),this.config&&this.config.enabled&&t)if(navigator.sendBeacon)try{const n=this.config.endpoint.includes("?")?"&":"?",s=this.config.endpoint+n+"_wpnonce="+encodeURIComponent(this.config.nonce),o=new Blob([JSON.stringify({event_name:t,event_category:i,funnel_step:null,params:e})],{type:"application/json"});navigator.sendBeacon(s,o)}catch(t){}else this.track(t,e,i)}};window.addEventListener("load",()=>Lh.init());const Dh=Lh,Ih={storageKey:"_cld_wizard",testing:null,connectAttempts:0,startedEntry:!1,startedTracked:!1,next:document.querySelector('[data-navigate="next"]'),back:document.querySelector('[data-navigate="back"]'),lock:document.getElementById("pad-lock"),lockIcon:document.getElementById("lock-icon"),options:document.querySelectorAll('.cld-ui-input[type="checkbox"]'),settings:document.getElementById("optimize"),tabBar:document.getElementById("wizard-tabs"),tracking:document.getElementById("tracking"),complete:document.getElementById("complete-wizard"),tabs:{"tab-1":document.getElementById("tab-icon-1"),"tab-2":document.getElementById("tab-icon-2"),"tab-3":document.getElementById("tab-icon-3")},content:{"tab-1":document.getElementById("tab-1"),"tab-2":document.getElementById("tab-2"),"tab-3":document.getElementById("tab-3"),"tab-4":document.getElementById("tab-4")},connection:{error:document.getElementById("connection-error"),success:document.getElementById("connection-success"),working:document.getElementById("connection-working")},debounceConnect:null,updateConnection:document.getElementById("update-connection"),cancelUpdateConnection:document.getElementById("cancel-update-connection"),config:{},didSave:!1,init(){if(!cldData.wizard)return;this.config=cldData.wizard.config,window.localStorage.getItem(this.storageKey)&&(this.config=JSON.parse(window.localStorage.getItem(this.storageKey))),document.location.hash.length&&this.hashChange(),Mt.use(Mt.createNonceMiddleware(cldData.wizard.saveNonce));const t=document.querySelectorAll("[data-navigate]"),e=document.getElementById("connect.cloudinary_url");this.updateConnection.addEventListener("click",()=>{this.lockNext(),e.parentNode.classList.remove("hidden"),this.cancelUpdateConnection.classList.remove("hidden"),this.updateConnection.classList.add("hidden")}),this.cancelUpdateConnection.addEventListener("click",()=>{this.unlockNext(),e.parentNode.classList.add("hidden"),this.cancelUpdateConnection.classList.add("hidden"),this.updateConnection.classList.remove("hidden"),this.config.cldString=!0,e.value="",this.connection.error.classList.remove("active"),this.connection.success.classList.add("active")}),[...t].forEach(t=>{t.addEventListener("click",()=>{this.navigate(t.dataset.navigate)})}),this.lock.addEventListener("click",()=>{this.lockIcon.classList.toggle("dashicons-unlock"),this.settings.classList.toggle("disabled"),this.options.forEach(t=>{t.disabled=t.disabled?"":"disabled"})}),e.addEventListener("input",t=>{this.lockNext(),this.startedEntry||(this.startedEntry=!0,Dh.track("credentials_entry_started",{},"activation_funnel",3));const i=e.value.replace("CLOUDINARY_URL=","");this.connection.error.classList.remove("active"),this.connection.success.classList.remove("active"),this.connection.working.classList.remove("active"),i.length&&(this.testing=i,this.debounceConnect&&clearTimeout(this.debounceConnect),this.debounceConnect=setTimeout(()=>{const t=this.evaluateConnectionString(i);Dh.track("credentials_format_validated",{format_valid:t,invalid_reason:t?"":this.invalidReason(i)},"activation_funnel",3),t?(this.connection.working.classList.add("active"),this.testConnection(i)):this.connection.error.classList.add("active")},500))}),this.config.cldString&&(e.parentNode.classList.add("hidden"),this.updateConnection.classList.remove("hidden"));const i=document.querySelector('a[href="https://cloudinary.com/signup"]');i&&i.addEventListener("click",()=>{Dh.track("wizard_signup_clicked",{},"activation_funnel",2)}),this.complete&&this.complete.addEventListener("click",()=>{Dh.track("wizard_dashboard_clicked",{},"activation_funnel",7)}),this.getTab(this.config.tab),this.initFeatures(),window.addEventListener("hashchange",t=>{this.hashChange()})},hashChange(){const t=parseInt(document.location.hash.replace("#",""));t&&0t&&this.getTab(t)},initFeatures(){const t=(t,e)=>{Dh.track("wizard_setting_toggled",{setting_key:t,enabled:e},"activation_funnel",4)},e=document.getElementById("media_library");e.checked=this.config.mediaLibrary,e.addEventListener("change",()=>{this.setConfig("mediaLibrary",e.checked),t("media_library",e.checked)});const i=document.getElementById("non_media");i.checked=this.config.nonMedia,i.addEventListener("change",()=>{this.setConfig("nonMedia",i.checked),t("non_media",i.checked)});const n=document.getElementById("advanced");n.checked=this.config.advanced,n.addEventListener("change",()=>{this.setConfig("advanced",n.checked),t("advanced",n.checked)})},getCurrent(){return this.content[`tab-${this.config.tab}`]},hideTabs(){Object.keys(this.content).forEach(t=>{this.hide(this.content[t])})},completeTab(t){this.incompleteTab(),Object.keys(this.tabs).forEach(e=>{const i=parseInt(this.tabs[e].dataset.tab);t>i?this.tabs[e].classList.add("complete"):t===i&&this.tabs[e].classList.add("active")})},incompleteTab(t){Object.keys(this.tabs).forEach(t=>{this.tabs[t].classList.remove("complete","active")})},getCurrentTab(){return this.tabs[`tab-icon-${this.config.tab}`]},getTab(t){if(4===t&&window.localStorage.getItem(this.storageKey)&&!this.didSave)return void this.saveConfig();const e=this.getCurrent(),i=document.getElementById(`tab-${t}`);switch(this.hideTabs(),this.completeTab(t),this.hide(document.getElementById(`tab-${this.config.tab}`)),e.classList.remove("active"),this.show(i),this.show(this.next),this.hide(this.lock),t){case 1:this.hide(this.back),this.unlockNext(),this.startedTracked||(this.startedTracked=!0,this.config.wizardStartedAt||this.setConfig("wizardStartedAt",Date.now()),Dh.track("wizard_started",{entry_point:this.getEntryPoint()},"activation_funnel",2));break;case 2:Dh.track("wizard_connect_viewed",{},"activation_funnel",3),this.show(this.back),this.config.cldString?this.showSuccess():(this.lockNext(),setTimeout(()=>{document.getElementById("connect.cloudinary_url").focus()},0)),this.updateConnection.classList.contains("hidden")&&this.lockNext();break;case 3:if(!this.config.cldString)return void(document.location.hash="1");Dh.track("wizard_settings_viewed",{},"activation_funnel",4),this.show(this.lock),this.show(this.back);break;case 4:if(!this.config.cldString)return void(document.location.hash="1");Dh.track("wizard_completed",{time_to_complete_sec:this.timeToCompleteSec()},"activation_funnel",6),this.hide(this.tabBar),this.hide(this.next),this.hide(this.back)}this.setConfig("tab",t)},navigate(t){"next"===t?this.navigateNext():"back"===t&&this.navigateBack()},navigateBack(){document.location.hash=this.config.tab-1},navigateNext(){document.location.hash=this.config.tab+1},showError(){this.connection.error.classList.add("active"),this.connection.success.classList.remove("active")},showSuccess(){this.connection.error.classList.remove("active"),this.connection.success.classList.add("active")},show(t){t.classList.remove("hidden"),t.style.display=""},hide(t){t.classList.add("hidden"),t.style.display="none"},lockNext(){this.next.disabled="disabled"},unlockNext(){this.next.disabled=""},evaluateConnectionString:t=>new RegExp(/^(?:CLOUDINARY_URL=)?(cloudinary:\/\/){1}(\d*)[:]{1}([^@]*)[@]{1}([^@]*)$/gim).test(t),invalidReason(t){const e=t.replace("CLOUDINARY_URL=","");if(0!==e.indexOf("cloudinary://"))return"missing_scheme";if(-1===e.indexOf("@"))return"missing_cloud_name";const i=e.replace("cloudinary://","").split("@")[0];return-1===i.indexOf(":")?"missing_secret":/^\d+$/.test(i.split(":")[0])?"invalid_format":"invalid_api_key"},getEntryPoint:()=>-1!==document.referrer.indexOf("plugins.php")?"auto_redirect":"menu",timeToCompleteSec(){const t=this.config.wizardStartedAt;return t?Math.max(0,Math.round((Date.now()-t)/1e3)):null},testConnection(t){this.connectAttempts+=1,Dh.track("connection_test_started",{attempt_number:this.connectAttempts},"activation_funnel",3),Mt({path:cldData.wizard.testURL,data:{cloudinary_url:t,attempt_number:this.connectAttempts},method:"POST"}).then(e=>{e.url===this.testing&&(this.connection.working.classList.remove("active"),"connection_error"===e.type?this.showError():"connection_success"===e.type&&(this.showSuccess(),this.unlockNext(),this.setConfig("cldString",t)))})},setConfig(t,e){this.config[t]=e,window.localStorage.setItem(this.storageKey,JSON.stringify(this.config))},saveConfig(){this.lockNext(),this.next.innerText=H("Setting up Cloudinary","cloudinary"),this.didSave=!0,Mt({path:cldData.wizard.saveURL,data:this.config,method:"POST"}).then(t=>{this.next.innerText=H("Next","cloudinary"),this.unlockNext(),this.getTab(4),window.localStorage.removeItem(this.storageKey)}).fail(t=>{this.didSave=!1})}};window.addEventListener("load",()=>Ih.init());const Rh={select:document.getElementById("connect.offload"),tooltip:null,descriptions:{},change(){[...this.descriptions].forEach(t=>{t.classList.remove("selected")}),this.tooltip.querySelector("."+this.select.value).classList.add("selected")},addEventListener(){this.select.addEventListener("change",this.change.bind(this))},_init(){this.select&&(this.addEventListener(),this.tooltip=this.select.parentNode.querySelector(".cld-tooltip"),this.descriptions=this.tooltip.querySelectorAll("li"),this.change())}};window.addEventListener("load",()=>Rh._init());const jh={pageReloader:document.getElementById("page-reloader"),init(){if(!cldData.extensions)return;Mt.use(Mt.createNonceMiddleware(cldData.extensions.nonce));[...document.querySelectorAll("[data-extension]")].forEach(t=>{t.addEventListener("change",e=>{t.spinner||(t.spinner=this.createSpinner(),t.parentNode.appendChild(t.spinner)),t.debounce&&clearTimeout(t.debounce),t.debounce=setTimeout(()=>{this.toggleExtension(t),t.debounce=null},1e3)})})},toggleExtension(t){const e=t.dataset.extension,i=t.checked;Dh.track("extension_toggled",{extension_id:e,enabled:i},"features"),Mt({path:cldData.extensions.url,data:{extension:e,enabled:i},method:"POST"}).then(e=>{t.spinner&&(t.parentNode.removeChild(t.spinner),delete t.spinner),Object.keys(e).forEach(t=>{document.querySelectorAll(`[data-text="${t}"]`).forEach(i=>{i.innerText=e[t]})}),this.pageReloader.style.display="block"})},createSpinner(){const t=document.createElement("span");return t.classList.add("spinner"),t.classList.add("cld-extension-spinner"),t}};window.addEventListener("load",()=>jh.init());const Fh={tabButtonSelectors:null,selectedTabID:"",deselectOldTab(){document.getElementById(this.selectedTabID).classList.remove("is-active"),this.filterActive([...this.tabButtonSelectors]).classList.remove("is-active")},selectCurrentTab(t){this.selectedTabID=t.dataset.tab,t.classList.add("is-active"),document.getElementById(this.selectedTabID).classList.add("is-active")},selectTab(t){t.preventDefault(),t.target.classList.contains("is-active")||(this.deselectOldTab(),this.selectCurrentTab(t.target))},filterTabs(){[...this.tabButtonSelectors].forEach(t=>{t.dataset.tab&&t.addEventListener("click",this.selectTab.bind(this))})},filterActive:t=>t.filter(t=>t.classList.contains("is-active")).pop(),init(){this.tabButtonSelectors=document.querySelectorAll(".cld-page-tabs-tab button"),0!==this.tabButtonSelectors.length&&(this.selectCurrentTab(this.filterActive([...this.tabButtonSelectors])),this.filterTabs())}};window.addEventListener("load",()=>Fh.init());const zh={init(){document.querySelectorAll(".cld-special-offer-link").forEach(t=>{t.addEventListener("click",()=>{Dh.track("special_offer_clicked",{offer_id:"small_plan_29"},"settings")})})}};window.addEventListener("load",()=>zh.init());i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p,i.p;window.$=window.jQuery})()})(); //# sourceMappingURL=cloudinary.js.map \ No newline at end of file diff --git a/readme.txt b/readme.txt index 2cc305fa1..c4e08f92c 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: Cloudinary, XWP, Automattic Tags: image-optimizer, core-web-vitals, video, resize, performance Requires at least: 6.3 -Tested up to: 7.1.4 +Tested up to: 7.2 Requires PHP: 7.4 Stable tag: STABLETAG License: GPLv2