Plugin Directory

Changeset 3348557


Ignore:
Timestamp:
08/22/2025 10:02:26 AM (7 months ago)
Author:
bungeshea
Message:

3.7.0-beta.7

Location:
code-snippets/tags/3.7.0-beta
Files:
6 added
4 deleted
51 edited

Legend:

Unmodified
Added
Removed
  • code-snippets/tags/3.7.0-beta/CHANGELOG.md

    r3345197 r3348557  
    88### Changed
    99* Redesigned edit menu with refreshed look and functionality.
     10* Updated snippet type badges to be more visually distinct.
     11* Redesigned tooltips used throughout the plugin.
     12* Moved content snippet shortcode options into separate modal window.
     13* Updated snippet tag editor to use built-in WordPress tag editor.
     14* Created proper form for sharing beta feedback.
     15* Improved UX of snippet activation toggle.
    1016
    1117### Fixed
    1218* Fetching active snippets on a multisite network now respects the 'priority' field above all else when ordering snippets.
    1319* Cloud search appears correctly and allows downloading snippets in the free version of Code Snippets.
     20* Improved performance of loading admin menu icon.
    1421
    1522## [3.6.9] (2025-02-17)
  • code-snippets/tags/3.7.0-beta/assets/menu-icon.svg

    r3345197 r3348557  
    1 <svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024">
    2     <g>
    3         <path fill="transparent"
    4               d="M191.968 464.224h158.912c23.68 0 42.656 19.2 42.656 42.656 0 11.488-4.48 21.984-11.968 29.632l0.192 0.448-108.768 108.736c-75.104 75.136-75.104 196.512 0 271.584 74.88 74.848 196.448 74.848 271.552 0 74.88-75.104 74.88-196.48 0-271.584-21.76-21.504-47.36-37.12-74.464-46.272l28.608-28.576h365.248c87.040 0 157.856-74.016 159.968-166.4 0-1.472 0.224-2.752 0-4.256-2.112-23.904-22.368-42.656-46.912-42.656h-264.96l191.328-191.328c17.504-17.504 18.56-45.024 3.2-63.36-1.024-1.28-2.080-2.144-3.2-3.2-66.528-63.552-169.152-65.92-230.56-4.48l-262.368 262.368h-46.528c12.8-25.6 20.032-54.624 20.032-85.344 0-106.016-85.952-192-192-192-106.016 0-191.968 85.984-191.968 192 0.032 106.080 85.984 192.032 192 192.032zM277.312 272.256c0 47.136-38.176 85.344-85.344 85.344-47.136 0-85.312-38.176-85.312-85.344s38.176-85.344 85.312-85.344c47.168 0 85.344 38.208 85.344 85.344zM469.088 721.312c33.28 33.248 33.28 87.264 0 120.512-33.28 33.472-87.264 33.472-120.736 0-33.28-33.248-33.28-87.264 0-120.512 33.472-33.504 87.456-33.504 120.736 0z" />
    5     </g>
     1<svg xmlns="http://www.w3.org/2000/svg" width="20" height="18.025">
     2    <path
     3            d="M3.718 58.581h3.104a.833.833 0 0 1 .599 1.412l.004.009L5.3 62.125a3.747 3.747 0 0 0 0 5.304 3.755 3.755 0 0 0 5.304 0 3.755 3.755 0 0 0-1.454-6.207l.558-.558h7.134c1.7 0 3.083-1.446 3.124-3.25 0-.03.004-.054 0-.083a.92.92 0 0 0-.916-.834h-5.175l3.737-3.736a.92.92 0 0 0 .062-1.238c-.02-.025-.04-.042-.062-.062-1.3-1.242-3.304-1.288-4.503-.088l-5.124 5.124h-.91a3.75 3.75 0 1 0-3.358 2.084m1.667-3.75a1.666 1.666 0 1 1-3.333.002 1.666 1.666 0 0 1 3.333-.001m3.745 8.771c.65.65.65 1.704 0 2.354a1.663 1.663 0 0 1-2.358 0 1.664 1.664 0 0 1 0-2.354 1.66 1.66 0 0 1 2.358 0"
     4            style="stroke-width:.0195306"
     5            transform="translate(.032 -50.5)"
     6    />
    67</svg>
  • code-snippets/tags/3.7.0-beta/code-snippets.php

    r3345197 r3348557  
    99 * License URI:  license.txt
    1010 * Text Domain:  code-snippets
    11  * Version:      3.7.0-beta.5
     11 * Version:      3.7.0-beta.7
    1212 * Requires PHP: 7.4
    1313 * Requires at least: 5.0
    1414 *
    15  * @version   3.7.0-beta.5
     15 * @version   3.7.0-beta.7
    1616 * @package   Code_Snippets
    1717 * @author    Shea Bunge <[email protected]>
     
    3838     * @const string
    3939     */
    40     define( 'CODE_SNIPPETS_VERSION', '3.7.0-beta.5' );
     40    define( 'CODE_SNIPPETS_VERSION', '3.7.0-beta.7' );
    4141
    4242    /**
  • code-snippets/tags/3.7.0-beta/css/common/_switch.scss

    r3345197 r3348557  
    11@use 'theme';
     2
     3$off-color: #789;
    24
    35.snippet-execution-button,
    46.snippet-activation-switch,
    5 input[type="checkbox"].switch {
     7input[type='checkbox'].switch {
    68    display: block;
    79    position: relative;
     
    911
    1012.snippet-activation-switch,
    11 input[type="checkbox"].switch {
     13input[type='checkbox'].switch {
    1214    appearance: none;
    1315    outline: 0;
     
    1820    border-radius: 34px;
    1921    text-align: start;
    20     border: 1px solid theme.$accent;
     22    border: 1px solid $off-color;
    2123    box-sizing: border-box;
    2224
    2325    &::before {
    24         transition: all .4s;
     26        transition: all .1s;
    2527        content: '';
    2628        block-size: 13px;
    2729        inline-size: 13px;
    2830        display: inline-block;
    29         background-color: theme.$accent;
     31        background-color: $off-color;
    3032        border-radius: 50%;
    3133        margin: 2px;
     
    3436
    3537.active-snippet .snippet-activation-switch,
    36 input[type="checkbox"].switch:checked {
     38input[type='checkbox'].switch:checked {
    3739    background-color: #0073aa;
    3840
  • code-snippets/tags/3.7.0-beta/css/common/_upsell.scss

    r3345197 r3348557  
    99    gap: 10px;
    1010    background: #fff;
    11     border: 1px solid #c3c4c7;
     11    border: 1px solid #ccc;
    1212    border-radius: 5px;
    1313
     
    126126        margin-block: 16px 24px;
    127127        margin-inline: auto;
     128        border-color: currentcolor;
    128129
    129130        &:hover {
  • code-snippets/tags/3.7.0-beta/css/edit.scss

    r3345197 r3348557  
    88@use 'common/select';
    99@use 'common/tooltips';
     10@use 'common/modal';
    1011@use 'common/upsell';
    1112@use 'edit/form';
     
    1920}
    2021
    21 .code-snippets-copy-text {
    22     color: inherit;
    23 }
    24 
    2522.button svg {
    2623    block-size: 1rem;
     
    3128
    3229.snippet-description-container {
    33     margin-block-start: 25px;
    34 
    3530    .wp-editor-tools {
    3631        padding-block-start: 5px;
     
    4944}
    5045
     46.components-form-token-field__input-container {
     47    background: #fff;
     48    border-color: #c3c4c7;
     49
     50    > .components-flex {
     51        padding: 12px;
     52    }
     53}
     54
     55#titlediv,
     56.snippet-type-container {
     57    margin-block-end: 24px;
     58}
     59
    5160.above-snippet-code {
     61    margin-block: 0 15px;
    5262    display: flex;
    5363    align-items: center;
    54     margin-block: 25px 15px;
    5564    margin-inline: 0;
    5665    gap: 8px;
     
    5867    h2 {
    5968        margin: 0;
    60         margin-inline-end: auto;
    6169    }
    6270
     
    6573        gap: 5px;
    6674        align-items: center;
     75        margin-inline-end: auto;
    6776
    6877        .dashicons {
  • code-snippets/tags/3.7.0-beta/css/edit/_form.scss

    r3345197 r3348557  
    11@use '../common/theme';
    22
    3 $sidebar-width: 280px;
     3$sidebar-width: 321px;
    44$sidebar-gap: 30px;
     5
     6.snippet-form #titlediv #title,
     7.snippet-type-container {
     8    border-color: #ccc;
     9    block-size: 45px
     10}
    511
    612.snippet-type-option {
     
    2026
    2127
    22 .conditions-editor-open .button.button-large {
    23     font-weight: bold;
    24     block-size: 100%;
    25     display: flex;
    26     align-items: center;
    27     min-block-size: 45px;
    28     gap: 5px;
    29     overflow: hidden;
    30 
    31     &.no-condition {
     28.conditions-editor-open {
     29    .button.button-large {
     30        block-size: 100%;
     31        display: flex;
     32        align-items: center;
     33        gap: 8px;
     34        overflow: hidden;
    3235        border-color: #ccc;
    33         background-color: #fff;;
     36        padding-block: 6px;
     37        padding-inline: 12px;
    3438    }
    3539
    36     .badge {
    37         margin-block: 3px;
    38         margin-inline: 0;
    39     }
    40 
    41     .beta-badge {
    42         margin-inline-start: auto;
     40    &.no-condition .cond-badge {
     41        background: transparent;
     42        color: inherit;
    4343        border: 1px solid currentcolor;
    4444    }
    4545
    46     .pro-badge {
    47         color: currentcolor;
    48         border: 1px solid currentcolor;
    49         background: transparent;
    50 
    51         @media screen and (width >= 1080px) and (width <= 1250px) {
    52             display: none;
    53         }
     46    &.no-condition:hover .cond-badge {
     47        color: #fff;
     48        background: theme.$accent;
     49        border-color: theme.$accent;
    5450    }
    5551}
     
    5753.snippet-form {
    5854    margin-block-start: 10px;
    59     max-inline-size: 1440px;
    6055    display: grid;
    6156    gap: $sidebar-gap;
    6257    grid-template-columns: 1fr $sidebar-width;
    63     grid-template-areas: "upper sidebar" "lower sidebar";
     58    grid-template-areas: 'upper sidebar' 'lower sidebar';
    6459    transition: all 700ms;
    6560
    6661    &.snippet-form-expanded {
    67         grid-template-areas: "upper upper" "lower sidebar";
     62        grid-template-areas: 'upper upper' 'lower sidebar';
    6863    }
    6964
     
    7772
    7873    .snippet-editor-sidebar {
    79         grid-area: sidebar;
     74        grid-area: span 3 / sidebar;
    8075        max-inline-size: $sidebar-width;
    8176    }
     
    8378    @media (width <= 1024px) {
    8479        grid-template-columns: 1fr;
    85     }
    86 
    87     #titlediv #title {
    88         block-size: 45px
    8980    }
    9081
     
    10394    }
    10495}
    105 
    106 .above-editor-container {
    107     display: flex;
    108     flex-flow: row wrap;
    109     gap: 1em;
    110 
    111     > * {
    112         flex: 1;
    113         display: flex;
    114         flex-flow: column;
    115         min-inline-size: 180px;
    116     }
    117 }
  • code-snippets/tags/3.7.0-beta/css/edit/_sidebar.scss

    r3345197 r3348557  
     1@use '../common/theme';
     2
    13.snippet-editor-sidebar {
    24    .button-large {
     
    4547        }
    4648
    47         > div {
     49        .inline-form-field {
    4850            display: flex;
    4951            flex-flow: row wrap;
     
    5557            }
    5658        }
     59
     60        .block-form-field {
     61            display: flex;
     62            flex-flow: column;
     63            gap: 4px;
     64
     65            h4 {
     66                margin-block-end: 0;
     67            }
     68        }
     69    }
     70
     71    h4 .badge {
     72        float: inline-end;
     73
     74        + .badge {
     75            margin-inline-end: 5px;
     76        }
     77    }
     78
     79    .beta-badge {
     80        color: theme.$accent;
     81        border: 1px solid currentcolor;
    5782    }
    5883
     
    78103}
    79104
     105.activation-switch-container label {
     106    display: flex;
     107    flex-flow: row;
     108    gap: 5px;
     109    justify-content: center;
     110}
     111
    80112.shortcode-tag-wrapper {
    81     .code-snippets-copy-text {
    82         vertical-align: middle;
     113    background: #fff;
     114    min-block-size: 54px;
     115    display: flex;
     116    align-items: center;
     117    justify-content: space-between;
     118    padding: 10px;
     119    box-sizing: border-box;
     120
     121    code {
     122        background: transparent;
     123        padding-inline: 0.5em;
     124        text-indent: -0.5em;
    83125    }
    84126}
     127
     128.code-snippets-copy-text.button {
     129    display: flex;
     130    align-items: center;
     131    gap: 3px;
     132
     133    .dashicons {
     134        block-size: 18px;
     135        inline-size: 18px;
     136        font-size: 18px;
     137    }
     138
     139    .spinner-wrapper {
     140        block-size: 18px;
     141        inline-size: 18px;
     142        display: flex;
     143        align-items: center;
     144    }
     145
     146    .components-spinner {
     147        block-size: 12px;
     148    }
     149}
     150
     151.code-snippets-modal {
     152    p h4 {
     153        margin-block-start: 0;
     154    }
     155}
  • code-snippets/tags/3.7.0-beta/css/manage/_cloud.scss

    r3345197 r3348557  
    315315
    316316.highlight-yellow {
    317     background: #ffee58;
     317    background: #fefdba;
    318318    padding: 3px;
    319319    border-radius: 3px;
  • code-snippets/tags/3.7.0-beta/dist/edit-rtl.css

    r3345197 r3348557  
    1 .CodeMirror{background-color:#fff;block-size:auto!important;border:1px solid #dfdfdf;border-radius:3px}.CodeMirror-code{outline:none}.CodeMirror-focused .cm-matchhighlight{color:#fff!important;outline:1px solid green}.CodeMirror-sizer:after,.CodeMirror-sizer:before{color:#bbb;display:block}.CodeMirror-sizer:before{content:"";padding-block-end:5px}.cm-s-rubyblue .CodeMirror-cursor{border-inline-start:1px solid #fff!important}.CodeMirror-lint-marker-multiple,[class*=CodeMirror-lint-marker],[class*=CodeMirror-lint-message]{background-image:none}.CodeMirror-lint-marker-error,.CodeMirror-lint-marker-warning{cursor:help}.CodeMirror-lint-marker-multiple{inset-block-start:0;position:absolute}[class*=CodeMirror-lint-marker]:before{font:normal 18px/1 dashicons;inset-block-start:-2px;position:relative}[class*=CodeMirror-lint-message]:before{font:normal 16px/1 dashicons;inset-inline-start:16px;position:absolute}.CodeMirror-lint-message-error,.CodeMirror-lint-message-warning{box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin-block:5px 2px;margin-inline:0;padding-block:3px;padding-inline:28px 12px}.CodeMirror-lint-message-warning{background-color:#fff8e5;border-inline-start:4px solid #ffb900}.CodeMirror-lint-marker-warning:before,.CodeMirror-lint-message-warning:before{color:#f6a306;content:""}.CodeMirror-lint-message-error{background-color:#fbeaea;border-inline-start:4px solid #dc3232}.CodeMirror-lint-marker-error:before,.CodeMirror-lint-message-error:before{color:#dc3232;content:""}.CodeMirror-lint-tooltip{background:none;border:none;border-radius:0;direction:rtl}.CodeMirror .CodeMirror-matchingbracket{background:rgba(255,150,0,.3);color:inherit}.CodeMirror .CodeMirror-linenumber{color:#666}.CodeMirror-foldmarker{color:inherit;font-weight:700;margin-inline:.25em}.badge{align-items:center;border-radius:3px;box-sizing:border-box;display:inline-flex;font-size:12px;font-weight:700;gap:5px;justify-content:center;line-height:1;min-block-size:24px;min-inline-size:43px;padding-block:0;padding-inline:3px;text-align:center;text-transform:uppercase}.badge .dashicons{block-size:18px;font-size:18px;inline-size:18px}.small-badge{block-size:auto;font-size:smaller;inline-size:auto;padding-block:0;padding-inline:.5em}.wp-core-ui .button.nav-tab-button{align-items:center;align-self:center;background:#f6f7f7;border-color:#f6f7f7;color:#a7aaad;display:flex;float:inline-end;gap:2px;justify-content:center;margin-inline-start:.5em}.badge.php-badge,.nav-tab-inactive:hover .badge.php-badge,:hover>.inverted-badges .php-badge{background-color:#1d97c6;color:#fff}.badge.php-badge:hover{background-color:#1a86b0;color:#fff}.badge.html-badge,.nav-tab-inactive:hover .badge.html-badge,:hover>.inverted-badges .html-badge{background-color:#ef6a36;color:#fff}.badge.html-badge:hover{background-color:#ed581e;color:#fff}.badge.css-badge,.nav-tab-inactive:hover .badge.css-badge,:hover>.inverted-badges .css-badge{background-color:#9b59b6;color:#fff}.badge.css-badge:hover{background-color:#8f4bab;color:#fff}.badge.js-badge,.nav-tab-inactive:hover .badge.js-badge,:hover>.inverted-badges .js-badge{background-color:#ffeb3b;color:#1c1f20}.badge.js-badge:hover{background-color:#ffe822;color:#1c1f20}.badge.cond-badge,.nav-tab-inactive:hover .badge.cond-badge,:hover>.inverted-badges .cond-badge{background-color:#2eae95;color:#fff}.badge.cond-badge:hover{background-color:#299a84;color:#fff}.badge.core-badge,.nav-tab-inactive:hover .badge.core-badge,:hover>.inverted-badges .core-badge{background-color:#61c5cb;color:#fff}.badge.core-badge:hover{background-color:#4ebec5;color:#fff}.badge.pro-badge,.nav-tab-inactive:hover .badge.pro-badge,:hover>.inverted-badges .pro-badge{background-color:#f7e8e3;color:#df9279}.badge.pro-badge:hover{background-color:#f1d8cf;color:#df9279}.badge.cloud-badge,.nav-tab-inactive:hover .badge.cloud-badge,:hover>.inverted-badges .cloud-badge{background-color:#00bcd4;color:#fff}.badge.cloud-badge:hover{background-color:#00a5bb;color:#fff}.badge.bundles-badge,.nav-tab-inactive:hover .badge.bundles-badge,:hover>.inverted-badges .bundles-badge{background-color:#50575e;color:#fff}.badge.bundles-badge:hover{background-color:#444a50;color:#fff}.badge.cloud_search-badge,.nav-tab-inactive:hover .badge.cloud_search-badge,:hover>.inverted-badges .cloud_search-badge{background-color:#ff9800;color:#fff}.badge.cloud_search-badge:hover{background-color:#e68900;color:#fff}.badge.private-badge,.nav-tab-inactive:hover .badge.private-badge,:hover>.inverted-badges .private-badge{background-color:#f7e6be;color:#ca961b}.badge.private-badge:hover{background-color:#f4dda7;color:#ca961b}.badge.public-badge,.nav-tab-inactive:hover .badge.public-badge,:hover>.inverted-badges .public-badge{background-color:#dbebf7;color:#2271b1}.badge.public-badge:hover{background-color:#c6dff2;color:#2271b1}.badge.success-badge,.nav-tab-inactive:hover .badge.success-badge,:hover>.inverted-badges .success-badge{background-color:#d3e8d1;color:#447340}.badge.success-badge:hover{background-color:#c3e0c0;color:#447340}.badge.failure-badge,.nav-tab-inactive:hover .badge.failure-badge,:hover>.inverted-badges .failure-badge{background-color:#fad7c1;color:#a24b16}.badge.failure-badge:hover{background-color:#f8c8a9;color:#a24b16}.badge.info-badge,.nav-tab-inactive:hover .badge.info-badge,:hover>.inverted-badges .info-badge{background-color:#d2e6f4;color:#2b71a3}.badge.info-badge:hover{background-color:#bedbef;color:#2b71a3}.badge.neutral-badge,.nav-tab-inactive:hover .badge.neutral-badge,:hover>.inverted-badges .neutral-badge{background-color:#e2e5e5;color:#6c7e7e}.badge.neutral-badge:hover{background-color:#d5d9d9;color:#6c7e7e}.badge.special-badge,.nav-tab-inactive:hover .badge.special-badge,:hover>.inverted-badges .special-badge{background-color:#dfc5ef;color:#6e249c}.badge.special-badge:hover{background-color:#d4b1e9;color:#6e249c}.inverted-badges .badge,.nav-tab-inactive .badge{background-color:#a7aaad;color:#fff}.nav-tab-inactive{background:transparent}.nav-tab-button .dashicons-external{color:#666;font-size:15px}.snippet-activation-switch,.snippet-execution-button,input[type=checkbox].switch{display:block;position:relative}.snippet-activation-switch,input[type=checkbox].switch{-webkit-appearance:none;-moz-appearance:none;appearance:none;block-size:19px;border:1px solid #2271b1;border-radius:34px;box-sizing:border-box;cursor:pointer;inline-size:32px;margin:0;outline:0;text-align:start}.snippet-activation-switch:before,input[type=checkbox].switch:before{background-color:#2271b1;block-size:13px;border-radius:50%;content:"";display:inline-block;inline-size:13px;margin:2px;transition:all .4s}.active-snippet .snippet-activation-switch,input[type=checkbox].switch:checked{background-color:#0073aa}.active-snippet .snippet-activation-switch:before,input[type=checkbox].switch:checked:before{background-color:#fff;transform:translateX(-100%)}.erroneous-snippet .snippet-activation-switch:before{color:#bbb;content:"!";font-weight:700;line-height:1;text-align:center;transform:translateX(-50%)}a.snippet-condition-count{align-items:center;block-size:29px;border:1.8px solid;border-radius:50%;box-sizing:border-box;display:flex;inline-size:29px;justify-content:center}.inactive-snippet a.snippet-condition-count{color:#ccc}.active-snippet a.snippet-condition-count{color:#2271b1;font-weight:700}.snippet-execution-button{block-size:0;border-block:9px solid transparent;border-inline-start:10px solid #ccc;inline-size:0;margin-block-start:9px;margin-inline-start:11px}.snippet-execution-button:before{border:1.8px solid #ccc;border-radius:50%;content:"";inset:-14px -8px -14px -21px;position:absolute;z-index:2}.snippet-execution-button:hover{border-inline-start-color:#2271b1;transition:border-right-color .6s}.snippet-execution-button:hover:before{border-color:#2271b1;transition:border-color .6s}.code-snippets-select input[type=text]:focus{box-shadow:none}.help-tooltip{border-block-end:1px dotted;display:inline-flex;flex-direction:column;justify-content:center;position:relative;vertical-align:middle}.help-tooltip-anchor{background:transparent!important;cursor:help;display:inline-block;font-size:10px;padding-block:.3em 0;padding-inline:.3em}.tooltip{cursor:help!important;display:inline-block;position:relative}.tooltip .dashicons{color:#789}.tooltip.badge{display:inline-flex}.tooltip.badge .dashicons{color:inherit}.tooltip-content,.tooltip:before{opacity:0;pointer-events:none;position:absolute;transform:translateZ(0);transition:opacity .2s ease-in-out,visibility .2s ease-in-out,transform .2s cubic-bezier(.71,1.7,.77,1.24);visibility:hidden}.tooltip:before{background:transparent;border:6px solid transparent;content:"";z-index:1001}.tooltip-inline:before{inset-block-start:4px}.tooltip-content{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background-color:rgba(51,51,51,.9);border-radius:6px;color:#fff;font-size:small;font-weight:400;min-inline-size:200px;padding:8px;position:absolute;text-transform:none;z-index:1000}.tooltip-block .tooltip-content{margin-inline-start:-80px}.tooltip-inline .tooltip-content{margin-block-end:-16px;margin-inline-start:0}.tooltip-inline.tooltip-start .tooltip-content{inset-block-start:-50%}.tooltip-block.tooltip-start:before{border-block-start-color:rgba(51,51,51,.9);margin-block-end:-12px;margin-inline-start:-6px}.tooltip-block.tooltip-start .tooltip-content,.tooltip-block.tooltip-start:before{inset-block-end:100%;inset-inline-start:50%}.tooltip-block.tooltip-end:before{border-block-end-color:rgba(51,51,51,.9);border-block-start-color:transparent;margin-block:-12px 0}.tooltip-block.tooltip-end .tooltip-content,.tooltip-block.tooltip-end:before{inset-block:100% auto;margin-inline-start:25%}.tooltip-block.tooltip-end .tooltip-content{inset-inline-end:-70%}.tooltip-inline.tooltip-start:before{border-block-start-color:transparent;border-inline-start-color:rgba(51,51,51,.9);inset-block-end:50%;margin-block-end:0;margin-inline:0 -12px}.tooltip-inline.tooltip-start .tooltip-content,.tooltip-inline.tooltip-start:before{inset-inline:auto 100%}.tooltip-inline.tooltip-end:before{border-block-start-color:transparent;border-inline-end-color:rgba(51,51,51,.9);margin-block-end:0;margin-inline-start:-12px}.tooltip-inline.tooltip-end .tooltip-content,.tooltip-inline.tooltip-end:before{inset-inline-start:100%}.tooltip-inline.tooltip-end .tooltip-content{inset-block-start:-50%}.tooltip:focus .tooltip-content,.tooltip:focus:before,.tooltip:hover .tooltip-content,.tooltip:hover:before{opacity:1;visibility:visible}.tooltip-block.tooltip-start:focus .tooltip-content,.tooltip-block.tooltip-start:focus:before,.tooltip-block.tooltip-start:hover .tooltip-content,.tooltip-block.tooltip-start:hover:before{transform:translateY(-10px)}.tooltip-block.tooltip-end:focus .tooltip-content,.tooltip-block.tooltip-end:focus:before,.tooltip-block.tooltip-end:hover .tooltip-content,.tooltip-block.tooltip-end:hover:before{transform:translateY(10px)}.tooltip-inline.tooltip-end:focus .tooltip-content,.tooltip-inline.tooltip-end:focus:before,.tooltip-inline.tooltip-end:hover .tooltip-content,.tooltip-inline.tooltip-end:hover:before{transform:translateX(-10px)}.tooltip-inline.tooltip-start:focus .tooltip-content,.tooltip-inline.tooltip-start:focus:before,.tooltip-inline.tooltip-start:hover .tooltip-content,.tooltip-inline.tooltip-start:hover:before{transform:translateX(10px)}.code-snippets-upsell-banner{align-items:center;background:#fff;border:1px solid #c3c4c7;border-radius:5px;display:flex;flex-direction:row;gap:10px;padding:12px}.code-snippets-upsell-banner p{margin:0}.code-snippets-upsell-banner .components-external-link__contents{text-decoration:none}.code-snippets-upsell-banner .button-primary{background-color:#d46f4d;border:0;font-weight:700;margin-inline-start:auto}.code-snippets-upsell-banner .button-primary:focus,.code-snippets-upsell-banner .button-primary:hover{background-color:#c0532e}.code-snippets-upsell-banner .button-link.button-small{color:#a7aaad;font-weight:400;line-height:1;padding:0;text-decoration:none}.code-snippets-upsell-dialog{background:linear-gradient(-116.04deg,#edfcff -.75%,#fcdfd4 93.04%);border-radius:8px;box-shadow:0 4px 80px rgba(0,0,0,.1);color:#1c3f41;font-family:SF Pro,sans-serif;inline-size:794px;line-height:1.5;max-block-size:unset}.code-snippets-upsell-dialog .components-modal__content{margin:0;padding-block:48px;padding-inline:80px}.code-snippets-upsell-dialog .components-modal__content>div:last-child{align-items:center;display:flex;flex-direction:column;gap:18px;overflow:auto;text-align:center}.code-snippets-upsell-dialog h1{font-size:32px;margin:0}.code-snippets-upsell-dialog h1 span{color:#d46f4d}.code-snippets-upsell-dialog p{margin-block:0;margin-inline:2em}.code-snippets-upsell-dialog h1+p{font-size:16px}.code-snippets-upsell-dialog img{inline-size:82px}.code-snippets-upsell-dialog h2{font-size:12px;text-transform:uppercase}.code-snippets-upsell-dialog ul{display:grid;grid-auto-flow:column;grid-template-rows:1fr 1fr 1fr 1fr 1fr;inline-size:100%}.code-snippets-upsell-dialog li{display:flex;flex-flow:row;font-size:14px;gap:11px}.code-snippets-upsell-dialog li:before{align-items:center;background-color:#0ca0a9;block-size:24px;border-radius:50%;color:#fff;content:"✓";display:flex;inline-size:24px;justify-content:center}.code-snippets-upsell-dialog .button.button-large{background-color:#d46f4d;font-size:16px;line-height:inherit;margin-block:16px 24px;margin-inline:auto;padding-block:15px;padding-inline:20px}.code-snippets-upsell-dialog .button.button-large:hover{background-color:#c0532e}.snippet-type-option{align-items:center;display:flex;flex-flow:row;justify-content:space-between}.snippet-type-option .small-badge{margin-inline-start:.5em}.snippet-type-option .badge{float:inline-end}.conditions-editor-open .button.button-large{align-items:center;block-size:100%;display:flex;font-weight:700;gap:5px;min-block-size:45px;overflow:hidden}.conditions-editor-open .button.button-large.no-condition{background-color:#fff;border-color:#ccc}.conditions-editor-open .button.button-large .badge{margin-block:3px;margin-inline:0}.conditions-editor-open .button.button-large .beta-badge{border:1px solid;margin-inline-start:auto}.conditions-editor-open .button.button-large .pro-badge{background:transparent;border:1px solid;color:currentcolor}@media screen and (width >= 1080px)and (width <= 1250px){.conditions-editor-open .button.button-large .pro-badge{display:none}}.snippet-form{display:grid;gap:30px;grid-template-areas:"upper sidebar" "lower sidebar";grid-template-columns:1fr 280px;margin-block-start:10px;max-inline-size:1440px;transition:all .7s}.snippet-form.snippet-form-expanded{grid-template-areas:"upper upper" "lower sidebar"}.snippet-form .snippet-form-upper{grid-area:upper}.snippet-form .snippet-form-lower{grid-area:lower}.snippet-form .snippet-editor-sidebar{grid-area:sidebar;max-inline-size:280px}@media(width <= 1024px){.snippet-form{grid-template-columns:1fr}}.snippet-form #titlediv #title{block-size:45px}.snippet-form h2,.snippet-form h3{font-size:1.16em;margin-block:25px 15px;margin-inline:0}.snippet-form h2 label,.snippet-form h3 label{cursor:auto}.snippet-form h2 .button,.snippet-form h3 .button{font-weight:400}.above-editor-container{display:flex;flex-flow:row wrap;gap:1em}.above-editor-container>*{display:flex;flex:1;flex-flow:column;min-inline-size:180px}.snippet-editor-sidebar .button-large{block-size:48px}.snippet-editor-sidebar .row-actions{display:flex}.snippet-editor-sidebar .row-actions .button{background:none;border:none}.snippet-editor-sidebar .delete-button{color:#cc1818}.snippet-editor-sidebar .delete-button:hover{color:#9e1313}.snippet-editor-sidebar .delete-button:focus{border-color:#710d0d;color:#710d0d}.snippet-editor-sidebar .help-tooltip{margin-block:0;margin-inline:5px auto}.snippet-editor-sidebar .box{background-color:#fff;border:1px solid #ccc;border-radius:4px;display:flex;flex-flow:column;gap:1em;padding:1.5em}.snippet-editor-sidebar .box h4{margin-block:.5em;margin-inline:0}.snippet-editor-sidebar .box>div{align-items:center;display:flex;flex-flow:row wrap;gap:5px}.snippet-editor-sidebar .box>div>:last-child{margin-inline-start:auto}.snippet-editor-sidebar .components-form-token-field{inline-size:100%}.snippet-editor-sidebar .generate-button{margin-inline-start:auto}.snippet-priority input{inline-size:4em}p.submit{display:flex;flex-flow:column;gap:8px;margin-block-start:17px;padding-block-start:0}.shortcode-tag-wrapper .code-snippets-copy-text{vertical-align:middle}.CodeMirror,.snippet-form textarea{font-family:monospace;inline-size:100%}.CodeMirror-sizer{box-sizing:border-box;min-block-size:300px!important;padding-block-end:1.5em!important}.CodeMirror-sizer:after{inset-block-end:0;position:absolute}.snippet-form.php-snippet .CodeMirror-sizer{padding-block-end:0!important}.snippet-form.php-snippet .CodeMirror-sizer:before{content:"<?php"}.snippet-form.css-snippet .CodeMirror-sizer:before{content:"<style>"}.snippet-form.css-snippet .CodeMirror-sizer:after{content:"</style>"}.snippet-form.js-snippet .CodeMirror-sizer:before{content:"<script>"}.snippet-form.js-snippet .CodeMirror-sizer:after{content:"</script>"}.snippet-form.html-snippet .CodeMirror-sizer:before{content:"<!-- begin content -->"}.snippet-form.html-snippet .CodeMirror-sizer:after{content:"<!-- end content -->"}.snippet-editor{position:relative}.snippet-editor-help{inset-block-start:5px;inset-inline-end:5px;position:absolute}.snippet-editor-help td:first-child{padding-inline-end:.5em}@media screen and (width >= 512px){.snippet-editor-help td{white-space:nowrap}}.snippet-editor-help .mac-key{display:none}.snippet-editor-help .platform-mac .mac-key{display:inline}.snippet-editor-help .platform-mac .pc-key{display:none}.snippet-condition-editor-container{background:#f6f7f7;border:1px solid #c3c4c7;margin-block-start:33px;padding:32px}.cloud-create-modal .components-modal__content{min-inline-size:550px}.cloud-create-modal .action-buttons{display:flex;justify-content:flex-end}.cloud-create-modal .components-button.is-secondary{box-shadow:none}.cloud-create-modal .notice{margin-inline:0}.generate-button{align-items:center;display:flex}.generate-button .dashicons-warning{color:#b32d2e}.code-line-explanation{align-items:center;background-color:#fff;border:1px solid #bbb;border-inline-end:0;border-inline-start:0;color:#666;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-style:italic;margin:0;padding-block:0;padding-inline:8px}.code-line-explanation img{block-size:1rem;padding-inline-end:5px}.cloud-connect-modal .icons-group{align-items:center;display:flex;justify-content:center}.cloud-connect-modal .icons-group .dashicons{block-size:50px;font-size:50px;inline-size:50px}.cloud-connect-modal .action-buttons{display:flex;justify-content:flex-end}.notice.error blockquote{margin-block-end:0}.code-snippets-copy-text{color:inherit}.button svg{block-size:1rem;line-height:1;margin:0;vertical-align:middle}.snippet-description-container{margin-block-start:25px}.snippet-description-container .wp-editor-tools{padding-block-start:5px}.snippet-description-container .wp-editor-tabs{float:inline-start}.snippet-description-container .generate-button{float:inline-end;margin-block-start:37px;position:relative;z-index:99}.above-snippet-code{align-items:center;display:flex;gap:8px;margin-block:25px 15px;margin-inline:0}.above-snippet-code h2{margin:0;margin-inline-end:auto}.above-snippet-code .expand-editor-button{align-items:center;display:flex;gap:5px}.above-snippet-code .expand-editor-button .dashicons{block-size:18px;font-size:18px;inline-size:18px}form.condition-snippet .snippet-code-container{display:none}
     1.CodeMirror{background-color:#fff;block-size:auto!important;border:1px solid #dfdfdf;border-radius:3px}.CodeMirror-code{outline:none}.CodeMirror-focused .cm-matchhighlight{color:#fff!important;outline:1px solid green}.CodeMirror-sizer:after,.CodeMirror-sizer:before{color:#bbb;display:block}.CodeMirror-sizer:before{content:"";padding-block-end:5px}.cm-s-rubyblue .CodeMirror-cursor{border-inline-start:1px solid #fff!important}.CodeMirror-lint-marker-multiple,[class*=CodeMirror-lint-marker],[class*=CodeMirror-lint-message]{background-image:none}.CodeMirror-lint-marker-error,.CodeMirror-lint-marker-warning{cursor:help}.CodeMirror-lint-marker-multiple{inset-block-start:0;position:absolute}[class*=CodeMirror-lint-marker]:before{font:normal 18px/1 dashicons;inset-block-start:-2px;position:relative}[class*=CodeMirror-lint-message]:before{font:normal 16px/1 dashicons;inset-inline-start:16px;position:absolute}.CodeMirror-lint-message-error,.CodeMirror-lint-message-warning{box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin-block:5px 2px;margin-inline:0;padding-block:3px;padding-inline:28px 12px}.CodeMirror-lint-message-warning{background-color:#fff8e5;border-inline-start:4px solid #ffb900}.CodeMirror-lint-marker-warning:before,.CodeMirror-lint-message-warning:before{color:#f6a306;content:""}.CodeMirror-lint-message-error{background-color:#fbeaea;border-inline-start:4px solid #dc3232}.CodeMirror-lint-marker-error:before,.CodeMirror-lint-message-error:before{color:#dc3232;content:""}.CodeMirror-lint-tooltip{background:none;border:none;border-radius:0;direction:rtl}.CodeMirror .CodeMirror-matchingbracket{background:rgba(255,150,0,.3);color:inherit}.CodeMirror .CodeMirror-linenumber{color:#666}.CodeMirror-foldmarker{color:inherit;font-weight:700;margin-inline:.25em}.badge{align-items:center;border-radius:3px;box-sizing:border-box;display:inline-flex;font-size:12px;font-weight:700;gap:5px;justify-content:center;line-height:1;min-block-size:24px;min-inline-size:43px;padding-block:0;padding-inline:3px;text-align:center;text-transform:uppercase}.badge .dashicons{block-size:18px;font-size:18px;inline-size:18px}.small-badge{block-size:auto;font-size:smaller;inline-size:auto;padding-block:0;padding-inline:.5em}.wp-core-ui .button.nav-tab-button{align-items:center;align-self:center;background:#f6f7f7;border-color:#f6f7f7;color:#a7aaad;display:flex;float:inline-end;gap:2px;justify-content:center;margin-inline-start:.5em}.badge.php-badge,.nav-tab-inactive:hover .badge.php-badge,:hover>.inverted-badges .php-badge{background-color:#1d97c6;color:#fff}.badge.php-badge:hover{background-color:#1a86b0;color:#fff}.badge.html-badge,.nav-tab-inactive:hover .badge.html-badge,:hover>.inverted-badges .html-badge{background-color:#ef6a36;color:#fff}.badge.html-badge:hover{background-color:#ed581e;color:#fff}.badge.css-badge,.nav-tab-inactive:hover .badge.css-badge,:hover>.inverted-badges .css-badge{background-color:#9b59b6;color:#fff}.badge.css-badge:hover{background-color:#8f4bab;color:#fff}.badge.js-badge,.nav-tab-inactive:hover .badge.js-badge,:hover>.inverted-badges .js-badge{background-color:#ffeb3b;color:#1c1f20}.badge.js-badge:hover{background-color:#ffe822;color:#1c1f20}.badge.cond-badge,.nav-tab-inactive:hover .badge.cond-badge,:hover>.inverted-badges .cond-badge{background-color:#2eae95;color:#fff}.badge.cond-badge:hover{background-color:#299a84;color:#fff}.badge.core-badge,.nav-tab-inactive:hover .badge.core-badge,:hover>.inverted-badges .core-badge{background-color:#61c5cb;color:#fff}.badge.core-badge:hover{background-color:#4ebec5;color:#fff}.badge.pro-badge,.nav-tab-inactive:hover .badge.pro-badge,:hover>.inverted-badges .pro-badge{background-color:#f7e8e3;color:#df9279}.badge.pro-badge:hover{background-color:#f1d8cf;color:#df9279}.badge.cloud-badge,.nav-tab-inactive:hover .badge.cloud-badge,:hover>.inverted-badges .cloud-badge{background-color:#00bcd4;color:#fff}.badge.cloud-badge:hover{background-color:#00a5bb;color:#fff}.badge.bundles-badge,.nav-tab-inactive:hover .badge.bundles-badge,:hover>.inverted-badges .bundles-badge{background-color:#50575e;color:#fff}.badge.bundles-badge:hover{background-color:#444a50;color:#fff}.badge.cloud_search-badge,.nav-tab-inactive:hover .badge.cloud_search-badge,:hover>.inverted-badges .cloud_search-badge{background-color:#ff9800;color:#fff}.badge.cloud_search-badge:hover{background-color:#e68900;color:#fff}.badge.private-badge,.nav-tab-inactive:hover .badge.private-badge,:hover>.inverted-badges .private-badge{background-color:#f7e6be;color:#ca961b}.badge.private-badge:hover{background-color:#f4dda7;color:#ca961b}.badge.public-badge,.nav-tab-inactive:hover .badge.public-badge,:hover>.inverted-badges .public-badge{background-color:#dbebf7;color:#2271b1}.badge.public-badge:hover{background-color:#c6dff2;color:#2271b1}.badge.success-badge,.nav-tab-inactive:hover .badge.success-badge,:hover>.inverted-badges .success-badge{background-color:#d3e8d1;color:#447340}.badge.success-badge:hover{background-color:#c3e0c0;color:#447340}.badge.failure-badge,.nav-tab-inactive:hover .badge.failure-badge,:hover>.inverted-badges .failure-badge{background-color:#fad7c1;color:#a24b16}.badge.failure-badge:hover{background-color:#f8c8a9;color:#a24b16}.badge.info-badge,.nav-tab-inactive:hover .badge.info-badge,:hover>.inverted-badges .info-badge{background-color:#d2e6f4;color:#2b71a3}.badge.info-badge:hover{background-color:#bedbef;color:#2b71a3}.badge.neutral-badge,.nav-tab-inactive:hover .badge.neutral-badge,:hover>.inverted-badges .neutral-badge{background-color:#e2e5e5;color:#6c7e7e}.badge.neutral-badge:hover{background-color:#d5d9d9;color:#6c7e7e}.badge.special-badge,.nav-tab-inactive:hover .badge.special-badge,:hover>.inverted-badges .special-badge{background-color:#dfc5ef;color:#6e249c}.badge.special-badge:hover{background-color:#d4b1e9;color:#6e249c}.inverted-badges .badge,.nav-tab-inactive .badge{background-color:#a7aaad;color:#fff}.nav-tab-inactive{background:transparent}.nav-tab-button .dashicons-external{color:#666;font-size:15px}.snippet-activation-switch,.snippet-execution-button,input[type=checkbox].switch{display:block;position:relative}.snippet-activation-switch,input[type=checkbox].switch{-webkit-appearance:none;-moz-appearance:none;appearance:none;block-size:19px;border:1px solid #789;border-radius:34px;box-sizing:border-box;cursor:pointer;inline-size:32px;margin:0;outline:0;text-align:start}.snippet-activation-switch:before,input[type=checkbox].switch:before{background-color:#789;block-size:13px;border-radius:50%;content:"";display:inline-block;inline-size:13px;margin:2px;transition:all .1s}.active-snippet .snippet-activation-switch,input[type=checkbox].switch:checked{background-color:#0073aa}.active-snippet .snippet-activation-switch:before,input[type=checkbox].switch:checked:before{background-color:#fff;transform:translateX(-100%)}.erroneous-snippet .snippet-activation-switch:before{color:#bbb;content:"!";font-weight:700;line-height:1;text-align:center;transform:translateX(-50%)}a.snippet-condition-count{align-items:center;block-size:29px;border:1.8px solid;border-radius:50%;box-sizing:border-box;display:flex;inline-size:29px;justify-content:center}.inactive-snippet a.snippet-condition-count{color:#ccc}.active-snippet a.snippet-condition-count{color:#2271b1;font-weight:700}.snippet-execution-button{block-size:0;border-block:9px solid transparent;border-inline-start:10px solid #ccc;inline-size:0;margin-block-start:9px;margin-inline-start:11px}.snippet-execution-button:before{border:1.8px solid #ccc;border-radius:50%;content:"";inset:-14px -8px -14px -21px;position:absolute;z-index:2}.snippet-execution-button:hover{border-inline-start-color:#2271b1;transition:border-right-color .6s}.snippet-execution-button:hover:before{border-color:#2271b1;transition:border-color .6s}.code-snippets-select input[type=text]:focus{box-shadow:none}.help-tooltip{border-block-end:1px dotted;display:inline-flex;flex-direction:column;justify-content:center;position:relative;vertical-align:middle}.help-tooltip-anchor{background:transparent!important;cursor:help;display:inline-block;font-size:10px;padding-block:.3em 0;padding-inline:.3em}.tooltip{cursor:help!important;display:inline-block;position:relative}.tooltip .dashicons{color:#789}.tooltip.badge{display:inline-flex}.tooltip.badge .dashicons{color:inherit}.tooltip-content,.tooltip:before{opacity:0;pointer-events:none;position:absolute;transform:translateZ(0);transition:opacity .2s ease-in-out,visibility .2s ease-in-out,transform .2s cubic-bezier(.71,1.7,.77,1.24);visibility:hidden}.tooltip:before{background:transparent;border:6px solid transparent;content:"";z-index:1001}.tooltip-inline:before{inset-block-start:4px}.tooltip-content{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background-color:rgba(51,51,51,.9);border-radius:6px;color:#fff;font-size:small;font-weight:400;min-inline-size:200px;padding:8px;position:absolute;text-transform:none;z-index:1000}.tooltip-block .tooltip-content{margin-inline-start:-80px}.tooltip-inline .tooltip-content{margin-block-end:-16px;margin-inline-start:0}.tooltip-inline.tooltip-start .tooltip-content{inset-block-start:-50%}.tooltip-block.tooltip-start:before{border-block-start-color:rgba(51,51,51,.9);margin-block-end:-12px;margin-inline-start:-6px}.tooltip-block.tooltip-start .tooltip-content,.tooltip-block.tooltip-start:before{inset-block-end:100%;inset-inline-start:50%}.tooltip-block.tooltip-end:before{border-block-end-color:rgba(51,51,51,.9);border-block-start-color:transparent;margin-block:-12px 0}.tooltip-block.tooltip-end .tooltip-content,.tooltip-block.tooltip-end:before{inset-block:100% auto;margin-inline-start:25%}.tooltip-block.tooltip-end .tooltip-content{inset-inline-end:-70%}.tooltip-inline.tooltip-start:before{border-block-start-color:transparent;border-inline-start-color:rgba(51,51,51,.9);inset-block-end:50%;margin-block-end:0;margin-inline:0 -12px}.tooltip-inline.tooltip-start .tooltip-content,.tooltip-inline.tooltip-start:before{inset-inline:auto 100%}.tooltip-inline.tooltip-end:before{border-block-start-color:transparent;border-inline-end-color:rgba(51,51,51,.9);margin-block-end:0;margin-inline-start:-12px}.tooltip-inline.tooltip-end .tooltip-content,.tooltip-inline.tooltip-end:before{inset-inline-start:100%}.tooltip-inline.tooltip-end .tooltip-content{inset-block-start:-50%}.tooltip:focus .tooltip-content,.tooltip:focus:before,.tooltip:hover .tooltip-content,.tooltip:hover:before{opacity:1;visibility:visible}.tooltip-block.tooltip-start:focus .tooltip-content,.tooltip-block.tooltip-start:focus:before,.tooltip-block.tooltip-start:hover .tooltip-content,.tooltip-block.tooltip-start:hover:before{transform:translateY(-10px)}.tooltip-block.tooltip-end:focus .tooltip-content,.tooltip-block.tooltip-end:focus:before,.tooltip-block.tooltip-end:hover .tooltip-content,.tooltip-block.tooltip-end:hover:before{transform:translateY(10px)}.tooltip-inline.tooltip-end:focus .tooltip-content,.tooltip-inline.tooltip-end:focus:before,.tooltip-inline.tooltip-end:hover .tooltip-content,.tooltip-inline.tooltip-end:hover:before{transform:translateX(-10px)}.tooltip-inline.tooltip-start:focus .tooltip-content,.tooltip-inline.tooltip-start:focus:before,.tooltip-inline.tooltip-start:hover .tooltip-content,.tooltip-inline.tooltip-start:hover:before{transform:translateX(10px)}.code-snippets-modal .components-modal__header{padding-block-end:24px}.code-snippets-modal .components-modal__content{background:#f6f7f7;display:flex;flex-flow:column;max-inline-size:100%;overflow:initial;padding:0}.code-snippets-modal .modal-content{display:flex;flex:1;flex-flow:column;padding-block:36px;padding-inline:45px}.code-snippets-modal .components-modal__header+div{display:flex;flex:1;flex-flow:column;overflow-y:auto}.code-snippets-modal .modal-footer{align-items:center;background:#f6f7f7;border-block-start:1px solid #e2e2e4;display:flex;flex-flow:row-reverse;inline-size:100%;inset-block-end:0;justify-content:space-between;padding:11px 19px}.code-snippets-modal .modal-footer .button-link{text-decoration:none}.code-snippets-modal .modal-footer .button-large{block-size:45px}.code-snippets-modal .modal-footer .button-large.button-primary{padding:0 30px}.code-snippets-upsell-banner{align-items:center;background:#fff;border:1px solid #ccc;border-radius:5px;display:flex;flex-direction:row;gap:10px;padding:12px}.code-snippets-upsell-banner p{margin:0}.code-snippets-upsell-banner .components-external-link__contents{text-decoration:none}.code-snippets-upsell-banner .button-primary{background-color:#d46f4d;border:0;font-weight:700;margin-inline-start:auto}.code-snippets-upsell-banner .button-primary:focus,.code-snippets-upsell-banner .button-primary:hover{background-color:#c0532e}.code-snippets-upsell-banner .button-link.button-small{color:#a7aaad;font-weight:400;line-height:1;padding:0;text-decoration:none}.code-snippets-upsell-dialog{background:linear-gradient(-116.04deg,#edfcff -.75%,#fcdfd4 93.04%);border-radius:8px;box-shadow:0 4px 80px rgba(0,0,0,.1);color:#1c3f41;font-family:SF Pro,sans-serif;inline-size:794px;line-height:1.5;max-block-size:unset}.code-snippets-upsell-dialog .components-modal__content{margin:0;padding-block:48px;padding-inline:80px}.code-snippets-upsell-dialog .components-modal__content>div:last-child{align-items:center;display:flex;flex-direction:column;gap:18px;overflow:auto;text-align:center}.code-snippets-upsell-dialog h1{font-size:32px;margin:0}.code-snippets-upsell-dialog h1 span{color:#d46f4d}.code-snippets-upsell-dialog p{margin-block:0;margin-inline:2em}.code-snippets-upsell-dialog h1+p{font-size:16px}.code-snippets-upsell-dialog img{inline-size:82px}.code-snippets-upsell-dialog h2{font-size:12px;text-transform:uppercase}.code-snippets-upsell-dialog ul{display:grid;grid-auto-flow:column;grid-template-rows:1fr 1fr 1fr 1fr 1fr;inline-size:100%}.code-snippets-upsell-dialog li{display:flex;flex-flow:row;font-size:14px;gap:11px}.code-snippets-upsell-dialog li:before{align-items:center;background-color:#0ca0a9;block-size:24px;border-radius:50%;color:#fff;content:"✓";display:flex;inline-size:24px;justify-content:center}.code-snippets-upsell-dialog .button.button-large{background-color:#d46f4d;border-color:currentcolor;font-size:16px;line-height:inherit;margin-block:16px 24px;margin-inline:auto;padding-block:15px;padding-inline:20px}.code-snippets-upsell-dialog .button.button-large:hover{background-color:#c0532e}.snippet-form #titlediv #title,.snippet-type-container{block-size:45px;border-color:#ccc}.snippet-type-option{align-items:center;display:flex;flex-flow:row;justify-content:space-between}.snippet-type-option .small-badge{margin-inline-start:.5em}.snippet-type-option .badge{float:inline-end}.conditions-editor-open .button.button-large{align-items:center;block-size:100%;border-color:#ccc;display:flex;gap:8px;overflow:hidden;padding-block:6px;padding-inline:12px}.conditions-editor-open.no-condition .cond-badge{background:transparent;border:1px solid;color:inherit}.conditions-editor-open.no-condition:hover .cond-badge{background:#2271b1;border-color:#2271b1;color:#fff}.snippet-form{display:grid;gap:30px;grid-template-areas:"upper sidebar" "lower sidebar";grid-template-columns:1fr 321px;margin-block-start:10px;transition:all .7s}.snippet-form.snippet-form-expanded{grid-template-areas:"upper upper" "lower sidebar"}.snippet-form .snippet-form-upper{grid-area:upper}.snippet-form .snippet-form-lower{grid-area:lower}.snippet-form .snippet-editor-sidebar{grid-area:span 3/sidebar;max-inline-size:321px}@media(width <= 1024px){.snippet-form{grid-template-columns:1fr}}.snippet-form h2,.snippet-form h3{font-size:1.16em;margin-block:25px 15px;margin-inline:0}.snippet-form h2 label,.snippet-form h3 label{cursor:auto}.snippet-form h2 .button,.snippet-form h3 .button{font-weight:400}.snippet-editor-sidebar .button-large{block-size:48px}.snippet-editor-sidebar .row-actions{display:flex}.snippet-editor-sidebar .row-actions .button{background:none;border:none}.snippet-editor-sidebar .delete-button{color:#cc1818}.snippet-editor-sidebar .delete-button:hover{color:#9e1313}.snippet-editor-sidebar .delete-button:focus{border-color:#710d0d;color:#710d0d}.snippet-editor-sidebar .help-tooltip{margin-block:0;margin-inline:5px auto}.snippet-editor-sidebar .box{background-color:#fff;border:1px solid #ccc;border-radius:4px;display:flex;flex-flow:column;gap:1em;padding:1.5em}.snippet-editor-sidebar .box h4{margin-block:.5em;margin-inline:0}.snippet-editor-sidebar .box .inline-form-field{align-items:center;display:flex;flex-flow:row wrap;gap:5px}.snippet-editor-sidebar .box .inline-form-field>:last-child{margin-inline-start:auto}.snippet-editor-sidebar .box .block-form-field{display:flex;flex-flow:column;gap:4px}.snippet-editor-sidebar .box .block-form-field h4{margin-block-end:0}.snippet-editor-sidebar h4 .badge{float:inline-end}.snippet-editor-sidebar h4 .badge+.badge{margin-inline-end:5px}.snippet-editor-sidebar .beta-badge{border:1px solid;color:#2271b1}.snippet-editor-sidebar .components-form-token-field{inline-size:100%}.snippet-editor-sidebar .generate-button{margin-inline-start:auto}.snippet-priority input{inline-size:4em}p.submit{display:flex;flex-flow:column;gap:8px;margin-block-start:17px;padding-block-start:0}.activation-switch-container label{display:flex;flex-flow:row;gap:5px;justify-content:center}.shortcode-tag-wrapper{align-items:center;background:#fff;box-sizing:border-box;display:flex;justify-content:space-between;min-block-size:54px;padding:10px}.shortcode-tag-wrapper code{background:transparent;padding-inline:.5em;text-indent:-.5em}.code-snippets-copy-text.button{align-items:center;display:flex;gap:3px}.code-snippets-copy-text.button .dashicons{block-size:18px;font-size:18px;inline-size:18px}.code-snippets-copy-text.button .spinner-wrapper{align-items:center;block-size:18px;display:flex;inline-size:18px}.code-snippets-copy-text.button .components-spinner{block-size:12px}.code-snippets-modal p h4{margin-block-start:0}.CodeMirror,.snippet-form textarea{font-family:monospace;inline-size:100%}.CodeMirror-sizer{box-sizing:border-box;min-block-size:300px!important;padding-block-end:1.5em!important}.CodeMirror-sizer:after{inset-block-end:0;position:absolute}.snippet-form.php-snippet .CodeMirror-sizer{padding-block-end:0!important}.snippet-form.php-snippet .CodeMirror-sizer:before{content:"<?php"}.snippet-form.css-snippet .CodeMirror-sizer:before{content:"<style>"}.snippet-form.css-snippet .CodeMirror-sizer:after{content:"</style>"}.snippet-form.js-snippet .CodeMirror-sizer:before{content:"<script>"}.snippet-form.js-snippet .CodeMirror-sizer:after{content:"</script>"}.snippet-form.html-snippet .CodeMirror-sizer:before{content:"<!-- begin content -->"}.snippet-form.html-snippet .CodeMirror-sizer:after{content:"<!-- end content -->"}.snippet-editor{position:relative}.snippet-editor-help{inset-block-start:5px;inset-inline-end:5px;position:absolute}.snippet-editor-help td:first-child{padding-inline-end:.5em}@media screen and (width >= 512px){.snippet-editor-help td{white-space:nowrap}}.snippet-editor-help .mac-key{display:none}.snippet-editor-help .platform-mac .mac-key{display:inline}.snippet-editor-help .platform-mac .pc-key{display:none}.snippet-condition-editor-container{background:#f6f7f7;border:1px solid #c3c4c7;margin-block-start:33px;padding:32px}.cloud-create-modal .components-modal__content{min-inline-size:550px}.cloud-create-modal .action-buttons{display:flex;justify-content:flex-end}.cloud-create-modal .components-button.is-secondary{box-shadow:none}.cloud-create-modal .notice{margin-inline:0}.generate-button{align-items:center;display:flex}.generate-button .dashicons-warning{color:#b32d2e}.code-line-explanation{align-items:center;background-color:#fff;border:1px solid #bbb;border-inline-end:0;border-inline-start:0;color:#666;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-style:italic;margin:0;padding-block:0;padding-inline:8px}.code-line-explanation img{block-size:1rem;padding-inline-end:5px}.cloud-connect-modal .icons-group{align-items:center;display:flex;justify-content:center}.cloud-connect-modal .icons-group .dashicons{block-size:50px;font-size:50px;inline-size:50px}.cloud-connect-modal .action-buttons{display:flex;justify-content:flex-end}.notice.error blockquote{margin-block-end:0}.button svg{block-size:1rem;line-height:1;margin:0;vertical-align:middle}.snippet-description-container .wp-editor-tools{padding-block-start:5px}.snippet-description-container .wp-editor-tabs{float:inline-start}.snippet-description-container .generate-button{float:inline-end;margin-block-start:37px;position:relative;z-index:99}.components-form-token-field__input-container{background:#fff;border-color:#c3c4c7}.components-form-token-field__input-container>.components-flex{padding:12px}#titlediv,.snippet-type-container{margin-block-end:24px}.above-snippet-code{align-items:center;display:flex;gap:8px;margin-block:0 15px;margin-inline:0}.above-snippet-code h2{margin:0}.above-snippet-code .expand-editor-button{align-items:center;display:flex;gap:5px;margin-inline-end:auto}.above-snippet-code .expand-editor-button .dashicons{block-size:18px;font-size:18px;inline-size:18px}form.condition-snippet .snippet-code-container{display:none}
  • code-snippets/tags/3.7.0-beta/dist/edit.css

    r3345197 r3348557  
    1 .CodeMirror{background-color:#fff;block-size:auto!important;border:1px solid #dfdfdf;border-radius:3px}.CodeMirror-code{outline:none}.CodeMirror-focused .cm-matchhighlight{color:#fff!important;outline:1px solid green}.CodeMirror-sizer:after,.CodeMirror-sizer:before{color:#bbb;display:block}.CodeMirror-sizer:before{content:"";padding-block-end:5px}.cm-s-rubyblue .CodeMirror-cursor{border-inline-start:1px solid #fff!important}.CodeMirror-lint-marker-multiple,[class*=CodeMirror-lint-marker],[class*=CodeMirror-lint-message]{background-image:none}.CodeMirror-lint-marker-error,.CodeMirror-lint-marker-warning{cursor:help}.CodeMirror-lint-marker-multiple{inset-block-start:0;position:absolute}[class*=CodeMirror-lint-marker]:before{font:normal 18px/1 dashicons;inset-block-start:-2px;position:relative}[class*=CodeMirror-lint-message]:before{font:normal 16px/1 dashicons;inset-inline-start:16px;position:absolute}.CodeMirror-lint-message-error,.CodeMirror-lint-message-warning{box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin-block:5px 2px;margin-inline:0;padding-block:3px;padding-inline:28px 12px}.CodeMirror-lint-message-warning{background-color:#fff8e5;border-inline-start:4px solid #ffb900}.CodeMirror-lint-marker-warning:before,.CodeMirror-lint-message-warning:before{color:#f6a306;content:""}.CodeMirror-lint-message-error{background-color:#fbeaea;border-inline-start:4px solid #dc3232}.CodeMirror-lint-marker-error:before,.CodeMirror-lint-message-error:before{color:#dc3232;content:""}.CodeMirror-lint-tooltip{background:none;border:none;border-radius:0;direction:ltr}.CodeMirror .CodeMirror-matchingbracket{background:rgba(255,150,0,.3);color:inherit}.CodeMirror .CodeMirror-linenumber{color:#666}.CodeMirror-foldmarker{color:inherit;font-weight:700;margin-inline:.25em}.badge{align-items:center;border-radius:3px;box-sizing:border-box;display:inline-flex;font-size:12px;font-weight:700;gap:5px;justify-content:center;line-height:1;min-block-size:24px;min-inline-size:43px;padding-block:0;padding-inline:3px;text-align:center;text-transform:uppercase}.badge .dashicons{block-size:18px;font-size:18px;inline-size:18px}.small-badge{block-size:auto;font-size:smaller;inline-size:auto;padding-block:0;padding-inline:.5em}.wp-core-ui .button.nav-tab-button{align-items:center;align-self:center;background:#f6f7f7;border-color:#f6f7f7;color:#a7aaad;display:flex;float:inline-end;gap:2px;justify-content:center;margin-inline-start:.5em}.badge.php-badge,.nav-tab-inactive:hover .badge.php-badge,:hover>.inverted-badges .php-badge{background-color:#1d97c6;color:#fff}.badge.php-badge:hover{background-color:#1a86b0;color:#fff}.badge.html-badge,.nav-tab-inactive:hover .badge.html-badge,:hover>.inverted-badges .html-badge{background-color:#ef6a36;color:#fff}.badge.html-badge:hover{background-color:#ed581e;color:#fff}.badge.css-badge,.nav-tab-inactive:hover .badge.css-badge,:hover>.inverted-badges .css-badge{background-color:#9b59b6;color:#fff}.badge.css-badge:hover{background-color:#8f4bab;color:#fff}.badge.js-badge,.nav-tab-inactive:hover .badge.js-badge,:hover>.inverted-badges .js-badge{background-color:#ffeb3b;color:#1c1f20}.badge.js-badge:hover{background-color:#ffe822;color:#1c1f20}.badge.cond-badge,.nav-tab-inactive:hover .badge.cond-badge,:hover>.inverted-badges .cond-badge{background-color:#2eae95;color:#fff}.badge.cond-badge:hover{background-color:#299a84;color:#fff}.badge.core-badge,.nav-tab-inactive:hover .badge.core-badge,:hover>.inverted-badges .core-badge{background-color:#61c5cb;color:#fff}.badge.core-badge:hover{background-color:#4ebec5;color:#fff}.badge.pro-badge,.nav-tab-inactive:hover .badge.pro-badge,:hover>.inverted-badges .pro-badge{background-color:#f7e8e3;color:#df9279}.badge.pro-badge:hover{background-color:#f1d8cf;color:#df9279}.badge.cloud-badge,.nav-tab-inactive:hover .badge.cloud-badge,:hover>.inverted-badges .cloud-badge{background-color:#00bcd4;color:#fff}.badge.cloud-badge:hover{background-color:#00a5bb;color:#fff}.badge.bundles-badge,.nav-tab-inactive:hover .badge.bundles-badge,:hover>.inverted-badges .bundles-badge{background-color:#50575e;color:#fff}.badge.bundles-badge:hover{background-color:#444a50;color:#fff}.badge.cloud_search-badge,.nav-tab-inactive:hover .badge.cloud_search-badge,:hover>.inverted-badges .cloud_search-badge{background-color:#ff9800;color:#fff}.badge.cloud_search-badge:hover{background-color:#e68900;color:#fff}.badge.private-badge,.nav-tab-inactive:hover .badge.private-badge,:hover>.inverted-badges .private-badge{background-color:#f7e6be;color:#ca961b}.badge.private-badge:hover{background-color:#f4dda7;color:#ca961b}.badge.public-badge,.nav-tab-inactive:hover .badge.public-badge,:hover>.inverted-badges .public-badge{background-color:#dbebf7;color:#2271b1}.badge.public-badge:hover{background-color:#c6dff2;color:#2271b1}.badge.success-badge,.nav-tab-inactive:hover .badge.success-badge,:hover>.inverted-badges .success-badge{background-color:#d3e8d1;color:#447340}.badge.success-badge:hover{background-color:#c3e0c0;color:#447340}.badge.failure-badge,.nav-tab-inactive:hover .badge.failure-badge,:hover>.inverted-badges .failure-badge{background-color:#fad7c1;color:#a24b16}.badge.failure-badge:hover{background-color:#f8c8a9;color:#a24b16}.badge.info-badge,.nav-tab-inactive:hover .badge.info-badge,:hover>.inverted-badges .info-badge{background-color:#d2e6f4;color:#2b71a3}.badge.info-badge:hover{background-color:#bedbef;color:#2b71a3}.badge.neutral-badge,.nav-tab-inactive:hover .badge.neutral-badge,:hover>.inverted-badges .neutral-badge{background-color:#e2e5e5;color:#6c7e7e}.badge.neutral-badge:hover{background-color:#d5d9d9;color:#6c7e7e}.badge.special-badge,.nav-tab-inactive:hover .badge.special-badge,:hover>.inverted-badges .special-badge{background-color:#dfc5ef;color:#6e249c}.badge.special-badge:hover{background-color:#d4b1e9;color:#6e249c}.inverted-badges .badge,.nav-tab-inactive .badge{background-color:#a7aaad;color:#fff}.nav-tab-inactive{background:transparent}.nav-tab-button .dashicons-external{color:#666;font-size:15px}.snippet-activation-switch,.snippet-execution-button,input[type=checkbox].switch{display:block;position:relative}.snippet-activation-switch,input[type=checkbox].switch{-webkit-appearance:none;-moz-appearance:none;appearance:none;block-size:19px;border:1px solid #2271b1;border-radius:34px;box-sizing:border-box;cursor:pointer;inline-size:32px;margin:0;outline:0;text-align:start}.snippet-activation-switch:before,input[type=checkbox].switch:before{background-color:#2271b1;block-size:13px;border-radius:50%;content:"";display:inline-block;inline-size:13px;margin:2px;transition:all .4s}.active-snippet .snippet-activation-switch,input[type=checkbox].switch:checked{background-color:#0073aa}.active-snippet .snippet-activation-switch:before,input[type=checkbox].switch:checked:before{background-color:#fff;transform:translateX(100%)}.erroneous-snippet .snippet-activation-switch:before{color:#bbb;content:"!";font-weight:700;line-height:1;text-align:center;transform:translateX(50%)}a.snippet-condition-count{align-items:center;block-size:29px;border:1.8px solid;border-radius:50%;box-sizing:border-box;display:flex;inline-size:29px;justify-content:center}.inactive-snippet a.snippet-condition-count{color:#ccc}.active-snippet a.snippet-condition-count{color:#2271b1;font-weight:700}.snippet-execution-button{block-size:0;border-block:9px solid transparent;border-inline-start:10px solid #ccc;inline-size:0;margin-block-start:9px;margin-inline-start:11px}.snippet-execution-button:before{border:1.8px solid #ccc;border-radius:50%;content:"";inset:-14px -8px -14px -21px;position:absolute;z-index:2}.snippet-execution-button:hover{border-inline-start-color:#2271b1;transition:border-left-color .6s}.snippet-execution-button:hover:before{border-color:#2271b1;transition:border-color .6s}.code-snippets-select input[type=text]:focus{box-shadow:none}.help-tooltip{border-block-end:1px dotted;display:inline-flex;flex-direction:column;justify-content:center;position:relative;vertical-align:middle}.help-tooltip-anchor{background:transparent!important;cursor:help;display:inline-block;font-size:10px;padding-block:.3em 0;padding-inline:.3em}.tooltip{cursor:help!important;display:inline-block;position:relative}.tooltip .dashicons{color:#789}.tooltip.badge{display:inline-flex}.tooltip.badge .dashicons{color:inherit}.tooltip-content,.tooltip:before{opacity:0;pointer-events:none;position:absolute;transform:translateZ(0);transition:opacity .2s ease-in-out,visibility .2s ease-in-out,transform .2s cubic-bezier(.71,1.7,.77,1.24);visibility:hidden}.tooltip:before{background:transparent;border:6px solid transparent;content:"";z-index:1001}.tooltip-inline:before{inset-block-start:4px}.tooltip-content{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background-color:rgba(51,51,51,.9);border-radius:6px;color:#fff;font-size:small;font-weight:400;min-inline-size:200px;padding:8px;position:absolute;text-transform:none;z-index:1000}.tooltip-block .tooltip-content{margin-inline-start:-80px}.tooltip-inline .tooltip-content{margin-block-end:-16px;margin-inline-start:0}.tooltip-inline.tooltip-start .tooltip-content{inset-block-start:-50%}.tooltip-block.tooltip-start:before{border-block-start-color:rgba(51,51,51,.9);margin-block-end:-12px;margin-inline-start:-6px}.tooltip-block.tooltip-start .tooltip-content,.tooltip-block.tooltip-start:before{inset-block-end:100%;inset-inline-start:50%}.tooltip-block.tooltip-end:before{border-block-end-color:rgba(51,51,51,.9);border-block-start-color:transparent;margin-block:-12px 0}.tooltip-block.tooltip-end .tooltip-content,.tooltip-block.tooltip-end:before{inset-block:100% auto;margin-inline-start:25%}.tooltip-block.tooltip-end .tooltip-content{inset-inline-end:-70%}.tooltip-inline.tooltip-start:before{border-block-start-color:transparent;border-inline-start-color:rgba(51,51,51,.9);inset-block-end:50%;margin-block-end:0;margin-inline:0 -12px}.tooltip-inline.tooltip-start .tooltip-content,.tooltip-inline.tooltip-start:before{inset-inline:auto 100%}.tooltip-inline.tooltip-end:before{border-block-start-color:transparent;border-inline-end-color:rgba(51,51,51,.9);margin-block-end:0;margin-inline-start:-12px}.tooltip-inline.tooltip-end .tooltip-content,.tooltip-inline.tooltip-end:before{inset-inline-start:100%}.tooltip-inline.tooltip-end .tooltip-content{inset-block-start:-50%}.tooltip:focus .tooltip-content,.tooltip:focus:before,.tooltip:hover .tooltip-content,.tooltip:hover:before{opacity:1;visibility:visible}.tooltip-block.tooltip-start:focus .tooltip-content,.tooltip-block.tooltip-start:focus:before,.tooltip-block.tooltip-start:hover .tooltip-content,.tooltip-block.tooltip-start:hover:before{transform:translateY(-10px)}.tooltip-block.tooltip-end:focus .tooltip-content,.tooltip-block.tooltip-end:focus:before,.tooltip-block.tooltip-end:hover .tooltip-content,.tooltip-block.tooltip-end:hover:before{transform:translateY(10px)}.tooltip-inline.tooltip-end:focus .tooltip-content,.tooltip-inline.tooltip-end:focus:before,.tooltip-inline.tooltip-end:hover .tooltip-content,.tooltip-inline.tooltip-end:hover:before{transform:translateX(10px)}.tooltip-inline.tooltip-start:focus .tooltip-content,.tooltip-inline.tooltip-start:focus:before,.tooltip-inline.tooltip-start:hover .tooltip-content,.tooltip-inline.tooltip-start:hover:before{transform:translateX(-10px)}.code-snippets-upsell-banner{align-items:center;background:#fff;border:1px solid #c3c4c7;border-radius:5px;display:flex;flex-direction:row;gap:10px;padding:12px}.code-snippets-upsell-banner p{margin:0}.code-snippets-upsell-banner .components-external-link__contents{text-decoration:none}.code-snippets-upsell-banner .button-primary{background-color:#d46f4d;border:0;font-weight:700;margin-inline-start:auto}.code-snippets-upsell-banner .button-primary:focus,.code-snippets-upsell-banner .button-primary:hover{background-color:#c0532e}.code-snippets-upsell-banner .button-link.button-small{color:#a7aaad;font-weight:400;line-height:1;padding:0;text-decoration:none}.code-snippets-upsell-dialog{background:linear-gradient(116.04deg,#edfcff -.75%,#fcdfd4 93.04%);border-radius:8px;box-shadow:0 4px 80px rgba(0,0,0,.1);color:#1c3f41;font-family:SF Pro,sans-serif;inline-size:794px;line-height:1.5;max-block-size:unset}.code-snippets-upsell-dialog .components-modal__content{margin:0;padding-block:48px;padding-inline:80px}.code-snippets-upsell-dialog .components-modal__content>div:last-child{align-items:center;display:flex;flex-direction:column;gap:18px;overflow:auto;text-align:center}.code-snippets-upsell-dialog h1{font-size:32px;margin:0}.code-snippets-upsell-dialog h1 span{color:#d46f4d}.code-snippets-upsell-dialog p{margin-block:0;margin-inline:2em}.code-snippets-upsell-dialog h1+p{font-size:16px}.code-snippets-upsell-dialog img{inline-size:82px}.code-snippets-upsell-dialog h2{font-size:12px;text-transform:uppercase}.code-snippets-upsell-dialog ul{display:grid;grid-auto-flow:column;grid-template-rows:1fr 1fr 1fr 1fr 1fr;inline-size:100%}.code-snippets-upsell-dialog li{display:flex;flex-flow:row;font-size:14px;gap:11px}.code-snippets-upsell-dialog li:before{align-items:center;background-color:#0ca0a9;block-size:24px;border-radius:50%;color:#fff;content:"✓";display:flex;inline-size:24px;justify-content:center}.code-snippets-upsell-dialog .button.button-large{background-color:#d46f4d;font-size:16px;line-height:inherit;margin-block:16px 24px;margin-inline:auto;padding-block:15px;padding-inline:20px}.code-snippets-upsell-dialog .button.button-large:hover{background-color:#c0532e}.snippet-type-option{align-items:center;display:flex;flex-flow:row;justify-content:space-between}.snippet-type-option .small-badge{margin-inline-start:.5em}.snippet-type-option .badge{float:inline-end}.conditions-editor-open .button.button-large{align-items:center;block-size:100%;display:flex;font-weight:700;gap:5px;min-block-size:45px;overflow:hidden}.conditions-editor-open .button.button-large.no-condition{background-color:#fff;border-color:#ccc}.conditions-editor-open .button.button-large .badge{margin-block:3px;margin-inline:0}.conditions-editor-open .button.button-large .beta-badge{border:1px solid;margin-inline-start:auto}.conditions-editor-open .button.button-large .pro-badge{background:transparent;border:1px solid;color:currentcolor}@media screen and (width >= 1080px)and (width <= 1250px){.conditions-editor-open .button.button-large .pro-badge{display:none}}.snippet-form{display:grid;gap:30px;grid-template-areas:"upper sidebar" "lower sidebar";grid-template-columns:1fr 280px;margin-block-start:10px;max-inline-size:1440px;transition:all .7s}.snippet-form.snippet-form-expanded{grid-template-areas:"upper upper" "lower sidebar"}.snippet-form .snippet-form-upper{grid-area:upper}.snippet-form .snippet-form-lower{grid-area:lower}.snippet-form .snippet-editor-sidebar{grid-area:sidebar;max-inline-size:280px}@media(width <= 1024px){.snippet-form{grid-template-columns:1fr}}.snippet-form #titlediv #title{block-size:45px}.snippet-form h2,.snippet-form h3{font-size:1.16em;margin-block:25px 15px;margin-inline:0}.snippet-form h2 label,.snippet-form h3 label{cursor:auto}.snippet-form h2 .button,.snippet-form h3 .button{font-weight:400}.above-editor-container{display:flex;flex-flow:row wrap;gap:1em}.above-editor-container>*{display:flex;flex:1;flex-flow:column;min-inline-size:180px}.snippet-editor-sidebar .button-large{block-size:48px}.snippet-editor-sidebar .row-actions{display:flex}.snippet-editor-sidebar .row-actions .button{background:none;border:none}.snippet-editor-sidebar .delete-button{color:#cc1818}.snippet-editor-sidebar .delete-button:hover{color:#9e1313}.snippet-editor-sidebar .delete-button:focus{border-color:#710d0d;color:#710d0d}.snippet-editor-sidebar .help-tooltip{margin-block:0;margin-inline:5px auto}.snippet-editor-sidebar .box{background-color:#fff;border:1px solid #ccc;border-radius:4px;display:flex;flex-flow:column;gap:1em;padding:1.5em}.snippet-editor-sidebar .box h4{margin-block:.5em;margin-inline:0}.snippet-editor-sidebar .box>div{align-items:center;display:flex;flex-flow:row wrap;gap:5px}.snippet-editor-sidebar .box>div>:last-child{margin-inline-start:auto}.snippet-editor-sidebar .components-form-token-field{inline-size:100%}.snippet-editor-sidebar .generate-button{margin-inline-start:auto}.snippet-priority input{inline-size:4em}p.submit{display:flex;flex-flow:column;gap:8px;margin-block-start:17px;padding-block-start:0}.shortcode-tag-wrapper .code-snippets-copy-text{vertical-align:middle}.CodeMirror,.snippet-form textarea{font-family:monospace;inline-size:100%}.CodeMirror-sizer{box-sizing:border-box;min-block-size:300px!important;padding-block-end:1.5em!important}.CodeMirror-sizer:after{inset-block-end:0;position:absolute}.snippet-form.php-snippet .CodeMirror-sizer{padding-block-end:0!important}.snippet-form.php-snippet .CodeMirror-sizer:before{content:"<?php"}.snippet-form.css-snippet .CodeMirror-sizer:before{content:"<style>"}.snippet-form.css-snippet .CodeMirror-sizer:after{content:"</style>"}.snippet-form.js-snippet .CodeMirror-sizer:before{content:"<script>"}.snippet-form.js-snippet .CodeMirror-sizer:after{content:"</script>"}.snippet-form.html-snippet .CodeMirror-sizer:before{content:"<!-- begin content -->"}.snippet-form.html-snippet .CodeMirror-sizer:after{content:"<!-- end content -->"}.snippet-editor{position:relative}.snippet-editor-help{inset-block-start:5px;inset-inline-end:5px;position:absolute}.snippet-editor-help td:first-child{padding-inline-end:.5em}@media screen and (width >= 512px){.snippet-editor-help td{white-space:nowrap}}.snippet-editor-help .mac-key{display:none}.snippet-editor-help .platform-mac .mac-key{display:inline}.snippet-editor-help .platform-mac .pc-key{display:none}.snippet-condition-editor-container{background:#f6f7f7;border:1px solid #c3c4c7;margin-block-start:33px;padding:32px}.cloud-create-modal .components-modal__content{min-inline-size:550px}.cloud-create-modal .action-buttons{display:flex;justify-content:flex-end}.cloud-create-modal .components-button.is-secondary{box-shadow:none}.cloud-create-modal .notice{margin-inline:0}.generate-button{align-items:center;display:flex}.generate-button .dashicons-warning{color:#b32d2e}.code-line-explanation{align-items:center;background-color:#fff;border:1px solid #bbb;border-inline-end:0;border-inline-start:0;color:#666;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-style:italic;margin:0;padding-block:0;padding-inline:8px}.code-line-explanation img{block-size:1rem;padding-inline-end:5px}.cloud-connect-modal .icons-group{align-items:center;display:flex;justify-content:center}.cloud-connect-modal .icons-group .dashicons{block-size:50px;font-size:50px;inline-size:50px}.cloud-connect-modal .action-buttons{display:flex;justify-content:flex-end}.notice.error blockquote{margin-block-end:0}.code-snippets-copy-text{color:inherit}.button svg{block-size:1rem;line-height:1;margin:0;vertical-align:middle}.snippet-description-container{margin-block-start:25px}.snippet-description-container .wp-editor-tools{padding-block-start:5px}.snippet-description-container .wp-editor-tabs{float:inline-start}.snippet-description-container .generate-button{float:inline-end;margin-block-start:37px;position:relative;z-index:99}.above-snippet-code{align-items:center;display:flex;gap:8px;margin-block:25px 15px;margin-inline:0}.above-snippet-code h2{margin:0;margin-inline-end:auto}.above-snippet-code .expand-editor-button{align-items:center;display:flex;gap:5px}.above-snippet-code .expand-editor-button .dashicons{block-size:18px;font-size:18px;inline-size:18px}form.condition-snippet .snippet-code-container{display:none}
     1.CodeMirror{background-color:#fff;block-size:auto!important;border:1px solid #dfdfdf;border-radius:3px}.CodeMirror-code{outline:none}.CodeMirror-focused .cm-matchhighlight{color:#fff!important;outline:1px solid green}.CodeMirror-sizer:after,.CodeMirror-sizer:before{color:#bbb;display:block}.CodeMirror-sizer:before{content:"";padding-block-end:5px}.cm-s-rubyblue .CodeMirror-cursor{border-inline-start:1px solid #fff!important}.CodeMirror-lint-marker-multiple,[class*=CodeMirror-lint-marker],[class*=CodeMirror-lint-message]{background-image:none}.CodeMirror-lint-marker-error,.CodeMirror-lint-marker-warning{cursor:help}.CodeMirror-lint-marker-multiple{inset-block-start:0;position:absolute}[class*=CodeMirror-lint-marker]:before{font:normal 18px/1 dashicons;inset-block-start:-2px;position:relative}[class*=CodeMirror-lint-message]:before{font:normal 16px/1 dashicons;inset-inline-start:16px;position:absolute}.CodeMirror-lint-message-error,.CodeMirror-lint-message-warning{box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin-block:5px 2px;margin-inline:0;padding-block:3px;padding-inline:28px 12px}.CodeMirror-lint-message-warning{background-color:#fff8e5;border-inline-start:4px solid #ffb900}.CodeMirror-lint-marker-warning:before,.CodeMirror-lint-message-warning:before{color:#f6a306;content:""}.CodeMirror-lint-message-error{background-color:#fbeaea;border-inline-start:4px solid #dc3232}.CodeMirror-lint-marker-error:before,.CodeMirror-lint-message-error:before{color:#dc3232;content:""}.CodeMirror-lint-tooltip{background:none;border:none;border-radius:0;direction:ltr}.CodeMirror .CodeMirror-matchingbracket{background:rgba(255,150,0,.3);color:inherit}.CodeMirror .CodeMirror-linenumber{color:#666}.CodeMirror-foldmarker{color:inherit;font-weight:700;margin-inline:.25em}.badge{align-items:center;border-radius:3px;box-sizing:border-box;display:inline-flex;font-size:12px;font-weight:700;gap:5px;justify-content:center;line-height:1;min-block-size:24px;min-inline-size:43px;padding-block:0;padding-inline:3px;text-align:center;text-transform:uppercase}.badge .dashicons{block-size:18px;font-size:18px;inline-size:18px}.small-badge{block-size:auto;font-size:smaller;inline-size:auto;padding-block:0;padding-inline:.5em}.wp-core-ui .button.nav-tab-button{align-items:center;align-self:center;background:#f6f7f7;border-color:#f6f7f7;color:#a7aaad;display:flex;float:inline-end;gap:2px;justify-content:center;margin-inline-start:.5em}.badge.php-badge,.nav-tab-inactive:hover .badge.php-badge,:hover>.inverted-badges .php-badge{background-color:#1d97c6;color:#fff}.badge.php-badge:hover{background-color:#1a86b0;color:#fff}.badge.html-badge,.nav-tab-inactive:hover .badge.html-badge,:hover>.inverted-badges .html-badge{background-color:#ef6a36;color:#fff}.badge.html-badge:hover{background-color:#ed581e;color:#fff}.badge.css-badge,.nav-tab-inactive:hover .badge.css-badge,:hover>.inverted-badges .css-badge{background-color:#9b59b6;color:#fff}.badge.css-badge:hover{background-color:#8f4bab;color:#fff}.badge.js-badge,.nav-tab-inactive:hover .badge.js-badge,:hover>.inverted-badges .js-badge{background-color:#ffeb3b;color:#1c1f20}.badge.js-badge:hover{background-color:#ffe822;color:#1c1f20}.badge.cond-badge,.nav-tab-inactive:hover .badge.cond-badge,:hover>.inverted-badges .cond-badge{background-color:#2eae95;color:#fff}.badge.cond-badge:hover{background-color:#299a84;color:#fff}.badge.core-badge,.nav-tab-inactive:hover .badge.core-badge,:hover>.inverted-badges .core-badge{background-color:#61c5cb;color:#fff}.badge.core-badge:hover{background-color:#4ebec5;color:#fff}.badge.pro-badge,.nav-tab-inactive:hover .badge.pro-badge,:hover>.inverted-badges .pro-badge{background-color:#f7e8e3;color:#df9279}.badge.pro-badge:hover{background-color:#f1d8cf;color:#df9279}.badge.cloud-badge,.nav-tab-inactive:hover .badge.cloud-badge,:hover>.inverted-badges .cloud-badge{background-color:#00bcd4;color:#fff}.badge.cloud-badge:hover{background-color:#00a5bb;color:#fff}.badge.bundles-badge,.nav-tab-inactive:hover .badge.bundles-badge,:hover>.inverted-badges .bundles-badge{background-color:#50575e;color:#fff}.badge.bundles-badge:hover{background-color:#444a50;color:#fff}.badge.cloud_search-badge,.nav-tab-inactive:hover .badge.cloud_search-badge,:hover>.inverted-badges .cloud_search-badge{background-color:#ff9800;color:#fff}.badge.cloud_search-badge:hover{background-color:#e68900;color:#fff}.badge.private-badge,.nav-tab-inactive:hover .badge.private-badge,:hover>.inverted-badges .private-badge{background-color:#f7e6be;color:#ca961b}.badge.private-badge:hover{background-color:#f4dda7;color:#ca961b}.badge.public-badge,.nav-tab-inactive:hover .badge.public-badge,:hover>.inverted-badges .public-badge{background-color:#dbebf7;color:#2271b1}.badge.public-badge:hover{background-color:#c6dff2;color:#2271b1}.badge.success-badge,.nav-tab-inactive:hover .badge.success-badge,:hover>.inverted-badges .success-badge{background-color:#d3e8d1;color:#447340}.badge.success-badge:hover{background-color:#c3e0c0;color:#447340}.badge.failure-badge,.nav-tab-inactive:hover .badge.failure-badge,:hover>.inverted-badges .failure-badge{background-color:#fad7c1;color:#a24b16}.badge.failure-badge:hover{background-color:#f8c8a9;color:#a24b16}.badge.info-badge,.nav-tab-inactive:hover .badge.info-badge,:hover>.inverted-badges .info-badge{background-color:#d2e6f4;color:#2b71a3}.badge.info-badge:hover{background-color:#bedbef;color:#2b71a3}.badge.neutral-badge,.nav-tab-inactive:hover .badge.neutral-badge,:hover>.inverted-badges .neutral-badge{background-color:#e2e5e5;color:#6c7e7e}.badge.neutral-badge:hover{background-color:#d5d9d9;color:#6c7e7e}.badge.special-badge,.nav-tab-inactive:hover .badge.special-badge,:hover>.inverted-badges .special-badge{background-color:#dfc5ef;color:#6e249c}.badge.special-badge:hover{background-color:#d4b1e9;color:#6e249c}.inverted-badges .badge,.nav-tab-inactive .badge{background-color:#a7aaad;color:#fff}.nav-tab-inactive{background:transparent}.nav-tab-button .dashicons-external{color:#666;font-size:15px}.snippet-activation-switch,.snippet-execution-button,input[type=checkbox].switch{display:block;position:relative}.snippet-activation-switch,input[type=checkbox].switch{-webkit-appearance:none;-moz-appearance:none;appearance:none;block-size:19px;border:1px solid #789;border-radius:34px;box-sizing:border-box;cursor:pointer;inline-size:32px;margin:0;outline:0;text-align:start}.snippet-activation-switch:before,input[type=checkbox].switch:before{background-color:#789;block-size:13px;border-radius:50%;content:"";display:inline-block;inline-size:13px;margin:2px;transition:all .1s}.active-snippet .snippet-activation-switch,input[type=checkbox].switch:checked{background-color:#0073aa}.active-snippet .snippet-activation-switch:before,input[type=checkbox].switch:checked:before{background-color:#fff;transform:translateX(100%)}.erroneous-snippet .snippet-activation-switch:before{color:#bbb;content:"!";font-weight:700;line-height:1;text-align:center;transform:translateX(50%)}a.snippet-condition-count{align-items:center;block-size:29px;border:1.8px solid;border-radius:50%;box-sizing:border-box;display:flex;inline-size:29px;justify-content:center}.inactive-snippet a.snippet-condition-count{color:#ccc}.active-snippet a.snippet-condition-count{color:#2271b1;font-weight:700}.snippet-execution-button{block-size:0;border-block:9px solid transparent;border-inline-start:10px solid #ccc;inline-size:0;margin-block-start:9px;margin-inline-start:11px}.snippet-execution-button:before{border:1.8px solid #ccc;border-radius:50%;content:"";inset:-14px -8px -14px -21px;position:absolute;z-index:2}.snippet-execution-button:hover{border-inline-start-color:#2271b1;transition:border-left-color .6s}.snippet-execution-button:hover:before{border-color:#2271b1;transition:border-color .6s}.code-snippets-select input[type=text]:focus{box-shadow:none}.help-tooltip{border-block-end:1px dotted;display:inline-flex;flex-direction:column;justify-content:center;position:relative;vertical-align:middle}.help-tooltip-anchor{background:transparent!important;cursor:help;display:inline-block;font-size:10px;padding-block:.3em 0;padding-inline:.3em}.tooltip{cursor:help!important;display:inline-block;position:relative}.tooltip .dashicons{color:#789}.tooltip.badge{display:inline-flex}.tooltip.badge .dashicons{color:inherit}.tooltip-content,.tooltip:before{opacity:0;pointer-events:none;position:absolute;transform:translateZ(0);transition:opacity .2s ease-in-out,visibility .2s ease-in-out,transform .2s cubic-bezier(.71,1.7,.77,1.24);visibility:hidden}.tooltip:before{background:transparent;border:6px solid transparent;content:"";z-index:1001}.tooltip-inline:before{inset-block-start:4px}.tooltip-content{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background-color:rgba(51,51,51,.9);border-radius:6px;color:#fff;font-size:small;font-weight:400;min-inline-size:200px;padding:8px;position:absolute;text-transform:none;z-index:1000}.tooltip-block .tooltip-content{margin-inline-start:-80px}.tooltip-inline .tooltip-content{margin-block-end:-16px;margin-inline-start:0}.tooltip-inline.tooltip-start .tooltip-content{inset-block-start:-50%}.tooltip-block.tooltip-start:before{border-block-start-color:rgba(51,51,51,.9);margin-block-end:-12px;margin-inline-start:-6px}.tooltip-block.tooltip-start .tooltip-content,.tooltip-block.tooltip-start:before{inset-block-end:100%;inset-inline-start:50%}.tooltip-block.tooltip-end:before{border-block-end-color:rgba(51,51,51,.9);border-block-start-color:transparent;margin-block:-12px 0}.tooltip-block.tooltip-end .tooltip-content,.tooltip-block.tooltip-end:before{inset-block:100% auto;margin-inline-start:25%}.tooltip-block.tooltip-end .tooltip-content{inset-inline-end:-70%}.tooltip-inline.tooltip-start:before{border-block-start-color:transparent;border-inline-start-color:rgba(51,51,51,.9);inset-block-end:50%;margin-block-end:0;margin-inline:0 -12px}.tooltip-inline.tooltip-start .tooltip-content,.tooltip-inline.tooltip-start:before{inset-inline:auto 100%}.tooltip-inline.tooltip-end:before{border-block-start-color:transparent;border-inline-end-color:rgba(51,51,51,.9);margin-block-end:0;margin-inline-start:-12px}.tooltip-inline.tooltip-end .tooltip-content,.tooltip-inline.tooltip-end:before{inset-inline-start:100%}.tooltip-inline.tooltip-end .tooltip-content{inset-block-start:-50%}.tooltip:focus .tooltip-content,.tooltip:focus:before,.tooltip:hover .tooltip-content,.tooltip:hover:before{opacity:1;visibility:visible}.tooltip-block.tooltip-start:focus .tooltip-content,.tooltip-block.tooltip-start:focus:before,.tooltip-block.tooltip-start:hover .tooltip-content,.tooltip-block.tooltip-start:hover:before{transform:translateY(-10px)}.tooltip-block.tooltip-end:focus .tooltip-content,.tooltip-block.tooltip-end:focus:before,.tooltip-block.tooltip-end:hover .tooltip-content,.tooltip-block.tooltip-end:hover:before{transform:translateY(10px)}.tooltip-inline.tooltip-end:focus .tooltip-content,.tooltip-inline.tooltip-end:focus:before,.tooltip-inline.tooltip-end:hover .tooltip-content,.tooltip-inline.tooltip-end:hover:before{transform:translateX(10px)}.tooltip-inline.tooltip-start:focus .tooltip-content,.tooltip-inline.tooltip-start:focus:before,.tooltip-inline.tooltip-start:hover .tooltip-content,.tooltip-inline.tooltip-start:hover:before{transform:translateX(-10px)}.code-snippets-modal .components-modal__header{padding-block-end:24px}.code-snippets-modal .components-modal__content{background:#f6f7f7;display:flex;flex-flow:column;max-inline-size:100%;overflow:initial;padding:0}.code-snippets-modal .modal-content{display:flex;flex:1;flex-flow:column;padding-block:36px;padding-inline:45px}.code-snippets-modal .components-modal__header+div{display:flex;flex:1;flex-flow:column;overflow-y:auto}.code-snippets-modal .modal-footer{align-items:center;background:#f6f7f7;border-block-start:1px solid #e2e2e4;display:flex;flex-flow:row-reverse;inline-size:100%;inset-block-end:0;justify-content:space-between;padding:11px 19px}.code-snippets-modal .modal-footer .button-link{text-decoration:none}.code-snippets-modal .modal-footer .button-large{block-size:45px}.code-snippets-modal .modal-footer .button-large.button-primary{padding:0 30px}.code-snippets-upsell-banner{align-items:center;background:#fff;border:1px solid #ccc;border-radius:5px;display:flex;flex-direction:row;gap:10px;padding:12px}.code-snippets-upsell-banner p{margin:0}.code-snippets-upsell-banner .components-external-link__contents{text-decoration:none}.code-snippets-upsell-banner .button-primary{background-color:#d46f4d;border:0;font-weight:700;margin-inline-start:auto}.code-snippets-upsell-banner .button-primary:focus,.code-snippets-upsell-banner .button-primary:hover{background-color:#c0532e}.code-snippets-upsell-banner .button-link.button-small{color:#a7aaad;font-weight:400;line-height:1;padding:0;text-decoration:none}.code-snippets-upsell-dialog{background:linear-gradient(116.04deg,#edfcff -.75%,#fcdfd4 93.04%);border-radius:8px;box-shadow:0 4px 80px rgba(0,0,0,.1);color:#1c3f41;font-family:SF Pro,sans-serif;inline-size:794px;line-height:1.5;max-block-size:unset}.code-snippets-upsell-dialog .components-modal__content{margin:0;padding-block:48px;padding-inline:80px}.code-snippets-upsell-dialog .components-modal__content>div:last-child{align-items:center;display:flex;flex-direction:column;gap:18px;overflow:auto;text-align:center}.code-snippets-upsell-dialog h1{font-size:32px;margin:0}.code-snippets-upsell-dialog h1 span{color:#d46f4d}.code-snippets-upsell-dialog p{margin-block:0;margin-inline:2em}.code-snippets-upsell-dialog h1+p{font-size:16px}.code-snippets-upsell-dialog img{inline-size:82px}.code-snippets-upsell-dialog h2{font-size:12px;text-transform:uppercase}.code-snippets-upsell-dialog ul{display:grid;grid-auto-flow:column;grid-template-rows:1fr 1fr 1fr 1fr 1fr;inline-size:100%}.code-snippets-upsell-dialog li{display:flex;flex-flow:row;font-size:14px;gap:11px}.code-snippets-upsell-dialog li:before{align-items:center;background-color:#0ca0a9;block-size:24px;border-radius:50%;color:#fff;content:"✓";display:flex;inline-size:24px;justify-content:center}.code-snippets-upsell-dialog .button.button-large{background-color:#d46f4d;border-color:currentcolor;font-size:16px;line-height:inherit;margin-block:16px 24px;margin-inline:auto;padding-block:15px;padding-inline:20px}.code-snippets-upsell-dialog .button.button-large:hover{background-color:#c0532e}.snippet-form #titlediv #title,.snippet-type-container{block-size:45px;border-color:#ccc}.snippet-type-option{align-items:center;display:flex;flex-flow:row;justify-content:space-between}.snippet-type-option .small-badge{margin-inline-start:.5em}.snippet-type-option .badge{float:inline-end}.conditions-editor-open .button.button-large{align-items:center;block-size:100%;border-color:#ccc;display:flex;gap:8px;overflow:hidden;padding-block:6px;padding-inline:12px}.conditions-editor-open.no-condition .cond-badge{background:transparent;border:1px solid;color:inherit}.conditions-editor-open.no-condition:hover .cond-badge{background:#2271b1;border-color:#2271b1;color:#fff}.snippet-form{display:grid;gap:30px;grid-template-areas:"upper sidebar" "lower sidebar";grid-template-columns:1fr 321px;margin-block-start:10px;transition:all .7s}.snippet-form.snippet-form-expanded{grid-template-areas:"upper upper" "lower sidebar"}.snippet-form .snippet-form-upper{grid-area:upper}.snippet-form .snippet-form-lower{grid-area:lower}.snippet-form .snippet-editor-sidebar{grid-area:span 3/sidebar;max-inline-size:321px}@media(width <= 1024px){.snippet-form{grid-template-columns:1fr}}.snippet-form h2,.snippet-form h3{font-size:1.16em;margin-block:25px 15px;margin-inline:0}.snippet-form h2 label,.snippet-form h3 label{cursor:auto}.snippet-form h2 .button,.snippet-form h3 .button{font-weight:400}.snippet-editor-sidebar .button-large{block-size:48px}.snippet-editor-sidebar .row-actions{display:flex}.snippet-editor-sidebar .row-actions .button{background:none;border:none}.snippet-editor-sidebar .delete-button{color:#cc1818}.snippet-editor-sidebar .delete-button:hover{color:#9e1313}.snippet-editor-sidebar .delete-button:focus{border-color:#710d0d;color:#710d0d}.snippet-editor-sidebar .help-tooltip{margin-block:0;margin-inline:5px auto}.snippet-editor-sidebar .box{background-color:#fff;border:1px solid #ccc;border-radius:4px;display:flex;flex-flow:column;gap:1em;padding:1.5em}.snippet-editor-sidebar .box h4{margin-block:.5em;margin-inline:0}.snippet-editor-sidebar .box .inline-form-field{align-items:center;display:flex;flex-flow:row wrap;gap:5px}.snippet-editor-sidebar .box .inline-form-field>:last-child{margin-inline-start:auto}.snippet-editor-sidebar .box .block-form-field{display:flex;flex-flow:column;gap:4px}.snippet-editor-sidebar .box .block-form-field h4{margin-block-end:0}.snippet-editor-sidebar h4 .badge{float:inline-end}.snippet-editor-sidebar h4 .badge+.badge{margin-inline-end:5px}.snippet-editor-sidebar .beta-badge{border:1px solid;color:#2271b1}.snippet-editor-sidebar .components-form-token-field{inline-size:100%}.snippet-editor-sidebar .generate-button{margin-inline-start:auto}.snippet-priority input{inline-size:4em}p.submit{display:flex;flex-flow:column;gap:8px;margin-block-start:17px;padding-block-start:0}.activation-switch-container label{display:flex;flex-flow:row;gap:5px;justify-content:center}.shortcode-tag-wrapper{align-items:center;background:#fff;box-sizing:border-box;display:flex;justify-content:space-between;min-block-size:54px;padding:10px}.shortcode-tag-wrapper code{background:transparent;padding-inline:.5em;text-indent:-.5em}.code-snippets-copy-text.button{align-items:center;display:flex;gap:3px}.code-snippets-copy-text.button .dashicons{block-size:18px;font-size:18px;inline-size:18px}.code-snippets-copy-text.button .spinner-wrapper{align-items:center;block-size:18px;display:flex;inline-size:18px}.code-snippets-copy-text.button .components-spinner{block-size:12px}.code-snippets-modal p h4{margin-block-start:0}.CodeMirror,.snippet-form textarea{font-family:monospace;inline-size:100%}.CodeMirror-sizer{box-sizing:border-box;min-block-size:300px!important;padding-block-end:1.5em!important}.CodeMirror-sizer:after{inset-block-end:0;position:absolute}.snippet-form.php-snippet .CodeMirror-sizer{padding-block-end:0!important}.snippet-form.php-snippet .CodeMirror-sizer:before{content:"<?php"}.snippet-form.css-snippet .CodeMirror-sizer:before{content:"<style>"}.snippet-form.css-snippet .CodeMirror-sizer:after{content:"</style>"}.snippet-form.js-snippet .CodeMirror-sizer:before{content:"<script>"}.snippet-form.js-snippet .CodeMirror-sizer:after{content:"</script>"}.snippet-form.html-snippet .CodeMirror-sizer:before{content:"<!-- begin content -->"}.snippet-form.html-snippet .CodeMirror-sizer:after{content:"<!-- end content -->"}.snippet-editor{position:relative}.snippet-editor-help{inset-block-start:5px;inset-inline-end:5px;position:absolute}.snippet-editor-help td:first-child{padding-inline-end:.5em}@media screen and (width >= 512px){.snippet-editor-help td{white-space:nowrap}}.snippet-editor-help .mac-key{display:none}.snippet-editor-help .platform-mac .mac-key{display:inline}.snippet-editor-help .platform-mac .pc-key{display:none}.snippet-condition-editor-container{background:#f6f7f7;border:1px solid #c3c4c7;margin-block-start:33px;padding:32px}.cloud-create-modal .components-modal__content{min-inline-size:550px}.cloud-create-modal .action-buttons{display:flex;justify-content:flex-end}.cloud-create-modal .components-button.is-secondary{box-shadow:none}.cloud-create-modal .notice{margin-inline:0}.generate-button{align-items:center;display:flex}.generate-button .dashicons-warning{color:#b32d2e}.code-line-explanation{align-items:center;background-color:#fff;border:1px solid #bbb;border-inline-end:0;border-inline-start:0;color:#666;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;font-style:italic;margin:0;padding-block:0;padding-inline:8px}.code-line-explanation img{block-size:1rem;padding-inline-end:5px}.cloud-connect-modal .icons-group{align-items:center;display:flex;justify-content:center}.cloud-connect-modal .icons-group .dashicons{block-size:50px;font-size:50px;inline-size:50px}.cloud-connect-modal .action-buttons{display:flex;justify-content:flex-end}.notice.error blockquote{margin-block-end:0}.button svg{block-size:1rem;line-height:1;margin:0;vertical-align:middle}.snippet-description-container .wp-editor-tools{padding-block-start:5px}.snippet-description-container .wp-editor-tabs{float:inline-start}.snippet-description-container .generate-button{float:inline-end;margin-block-start:37px;position:relative;z-index:99}.components-form-token-field__input-container{background:#fff;border-color:#c3c4c7}.components-form-token-field__input-container>.components-flex{padding:12px}#titlediv,.snippet-type-container{margin-block-end:24px}.above-snippet-code{align-items:center;display:flex;gap:8px;margin-block:0 15px;margin-inline:0}.above-snippet-code h2{margin:0}.above-snippet-code .expand-editor-button{align-items:center;display:flex;gap:5px;margin-inline-end:auto}.above-snippet-code .expand-editor-button .dashicons{block-size:18px;font-size:18px;inline-size:18px}form.condition-snippet .snippet-code-container{display:none}
  • code-snippets/tags/3.7.0-beta/dist/edit.js

    r3345197 r3348557  
    11/*! For license information please see edit.js.LICENSE.txt */
    2 (self.webpackChunkcode_snippets=self.webpackChunkcode_snippets||[]).push([[8739],{8670:(e,t,n)=>{"use strict";var r={};n.r(r),n.d(r,{hasBrowserEnv:()=>xe,hasStandardBrowserEnv:()=>Se,hasStandardBrowserWebWorkerEnv:()=>Ee,navigator:()=>je,origin:()=>_e});var o=n(1609),i=n(5338),s=n(3453),a=n(6942),c=n.n(a);const u=window.wp.i18n,l=window.wp.url;var p=n(3145),d=n(7800);function f(e){return function(e){if(Array.isArray(e))return(0,p.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,d.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function m(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){h(i,r,o,s,a,"next",e)}function a(e){h(i,r,o,s,a,"throw",e)}s(void 0)}))}}var v=n(4756),b=n.n(v);function g(e,t){return function(){return e.apply(t,arguments)}}const{toString:y}=Object.prototype,{getPrototypeOf:w}=Object,O=(x=Object.create(null),e=>{const t=y.call(e);return x[t]||(x[t]=t.slice(8,-1).toLowerCase())});var x;const j=e=>(e=e.toLowerCase(),t=>O(t)===e),S=e=>t=>typeof t===e,{isArray:E}=Array,_=S("undefined"),C=j("ArrayBuffer"),P=S("string"),k=S("function"),A=S("number"),R=e=>null!==e&&"object"==typeof e,D=e=>{if("object"!==O(e))return!1;const t=w(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},T=j("Date"),I=j("File"),N=j("Blob"),L=j("FileList"),M=j("URLSearchParams"),[F,V,U,B]=["ReadableStream","Request","Response","Headers"].map(j);function H(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),E(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(r=0;r<i;r++)s=o[r],t.call(null,e[s],s,e)}}function z(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const $="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,W=e=>!_(e)&&e!==$,q=(G="undefined"!=typeof Uint8Array&&w(Uint8Array),e=>G&&e instanceof G);var G;const J=j("HTMLFormElement"),K=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),X=j("RegExp"),Y=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};H(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},Z=j("AsyncFunction"),Q=(ee="function"==typeof setImmediate,te=k($.postMessage),ee?setImmediate:te?((e,t)=>($.addEventListener("message",(({source:n,data:r})=>{n===$&&r===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),$.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var ee,te;const ne="undefined"!=typeof queueMicrotask?queueMicrotask.bind($):"undefined"!=typeof process&&process.nextTick||Q,re={isArray:E,isArrayBuffer:C,isBuffer:function(e){return null!==e&&!_(e)&&null!==e.constructor&&!_(e.constructor)&&k(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||k(e.append)&&("formdata"===(t=O(e))||"object"===t&&k(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&C(e.buffer),t},isString:P,isNumber:A,isBoolean:e=>!0===e||!1===e,isObject:R,isPlainObject:D,isReadableStream:F,isRequest:V,isResponse:U,isHeaders:B,isUndefined:_,isDate:T,isFile:I,isBlob:N,isRegExp:X,isFunction:k,isStream:e=>R(e)&&k(e.pipe),isURLSearchParams:M,isTypedArray:q,isFileList:L,forEach:H,merge:function e(){const{caseless:t}=W(this)&&this||{},n={},r=(r,o)=>{const i=t&&z(n,o)||o;D(n[i])&&D(r)?n[i]=e(n[i],r):D(r)?n[i]=e({},r):E(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&H(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(H(t,((t,r)=>{n&&k(t)?e[r]=g(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],r&&!r(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&w(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:O,kindOfTest:j,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(E(e))return e;let t=e.length;if(!A(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:J,hasOwnProperty:K,hasOwnProp:K,reduceDescriptors:Y,freezeMethods:e=>{Y(e,((t,n)=>{if(k(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];k(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return E(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:z,global:$,isContextDefined:W,isSpecCompliantForm:function(e){return!!(e&&k(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(R(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=E(e)?[]:{};return H(e,((e,t)=>{const i=n(e,r+1);!_(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Z,isThenable:e=>e&&(R(e)||k(e))&&k(e.then)&&k(e.catch),setImmediate:Q,asap:ne};function oe(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}re.inherits(oe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:re.toJSONObject(this.config),code:this.code,status:this.status}}});const ie=oe.prototype,se={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{se[e]={value:e}})),Object.defineProperties(oe,se),Object.defineProperty(ie,"isAxiosError",{value:!0}),oe.from=(e,t,n,r,o,i)=>{const s=Object.create(ie);return re.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),oe.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const ae=oe;function ce(e){return re.isPlainObject(e)||re.isArray(e)}function ue(e){return re.endsWith(e,"[]")?e.slice(0,-2):e}function le(e,t,n){return e?e.concat(t).map((function(e,t){return e=ue(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const pe=re.toFlatObject(re,{},null,(function(e){return/^is[A-Z]/.test(e)})),de=function(e,t,n){if(!re.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=re.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!re.isUndefined(t[e])}))).metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&re.isSpecCompliantForm(t);if(!re.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(re.isDate(e))return e.toISOString();if(!a&&re.isBlob(e))throw new ae("Blob is not supported. Use a Buffer instead.");return re.isArrayBuffer(e)||re.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(re.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(re.isArray(e)&&function(e){return re.isArray(e)&&!e.some(ce)}(e)||(re.isFileList(e)||re.endsWith(n,"[]"))&&(a=re.toArray(e)))return n=ue(n),a.forEach((function(e,r){!re.isUndefined(e)&&null!==e&&t.append(!0===s?le([n],r,i):null===s?n:n+"[]",c(e))})),!1;return!!ce(e)||(t.append(le(o,n,i),c(e)),!1)}const l=[],p=Object.assign(pe,{defaultVisitor:u,convertValue:c,isVisitable:ce});if(!re.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!re.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),re.forEach(n,(function(n,i){!0===(!(re.isUndefined(n)||null===n)&&o.call(t,n,re.isString(i)?i.trim():i,r,p))&&e(n,r?r.concat(i):[i])})),l.pop()}}(e),t};function fe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function he(e,t){this._pairs=[],e&&de(e,this,t)}const me=he.prototype;me.append=function(e,t){this._pairs.push([e,t])},me.toString=function(e){const t=e?function(t){return e.call(this,t,fe)}:fe;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const ve=he;function be(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ge(e,t,n){if(!t)return e;const r=n&&n.encode||be;re.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):re.isURLSearchParams(t)?t.toString():new ve(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const ye=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){re.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},we={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Oe={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ve,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},xe="undefined"!=typeof window&&"undefined"!=typeof document,je="object"==typeof navigator&&navigator||void 0,Se=xe&&(!je||["ReactNative","NativeScript","NS"].indexOf(je.product)<0),Ee="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,_e=xe&&window.location.href||"http://localhost",Ce={...r,...Oe},Pe=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;return i=!i&&re.isArray(r)?r.length:i,a?(re.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s):(r[i]&&re.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&re.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!s)}if(re.isFormData(e)&&re.isFunction(e.entries)){const n={};return re.forEachEntry(e,((e,r)=>{t(function(e){return re.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},ke={transitional:we,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=re.isObject(e);if(o&&re.isHTMLForm(e)&&(e=new FormData(e)),re.isFormData(e))return r?JSON.stringify(Pe(e)):e;if(re.isArrayBuffer(e)||re.isBuffer(e)||re.isStream(e)||re.isFile(e)||re.isBlob(e)||re.isReadableStream(e))return e;if(re.isArrayBufferView(e))return e.buffer;if(re.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return de(e,new Ce.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Ce.isNode&&re.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=re.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return de(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e){if(re.isString(e))try{return(0,JSON.parse)(e),re.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ke.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(re.isResponse(e)||re.isReadableStream(e))return e;if(e&&re.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw ae.from(e,ae.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ce.classes.FormData,Blob:Ce.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};re.forEach(["delete","get","head","post","put","patch"],(e=>{ke.headers[e]={}}));const Ae=ke,Re=re.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),De=Symbol("internals");function Te(e){return e&&String(e).trim().toLowerCase()}function Ie(e){return!1===e||null==e?e:re.isArray(e)?e.map(Ie):String(e)}function Ne(e,t,n,r,o){return re.isFunction(r)?r.call(this,t,n):(o&&(t=n),re.isString(t)?re.isString(r)?-1!==t.indexOf(r):re.isRegExp(r)?r.test(t):void 0:void 0)}class Le{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Te(t);if(!o)throw new Error("header name must be a non-empty string");const i=re.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Ie(e))}const i=(e,t)=>re.forEach(e,((e,n)=>o(e,n,t)));if(re.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(re.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Re[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(re.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Te(e)){const n=re.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(re.isFunction(t))return t.call(this,e,n);if(re.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Te(e)){const n=re.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ne(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Te(e)){const o=re.findKey(n,e);!o||t&&!Ne(0,n[o],o,t)||(delete n[o],r=!0)}}return re.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ne(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return re.forEach(this,((r,o)=>{const i=re.findKey(n,o);if(i)return t[i]=Ie(r),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete t[o],t[s]=Ie(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return re.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&re.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[De]=this[De]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Te(e);t[r]||(function(e,t){const n=re.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return re.isArray(e)?e.forEach(r):r(e),this}}Le.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),re.reduceDescriptors(Le.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),re.freezeMethods(Le);const Me=Le;function Fe(e,t){const n=this||Ae,r=t||n,o=Me.from(r.headers);let i=r.data;return re.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Ve(e){return!(!e||!e.__CANCEL__)}function Ue(e,t,n){ae.call(this,null==e?"canceled":e,ae.ERR_CANCELED,t,n),this.name="CanceledError"}re.inherits(Ue,ae,{__CANCEL__:!0});const Be=Ue;function He(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ae("Request failed with status code "+n.status,[ae.ERR_BAD_REQUEST,ae.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const ze=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[s];o||(o=c),n[i]=a,r[i]=c;let l=s,p=0;for(;l!==i;)p+=n[l++],l%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const s=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(n=e,r||(r=setTimeout((()=>{r=null,s(n)}),i-a)))},()=>n&&s(n)]}((n=>{const i=n.loaded,s=n.lengthComputable?n.total:void 0,a=i-r,c=o(a);r=i,e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),n)},$e=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},We=e=>(...t)=>re.asap((()=>e(...t))),qe=Ce.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ce.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ce.origin),Ce.navigator&&/(msie|trident)/i.test(Ce.navigator.userAgent)):()=>!0,Ge=Ce.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];re.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),re.isString(r)&&s.push("path="+r),re.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Je(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ke=e=>e instanceof Me?{...e}:e;function Xe(e,t){t=t||{};const n={};function r(e,t,n,r){return re.isPlainObject(e)&&re.isPlainObject(t)?re.merge.call({caseless:r},e,t):re.isPlainObject(t)?re.merge({},t):re.isArray(t)?t.slice():t}function o(e,t,n,o){return re.isUndefined(t)?re.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!re.isUndefined(t))return r(void 0,t)}function s(e,t){return re.isUndefined(t)?re.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>o(Ke(e),Ke(t),0,!0)};return re.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||o,s=i(e[r],t[r],r);re.isUndefined(s)&&i!==a||(n[r]=s)})),n}const Ye=e=>{const t=Xe({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=t;if(t.headers=a=Me.from(a),t.url=ge(Je(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),re.isFormData(r))if(Ce.hasStandardBrowserEnv||Ce.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(Ce.hasStandardBrowserEnv&&(o&&re.isFunction(o)&&(o=o(t)),o||!1!==o&&qe(t.url))){const e=i&&s&&Ge.read(s);e&&a.set(i,e)}return t},Ze="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Ye(e);let o=r.data;const i=Me.from(r.headers).normalize();let s,a,c,u,l,{responseType:p,onUploadProgress:d,onDownloadProgress:f}=r;function h(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function v(){if(!m)return;const r=Me.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());He((function(e){t(e),h()}),(function(e){n(e),h()}),{data:p&&"text"!==p&&"json"!==p?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(v)},m.onabort=function(){m&&(n(new ae("Request aborted",ae.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new ae("Network Error",ae.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||we;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ae(t,o.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&re.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),re.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),p&&"json"!==p&&(m.responseType=r.responseType),f&&([c,l]=ze(f,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,u]=ze(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(s=t=>{m&&(n(!t||t.type?new Be(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);b&&-1===Ce.protocols.indexOf(b)?n(new ae("Unsupported protocol "+b+":",ae.ERR_BAD_REQUEST,e)):m.send(o||null)}))},Qe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ae?t:new Be(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new ae(`timeout ${t} of ms exceeded`,ae.ETIMEDOUT))}),t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:a}=r;return a.unsubscribe=()=>re.asap(s),a}},et=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},tt=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*et(n,t)}(e,t);let i,s=0,a=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let i=r.byteLength;if(n){let e=s+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},nt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,rt=nt&&"function"==typeof ReadableStream,ot=nt&&("function"==typeof TextEncoder?(it=new TextEncoder,e=>it.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var it;const st=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},at=rt&&st((()=>{let e=!1;const t=new Request(Ce.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),ct=rt&&st((()=>re.isReadableStream(new Response("").body))),ut={stream:ct&&(e=>e.body)};var lt;nt&&(lt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!ut[e]&&(ut[e]=re.isFunction(lt[e])?t=>t[e]():(t,n)=>{throw new ae(`Response type '${e}' is not supported`,ae.ERR_NOT_SUPPORT,n)})})));const pt=nt&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:p="same-origin",fetchOptions:d}=Ye(e);u=u?(u+"").toLowerCase():"text";let f,h=Qe([o,i&&i.toAbortSignal()],s);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let v;try{if(c&&at&&"get"!==n&&"head"!==n&&0!==(v=await(async(e,t)=>{const n=re.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(re.isBlob(e))return e.size;if(re.isSpecCompliantForm(e)){const t=new Request(Ce.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return re.isArrayBufferView(e)||re.isArrayBuffer(e)?e.byteLength:(re.isURLSearchParams(e)&&(e+=""),re.isString(e)?(await ot(e)).byteLength:void 0)})(t):n})(l,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(re.isFormData(r)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body){const[e,t]=$e(v,ze(We(c)));r=tt(n.body,65536,e,t)}}re.isString(p)||(p=p?"include":"omit");const o="credentials"in Request.prototype;f=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:o?p:void 0});let i=await fetch(f);const s=ct&&("stream"===u||"response"===u);if(ct&&(a||s&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=re.toFiniteNumber(i.headers.get("content-length")),[n,r]=a&&$e(t,ze(We(a),!0))||[];i=new Response(tt(i.body,65536,n,(()=>{r&&r(),m&&m()})),e)}u=u||"text";let b=await ut[re.findKey(ut,u)||"text"](i,e);return!s&&m&&m(),await new Promise(((t,n)=>{He(t,n,{data:b,headers:Me.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new ae("Network Error",ae.ERR_NETWORK,e,f),{cause:t.cause||t});throw ae.from(t,t&&t.code,e,f)}}),dt={http:null,xhr:Ze,fetch:pt};re.forEach(dt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const ft=e=>`- ${e}`,ht=e=>re.isFunction(e)||null===e||!1===e,mt=e=>{e=re.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!ht(n)&&(r=dt[(t=String(n)).toLowerCase()],void 0===r))throw new ae(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(ft).join("\n"):" "+ft(e[0]):"as no adapter specified";throw new ae("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function vt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Be(null,e)}function bt(e){return vt(e),e.headers=Me.from(e.headers),e.data=Fe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),mt(e.adapter||Ae.adapter)(e).then((function(t){return vt(e),t.data=Fe.call(e,e.transformResponse,t),t.headers=Me.from(t.headers),t}),(function(t){return Ve(t)||(vt(e),t&&t.response&&(t.response.data=Fe.call(e,e.transformResponse,t.response),t.response.headers=Me.from(t.response.headers))),Promise.reject(t)}))}const gt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{gt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const yt={};gt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.8.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new ae(r(o," has been removed"+(t?" in "+t:"")),ae.ERR_DEPRECATED);return t&&!yt[o]&&(yt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},gt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const wt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new ae("option "+i+" must be "+n,ae.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ae("Unknown option "+i,ae.ERR_BAD_OPTION)}},validators:gt},Ot=wt.validators;class xt{constructor(e){this.defaults=e,this.interceptors={request:new ye,response:new ye}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Xe(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&wt.assertOptions(n,{silentJSONParsing:Ot.transitional(Ot.boolean),forcedJSONParsing:Ot.transitional(Ot.boolean),clarifyTimeoutError:Ot.transitional(Ot.boolean)},!1),null!=r&&(re.isFunction(r)?t.paramsSerializer={serialize:r}:wt.assertOptions(r,{encode:Ot.function,serialize:Ot.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),wt.assertOptions(t,{baseUrl:Ot.spelling("baseURL"),withXsrfToken:Ot.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&re.merge(o.common,o[t.method]);o&&re.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Me.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,p=0;if(!a){const e=[bt.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);p<l;)u=u.then(e[p++],e[p++]);return u}l=s.length;let d=t;for(p=0;p<l;){const e=s[p++],t=s[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=bt.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,l=c.length;p<l;)u=u.then(c[p++],c[p++]);return u}getUri(e){return ge(Je((e=Xe(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}re.forEach(["delete","get","head","options"],(function(e){xt.prototype[e]=function(t,n){return this.request(Xe(n||{},{method:e,url:t,data:(n||{}).data}))}})),re.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Xe(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}xt.prototype[e]=t(),xt.prototype[e+"Form"]=t(!0)}));const jt=xt;class St{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Be(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new St((function(t){e=t})),cancel:e}}}const Et=St,_t={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_t).forEach((([e,t])=>{_t[t]=e}));const Ct=_t,Pt=function e(t){const n=new jt(t),r=g(jt.prototype.request,n);return re.extend(r,jt.prototype,n,{allOwnKeys:!0}),re.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Xe(t,n))},r}(Ae);Pt.Axios=jt,Pt.CanceledError=Be,Pt.CancelToken=Et,Pt.isCancel=Ve,Pt.VERSION="1.8.4",Pt.toFormData=de,Pt.AxiosError=ae,Pt.Cancel=Pt.CanceledError,Pt.all=function(e){return Promise.all(e)},Pt.spread=function(e){return function(t){return e.apply(null,t)}},Pt.isAxiosError=function(e){return re.isObject(e)&&!0===e.isAxiosError},Pt.mergeConfig=Xe,Pt.AxiosHeaders=Me,Pt.formToJSON=e=>Pe(re.isHTMLForm(e)?new FormData(e):e),Pt.getAdapter=mt,Pt.HttpStatusCode=Ct,Pt.default=Pt;const kt=Pt;var At,Rt,Dt,Tt,It,Nt,Lt=function(e){var t=(0,o.createContext)(void 0);return[t,function(){var n=(0,o.useContext)(t);if(void 0===n)throw Error("use".concat(e," can only be used within a ").concat(e," context provider."));return n}]},Mt=function(e,t){return t===e.charAt(e.length-1)?e.slice(0,-1):e},Ft=(Mt(null!==(At=null===(Rt=window.CODE_SNIPPETS)||void 0===Rt?void 0:Rt.restAPI.base)&&void 0!==At?At:"","/"),Mt(null!==(Dt=null===(Tt=window.CODE_SNIPPETS)||void 0===Tt?void 0:Tt.restAPI.snippets)&&void 0!==Dt?Dt:"","/")),Vt={headers:{"X-WP-Nonce":null===(It=window.CODE_SNIPPETS)||void 0===It?void 0:It.restAPI.nonce,"Access-Control":null===(Nt=window.CODE_SNIPPETS)||void 0===Nt?void 0:Nt.restAPI.localToken}},Ut=n(2284),Bt=n(816);function Ht(e,t,n){return(t=(0,Bt.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zt={php:["global","admin","front-end","single-use"],html:["content","head-content","footer-content"],css:["admin-css","site-css"],js:["site-head-js","site-footer-js"],cond:["condition"]},$t=function(){return window.pagenow.endsWith("-network")},Wt=function(){return null!==/mac/i.exec(window.navigator.userAgent)},qt=function(){var e;return!(null===(e=window.CODE_SNIPPETS)||void 0===e||!e.isLicensed)};function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kt={id:0,name:"",code:"",desc:"",scope:"global",modified:"",active:!1,network:$t(),shared_network:null,priority:10,conditionId:0},Xt=function(e){return"number"==typeof e&&0<e},Yt=new Set(["css","js","cond"]),Zt=function(e){return function(e){var t,n,r,o=Jt(Jt({},Kt),{},{tags:[]});return"object"!==(0,Ut.A)(e)||null===e?o:Jt(Jt(Jt(Jt(Jt(Jt(Jt(Jt(Jt(Jt(Jt(Jt(Jt({},o),"id"in e&&Xt(e.id)&&{id:e.id}),"name"in e&&"string"==typeof e.name&&{name:e.name}),"desc"in e&&"string"==typeof e.desc&&{desc:e.desc}),"code"in e&&"string"==typeof e.code&&{code:e.code}),"tags"in e&&{tags:null!==(r=e.tags,t=Array.isArray(r)?r.filter((function(e){return"string"==typeof e})):void 0)&&void 0!==t?t:o.tags}),"scope"in e&&"string"==typeof(n=e.scope)&&Object.values(zt).some((function(e){return e.some((function(e){return e===n}))}))&&{scope:e.scope}),"modified"in e&&"string"==typeof e.modified&&{modified:e.modified}),"active"in e&&"boolean"==typeof e.active&&{active:e.active}),"network"in e&&"boolean"==typeof e.network&&{network:e.network}),"shared_network"in e&&"boolean"==typeof e.shared_network&&{shared_network:e.shared_network}),"priority"in e&&"number"==typeof e.priority&&{priority:e.priority}),"condition_id"in e&&Xt(e.condition_id)&&{conditionId:e.condition_id})}(e)},Qt=function(e){var t=e.scope;switch(!0){case t.endsWith("-css"):return"css";case t.endsWith("-js"):return"js";case t.endsWith("content"):return"html";case"condition"===t:return"cond";default:return"php"}},en=function(e){return"condition"===e.scope},tn=function(e){return Yt.has(e)},nn=function(e,t){var n=e.id,r=e.network;return(0,l.addQueryArgs)([Ft,n,t].filter(Boolean).join("/"),{network:!!r||void 0})},rn=function(e){return{name:e.name,desc:e.desc,code:e.code,tags:e.tags,scope:e.scope,priority:e.priority,active:e.active,network:e.network,condition_id:e.conditionId}},on=n(4848),sn=function(){var e=m(b().mark((function e(t,n,r,o){var i,s;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(i=console).debug.apply(i,["".concat(t," ").concat(n)].concat(f(o?[o]:[]))),e.next=3,r;case 3:return s=e.sent,console.debug("Response",s),e.abrupt("return",s.data);case 6:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}(),an=Lt("RestAPI"),cn=(0,s.A)(an,2),un=cn[0],ln=cn[1],pn=function(e){var t=e.children,n=(0,o.useMemo)((function(){return kt.create(Vt)}),[]),r=(0,o.useMemo)((function(){return function(e){return{get:function(t){return sn("GET",t,e.get(t))},post:function(t,n){return sn("POST",t,e.post(t,n),n)},del:function(t){return sn("DELETE",t,e.delete(t))},put:function(t,n){return sn("PUT",t,e.put(t,n),n)}}}(n)}),[n]),i=(0,o.useMemo)((function(){return t=(e=r).get,n=e.post,o=e.del,i=e.put,{fetchAll:function(e){return t((0,l.addQueryArgs)(Ft,{network:e})).then((function(e){return e.map(Zt)}))},fetch:function(e,n){return t((0,l.addQueryArgs)("".concat(Ft,"/").concat(e),{network:n})).then(Zt)},create:function(e){return n(Ft,rn(e)).then(Zt)},update:function(e){return n(e.id?nn(e):Ft,rn(e)).then(Zt)},delete:function(e){return o(nn(e))},activate:function(e){return n(nn(e,"activate")).then(Zt)},deactivate:function(e){return n(nn(e,"deactivate")).then(Zt)},export:function(e){return t(nn(e,"export"))},exportCode:function(e){return t(nn(e,"export-code"))},attach:function(e){return i(nn(e,"attach"),{condition_id:e.conditionId})},detach:function(e){return i(nn(e,"detach"))}};var e,t,n,o,i}),[r]),s={api:r,snippetsAPI:i,axiosInstance:n};return(0,on.jsx)(un.Provider,{value:s,children:t})},dn=Lt("SnippetsList"),fn=(0,s.A)(dn,2),hn=fn[0],mn=fn[1],vn=function(e){var t=e.children,n=ln().snippetsAPI.fetchAll,r=(0,o.useState)(),i=(0,s.A)(r,2),a=i[0],c=i[1],u=(0,o.useCallback)(m(b().mark((function e(){var t;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,console.info("Fetching snippets list"),e.next=4,n($t());case 4:t=e.sent,c(t),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.error("Error fetching snippets list",e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])}))),[n]);(0,o.useEffect)((function(){u().catch((function(){}))}),[u]);var l={snippetsList:a,refreshSnippetsList:u};return(0,on.jsx)(hn.Provider,{value:l,children:t})};const{Axios:bn,AxiosError:gn,CanceledError:yn,isCancel:wn,CancelToken:On,VERSION:xn,all:jn,Cancel:Sn,isAxiosError:En,spread:_n,toFormData:Cn,AxiosHeaders:Pn,HttpStatusCode:kn,formToJSON:An,getAdapter:Rn,mergeConfig:Dn}=kt;var Tn=Lt("SnippetForm"),In=(0,s.A)(Tn,2),Nn=In[0],Ln=In[1],Mn=function(e){var t=e.children,n=e.initialSnippet,r=(0,o.useState)(n),i=(0,s.A)(r,2),a=i[0],c=i[1],u=(0,o.useState)(!1),l=(0,s.A)(u,2),p=l[0],d=l[1],f=(0,o.useState)(),h=(0,s.A)(f,2),m=h[0],v=h[1],b=(0,o.useState)(),g=(0,s.A)(b,2),y=g[0],w=g[1],O=(0,o.useMemo)((function(){return!qt()&&function(e){return Yt.has(Qt(e))}({scope:a.scope})}),[a.scope]),x=(0,o.useCallback)((function(e,t){console.error("Request failed",e),d(!1),v(["error",[t,En(e)?e.message:""].filter(Boolean).join(" ")])}),[d,v]),j=(0,o.useCallback)((function(e){c((function(t){var n,r="object"===(0,Ut.A)(e)?e:e(t);return null==y||y.codemirror.setValue(r.code),null===(n=window.tinymce)||void 0===n||n.activeEditor.setContent(r.desc),r}))}),[null==y?void 0:y.codemirror]),S={snippet:a,isWorking:p,isReadOnly:O,setSnippet:c,setIsWorking:d,updateSnippet:j,currentNotice:m,setCurrentNotice:v,codeEditorInstance:y,handleRequestError:x,setCodeEditorInstance:w};return(0,on.jsx)(Nn.Provider,{value:S,children:t})};function Fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fn(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Un={addNew:(0,u.__)("Add New Snippet","code-snippets"),edit:(0,u.__)("Edit Snippet","code-snippets"),created:(0,u.__)("Snippet created.","code-snippets"),updated:(0,u.__)("Snippet updated.","code-snippets"),createdActivated:(0,u.__)("Snippet created and activated.","code-snippets"),updatedActivated:(0,u.__)("Snippet updated and activated.","code-snippets"),updatedDeactivated:(0,u.__)("Snippet updated and deactivated"),updatedExecuted:(0,u.__)("Snippet updated and executed.","code-snippets"),failedCreate:(0,u.__)("Could not create snippet.","code-snippets"),failedUpdate:(0,u.__)("Could not update snippet.","code-snippets")},Bn={addNew:(0,u.__)("Add New Condition","code-snippets"),edit:(0,u.__)("Edit Condition","code-snippets"),created:(0,u.__)("Condition created.","code-snippets"),updated:(0,u.__)("Condition updated.","code-snippets"),createdActivated:(0,u.__)("Condition created and activated","code-snippets"),updatedActivated:(0,u.__)("Condition updated and activated.","code-snippets"),updatedDeactivated:(0,u.__)("Condition updated and deactivated"),updatedExecuted:Un.updatedExecuted,failedCreate:(0,u.__)("Could not create condition.","code-snippets"),failedUpdate:(0,u.__)("Could not update condition.","code-snippets")},Hn=function(e){return e.SAVE="save_snippet",e.SAVE_AND_ACTIVATE="save_snippet_activate",e.SAVE_AND_EXECUTE="save_snippet_execute",e.SAVE_AND_DEACTIVATE="save_snippet_deactivate",e}({}),zn=function(e,t,n){var r="condition"===e.scope?Bn:Un,o=0===e.id;switch(n){case Hn.SAVE:return o?r.created:r.updated;case Hn.SAVE_AND_EXECUTE:return r.updatedExecuted;case Hn.SAVE_AND_ACTIVATE:return"single-use"===t.scope?r.updatedExecuted:o?r.createdActivated:r.updatedActivated;case Hn.SAVE_AND_DEACTIVATE:return r.updatedDeactivated}},$n=Ht(Ht(Ht(Ht({},Hn.SAVE,{}),Hn.SAVE_AND_ACTIVATE,{active:!0}),Hn.SAVE_AND_DEACTIVATE,{active:!1}),Hn.SAVE_AND_EXECUTE,{active:!0}),Wn=function(){var e=ln().snippetsAPI,t=Ln(),n=t.setIsWorking,r=t.setCurrentNotice,i=t.snippet,s=t.setSnippet,a=(0,o.useCallback)(m(b().mark((function t(){var o,a,c,p,d,f=arguments;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=f.length>0&&void 0!==f[0]?f[0]:Hn.SAVE,r(void 0),t.next=4,m(b().mark((function t(){var r,s;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=Vn(Vn({},i),$n[o]),t.next=4,0===r.id?e.create(r):e.update(r);case 4:return s=t.sent,n(!1),t.abrupt("return",s.id?s:void 0);case 9:return t.prev=9,t.t0=t.catch(0),n(!1),t.abrupt("return",En(t.t0)?t.t0.message:void 0);case 13:case"end":return t.stop()}}),t,null,[[0,9]])})))();case 4:if(a=t.sent,c=en(i)?Bn:Un,void 0!==a&&"string"!=typeof a){t.next=12;break}return p=[i.id?c.failedUpdate:c.failedCreate,null!=a?a:(0,u.__)("The server did not send a valid response.","code-snippets")],r(["error",p.filter(Boolean).join(" ")]),t.abrupt("return",void 0);case 12:return s(Zt(a)),r(["updated",zn(i,a,o)]),i.id&&a.id&&(window.document.title=window.document.title.replace(Un.addNew,c.edit),window.history.replaceState({},"",(0,l.addQueryArgs)(null===(d=window.CODE_SNIPPETS)||void 0===d?void 0:d.urls.edit,{id:a.id}))),t.abrupt("return",a);case 16:case"end":return t.stop()}}),t)}))),[e,n,r,i,s]);return{submitSnippet:a}},qn=function(e){console.error(e)};const Gn=window.wp.components;var Jn=function(e){var t=e.open,n=e.title,r=e.onConfirm,o=e.onCancel,i=e.children,s=e.confirmLabel,a=void 0===s?(0,u.__)("OK","code-snippets"):s,c=e.cancelLabel,l=void 0===c?(0,u.__)("Cancel","code-snippets"):c,p=e.confirmButtonClassName;return t?(0,on.jsxs)(Gn.Modal,{title:n,onRequestClose:o,closeButtonLabel:l,isDismissible:!0,onKeyDown:function(e){"Enter"===e.key&&(null==r||r())},children:[i,(0,on.jsxs)(Gn.Flex,{direction:"row",justify:"flex-end",children:[(0,on.jsx)(Gn.Button,{variant:"tertiary",onClick:o,children:l}),(0,on.jsx)(Gn.Button,{variant:"primary",onClick:r,className:p,children:a})]})]}):null},Kn=function(e){var t,n=e.isOpen,r=e.setIsOpen;return n?(0,on.jsxs)(Gn.Modal,{title:"",className:"code-snippets-upsell-dialog",onRequestClose:function(){r(!1)},children:[(0,on.jsx)("img",{src:"".concat(null===(t=window.CODE_SNIPPETS)||void 0===t?void 0:t.urls.plugin,"/assets/icon.svg"),alt:(0,u.__)("Code Snippets logo","code-snippets")}),(0,on.jsxs)("h1",{children:[(0,u.__)("Unlock all cloud sync features and many more, with ","code-snippets"),(0,on.jsx)("span",{children:(0,u.__)("Code Snippets Pro","code-snippets")})]}),(0,on.jsxs)("p",{children:[(0,u.__)("With Code Snippets Pro you can ","code-snippets"),(0,on.jsx)("strong",{children:(0,u.__)("connect your WordPress sites","code-snippets")}),(0,u.__)(" to the code snippets cloud platform and be able to ","code-snippets"),(0,on.jsx)("strong",{children:(0,u.__)("backup, synchronise, collaborate, and deploy","code-snippets")}),(0,u.__)(" your snippets from one central location.","code-snippets")]}),(0,on.jsx)("a",{href:"https://codesnippets.pro/pricing/",className:"button button-primary button-large",rel:"noreferrer",target:"_blank",children:(0,u.__)("Explore Code Snippets Pro","code-snippets")}),(0,on.jsx)("h2",{children:(0,u.__)("Here's what else you get with Pro:","code-snippets")}),(0,on.jsxs)("ul",{children:[(0,on.jsx)("li",{children:(0,u.__)("Create, explain and verify snippets with AI","code-snippets")}),(0,on.jsx)("li",{children:(0,u.__)("Control when snippets run with Conditions","code-snippets")}),(0,on.jsx)("li",{children:(0,u.__)("CSS stylesheet snippets","code-snippets")}),(0,on.jsx)("li",{children:(0,u.__)("Minified JavaScript snippets","code-snippets")}),(0,on.jsx)("li",{children:(0,u.__)("Editor blocks and Elementor widgets","code-snippets")}),(0,on.jsx)("li",{children:(0,u.__)("Cloud sync and backup","code-snippets")}),(0,on.jsx)("li",{children:(0,u.__)("Cloud share and deploy","code-snippets")}),(0,on.jsx)("li",{children:(0,u.__)("Cloud bundles and teams","code-snippets")}),(0,on.jsx)("li",{children:(0,u.__)("WP-CLI commands","code-snippets")}),(0,on.jsx)("li",{children:(0,u.__)("And much more!","code-snippets")})]})]}):null};function Xn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Yn=["id","children","className","name","primary","secondary","small","large","link","type","onClick"];function Zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zn(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var er=function(e){var t=e.id,n=e.children,r=e.className,o=e.name,i=e.primary,s=void 0!==i&&i,a=e.secondary,u=void 0!==a&&a,l=e.small,p=void 0!==l&&l,d=e.large,f=void 0!==d&&d,h=e.link,m=void 0!==h&&h,v=e.type,b=void 0===v?"button":v,g=e.onClick,y=Xn(e,Yn);return(0,on.jsx)("button",Qn(Qn({id:null!=t?t:o,name:o,type:b},y),{},{onClick:function(e){g&&(e.preventDefault(),g(e))},className:c()("button",r,{"button-primary":s,"button-secondary":u,"button-large":f,"button-small":p,"button-link":m}),children:n}))},tr=function(e){var t=e.setIsDialogOpen,n=Ln(),r=n.snippet,o=n.isReadOnly,i=0!==r.conditionId;return(0,on.jsx)("div",{className:c()("conditions-editor-open",i?"has-condition":"no-condition"),children:en(r)?null:(0,on.jsxs)(on.Fragment,{children:[(0,on.jsx)("h3",{children:(0,u.__)("Conditions","code-snippets")}),(0,on.jsxs)(er,{large:!0,primary:i,disabled:o,onClick:function(){return t(!0)},children:[(0,on.jsx)("span",{className:"dashicons dashicons-randomize"}),i?(0,u.__)("Conditions","code-snippets"):(0,u.__)("Set Conditions","code-snippets"),(0,on.jsx)("span",{className:"badge beta-badge small-badge",children:(0,u.__)("beta","code-snippets")}),!qt()&&(0,on.jsx)("span",{className:"badge pro-badge small-badge",children:(0,u.__)("Pro","code-snippets")})]})]})})},nr=function(e){var t=e.className,n=e.onDismiss,r=e.children;return(0,on.jsxs)("div",{id:"message",className:c()("notice fade is-dismissible",t),children:[(0,on.jsx)(on.Fragment,{children:r}),(0,on.jsx)("button",{type:"button",className:"notice-dismiss",onClick:function(e){e.preventDefault(),n()},children:(0,on.jsx)("span",{className:"screen-reader-text",children:(0,u.__)("Dismiss notice.","code-snippets")})})]})};function rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rr(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ir=function(){var e=Ln(),t=e.currentNotice,n=e.setCurrentNotice,r=e.snippet,o=e.setSnippet;return(0,on.jsxs)(on.Fragment,{children:[t?(0,on.jsx)(nr,{className:t[0],onDismiss:function(){return n(void 0)},children:(0,on.jsx)("p",{children:t[1]})}):null,r.code_error?(0,on.jsx)(nr,{className:"notice-error",onDismiss:function(){return o((function(e){return or(or({},e),{},{code_error:null})}))},children:(0,on.jsxs)("p",{children:[(0,on.jsx)("strong",{children:(0,u.sprintf)((0,u.__)("Snippet automatically deactivated due to an error on line %d:","code-snippets"),r.code_error[1])}),(0,on.jsx)("blockquote",{children:r.code_error[0]})]})}):null]})},sr=["text","copyIcon","successIcon"];function ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var cr=function(e){var t=e.text,n=e.copyIcon,r=void 0===n?"clipboard":n,i=e.successIcon,a=void 0===i?"yes":i,c=Xn(e,sr),u=(0,o.useState)(!1),l=(0,s.A)(u,2),p=l[0],d=l[1],f=window.navigator.clipboard;return f?(0,on.jsx)("a",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({href:"#",className:"code-snippets-copy-text dashicons dashicons-".concat(p?a:r),onClick:function(e){e.preventDefault(),null==f||f.writeText(t).then((function(){d(!0),setTimeout((function(){return d(!1)}),3e3)})).catch(qn)}},c)):null};function ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ur(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ur(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pr=function(e,t){return"[".concat([e].concat(f(Object.entries(t).filter((function(e){var t=(0,s.A)(e,2)[1];return Boolean(t)})).map((function(e){var t=(0,s.A)(e,2),n=t[0],r=t[1];return"boolean"==typeof r?n:"".concat(n,"=").concat(JSON.stringify(r))})))).filter(Boolean).join(" "),"]")},dr="code_snippet",fr=function(e){var t=e.atts;return(0,on.jsxs)("p",{className:"shortcode-tag-wrapper",children:[(0,on.jsx)("code",{className:"shortcode-tag",children:pr(dr,t)}),(0,on.jsx)(cr,{title:(0,u.__)("Copy shortcode to clipboard","code-snippets"),text:pr(dr,t)})]})},hr=function(e){var t=e.optionLabels,n=e.options,r=e.setOptions,o=e.isReadOnly;return(0,on.jsxs)("p",{className:"html-shortcode-options",children:[(0,on.jsx)("h4",{children:(0,u.__)("Shortcode Options","code-snippets")}),(0,on.jsx)("ul",{children:t.map((function(e){var t=(0,s.A)(e,2),i=t[0],a=t[1];return(0,on.jsx)("li",{children:(0,on.jsxs)("label",{children:[(0,on.jsx)("input",{type:"checkbox",value:i,checked:n[i],disabled:o,onChange:function(e){return r((function(t){return lr(lr({},t),{},Ht({},i,e.target.checked))}))}})," ".concat(a)]})},i)}))})]})},mr=function(){var e=Ln(),t=e.snippet,n=e.isReadOnly,r=(0,o.useState)((function(){return{php:t.code.includes("<?"),format:!0,shortcodes:!1}})),i=(0,s.A)(r,2),a=i[0],c=i[1];return"content"===t.scope?(0,on.jsxs)(on.Fragment,{children:[(0,on.jsxs)("p",{className:"description",children:[(0,u.__)("There are multiple options for inserting this snippet into a post, page or other content.","code-snippets")," ",t.id?(0,u.__)("You can copy the below shortcode, or use the Classic Editor button, Block editor (Pro) or Elementor widget (Pro).","code-snippets"):(0,u.__)("After saving, you can copy a shortcode, or use the Classic Editor button, Block editor (Pro) or Elementor widget (Pro).","code-snippets")," ",(0,on.jsx)(Gn.ExternalLink,{href:(0,u.__)("https://help.codesnippets.pro/article/50-inserting-snippets","code-snippets"),children:(0,u.__)("Learn more","code-snippets")})]}),t.id?(0,on.jsxs)(on.Fragment,{children:[(0,on.jsx)(fr,{atts:lr({id:t.id,network:t.network},a)}),(0,on.jsx)(hr,{options:a,setOptions:c,isReadOnly:n,optionLabels:[["php",(0,u.__)("Evaluate PHP code","code-snippets")],["format",(0,u.__)("Add paragraphs and formatting","code-snippets")],["shortcodes",(0,u.__)("Evaluate additional shortcode tags","code-snippets")]]})]}):null]}):null};function vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gr=function(){var e=Ln(),t=e.snippet,n=e.setSnippet,r=e.isReadOnly;return(0,on.jsxs)("div",{children:[(0,on.jsx)("h4",{children:(0,on.jsx)("label",{htmlFor:"snippet_sharing",children:(0,u.__)("Share with Subsites","code-snippets")})}),(0,on.jsxs)("div",{className:"tooltip-bottom",children:[(0,on.jsx)("span",{className:"dashicons dashicons-editor-help"}),(0,on.jsx)("span",{className:"tooltip-content",children:(0,u.__)("Instead of running on every site, allow this snippet to be activated on individual sites on the network.","code-snippets")})]}),(0,on.jsx)("input",{id:"snippet_sharing",name:"snippet_sharing",type:"checkbox",className:"switch",checked:!0===t.shared_network,disabled:r,onChange:function(e){return n((function(t){return br(br({},t),{},{active:!1,shared_network:e.target.checked})}))}})]})},yr={php:["php","text/php"],html:["php","text/php"],css:["css","text/css"],js:["js","text/javascript"],cond:["json","application/json"],json:["json","application/json"]},wr=function(e,t,n){var r=document.createElement("a");r.download=t,r.href=URL.createObjectURL(new Blob([e],{type:n})),setTimeout((function(){return URL.revokeObjectURL(r.href)}),4e4),setTimeout((function(){return r.click()}),0)},Or=function(e){var t=e.name,n=e.label,r=e.makeRequest,o=Ln(),i=o.snippet,a=o.isWorking,c=o.setIsWorking,l=o.handleRequestError;return(0,on.jsx)(er,{name:t,onClick:function(){c(!0),r(i).then((function(e){return function(e,t){var n=t.id,r=t.name,o=t.scope,i=r.toLowerCase().replace(/[^\w-]+/g,"-").trim(),a=""===i?"snippet-".concat(n):i;if("string"==typeof e){var c=(0,s.A)(yr[Qt({scope:o})],2),u=c[0],l=c[1],p="".concat(a,".code-snippets.").concat(u);wr(e,p,l)}else{var d="".concat(a,".code-snippets.json");wr(JSON.stringify(e,void 0,2),d,"application/json")}}(e,i)})).catch((function(e){return l(e,(0,u.__)("Could not download export file.","code-snippets"))})).finally((function(){return c(!1)}))},disabled:a,children:n})},xr=function(){var e,t=ln().snippetsAPI;return(0,on.jsxs)("div",{className:"snippet-export-buttons",children:[(0,on.jsx)(Or,{name:"export_snippet",label:(0,u.__)("Export","code-snippets"),makeRequest:t.export}),null!==(e=window.CODE_SNIPPETS_EDIT)&&void 0!==e&&e.enableDownloads?(0,on.jsx)(Or,{name:"export_snippet_code",label:(0,u.__)("Export Code","code-snippets"),makeRequest:t.exportCode}):null]})},jr=["id","text","name","primary","small","large","wrap","className"];function Sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Er=function(e){var t=e.id,n=e.text,r=e.name,o=void 0===r?"submit":r,i=e.primary,s=e.small,a=e.large,l=e.wrap,p=e.className,d=Xn(e,jr),f=(0,on.jsx)("input",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:null!=t?t:o,type:"submit",name:o,value:null!=n?n:(0,u.__)("Save Changes","code-snippets"),className:c()("button",{"button-primary":i,"button-small":s,"button-large":a},p)},d));return l?(0,on.jsx)("p",{className:"submit",children:f}):f};function _r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Cr=function(e){var t=Ln().snippet;return(0,on.jsx)(Er,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({large:!0,name:Hn.SAVE,text:en(t)?(0,u.__)("Save Condition","code-snippets"):(0,u.__)("Save Snippet","code-snippets")},e))},Pr=function(e){var t=e.primaryActivate,n=Ln(),r=n.snippet,o=n.isWorking;switch(!0){case en(r)||r.shared_network&&$t():return null;case"single-use"===r.scope:return(0,on.jsx)(Er,{large:!0,name:Hn.SAVE_AND_EXECUTE,disabled:o,text:(0,u.__)("Save and Execute Once","code-snippets")});case r.active:return(0,on.jsx)(Er,{name:Hn.SAVE_AND_DEACTIVATE,disabled:o,large:!0,text:(0,u.__)("Save and Deactivate","code-snippets")});default:case!r.active:return(0,on.jsx)(Er,{name:Hn.SAVE_AND_ACTIVATE,primary:t,disabled:o,large:!0,text:(0,u.__)("Save and Activate","code-snippets")})}},kr=function(){var e,t=Ln().snippet,n=!(null===(e=window.CODE_SNIPPETS_EDIT)||void 0===e||!e.activateByDefault||t.active||"single-use"===t.scope||t.shared_network&&$t());return(0,on.jsxs)(on.Fragment,{children:[n&&(0,on.jsx)(Cr,{primary:!n}),(0,on.jsx)(Pr,{primaryActivate:n}),!n&&(0,on.jsx)(Cr,{primary:!0})]})},Ar=function(){var e=Ln(),t=e.snippet,n=e.isWorking,r=Wn().submitSnippet;return(0,on.jsxs)("div",{children:[(0,on.jsx)("h4",{children:(0,on.jsx)("label",{htmlFor:"activation-switch",children:(0,u.__)("Is Active","code-snippets")})}),(0,on.jsx)("input",{id:"activation-switch",type:"checkbox",checked:t.active,disabled:n||!!t.shared_network,className:"switch",title:t.active?(0,u.__)("Deactivate","code-snippets"):(0,u.__)("Activate","code-snippets"),onChange:function(){r(t.active?Hn.SAVE_AND_DEACTIVATE:Hn.SAVE_AND_ACTIVATE).then((function(){})).catch(qn)}})]})},Rr=function(){var e=ln().snippetsAPI,t=Ln(),n=t.snippet,r=t.setIsWorking,i=t.isWorking,a=t.handleRequestError,c=(0,o.useState)(!1),p=(0,s.A)(c,2),d=p[0],f=p[1];return(0,on.jsxs)(on.Fragment,{children:[(0,on.jsx)(er,{id:"delete-snippet",className:"delete-button",disabled:i,onClick:function(){f(!0)},children:(0,u.__)("Delete","code-snippets")}),(0,on.jsxs)(Jn,{open:d,title:(0,u.__)("Permanently delete?","code-snippets"),confirmLabel:(0,u.__)("Delete","code-snippets"),confirmButtonClassName:"is-destructive",onCancel:function(){return f(!1)},onConfirm:function(){f(!1),r(!0),e.delete(n).then((function(){var e;r(!1),window.location.replace((0,l.addQueryArgs)(null===(e=window.CODE_SNIPPETS)||void 0===e?void 0:e.urls.manage,{result:"deleted"}))})).catch((function(e){return a(e,(0,u.__)("Could not delete snippet.","code-snippets"))}))},children:[(0,on.jsxs)("p",{style:{marginBlockStart:0},children:[(0,u.__)("You are about to permanently delete this snippet.","code-snippets")," ",(0,u.__)("Are you sure?","code-snippets")]}),(0,on.jsx)("p",{children:(0,on.jsx)("strong",{children:(0,u.__)("This action cannot be undone.","code-snippets")})})]})]})},Dr=function(e){var t=e.block,n=e.inline,r=e.start,o=e.end,i=e.icon,s=e.className,a=e.children;return(0,on.jsxs)("div",{className:c()("tooltip",{"tooltip-block":t,"tooltip-inline":n,"tooltip-start":r,"tooltip-end":o},s),children:[null!=i?i:(0,on.jsx)("span",{className:"dashicons dashicons-editor-help"}),(0,on.jsx)("div",{className:"tooltip-content",children:a})]})};function Tr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ir(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tr(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nr,Lr=function(){var e=Ln(),t=e.snippet,n=e.isReadOnly,r=e.setSnippet;return(0,on.jsxs)("div",{className:"snippet-priority",children:[(0,on.jsx)("h4",{children:(0,on.jsx)("label",{htmlFor:"snippet-priority",children:(0,u.__)("Priority","code-snippets")})}),(0,on.jsx)(Dr,{block:!0,end:!0,children:(0,u.__)("Snippets with a lower priority number will run before those with a higher number.","code-snippets")}),(0,on.jsx)("input",{type:"number",id:"snippet-priority",name:"snippet_priority",value:t.priority,disabled:n,onChange:function(e){return r((function(t){return Ir(Ir({},t),{},{priority:parseInt(e.target.value,10)})}))}})]})},Mr=function(){var e=Ln().codeEditorInstance;return(0,on.jsxs)("div",{children:[(0,on.jsx)("h4",{children:(0,on.jsx)("label",{htmlFor:"snippet-code-direction",children:(0,u.__)("Code Direction","code-snippets")})}),(0,on.jsxs)("select",{id:"snippet-code-direction",onChange:function(t){return null==e?void 0:e.codemirror.setOption("direction","rtl"===t.target.value?"rtl":"ltr")},children:[(0,on.jsx)("option",{value:"ltr",children:(0,u.__)("LTR","code-snippets")}),(0,on.jsx)("option",{value:"rtl",children:(0,u.__)("RTL","code-snippets")})]})]})};function Fr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fr(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ur=null===(Nr=window.CODE_SNIPPETS_EDIT)||void 0===Nr?void 0:Nr.tagOptions,Br=function(){var e=Ln(),t=e.snippet,n=e.setSnippet,r=e.isReadOnly;return null!=Ur&&Ur.enabled?(0,on.jsxs)("div",{className:"snippet-tags-container",children:[(0,on.jsx)("h4",{children:(0,on.jsx)("label",{children:(0,u.__)("Tags","code-snippets")})}),(0,on.jsx)(Gn.FormTokenField,{label:"",value:t.tags,disabled:r,suggestions:Ur.availableTags,tokenizeOnBlur:!0,tokenizeOnSpace:!Ur.allowSpaces,onChange:function(e){n((function(t){return Vr(Vr({},t),{},{tags:e.map((function(e){return"string"==typeof e?e:e.value}))})}))}})]}):null},Hr=function(){var e,t=Ln(),n=t.snippet,r=t.isWorking;return(0,on.jsxs)("div",{className:"snippet-editor-sidebar",children:[(0,on.jsxs)("div",{className:"box",children:[n.id&&!en(n)?(0,on.jsx)(Ar,{}):null,$t()?(0,on.jsx)(gr,{}):null,(0,u.isRTL)()?(0,on.jsx)(Mr,{}):null,(0,on.jsx)(Lr,{}),null!==(e=window.CODE_SNIPPETS_EDIT)&&void 0!==e&&e.tagOptions.enabled?(0,on.jsx)(Br,{}):null,n.id?(0,on.jsxs)("div",{className:"row-actions visible",children:[(0,on.jsx)(xr,{}),(0,on.jsx)(Rr,{})]}):null]}),(0,on.jsxs)("p",{className:"submit",children:[(0,on.jsx)(kr,{}),r?(0,on.jsx)(Gn.Spinner,{}):""]}),(0,on.jsx)(ir,{}),"html"===Qt(n)?(0,on.jsx)(mr,{}):null]})},zr=function(){var e,t,n=(0,o.useState)(!1),r=(0,s.A)(n,2),i=r[0],a=r[1];return i||qt()||null!==(e=window.CODE_SNIPPETS_EDIT)&&void 0!==e&&e.hideUpsell?null:(0,on.jsxs)("div",{className:"code-snippets-upsell-banner",children:[(0,on.jsx)("img",{src:"".concat(null===(t=window.CODE_SNIPPETS)||void 0===t?void 0:t.urls.plugin,"/assets/icon.svg"),alt:(0,u.__)("Code Snippets logo","code-snippets"),height:"34"}),(0,on.jsxs)("p",{children:[(0,u.__)("Unlock ","code-snippets"),(0,on.jsx)("strong",{children:(0,u.__)("cloud sync, snippet conditions, AI features","code-snippets")}),(0,u.__)(" and much more with Code Snippets Pro.","code-snippets")]}),(0,on.jsx)(Gn.ExternalLink,{className:"button button-primary button-large",href:"https://codesnippets.pro/pricing/",children:(0,u.__)("Get Started","code-snippets")}),(0,on.jsx)(er,{small:!0,link:!0,onClick:function(){return a(!0)},children:(0,on.jsx)("span",{className:"dashicons dashicons-no-alt"})})]})},$r=function(){return(0,on.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,on.jsx)("path",{d:"M12 3H15V6"}),(0,on.jsx)("path",{d:"M10.5 7.5L15 3L10.5 7.5Z"}),(0,on.jsx)("path",{d:"M6 15H3V12"}),(0,on.jsx)("path",{d:"M3 15L7.5 10.5L3 15Z"}),(0,on.jsx)("path",{d:"M12 15H15V12"}),(0,on.jsx)("path",{d:"M10.5 10.5L15 15L10.5 10.5Z"}),(0,on.jsx)("path",{d:"M6 3H3V6"}),(0,on.jsx)("path",{d:"M3 3L7.5 7.5L3 3Z"}),(0,on.jsx)("path",{d:"M12 3H15M15 3V6M15 3L10.5 7.5M6 15H3M3 15V12M3 15L7.5 10.5M12 15H15M15 15V12M15 15L10.5 10.5M6 3H3M3 3V6M3 3L7.5 7.5",stroke:"currentcolor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})},Wr=function(){return(0,on.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,on.jsx)("path",{d:"M3.75 6.75H6.75V3.75"}),(0,on.jsx)("path",{d:"M2.25 2.25L6.75 6.75L2.25 2.25Z"}),(0,on.jsx)("path",{d:"M3.75 11.25H6.75V14.25"}),(0,on.jsx)("path",{d:"M2.25 15.75L6.75 11.25L2.25 15.75Z"}),(0,on.jsx)("path",{d:"M14.25 6.75H11.25V3.75"}),(0,on.jsx)("path",{d:"M11.25 6.75L15.75 2.25L11.25 6.75Z"}),(0,on.jsx)("path",{d:"M14.25 11.25H11.25V14.25"}),(0,on.jsx)("path",{d:"M11.25 11.25L15.75 15.75L11.25 11.25Z"}),(0,on.jsx)("path",{d:"M3.75 6.75H6.75M6.75 6.75V3.75M6.75 6.75L2.25 2.25M3.75 11.25H6.75M6.75 11.25V14.25M6.75 11.25L2.25 15.75M14.25 6.75H11.25M11.25 6.75V3.75M11.25 6.75L15.75 2.25M14.25 11.25H11.25M11.25 11.25V14.25M11.25 11.25L15.75 15.75",stroke:"currentcolor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})},qr={Cmd:(0,u._x)("Cmd","keyboard key","code-snippets"),Ctrl:(0,u._x)("Ctrl","keyboard key","code-snippets"),Shift:(0,u._x)("Shift","keyboard key","code-snippets"),Option:(0,u._x)("Option","keyboard key","code-snippets"),Alt:(0,u._x)("Alt","keyboard key","code-snippets"),Tab:(0,u._x)("Tab","keyboard key","code-snippets"),Up:(0,u._x)("Up","keyboard key","code-snippets"),Down:(0,u._x)("Down","keyboard key","code-snippets"),A:(0,u._x)("A","keyboard key","code-snippets"),D:(0,u._x)("D","keyboard key","code-snippets"),F:(0,u._x)("F","keyboard key","code-snippets"),G:(0,u._x)("G","keyboard key","code-snippets"),R:(0,u._x)("R","keyboard key","code-snippets"),S:(0,u._x)("S","keyboard key","code-snippets"),Y:(0,u._x)("Y","keyboard key","code-snippets"),Z:(0,u._x)("Z","keyboard key","code-snippets"),"/":(0,u._x)("/","keyboard key","code-snippets"),"[":(0,u._x)("]","keyboard key","code-snippets"),"]":(0,u._x)("]","keyboard key","code-snippets")},Gr={saveChanges:{label:(0,u.__)("Save changes","code-snippets"),mod:"Cmd",key:"S"},selectAll:{label:(0,u.__)("Select all","code-snippets"),mod:"Cmd",key:"A"},beginSearch:{label:(0,u.__)("Begin searching","code-snippets"),mod:"Cmd",key:"F"},findNext:{label:(0,u.__)("Find next","code-snippets"),mod:"Cmd",key:"G"},findPrevious:{label:(0,u.__)("Find previous","code-snippets"),mod:["Shift","Cmd"],key:"G"},replace:{label:(0,u.__)("Replace","code-snippets"),mod:["Shift","Cmd"],key:"F"},replaceAll:{label:(0,u.__)("Replace all","code-snippets"),mod:["Shift","Cmd","Option"],key:"R"},search:{label:(0,u.__)("Persistent search","code-snippets"),mod:"Alt",key:"F"},toggleComment:{label:(0,u.__)("Toggle comment","code-snippets"),mod:"Cmd",key:"/"},swapLineUp:{label:(0,u.__)("Swap line up","code-snippets"),mod:"Option",key:"Up"},swapLineDown:{label:(0,u.__)("Swap line down","code-snippets"),mod:"Option",key:"Down"},autoIndent:{label:(0,u.__)("Auto-indent current line or selection","code-snippets"),mod:"Shift",key:"Tab"}},Jr=(0,u._x)("-","keyboard shortcut separator","code-snippets"),Kr=function(e){var t=e.modifier;switch(t){case"Ctrl":case"Cmd":return(0,on.jsxs)(on.Fragment,{children:[(0,on.jsx)("kbd",{className:"pc-key",children:qr.Ctrl}),(0,on.jsx)("kbd",{className:"mac-key",children:qr.Cmd}),Jr]});case"Option":return(0,on.jsxs)("span",{className:"mac-key",children:[(0,on.jsx)("kbd",{className:"mac-key",children:qr.Option}),Jr]});default:return(0,on.jsxs)(on.Fragment,{children:[(0,on.jsx)("kbd",{children:qr[t]}),Jr]})}},Xr=function(e){var t=e.editorTheme;return(0,on.jsxs)("div",{className:"snippet-editor-help tooltip tooltip-inline tooltip-start",children:[(0,on.jsx)("span",{className:"dashicons dashicons-editor-help cm-s-".concat(t)}),(0,on.jsx)("div",{className:c()("tooltip-content",{"platform-mac":Wt()}),children:(0,on.jsx)("table",{children:(0,on.jsx)("tbody",{children:Object.entries(Gr).map((function(e){var t=(0,s.A)(e,2),n=t[0],r=t[1],o=r.label,i=r.mod,a=r.key;return(0,on.jsxs)("tr",{children:[(0,on.jsx)("td",{children:o}),(0,on.jsxs)("td",{children:[(Array.isArray(i)?i:[i]).map((function(e){return(0,on.jsx)("span",{children:(0,on.jsx)(Kr,{modifier:e})},e)})),(0,on.jsx)("kbd",{children:qr[a]})]})]},n)}))})})})]})};function Yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yr(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qr=function(e){var t,n,r=e.textareaRef,o=Ln(),i=o.snippet,s=o.setSnippet;return(0,on.jsxs)("div",{className:"snippet-editor",children:[(0,on.jsx)("textarea",{ref:r,id:"snippet-code",name:"snippet_code",value:i.code,rows:200,spellCheck:!1,onChange:function(e){s((function(t){return Zr(Zr({},t),{},{code:e.target.value})}))}}),(0,on.jsx)(Xr,{editorTheme:null!==(t=null===(n=window.CODE_SNIPPETS_EDIT)||void 0===n?void 0:n.editorTheme)&&void 0!==t?t:"default"})]})},eo=function(e){var t=e.isExpanded,n=e.setIsExpanded,r=Ln(),i=r.snippet,s=r.setSnippet,a=r.codeEditorInstance,c=r.setCodeEditorInstance,l=Wn().submitSnippet,p=(0,o.useRef)(null);return(0,o.useEffect)((function(){c((function(e){return p.current&&!e&&(e=window.wp.codeEditor.initialize(p.current)).codemirror.on("changes",(function(e){s((function(t){return Zr(Zr({},t),{},{code:e.getValue()})}))})),e}))}),[c,p,s]),(0,o.useEffect)((function(){if(a){var e,t=null!==(e=a.codemirror.getOption("extraKeys"))&&void 0!==e?e:{},n=Wt()?"Cmd":"Ctrl",r=function(){l().then((function(){})).catch(qn)};a.codemirror.setOption("extraKeys",Zr(Zr({},"object"===(0,Ut.A)(t)?t:void 0),{},Ht(Ht({},"".concat(n,"-S"),r),"".concat(n,"-Enter"),r)))}}),[l,a,i]),(0,on.jsxs)("div",{className:"snippet-code-container",children:[(0,on.jsxs)("div",{className:"above-snippet-code",children:[(0,on.jsx)("h2",{children:(0,on.jsx)("label",{htmlFor:"snippet-code",children:(0,u.__)("Snippet Content","code-snippets")})}),(0,on.jsxs)(er,{small:!0,className:"expand-editor-button",onClick:function(){return n((function(e){return!e}))},children:[t?(0,on.jsx)(Wr,{}):(0,on.jsx)($r,{}),t?(0,u.__)("Minimise","code-snippets"):(0,u.__)("Expand","code-snippets")]})]}),(0,on.jsx)(Qr,{textareaRef:p})]})};function to(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function no(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?to(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):to(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ro=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function oo(){return oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oo.apply(null,arguments)}var io=n(3029),so=n(2901),ao=n(5501);function co(e){return co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},co(e)}function uo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uo=function(){return!!e})()}var lo=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),po=Math.abs,fo=String.fromCharCode,ho=Object.assign;function mo(e){return e.trim()}function vo(e,t,n){return e.replace(t,n)}function bo(e,t){return e.indexOf(t)}function go(e,t){return 0|e.charCodeAt(t)}function yo(e,t,n){return e.slice(t,n)}function wo(e){return e.length}function Oo(e){return e.length}function xo(e,t){return t.push(e),e}var jo=1,So=1,Eo=0,_o=0,Co=0,Po="";function ko(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:jo,column:So,length:s,return:""}}function Ao(e,t){return ho(ko("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ro(){return Co=_o>0?go(Po,--_o):0,So--,10===Co&&(So=1,jo--),Co}function Do(){return Co=_o<Eo?go(Po,_o++):0,So++,10===Co&&(So=1,jo++),Co}function To(){return go(Po,_o)}function Io(){return _o}function No(e,t){return yo(Po,e,t)}function Lo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Mo(e){return jo=So=1,Eo=wo(Po=e),_o=0,[]}function Fo(e){return Po="",e}function Vo(e){return mo(No(_o-1,Ho(91===e?e+2:40===e?e+1:e)))}function Uo(e){for(;(Co=To())&&Co<33;)Do();return Lo(e)>2||Lo(Co)>3?"":" "}function Bo(e,t){for(;--t&&Do()&&!(Co<48||Co>102||Co>57&&Co<65||Co>70&&Co<97););return No(e,Io()+(t<6&&32==To()&&32==Do()))}function Ho(e){for(;Do();)switch(Co){case e:return _o;case 34:case 39:34!==e&&39!==e&&Ho(Co);break;case 40:41===e&&Ho(e);break;case 92:Do()}return _o}function zo(e,t){for(;Do()&&e+Co!==57&&(e+Co!==84||47!==To()););return"/*"+No(t,_o-1)+"*"+fo(47===e?e:Do())}function $o(e){for(;!Lo(To());)Do();return No(e,_o)}var Wo="-ms-",qo="-moz-",Go="-webkit-",Jo="comm",Ko="rule",Xo="decl",Yo="@keyframes";function Zo(e,t){for(var n="",r=Oo(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Qo(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Xo:return e.return=e.return||e.value;case Jo:return"";case Yo:return e.return=e.value+"{"+Zo(e.children,r)+"}";case Ko:e.value=e.props.join(",")}return wo(n=Zo(e.children,r))?e.return=e.value+"{"+n+"}":""}function ei(e){return Fo(ti("",null,null,null,[""],e=Mo(e),0,[0],e))}function ti(e,t,n,r,o,i,s,a,c){for(var u=0,l=0,p=s,d=0,f=0,h=0,m=1,v=1,b=1,g=0,y="",w=o,O=i,x=r,j=y;v;)switch(h=g,g=Do()){case 40:if(108!=h&&58==go(j,p-1)){-1!=bo(j+=vo(Vo(g),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:j+=Vo(g);break;case 9:case 10:case 13:case 32:j+=Uo(h);break;case 92:j+=Bo(Io()-1,7);continue;case 47:switch(To()){case 42:case 47:xo(ri(zo(Do(),Io()),t,n),c);break;default:j+="/"}break;case 123*m:a[u++]=wo(j)*b;case 125*m:case 59:case 0:switch(g){case 0:case 125:v=0;case 59+l:-1==b&&(j=vo(j,/\f/g,"")),f>0&&wo(j)-p&&xo(f>32?oi(j+";",r,n,p-1):oi(vo(j," ","")+";",r,n,p-2),c);break;case 59:j+=";";default:if(xo(x=ni(j,t,n,u,l,o,a,y,w=[],O=[],p),i),123===g)if(0===l)ti(j,t,x,x,w,i,p,a,O);else switch(99===d&&110===go(j,3)?100:d){case 100:case 108:case 109:case 115:ti(e,x,x,r&&xo(ni(e,x,x,0,0,o,a,y,o,w=[],p),O),o,O,p,a,r?w:O);break;default:ti(j,x,x,x,[""],O,0,a,O)}}u=l=f=0,m=b=1,y=j="",p=s;break;case 58:p=1+wo(j),f=h;default:if(m<1)if(123==g)--m;else if(125==g&&0==m++&&125==Ro())continue;switch(j+=fo(g),g*m){case 38:b=l>0?1:(j+="\f",-1);break;case 44:a[u++]=(wo(j)-1)*b,b=1;break;case 64:45===To()&&(j+=Vo(Do())),d=To(),l=p=wo(y=j+=$o(Io())),g++;break;case 45:45===h&&2==wo(j)&&(m=0)}}return i}function ni(e,t,n,r,o,i,s,a,c,u,l){for(var p=o-1,d=0===o?i:[""],f=Oo(d),h=0,m=0,v=0;h<r;++h)for(var b=0,g=yo(e,p+1,p=po(m=s[h])),y=e;b<f;++b)(y=mo(m>0?d[b]+" "+g:vo(g,/&\f/g,d[b])))&&(c[v++]=y);return ko(e,t,n,0===o?Ko:a,c,u,l)}function ri(e,t,n){return ko(e,t,n,Jo,fo(Co),yo(e,2,-2),0)}function oi(e,t,n,r){return ko(e,t,n,Xo,yo(e,0,r),yo(e,r+1,-1),r)}var ii=function(e,t,n){for(var r=0,o=0;r=o,o=To(),38===r&&12===o&&(t[n]=1),!Lo(o);)Do();return No(e,_o)},si=new WeakMap,ai=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||si.get(n))&&!r){si.set(e,!0);for(var o=[],i=function(e,t){return Fo(function(e,t){var n=-1,r=44;do{switch(Lo(r)){case 0:38===r&&12===To()&&(t[n]=1),e[n]+=ii(_o-1,t,n);break;case 2:e[n]+=Vo(r);break;case 4:if(44===r){e[++n]=58===To()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=fo(r)}}while(r=Do());return e}(Mo(e),t))}(t,o),s=n.props,a=0,c=0;a<i.length;a++)for(var u=0;u<s.length;u++,c++)e.props[c]=o[a]?i[a].replace(/&\f/g,s[u]):s[u]+" "+i[a]}}},ci=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ui(e,t){switch(function(e,t){return 45^go(e,0)?(((t<<2^go(e,0))<<2^go(e,1))<<2^go(e,2))<<2^go(e,3):0}(e,t)){case 5103:return Go+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Go+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Go+e+qo+e+Wo+e+e;case 6828:case 4268:return Go+e+Wo+e+e;case 6165:return Go+e+Wo+"flex-"+e+e;case 5187:return Go+e+vo(e,/(\w+).+(:[^]+)/,Go+"box-$1$2"+Wo+"flex-$1$2")+e;case 5443:return Go+e+Wo+"flex-item-"+vo(e,/flex-|-self/,"")+e;case 4675:return Go+e+Wo+"flex-line-pack"+vo(e,/align-content|flex-|-self/,"")+e;case 5548:return Go+e+Wo+vo(e,"shrink","negative")+e;case 5292:return Go+e+Wo+vo(e,"basis","preferred-size")+e;case 6060:return Go+"box-"+vo(e,"-grow","")+Go+e+Wo+vo(e,"grow","positive")+e;case 4554:return Go+vo(e,/([^-])(transform)/g,"$1"+Go+"$2")+e;case 6187:return vo(vo(vo(e,/(zoom-|grab)/,Go+"$1"),/(image-set)/,Go+"$1"),e,"")+e;case 5495:case 3959:return vo(e,/(image-set\([^]*)/,Go+"$1$`$1");case 4968:return vo(vo(e,/(.+:)(flex-)?(.*)/,Go+"box-pack:$3"+Wo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Go+e+e;case 4095:case 3583:case 4068:case 2532:return vo(e,/(.+)-inline(.+)/,Go+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(wo(e)-1-t>6)switch(go(e,t+1)){case 109:if(45!==go(e,t+4))break;case 102:return vo(e,/(.+:)(.+)-([^]+)/,"$1"+Go+"$2-$3$1"+qo+(108==go(e,t+3)?"$3":"$2-$3"))+e;case 115:return~bo(e,"stretch")?ui(vo(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==go(e,t+1))break;case 6444:switch(go(e,wo(e)-3-(~bo(e,"!important")&&10))){case 107:return vo(e,":",":"+Go)+e;case 101:return vo(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Go+(45===go(e,14)?"inline-":"")+"box$3$1"+Go+"$2$3$1"+Wo+"$2box$3")+e}break;case 5936:switch(go(e,t+11)){case 114:return Go+e+Wo+vo(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Go+e+Wo+vo(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Go+e+Wo+vo(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Go+e+Wo+e+e}return e}var li=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Xo:e.return=ui(e.value,e.length);break;case Yo:return Zo([Ao(e,{value:vo(e.value,"@","@"+Go)})],r);case Ko:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Zo([Ao(e,{props:[vo(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Zo([Ao(e,{props:[vo(t,/:(plac\w+)/,":"+Go+"input-$1")]}),Ao(e,{props:[vo(t,/:(plac\w+)/,":-moz-$1")]}),Ao(e,{props:[vo(t,/:(plac\w+)/,Wo+"input-$1")]})],r)}return""}))}}],pi=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||li,s={},a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)}));var c,u,l,p,d=[Qo,(p=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],f=(u=[ai,ci].concat(i,d),l=Oo(u),function(e,t,n,r){for(var o="",i=0;i<l;i++)o+=u[i](e,t,n,r)||"";return o});o=function(e,t,n,r){c=n,Zo(ei(e?e+"{"+t.styles+"}":t.styles),f),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new lo({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return h.sheet.hydrate(a),h},di=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},fi={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function hi(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var mi=!1,vi=/[A-Z]|^ms/g,bi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gi=function(e){return 45===e.charCodeAt(1)},yi=function(e){return null!=e&&"boolean"!=typeof e},wi=hi((function(e){return gi(e)?e:e.replace(vi,"-$&").toLowerCase()})),Oi=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(bi,(function(e,t,n){return Si={name:t,styles:n,next:Si},t}))}return 1===fi[e]||gi(e)||"number"!=typeof t||0===t?t:t+"px"},xi="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ji(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Si={name:o.name,styles:o.styles,next:Si},o.name;var i=n;if(void 0!==i.styles){var s=i.next;if(void 0!==s)for(;void 0!==s;)Si={name:s.name,styles:s.styles,next:Si},s=s.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ji(e,t,n[o])+";";else for(var i in n){var s=n[i];if("object"!=typeof s){var a=s;null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":yi(a)&&(r+=wi(i)+":"+Oi(i,a)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&mi)throw new Error(xi);if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var c=ji(e,t,s);switch(i){case"animation":case"animationName":r+=wi(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}else for(var u=0;u<s.length;u++)yi(s[u])&&(r+=wi(i)+":"+Oi(i,s[u])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var a=Si,c=n(e);return Si=a,ji(e,t,c)}}var u=n;if(null==t)return u;var l=t[u];return void 0!==l?l:u}var Si,Ei=/label:\s*([^\s;{]+)\s*(;|$)/g;function _i(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Si=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=ji(n,t,i)):o+=i[0];for(var s=1;s<e.length;s++)o+=ji(n,t,e[s]),r&&(o+=i[s]);Ei.lastIndex=0;for(var a,c="";null!==(a=Ei.exec(o));)c+="-"+a[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return{name:u,styles:o,next:Si}}var Ci,Pi,ki=!!o.useInsertionEffect&&o.useInsertionEffect,Ai=ki||function(e){return e()},Ri=(ki||o.useLayoutEffect,o.createContext("undefined"!=typeof HTMLElement?pi({key:"css"}):null)),Di=(Ri.Provider,function(e){return(0,o.forwardRef)((function(t,n){var r=(0,o.useContext)(Ri);return e(t,r,n)}))}),Ti=o.createContext({}),Ii={}.hasOwnProperty,Ni="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Li=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return di(t,n,r),Ai((function(){return function(e,t,n){di(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},Mi=Di((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[Ni],s=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}(t.registered,s,e.className):null!=e.className&&(a=e.className+" ");var c=_i(s,void 0,o.useContext(Ti));a+=t.key+"-"+c.name;var u={};for(var l in e)Ii.call(e,l)&&"css"!==l&&l!==Ni&&(u[l]=e[l]);return u.className=a,n&&(u.ref=n),o.createElement(o.Fragment,null,o.createElement(Li,{cache:t,serialized:c,isStringTag:"string"==typeof i}),o.createElement(i,u))})),Fi=Mi,Vi=(n(4146),function(e,t){var n=arguments;if(null==t||!Ii.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=Fi,i[1]=function(e,t){var n={};for(var r in t)Ii.call(t,r)&&(n[r]=t[r]);return n[Ni]=e,n}(e,t);for(var s=2;s<r;s++)i[s]=n[s];return o.createElement.apply(null,i)});function Ui(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _i(t)}Ci=Vi||(Vi={}),Pi||(Pi=Ci.JSX||(Ci.JSX={}));var Bi=n(5795);const Hi=Math.min,zi=Math.max,$i=Math.round,Wi=Math.floor,qi=e=>({x:e,y:e});function Gi(e){return Xi(e)?(e.nodeName||"").toLowerCase():"#document"}function Ji(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ki(e){var t;return null==(t=(Xi(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Xi(e){return e instanceof Node||e instanceof Ji(e).Node}function Yi(e){return e instanceof Element||e instanceof Ji(e).Element}function Zi(e){return e instanceof HTMLElement||e instanceof Ji(e).HTMLElement}function Qi(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Ji(e).ShadowRoot)}function es(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ts(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ts(e){return Ji(e).getComputedStyle(e)}function ns(e){const t=function(e){if("html"===Gi(e))return e;const t=e.assignedSlot||e.parentNode||Qi(e)&&e.host||Ki(e);return Qi(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(Gi(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zi(t)&&es(t)?t:ns(t)}function rs(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ns(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=Ji(o);return i?t.concat(s,s.visualViewport||[],es(o)?o:[],s.frameElement&&n?rs(s.frameElement):[]):t.concat(o,rs(o,[],n))}function os(e){return Yi(e)?e:e.contextElement}function is(e){const t=os(e);if(!Zi(t))return qi(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=ts(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Zi(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=$i(n)!==i||$i(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}(t);let s=(i?$i(n.width):n.width)/r,a=(i?$i(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const ss=qi(0);function as(e){const t=Ji(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ss}function cs(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=os(e);let s=qi(1);t&&(r?Yi(r)&&(s=is(r)):s=is(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ji(e))&&t}(i,n,r)?as(i):qi(0);let c=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,l=o.width/s.x,p=o.height/s.y;if(i){const e=Ji(i),t=r&&Yi(r)?Ji(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=is(n),t=n.getBoundingClientRect(),r=ts(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,l*=e.x,p*=e.y,c+=o,u+=i,n=Ji(n).frameElement}}return d={width:l,height:p,x:c,y:u},{...d,top:d.y,left:d.x,right:d.x+d.width,bottom:d.y+d.height};var d}var us=o.useLayoutEffect,ls=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ps=function(){};function ds(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function fs(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&i.push("".concat(ds(e,s)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var hs=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,Ut.A)(e)&&null!==e?[e]:[];var t},ms=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,no({},Xn(e,ls))},vs=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,s=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),s)}};function bs(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function gs(e){return bs(e)?window.pageYOffset:e.scrollTop}function ys(e,t){bs(e)?window.scrollTo(0,t):e.scrollTop=t}function ws(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ps,o=gs(e),i=t-o,s=0;!function t(){var a,c=i*((a=(a=s+=10)/n-1)*a*a+1)+o;ys(e,c),s<n?window.requestAnimationFrame(t):r(e)}()}function Os(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?ys(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&ys(e,Math.max(t.offsetTop-o,0))}function xs(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var js=!1,Ss={get passive(){return js=!0}},Es="undefined"!=typeof window?window:{};Es.addEventListener&&Es.removeEventListener&&(Es.addEventListener("p",ps,Ss),Es.removeEventListener("p",ps,!1));var _s=js;function Cs(e){return null!=e}function Ps(e,t,n){return e?t:n}var ks=["children","innerProps"],As=["children","innerProps"];var Rs,Ds,Ts,Is=function(e){return"auto"===e?"bottom":e},Ns=(0,o.createContext)(null),Ls=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,c=e.menuShouldScrollIntoView,u=e.theme,l=((0,o.useContext)(Ns)||{}).setPortalPlacement,p=(0,o.useRef)(null),d=(0,o.useState)(r),f=(0,s.A)(d,2),h=f[0],m=f[1],v=(0,o.useState)(null),b=(0,s.A)(v,2),g=b[0],y=b[1],w=u.spacing.controlHeight;return us((function(){var e=p.current;if(e){var t="fixed"===a,o=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,s=e.isFixedPosition,a=e.controlHeight,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var l,p=c.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,h=d.height,m=d.top,v=n.offsetParent.getBoundingClientRect().top,b=s||bs(l=c)?window.innerHeight:l.clientHeight,g=gs(c),y=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),O=v-w,x=b-m,j=O+g,S=p-g-m,E=f-b+g+y,_=g+m-w,C=160;switch(o){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!s)return i&&ws(c,E,C),{placement:"bottom",maxHeight:t};if(!s&&S>=r||s&&x>=r)return i&&ws(c,E,C),{placement:"bottom",maxHeight:s?x-y:S-y};if("auto"===o||s){var P=t,k=s?O:j;return k>=r&&(P=Math.min(k-y-a,t)),{placement:"top",maxHeight:P}}if("bottom"===o)return i&&ys(c,E),{placement:"bottom",maxHeight:t};break;case"top":if(O>=h)return{placement:"top",maxHeight:t};if(j>=h&&!s)return i&&ws(c,_,C),{placement:"top",maxHeight:t};if(!s&&j>=r||s&&O>=r){var A=t;return(!s&&j>=r||s&&O>=r)&&(A=s?O-w:j-w),i&&ws(c,_,C),{placement:"top",maxHeight:A}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:c&&!t,isFixedPosition:t,controlHeight:w});m(o.maxHeight),y(o.placement),null==l||l(o.placement)}}),[r,i,a,c,n,l,w]),t({ref:p,placerProps:no(no({},e),{},{placement:g||Is(i),maxHeight:h})})},Ms=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return no({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Fs=Ms,Vs=Ms,Us=["size"],Bs=["innerProps","isRtl","size"],Hs={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},zs=function(e){var t=e.size,n=Xn(e,Us);return Vi("svg",oo({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Hs},n))},$s=function(e){return Vi(zs,oo({size:20},e),Vi("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Ws=function(e){return Vi(zs,oo({size:20},e),Vi("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},qs=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return no({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Gs=qs,Js=qs,Ks=function(){var e=Ui.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Rs||(Ds=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],Ts||(Ts=Ds.slice(0)),Rs=Object.freeze(Object.defineProperties(Ds,{raw:{value:Object.freeze(Ts)}})))),Xs=function(e){var t=e.delay,n=e.offset;return Vi("span",{css:Ui({animation:"".concat(Ks," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Ys=["data"],Zs=["innerRef","isDisabled","isHidden","inputClassName"],Qs={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ea={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":no({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Qs)},ta=function(e){return no({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Qs)},na=function(e){var t=e.children,n=e.innerProps;return Vi("div",n,t)},ra={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Vi("div",oo({},vs(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Vi($s,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,s=e.menuIsOpen;return Vi("div",oo({ref:o},vs(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":s}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Vi("div",oo({},vs(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Vi(Ws,null))},DownChevron:Ws,CrossIcon:$s,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,s=e.headingProps,a=e.innerProps,c=e.label,u=e.theme,l=e.selectProps;return Vi("div",oo({},vs(e,"group",{group:!0}),a),Vi(i,oo({},s,{selectProps:l,theme:u,getStyles:r,getClassNames:o,cx:n}),c),Vi("div",null,t))},GroupHeading:function(e){var t=ms(e);t.data;var n=Xn(t,Ys);return Vi("div",oo({},vs(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Vi("div",oo({},vs(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Vi("span",oo({},t,vs(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=ms(e),o=r.innerRef,i=r.isDisabled,s=r.isHidden,a=r.inputClassName,c=Xn(r,Zs);return Vi("div",oo({},vs(e,"input",{"input-container":!0}),{"data-value":n||""}),Vi("input",oo({className:t({input:!0},a),ref:o,style:ta(s),disabled:i},c)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=Xn(e,Bs);return Vi("div",oo({},vs(no(no({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Vi(Xs,{delay:0,offset:n}),Vi(Xs,{delay:160,offset:!0}),Vi(Xs,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Vi("div",oo({},vs(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Vi("div",oo({},vs(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,a=e.menuPlacement,c=e.menuPosition,u=(0,o.useRef)(null),l=(0,o.useRef)(null),p=(0,o.useState)(Is(a)),d=(0,s.A)(p,2),f=d[0],h=d[1],m=(0,o.useMemo)((function(){return{setPortalPlacement:h}}),[]),v=(0,o.useState)(null),b=(0,s.A)(v,2),g=b[0],y=b[1],w=(0,o.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===c?0:window.pageYOffset,n=e[f]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||y({offset:n,rect:e})}}),[r,c,f,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);us((function(){w()}),[w]);var O=(0,o.useCallback)((function(){"function"==typeof l.current&&(l.current(),l.current=null),r&&u.current&&(l.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=os(e),l=o||i?[...u?rs(u):[],...rs(t)]:[];l.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const p=u&&a?function(e,t){let n,r=null;const o=Ki(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function s(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),i();const{left:u,top:l,width:p,height:d}=e.getBoundingClientRect();if(a||t(),!p||!d)return;const f={rootMargin:-Wi(l)+"px "+-Wi(o.clientWidth-(u+p))+"px "+-Wi(o.clientHeight-(l+d))+"px "+-Wi(u)+"px",threshold:zi(0,Hi(1,c))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==c){if(!h)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(m,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,f)}r.observe(e)}(!0),i}(u,n):null;let d,f=-1,h=null;s&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{h&&h.observe(t)}))),n()})),u&&!c&&h.observe(u),h.observe(t));let m=c?cs(e):null;return c&&function t(){const r=cs(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,d=requestAnimationFrame(t)}(),n(),()=>{l.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),p&&p(),h&&h.disconnect(),h=null,c&&cancelAnimationFrame(d)}}(r,u.current,w,{elementResize:"ResizeObserver"in window}))}),[r,w]);us((function(){O()}),[O]);var x=(0,o.useCallback)((function(e){u.current=e,O()}),[O]);if(!t&&"fixed"!==c||!g)return null;var j=Vi("div",oo({ref:x},vs(no(no({},e),{},{offset:g.offset,position:c,rect:g.rect}),"menuPortal",{"menu-portal":!0}),i),n);return Vi(Ns.Provider,{value:m},t?(0,Bi.createPortal)(j,t):j)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=Xn(e,As);return Vi("div",oo({},vs(no(no({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=Xn(e,ks);return Vi("div",oo({},vs(no(no({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,s=e.removeProps,a=e.selectProps,c=n.Container,u=n.Label,l=n.Remove;return Vi(c,{data:r,innerProps:no(no({},vs(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:a},Vi(u,{data:r,innerProps:no({},vs(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},t),Vi(l,{data:r,innerProps:no(no({},vs(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},s),selectProps:a}))},MultiValueContainer:na,MultiValueLabel:na,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Vi("div",oo({role:"button"},n),t||Vi($s,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,s=e.innerProps;return Vi("div",oo({},vs(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},s),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Vi("div",oo({},vs(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Vi("div",oo({},vs(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Vi("div",oo({},vs(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return Vi("div",oo({},vs(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},oa=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ia(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||oa(r)&&oa(o)))return!1;var r,o;return!0}for(var sa={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},aa=function(e){return Vi("span",oo({css:sa},e))},ca={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,s=e.selectValue,a=e.isDisabled,c=e.isSelected,u=e.isAppleDevice,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(i," focused, ").concat(l(s,n),".");if("menu"===t&&u){var p=a?" disabled":"",d="".concat(c?" selected":"").concat(p);return"".concat(i).concat(d,", ").concat(l(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},ua=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,s=e.isFocused,a=e.selectValue,c=e.selectProps,u=e.id,l=e.isAppleDevice,p=c.ariaLiveMessages,d=c.getOptionLabel,f=c.inputValue,h=c.isMulti,m=c.isOptionDisabled,v=c.isSearchable,b=c.menuIsOpen,g=c.options,y=c.screenReaderStatus,w=c.tabSelectsValue,O=c.isLoading,x=c["aria-label"],j=c["aria-live"],S=(0,o.useMemo)((function(){return no(no({},ca),p||{})}),[p]),E=(0,o.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.options,i=t.removedValue,s=t.removedValues,c=t.value,u=i||r||(e=c,Array.isArray(e)?null:e),l=u?d(u):"",p=o||s||void 0,f=p?p.map(d):[],h=no({isDisabled:u&&m(u,a),label:l,labels:f},t);n=S.onChange(h)}return n}),[t,S,m,a,d]),_=(0,o.useMemo)((function(){var e="",t=n||r,o=!!(n&&a&&a.includes(n));if(t&&S.onFocus){var s={focused:t,label:d(t),isDisabled:m(t,a),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:a,isAppleDevice:l};e=S.onFocus(s)}return e}),[n,r,d,m,S,i,a,l]),C=(0,o.useMemo)((function(){var e="";if(b&&g.length&&!O&&S.onFilter){var t=y({count:i.length});e=S.onFilter({inputValue:f,resultsMessage:t})}return e}),[i,f,b,S,g,y,O]),P="initial-input-focus"===(null==t?void 0:t.action),k=(0,o.useMemo)((function(){var e="";if(S.guidance){var t=r?"value":b?"menu":"input";e=S.guidance({"aria-label":x,context:t,isDisabled:n&&m(n,a),isMulti:h,isSearchable:v,tabSelectsValue:w,isInitialFocus:P})}return e}),[x,n,r,h,m,v,b,S,a,w,P]),A=Vi(o.Fragment,null,Vi("span",{id:"aria-selection"},E),Vi("span",{id:"aria-focused"},_),Vi("span",{id:"aria-results"},C),Vi("span",{id:"aria-guidance"},k));return Vi(o.Fragment,null,Vi(aa,{id:u},P&&A),Vi(aa,{"aria-live":j,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!P&&A))},la=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],pa=new RegExp("["+la.map((function(e){return e.letters})).join("")+"]","g"),da={},fa=0;fa<la.length;fa++)for(var ha=la[fa],ma=0;ma<ha.letters.length;ma++)da[ha.letters[ma]]=ha.base;var va=function(e){return e.replace(pa,(function(e){return da[e]}))},ba=function(e,t){void 0===t&&(t=ia);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(va),ga=function(e){return e.replace(/^\s+|\s+$/g,"")},ya=function(e){return"".concat(e.label," ").concat(e.value)},wa=["innerRef"];function Oa(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=(0,s.A)(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=(0,s.A)(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(Xn(e,wa),"onExited","in","enter","exit","appear");return Vi("input",oo({ref:t},n,{css:Ui({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var xa=["boxSizing","height","overflow","paddingRight","position"],ja={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Sa(e){e.cancelable&&e.preventDefault()}function Ea(e){e.stopPropagation()}function _a(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Ca(){return"ontouchstart"in window||navigator.maxTouchPoints}var Pa=!("undefined"==typeof window||!window.document||!window.document.createElement),ka=0,Aa={capture:!1,passive:!1},Ra=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Da={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Ta(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,s=e.onTopLeave,a=(0,o.useRef)(!1),c=(0,o.useRef)(!1),u=(0,o.useRef)(0),l=(0,o.useRef)(null),p=(0,o.useCallback)((function(e,t){if(null!==l.current){var o=l.current,u=o.scrollTop,p=o.scrollHeight,d=o.clientHeight,f=l.current,h=t>0,m=p-d-u,v=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&c.current&&(s&&s(e),c.current=!1),h&&t>m?(n&&!a.current&&n(e),f.scrollTop=p,v=!0,a.current=!0):!h&&-t>u&&(i&&!c.current&&i(e),f.scrollTop=0,v=!0,c.current=!0),v&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,i,s]),d=(0,o.useCallback)((function(e){p(e,e.deltaY)}),[p]),f=(0,o.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),h=(0,o.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;p(e,t)}),[p]),m=(0,o.useCallback)((function(e){if(e){var t=!!_s&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,d]),v=(0,o.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))}),[h,f,d]);return(0,o.useEffect)((function(){if(t){var e=l.current;return m(e),function(){v(e)}}}),[t,m,v]),function(e){l.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),s=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,o.useRef)({}),s=(0,o.useRef)(null),a=(0,o.useCallback)((function(e){if(Pa){var t=document.body,n=t&&t.style;if(r&&xa.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&ka<1){var o=parseInt(i.current.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,a=window.innerWidth-s+o||0;Object.keys(ja).forEach((function(e){var t=ja[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(a,"px"))}t&&Ca()&&(t.addEventListener("touchmove",Sa,Aa),e&&(e.addEventListener("touchstart",_a,Aa),e.addEventListener("touchmove",Ea,Aa))),ka+=1}}),[r]),c=(0,o.useCallback)((function(e){if(Pa){var t=document.body,n=t&&t.style;ka=Math.max(ka-1,0),r&&ka<1&&xa.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&Ca()&&(t.removeEventListener("touchmove",Sa,Aa),e&&(e.removeEventListener("touchstart",_a,Aa),e.removeEventListener("touchmove",Ea,Aa)))}}),[r]);return(0,o.useEffect)((function(){if(t){var e=s.current;return a(e),function(){c(e)}}}),[t,a,c]),function(e){s.current=e}}({isEnabled:n});return Vi(o.Fragment,null,n&&Vi("div",{onClick:Ra,css:Da}),t((function(e){i(e),s(e)})))}var Ia={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Na=function(e){var t=e.name,n=e.onFocus;return Vi("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Ia,value:"",onChange:function(){}})};function La(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Ma(){return La(/^Mac/i)}var Fa={clearIndicator:Js,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,s=o.borderRadius;return no({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:Gs,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return no({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return no({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,s=o.colors;return no(no({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},ea),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:s.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,s=o.spacing.baseUnit;return no({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*s})},loadingMessage:Vs,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,s=o.spacing,a=o.colors;return no((Ht(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Ht(n,"position","absolute"),Ht(n,"width","100%"),Ht(n,"zIndex",1),n),t?{}:{backgroundColor:a.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return no({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return no({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return no({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,s=e.isFocused;return no({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:s?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Fs,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,s=i.spacing,a=i.colors;return no({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?a.primary:r?a.primary25:"transparent",color:n?a.neutral20:o?a.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?a.primary:a.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return no({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return no({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return no({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Va={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Ua={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:xs(),captureMenuScroll:!xs(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=no({ignoreCase:!0,ignoreAccents:!0,stringify:ya,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,s=n.trim,a=n.matchFrom,c=s?ga(t):t,u=s?ga(i(e)):i(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=ba(c),u=va(u)),"start"===a?u.substr(0,c.length)===c:u.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Ba(e,t,n,r){return{type:"option",data:t,isDisabled:Ka(e,t,n),isSelected:Xa(e,t,n),label:Ga(e,t),value:Ja(e,t),index:r}}function Ha(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Ba(e,n,t,r)})).filter((function(t){return Wa(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Ba(e,n,t,r);return Wa(e,i)?i:void 0})).filter(Cs)}function za(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,f(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function $a(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,f(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function Wa(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,s=t.label,a=t.value;return(!Za(e)||!i)&&Ya(e,{label:s,value:a,data:o},r)}var qa=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},Ga=function(e,t){return e.getOptionLabel(t)},Ja=function(e,t){return e.getOptionValue(t)};function Ka(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Xa(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Ja(e,t);return n.some((function(t){return Ja(e,t)===r}))}function Ya(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Za=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Qa=1,ec=function(e){(0,ao.A)(n,e);var t=function(e){var t=uo();return function(){var n,r=co(e);if(t){var o=co(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==(0,Ut.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}(n);function n(e){var r;if((0,io.A)(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=Ma()||La(/^iPhone/i)||La(/^iPad/i)||Ma()&&navigator.maxTouchPoints>1,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,s=o.isMulti,a=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:a}),i&&(r.setState({inputIsHiddenAfterUpdate:!s}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,s=r.state.selectValue,a=o&&r.isOptionSelected(e,s),c=r.isOptionDisabled(e,s);if(a){var u=r.getOptionValue(e);r.setValue(s.filter((function(e){return r.getOptionValue(e)!==u})),"deselect-option",e)}else{if(c)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(f(s),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),s=Ps(t,i,i[0]||null);r.onChange(s,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(Ps(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=Ps(e,o,o[0]||null);n&&r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return qa(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return $a(Ha(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return fs.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Ga(r.props,e)},r.getOptionValue=function(e){return Ja(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=Fa[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,no(no({},ra),e.components);var e},r.buildCategorizedOptions=function(){return Ha(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return za(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:no({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&bs(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return Za(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,s=t.inputValue,a=t.isClearable,c=t.isDisabled,u=t.menuIsOpen,l=t.onKeyDown,p=t.tabSelectsValue,d=t.openMenuOnFocus,f=r.state,h=f.focusedOption,m=f.focusedValue,v=f.selectValue;if(!(c||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||s)return;r.focusValue("previous");break;case"ArrowRight":if(!n||s)return;r.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():a&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!p||!h||d&&r.isOptionSelected(h,v))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:s}),r.onMenuClose()):a&&i&&r.clearValue();break;case" ":if(s)return;if(!u){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Qa),r.state.selectValue=hs(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),s=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[s],r.state.focusedOptionId=qa(o,i[s])}return r}return(0,so.A)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Os(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Os(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),s="first"===e?0:i.length-1;if(!this.props.isMulti){var a=i.indexOf(r[0]);a>-1&&(s=a)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[s],focusedOptionId:this.getFocusedOptionId(i[s])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,s=-1;if(n.length){switch(e){case"previous":s=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(s=o+1)}this.setState({inputIsHidden:-1!==s,focusedValue:n[s]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Va):no(no({},Va),this.props.theme):Va}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,s=this.setValue,a=this.props,c=a.isMulti,u=a.isRtl,l=a.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:c,isRtl:u,options:l,selectOption:i,selectProps:a,setValue:s,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Ka(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Xa(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Ya(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,s=e.tabIndex,a=e.form,c=e.menuIsOpen,u=e.required,l=this.getComponents().Input,p=this.state,d=p.inputIsHidden,f=p.ariaSelection,h=this.commonProps,m=r||this.getElementId("input"),v=no(no(no({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?o.createElement(l,oo({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:a,type:"text",value:i},v)):o.createElement(Oa,oo({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ps,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:a,value:""},v))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,s=t.MultiValueRemove,a=t.SingleValue,c=t.Placeholder,u=this.commonProps,l=this.props,p=l.controlShouldRenderValue,d=l.isDisabled,f=l.isMulti,h=l.inputValue,m=l.placeholder,v=this.state,b=v.selectValue,g=v.focusedValue,y=v.isFocused;if(!this.hasValue()||!p)return h?null:o.createElement(c,oo({},u,{key:"placeholder",isDisabled:d,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),m);if(f)return b.map((function(t,a){var c=t===g,l="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return o.createElement(n,oo({},u,{components:{Container:r,Label:i,Remove:s},isFocused:c,isDisabled:d,key:l,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var w=b[0];return o.createElement(a,oo({},u,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,s=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,oo({},t,{innerProps:a,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,s=this.state.isFocused;return e&&i?o.createElement(e,oo({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:s})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,s=this.state.isFocused;return o.createElement(n,oo({},r,{isDisabled:i,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,oo({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,s=t.MenuList,a=t.MenuPortal,c=t.LoadingMessage,u=t.NoOptionsMessage,l=t.Option,p=this.commonProps,d=this.state.focusedOption,f=this.props,h=f.captureMenuScroll,m=f.inputValue,v=f.isLoading,b=f.loadingMessage,g=f.minMenuHeight,y=f.maxMenuHeight,w=f.menuIsOpen,O=f.menuPlacement,x=f.menuPosition,j=f.menuPortalTarget,S=f.menuShouldBlockScroll,E=f.menuShouldScrollIntoView,_=f.noOptionsMessage,C=f.onMenuScrollToTop,P=f.onMenuScrollToBottom;if(!w)return null;var k,A=function(t,n){var r=t.type,i=t.data,s=t.isDisabled,a=t.isSelected,c=t.label,u=t.value,f=d===i,h=s?void 0:function(){return e.onOptionHover(i)},m=s?void 0:function(){return e.selectOption(i)},v="".concat(e.getElementId("option"),"-").concat(n),b={id:v,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return o.createElement(l,oo({},p,{innerProps:b,data:i,isDisabled:s,isSelected:a,key:v,label:c,type:r,value:u,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())k=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,s=t.options,a=t.index,c="".concat(e.getElementId("group"),"-").concat(a),u="".concat(c,"-heading");return o.createElement(n,oo({},p,{key:c,data:i,options:s,Heading:r,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return A(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return A(t,"".concat(t.index))}));else if(v){var R=b({inputValue:m});if(null===R)return null;k=o.createElement(c,p,R)}else{var D=_({inputValue:m});if(null===D)return null;k=o.createElement(u,p,D)}var T={minMenuHeight:g,maxMenuHeight:y,menuPlacement:O,menuPosition:x,menuShouldScrollIntoView:E},I=o.createElement(Ls,oo({},p,T),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,c=r.maxHeight;return o.createElement(i,oo({},p,T,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:a}),o.createElement(Ta,{captureEnabled:h,onTopArrive:C,onBottomArrive:P,lockEnabled:S},(function(t){return o.createElement(s,oo({},p,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":p.isMulti,id:e.getElementId("listbox")},isLoading:v,maxHeight:c,focusedOption:d}),k)})))}));return j||"fixed"===x?o.createElement(a,oo({},p,{appendTo:j,controlElement:this.controlRef,menuPlacement:O,menuPosition:x}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,s=t.name,a=t.required,c=this.state.selectValue;if(a&&!this.hasValue()&&!r)return o.createElement(Na,{name:s,onFocus:this.onValueInputFocus});if(s&&!r){if(i){if(n){var u=c.map((function(t){return e.getOptionValue(t)})).join(n);return o.createElement("input",{name:s,type:"hidden",value:u})}var l=c.length>0?c.map((function(t,n){return o.createElement("input",{key:"i-".concat(n),name:s,type:"hidden",value:e.getOptionValue(t)})})):o.createElement("input",{name:s,type:"hidden",value:""});return o.createElement("div",null,l)}var p=c[0]?this.getOptionValue(c[0]):"";return o.createElement("input",{name:s,type:"hidden",value:p})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,s=t.isFocused,a=t.selectValue,c=this.getFocusableOptions();return o.createElement(ua,oo({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:s,selectValue:a,focusableOptions:c,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,s=this.props,a=s.className,c=s.id,u=s.isDisabled,l=s.menuIsOpen,p=this.state.isFocused,d=this.commonProps=this.getCommonProps();return o.createElement(r,oo({},d,{className:a,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:p}),this.renderLiveRegion(),o.createElement(t,oo({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:p,menuIsOpen:l}),o.createElement(i,oo({},d,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),o.createElement(n,oo({},d,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,s=t.isFocused,a=t.prevWasFocused,c=t.instancePrefix,u=e.options,l=e.value,p=e.menuIsOpen,d=e.inputValue,f=e.isMulti,h=hs(l),m={};if(n&&(l!==n.value||u!==n.options||p!==n.menuIsOpen||d!==n.inputValue)){var v=p?function(e,t){return za(Ha(e,t))}(e,h):[],b=p?$a(Ha(e,h),"".concat(c,"-option")):[],g=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);m={selectValue:h,focusedOption:y,focusedOptionId:qa(b,y),focusableOptionsWithIds:b,focusedValue:g,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},O=i,x=s&&a;return s&&!x&&(O={value:Ps(f,h,h[0]||null),options:h,action:"initial-input-focus"},x=!a),"initial-input-focus"===(null==i?void 0:i.action)&&(O=null),no(no(no({},m),w),{},{prevProps:e,ariaSelection:O,prevWasFocused:x})}}]),n}(o.Component);ec.defaultProps=Ua;var tc=(0,o.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,i=void 0!==r&&r,a=e.defaultValue,c=void 0===a?null:a,u=e.inputValue,l=e.menuIsOpen,p=e.onChange,d=e.onInputChange,f=e.onMenuClose,h=e.onMenuOpen,m=e.value,v=Xn(e,ro),b=(0,o.useState)(void 0!==u?u:n),g=(0,s.A)(b,2),y=g[0],w=g[1],O=(0,o.useState)(void 0!==l?l:i),x=(0,s.A)(O,2),j=x[0],S=x[1],E=(0,o.useState)(void 0!==m?m:c),_=(0,s.A)(E,2),C=_[0],P=_[1],k=(0,o.useCallback)((function(e,t){"function"==typeof p&&p(e,t),P(e)}),[p]),A=(0,o.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),w(void 0!==n?n:e)}),[d]),R=(0,o.useCallback)((function(){"function"==typeof h&&h(),S(!0)}),[h]),D=(0,o.useCallback)((function(){"function"==typeof f&&f(),S(!1)}),[f]),T=void 0!==u?u:y,I=void 0!==l?l:j,N=void 0!==m?m:C;return no(no({},v),{},{inputValue:T,menuIsOpen:I,onChange:k,onInputChange:A,onMenuClose:D,onMenuOpen:R,value:N})}(e);return o.createElement(ec,oo({ref:t},n))})),nc=tc;function rc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rc(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ic={global:"admin-site",admin:"admin-tools","front-end":"admin-appearance","single-use":"clock",content:"shortcode","head-content":"editor-code","footer-content":"editor-code","admin-css":"dashboard","site-css":"admin-customizer","site-head-js":"media-code","site-footer-js":"media-code"},sc={global:(0,u.__)("Run everywhere","code-snippets"),admin:(0,u.__)("Only run in administration area","code-snippets"),"front-end":(0,u.__)("Only run on site front-end","code-snippets"),"single-use":(0,u.__)("Only run once","code-snippets"),content:(0,u.__)("Where inserted into a post or page","code-snippets"),"head-content":(0,u.__)("In site <head> section","code-snippets"),"footer-content":(0,u.__)("In site footer (end of <body>)","code-snippets"),"site-css":(0,u.__)("Site front-end","code-snippets"),"admin-css":(0,u.__)("Administration area","code-snippets"),"site-footer-js":(0,u.__)("In site footer (end of <body>)","code-snippets"),"site-head-js":(0,u.__)("In site <head> section","code-snippets")},ac=function(){var e=Ln(),t=e.snippet,n=e.setSnippet,r=e.isReadOnly,o=zt[Qt(t)].filter((function(e){return"condition"!==e})).map((function(e){return{key:e,value:e,label:sc[e]}}));return(0,on.jsx)("div",{className:"snippet-location-container",children:en(t)?null:(0,on.jsxs)(on.Fragment,{children:[(0,on.jsx)("h3",{children:(0,on.jsx)("label",{htmlFor:"snippet-location",children:(0,u.__)("Snippet Location","code-snippets")})}),(0,on.jsx)(nc,{id:"snippet-location",className:"code-snippets-select",options:o,isDisabled:r,styles:{menu:function(e){return oc(oc({},e),{},{zIndex:9999})},input:function(e){return oc(oc({},e),{},{":focus":{boxShadow:"none"}})}},value:o.find((function(e){return e.value===t.scope})),formatOptionLabel:function(e){var t=e.label,n=e.value;return(0,on.jsxs)(on.Fragment,{children:[(0,on.jsx)("span",{className:"dashicons dashicons-".concat(ic[n])})," ".concat(t)]})},onChange:function(e){return(null==e?void 0:e.value)&&n((function(t){return oc(oc({},t),{},{scope:e.value})}))}})]})})},cc={cond:"randomize",cloud:"cloud",bundles:"screenoptions",cloud_search:"search"},uc=function(e){var t=e.name,n=e.small,r=e.inverted;return(0,on.jsx)("span",{className:c()("badge","".concat(t,"-badge"),{"small-badge":n,"inverted-badge":r}),children:cc[t]?(0,on.jsx)("span",{className:"dashicons dashicons-".concat(cc[t])}):t})};function lc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lc(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dc={css:"text/css",js:"javascript",php:"text/x-php",html:"application/x-httpd-php"},fc=[{value:"php",label:(0,u.__)("Functions","code-snippets")},{value:"html",label:(0,u.__)("Content","code-snippets")},{value:"css",label:(0,u.__)("Styles","code-snippets")},{value:"js",label:(0,u.__)("Scripts","code-snippets")},{value:"cond",label:(0,u.__)("Conditions","code-snippets")}],hc=function(e){var t=e.label,n=e.value;return(0,on.jsxs)("div",{className:c()("snippet-type-option",{"inverted-badges":tn(n)&&!qt()}),children:[(0,on.jsxs)("div",{children:[t,tn(n)&&!qt()?(0,on.jsx)("span",{className:"badge pro-badge small-badge",children:(0,u._x)("Pro","Upgrade to Pro","code-snippets")}):null]}),(0,on.jsx)(uc,{name:n})]})},mc=function(e){var t=e.setIsUpgradeDialogOpen,n=Ln(),r=n.snippet,i=n.setSnippet,s=n.codeEditorInstance,a=n.isReadOnly,c=Qt(r);return(0,o.useEffect)((function(){if(s){var e=s.codemirror;e.setOption("lint","php"===c||"css"===c),"cond"!==c&&dc[c]&&(e.setOption("mode",dc[c]),e.refresh())}}),[s,c]),(0,on.jsxs)("div",{className:"snippet-type-container",children:[(0,on.jsx)("label",{htmlFor:"snippet-type-select-input",children:(0,on.jsx)("h3",{children:(0,u.__)("Snippet Type","code-snippets")})}),(0,on.jsx)(nc,{inputId:"snippet-type-select-input",className:"code-snippets-select",isDisabled:a,options:0===r.id?fc:fc.filter((function(e){return"cond"!==e.value})),styles:{menu:function(e){return pc(pc({},e),{},{zIndex:9999})},input:function(e){return pc(pc({},e),{},{boxShadow:"none"})}},value:fc.find((function(e){return e.value===c})),formatOptionLabel:hc,onChange:function(e){e&&tn(e.value)&&!qt()?t(!0):e&&i((function(t){return pc(pc({},t),{},{scope:zt[e.value][0]})}))}})]})};const vc=window.wp.domReady;var bc=n.n(vc);function gc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gc(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wc="snippet_description",Oc=[["bold","italic","underline","strikethrough","blockquote","bullist","numlist","alignleft","aligncenter","alignright","link","wp_adv","code_snippets"],["formatselect","forecolor","pastetext","removeformat","charmap","outdent","indent","undo","redo","spellchecker"]],xc=function(){var e,t=Ln(),n=t.snippet,r=t.setSnippet,i=t.isReadOnly,s=(0,o.useCallback)((function(e){return r((function(t){return yc(yc({},t),{},{desc:e})}))}),[r]);return(0,o.useEffect)((function(){bc()((function(){return function(e){var t,n;null===(t=window.wp.editor)||void 0===t||t.initialize(wc,{mediaButtons:null===(n=window.CODE_SNIPPETS_EDIT)||void 0===n?void 0:n.descEditorOptions.mediaButtons,quicktags:!0,tinymce:{toolbar:Oc.map((function(e){return e.join(" ")})),setup:function(t){t.on("change",(function(){return e(t.getContent())}))}}})}(s)}))}),[s]),(0,on.jsx)("textarea",{id:wc,className:"wp-editor-area",onChange:function(e){return s(e.target.value)},autoComplete:"off",disabled:i,rows:null===(e=window.CODE_SNIPPETS_EDIT)||void 0===e?void 0:e.descEditorOptions.rows,cols:40,value:n.desc})},jc=function(){var e;return null!==(e=window.CODE_SNIPPETS_EDIT)&&void 0!==e&&e.enableDescription?(0,on.jsxs)("div",{className:"snippet-description-container",children:[(0,on.jsx)("h2",{children:(0,on.jsx)("label",{htmlFor:wc,children:(0,u.__)("Description","code-snippets")})}),(0,on.jsx)(xc,{})]}):null};function Sc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ec(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sc(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _c=function(){var e=Ln(),t=e.snippet,n=e.setSnippet,r=e.isReadOnly;return(0,on.jsx)("div",{id:"titlediv",children:(0,on.jsxs)("div",{id:"titlewrap",children:[(0,on.jsx)("label",{htmlFor:"title",className:"screen-reader-text",children:(0,u.__)("Name","code-snippets")}),(0,on.jsx)("input",{id:"title",type:"text",name:"snippet_name",autoComplete:"off",value:t.name,disabled:r,placeholder:(0,u.__)("Enter snippet title","code-snippets"),onChange:function(e){return n((function(t){return Ec(Ec({},t),{},{name:e.target.value})}))}})]})})},Cc=window.CODE_SNIPPETS_EDIT,Pc=function(e){return"condition"===e.scope?(0,u.__)("Add New Condition","code-snippets"):(0,u.__)("Add New Snippet","code-snippets")},kc=function(){var e,t=Ln(),n=t.snippet,r=t.updateSnippet,o=t.setCurrentNotice;return(0,on.jsxs)("h1",{children:[n.id?(0,on.jsxs)(on.Fragment,{children:["".concat("condition"===n.scope?(0,u.__)("Edit Condition","code-snippets"):(0,u.__)("Edit Snippet","code-snippets")," "),(0,on.jsx)("a",{href:null===(e=window.CODE_SNIPPETS)||void 0===e?void 0:e.urls.addNew,className:"page-title-action",onClick:function(e){var t;e.preventDefault(),r((function(e){var t=e.scope;return Zt({scope:t})})),o(void 0),window.document.title=window.document.title.replace((0,u.__)("Edit Snippet","code-snippets"),Pc(n)).replace((0,u.__)("Edit Condition","code-snippets"),Pc(n)),window.history.pushState({},"",null===(t=window.CODE_SNIPPETS)||void 0===t?void 0:t.urls.addNew)},children:(0,u._x)("Add New","snippet","code-snippets")})]}):Pc(n),(null==Cc?void 0:Cc.pageTitleActions)&&Object.entries(Cc.pageTitleActions).map((function(e){var t=(0,s.A)(e,2),n=t[0],r=t[1];return(0,on.jsxs)(on.Fragment,{children:[(0,on.jsx)("a",{href:r,className:"page-title-action",children:n},n)," "]})}))]})},Ac=function(e){var t=e.snippet,n=e.isReadOnly,r=e.isExpanded;return c()("snippet-form",r?"snippet-form-expanded":"snippet-form-collapsed","".concat(t.scope,"-snippet"),"".concat(Qt(t),"-snippet"),"".concat(t.id?"saved":"new","-snippet"),"".concat(t.active?"active":"inactive","-snippet"),{"erroneous-snippet":!!t.code_error,"read-only-snippet":n})},Rc=function(e){var t=e.doSubmit,n=e.submitAction,r=e.setSubmitAction,o=e.validationWarning,i=e.setValidationWarning;return(0,on.jsx)(Jn,{open:void 0!==o,title:(0,u.__)("Snippet incomplete","code-snippets"),confirmLabel:(0,u.__)("Continue","code-snippets"),onCancel:function(){r(void 0),i(void 0)},onConfirm:function(){t(n),r(void 0),i(void 0)},children:(0,on.jsx)("p",{children:"".concat(o," ").concat((0,u.__)("Continue?","code-snippets"))})})},Dc=function(e){var t=e.children,n=e.className,r=Wn().submitSnippet,i=Ln().snippet,a=mn().refreshSnippetsList,c=(0,o.useState)(),p=(0,s.A)(c,2),d=p[0],f=p[1],h=(0,o.useState)(),m=(0,s.A)(h,2),v=m[0],b=m[1],g=function(e){r(e).then((function(e){if(e&&0!==e.id&&window.CODE_SNIPPETS&&window.location.href.toString().includes(window.CODE_SNIPPETS.urls.addNew)){document.title=document.title.replace((0,u.__)("Add New Snippet","code-snippets"),(0,u.__)("Edit Snippet","code-snippets")).replace((0,u.__)("Add New Condition","code-snippets"),(0,u.__)("Edit Condition","code-snippets"));var t=(0,l.addQueryArgs)(window.CODE_SNIPPETS.urls.edit,{id:e.id});window.history.pushState({},document.title,t)}})).then(a).catch(qn)};return(0,on.jsxs)(on.Fragment,{children:[(0,on.jsx)("form",{id:"snippet-form",method:"post",onSubmit:function(e){e.preventDefault();var t=Object.values(Hn).find((function(e){var t;return e===(null===(t=document.activeElement)||void 0===t?void 0:t.getAttribute("name"))})),n=function(e){var t=""===e.name.trim(),n=""===e.code.trim();switch(!0){case n&&t:return(0,u.__)("This snippet has no code or title.","code-snippets");case n:return(0,u.__)("This snippet has no snippet code.","code-snippets");case t:return(0,u.__)("This snippet has no title.","code-snippets");default:return}}(i);n?(f(n),b(t)):g(t)},className:n,children:t}),(0,on.jsx)(Rc,{doSubmit:g,submitAction:v,setSubmitAction:b,validationWarning:d,setValidationWarning:f})]})},Tc=function(){var e=Ln().snippet;return en(e)?(0,on.jsx)("div",{id:"snippet_conditions",className:"snippet-condition-editor-container",children:(0,on.jsx)("p",{children:(0,u.__)("This snippet type is not supported in this version of Code Snippets.")})}):null},Ic=function(){var e,t,n=Ln(),r=n.snippet,i=n.isReadOnly,a=(0,o.useState)(!1),c=(0,s.A)(a,2),p=c[0],d=c[1],f=(0,o.useState)(!1),h=(0,s.A)(f,2),m=h[0],v=h[1];return(0,on.jsxs)("div",{className:"wrap",children:[(0,on.jsx)("p",{children:(0,on.jsx)("small",{children:en(r)?(0,on.jsx)("a",{href:(0,l.addQueryArgs)(null===(e=window.CODE_SNIPPETS)||void 0===e?void 0:e.urls.manage,{type:"cond"}),children:(0,u.__)("Back to all conditions","code-snippets")}):(0,on.jsx)("a",{href:null===(t=window.CODE_SNIPPETS)||void 0===t?void 0:t.urls.manage,children:(0,u.__)("Back to all snippets","code-snippets")})})}),(0,on.jsx)(kc,{}),(0,on.jsxs)(Dc,{className:Ac({snippet:r,isReadOnly:i,isExpanded:p}),children:[(0,on.jsxs)("main",{className:"snippet-form-upper",children:[(0,on.jsx)(_c,{}),en(r)&&0!==r.id?null:(0,on.jsxs)("div",{className:"above-editor-container",children:[(0,on.jsx)(mc,{setIsUpgradeDialogOpen:v}),(0,on.jsx)(ac,{}),(0,on.jsx)(tr,{setIsDialogOpen:v})]}),(0,on.jsx)(eo,{isExpanded:p,setIsExpanded:d}),(0,on.jsx)(Tc,{})]}),(0,on.jsxs)("div",{className:"snippet-form-lower",children:[(0,on.jsx)(zr,{}),(0,on.jsx)(jc,{})]}),(0,on.jsx)(Hr,{})]}),(0,on.jsx)(Kn,{isOpen:m,setIsOpen:v})]})},Nc=function(){return(0,on.jsx)(pn,{children:(0,on.jsx)(vn,{children:(0,on.jsx)(Mn,{initialSnippet:function(){var e;return Zt(null===(e=window.CODE_SNIPPETS_EDIT)||void 0===e?void 0:e.snippet)},children:(0,on.jsx)(Ic,{})})})})},Lc=document.getElementById("edit-snippet-form-container");Lc?(0,i.H)(Lc).render((0,on.jsx)(Nc,{})):console.error("Could not find snippet edit form container.")},4146:(e,t,n)=>{"use strict";var r=n(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function c(e){return r.isMemo(e)?s:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var u=Object.defineProperty,l=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var s=l(n);p&&(s=s.concat(p(n)));for(var a=c(t),m=c(n),v=0;v<s.length;++v){var b=s[v];if(!(i[b]||r&&r[b]||m&&m[b]||a&&a[b])){var g=d(n,b);try{u(t,b,g)}catch(e){}}}}return t}},5338:(e,t,n)=>{"use strict";var r=n(5795);t.H=r.createRoot,r.hydrateRoot},4405:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler");Symbol.for("react.provider");var a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.for("react.client.reference");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case s:case i:case l:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case f:case d:case a:return e;default:return t}}case r:return t}}}t.ContextConsumer=a,t.ContextProvider=c,t.Element=n,t.ForwardRef=u,t.Fragment=o,t.Lazy=f,t.Memo=d,t.Portal=r,t.Profiler=s,t.StrictMode=i,t.Suspense=l,t.SuspenseList=p,t.isContextConsumer=function(e){return v(e)===a},t.isContextProvider=function(e){return v(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return v(e)===u},t.isFragment=function(e){return v(e)===o},t.isLazy=function(e){return v(e)===f},t.isMemo=function(e){return v(e)===d},t.isPortal=function(e){return v(e)===r},t.isProfiler=function(e){return v(e)===s},t.isStrictMode=function(e){return v(e)===i},t.isSuspense=function(e){return v(e)===l},t.isSuspenseList=function(e){return v(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===i||e===l||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===c||e.$$typeof===a||e.$$typeof===u||e.$$typeof===m||void 0!==e.getModuleId)},t.typeOf=v},4363:(e,t,n)=>{"use strict";e.exports=n(4405)},1020:(e,t,n)=>{"use strict";var r=n(1609),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,l=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:l,props:i,_owner:a.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},1609:e=>{"use strict";e.exports=window.React},5795:e=>{"use strict";e.exports=window.ReactDOM},4633:(e,t,n)=>{var r=n(3738).default;function o(){"use strict";e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,s=i.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",p=c.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),s=new T(r||[]);return a(i,"_invoke",{value:k(e,n,s)}),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var m="suspendedStart",v="suspendedYield",b="executing",g="completed",y={};function w(){}function O(){}function x(){}var j={};d(j,u,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(I([])));E&&E!==i&&s.call(E,u)&&(j=E);var _=x.prototype=w.prototype=Object.create(j);function C(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(o,i,a,c){var u=h(e[o],e,i);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==r(p)&&s.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function k(e,n,r){var o=m;return function(i,s){if(o===b)throw Error("Generator is already running");if(o===g){if("throw"===i)throw s;return{value:t,done:!0}}for(r.method=i,r.arg=s;;){var a=r.delegate;if(a){var c=A(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=b;var u=h(e,n,r);if("normal"===u.type){if(o=r.done?g:v,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function A(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=h(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var s=i.arg;return s?s.done?(n[e.resultName]=s.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function R(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(s.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return O.prototype=x,a(_,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:O,configurable:!0}),O.displayName=d(x,p,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===O||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,d(e,p,"GeneratorFunction")),e.prototype=Object.create(_),e},n.awrap=function(e){return{__await:e}},C(P.prototype),d(P.prototype,l,(function(){return this})),n.AsyncIterator=P,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var s=new P(f(e,t,r,o),i);return n.isGeneratorFunction(t)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},C(_),d(_,p,"Generator"),d(_,u,(function(){return this})),d(_,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=I,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(D),!e)for(var n in this)"t"===n.charAt(0)&&s.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return a.type="throw",a.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=s.call(i,"catchLoc"),u=s.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&s.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;D(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},3738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4756:(e,t,n)=>{var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},5501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3662);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},3662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})}},e=>{e(e.s=8670)}]);
     2(self.webpackChunkcode_snippets=self.webpackChunkcode_snippets||[]).push([[8739],{896:(e,t,n)=>{"use strict";var r={};n.r(r),n.d(r,{hasBrowserEnv:()=>xe,hasStandardBrowserEnv:()=>je,hasStandardBrowserWebWorkerEnv:()=>Ee,navigator:()=>Se,origin:()=>_e});var o=n(1609),i=n(5338),s=n(3453),a=n(6942),c=n.n(a);const u=window.wp.i18n,l=window.wp.url;var p=n(3145),d=n(7800);function f(e){return function(e){if(Array.isArray(e))return(0,p.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,d.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function m(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){h(i,r,o,s,a,"next",e)}function a(e){h(i,r,o,s,a,"throw",e)}s(void 0)}))}}var v=n(4756),b=n.n(v);function g(e,t){return function(){return e.apply(t,arguments)}}const{toString:y}=Object.prototype,{getPrototypeOf:w}=Object,O=(x=Object.create(null),e=>{const t=y.call(e);return x[t]||(x[t]=t.slice(8,-1).toLowerCase())});var x;const S=e=>(e=e.toLowerCase(),t=>O(t)===e),j=e=>t=>typeof t===e,{isArray:E}=Array,_=j("undefined"),C=S("ArrayBuffer"),P=j("string"),k=j("function"),A=j("number"),R=e=>null!==e&&"object"==typeof e,D=e=>{if("object"!==O(e))return!1;const t=w(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},I=S("Date"),T=S("File"),N=S("Blob"),L=S("FileList"),M=S("URLSearchParams"),[F,V,U,B]=["ReadableStream","Request","Response","Headers"].map(S);function H(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),E(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(r=0;r<i;r++)s=o[r],t.call(null,e[s],s,e)}}function z(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const W="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,$=e=>!_(e)&&e!==W,q=(G="undefined"!=typeof Uint8Array&&w(Uint8Array),e=>G&&e instanceof G);var G;const J=S("HTMLFormElement"),K=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),X=S("RegExp"),Y=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};H(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},Z=S("AsyncFunction"),Q=(ee="function"==typeof setImmediate,te=k(W.postMessage),ee?setImmediate:te?((e,t)=>(W.addEventListener("message",(({source:n,data:r})=>{n===W&&r===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),W.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var ee,te;const ne="undefined"!=typeof queueMicrotask?queueMicrotask.bind(W):"undefined"!=typeof process&&process.nextTick||Q,re={isArray:E,isArrayBuffer:C,isBuffer:function(e){return null!==e&&!_(e)&&null!==e.constructor&&!_(e.constructor)&&k(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||k(e.append)&&("formdata"===(t=O(e))||"object"===t&&k(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&C(e.buffer),t},isString:P,isNumber:A,isBoolean:e=>!0===e||!1===e,isObject:R,isPlainObject:D,isReadableStream:F,isRequest:V,isResponse:U,isHeaders:B,isUndefined:_,isDate:I,isFile:T,isBlob:N,isRegExp:X,isFunction:k,isStream:e=>R(e)&&k(e.pipe),isURLSearchParams:M,isTypedArray:q,isFileList:L,forEach:H,merge:function e(){const{caseless:t}=$(this)&&this||{},n={},r=(r,o)=>{const i=t&&z(n,o)||o;D(n[i])&&D(r)?n[i]=e(n[i],r):D(r)?n[i]=e({},r):E(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&H(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(H(t,((t,r)=>{n&&k(t)?e[r]=g(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],r&&!r(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&w(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:O,kindOfTest:S,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(E(e))return e;let t=e.length;if(!A(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:J,hasOwnProperty:K,hasOwnProp:K,reduceDescriptors:Y,freezeMethods:e=>{Y(e,((t,n)=>{if(k(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];k(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return E(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:z,global:W,isContextDefined:$,isSpecCompliantForm:function(e){return!!(e&&k(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(R(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=E(e)?[]:{};return H(e,((e,t)=>{const i=n(e,r+1);!_(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Z,isThenable:e=>e&&(R(e)||k(e))&&k(e.then)&&k(e.catch),setImmediate:Q,asap:ne};function oe(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}re.inherits(oe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:re.toJSONObject(this.config),code:this.code,status:this.status}}});const ie=oe.prototype,se={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{se[e]={value:e}})),Object.defineProperties(oe,se),Object.defineProperty(ie,"isAxiosError",{value:!0}),oe.from=(e,t,n,r,o,i)=>{const s=Object.create(ie);return re.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),oe.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const ae=oe;function ce(e){return re.isPlainObject(e)||re.isArray(e)}function ue(e){return re.endsWith(e,"[]")?e.slice(0,-2):e}function le(e,t,n){return e?e.concat(t).map((function(e,t){return e=ue(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const pe=re.toFlatObject(re,{},null,(function(e){return/^is[A-Z]/.test(e)})),de=function(e,t,n){if(!re.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=re.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!re.isUndefined(t[e])}))).metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&re.isSpecCompliantForm(t);if(!re.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(re.isDate(e))return e.toISOString();if(!a&&re.isBlob(e))throw new ae("Blob is not supported. Use a Buffer instead.");return re.isArrayBuffer(e)||re.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(re.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(re.isArray(e)&&function(e){return re.isArray(e)&&!e.some(ce)}(e)||(re.isFileList(e)||re.endsWith(n,"[]"))&&(a=re.toArray(e)))return n=ue(n),a.forEach((function(e,r){!re.isUndefined(e)&&null!==e&&t.append(!0===s?le([n],r,i):null===s?n:n+"[]",c(e))})),!1;return!!ce(e)||(t.append(le(o,n,i),c(e)),!1)}const l=[],p=Object.assign(pe,{defaultVisitor:u,convertValue:c,isVisitable:ce});if(!re.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!re.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),re.forEach(n,(function(n,i){!0===(!(re.isUndefined(n)||null===n)&&o.call(t,n,re.isString(i)?i.trim():i,r,p))&&e(n,r?r.concat(i):[i])})),l.pop()}}(e),t};function fe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function he(e,t){this._pairs=[],e&&de(e,this,t)}const me=he.prototype;me.append=function(e,t){this._pairs.push([e,t])},me.toString=function(e){const t=e?function(t){return e.call(this,t,fe)}:fe;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const ve=he;function be(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ge(e,t,n){if(!t)return e;const r=n&&n.encode||be;re.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):re.isURLSearchParams(t)?t.toString():new ve(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const ye=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){re.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},we={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Oe={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ve,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},xe="undefined"!=typeof window&&"undefined"!=typeof document,Se="object"==typeof navigator&&navigator||void 0,je=xe&&(!Se||["ReactNative","NativeScript","NS"].indexOf(Se.product)<0),Ee="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,_e=xe&&window.location.href||"http://localhost",Ce={...r,...Oe},Pe=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;return i=!i&&re.isArray(r)?r.length:i,a?(re.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s):(r[i]&&re.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&re.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!s)}if(re.isFormData(e)&&re.isFunction(e.entries)){const n={};return re.forEachEntry(e,((e,r)=>{t(function(e){return re.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},ke={transitional:we,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=re.isObject(e);if(o&&re.isHTMLForm(e)&&(e=new FormData(e)),re.isFormData(e))return r?JSON.stringify(Pe(e)):e;if(re.isArrayBuffer(e)||re.isBuffer(e)||re.isStream(e)||re.isFile(e)||re.isBlob(e)||re.isReadableStream(e))return e;if(re.isArrayBufferView(e))return e.buffer;if(re.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return de(e,new Ce.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Ce.isNode&&re.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=re.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return de(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e){if(re.isString(e))try{return(0,JSON.parse)(e),re.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ke.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(re.isResponse(e)||re.isReadableStream(e))return e;if(e&&re.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw ae.from(e,ae.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ce.classes.FormData,Blob:Ce.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};re.forEach(["delete","get","head","post","put","patch"],(e=>{ke.headers[e]={}}));const Ae=ke,Re=re.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),De=Symbol("internals");function Ie(e){return e&&String(e).trim().toLowerCase()}function Te(e){return!1===e||null==e?e:re.isArray(e)?e.map(Te):String(e)}function Ne(e,t,n,r,o){return re.isFunction(r)?r.call(this,t,n):(o&&(t=n),re.isString(t)?re.isString(r)?-1!==t.indexOf(r):re.isRegExp(r)?r.test(t):void 0:void 0)}class Le{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Ie(t);if(!o)throw new Error("header name must be a non-empty string");const i=re.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Te(e))}const i=(e,t)=>re.forEach(e,((e,n)=>o(e,n,t)));if(re.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(re.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Re[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(re.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Ie(e)){const n=re.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(re.isFunction(t))return t.call(this,e,n);if(re.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ie(e)){const n=re.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ne(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Ie(e)){const o=re.findKey(n,e);!o||t&&!Ne(0,n[o],o,t)||(delete n[o],r=!0)}}return re.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ne(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return re.forEach(this,((r,o)=>{const i=re.findKey(n,o);if(i)return t[i]=Te(r),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete t[o],t[s]=Te(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return re.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&re.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[De]=this[De]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ie(e);t[r]||(function(e,t){const n=re.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return re.isArray(e)?e.forEach(r):r(e),this}}Le.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),re.reduceDescriptors(Le.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),re.freezeMethods(Le);const Me=Le;function Fe(e,t){const n=this||Ae,r=t||n,o=Me.from(r.headers);let i=r.data;return re.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Ve(e){return!(!e||!e.__CANCEL__)}function Ue(e,t,n){ae.call(this,null==e?"canceled":e,ae.ERR_CANCELED,t,n),this.name="CanceledError"}re.inherits(Ue,ae,{__CANCEL__:!0});const Be=Ue;function He(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ae("Request failed with status code "+n.status,[ae.ERR_BAD_REQUEST,ae.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const ze=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[s];o||(o=c),n[i]=a,r[i]=c;let l=s,p=0;for(;l!==i;)p+=n[l++],l%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const s=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(n=e,r||(r=setTimeout((()=>{r=null,s(n)}),i-a)))},()=>n&&s(n)]}((n=>{const i=n.loaded,s=n.lengthComputable?n.total:void 0,a=i-r,c=o(a);r=i,e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})}),n)},We=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},$e=e=>(...t)=>re.asap((()=>e(...t))),qe=Ce.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ce.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ce.origin),Ce.navigator&&/(msie|trident)/i.test(Ce.navigator.userAgent)):()=>!0,Ge=Ce.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];re.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),re.isString(r)&&s.push("path="+r),re.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Je(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ke=e=>e instanceof Me?{...e}:e;function Xe(e,t){t=t||{};const n={};function r(e,t,n,r){return re.isPlainObject(e)&&re.isPlainObject(t)?re.merge.call({caseless:r},e,t):re.isPlainObject(t)?re.merge({},t):re.isArray(t)?t.slice():t}function o(e,t,n,o){return re.isUndefined(t)?re.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!re.isUndefined(t))return r(void 0,t)}function s(e,t){return re.isUndefined(t)?re.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>o(Ke(e),Ke(t),0,!0)};return re.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||o,s=i(e[r],t[r],r);re.isUndefined(s)&&i!==a||(n[r]=s)})),n}const Ye=e=>{const t=Xe({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=t;if(t.headers=a=Me.from(a),t.url=ge(Je(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),re.isFormData(r))if(Ce.hasStandardBrowserEnv||Ce.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(Ce.hasStandardBrowserEnv&&(o&&re.isFunction(o)&&(o=o(t)),o||!1!==o&&qe(t.url))){const e=i&&s&&Ge.read(s);e&&a.set(i,e)}return t},Ze="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Ye(e);let o=r.data;const i=Me.from(r.headers).normalize();let s,a,c,u,l,{responseType:p,onUploadProgress:d,onDownloadProgress:f}=r;function h(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function v(){if(!m)return;const r=Me.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());He((function(e){t(e),h()}),(function(e){n(e),h()}),{data:p&&"text"!==p&&"json"!==p?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(v)},m.onabort=function(){m&&(n(new ae("Request aborted",ae.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new ae("Network Error",ae.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||we;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ae(t,o.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&re.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),re.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),p&&"json"!==p&&(m.responseType=r.responseType),f&&([c,l]=ze(f,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,u]=ze(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(s=t=>{m&&(n(!t||t.type?new Be(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);b&&-1===Ce.protocols.indexOf(b)?n(new ae("Unsupported protocol "+b+":",ae.ERR_BAD_REQUEST,e)):m.send(o||null)}))},Qe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ae?t:new Be(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new ae(`timeout ${t} of ms exceeded`,ae.ETIMEDOUT))}),t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:a}=r;return a.unsubscribe=()=>re.asap(s),a}},et=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},tt=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*et(n,t)}(e,t);let i,s=0,a=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let i=r.byteLength;if(n){let e=s+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},nt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,rt=nt&&"function"==typeof ReadableStream,ot=nt&&("function"==typeof TextEncoder?(it=new TextEncoder,e=>it.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var it;const st=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},at=rt&&st((()=>{let e=!1;const t=new Request(Ce.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),ct=rt&&st((()=>re.isReadableStream(new Response("").body))),ut={stream:ct&&(e=>e.body)};var lt;nt&&(lt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!ut[e]&&(ut[e]=re.isFunction(lt[e])?t=>t[e]():(t,n)=>{throw new ae(`Response type '${e}' is not supported`,ae.ERR_NOT_SUPPORT,n)})})));const pt=nt&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:p="same-origin",fetchOptions:d}=Ye(e);u=u?(u+"").toLowerCase():"text";let f,h=Qe([o,i&&i.toAbortSignal()],s);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let v;try{if(c&&at&&"get"!==n&&"head"!==n&&0!==(v=await(async(e,t)=>{const n=re.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(re.isBlob(e))return e.size;if(re.isSpecCompliantForm(e)){const t=new Request(Ce.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return re.isArrayBufferView(e)||re.isArrayBuffer(e)?e.byteLength:(re.isURLSearchParams(e)&&(e+=""),re.isString(e)?(await ot(e)).byteLength:void 0)})(t):n})(l,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(re.isFormData(r)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body){const[e,t]=We(v,ze($e(c)));r=tt(n.body,65536,e,t)}}re.isString(p)||(p=p?"include":"omit");const o="credentials"in Request.prototype;f=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:o?p:void 0});let i=await fetch(f);const s=ct&&("stream"===u||"response"===u);if(ct&&(a||s&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=re.toFiniteNumber(i.headers.get("content-length")),[n,r]=a&&We(t,ze($e(a),!0))||[];i=new Response(tt(i.body,65536,n,(()=>{r&&r(),m&&m()})),e)}u=u||"text";let b=await ut[re.findKey(ut,u)||"text"](i,e);return!s&&m&&m(),await new Promise(((t,n)=>{He(t,n,{data:b,headers:Me.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new ae("Network Error",ae.ERR_NETWORK,e,f),{cause:t.cause||t});throw ae.from(t,t&&t.code,e,f)}}),dt={http:null,xhr:Ze,fetch:pt};re.forEach(dt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const ft=e=>`- ${e}`,ht=e=>re.isFunction(e)||null===e||!1===e,mt=e=>{e=re.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!ht(n)&&(r=dt[(t=String(n)).toLowerCase()],void 0===r))throw new ae(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(ft).join("\n"):" "+ft(e[0]):"as no adapter specified";throw new ae("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function vt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Be(null,e)}function bt(e){return vt(e),e.headers=Me.from(e.headers),e.data=Fe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),mt(e.adapter||Ae.adapter)(e).then((function(t){return vt(e),t.data=Fe.call(e,e.transformResponse,t),t.headers=Me.from(t.headers),t}),(function(t){return Ve(t)||(vt(e),t&&t.response&&(t.response.data=Fe.call(e,e.transformResponse,t.response),t.response.headers=Me.from(t.response.headers))),Promise.reject(t)}))}const gt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{gt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const yt={};gt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.8.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new ae(r(o," has been removed"+(t?" in "+t:"")),ae.ERR_DEPRECATED);return t&&!yt[o]&&(yt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},gt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const wt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new ae("option "+i+" must be "+n,ae.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ae("Unknown option "+i,ae.ERR_BAD_OPTION)}},validators:gt},Ot=wt.validators;class xt{constructor(e){this.defaults=e,this.interceptors={request:new ye,response:new ye}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Xe(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&wt.assertOptions(n,{silentJSONParsing:Ot.transitional(Ot.boolean),forcedJSONParsing:Ot.transitional(Ot.boolean),clarifyTimeoutError:Ot.transitional(Ot.boolean)},!1),null!=r&&(re.isFunction(r)?t.paramsSerializer={serialize:r}:wt.assertOptions(r,{encode:Ot.function,serialize:Ot.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),wt.assertOptions(t,{baseUrl:Ot.spelling("baseURL"),withXsrfToken:Ot.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&re.merge(o.common,o[t.method]);o&&re.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Me.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,p=0;if(!a){const e=[bt.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);p<l;)u=u.then(e[p++],e[p++]);return u}l=s.length;let d=t;for(p=0;p<l;){const e=s[p++],t=s[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=bt.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,l=c.length;p<l;)u=u.then(c[p++],c[p++]);return u}getUri(e){return ge(Je((e=Xe(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}re.forEach(["delete","get","head","options"],(function(e){xt.prototype[e]=function(t,n){return this.request(Xe(n||{},{method:e,url:t,data:(n||{}).data}))}})),re.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Xe(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}xt.prototype[e]=t(),xt.prototype[e+"Form"]=t(!0)}));const St=xt;class jt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Be(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new jt((function(t){e=t})),cancel:e}}}const Et=jt,_t={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_t).forEach((([e,t])=>{_t[t]=e}));const Ct=_t,Pt=function e(t){const n=new St(t),r=g(St.prototype.request,n);return re.extend(r,St.prototype,n,{allOwnKeys:!0}),re.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Xe(t,n))},r}(Ae);Pt.Axios=St,Pt.CanceledError=Be,Pt.CancelToken=Et,Pt.isCancel=Ve,Pt.VERSION="1.8.4",Pt.toFormData=de,Pt.AxiosError=ae,Pt.Cancel=Pt.CanceledError,Pt.all=function(e){return Promise.all(e)},Pt.spread=function(e){return function(t){return e.apply(null,t)}},Pt.isAxiosError=function(e){return re.isObject(e)&&!0===e.isAxiosError},Pt.mergeConfig=Xe,Pt.AxiosHeaders=Me,Pt.formToJSON=e=>Pe(re.isHTMLForm(e)?new FormData(e):e),Pt.getAdapter=mt,Pt.HttpStatusCode=Ct,Pt.default=Pt;const kt=Pt;var At,Rt,Dt,It,Tt,Nt,Lt=function(e){var t=(0,o.createContext)(void 0);return[t,function(){var n=(0,o.useContext)(t);if(void 0===n)throw Error("use".concat(e," can only be used within a ").concat(e," context provider."));return n}]},Mt=function(e,t){return t===e.charAt(e.length-1)?e.slice(0,-1):e},Ft=(Mt(null!==(At=null===(Rt=window.CODE_SNIPPETS)||void 0===Rt?void 0:Rt.restAPI.base)&&void 0!==At?At:"","/"),Mt(null!==(Dt=null===(It=window.CODE_SNIPPETS)||void 0===It?void 0:It.restAPI.snippets)&&void 0!==Dt?Dt:"","/")),Vt={headers:{"X-WP-Nonce":null===(Tt=window.CODE_SNIPPETS)||void 0===Tt?void 0:Tt.restAPI.nonce,"Access-Control":null===(Nt=window.CODE_SNIPPETS)||void 0===Nt?void 0:Nt.restAPI.localToken}},Ut=n(2284),Bt=n(9922);function Ht(e,t,n){return(t=(0,Bt.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zt={php:["global","admin","front-end","single-use"],html:["content","head-content","footer-content"],css:["admin-css","site-css"],js:["site-head-js","site-footer-js"],cond:["condition"]},Wt=function(){return window.pagenow.endsWith("-network")},$t=function(){return null!==/mac/i.exec(window.navigator.userAgent)},qt=function(){var e;return!(null===(e=window.CODE_SNIPPETS)||void 0===e||!e.isLicensed)};function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kt={id:0,name:"",code:"",desc:"",scope:"global",modified:"",active:!1,network:Wt(),shared_network:null,priority:10,conditionId:0},Xt=function(e){return"number"==typeof e&&0<e},Yt=new Set(["css","js","cond"]),Zt=function(e){return function(e){var t,n,r,o=Jt(Jt({},Kt),{},{tags:[]});return"object"!==(0,Ut.A)(e)||null===e?o:Jt(Jt(Jt(Jt(Jt(Jt(Jt(Jt(Jt(Jt(Jt(Jt(Jt({},o),"id"in e&&Xt(e.id)&&{id:e.id}),"name"in e&&"string"==typeof e.name&&{name:e.name}),"desc"in e&&"string"==typeof e.desc&&{desc:e.desc}),"code"in e&&"string"==typeof e.code&&{code:e.code}),"tags"in e&&{tags:null!==(r=e.tags,t=Array.isArray(r)?r.filter((function(e){return"string"==typeof e})):void 0)&&void 0!==t?t:o.tags}),"scope"in e&&"string"==typeof(n=e.scope)&&Object.values(zt).some((function(e){return e.some((function(e){return e===n}))}))&&{scope:e.scope}),"modified"in e&&"string"==typeof e.modified&&{modified:e.modified}),"active"in e&&"boolean"==typeof e.active&&{active:e.active}),"network"in e&&"boolean"==typeof e.network&&{network:e.network}),"shared_network"in e&&"boolean"==typeof e.shared_network&&{shared_network:e.shared_network}),"priority"in e&&"number"==typeof e.priority&&{priority:e.priority}),"condition_id"in e&&Xt(e.condition_id)&&{conditionId:e.condition_id})}(e)},Qt=function(e){var t=e.scope;switch(!0){case t.endsWith("-css"):return"css";case t.endsWith("-js"):return"js";case t.endsWith("content"):return"html";case"condition"===t:return"cond";default:return"php"}},en=function(e){return"condition"===e.scope},tn=function(e){return Yt.has(e)},nn=function(e,t){var n=e.id,r=e.network;return(0,l.addQueryArgs)([Ft,n,t].filter(Boolean).join("/"),{network:!!r||void 0})},rn=function(e){return{name:e.name,desc:e.desc,code:e.code,tags:e.tags,scope:e.scope,priority:e.priority,active:e.active,network:e.network,condition_id:e.conditionId}},on=n(4848),sn=function(){var e=m(b().mark((function e(t,n,r,o){var i,s;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(i=console).debug.apply(i,["".concat(t," ").concat(n)].concat(f(o?[o]:[]))),e.next=3,r;case 3:return s=e.sent,console.debug("Response",s),e.abrupt("return",s.data);case 6:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}(),an=Lt("RestAPI"),cn=(0,s.A)(an,2),un=cn[0],ln=cn[1],pn=function(e){var t=e.children,n=(0,o.useMemo)((function(){return kt.create(Vt)}),[]),r=(0,o.useMemo)((function(){return function(e){return{get:function(t){return sn("GET",t,e.get(t))},post:function(t,n){return sn("POST",t,e.post(t,n),n)},del:function(t){return sn("DELETE",t,e.delete(t))},put:function(t,n){return sn("PUT",t,e.put(t,n),n)}}}(n)}),[n]),i=(0,o.useMemo)((function(){return t=(e=r).get,n=e.post,o=e.del,i=e.put,{fetchAll:function(e){return t((0,l.addQueryArgs)(Ft,{network:e})).then((function(e){return e.map(Zt)}))},fetch:function(e,n){return t((0,l.addQueryArgs)("".concat(Ft,"/").concat(e),{network:n})).then(Zt)},create:function(e){return n(Ft,rn(e)).then(Zt)},update:function(e){return n(e.id?nn(e):Ft,rn(e)).then(Zt)},delete:function(e){return o(nn(e))},activate:function(e){return n(nn(e,"activate")).then(Zt)},deactivate:function(e){return n(nn(e,"deactivate")).then(Zt)},export:function(e){return t(nn(e,"export"))},exportCode:function(e){return t(nn(e,"export-code"))},attach:function(e){return i(nn(e,"attach"),{condition_id:e.conditionId})},detach:function(e){return i(nn(e,"detach"))}};var e,t,n,o,i}),[r]),s={api:r,snippetsAPI:i,axiosInstance:n};return(0,on.jsx)(un.Provider,{value:s,children:t})},dn=Lt("SnippetsList"),fn=(0,s.A)(dn,2),hn=fn[0],mn=fn[1],vn=function(e){var t=e.children,n=ln().snippetsAPI.fetchAll,r=(0,o.useState)(),i=(0,s.A)(r,2),a=i[0],c=i[1],u=(0,o.useCallback)(m(b().mark((function e(){var t;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,console.info("Fetching snippets list"),e.next=4,n(Wt());case 4:t=e.sent,c(t),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.error("Error fetching snippets list",e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])}))),[n]);(0,o.useEffect)((function(){u().catch((function(){}))}),[u]);var l={snippetsList:a,refreshSnippetsList:u};return(0,on.jsx)(hn.Provider,{value:l,children:t})};const{Axios:bn,AxiosError:gn,CanceledError:yn,isCancel:wn,CancelToken:On,VERSION:xn,all:Sn,Cancel:jn,isAxiosError:En,spread:_n,toFormData:Cn,AxiosHeaders:Pn,HttpStatusCode:kn,formToJSON:An,getAdapter:Rn,mergeConfig:Dn}=kt;var In=Lt("SnippetForm"),Tn=(0,s.A)(In,2),Nn=Tn[0],Ln=Tn[1],Mn=function(e){var t=e.children,n=e.initialSnippet,r=(0,o.useState)(n),i=(0,s.A)(r,2),a=i[0],c=i[1],u=(0,o.useState)(!1),l=(0,s.A)(u,2),p=l[0],d=l[1],f=(0,o.useState)(),h=(0,s.A)(f,2),m=h[0],v=h[1],b=(0,o.useState)(),g=(0,s.A)(b,2),y=g[0],w=g[1],O=(0,o.useMemo)((function(){return!qt()&&function(e){return Yt.has(Qt(e))}({scope:a.scope})}),[a.scope]),x=(0,o.useCallback)((function(e,t){console.error("Request failed",e),d(!1),v(["error",[t,En(e)?e.message:""].filter(Boolean).join(" ")])}),[d,v]),S=(0,o.useCallback)((function(e){c((function(t){var n,r="object"===(0,Ut.A)(e)?e:e(t);return null==y||y.codemirror.setValue(r.code),null===(n=window.tinymce)||void 0===n||n.activeEditor.setContent(r.desc),r}))}),[null==y?void 0:y.codemirror]),j={snippet:a,isWorking:p,isReadOnly:O,setSnippet:c,setIsWorking:d,updateSnippet:S,currentNotice:m,setCurrentNotice:v,codeEditorInstance:y,handleRequestError:x,setCodeEditorInstance:w};return(0,on.jsx)(Nn.Provider,{value:j,children:t})};function Fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fn(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Un={addNew:(0,u.__)("Add New Snippet","code-snippets"),edit:(0,u.__)("Edit Snippet","code-snippets"),created:(0,u.__)("Snippet <strong>created</strong>.","code-snippets"),updated:(0,u.__)("Snippet <strong>updated</strong>.","code-snippets"),createdActivated:(0,u.__)("Snippet <strong>created</strong> and <strong>activated</strong>.","code-snippets"),updatedActivated:(0,u.__)("Snippet <strong>updated</strong> and <strong>activated</strong>.","code-snippets"),updatedDeactivated:(0,u.__)("Snippet <strong>updated</strong> and <strong>deactivated</strong>"),updatedExecuted:(0,u.__)("Snippet <strong>updated</strong> and <strong>executed</strong>.","code-snippets"),failedCreate:(0,u.__)("Could not create snippet.","code-snippets"),failedUpdate:(0,u.__)("Could not update snippet.","code-snippets")},Bn=(0,u.__)("Condition <strong>created</strong>.","code-snippets"),Hn=(0,u.__)("Condition <strong>updated</strong>.","code-snippets"),zn={addNew:(0,u.__)("Add New Condition","code-snippets"),edit:(0,u.__)("Edit Condition","code-snippets"),created:Bn,updated:Hn,createdActivated:Bn,updatedActivated:Hn,updatedDeactivated:Hn,updatedExecuted:Hn,failedCreate:(0,u.__)("Could not create condition.","code-snippets"),failedUpdate:(0,u.__)("Could not update condition.","code-snippets")},Wn=function(e){return e.SAVE="save_snippet",e.SAVE_AND_ACTIVATE="save_snippet_activate",e.SAVE_AND_EXECUTE="save_snippet_execute",e.SAVE_AND_DEACTIVATE="save_snippet_deactivate",e}({}),$n=function(e,t,n){var r="condition"===e.scope?zn:Un,o=0===e.id;switch(n){case Wn.SAVE:return o?r.created:r.updated;case Wn.SAVE_AND_EXECUTE:return r.updatedExecuted;case Wn.SAVE_AND_ACTIVATE:return"single-use"===t.scope?r.updatedExecuted:o?r.createdActivated:r.updatedActivated;case Wn.SAVE_AND_DEACTIVATE:return r.updatedDeactivated}},qn=Ht(Ht(Ht(Ht({},Wn.SAVE,{}),Wn.SAVE_AND_ACTIVATE,{active:!0}),Wn.SAVE_AND_DEACTIVATE,{active:!1}),Wn.SAVE_AND_EXECUTE,{active:!0}),Gn=function(){var e=ln().snippetsAPI,t=Ln(),n=t.setIsWorking,r=t.setCurrentNotice,i=t.snippet,s=t.setSnippet,a=(0,o.useCallback)(m(b().mark((function t(){var o,a,c,p,d,f=arguments;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=f.length>0&&void 0!==f[0]?f[0]:Wn.SAVE,r(void 0),t.next=4,m(b().mark((function t(){var r,s;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=Vn(Vn({},i),qn[o]),t.next=4,0===r.id?e.create(r):e.update(r);case 4:return s=t.sent,n(!1),t.abrupt("return",s.id?s:void 0);case 9:return t.prev=9,t.t0=t.catch(0),n(!1),t.abrupt("return",En(t.t0)?t.t0.message:void 0);case 13:case"end":return t.stop()}}),t,null,[[0,9]])})))();case 4:if(a=t.sent,c=en(i)?zn:Un,void 0!==a&&"string"!=typeof a){t.next=12;break}return p=[i.id?c.failedUpdate:c.failedCreate,null!=a?a:(0,u.__)("The server did not send a valid response.","code-snippets")],r(["error",p.filter(Boolean).join(" ")]),t.abrupt("return",void 0);case 12:return s(Zt(a)),r(["updated",$n(i,a,o)]),i.id&&a.id&&(window.document.title=window.document.title.replace(Un.addNew,c.edit),window.history.replaceState({},"",(0,l.addQueryArgs)(null===(d=window.CODE_SNIPPETS)||void 0===d?void 0:d.urls.edit,{id:a.id}))),t.abrupt("return",a);case 16:case"end":return t.stop()}}),t)}))),[e,n,r,i,s]);return{submitSnippet:a}},Jn=function(e){console.error(e)};const Kn=window.wp.components;var Xn=function(e){var t=e.open,n=e.title,r=e.onConfirm,o=e.onCancel,i=e.children,s=e.confirmLabel,a=void 0===s?(0,u.__)("OK","code-snippets"):s,c=e.cancelLabel,l=void 0===c?(0,u.__)("Cancel","code-snippets"):c,p=e.confirmButtonClassName;return t?(0,on.jsxs)(Kn.Modal,{title:n,onRequestClose:o,closeButtonLabel:l,isDismissible:!0,onKeyDown:function(e){"Enter"===e.key&&(null==r||r())},children:[i,(0,on.jsxs)(Kn.Flex,{direction:"row",justify:"flex-end",children:[(0,on.jsx)(Kn.Button,{variant:"tertiary",onClick:o,children:l}),(0,on.jsx)(Kn.Button,{variant:"primary",onClick:r,className:p,children:a})]})]}):null};const Yn=window.wp.element;var Zn=function(e){var t,n=e.isOpen,r=e.setIsOpen;return n?(0,on.jsxs)(Kn.Modal,{title:"",className:"code-snippets-upsell-dialog",onRequestClose:function(){r(!1)},children:[(0,on.jsx)("img",{src:"".concat(null===(t=window.CODE_SNIPPETS)||void 0===t?void 0:t.urls.plugin,"/assets/icon.svg"),alt:(0,u.__)("Code Snippets logo","code-snippets")}),(0,on.jsx)("h1",{children:(0,Yn.createInterpolateElement)((0,u.__)("Unlock all cloud sync features and many more, with <span>Code Snippets Pro</span>","code-snippets"),{span:(0,on.jsx)("span",{})})}),(0,on.jsx)("p",{children:(0,Yn.createInterpolateElement)((0,u.__)("With Code Snippets Pro you can connect your WordPress sites to the code snippets cloud platform and be able to <strong>backup, synchronise, collaborate, and deploy</strong> your snippets from one central location.","code-snippets"),{strong:(0,on.jsx)("strong",{})})}),(0,on.jsx)("a",{href:"https://codesnippets.pro/pricing/",className:"button button-primary button-large",rel:"noreferrer",target:"_blank",children:(0,u.__)("Explore Code Snippets Pro","code-snippets")}),(0,on.jsx)("h2",{children:(0,u.__)("Here's what else you get with Pro:","code-snippets")}),(0,on.jsxs)("ul",{children:[(0,on.jsx)("li",{children:(0,u.__)("Create, explain and verify snippets with AI","code-snippets")}),(0,on.jsx)("li",{children:(0,u.__)("Control when snippets run with Conditions","code-snippets")}),(0,on.jsx)("li",{children:(0,u.__)("CSS stylesheet snippets","code-snippets")}),(0,on.jsx)("li",{children:(0,u.__)("Minified JavaScript snippets","code-snippets")}),(0,on.jsx)("li",{children:(0,u.__)("Editor blocks and Elementor widgets","code-snippets")}),(0,on.jsx)("li",{children:(0,u.__)("Cloud sync and backup","code-snippets")}),(0,on.jsx)("li",{children:(0,u.__)("Cloud share and deploy","code-snippets")}),(0,on.jsx)("li",{children:(0,u.__)("Cloud bundles and teams","code-snippets")}),(0,on.jsx)("li",{children:(0,u.__)("WP-CLI commands","code-snippets")}),(0,on.jsx)("li",{children:(0,u.__)("And much more!","code-snippets")})]})]}):null},Qn={cond:"randomize",cloud:"cloud",bundles:"screenoptions",cloud_search:"search"},er=function(e){var t=e.name,n=e.small,r=e.inverted,o=e.children;return(0,on.jsx)("span",{className:c()("badge","".concat(t,"-badge"),{"small-badge":n,"inverted-badge":r}),children:Qn[t]?(0,on.jsx)("span",{className:"dashicons dashicons-".concat(Qn[t])}):null!=o?o:t})};function tr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var nr=["id","children","className","name","primary","secondary","small","large","link","type","onClick"];function rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rr(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ir=function(e){var t=e.id,n=e.children,r=e.className,o=e.name,i=e.primary,s=void 0!==i&&i,a=e.secondary,u=void 0!==a&&a,l=e.small,p=void 0!==l&&l,d=e.large,f=void 0!==d&&d,h=e.link,m=void 0!==h&&h,v=e.type,b=void 0===v?"button":v,g=e.onClick,y=tr(e,nr);return(0,on.jsx)("button",or(or({id:null!=t?t:o,name:o,type:b},y),{},{onClick:function(e){g&&(e.preventDefault(),g(e))},className:c()("button",r,{"button-primary":s,"button-secondary":u,"button-large":f,"button-small":p,"button-link":m}),children:n}))},sr=function(e){var t=e.setIsDialogOpen,n=Ln(),r=n.snippet,o=n.isReadOnly,i=0!==r.conditionId;return(0,on.jsx)("div",{className:c()("conditions-editor-open block-form-field",i?"has-condition":"no-condition"),children:en(r)?null:(0,on.jsxs)(on.Fragment,{children:[(0,on.jsxs)("h4",{children:[(0,u.__)("Conditions","code-snippets"),(0,on.jsx)(er,{name:"beta",small:!0,children:(0,u.__)("beta","code-snippets")}),!qt()&&(0,on.jsx)(er,{name:"pro",small:!0,children:(0,u.__)("Pro","code-snippets")})]}),(0,on.jsxs)(ir,{large:!0,disabled:o,onClick:function(){return t(!0)},children:[(0,on.jsx)(er,{name:"cond",small:!0}),i?(0,u.__)("Edit Conditions","code-snippets"):(0,u.__)("Add Conditions","code-snippets")]})]})})};function ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ur=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function lr(){return lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lr.apply(null,arguments)}var pr=n(3029),dr=n(2901),fr=n(5501);function hr(e){return hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hr(e)}function mr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mr=function(){return!!e})()}var vr=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),br=Math.abs,gr=String.fromCharCode,yr=Object.assign;function wr(e){return e.trim()}function Or(e,t,n){return e.replace(t,n)}function xr(e,t){return e.indexOf(t)}function Sr(e,t){return 0|e.charCodeAt(t)}function jr(e,t,n){return e.slice(t,n)}function Er(e){return e.length}function _r(e){return e.length}function Cr(e,t){return t.push(e),e}var Pr=1,kr=1,Ar=0,Rr=0,Dr=0,Ir="";function Tr(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Pr,column:kr,length:s,return:""}}function Nr(e,t){return yr(Tr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Lr(){return Dr=Rr>0?Sr(Ir,--Rr):0,kr--,10===Dr&&(kr=1,Pr--),Dr}function Mr(){return Dr=Rr<Ar?Sr(Ir,Rr++):0,kr++,10===Dr&&(kr=1,Pr++),Dr}function Fr(){return Sr(Ir,Rr)}function Vr(){return Rr}function Ur(e,t){return jr(Ir,e,t)}function Br(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Hr(e){return Pr=kr=1,Ar=Er(Ir=e),Rr=0,[]}function zr(e){return Ir="",e}function Wr(e){return wr(Ur(Rr-1,Gr(91===e?e+2:40===e?e+1:e)))}function $r(e){for(;(Dr=Fr())&&Dr<33;)Mr();return Br(e)>2||Br(Dr)>3?"":" "}function qr(e,t){for(;--t&&Mr()&&!(Dr<48||Dr>102||Dr>57&&Dr<65||Dr>70&&Dr<97););return Ur(e,Vr()+(t<6&&32==Fr()&&32==Mr()))}function Gr(e){for(;Mr();)switch(Dr){case e:return Rr;case 34:case 39:34!==e&&39!==e&&Gr(Dr);break;case 40:41===e&&Gr(e);break;case 92:Mr()}return Rr}function Jr(e,t){for(;Mr()&&e+Dr!==57&&(e+Dr!==84||47!==Fr()););return"/*"+Ur(t,Rr-1)+"*"+gr(47===e?e:Mr())}function Kr(e){for(;!Br(Fr());)Mr();return Ur(e,Rr)}var Xr="-ms-",Yr="-moz-",Zr="-webkit-",Qr="comm",eo="rule",to="decl",no="@keyframes";function ro(e,t){for(var n="",r=_r(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function oo(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case to:return e.return=e.return||e.value;case Qr:return"";case no:return e.return=e.value+"{"+ro(e.children,r)+"}";case eo:e.value=e.props.join(",")}return Er(n=ro(e.children,r))?e.return=e.value+"{"+n+"}":""}function io(e){return zr(so("",null,null,null,[""],e=Hr(e),0,[0],e))}function so(e,t,n,r,o,i,s,a,c){for(var u=0,l=0,p=s,d=0,f=0,h=0,m=1,v=1,b=1,g=0,y="",w=o,O=i,x=r,S=y;v;)switch(h=g,g=Mr()){case 40:if(108!=h&&58==Sr(S,p-1)){-1!=xr(S+=Or(Wr(g),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:S+=Wr(g);break;case 9:case 10:case 13:case 32:S+=$r(h);break;case 92:S+=qr(Vr()-1,7);continue;case 47:switch(Fr()){case 42:case 47:Cr(co(Jr(Mr(),Vr()),t,n),c);break;default:S+="/"}break;case 123*m:a[u++]=Er(S)*b;case 125*m:case 59:case 0:switch(g){case 0:case 125:v=0;case 59+l:-1==b&&(S=Or(S,/\f/g,"")),f>0&&Er(S)-p&&Cr(f>32?uo(S+";",r,n,p-1):uo(Or(S," ","")+";",r,n,p-2),c);break;case 59:S+=";";default:if(Cr(x=ao(S,t,n,u,l,o,a,y,w=[],O=[],p),i),123===g)if(0===l)so(S,t,x,x,w,i,p,a,O);else switch(99===d&&110===Sr(S,3)?100:d){case 100:case 108:case 109:case 115:so(e,x,x,r&&Cr(ao(e,x,x,0,0,o,a,y,o,w=[],p),O),o,O,p,a,r?w:O);break;default:so(S,x,x,x,[""],O,0,a,O)}}u=l=f=0,m=b=1,y=S="",p=s;break;case 58:p=1+Er(S),f=h;default:if(m<1)if(123==g)--m;else if(125==g&&0==m++&&125==Lr())continue;switch(S+=gr(g),g*m){case 38:b=l>0?1:(S+="\f",-1);break;case 44:a[u++]=(Er(S)-1)*b,b=1;break;case 64:45===Fr()&&(S+=Wr(Mr())),d=Fr(),l=p=Er(y=S+=Kr(Vr())),g++;break;case 45:45===h&&2==Er(S)&&(m=0)}}return i}function ao(e,t,n,r,o,i,s,a,c,u,l){for(var p=o-1,d=0===o?i:[""],f=_r(d),h=0,m=0,v=0;h<r;++h)for(var b=0,g=jr(e,p+1,p=br(m=s[h])),y=e;b<f;++b)(y=wr(m>0?d[b]+" "+g:Or(g,/&\f/g,d[b])))&&(c[v++]=y);return Tr(e,t,n,0===o?eo:a,c,u,l)}function co(e,t,n){return Tr(e,t,n,Qr,gr(Dr),jr(e,2,-2),0)}function uo(e,t,n,r){return Tr(e,t,n,to,jr(e,0,r),jr(e,r+1,-1),r)}var lo=function(e,t,n){for(var r=0,o=0;r=o,o=Fr(),38===r&&12===o&&(t[n]=1),!Br(o);)Mr();return Ur(e,Rr)},po=new WeakMap,fo=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||po.get(n))&&!r){po.set(e,!0);for(var o=[],i=function(e,t){return zr(function(e,t){var n=-1,r=44;do{switch(Br(r)){case 0:38===r&&12===Fr()&&(t[n]=1),e[n]+=lo(Rr-1,t,n);break;case 2:e[n]+=Wr(r);break;case 4:if(44===r){e[++n]=58===Fr()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=gr(r)}}while(r=Mr());return e}(Hr(e),t))}(t,o),s=n.props,a=0,c=0;a<i.length;a++)for(var u=0;u<s.length;u++,c++)e.props[c]=o[a]?i[a].replace(/&\f/g,s[u]):s[u]+" "+i[a]}}},ho=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function mo(e,t){switch(function(e,t){return 45^Sr(e,0)?(((t<<2^Sr(e,0))<<2^Sr(e,1))<<2^Sr(e,2))<<2^Sr(e,3):0}(e,t)){case 5103:return Zr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Zr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Zr+e+Yr+e+Xr+e+e;case 6828:case 4268:return Zr+e+Xr+e+e;case 6165:return Zr+e+Xr+"flex-"+e+e;case 5187:return Zr+e+Or(e,/(\w+).+(:[^]+)/,Zr+"box-$1$2"+Xr+"flex-$1$2")+e;case 5443:return Zr+e+Xr+"flex-item-"+Or(e,/flex-|-self/,"")+e;case 4675:return Zr+e+Xr+"flex-line-pack"+Or(e,/align-content|flex-|-self/,"")+e;case 5548:return Zr+e+Xr+Or(e,"shrink","negative")+e;case 5292:return Zr+e+Xr+Or(e,"basis","preferred-size")+e;case 6060:return Zr+"box-"+Or(e,"-grow","")+Zr+e+Xr+Or(e,"grow","positive")+e;case 4554:return Zr+Or(e,/([^-])(transform)/g,"$1"+Zr+"$2")+e;case 6187:return Or(Or(Or(e,/(zoom-|grab)/,Zr+"$1"),/(image-set)/,Zr+"$1"),e,"")+e;case 5495:case 3959:return Or(e,/(image-set\([^]*)/,Zr+"$1$`$1");case 4968:return Or(Or(e,/(.+:)(flex-)?(.*)/,Zr+"box-pack:$3"+Xr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Zr+e+e;case 4095:case 3583:case 4068:case 2532:return Or(e,/(.+)-inline(.+)/,Zr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Er(e)-1-t>6)switch(Sr(e,t+1)){case 109:if(45!==Sr(e,t+4))break;case 102:return Or(e,/(.+:)(.+)-([^]+)/,"$1"+Zr+"$2-$3$1"+Yr+(108==Sr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~xr(e,"stretch")?mo(Or(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Sr(e,t+1))break;case 6444:switch(Sr(e,Er(e)-3-(~xr(e,"!important")&&10))){case 107:return Or(e,":",":"+Zr)+e;case 101:return Or(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Zr+(45===Sr(e,14)?"inline-":"")+"box$3$1"+Zr+"$2$3$1"+Xr+"$2box$3")+e}break;case 5936:switch(Sr(e,t+11)){case 114:return Zr+e+Xr+Or(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Zr+e+Xr+Or(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Zr+e+Xr+Or(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Zr+e+Xr+e+e}return e}var vo=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case to:e.return=mo(e.value,e.length);break;case no:return ro([Nr(e,{value:Or(e.value,"@","@"+Zr)})],r);case eo:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return ro([Nr(e,{props:[Or(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ro([Nr(e,{props:[Or(t,/:(plac\w+)/,":"+Zr+"input-$1")]}),Nr(e,{props:[Or(t,/:(plac\w+)/,":-moz-$1")]}),Nr(e,{props:[Or(t,/:(plac\w+)/,Xr+"input-$1")]})],r)}return""}))}}],bo=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||vo,s={},a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)}));var c,u,l,p,d=[oo,(p=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],f=(u=[fo,ho].concat(i,d),l=_r(u),function(e,t,n,r){for(var o="",i=0;i<l;i++)o+=u[i](e,t,n,r)||"";return o});o=function(e,t,n,r){c=n,ro(io(e?e+"{"+t.styles+"}":t.styles),f),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new vr({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return h.sheet.hydrate(a),h},go=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},yo={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function wo(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Oo=!1,xo=/[A-Z]|^ms/g,So=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jo=function(e){return 45===e.charCodeAt(1)},Eo=function(e){return null!=e&&"boolean"!=typeof e},_o=wo((function(e){return jo(e)?e:e.replace(xo,"-$&").toLowerCase()})),Co=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(So,(function(e,t,n){return Ao={name:t,styles:n,next:Ao},t}))}return 1===yo[e]||jo(e)||"number"!=typeof t||0===t?t:t+"px"},Po="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ko(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Ao={name:o.name,styles:o.styles,next:Ao},o.name;var i=n;if(void 0!==i.styles){var s=i.next;if(void 0!==s)for(;void 0!==s;)Ao={name:s.name,styles:s.styles,next:Ao},s=s.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ko(e,t,n[o])+";";else for(var i in n){var s=n[i];if("object"!=typeof s){var a=s;null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Eo(a)&&(r+=_o(i)+":"+Co(i,a)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&Oo)throw new Error(Po);if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var c=ko(e,t,s);switch(i){case"animation":case"animationName":r+=_o(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}else for(var u=0;u<s.length;u++)Eo(s[u])&&(r+=_o(i)+":"+Co(i,s[u])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var a=Ao,c=n(e);return Ao=a,ko(e,t,c)}}var u=n;if(null==t)return u;var l=t[u];return void 0!==l?l:u}var Ao,Ro=/label:\s*([^\s;{]+)\s*(;|$)/g;function Do(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Ao=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=ko(n,t,i)):o+=i[0];for(var s=1;s<e.length;s++)o+=ko(n,t,e[s]),r&&(o+=i[s]);Ro.lastIndex=0;for(var a,c="";null!==(a=Ro.exec(o));)c+="-"+a[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return{name:u,styles:o,next:Ao}}var Io,To,No=!!o.useInsertionEffect&&o.useInsertionEffect,Lo=No||function(e){return e()},Mo=(No||o.useLayoutEffect,o.createContext("undefined"!=typeof HTMLElement?bo({key:"css"}):null)),Fo=(Mo.Provider,function(e){return(0,o.forwardRef)((function(t,n){var r=(0,o.useContext)(Mo);return e(t,r,n)}))}),Vo=o.createContext({}),Uo={}.hasOwnProperty,Bo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ho=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return go(t,n,r),Lo((function(){return function(e,t,n){go(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},zo=Fo((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[Bo],s=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}(t.registered,s,e.className):null!=e.className&&(a=e.className+" ");var c=Do(s,void 0,o.useContext(Vo));a+=t.key+"-"+c.name;var u={};for(var l in e)Uo.call(e,l)&&"css"!==l&&l!==Bo&&(u[l]=e[l]);return u.className=a,n&&(u.ref=n),o.createElement(o.Fragment,null,o.createElement(Ho,{cache:t,serialized:c,isStringTag:"string"==typeof i}),o.createElement(i,u))})),Wo=zo,$o=(n(4146),function(e,t){var n=arguments;if(null==t||!Uo.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=Wo,i[1]=function(e,t){var n={};for(var r in t)Uo.call(t,r)&&(n[r]=t[r]);return n[Bo]=e,n}(e,t);for(var s=2;s<r;s++)i[s]=n[s];return o.createElement.apply(null,i)});function qo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Do(t)}Io=$o||($o={}),To||(To=Io.JSX||(Io.JSX={}));var Go=n(5795);const Jo=Math.min,Ko=Math.max,Xo=Math.round,Yo=Math.floor,Zo=e=>({x:e,y:e});function Qo(e){return ni(e)?(e.nodeName||"").toLowerCase():"#document"}function ei(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ti(e){var t;return null==(t=(ni(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ni(e){return e instanceof Node||e instanceof ei(e).Node}function ri(e){return e instanceof Element||e instanceof ei(e).Element}function oi(e){return e instanceof HTMLElement||e instanceof ei(e).HTMLElement}function ii(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof ei(e).ShadowRoot)}function si(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ai(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ai(e){return ei(e).getComputedStyle(e)}function ci(e){const t=function(e){if("html"===Qo(e))return e;const t=e.assignedSlot||e.parentNode||ii(e)&&e.host||ti(e);return ii(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(Qo(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:oi(t)&&si(t)?t:ci(t)}function ui(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ci(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=ei(o);return i?t.concat(s,s.visualViewport||[],si(o)?o:[],s.frameElement&&n?ui(s.frameElement):[]):t.concat(o,ui(o,[],n))}function li(e){return ri(e)?e:e.contextElement}function pi(e){const t=li(e);if(!oi(t))return Zo(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=ai(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=oi(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Xo(n)!==i||Xo(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}(t);let s=(i?Xo(n.width):n.width)/r,a=(i?Xo(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const di=Zo(0);function fi(e){const t=ei(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:di}function hi(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=li(e);let s=Zo(1);t&&(r?ri(r)&&(s=pi(r)):s=pi(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ei(e))&&t}(i,n,r)?fi(i):Zo(0);let c=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,l=o.width/s.x,p=o.height/s.y;if(i){const e=ei(i),t=r&&ri(r)?ei(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=pi(n),t=n.getBoundingClientRect(),r=ai(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,l*=e.x,p*=e.y,c+=o,u+=i,n=ei(n).frameElement}}return d={width:l,height:p,x:c,y:u},{...d,top:d.y,left:d.x,right:d.x+d.width,bottom:d.y+d.height};var d}var mi=o.useLayoutEffect,vi=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],bi=function(){};function gi(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function yi(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&i.push("".concat(gi(e,s)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var wi=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,Ut.A)(e)&&null!==e?[e]:[];var t},Oi=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,cr({},tr(e,vi))},xi=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,s=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),s)}};function Si(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function ji(e){return Si(e)?window.pageYOffset:e.scrollTop}function Ei(e,t){Si(e)?window.scrollTo(0,t):e.scrollTop=t}function _i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:bi,o=ji(e),i=t-o,s=0;!function t(){var a,c=i*((a=(a=s+=10)/n-1)*a*a+1)+o;Ei(e,c),s<n?window.requestAnimationFrame(t):r(e)}()}function Ci(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Ei(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Ei(e,Math.max(t.offsetTop-o,0))}function Pi(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var ki=!1,Ai={get passive(){return ki=!0}},Ri="undefined"!=typeof window?window:{};Ri.addEventListener&&Ri.removeEventListener&&(Ri.addEventListener("p",bi,Ai),Ri.removeEventListener("p",bi,!1));var Di=ki;function Ii(e){return null!=e}function Ti(e,t,n){return e?t:n}var Ni=["children","innerProps"],Li=["children","innerProps"];var Mi,Fi,Vi,Ui=function(e){return"auto"===e?"bottom":e},Bi=(0,o.createContext)(null),Hi=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,c=e.menuShouldScrollIntoView,u=e.theme,l=((0,o.useContext)(Bi)||{}).setPortalPlacement,p=(0,o.useRef)(null),d=(0,o.useState)(r),f=(0,s.A)(d,2),h=f[0],m=f[1],v=(0,o.useState)(null),b=(0,s.A)(v,2),g=b[0],y=b[1],w=u.spacing.controlHeight;return mi((function(){var e=p.current;if(e){var t="fixed"===a,o=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,s=e.isFixedPosition,a=e.controlHeight,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var l,p=c.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,h=d.height,m=d.top,v=n.offsetParent.getBoundingClientRect().top,b=s||Si(l=c)?window.innerHeight:l.clientHeight,g=ji(c),y=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),O=v-w,x=b-m,S=O+g,j=p-g-m,E=f-b+g+y,_=g+m-w,C=160;switch(o){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(j>=h&&!s)return i&&_i(c,E,C),{placement:"bottom",maxHeight:t};if(!s&&j>=r||s&&x>=r)return i&&_i(c,E,C),{placement:"bottom",maxHeight:s?x-y:j-y};if("auto"===o||s){var P=t,k=s?O:S;return k>=r&&(P=Math.min(k-y-a,t)),{placement:"top",maxHeight:P}}if("bottom"===o)return i&&Ei(c,E),{placement:"bottom",maxHeight:t};break;case"top":if(O>=h)return{placement:"top",maxHeight:t};if(S>=h&&!s)return i&&_i(c,_,C),{placement:"top",maxHeight:t};if(!s&&S>=r||s&&O>=r){var A=t;return(!s&&S>=r||s&&O>=r)&&(A=s?O-w:S-w),i&&_i(c,_,C),{placement:"top",maxHeight:A}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:c&&!t,isFixedPosition:t,controlHeight:w});m(o.maxHeight),y(o.placement),null==l||l(o.placement)}}),[r,i,a,c,n,l,w]),t({ref:p,placerProps:cr(cr({},e),{},{placement:g||Ui(i),maxHeight:h})})},zi=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return cr({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Wi=zi,$i=zi,qi=["size"],Gi=["innerProps","isRtl","size"],Ji={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Ki=function(e){var t=e.size,n=tr(e,qi);return $o("svg",lr({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ji},n))},Xi=function(e){return $o(Ki,lr({size:20},e),$o("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Yi=function(e){return $o(Ki,lr({size:20},e),$o("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Zi=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return cr({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Qi=Zi,es=Zi,ts=function(){var e=qo.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Mi||(Fi=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],Vi||(Vi=Fi.slice(0)),Mi=Object.freeze(Object.defineProperties(Fi,{raw:{value:Object.freeze(Vi)}})))),ns=function(e){var t=e.delay,n=e.offset;return $o("span",{css:qo({animation:"".concat(ts," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},rs=["data"],os=["innerRef","isDisabled","isHidden","inputClassName"],is={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ss={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":cr({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},is)},as=function(e){return cr({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},is)},cs=function(e){var t=e.children,n=e.innerProps;return $o("div",n,t)},us={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return $o("div",lr({},xi(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||$o(Xi,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,s=e.menuIsOpen;return $o("div",lr({ref:o},xi(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":s}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return $o("div",lr({},xi(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||$o(Yi,null))},DownChevron:Yi,CrossIcon:Xi,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,s=e.headingProps,a=e.innerProps,c=e.label,u=e.theme,l=e.selectProps;return $o("div",lr({},xi(e,"group",{group:!0}),a),$o(i,lr({},s,{selectProps:l,theme:u,getStyles:r,getClassNames:o,cx:n}),c),$o("div",null,t))},GroupHeading:function(e){var t=Oi(e);t.data;var n=tr(t,rs);return $o("div",lr({},xi(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return $o("div",lr({},xi(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return $o("span",lr({},t,xi(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Oi(e),o=r.innerRef,i=r.isDisabled,s=r.isHidden,a=r.inputClassName,c=tr(r,os);return $o("div",lr({},xi(e,"input",{"input-container":!0}),{"data-value":n||""}),$o("input",lr({className:t({input:!0},a),ref:o,style:as(s),disabled:i},c)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=tr(e,Gi);return $o("div",lr({},xi(cr(cr({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),$o(ns,{delay:0,offset:n}),$o(ns,{delay:160,offset:!0}),$o(ns,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return $o("div",lr({},xi(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return $o("div",lr({},xi(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,a=e.menuPlacement,c=e.menuPosition,u=(0,o.useRef)(null),l=(0,o.useRef)(null),p=(0,o.useState)(Ui(a)),d=(0,s.A)(p,2),f=d[0],h=d[1],m=(0,o.useMemo)((function(){return{setPortalPlacement:h}}),[]),v=(0,o.useState)(null),b=(0,s.A)(v,2),g=b[0],y=b[1],w=(0,o.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===c?0:window.pageYOffset,n=e[f]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||y({offset:n,rect:e})}}),[r,c,f,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);mi((function(){w()}),[w]);var O=(0,o.useCallback)((function(){"function"==typeof l.current&&(l.current(),l.current=null),r&&u.current&&(l.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=li(e),l=o||i?[...u?ui(u):[],...ui(t)]:[];l.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const p=u&&a?function(e,t){let n,r=null;const o=ti(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function s(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),i();const{left:u,top:l,width:p,height:d}=e.getBoundingClientRect();if(a||t(),!p||!d)return;const f={rootMargin:-Yo(l)+"px "+-Yo(o.clientWidth-(u+p))+"px "+-Yo(o.clientHeight-(l+d))+"px "+-Yo(u)+"px",threshold:Ko(0,Jo(1,c))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==c){if(!h)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(m,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,f)}r.observe(e)}(!0),i}(u,n):null;let d,f=-1,h=null;s&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{h&&h.observe(t)}))),n()})),u&&!c&&h.observe(u),h.observe(t));let m=c?hi(e):null;return c&&function t(){const r=hi(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,d=requestAnimationFrame(t)}(),n(),()=>{l.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),p&&p(),h&&h.disconnect(),h=null,c&&cancelAnimationFrame(d)}}(r,u.current,w,{elementResize:"ResizeObserver"in window}))}),[r,w]);mi((function(){O()}),[O]);var x=(0,o.useCallback)((function(e){u.current=e,O()}),[O]);if(!t&&"fixed"!==c||!g)return null;var S=$o("div",lr({ref:x},xi(cr(cr({},e),{},{offset:g.offset,position:c,rect:g.rect}),"menuPortal",{"menu-portal":!0}),i),n);return $o(Bi.Provider,{value:m},t?(0,Go.createPortal)(S,t):S)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=tr(e,Li);return $o("div",lr({},xi(cr(cr({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=tr(e,Ni);return $o("div",lr({},xi(cr(cr({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,s=e.removeProps,a=e.selectProps,c=n.Container,u=n.Label,l=n.Remove;return $o(c,{data:r,innerProps:cr(cr({},xi(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:a},$o(u,{data:r,innerProps:cr({},xi(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},t),$o(l,{data:r,innerProps:cr(cr({},xi(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},s),selectProps:a}))},MultiValueContainer:cs,MultiValueLabel:cs,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return $o("div",lr({role:"button"},n),t||$o(Xi,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,s=e.innerProps;return $o("div",lr({},xi(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},s),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return $o("div",lr({},xi(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return $o("div",lr({},xi(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return $o("div",lr({},xi(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return $o("div",lr({},xi(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},ls=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ps(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||ls(r)&&ls(o)))return!1;var r,o;return!0}for(var ds={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},fs=function(e){return $o("span",lr({css:ds},e))},hs={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,s=e.selectValue,a=e.isDisabled,c=e.isSelected,u=e.isAppleDevice,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(i," focused, ").concat(l(s,n),".");if("menu"===t&&u){var p=a?" disabled":"",d="".concat(c?" selected":"").concat(p);return"".concat(i).concat(d,", ").concat(l(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},ms=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,s=e.isFocused,a=e.selectValue,c=e.selectProps,u=e.id,l=e.isAppleDevice,p=c.ariaLiveMessages,d=c.getOptionLabel,f=c.inputValue,h=c.isMulti,m=c.isOptionDisabled,v=c.isSearchable,b=c.menuIsOpen,g=c.options,y=c.screenReaderStatus,w=c.tabSelectsValue,O=c.isLoading,x=c["aria-label"],S=c["aria-live"],j=(0,o.useMemo)((function(){return cr(cr({},hs),p||{})}),[p]),E=(0,o.useMemo)((function(){var e,n="";if(t&&j.onChange){var r=t.option,o=t.options,i=t.removedValue,s=t.removedValues,c=t.value,u=i||r||(e=c,Array.isArray(e)?null:e),l=u?d(u):"",p=o||s||void 0,f=p?p.map(d):[],h=cr({isDisabled:u&&m(u,a),label:l,labels:f},t);n=j.onChange(h)}return n}),[t,j,m,a,d]),_=(0,o.useMemo)((function(){var e="",t=n||r,o=!!(n&&a&&a.includes(n));if(t&&j.onFocus){var s={focused:t,label:d(t),isDisabled:m(t,a),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:a,isAppleDevice:l};e=j.onFocus(s)}return e}),[n,r,d,m,j,i,a,l]),C=(0,o.useMemo)((function(){var e="";if(b&&g.length&&!O&&j.onFilter){var t=y({count:i.length});e=j.onFilter({inputValue:f,resultsMessage:t})}return e}),[i,f,b,j,g,y,O]),P="initial-input-focus"===(null==t?void 0:t.action),k=(0,o.useMemo)((function(){var e="";if(j.guidance){var t=r?"value":b?"menu":"input";e=j.guidance({"aria-label":x,context:t,isDisabled:n&&m(n,a),isMulti:h,isSearchable:v,tabSelectsValue:w,isInitialFocus:P})}return e}),[x,n,r,h,m,v,b,j,a,w,P]),A=$o(o.Fragment,null,$o("span",{id:"aria-selection"},E),$o("span",{id:"aria-focused"},_),$o("span",{id:"aria-results"},C),$o("span",{id:"aria-guidance"},k));return $o(o.Fragment,null,$o(fs,{id:u},P&&A),$o(fs,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!P&&A))},vs=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],bs=new RegExp("["+vs.map((function(e){return e.letters})).join("")+"]","g"),gs={},ys=0;ys<vs.length;ys++)for(var ws=vs[ys],Os=0;Os<ws.letters.length;Os++)gs[ws.letters[Os]]=ws.base;var xs=function(e){return e.replace(bs,(function(e){return gs[e]}))},Ss=function(e,t){void 0===t&&(t=ps);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(xs),js=function(e){return e.replace(/^\s+|\s+$/g,"")},Es=function(e){return"".concat(e.label," ").concat(e.value)},_s=["innerRef"];function Cs(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=(0,s.A)(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=(0,s.A)(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(tr(e,_s),"onExited","in","enter","exit","appear");return $o("input",lr({ref:t},n,{css:qo({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Ps=["boxSizing","height","overflow","paddingRight","position"],ks={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function As(e){e.cancelable&&e.preventDefault()}function Rs(e){e.stopPropagation()}function Ds(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Is(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ts=!("undefined"==typeof window||!window.document||!window.document.createElement),Ns=0,Ls={capture:!1,passive:!1},Ms=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Fs={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Vs(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,s=e.onTopLeave,a=(0,o.useRef)(!1),c=(0,o.useRef)(!1),u=(0,o.useRef)(0),l=(0,o.useRef)(null),p=(0,o.useCallback)((function(e,t){if(null!==l.current){var o=l.current,u=o.scrollTop,p=o.scrollHeight,d=o.clientHeight,f=l.current,h=t>0,m=p-d-u,v=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&c.current&&(s&&s(e),c.current=!1),h&&t>m?(n&&!a.current&&n(e),f.scrollTop=p,v=!0,a.current=!0):!h&&-t>u&&(i&&!c.current&&i(e),f.scrollTop=0,v=!0,c.current=!0),v&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,i,s]),d=(0,o.useCallback)((function(e){p(e,e.deltaY)}),[p]),f=(0,o.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),h=(0,o.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;p(e,t)}),[p]),m=(0,o.useCallback)((function(e){if(e){var t=!!Di&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,d]),v=(0,o.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))}),[h,f,d]);return(0,o.useEffect)((function(){if(t){var e=l.current;return m(e),function(){v(e)}}}),[t,m,v]),function(e){l.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),s=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,o.useRef)({}),s=(0,o.useRef)(null),a=(0,o.useCallback)((function(e){if(Ts){var t=document.body,n=t&&t.style;if(r&&Ps.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&Ns<1){var o=parseInt(i.current.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,a=window.innerWidth-s+o||0;Object.keys(ks).forEach((function(e){var t=ks[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(a,"px"))}t&&Is()&&(t.addEventListener("touchmove",As,Ls),e&&(e.addEventListener("touchstart",Ds,Ls),e.addEventListener("touchmove",Rs,Ls))),Ns+=1}}),[r]),c=(0,o.useCallback)((function(e){if(Ts){var t=document.body,n=t&&t.style;Ns=Math.max(Ns-1,0),r&&Ns<1&&Ps.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&Is()&&(t.removeEventListener("touchmove",As,Ls),e&&(e.removeEventListener("touchstart",Ds,Ls),e.removeEventListener("touchmove",Rs,Ls)))}}),[r]);return(0,o.useEffect)((function(){if(t){var e=s.current;return a(e),function(){c(e)}}}),[t,a,c]),function(e){s.current=e}}({isEnabled:n});return $o(o.Fragment,null,n&&$o("div",{onClick:Ms,css:Fs}),t((function(e){i(e),s(e)})))}var Us={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Bs=function(e){var t=e.name,n=e.onFocus;return $o("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Us,value:"",onChange:function(){}})};function Hs(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function zs(){return Hs(/^Mac/i)}var Ws={clearIndicator:es,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,s=o.borderRadius;return cr({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:Qi,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return cr({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return cr({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,s=o.colors;return cr(cr({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},ss),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:s.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,s=o.spacing.baseUnit;return cr({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*s})},loadingMessage:$i,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,s=o.spacing,a=o.colors;return cr((Ht(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Ht(n,"position","absolute"),Ht(n,"width","100%"),Ht(n,"zIndex",1),n),t?{}:{backgroundColor:a.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return cr({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return cr({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return cr({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,s=e.isFocused;return cr({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:s?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Wi,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,s=i.spacing,a=i.colors;return cr({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?a.primary:r?a.primary25:"transparent",color:n?a.neutral20:o?a.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?a.primary:a.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return cr({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return cr({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return cr({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},$s={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},qs={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Pi(),captureMenuScroll:!Pi(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=cr({ignoreCase:!0,ignoreAccents:!0,stringify:Es,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,s=n.trim,a=n.matchFrom,c=s?js(t):t,u=s?js(i(e)):i(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=Ss(c),u=xs(u)),"start"===a?u.substr(0,c.length)===c:u.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Gs(e,t,n,r){return{type:"option",data:t,isDisabled:ta(e,t,n),isSelected:na(e,t,n),label:Qs(e,t),value:ea(e,t),index:r}}function Js(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Gs(e,n,t,r)})).filter((function(t){return Ys(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Gs(e,n,t,r);return Ys(e,i)?i:void 0})).filter(Ii)}function Ks(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,f(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Xs(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,f(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function Ys(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,s=t.label,a=t.value;return(!oa(e)||!i)&&ra(e,{label:s,value:a,data:o},r)}var Zs=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},Qs=function(e,t){return e.getOptionLabel(t)},ea=function(e,t){return e.getOptionValue(t)};function ta(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function na(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=ea(e,t);return n.some((function(t){return ea(e,t)===r}))}function ra(e,t,n){return!e.filterOption||e.filterOption(t,n)}var oa=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ia=1,sa=function(e){(0,fr.A)(n,e);var t=function(e){var t=mr();return function(){var n,r=hr(e);if(t){var o=hr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==(0,Ut.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}(n);function n(e){var r;if((0,pr.A)(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=zs()||Hs(/^iPhone/i)||Hs(/^iPad/i)||zs()&&navigator.maxTouchPoints>1,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,s=o.isMulti,a=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:a}),i&&(r.setState({inputIsHiddenAfterUpdate:!s}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,s=r.state.selectValue,a=o&&r.isOptionSelected(e,s),c=r.isOptionDisabled(e,s);if(a){var u=r.getOptionValue(e);r.setValue(s.filter((function(e){return r.getOptionValue(e)!==u})),"deselect-option",e)}else{if(c)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(f(s),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),s=Ti(t,i,i[0]||null);r.onChange(s,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(Ti(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=Ti(e,o,o[0]||null);n&&r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return Zs(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return Xs(Js(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return yi.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Qs(r.props,e)},r.getOptionValue=function(e){return ea(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=Ws[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,cr(cr({},us),e.components);var e},r.buildCategorizedOptions=function(){return Js(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return Ks(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:cr({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Si(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return oa(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,s=t.inputValue,a=t.isClearable,c=t.isDisabled,u=t.menuIsOpen,l=t.onKeyDown,p=t.tabSelectsValue,d=t.openMenuOnFocus,f=r.state,h=f.focusedOption,m=f.focusedValue,v=f.selectValue;if(!(c||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||s)return;r.focusValue("previous");break;case"ArrowRight":if(!n||s)return;r.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():a&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!p||!h||d&&r.isOptionSelected(h,v))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:s}),r.onMenuClose()):a&&i&&r.clearValue();break;case" ":if(s)return;if(!u){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++ia),r.state.selectValue=wi(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),s=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[s],r.state.focusedOptionId=Zs(o,i[s])}return r}return(0,dr.A)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Ci(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Ci(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),s="first"===e?0:i.length-1;if(!this.props.isMulti){var a=i.indexOf(r[0]);a>-1&&(s=a)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[s],focusedOptionId:this.getFocusedOptionId(i[s])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,s=-1;if(n.length){switch(e){case"previous":s=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(s=o+1)}this.setState({inputIsHidden:-1!==s,focusedValue:n[s]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme($s):cr(cr({},$s),this.props.theme):$s}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,s=this.setValue,a=this.props,c=a.isMulti,u=a.isRtl,l=a.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:c,isRtl:u,options:l,selectOption:i,selectProps:a,setValue:s,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return ta(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return na(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ra(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,s=e.tabIndex,a=e.form,c=e.menuIsOpen,u=e.required,l=this.getComponents().Input,p=this.state,d=p.inputIsHidden,f=p.ariaSelection,h=this.commonProps,m=r||this.getElementId("input"),v=cr(cr(cr({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?o.createElement(l,lr({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:a,type:"text",value:i},v)):o.createElement(Cs,lr({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:bi,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:a,value:""},v))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,s=t.MultiValueRemove,a=t.SingleValue,c=t.Placeholder,u=this.commonProps,l=this.props,p=l.controlShouldRenderValue,d=l.isDisabled,f=l.isMulti,h=l.inputValue,m=l.placeholder,v=this.state,b=v.selectValue,g=v.focusedValue,y=v.isFocused;if(!this.hasValue()||!p)return h?null:o.createElement(c,lr({},u,{key:"placeholder",isDisabled:d,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),m);if(f)return b.map((function(t,a){var c=t===g,l="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return o.createElement(n,lr({},u,{components:{Container:r,Label:i,Remove:s},isFocused:c,isDisabled:d,key:l,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var w=b[0];return o.createElement(a,lr({},u,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,s=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,lr({},t,{innerProps:a,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,s=this.state.isFocused;return e&&i?o.createElement(e,lr({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:s})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,s=this.state.isFocused;return o.createElement(n,lr({},r,{isDisabled:i,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,lr({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,s=t.MenuList,a=t.MenuPortal,c=t.LoadingMessage,u=t.NoOptionsMessage,l=t.Option,p=this.commonProps,d=this.state.focusedOption,f=this.props,h=f.captureMenuScroll,m=f.inputValue,v=f.isLoading,b=f.loadingMessage,g=f.minMenuHeight,y=f.maxMenuHeight,w=f.menuIsOpen,O=f.menuPlacement,x=f.menuPosition,S=f.menuPortalTarget,j=f.menuShouldBlockScroll,E=f.menuShouldScrollIntoView,_=f.noOptionsMessage,C=f.onMenuScrollToTop,P=f.onMenuScrollToBottom;if(!w)return null;var k,A=function(t,n){var r=t.type,i=t.data,s=t.isDisabled,a=t.isSelected,c=t.label,u=t.value,f=d===i,h=s?void 0:function(){return e.onOptionHover(i)},m=s?void 0:function(){return e.selectOption(i)},v="".concat(e.getElementId("option"),"-").concat(n),b={id:v,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return o.createElement(l,lr({},p,{innerProps:b,data:i,isDisabled:s,isSelected:a,key:v,label:c,type:r,value:u,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())k=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,s=t.options,a=t.index,c="".concat(e.getElementId("group"),"-").concat(a),u="".concat(c,"-heading");return o.createElement(n,lr({},p,{key:c,data:i,options:s,Heading:r,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return A(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return A(t,"".concat(t.index))}));else if(v){var R=b({inputValue:m});if(null===R)return null;k=o.createElement(c,p,R)}else{var D=_({inputValue:m});if(null===D)return null;k=o.createElement(u,p,D)}var I={minMenuHeight:g,maxMenuHeight:y,menuPlacement:O,menuPosition:x,menuShouldScrollIntoView:E},T=o.createElement(Hi,lr({},p,I),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,c=r.maxHeight;return o.createElement(i,lr({},p,I,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:a}),o.createElement(Vs,{captureEnabled:h,onTopArrive:C,onBottomArrive:P,lockEnabled:j},(function(t){return o.createElement(s,lr({},p,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":p.isMulti,id:e.getElementId("listbox")},isLoading:v,maxHeight:c,focusedOption:d}),k)})))}));return S||"fixed"===x?o.createElement(a,lr({},p,{appendTo:S,controlElement:this.controlRef,menuPlacement:O,menuPosition:x}),T):T}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,s=t.name,a=t.required,c=this.state.selectValue;if(a&&!this.hasValue()&&!r)return o.createElement(Bs,{name:s,onFocus:this.onValueInputFocus});if(s&&!r){if(i){if(n){var u=c.map((function(t){return e.getOptionValue(t)})).join(n);return o.createElement("input",{name:s,type:"hidden",value:u})}var l=c.length>0?c.map((function(t,n){return o.createElement("input",{key:"i-".concat(n),name:s,type:"hidden",value:e.getOptionValue(t)})})):o.createElement("input",{name:s,type:"hidden",value:""});return o.createElement("div",null,l)}var p=c[0]?this.getOptionValue(c[0]):"";return o.createElement("input",{name:s,type:"hidden",value:p})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,s=t.isFocused,a=t.selectValue,c=this.getFocusableOptions();return o.createElement(ms,lr({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:s,selectValue:a,focusableOptions:c,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,s=this.props,a=s.className,c=s.id,u=s.isDisabled,l=s.menuIsOpen,p=this.state.isFocused,d=this.commonProps=this.getCommonProps();return o.createElement(r,lr({},d,{className:a,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:p}),this.renderLiveRegion(),o.createElement(t,lr({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:p,menuIsOpen:l}),o.createElement(i,lr({},d,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),o.createElement(n,lr({},d,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,s=t.isFocused,a=t.prevWasFocused,c=t.instancePrefix,u=e.options,l=e.value,p=e.menuIsOpen,d=e.inputValue,f=e.isMulti,h=wi(l),m={};if(n&&(l!==n.value||u!==n.options||p!==n.menuIsOpen||d!==n.inputValue)){var v=p?function(e,t){return Ks(Js(e,t))}(e,h):[],b=p?Xs(Js(e,h),"".concat(c,"-option")):[],g=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);m={selectValue:h,focusedOption:y,focusedOptionId:Zs(b,y),focusableOptionsWithIds:b,focusedValue:g,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},O=i,x=s&&a;return s&&!x&&(O={value:Ti(f,h,h[0]||null),options:h,action:"initial-input-focus"},x=!a),"initial-input-focus"===(null==i?void 0:i.action)&&(O=null),cr(cr(cr({},m),w),{},{prevProps:e,ariaSelection:O,prevWasFocused:x})}}]),n}(o.Component);sa.defaultProps=qs;var aa=(0,o.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,i=void 0!==r&&r,a=e.defaultValue,c=void 0===a?null:a,u=e.inputValue,l=e.menuIsOpen,p=e.onChange,d=e.onInputChange,f=e.onMenuClose,h=e.onMenuOpen,m=e.value,v=tr(e,ur),b=(0,o.useState)(void 0!==u?u:n),g=(0,s.A)(b,2),y=g[0],w=g[1],O=(0,o.useState)(void 0!==l?l:i),x=(0,s.A)(O,2),S=x[0],j=x[1],E=(0,o.useState)(void 0!==m?m:c),_=(0,s.A)(E,2),C=_[0],P=_[1],k=(0,o.useCallback)((function(e,t){"function"==typeof p&&p(e,t),P(e)}),[p]),A=(0,o.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),w(void 0!==n?n:e)}),[d]),R=(0,o.useCallback)((function(){"function"==typeof h&&h(),j(!0)}),[h]),D=(0,o.useCallback)((function(){"function"==typeof f&&f(),j(!1)}),[f]),I=void 0!==u?u:y,T=void 0!==l?l:S,N=void 0!==m?m:C;return cr(cr({},v),{},{inputValue:I,menuIsOpen:T,onChange:k,onInputChange:A,onMenuClose:D,onMenuOpen:R,value:N})}(e);return o.createElement(sa,lr({ref:t},n))})),ca=aa;function ua(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function la(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ua(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ua(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pa={global:"admin-site",admin:"admin-tools","front-end":"admin-appearance","single-use":"clock",content:"shortcode","head-content":"editor-code","footer-content":"editor-code","admin-css":"dashboard","site-css":"admin-customizer","site-head-js":"media-code","site-footer-js":"media-code"},da={global:(0,u.__)("Run everywhere","code-snippets"),admin:(0,u.__)("Only run in administration area","code-snippets"),"front-end":(0,u.__)("Only run on site front-end","code-snippets"),"single-use":(0,u.__)("Only run once","code-snippets"),content:(0,u.__)("Where inserted in editor","code-snippets"),"head-content":(0,u.__)("In site <head> section","code-snippets"),"footer-content":(0,u.__)("In site footer (end of <body>)","code-snippets"),"site-css":(0,u.__)("Site front-end","code-snippets"),"admin-css":(0,u.__)("Administration area","code-snippets"),"site-footer-js":(0,u.__)("In site footer (end of <body>)","code-snippets"),"site-head-js":(0,u.__)("In site <head> section","code-snippets")},fa=function(){var e=Ln(),t=e.snippet,n=e.setSnippet,r=e.isReadOnly,o=zt[Qt(t)].filter((function(e){return"condition"!==e})).map((function(e){return{key:e,value:e,label:da[e]}}));return en(t)?null:(0,on.jsxs)("div",{className:"block-form-field",children:[(0,on.jsx)("h4",{children:(0,on.jsx)("label",{htmlFor:"snippet-location",children:(0,u.__)("Location","code-snippets")})}),(0,on.jsx)(ca,{inputId:"snippet-location",className:"code-snippets-select",options:o,isDisabled:r,styles:{menu:function(e){return la(la({},e),{},{zIndex:9999})},input:function(e){return la(la({},e),{},{":focus":{boxShadow:"none"}})}},value:o.find((function(e){return e.value===t.scope})),formatOptionLabel:function(e){var t=e.label,n=e.value;return(0,on.jsxs)(on.Fragment,{children:[(0,on.jsx)("span",{className:"dashicons dashicons-".concat(pa[n])})," ".concat(t)]})},onChange:function(e){return(null==e?void 0:e.value)&&n((function(t){return la(la({},t),{},{scope:e.value})}))}})]})};function ha(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ma(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ha(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ha(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var va={css:"text/css",js:"javascript",php:"text/x-php",html:"application/x-httpd-php"},ba=[{value:"php",label:(0,u.__)("Functions","code-snippets")},{value:"html",label:(0,u.__)("Content","code-snippets")},{value:"css",label:(0,u.__)("Styles","code-snippets")},{value:"js",label:(0,u.__)("Scripts","code-snippets")},{value:"cond",label:(0,u.__)("Conditions","code-snippets")}],ga=function(e){var t=e.label,n=e.value;return(0,on.jsxs)("div",{className:c()("snippet-type-option",{"inverted-badges":tn(n)&&!qt()}),children:[(0,on.jsxs)("div",{children:[t,tn(n)&&!qt()?(0,on.jsx)("span",{className:"badge pro-badge small-badge",children:(0,u._x)("Pro","Upgrade to Pro","code-snippets")}):null]}),(0,on.jsx)(er,{name:n})]})},ya=function(e){var t=e.setIsUpgradeDialogOpen,n=Ln(),r=n.snippet,i=n.setSnippet,s=n.codeEditorInstance,a=n.isReadOnly,c=Qt(r);return(0,o.useEffect)((function(){if(s){var e=s.codemirror;e.setOption("lint","php"===c||"css"===c),"cond"!==c&&va[c]&&(e.setOption("mode",va[c]),e.refresh())}}),[s,c]),(0,on.jsxs)("div",{className:"snippet-type-container",children:[(0,on.jsx)("label",{htmlFor:"snippet-type-select-input",className:"screen-reader-text",children:(0,u.__)("Snippet Type","code-snippets")}),(0,on.jsx)(ca,{inputId:"snippet-type-select-input",className:"code-snippets-select",isDisabled:a,options:0===r.id?ba:ba.filter((function(e){return"cond"!==e.value})),styles:{menu:function(e){return ma(ma({},e),{},{zIndex:9999})},input:function(e){return ma(ma({},e),{},{boxShadow:"none"})}},value:ba.find((function(e){return e.value===c})),formatOptionLabel:ga,onChange:function(e){e&&tn(e.value)&&!qt()?t(!0):e&&i((function(t){return ma(ma({},t),{},{scope:zt[e.value][0]})}))}})]})},wa=function(e){var t=e.className,n=e.onDismiss,r=e.children;return(0,on.jsxs)("div",{id:"message",className:c()("notice fade is-dismissible",t),children:[(0,on.jsx)(on.Fragment,{children:r}),(0,on.jsx)("button",{type:"button",className:"notice-dismiss",onClick:function(e){e.preventDefault(),n()},children:(0,on.jsx)("span",{className:"screen-reader-text",children:(0,u.__)("Dismiss notice.","code-snippets")})})]})};function Oa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oa(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sa=function(){var e=Ln(),t=e.currentNotice,n=e.setCurrentNotice,r=e.snippet,o=e.setSnippet;return(0,on.jsxs)(on.Fragment,{children:[t?(0,on.jsx)(wa,{className:t[0],onDismiss:function(){return n(void 0)},children:(0,on.jsx)("p",{children:(0,Yn.createInterpolateElement)(t[1],{strong:(0,on.jsx)("strong",{})})})}):null,r.code_error?(0,on.jsx)(wa,{className:"notice-error",onDismiss:function(){return o((function(e){return xa(xa({},e),{},{code_error:null})}))},children:(0,on.jsxs)("p",{children:[(0,on.jsx)("strong",{children:(0,u.sprintf)((0,u.__)("Snippet automatically deactivated due to an error on line %d:","code-snippets"),r.code_error[1])}),(0,on.jsx)("blockquote",{children:r.code_error[0]})]})}):null]})},ja=function(){return(0,on.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,on.jsx)("path",{d:"M12 6V4.5C12 4.10218 11.842 3.72064 11.5607 3.43934C11.2794 3.15804 10.8978 3 10.5 3H4.5C4.10218 3 3.72064 3.15804 3.43934 3.43934C3.15804 3.72064 3 4.10218 3 4.5V10.5C3 10.8978 3.15804 11.2794 3.43934 11.5607C3.72064 11.842 4.10218 12 4.5 12H6M6 7.5C6 7.10218 6.15804 6.72065 6.43934 6.43934C6.72065 6.15804 7.10218 6 7.5 6H13.5C13.8978 6 14.2794 6.15804 14.5607 6.43934C14.842 6.72065 15 7.10218 15 7.5V13.5C15 13.8978 14.842 14.2794 14.5607 14.5607C14.2794 14.842 13.8978 15 13.5 15H7.5C7.10218 15 6.72065 14.842 6.43934 14.5607C6.15804 14.2794 6 13.8978 6 13.5V7.5Z",stroke:"#F0F0F0",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},Ea=["text","timeout"];function _a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ca(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_a(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pa=function(e){return e[e.INITIAL=0]="INITIAL",e[e.PROGRESSING=1]="PROGRESSING",e[e.SUCCESS=2]="SUCCESS",e[e.ERROR=3]="ERROR",e}(Pa||{}),ka=function(e){switch(e.status){case Pa.INITIAL:return(0,on.jsx)(ja,{});case Pa.PROGRESSING:return(0,on.jsx)("span",{className:"spinner-wrapper",children:(0,on.jsx)(Kn.Spinner,{})});case Pa.SUCCESS:return(0,on.jsx)("span",{className:"dashicons dashicons-yes"});case Pa.ERROR:return(0,on.jsx)("span",{className:"dashicons dashicons-warning"})}},Aa=function(e){var t=e.text,n=e.timeout,r=void 0===n?1500:n,i=tr(e,Ea),a=(0,o.useState)(Pa.INITIAL),c=(0,s.A)(a,2),l=c[0],p=c[1],d=window.navigator.clipboard;return d&&window.isSecureContext?(0,on.jsxs)(ir,Ca(Ca({className:"code-snippets-copy-text",onClick:function(){p(Pa.PROGRESSING),null==d||d.writeText(t).then((function(){p(Pa.SUCCESS),setTimeout((function(){return p(Pa.INITIAL)}),r)})).catch((function(e){console.error("Failed to copy text to clipboard.",e),p(Pa.ERROR)}))}},i),{},{children:[(0,on.jsx)(ka,{status:l}),(0,u.__)("Copy","code-snippets")]})):null};function Ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Da(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ra(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ra(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ia=function(e){var t=e.options,n=e.checked,r=e.disabled,o=e.setChecked,i=e.optionLabels,s=e.optionDescriptions;return(0,on.jsx)("ul",{children:t.map((function(e){return(0,on.jsx)("li",{children:(0,on.jsx)(Kn.CheckboxControl,{label:i[e],help:s[e],checked:n[e],disabled:r,onChange:function(t){return o((function(n){return Da(Da({},n),{},Ht({},e,t))}))}})},e)}))})},Ta=function(){return(0,on.jsxs)("p",{className:"description",children:[(0,u.__)("Copy the below shortcode to insert this snippet into a post, page, or other content.","code-snippets"),"\n",(0,u.__)("You can also use the Classic Editor button, Block editor (Pro) or Elementor widget (Pro).","code-snippets"),"\n",(0,on.jsx)(Kn.ExternalLink,{href:(0,u.__)("https://codesnippets.pro/doc/inserting-content-snippets/","code-snippets"),children:(0,u.__)("Learn more","code-snippets")})]})},Na={php:(0,u.__)("Evaluate PHP code","code-snippets"),format:(0,u.__)("Add paragraphs and formatting","code-snippets"),shortcodes:(0,u.__)("Evaluate additional shortcode tags","code-snippets")},La={php:(0,u.__)("Run code within <?php ?> tags.","code-snippets"),format:(0,u.__)("Wrap output in paragraphs and apply formatting.","code-snippets"),shortcodes:(0,u.__)("Replace [shortcodes] embedded within the snippet.","code-snippets")},Ma=function(){var e,t=Ln(),n=t.snippet,r=t.isReadOnly,i=(0,o.useState)((function(){return{php:n.code.includes("<?"),format:!0,shortcodes:!1}})),a=(0,s.A)(i,2),c=a[0],l=a[1],p=(e=Da(Da({id:n.id,network:n.network},c),{},{name:n.name}),"[".concat(["code_snippet"].concat(f(Object.entries(e).filter((function(e){var t=(0,s.A)(e,2)[1];return Boolean(t)})).map((function(e){var t=(0,s.A)(e,2),n=t[0],r=t[1];return"boolean"==typeof r?n:"".concat(n,"=").concat(JSON.stringify(r))})))).filter(Boolean).join(" "),"]"));return(0,on.jsxs)(on.Fragment,{children:[(0,on.jsx)(Ta,{}),(0,on.jsxs)("p",{className:"shortcode-tag-wrapper",children:[(0,on.jsx)("code",{className:"shortcode-tag",children:p}),(0,on.jsx)(Aa,{primary:!0,text:p})]}),(0,on.jsxs)("p",{children:[(0,on.jsx)("h4",{children:(0,u.__)("Shortcode Options","code-snippets")}),(0,on.jsx)(Ia,{options:["php","format","shortcodes"],checked:c,disabled:r,setChecked:l,optionLabels:Na,optionDescriptions:La})]})]})},Fa=function(){var e=Ln(),t=e.snippet,n=e.isReadOnly,r=(0,o.useState)(!1),i=(0,s.A)(r,2),a=i[0],c=i[1];return"content"===t.scope&&t.id?(0,on.jsxs)("div",{className:"inline-form-field",children:[(0,on.jsx)("h4",{children:(0,u.__)("Shortcode","code-snippets")}),(0,on.jsx)(ir,{onClick:function(){return c(!0)},disabled:n,children:(0,u.__)("See options","code-snippets")}),a?(0,on.jsxs)(Kn.Modal,{size:"medium",className:"code-snippets-modal",title:(0,u.__)("Embed Snippet with Shortcode","code-snippets"),onRequestClose:function(){return c(!1)},children:[(0,on.jsx)("div",{className:"modal-content",children:(0,on.jsx)(Ma,{})}),(0,on.jsx)("div",{className:"modal-footer",children:(0,on.jsx)(ir,{link:!0,large:!0,onClick:function(){return c(!1)},children:(0,u.__)("Close Popup","code-snippets")})})]}):null]}):null};function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ua(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Va(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Va(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ba=function(){var e=Ln(),t=e.snippet,n=e.setSnippet,r=e.isReadOnly;return(0,on.jsxs)("div",{children:[(0,on.jsx)("h4",{children:(0,on.jsx)("label",{htmlFor:"snippet_sharing",children:(0,u.__)("Share with Subsites","code-snippets")})}),(0,on.jsxs)("div",{className:"tooltip-bottom",children:[(0,on.jsx)("span",{className:"dashicons dashicons-editor-help"}),(0,on.jsx)("span",{className:"tooltip-content",children:(0,u.__)("Instead of running on every site, allow this snippet to be activated on individual sites on the network.","code-snippets")})]}),(0,on.jsx)("input",{id:"snippet_sharing",name:"snippet_sharing",type:"checkbox",className:"switch",checked:!0===t.shared_network,disabled:r,onChange:function(e){return n((function(t){return Ua(Ua({},t),{},{active:!1,shared_network:e.target.checked})}))}})]})},Ha={php:["php","text/php"],html:["php","text/php"],css:["css","text/css"],js:["js","text/javascript"],cond:["json","application/json"],json:["json","application/json"]},za=function(e,t,n){var r=document.createElement("a");r.download=t,r.href=URL.createObjectURL(new Blob([e],{type:n})),setTimeout((function(){return URL.revokeObjectURL(r.href)}),4e4),setTimeout((function(){return r.click()}),0)},Wa=function(e){var t=e.name,n=e.label,r=e.makeRequest,o=Ln(),i=o.snippet,a=o.isWorking,c=o.setIsWorking,l=o.handleRequestError;return(0,on.jsx)(ir,{name:t,onClick:function(){c(!0),r(i).then((function(e){return function(e,t){var n=t.id,r=t.name,o=t.scope,i=r.toLowerCase().replace(/[^\w-]+/g,"-").trim(),a=""===i?"snippet-".concat(n):i;if("string"==typeof e){var c=(0,s.A)(Ha[Qt({scope:o})],2),u=c[0],l=c[1],p="".concat(a,".code-snippets.").concat(u);za(e,p,l)}else{var d="".concat(a,".code-snippets.json");za(JSON.stringify(e,void 0,2),d,"application/json")}}(e,i)})).catch((function(e){return l(e,(0,u.__)("Could not download export file.","code-snippets"))})).finally((function(){return c(!1)}))},disabled:a,children:n})},$a=function(){var e,t=ln().snippetsAPI;return(0,on.jsxs)("div",{className:"snippet-export-buttons",children:[(0,on.jsx)(Wa,{name:"export_snippet",label:(0,u.__)("Export","code-snippets"),makeRequest:t.export}),null!==(e=window.CODE_SNIPPETS_EDIT)&&void 0!==e&&e.enableDownloads?(0,on.jsx)(Wa,{name:"export_snippet_code",label:(0,u.__)("Export Code","code-snippets"),makeRequest:t.exportCode}):null]})},qa=["id","text","name","primary","small","large","wrap","className"];function Ga(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ja=function(e){var t=e.id,n=e.text,r=e.name,o=void 0===r?"submit":r,i=e.primary,s=e.small,a=e.large,l=e.wrap,p=e.className,d=tr(e,qa),f=(0,on.jsx)("input",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ga(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ga(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:null!=t?t:o,type:"submit",name:o,value:null!=n?n:(0,u.__)("Save Changes","code-snippets"),className:c()("button",{"button-primary":i,"button-small":s,"button-large":a},p)},d));return l?(0,on.jsx)("p",{className:"submit",children:f}):f};function Ka(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Xa=function(e){var t=Ln().snippet;return(0,on.jsx)(Ja,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ka(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ka(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({large:!0,name:Wn.SAVE,text:en(t)?(0,u.__)("Save Condition","code-snippets"):(0,u.__)("Save Snippet","code-snippets")},e))},Ya=function(e){var t=e.primaryActivate,n=Ln(),r=n.snippet,o=n.isWorking;switch(!0){case en(r)||r.shared_network&&Wt():return null;case"single-use"===r.scope:return(0,on.jsx)(Ja,{large:!0,name:Wn.SAVE_AND_EXECUTE,disabled:o,text:(0,u.__)("Save and Execute Once","code-snippets")});case r.active:return(0,on.jsx)(Ja,{name:Wn.SAVE_AND_DEACTIVATE,disabled:o,large:!0,text:(0,u.__)("Save and Deactivate","code-snippets")});default:case!r.active:return(0,on.jsx)(Ja,{name:Wn.SAVE_AND_ACTIVATE,primary:t,disabled:o,large:!0,text:(0,u.__)("Save and Activate","code-snippets")})}},Za=function(){var e,t=Ln().snippet,n=!(null===(e=window.CODE_SNIPPETS_EDIT)||void 0===e||!e.activateByDefault||t.active||"single-use"===t.scope||t.shared_network&&Wt());return(0,on.jsxs)(on.Fragment,{children:[n&&(0,on.jsx)(Xa,{primary:!n}),(0,on.jsx)(Ya,{primaryActivate:n}),!n&&(0,on.jsx)(Xa,{primary:!0})]})},Qa=function(){var e=Ln(),t=e.snippet,n=e.isWorking,r=Gn().submitSnippet;return(0,on.jsxs)("div",{className:"inline-form-field activation-switch-container",children:[(0,on.jsx)("h4",{children:(0,u.__)("Status")}),(0,on.jsxs)("label",{children:[t.active?(0,u.__)("Active","code-snippets"):(0,u.__)("Inactive","code-snippets"),(0,on.jsx)("input",{id:"activation-switch",type:"checkbox",checked:t.active,disabled:n||!!t.shared_network,className:"switch",onChange:function(){r(t.active?Wn.SAVE_AND_DEACTIVATE:Wn.SAVE_AND_ACTIVATE).then((function(){})).catch(Jn)}})]})]})},ec=function(){var e=ln().snippetsAPI,t=Ln(),n=t.snippet,r=t.setIsWorking,i=t.isWorking,a=t.handleRequestError,c=(0,o.useState)(!1),p=(0,s.A)(c,2),d=p[0],f=p[1];return(0,on.jsxs)(on.Fragment,{children:[(0,on.jsx)(ir,{id:"delete-snippet",className:"delete-button",disabled:i,onClick:function(){f(!0)},children:(0,u.__)("Delete","code-snippets")}),(0,on.jsxs)(Xn,{open:d,title:(0,u.__)("Permanently delete?","code-snippets"),confirmLabel:(0,u.__)("Delete","code-snippets"),confirmButtonClassName:"is-destructive",onCancel:function(){return f(!1)},onConfirm:function(){f(!1),r(!0),e.delete(n).then((function(){var e;r(!1),window.location.replace((0,l.addQueryArgs)(null===(e=window.CODE_SNIPPETS)||void 0===e?void 0:e.urls.manage,{result:"deleted"}))})).catch((function(e){return a(e,(0,u.__)("Could not delete snippet.","code-snippets"))}))},children:[(0,on.jsxs)("p",{style:{marginBlockStart:0},children:[(0,u.__)("You are about to permanently delete this snippet.","code-snippets")," ",(0,u.__)("Are you sure?","code-snippets")]}),(0,on.jsx)("p",{children:(0,on.jsx)("strong",{children:(0,u.__)("This action cannot be undone.","code-snippets")})})]})]})},tc=function(e){var t=e.block,n=e.inline,r=e.start,o=e.end,i=e.icon,s=e.className,a=e.children;return(0,on.jsxs)("div",{className:c()("tooltip",{"tooltip-block":t,"tooltip-inline":n,"tooltip-start":r,"tooltip-end":o},s),children:[null!=i?i:(0,on.jsx)("span",{className:"dashicons dashicons-editor-help"}),(0,on.jsx)("div",{className:"tooltip-content",children:a})]})};function nc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nc(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var oc,ic=function(){var e=Ln(),t=e.snippet,n=e.isReadOnly,r=e.setSnippet;return(0,on.jsxs)("div",{className:"snippet-priority inline-form-field",children:[(0,on.jsx)("h4",{children:(0,on.jsx)("label",{htmlFor:"snippet-priority",children:(0,u.__)("Priority","code-snippets")})}),(0,on.jsx)(tc,{block:!0,end:!0,children:(0,u.__)("Snippets with a lower priority number will run before those with a higher number.","code-snippets")}),(0,on.jsx)("input",{type:"number",id:"snippet-priority",name:"snippet_priority",value:t.priority,disabled:n,onChange:function(e){return r((function(t){return rc(rc({},t),{},{priority:parseInt(e.target.value,10)})}))}})]})},sc=function(){var e=Ln().codeEditorInstance;return(0,on.jsxs)("div",{children:[(0,on.jsx)("h4",{children:(0,on.jsx)("label",{htmlFor:"snippet-code-direction",children:(0,u.__)("Code Direction","code-snippets")})}),(0,on.jsxs)("select",{id:"snippet-code-direction",onChange:function(t){return null==e?void 0:e.codemirror.setOption("direction","rtl"===t.target.value?"rtl":"ltr")},children:[(0,on.jsx)("option",{value:"ltr",children:(0,u.__)("LTR","code-snippets")}),(0,on.jsx)("option",{value:"rtl",children:(0,u.__)("RTL","code-snippets")})]})]})},ac=function(e){var t=e.setIsUpgradeDialogOpen,n=Ln(),r=n.snippet,o=n.isWorking;return(0,on.jsxs)("div",{className:"snippet-editor-sidebar",children:[(0,on.jsx)(ya,{setIsUpgradeDialogOpen:t}),(0,on.jsxs)("div",{className:"box",children:[r.id&&!en(r)?(0,on.jsx)(Qa,{}):null,Wt()?(0,on.jsx)(Ba,{}):null,(0,u.isRTL)()?(0,on.jsx)(sc,{}):null,(0,on.jsx)(sr,{setIsDialogOpen:t}),(0,on.jsx)(fa,{}),(0,on.jsx)(Fa,{}),(0,on.jsx)(ic,{}),r.id?(0,on.jsxs)("div",{className:"row-actions visible inline-form-field",children:[(0,on.jsx)($a,{}),(0,on.jsx)(ec,{})]}):null]}),(0,on.jsxs)("p",{className:"submit",children:[(0,on.jsx)(Za,{}),o?(0,on.jsx)(Kn.Spinner,{}):""]}),(0,on.jsx)(Sa,{})]})},cc=function(){var e,t,n=(0,o.useState)(!1),r=(0,s.A)(n,2),i=r[0],a=r[1];return i||qt()||null!==(e=window.CODE_SNIPPETS_EDIT)&&void 0!==e&&e.hideUpsell?null:(0,on.jsxs)("div",{className:"code-snippets-upsell-banner",children:[(0,on.jsx)("img",{src:"".concat(null===(t=window.CODE_SNIPPETS)||void 0===t?void 0:t.urls.plugin,"/assets/icon.svg"),alt:(0,u.__)("Code Snippets logo","code-snippets"),height:"34"}),(0,on.jsx)("p",{children:(0,Yn.createInterpolateElement)((0,u.__)("Unlock <strong>cloud sync, snippet conditions, AI features</strong> and much more with Code Snippets Pro.","code-snippets"),{strong:(0,on.jsx)("strong",{})})}),(0,on.jsx)(Kn.ExternalLink,{className:"button button-primary button-large",href:"https://codesnippets.pro/pricing/",children:(0,u.__)("Get Started","code-snippets")}),(0,on.jsx)(ir,{small:!0,link:!0,onClick:function(){return a(!0)},children:(0,on.jsx)("span",{className:"dashicons dashicons-no-alt"})})]})};function uc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uc(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pc=null===(oc=window.CODE_SNIPPETS_EDIT)||void 0===oc?void 0:oc.tagOptions,dc=function(){var e=Ln(),t=e.snippet,n=e.setSnippet,r=e.isReadOnly;return null!=pc&&pc.enabled?(0,on.jsxs)("div",{className:"snippet-tags-container",children:[(0,on.jsx)("h3",{children:(0,on.jsx)("label",{htmlFor:"components-form-token-input-0",children:(0,u.__)("Snippet Tags","code-snippets")})}),(0,on.jsx)(Kn.FormTokenField,{label:"",value:t.tags,disabled:r,suggestions:pc.availableTags,tokenizeOnBlur:!0,tokenizeOnSpace:!pc.allowSpaces,onChange:function(e){n((function(t){return lc(lc({},t),{},{tags:e.map((function(e){return"string"==typeof e?e:e.value}))})}))}})]}):null},fc=function(){return(0,on.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,on.jsx)("path",{d:"M12 3H15V6"}),(0,on.jsx)("path",{d:"M10.5 7.5L15 3L10.5 7.5Z"}),(0,on.jsx)("path",{d:"M6 15H3V12"}),(0,on.jsx)("path",{d:"M3 15L7.5 10.5L3 15Z"}),(0,on.jsx)("path",{d:"M12 15H15V12"}),(0,on.jsx)("path",{d:"M10.5 10.5L15 15L10.5 10.5Z"}),(0,on.jsx)("path",{d:"M6 3H3V6"}),(0,on.jsx)("path",{d:"M3 3L7.5 7.5L3 3Z"}),(0,on.jsx)("path",{d:"M12 3H15M15 3V6M15 3L10.5 7.5M6 15H3M3 15V12M3 15L7.5 10.5M12 15H15M15 15V12M15 15L10.5 10.5M6 3H3M3 3V6M3 3L7.5 7.5",stroke:"currentcolor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})},hc=function(){return(0,on.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,on.jsx)("path",{d:"M3.75 6.75H6.75V3.75"}),(0,on.jsx)("path",{d:"M2.25 2.25L6.75 6.75L2.25 2.25Z"}),(0,on.jsx)("path",{d:"M3.75 11.25H6.75V14.25"}),(0,on.jsx)("path",{d:"M2.25 15.75L6.75 11.25L2.25 15.75Z"}),(0,on.jsx)("path",{d:"M14.25 6.75H11.25V3.75"}),(0,on.jsx)("path",{d:"M11.25 6.75L15.75 2.25L11.25 6.75Z"}),(0,on.jsx)("path",{d:"M14.25 11.25H11.25V14.25"}),(0,on.jsx)("path",{d:"M11.25 11.25L15.75 15.75L11.25 11.25Z"}),(0,on.jsx)("path",{d:"M3.75 6.75H6.75M6.75 6.75V3.75M6.75 6.75L2.25 2.25M3.75 11.25H6.75M6.75 11.25V14.25M6.75 11.25L2.25 15.75M14.25 6.75H11.25M11.25 6.75V3.75M11.25 6.75L15.75 2.25M14.25 11.25H11.25M11.25 11.25V14.25M11.25 11.25L15.75 15.75",stroke:"currentcolor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})},mc={Cmd:(0,u._x)("Cmd","keyboard key","code-snippets"),Ctrl:(0,u._x)("Ctrl","keyboard key","code-snippets"),Shift:(0,u._x)("Shift","keyboard key","code-snippets"),Option:(0,u._x)("Option","keyboard key","code-snippets"),Alt:(0,u._x)("Alt","keyboard key","code-snippets"),Tab:(0,u._x)("Tab","keyboard key","code-snippets"),Up:(0,u._x)("Up","keyboard key","code-snippets"),Down:(0,u._x)("Down","keyboard key","code-snippets"),A:(0,u._x)("A","keyboard key","code-snippets"),D:(0,u._x)("D","keyboard key","code-snippets"),F:(0,u._x)("F","keyboard key","code-snippets"),G:(0,u._x)("G","keyboard key","code-snippets"),R:(0,u._x)("R","keyboard key","code-snippets"),S:(0,u._x)("S","keyboard key","code-snippets"),Y:(0,u._x)("Y","keyboard key","code-snippets"),Z:(0,u._x)("Z","keyboard key","code-snippets"),"/":(0,u._x)("/","keyboard key","code-snippets"),"[":(0,u._x)("]","keyboard key","code-snippets"),"]":(0,u._x)("]","keyboard key","code-snippets")},vc={saveChanges:{label:(0,u.__)("Save changes","code-snippets"),mod:"Cmd",key:"S"},selectAll:{label:(0,u.__)("Select all","code-snippets"),mod:"Cmd",key:"A"},beginSearch:{label:(0,u.__)("Begin searching","code-snippets"),mod:"Cmd",key:"F"},findNext:{label:(0,u.__)("Find next","code-snippets"),mod:"Cmd",key:"G"},findPrevious:{label:(0,u.__)("Find previous","code-snippets"),mod:["Shift","Cmd"],key:"G"},replace:{label:(0,u.__)("Replace","code-snippets"),mod:["Shift","Cmd"],key:"F"},replaceAll:{label:(0,u.__)("Replace all","code-snippets"),mod:["Shift","Cmd","Option"],key:"R"},search:{label:(0,u.__)("Persistent search","code-snippets"),mod:"Alt",key:"F"},toggleComment:{label:(0,u.__)("Toggle comment","code-snippets"),mod:"Cmd",key:"/"},swapLineUp:{label:(0,u.__)("Swap line up","code-snippets"),mod:"Option",key:"Up"},swapLineDown:{label:(0,u.__)("Swap line down","code-snippets"),mod:"Option",key:"Down"},autoIndent:{label:(0,u.__)("Auto-indent current line or selection","code-snippets"),mod:"Shift",key:"Tab"}},bc=(0,u._x)("-","keyboard shortcut separator","code-snippets"),gc=function(e){var t=e.modifier;switch(t){case"Ctrl":case"Cmd":return(0,on.jsxs)(on.Fragment,{children:[(0,on.jsx)("kbd",{className:"pc-key",children:mc.Ctrl}),(0,on.jsx)("kbd",{className:"mac-key",children:mc.Cmd}),bc]});case"Option":return(0,on.jsxs)("span",{className:"mac-key",children:[(0,on.jsx)("kbd",{className:"mac-key",children:mc.Option}),bc]});default:return(0,on.jsxs)(on.Fragment,{children:[(0,on.jsx)("kbd",{children:mc[t]}),bc]})}},yc=function(e){var t=e.editorTheme;return(0,on.jsxs)("div",{className:"snippet-editor-help tooltip tooltip-inline tooltip-start",children:[(0,on.jsx)("span",{className:"dashicons dashicons-editor-help cm-s-".concat(t)}),(0,on.jsx)("div",{className:c()("tooltip-content",{"platform-mac":$t()}),children:(0,on.jsx)("table",{children:(0,on.jsx)("tbody",{children:Object.entries(vc).map((function(e){var t=(0,s.A)(e,2),n=t[0],r=t[1],o=r.label,i=r.mod,a=r.key;return(0,on.jsxs)("tr",{children:[(0,on.jsx)("td",{children:o}),(0,on.jsxs)("td",{children:[(Array.isArray(i)?i:[i]).map((function(e){return(0,on.jsx)("span",{children:(0,on.jsx)(gc,{modifier:e})},e)})),(0,on.jsx)("kbd",{children:mc[a]})]})]},n)}))})})})]})};function wc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wc(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xc=function(e){var t,n,r=e.textareaRef,o=Ln(),i=o.snippet,s=o.setSnippet;return(0,on.jsxs)("div",{className:"snippet-editor",children:[(0,on.jsx)("textarea",{ref:r,id:"snippet-code",name:"snippet_code",value:i.code,rows:200,spellCheck:!1,onChange:function(e){s((function(t){return Oc(Oc({},t),{},{code:e.target.value})}))}}),(0,on.jsx)(yc,{editorTheme:null!==(t=null===(n=window.CODE_SNIPPETS_EDIT)||void 0===n?void 0:n.editorTheme)&&void 0!==t?t:"default"})]})},Sc=function(e){var t=e.isExpanded,n=e.setIsExpanded,r=Ln(),i=r.snippet,s=r.setSnippet,a=r.codeEditorInstance,c=r.setCodeEditorInstance,l=Gn().submitSnippet,p=(0,o.useRef)(null);return(0,o.useEffect)((function(){c((function(e){return p.current&&!e&&(e=window.wp.codeEditor.initialize(p.current)).codemirror.on("changes",(function(e){s((function(t){return Oc(Oc({},t),{},{code:e.getValue()})}))})),e}))}),[c,p,s]),(0,o.useEffect)((function(){if(a){var e,t=null!==(e=a.codemirror.getOption("extraKeys"))&&void 0!==e?e:{},n=$t()?"Cmd":"Ctrl",r=function(){l().then((function(){})).catch(Jn)};a.codemirror.setOption("extraKeys",Oc(Oc({},"object"===(0,Ut.A)(t)?t:void 0),{},Ht(Ht({},"".concat(n,"-S"),r),"".concat(n,"-Enter"),r)))}}),[l,a,i]),(0,on.jsxs)("div",{className:"snippet-code-container",children:[(0,on.jsxs)("div",{className:"above-snippet-code",children:[(0,on.jsx)("h2",{children:(0,on.jsx)("label",{htmlFor:"snippet-code",children:(0,u.__)("Snippet Content","code-snippets")})}),(0,on.jsxs)(ir,{small:!0,className:"expand-editor-button",onClick:function(){return n((function(e){return!e}))},children:[t?(0,on.jsx)(hc,{}):(0,on.jsx)(fc,{}),t?(0,u.__)("Minimize","code-snippets"):(0,u.__)("Expand","code-snippets")]})]}),(0,on.jsx)(xc,{textareaRef:p})]})};const jc=window.wp.domReady;var Ec=n.n(jc);function _c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_c(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pc="snippet_description",kc=[["bold","italic","underline","strikethrough","blockquote","bullist","numlist","alignleft","aligncenter","alignright","link","wp_adv","code_snippets"],["formatselect","forecolor","pastetext","removeformat","charmap","outdent","indent","undo","redo","spellchecker"]],Ac=function(){var e,t=Ln(),n=t.snippet,r=t.setSnippet,i=t.isReadOnly,s=(0,o.useCallback)((function(e){return r((function(t){return Cc(Cc({},t),{},{desc:e})}))}),[r]);return(0,o.useEffect)((function(){Ec()((function(){return function(e){var t,n;null===(t=window.wp.editor)||void 0===t||t.initialize(Pc,{mediaButtons:null===(n=window.CODE_SNIPPETS_EDIT)||void 0===n?void 0:n.descEditorOptions.mediaButtons,quicktags:!0,tinymce:{toolbar:kc.map((function(e){return e.join(" ")})),setup:function(t){t.on("change",(function(){return e(t.getContent())}))}}})}(s)}))}),[s]),(0,on.jsx)("textarea",{id:Pc,className:"wp-editor-area",onChange:function(e){return s(e.target.value)},autoComplete:"off",disabled:i,rows:null===(e=window.CODE_SNIPPETS_EDIT)||void 0===e?void 0:e.descEditorOptions.rows,cols:40,value:n.desc})},Rc=function(){var e;return null!==(e=window.CODE_SNIPPETS_EDIT)&&void 0!==e&&e.enableDescription?(0,on.jsxs)("div",{className:"snippet-description-container",children:[(0,on.jsx)("h2",{children:(0,on.jsx)("label",{htmlFor:Pc,children:(0,u.__)("Description","code-snippets")})}),(0,on.jsx)(Ac,{})]}):null};function Dc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ic(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dc(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tc=function(){var e=Ln(),t=e.snippet,n=e.setSnippet,r=e.isReadOnly;return(0,on.jsx)("div",{id:"titlediv",children:(0,on.jsxs)("div",{id:"titlewrap",children:[(0,on.jsx)("label",{htmlFor:"title",className:"screen-reader-text",children:(0,u.__)("Name","code-snippets")}),(0,on.jsx)("input",{id:"title",type:"text",name:"snippet_name",autoComplete:"off",value:t.name,disabled:r,placeholder:(0,u.__)("Enter snippet title","code-snippets"),onChange:function(e){return n((function(t){return Ic(Ic({},t),{},{name:e.target.value})}))}})]})})},Nc=window.CODE_SNIPPETS_EDIT,Lc=function(e){return"condition"===e.scope?(0,u.__)("Add New Condition","code-snippets"):(0,u.__)("Add New Snippet","code-snippets")},Mc=function(){var e,t=Ln(),n=t.snippet,r=t.updateSnippet,o=t.setCurrentNotice;return(0,on.jsxs)("h1",{children:[n.id?(0,on.jsxs)(on.Fragment,{children:["".concat("condition"===n.scope?(0,u.__)("Edit Condition","code-snippets"):(0,u.__)("Edit Snippet","code-snippets")," "),(0,on.jsx)("a",{href:null===(e=window.CODE_SNIPPETS)||void 0===e?void 0:e.urls.addNew,className:"page-title-action",onClick:function(e){var t;e.preventDefault(),r((function(e){var t=e.scope;return Zt({scope:t})})),o(void 0),window.document.title=window.document.title.replace((0,u.__)("Edit Snippet","code-snippets"),Lc(n)).replace((0,u.__)("Edit Condition","code-snippets"),Lc(n)),window.history.pushState({},"",null===(t=window.CODE_SNIPPETS)||void 0===t?void 0:t.urls.addNew)},children:(0,u._x)("Add New","snippet","code-snippets")})]}):Lc(n),(null==Nc?void 0:Nc.pageTitleActions)&&Object.entries(Nc.pageTitleActions).map((function(e){var t=(0,s.A)(e,2),n=t[0],r=t[1];return(0,on.jsxs)(on.Fragment,{children:[(0,on.jsx)("a",{href:r,className:"page-title-action",children:n},n)," "]})}))]})},Fc=function(e){var t=e.snippet,n=e.isReadOnly,r=e.isExpanded;return c()("snippet-form",r?"snippet-form-expanded":"snippet-form-collapsed","".concat(t.scope,"-snippet"),"".concat(Qt(t),"-snippet"),"".concat(t.id?"saved":"new","-snippet"),"".concat(t.active?"active":"inactive","-snippet"),{"erroneous-snippet":!!t.code_error,"read-only-snippet":n})},Vc=function(e){var t=e.doSubmit,n=e.submitAction,r=e.setSubmitAction,o=e.validationWarning,i=e.setValidationWarning;return(0,on.jsx)(Xn,{open:void 0!==o,title:(0,u.__)("Snippet incomplete","code-snippets"),confirmLabel:(0,u.__)("Continue","code-snippets"),onCancel:function(){r(void 0),i(void 0)},onConfirm:function(){t(n),r(void 0),i(void 0)},children:(0,on.jsx)("p",{children:"".concat(o," ").concat((0,u.__)("Continue?","code-snippets"))})})},Uc=function(e){var t=e.children,n=e.className,r=Gn().submitSnippet,i=Ln().snippet,a=mn().refreshSnippetsList,c=(0,o.useState)(),p=(0,s.A)(c,2),d=p[0],f=p[1],h=(0,o.useState)(),m=(0,s.A)(h,2),v=m[0],b=m[1],g=function(e){r(e).then((function(e){if(e&&0!==e.id&&window.CODE_SNIPPETS&&window.location.href.toString().includes(window.CODE_SNIPPETS.urls.addNew)){document.title=document.title.replace((0,u.__)("Add New Snippet","code-snippets"),(0,u.__)("Edit Snippet","code-snippets")).replace((0,u.__)("Add New Condition","code-snippets"),(0,u.__)("Edit Condition","code-snippets"));var t=(0,l.addQueryArgs)(window.CODE_SNIPPETS.urls.edit,{id:e.id});window.history.pushState({},document.title,t)}})).then(a).catch(Jn)};return(0,on.jsxs)(on.Fragment,{children:[(0,on.jsx)("form",{id:"snippet-form",method:"post",onSubmit:function(e){e.preventDefault();var t=Object.values(Wn).find((function(e){var t;return e===(null===(t=document.activeElement)||void 0===t?void 0:t.getAttribute("name"))})),n=function(e){var t=""===e.name.trim(),n=""===e.code.trim();switch(!0){case n&&t:return(0,u.__)("This snippet has no code or title.","code-snippets");case n:return(0,u.__)("This snippet has no snippet code.","code-snippets");case t:return(0,u.__)("This snippet has no title.","code-snippets");default:return}}(i);n?(f(n),b(t)):g(t)},className:n,children:t}),(0,on.jsx)(Vc,{doSubmit:g,submitAction:v,setSubmitAction:b,validationWarning:d,setValidationWarning:f})]})},Bc=function(){var e=Ln().snippet;return en(e)?(0,on.jsx)("div",{id:"snippet_conditions",className:"snippet-condition-editor-container",children:(0,on.jsx)("p",{children:(0,u.__)("This snippet type is not supported in this version of Code Snippets.")})}):null},Hc=function(){var e,t,n=Ln(),r=n.snippet,i=n.isReadOnly,a=(0,o.useState)(!1),c=(0,s.A)(a,2),p=c[0],d=c[1],f=(0,o.useState)(!1),h=(0,s.A)(f,2),m=h[0],v=h[1];return(0,on.jsxs)("div",{className:"wrap",children:[(0,on.jsx)("p",{children:(0,on.jsx)("small",{children:en(r)?(0,on.jsx)("a",{href:(0,l.addQueryArgs)(null===(e=window.CODE_SNIPPETS)||void 0===e?void 0:e.urls.manage,{type:"cond"}),children:(0,u.__)("Back to all conditions","code-snippets")}):(0,on.jsx)("a",{href:null===(t=window.CODE_SNIPPETS)||void 0===t?void 0:t.urls.manage,children:(0,u.__)("Back to all snippets","code-snippets")})})}),(0,on.jsx)(Mc,{}),(0,on.jsxs)(Uc,{className:Fc({snippet:r,isReadOnly:i,isExpanded:p}),children:[(0,on.jsxs)("main",{className:"snippet-form-upper",children:[(0,on.jsx)(Tc,{}),(0,on.jsx)(Sc,{isExpanded:p,setIsExpanded:d}),(0,on.jsx)(Bc,{})]}),(0,on.jsxs)("div",{className:"snippet-form-lower",children:[(0,on.jsx)(cc,{}),(0,on.jsx)(Rc,{}),(0,on.jsx)(dc,{})]}),(0,on.jsx)(ac,{setIsUpgradeDialogOpen:v})]}),(0,on.jsx)(Zn,{isOpen:m,setIsOpen:v})]})},zc=function(){return(0,on.jsx)(pn,{children:(0,on.jsx)(vn,{children:(0,on.jsx)(Mn,{initialSnippet:function(){var e;return Zt(null===(e=window.CODE_SNIPPETS_EDIT)||void 0===e?void 0:e.snippet)},children:(0,on.jsx)(Hc,{})})})})},Wc=document.getElementById("edit-snippet-form-container");Wc?(0,i.H)(Wc).render((0,on.jsx)(zc,{})):console.error("Could not find snippet edit form container.")},4146:(e,t,n)=>{"use strict";var r=n(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function c(e){return r.isMemo(e)?s:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var u=Object.defineProperty,l=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var s=l(n);p&&(s=s.concat(p(n)));for(var a=c(t),m=c(n),v=0;v<s.length;++v){var b=s[v];if(!(i[b]||r&&r[b]||m&&m[b]||a&&a[b])){var g=d(n,b);try{u(t,b,g)}catch(e){}}}}return t}},5338:(e,t,n)=>{"use strict";var r=n(5795);t.H=r.createRoot,r.hydrateRoot},4405:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler");Symbol.for("react.provider");var a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.for("react.client.reference");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case s:case i:case l:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case f:case d:case a:return e;default:return t}}case r:return t}}}t.ContextConsumer=a,t.ContextProvider=c,t.Element=n,t.ForwardRef=u,t.Fragment=o,t.Lazy=f,t.Memo=d,t.Portal=r,t.Profiler=s,t.StrictMode=i,t.Suspense=l,t.SuspenseList=p,t.isContextConsumer=function(e){return v(e)===a},t.isContextProvider=function(e){return v(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return v(e)===u},t.isFragment=function(e){return v(e)===o},t.isLazy=function(e){return v(e)===f},t.isMemo=function(e){return v(e)===d},t.isPortal=function(e){return v(e)===r},t.isProfiler=function(e){return v(e)===s},t.isStrictMode=function(e){return v(e)===i},t.isSuspense=function(e){return v(e)===l},t.isSuspenseList=function(e){return v(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===i||e===l||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===c||e.$$typeof===a||e.$$typeof===u||e.$$typeof===m||void 0!==e.getModuleId)},t.typeOf=v},4363:(e,t,n)=>{"use strict";e.exports=n(4405)},1020:(e,t,n)=>{"use strict";var r=n(1609),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,l=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:l,props:i,_owner:a.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},1609:e=>{"use strict";e.exports=window.React},5795:e=>{"use strict";e.exports=window.ReactDOM},4633:(e,t,n)=>{var r=n(3738).default;function o(){"use strict";e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,s=i.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",p=c.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),s=new I(r||[]);return a(i,"_invoke",{value:k(e,n,s)}),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var m="suspendedStart",v="suspendedYield",b="executing",g="completed",y={};function w(){}function O(){}function x(){}var S={};d(S,u,(function(){return this}));var j=Object.getPrototypeOf,E=j&&j(j(T([])));E&&E!==i&&s.call(E,u)&&(S=E);var _=x.prototype=w.prototype=Object.create(S);function C(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(o,i,a,c){var u=h(e[o],e,i);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==r(p)&&s.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function k(e,n,r){var o=m;return function(i,s){if(o===b)throw Error("Generator is already running");if(o===g){if("throw"===i)throw s;return{value:t,done:!0}}for(r.method=i,r.arg=s;;){var a=r.delegate;if(a){var c=A(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=b;var u=h(e,n,r);if("normal"===u.type){if(o=r.done?g:v,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function A(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=h(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var s=i.arg;return s?s.done?(n[e.resultName]=s.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function R(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function T(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(s.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return O.prototype=x,a(_,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:O,configurable:!0}),O.displayName=d(x,p,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===O||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,d(e,p,"GeneratorFunction")),e.prototype=Object.create(_),e},n.awrap=function(e){return{__await:e}},C(P.prototype),d(P.prototype,l,(function(){return this})),n.AsyncIterator=P,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var s=new P(f(e,t,r,o),i);return n.isGeneratorFunction(t)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},C(_),d(_,p,"Generator"),d(_,u,(function(){return this})),d(_,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(D),!e)for(var n in this)"t"===n.charAt(0)&&s.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return a.type="throw",a.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=s.call(i,"catchLoc"),u=s.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&s.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;D(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},3738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4756:(e,t,n)=>{var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},5501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3662);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},3662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})}},e=>{e(e.s=896)}]);
  • code-snippets/tags/3.7.0-beta/dist/editor.js

    r3345197 r3348557  
    11/*! For license information please see editor.js.LICENSE.txt */
    2 (()=>{var t,e={3099:(t,e,i)=>{"use strict";const s=window.wp.CodeMirror;var n=i.n(s),r=i(3453),h=i(3029),o=i(2901),a=i(4776);function _(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return l(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var s=0,n=function(){};return{s:n,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,h=!0,o=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return h=t.done,t},e:function(t){o=!0,r=t},f:function(){try{h||null==i.return||i.return()}finally{if(o)throw r}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}var c=function(){return(0,o.A)((function t(e){(0,h.A)(this,t),this.code=e,this.annotations=[],this.function_names=new Set,this.class_names=new Set}),[{key:"lint",value:function(){var t=new a.Engine({parser:{suppressErrors:!0,version:800},ast:{withPositions:!0}});try{var e=t.parseEval(this.code);if(0<e.errors.length){var i,s=_(e.errors);try{for(s.s();!(i=s.n()).done;){var n=i.value;this.annotate(n.message,n.loc)}}catch(t){s.e(t)}finally{s.f()}}this.visit(e)}catch(n){console.error(n)}}},{key:"visit",value:function(t){if(t.kind&&this.validate(t),"children"in t){var e,i=_(t.children);try{for(i.s();!(e=i.n()).done;){var s=e.value;this.visit(s)}}catch(t){i.e(t)}finally{i.f()}}}},{key:"checkDuplicateIdentifier",value:function(t,e,i){e.has(t.name)?this.annotate("Cannot redeclare ".concat(i," ").concat(t.name,"()"),t.loc):e.add(t.name)}},{key:"validate",value:function(t){var e=t,i=e.name;"name"in e&&"name"in i&&"identifier"===i.kind&&("function"===t.kind?this.checkDuplicateIdentifier(i,this.function_names,"function"):"class"===t.kind&&this.checkDuplicateIdentifier(i,this.class_names,"class"))}},{key:"annotate",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"error",s=e?e.end.offset<e.start.offset?[e.end,e.start]:[e.start,e.end]:[{line:0,column:0},{line:0,column:0}],h=(0,r.A)(s,2),o=h[0],a=h[1];this.annotations.push({message:t,severity:i,from:n().Pos(o.line-1,o.column),to:n().Pos(a.line-1,a.column)})}}])}(),u={name:"application/x-httpd-php",startOpen:!0};(0,s.defineMode)("php-snippet",(function(t){return(0,s.getMode)(t,u)})),(0,s.registerHelper)("lint","php",(function(t){var e=new c(t);return e.lint(),e.annotations}))},4776:t=>{var e;self,e=()=>(()=>{"use strict";var t={8938:(t,e,i)=>{var s=i(4778),n=i(8822),r=function(t,e){this.withPositions=t,this.withSource=e};r.precedence={},[["or"],["xor"],["and"],["="],["?"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","!=","===","!==","<=>"],["<","<=",">",">="],["<<",">>"],["+","-","."],["*","/","%"],["!"],["instanceof"],["cast","silent"],["**"]].forEach((function(t,e){t.forEach((function(t){r.precedence[t]=e+1}))})),r.prototype.isRightAssociative=function(t){return"**"===t||"??"===t},r.prototype.swapLocations=function(t,e,i,s){this.withPositions&&(t.loc.start=e.loc.start,t.loc.end=i.loc.end,this.withSource&&(t.loc.source=s.lexer._input.substring(t.loc.start.offset,t.loc.end.offset)))},r.prototype.resolveLocations=function(t,e,i,s){this.withPositions&&(t.loc.start.offset>e.loc.start.offset&&(t.loc.start=e.loc.start),t.loc.end.offset<i.loc.end.offset&&(t.loc.end=i.loc.end),this.withSource&&(t.loc.source=s.lexer._input.substring(t.loc.start.offset,t.loc.end.offset)))},r.prototype.resolvePrecedence=function(t,e){var i,s,n;return"call"===t.kind?this.resolveLocations(t,t.what,t,e):"propertylookup"===t.kind||"staticlookup"===t.kind||"offsetlookup"===t.kind&&t.offset?this.resolveLocations(t,t.what,t.offset,e):"bin"===t.kind?t.right&&!t.right.parenthesizedExpression&&("bin"===t.right.kind?(s=r.precedence[t.type],n=r.precedence[t.right.type],s&&n&&n<=s&&(t.type!==t.right.type||!this.isRightAssociative(t.type))&&(i=t.right,t.right=t.right.left,this.swapLocations(t,t.left,t.right,e),i.left=this.resolvePrecedence(t,e),this.swapLocations(i,i.left,i.right,e),t=i)):"retif"===t.right.kind&&(s=r.precedence[t.type],n=r.precedence["?"],s&&n&&n<=s&&(i=t.right,t.right=t.right.test,this.swapLocations(t,t.left,t.right,e),i.test=this.resolvePrecedence(t,e),this.swapLocations(i,i.test,i.falseExpr,e),t=i))):"silent"!==t.kind&&"cast"!==t.kind||!t.expr||t.expr.parenthesizedExpression?"unary"===t.kind?t.what&&!t.what.parenthesizedExpression&&("bin"===t.what.kind?(i=t.what,t.what=t.what.left,this.swapLocations(t,t,t.what,e),i.left=this.resolvePrecedence(t,e),this.swapLocations(i,i.left,i.right,e),t=i):"retif"===t.what.kind&&(i=t.what,t.what=t.what.test,this.swapLocations(t,t,t.what,e),i.test=this.resolvePrecedence(t,e),this.swapLocations(i,i.test,i.falseExpr,e),t=i)):"retif"===t.kind?t.falseExpr&&"retif"===t.falseExpr.kind&&!t.falseExpr.parenthesizedExpression&&(i=t.falseExpr,t.falseExpr=i.test,this.swapLocations(t,t.test,t.falseExpr,e),i.test=this.resolvePrecedence(t,e),this.swapLocations(i,i.test,i.falseExpr,e),t=i):"assign"===t.kind?t.right&&"bin"===t.right.kind&&!t.right.parenthesizedExpression&&(s=r.precedence["="],n=r.precedence[t.right.type],s&&n&&n<s&&(i=t.right,t.right=t.right.left,i.left=t,this.swapLocations(i,i.left,t.right,e),t=i)):"expressionstatement"===t.kind&&this.swapLocations(t,t.expression,t,e):"bin"===t.expr.kind?(i=t.expr,t.expr=t.expr.left,this.swapLocations(t,t,t.expr,e),i.left=this.resolvePrecedence(t,e),this.swapLocations(i,i.left,i.right,e),t=i):"retif"===t.expr.kind&&(i=t.expr,t.expr=t.expr.test,this.swapLocations(t,t,t.expr,e),i.test=this.resolvePrecedence(t,e),this.swapLocations(i,i.test,i.falseExpr,e),t=i),t},r.prototype.prepare=function(t,e,i){var r=null;(this.withPositions||this.withSource)&&(r=i.position());var h=this,o=function(){var a=null,_=Array.prototype.slice.call(arguments);if(_.push(e),h.withPositions||h.withSource){var l=null;h.withSource&&(l=i.lexer._input.substring(r.offset,i.prev[2])),a=new s(l,r,new n(i.prev[0],i.prev[1],i.prev[2])),_.push(a)}t||(t=_.shift());var c=h[t];if("function"!=typeof c)throw new Error('Undefined node "'+t+'"');var u=Object.create(c.prototype);return c.apply(u,_),o.instance=u,o.trailingComments&&(u.trailingComments=o.trailingComments),"function"==typeof o.postBuild&&o.postBuild(u),i.debug&&delete h.stack[o.stackUid],h.resolvePrecedence(u,i)};return i.debug&&(this.stack||(this.stack={},this.stackUid=1),this.stack[++this.stackUid]={position:r,stack:(new Error).stack.split("\n").slice(3,5)},o.stackUid=this.stackUid),o.setTrailingComments=function(t){o.instance?o.instance.setTrailingComments(t):o.trailingComments=t},o.destroy=function(t){e&&(t?t.leadingComments?t.leadingComments=e.concat(t.leadingComments):t.leadingComments=e:i._docIndex=i._docs.length-e.length),i.debug&&delete h.stack[o.stackUid]},o},r.prototype.checkNodes=function(){var t=[];for(var e in this.stack)Object.prototype.hasOwnProperty.call(this.stack,e)&&(this.stack[e].key=e,t.push(this.stack[e]));return this.stack={},t},[i(3160),i(1654),i(1240),i(3979),i(5553),i(2207),i(2916),i(4628),i(7509),i(2906),i(5723),i(7561),i(6473),i(9626),i(4782),i(8477),i(5045),i(900),i(4824),i(1020),i(9847),i(2790),i(1333),i(2112),i(9960),i(8533),i(5947),i(7786),i(5436),i(1136),i(380),i(6129),i(9723),i(5125),i(9632),i(4300),i(1515),i(3411),i(9781),i(839),i(8374),i(9754),i(4251),i(6553),i(8630),i(9786),i(9742),i(1234),i(6),i(8861),i(7860),i(9834),i(2724),i(6025),i(2687),i(7633),i(5514),i(7427),i(1122),i(7256),i(7416),i(8140),i(6258),i(9474),i(6827),i(4427),i(4065),i(4297),i(5859),i(6985),i(9302),i(8212),i(864),i(8268),i(7190),i(8519),i(4835),i(2056),i(4838),i(7869),i(1908),i(170),i(1091),i(8276),i(1842),i(5739),i(1274),i(4352),i(9672),i(711),i(1231),i(1865),i(1102),i(7472),i(6133),i(1197),i(6649),i(1837),i(2277),i(8010),i(7579),i(3460),i(2702),i(514),i(5684),i(8019),i(7721),i(4369),i(40),i(4919),i(7676),i(2596),i(6744)].forEach((function(t){r.prototype[t.kind]=t})),t.exports=r},3160:(t,e,i)=>{var s=i(839),n="array";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.items=e,this.shortForm=t}))},1654:(t,e,i)=>{var s=i(839),n="arrowfunc";t.exports=s.extends(n,(function(t,e,i,r,h,o,a,_){s.apply(this,[n,a,_]),this.arguments=t,this.byref=e,this.body=i,this.type=r,this.nullable=h,this.isStatic=o||!1}))},1240:(t,e,i)=>{var s=i(839),n="assign";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.left=t,this.right=e,this.operator=i}))},3979:(t,e,i)=>{var s=i(839),n="assignref";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.left=t,this.right=e}))},2207:(t,e,i)=>{var s=i(4065),n="attrgroup";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.attrs=t||[]}))},5553:(t,e,i)=>{var s=i(4065),n="attribute";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.name=t,this.args=e}))},2916:(t,e,i)=>{var s=i(8268);t.exports=s.extends("bin",(function(t,e,i,n,r){s.apply(this,["bin",n,r]),this.type=t,this.left=e,this.right=i}))},4628:(t,e,i)=>{var s=i(9672),n="block";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[t||n,i,r]),this.children=e.filter(Boolean)}))},7509:(t,e,i)=>{var s=i(5514),n="boolean";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,t,e,i,r])}))},2906:(t,e,i)=>{var s=i(9672),n="break";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.level=t}))},5723:(t,e,i)=>{var s=i(839),n="byref";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.what=t}))},7561:(t,e,i)=>{var s=i(839),n="call";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.what=t,this.arguments=e}))},6473:(t,e,i)=>{var s=i(9672),n="case";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.test=t,this.body=e}))},9626:(t,e,i)=>{var s=i(8268),n="cast";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.type=t,this.raw=e,this.expr=i}))},4782:(t,e,i)=>{var s=i(9672),n="catch";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.body=t,this.what=e,this.variable=i}))},8477:(t,e,i)=>{var s=i(8533),n="class";t.exports=s.extends(n,(function(t,e,i,r,h,o,a){s.apply(this,[n,t,o,a]),this.isAnonymous=!t,this.extends=e,this.implements=i,this.body=r,this.attrGroups=[],this.parseFlags(h)}))},5045:(t,e,i)=>{var s=i(2112),n="classconstant",r=s.extends(n,(function(t,e,i,r,h,o,a,_){s.apply(this,[t||n,e,a,_]),this.parseFlags(i),this.nullable=r,this.type=h,this.attrGroups=o}));r.prototype.parseFlags=function(t){-1===t[0]?this.visibility="":null===t[0]?this.visibility=null:0===t[0]?this.visibility="public":1===t[0]?this.visibility="protected":2===t[0]&&(this.visibility="private"),this.final=2===t[2]},t.exports=r},900:(t,e,i)=>{var s=i(839),n="clone";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.what=t}))},4824:(t,e,i)=>{var s=i(839),n="closure";t.exports=s.extends(n,(function(t,e,i,r,h,o,a,_){s.apply(this,[n,a,_]),this.uses=i,this.arguments=t,this.byref=e,this.type=r,this.nullable=h,this.isStatic=o||!1,this.body=null,this.attrGroups=[]}))},1020:(t,e,i)=>{var s=i(4065);t.exports=s.extends("comment",(function(t,e,i,n){s.apply(this,[t,i,n]),this.value=e}))},9847:(t,e,i)=>{var s=i(1020),n="commentblock";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,t,e,i])}))},2790:(t,e,i)=>{var s=i(1020),n="commentline";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,t,e,i])}))},1333:(t,e,i)=>{var s=i(4065),n="constant";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.name=t,this.value=e}))},2112:(t,e,i)=>{var s=i(9672),n="constantstatement";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[t||n,i,r]),this.constants=e}))},9960:(t,e,i)=>{var s=i(9672),n="continue";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.level=t}))},8533:(t,e,i)=>{var s=i(9672),n="declaration",r=s.extends(n,(function(t,e,i,r){s.apply(this,[t||n,i,r]),this.name=e}));r.prototype.parseFlags=function(t){this.isAbstract=1===t[2],this.isFinal=2===t[2],this.isReadonly=1===t[3],"class"!==this.kind&&(-1===t[0]?this.visibility="":null===t[0]?this.visibility=null:0===t[0]?this.visibility="public":1===t[0]?this.visibility="protected":2===t[0]&&(this.visibility="private"),this.isStatic=1===t[1])},t.exports=r},5947:(t,e,i)=>{var s=i(4628),n="declare",r=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,e,r,h]),this.directives=t,this.mode=i}));r.MODE_SHORT="short",r.MODE_BLOCK="block",r.MODE_NONE="none",t.exports=r},7786:(t,e,i)=>{var s=i(4065),n="declaredirective";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.key=t,this.value=e}))},5436:(t,e,i)=>{var s=i(9672);t.exports=s.extends("do",(function(t,e,i,n){s.apply(this,["do",i,n]),this.test=t,this.body=e}))},1136:(t,e,i)=>{var s=i(9672),n="echo";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.shortForm=e,this.expressions=t}))},380:(t,e,i)=>{var s=i(839),n="empty";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.expression=t}))},6129:(t,e,i)=>{var s=i(5514),n="encapsed",r=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,t,e,r,h]),this.type=i}));r.TYPE_STRING="string",r.TYPE_SHELL="shell",r.TYPE_HEREDOC="heredoc",r.TYPE_OFFSET="offset",t.exports=r},9723:(t,e,i)=>{var s=i(839),n="encapsedpart";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.expression=t,this.syntax=e,this.curly=i}))},5125:(t,e,i)=>{var s=i(839),n="entry";t.exports=s.extends(n,(function(t,e,i,r,h,o){s.apply(this,[n,h,o]),this.key=t,this.value=e,this.byRef=i,this.unpack=r}))},9632:(t,e,i)=>{var s=i(8533),n="enum";t.exports=s.extends(n,(function(t,e,i,r,h,o){s.apply(this,[n,t,h,o]),this.valueType=e,this.implements=i,this.body=r,this.attrGroups=[]}))},4300:(t,e,i)=>{var s=i(4065),n="enumcase";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.name=t,this.value=e}))},1515:(t,e,i)=>{var s=i(4065),n="error";t.exports=s.extends(n,(function(t,e,i,r,h,o){s.apply(this,[n,h,o]),this.message=t,this.token=e,this.line=i,this.expected=r}))},3411:(t,e,i)=>{var s=i(839),n="eval";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.source=t}))},9781:(t,e,i)=>{var s=i(839),n="exit";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.expression=t,this.useDie=e}))},839:(t,e,i)=>{var s=i(4065),n="expression";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[t||n,e,i])}))},8374:(t,e,i)=>{var s=i(9672),n="expressionstatement";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.expression=t}))},9754:(t,e,i)=>{var s=i(9672);t.exports=s.extends("for",(function(t,e,i,n,r,h,o){s.apply(this,["for",h,o]),this.init=t,this.test=e,this.increment=i,this.shortForm=r,this.body=n}))},4251:(t,e,i)=>{var s=i(9672),n="foreach";t.exports=s.extends(n,(function(t,e,i,r,h,o,a){s.apply(this,[n,o,a]),this.source=t,this.key=e,this.value=i,this.shortForm=h,this.body=r}))},6553:(t,e,i)=>{var s=i(8533),n="function";t.exports=s.extends(n,(function(t,e,i,r,h,o,a){s.apply(this,[n,t,o,a]),this.arguments=e,this.byref=i,this.type=r,this.nullable=h,this.body=null,this.attrGroups=[]}))},8630:(t,e,i)=>{var s=i(9672),n="global";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.items=t}))},9786:(t,e,i)=>{var s=i(9672),n="goto";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.label=t}))},9742:(t,e,i)=>{var s=i(9672),n="halt";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.after=t}))},1234:(t,e,i)=>{var s=i(4065),n="identifier",r=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.name=t}));t.exports=r},6:(t,e,i)=>{var s=i(9672);t.exports=s.extends("if",(function(t,e,i,n,r,h){s.apply(this,["if",r,h]),this.test=t,this.body=e,this.alternate=i,this.shortForm=n}))},8861:(t,e,i)=>{var s=i(839),n="include";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.once=t,this.require=e,this.target=i}))},7860:(t,e,i)=>{var s=i(5514),n="inline";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,t,e,i,r])}))},9834:(t,e,i)=>{var s=i(8533),n="interface";t.exports=s.extends(n,(function(t,e,i,r,h,o){s.apply(this,[n,t,h,o]),this.extends=e,this.body=i,this.attrGroups=r}))},2724:(t,e,i)=>{var s=i(8533),n="intersectiontype";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,null,e,i]),this.types=t}))},6025:(t,e,i)=>{var s=i(839),n="isset";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.variables=t}))},2687:(t,e,i)=>{var s=i(9672),n="label";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.name=t}))},7633:(t,e,i)=>{var s=i(839),n="list";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.items=t,this.shortForm=e}))},5514:(t,e,i)=>{var s=i(839),n="literal";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[t||n,r,h]),this.value=e,i&&(this.raw=i)}))},4778:t=>{t.exports=function(t,e,i){this.source=t,this.start=e,this.end=i}},7427:(t,e,i)=>{var s=i(839),n="lookup";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[t||n,r,h]),this.what=e,this.offset=i}))},1122:(t,e,i)=>{var s=i(5514),n="magic";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,t,e,i,r])}))},7256:(t,e,i)=>{var s=i(839),n="match";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.cond=t,this.arms=e}))},7416:(t,e,i)=>{var s=i(839),n="matcharm";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.conds=t,this.body=e}))},8140:(t,e,i)=>{var s=i(6553),n="method";t.exports=s.extends(n,(function(){s.apply(this,arguments),this.kind=n}))},6258:(t,e,i)=>{var s=i(8276),n="name",r=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.name=t.replace(/\\$/,""),this.resolution=e}));r.UNQUALIFIED_NAME="uqn",r.QUALIFIED_NAME="qn",r.FULL_QUALIFIED_NAME="fqn",r.RELATIVE_NAME="rn",t.exports=r},6827:(t,e,i)=>{var s=i(839),n="namedargument";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.name=t,this.value=e}))},9474:(t,e,i)=>{var s=i(4628),n="namespace";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,e,r,h]),this.name=t,this.withBrackets=i||!1}))},4427:(t,e,i)=>{var s=i(839);t.exports=s.extends("new",(function(t,e,i,n){s.apply(this,["new",i,n]),this.what=t,this.arguments=e}))},4065:t=>{var e=function(t,e,i){this.kind=t,e&&(this.leadingComments=e),i&&(this.loc=i)};e.prototype.setTrailingComments=function(t){this.trailingComments=t},e.prototype.destroy=function(t){if(!t)throw new Error("Node already initialized, you must swap with another node");return this.leadingComments&&(t.leadingComments?t.leadingComments=Array.concat(this.leadingComments,t.leadingComments):t.leadingComments=this.leadingComments),this.trailingComments&&(t.trailingComments?t.trailingComments=Array.concat(this.trailingComments,t.trailingComments):t.trailingComments=this.trailingComments),t},e.prototype.includeToken=function(t){return this.loc&&(this.loc.end&&(this.loc.end.line=t.lexer.yylloc.last_line,this.loc.end.column=t.lexer.yylloc.last_column,this.loc.end.offset=t.lexer.offset),t.ast.withSource&&(this.loc.source=t.lexer._input.substring(this.loc.start.offset,t.lexer.offset))),this},e.extends=function(t,e){return e.prototype=Object.create(this.prototype),e.extends=this.extends,e.prototype.constructor=e,e.kind=t,e},t.exports=e},4297:(t,e,i)=>{var s=i(4065),n="noop";t.exports=s.extends(n,(function(t,e){s.apply(this,[n,t,e])}))},5859:(t,e,i)=>{var s=i(5514),n="nowdoc";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,t,e,r,h]),this.label=i}))},6985:(t,e,i)=>{var s=i(4065),n="nullkeyword";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.raw=t}))},9302:(t,e,i)=>{var s=i(7427),n="nullsafepropertylookup";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,t,e,i,r])}))},8212:(t,e,i)=>{var s=i(5514),n="number";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,t,e,i,r])}))},864:(t,e,i)=>{var s=i(7427),n="offsetlookup";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,t,e,i,r])}))},8268:(t,e,i)=>{var s=i(839),n="operation";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[t||n,e,i])}))},7190:(t,e,i)=>{var s=i(8533),n="parameter";t.exports=s.extends(n,(function(t,e,i,r,h,o,a,_,l,c){s.apply(this,[n,t,l,c]),this.value=i,this.type=e,this.byref=r,this.variadic=h,this.readonly=o,this.nullable=a,this.flags=_||0,this.attrGroups=[]}))},8519:(t,e,i)=>{var s=i(8276),n="parentreference",r=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.raw=t}));t.exports=r},8822:t=>{t.exports=function(t,e,i){this.line=t,this.column=e,this.offset=i}},4835:(t,e,i)=>{var s=i(8268),n="post";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.type=t,this.what=e}))},2056:(t,e,i)=>{var s=i(8268);t.exports=s.extends("pre",(function(t,e,i,n){s.apply(this,["pre",i,n]),this.type=t,this.what=e}))},4838:(t,e,i)=>{var s=i(839),n="print";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.expression=t}))},7869:(t,e,i)=>{var s=i(4628),n="program";t.exports=s.extends(n,(function(t,e,i,r,h,o){s.apply(this,[n,t,h,o]),this.errors=e,i&&(this.comments=i),r&&(this.tokens=r)}))},1908:(t,e,i)=>{var s=i(9672),n="property";t.exports=s.extends(n,(function(t,e,i,r,h,o,a,_){s.apply(this,[n,a,_]),this.name=t,this.value=e,this.readonly=i,this.nullable=r,this.type=h,this.attrGroups=o}))},170:(t,e,i)=>{var s=i(7427),n="propertylookup";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,t,e,i,r])}))},1091:(t,e,i)=>{var s=i(9672),n="propertystatement",r=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.properties=e,this.parseFlags(i)}));r.prototype.parseFlags=function(t){-1===t[0]?this.visibility="":null===t[0]?this.visibility=null:0===t[0]?this.visibility="public":1===t[0]?this.visibility="protected":2===t[0]&&(this.visibility="private"),this.isStatic=1===t[1]},t.exports=r},8276:(t,e,i)=>{var s=i(4065),n="reference",r=s.extends(n,(function(t,e,i){s.apply(this,[t||n,e,i])}));t.exports=r},1842:(t,e,i)=>{var s=i(839),n="retif";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.test=t,this.trueExpr=e,this.falseExpr=i}))},5739:(t,e,i)=>{var s=i(9672),n="return";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.expr=t}))},1274:(t,e,i)=>{var s=i(8276),n="selfreference",r=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.raw=t}));t.exports=r},4352:(t,e,i)=>{var s=i(839),n="silent";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.expr=t}))},9672:(t,e,i)=>{var s=i(4065),n="statement";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[t||n,e,i])}))},711:(t,e,i)=>{var s=i(9672),n="static";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.variables=t}))},1865:(t,e,i)=>{var s=i(7427),n="staticlookup";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,t,e,i,r])}))},1102:(t,e,i)=>{var s=i(8276),n="staticreference",r=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.raw=t}));t.exports=r},1231:(t,e,i)=>{var s=i(4065),n="staticvariable";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.variable=t,this.defaultValue=e}))},7472:(t,e,i)=>{var s=i(5514),n="string";t.exports=s.extends(n,(function(t,e,i,r,h,o){s.apply(this,[n,e,r,h,o]),this.unicode=i,this.isDoubleQuote=t}))},6133:(t,e,i)=>{var s=i(9672),n="switch";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.test=t,this.body=e,this.shortForm=i}))},1197:(t,e,i)=>{var s=i(9672),n="throw";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.what=t}))},6649:(t,e,i)=>{var s=i(8533),n="trait";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,t,i,r]),this.body=e}))},1837:(t,e,i)=>{var s=i(4065),n="traitalias";t.exports=s.extends(n,(function(t,e,i,r,h,o){s.apply(this,[n,h,o]),this.trait=t,this.method=e,this.as=i,this.visibility="",r&&(0===r[0]?this.visibility="public":1===r[0]?this.visibility="protected":2===r[0]&&(this.visibility="private"))}))},2277:(t,e,i)=>{var s=i(4065),n="traitprecedence";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.trait=t,this.method=e,this.instead=i}))},8010:(t,e,i)=>{var s=i(4065),n="traituse";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.traits=t,this.adaptations=e}))},7579:(t,e,i)=>{var s=i(9672);t.exports=s.extends("try",(function(t,e,i,n,r){s.apply(this,["try",n,r]),this.body=t,this.catches=e,this.always=i}))},3460:(t,e,i)=>{var s=i(8276),n="typereference",r=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.name=t,this.raw=e}));r.types=["int","float","string","bool","object","array","callable","iterable","void","static"],t.exports=r},2702:(t,e,i)=>{var s=i(8268),n="unary";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.type=t,this.what=e}))},514:(t,e,i)=>{var s=i(8533),n="uniontype";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,null,e,i]),this.types=t}))},5684:(t,e,i)=>{var s=i(9672),n="unset";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.variables=t}))},8019:(t,e,i)=>{var s=i(9672),n="usegroup";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.name=t,this.type=e,this.items=i}))},7721:(t,e,i)=>{var s=i(9672),n="useitem",r=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.name=t,this.alias=e,this.type=i}));r.TYPE_CONST="const",r.TYPE_FUNCTION="function",t.exports=r},4369:(t,e,i)=>{var s=i(839),n="variable";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.name=t,this.curly=e||!1}))},40:(t,e,i)=>{var s=i(839),n="variadic";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.what=t}))},4919:(t,e,i)=>{var s=i(4065),n="variadicplaceholder";t.exports=s.extends(n,(function(t,e){s.apply(this,[n,t,e])}))},7676:(t,e,i)=>{var s=i(9672),n="while";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.test=t,this.body=e,this.shortForm=i}))},2596:(t,e,i)=>{var s=i(839),n="yield";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.value=t,this.key=e}))},6744:(t,e,i)=>{var s=i(839),n="yieldfrom";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.value=t}))},5362:(t,e,i)=>{function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}var n=i(9108),r=i(7259),h=i(1906),o=i(8938);function a(t,e){for(var i=Object.keys(t),n=i.length;n--;){var r=i[n],h=t[r];null===h?delete e[r]:"function"==typeof h?e[r]=h.bind(e):Array.isArray(h)?e[r]=Array.isArray(e[r])?e[r].concat(h):h:"object"===s(h)?e[r]="object"===s(e[r])?a(h,e[r]):h:e[r]=h}return e}var _=function(t){if("function"==typeof this)return new this(t);if(this.tokens=h,this.lexer=new n(this),this.ast=new o,this.parser=new r(this.lexer,this.ast),t&&"object"===s(t)){if(t.parser&&(t.lexer||(t.lexer={}),t.parser.version)){if("string"==typeof t.parser.version){var e=t.parser.version.split(".");if(e=100*parseInt(e[0])+parseInt(e[1]),isNaN(e))throw new Error("Bad version number : "+t.parser.version);t.parser.version=e}else if("number"!=typeof t.parser.version)throw new Error("Expecting a number for version");if(t.parser.version<500||t.parser.version>900)throw new Error("Can only handle versions between 5.x to 8.x")}a(t,this),this.lexer.version=this.parser.version}},l=function(t){return"function"==typeof t.write?t.toString():t};_.create=function(t){return new _(t)},_.parseEval=function(t,e){return new _(e).parseEval(t)},_.prototype.parseEval=function(t){return this.lexer.mode_eval=!0,this.lexer.all_tokens=!1,t=l(t),this.parser.parse(t,"eval")},_.parseCode=function(t,e,i){return"object"!==s(e)||i||(i=e,e="unknown"),new _(i).parseCode(t,e)},_.prototype.parseCode=function(t,e){return this.lexer.mode_eval=!1,this.lexer.all_tokens=!1,t=l(t),this.parser.parse(t,e)},_.tokenGetAll=function(t,e){return new _(e).tokenGetAll(t)},_.prototype.tokenGetAll=function(t){this.lexer.mode_eval=!1,this.lexer.all_tokens=!0,t=l(t);var e=this.lexer.EOF,i=this.tokens.values;this.lexer.setInput(t);for(var s=this.lexer.lex()||e,n=[];s!=e;){var r=this.lexer.yytext;Object.prototype.hasOwnProperty.call(i,s)&&(r=[i[s],r,this.lexer.yylloc.first_line]),n.push(r),s=this.lexer.lex()||e}return n},t.exports=_,t.exports.tokens=h,t.exports.lexer=n,t.exports.AST=o,t.exports.parser=r,t.exports.combine=a,t.exports.Engine=_,t.exports.default=_},9108:(t,e,i)=>{function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}var n=function(t){this.engine=t,this.tok=this.engine.tokens.names,this.EOF=1,this.debug=!1,this.all_tokens=!0,this.comment_tokens=!1,this.mode_eval=!1,this.asp_tags=!1,this.short_tags=!1,this.version=803,this.yyprevcol=0,this.keywords={__class__:this.tok.T_CLASS_C,__trait__:this.tok.T_TRAIT_C,__function__:this.tok.T_FUNC_C,__method__:this.tok.T_METHOD_C,__line__:this.tok.T_LINE,__file__:this.tok.T_FILE,__dir__:this.tok.T_DIR,__namespace__:this.tok.T_NS_C,exit:this.tok.T_EXIT,die:this.tok.T_EXIT,function:this.tok.T_FUNCTION,const:this.tok.T_CONST,return:this.tok.T_RETURN,try:this.tok.T_TRY,catch:this.tok.T_CATCH,finally:this.tok.T_FINALLY,throw:this.tok.T_THROW,if:this.tok.T_IF,elseif:this.tok.T_ELSEIF,endif:this.tok.T_ENDIF,else:this.tok.T_ELSE,while:this.tok.T_WHILE,endwhile:this.tok.T_ENDWHILE,do:this.tok.T_DO,for:this.tok.T_FOR,endfor:this.tok.T_ENDFOR,foreach:this.tok.T_FOREACH,endforeach:this.tok.T_ENDFOREACH,declare:this.tok.T_DECLARE,enddeclare:this.tok.T_ENDDECLARE,instanceof:this.tok.T_INSTANCEOF,as:this.tok.T_AS,switch:this.tok.T_SWITCH,endswitch:this.tok.T_ENDSWITCH,case:this.tok.T_CASE,default:this.tok.T_DEFAULT,break:this.tok.T_BREAK,continue:this.tok.T_CONTINUE,goto:this.tok.T_GOTO,echo:this.tok.T_ECHO,print:this.tok.T_PRINT,class:this.tok.T_CLASS,interface:this.tok.T_INTERFACE,trait:this.tok.T_TRAIT,enum:this.tok.T_ENUM,extends:this.tok.T_EXTENDS,implements:this.tok.T_IMPLEMENTS,new:this.tok.T_NEW,clone:this.tok.T_CLONE,var:this.tok.T_VAR,eval:this.tok.T_EVAL,include:this.tok.T_INCLUDE,include_once:this.tok.T_INCLUDE_ONCE,require:this.tok.T_REQUIRE,require_once:this.tok.T_REQUIRE_ONCE,namespace:this.tok.T_NAMESPACE,use:this.tok.T_USE,insteadof:this.tok.T_INSTEADOF,global:this.tok.T_GLOBAL,isset:this.tok.T_ISSET,empty:this.tok.T_EMPTY,__halt_compiler:this.tok.T_HALT_COMPILER,static:this.tok.T_STATIC,abstract:this.tok.T_ABSTRACT,final:this.tok.T_FINAL,private:this.tok.T_PRIVATE,protected:this.tok.T_PROTECTED,public:this.tok.T_PUBLIC,unset:this.tok.T_UNSET,list:this.tok.T_LIST,array:this.tok.T_ARRAY,callable:this.tok.T_CALLABLE,or:this.tok.T_LOGICAL_OR,and:this.tok.T_LOGICAL_AND,xor:this.tok.T_LOGICAL_XOR,match:this.tok.T_MATCH,readonly:this.tok.T_READ_ONLY},this.castKeywords={int:this.tok.T_INT_CAST,integer:this.tok.T_INT_CAST,real:this.tok.T_DOUBLE_CAST,double:this.tok.T_DOUBLE_CAST,float:this.tok.T_DOUBLE_CAST,string:this.tok.T_STRING_CAST,binary:this.tok.T_STRING_CAST,array:this.tok.T_ARRAY_CAST,object:this.tok.T_OBJECT_CAST,bool:this.tok.T_BOOL_CAST,boolean:this.tok.T_BOOL_CAST,unset:this.tok.T_UNSET_CAST}};n.prototype.setInput=function(t){return this._input=t,this.size=t.length,this.yylineno=1,this.offset=0,this.yyprevcol=0,this.yytext="",this.yylloc={first_offset:0,first_line:1,first_column:0,prev_offset:0,prev_line:1,prev_column:0,last_line:1,last_column:0},this.tokens=[],this.version>703?this.keywords.fn=this.tok.T_FN:delete this.keywords.fn,this.done=this.offset>=this.size,!this.all_tokens&&this.mode_eval?(this.conditionStack=["INITIAL"],this.begin("ST_IN_SCRIPTING")):(this.conditionStack=[],this.begin("INITIAL")),this.heredoc_label={label:"",length:0,indentation:0,indentation_uses_spaces:!1,finished:!1,first_encaps_node:!1,toString:function(){this.label}},this},n.prototype.input=function(){var t=this._input[this.offset];return t?(this.yytext+=t,this.offset++,"\r"===t&&"\n"===this._input[this.offset]&&(this.yytext+="\n",this.offset++),"\n"===t||"\r"===t?(this.yylloc.last_line=++this.yylineno,this.yyprevcol=this.yylloc.last_column,this.yylloc.last_column=0):this.yylloc.last_column++,t):""},n.prototype.unput=function(t){if(1===t)this.offset--,"\n"===this._input[this.offset]&&"\r"===this._input[this.offset-1]&&(this.offset--,t++),"\r"===this._input[this.offset]||"\n"===this._input[this.offset]?(this.yylloc.last_line--,this.yylineno--,this.yylloc.last_column=this.yyprevcol):this.yylloc.last_column--,this.yytext=this.yytext.substring(0,this.yytext.length-t);else if(t>0)if(this.offset-=t,t<this.yytext.length){this.yytext=this.yytext.substring(0,this.yytext.length-t),this.yylloc.last_line=this.yylloc.first_line,this.yylloc.last_column=this.yyprevcol=this.yylloc.first_column;for(var e=0;e<this.yytext.length;e++){var i=this.yytext[e];"\r"===i?(i=this.yytext[++e],this.yyprevcol=this.yylloc.last_column,this.yylloc.last_line++,this.yylloc.last_column=0,"\n"!==i&&("\r"===i?this.yylloc.last_line++:this.yylloc.last_column++)):"\n"===i?(this.yyprevcol=this.yylloc.last_column,this.yylloc.last_line++,this.yylloc.last_column=0):this.yylloc.last_column++}this.yylineno=this.yylloc.last_line}else this.yytext="",this.yylloc.last_line=this.yylineno=this.yylloc.first_line,this.yylloc.last_column=this.yylloc.first_column;return this},n.prototype.tryMatch=function(t){return t===this.ahead(t.length)},n.prototype.tryMatchCaseless=function(t){return t===this.ahead(t.length).toLowerCase()},n.prototype.ahead=function(t){var e=this._input.substring(this.offset,this.offset+t);return"\r"===e[e.length-1]&&"\n"===this._input[this.offset+t+1]&&(e+="\n"),e},n.prototype.consume=function(t){for(var e=0;e<t;e++){var i=this._input[this.offset];if(!i)break;this.yytext+=i,this.offset++,"\r"===i&&"\n"===this._input[this.offset]&&(this.yytext+="\n",this.offset++,e++),"\n"===i||"\r"===i?(this.yylloc.last_line=++this.yylineno,this.yyprevcol=this.yylloc.last_column,this.yylloc.last_column=0):this.yylloc.last_column++}return this},n.prototype.getState=function(){return{yytext:this.yytext,offset:this.offset,yylineno:this.yylineno,yyprevcol:this.yyprevcol,yylloc:{first_offset:this.yylloc.first_offset,first_line:this.yylloc.first_line,first_column:this.yylloc.first_column,last_line:this.yylloc.last_line,last_column:this.yylloc.last_column},heredoc_label:this.heredoc_label}},n.prototype.setState=function(t){return this.yytext=t.yytext,this.offset=t.offset,this.yylineno=t.yylineno,this.yyprevcol=t.yyprevcol,this.yylloc=t.yylloc,t.heredoc_label&&(this.heredoc_label=t.heredoc_label),this},n.prototype.appendToken=function(t,e){return this.tokens.push([t,e]),this},n.prototype.lex=function(){this.yylloc.prev_offset=this.offset,this.yylloc.prev_line=this.yylloc.last_line,this.yylloc.prev_column=this.yylloc.last_column;var t=this.next()||this.lex();if(!this.all_tokens){for(;t===this.tok.T_WHITESPACE||!this.comment_tokens&&(t===this.tok.T_COMMENT||t===this.tok.T_DOC_COMMENT)||t===this.tok.T_OPEN_TAG;)t=this.next()||this.lex();if(t==this.tok.T_OPEN_TAG_WITH_ECHO)return this.tok.T_ECHO;if(t===this.tok.T_CLOSE_TAG)return";"}return this.yylloc.prev_offset||(this.yylloc.prev_offset=this.yylloc.first_offset,this.yylloc.prev_line=this.yylloc.first_line,this.yylloc.prev_column=this.yylloc.first_column),t},n.prototype.begin=function(t){if(this.conditionStack.push(t),this.curCondition=t,this.stateCb=this["match"+t],"function"!=typeof this.stateCb)throw new Error('Undefined condition state "'+t+'"');return this},n.prototype.popState=function(){var t=this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0];if(this.curCondition=this.conditionStack[this.conditionStack.length-1],this.stateCb=this["match"+this.curCondition],"function"!=typeof this.stateCb)throw new Error('Undefined condition state "'+this.curCondition+'"');return t},n.prototype.next=function(){var t;if(this._input||(this.done=!0),this.yylloc.first_offset=this.offset,this.yylloc.first_line=this.yylloc.last_line,this.yylloc.first_column=this.yylloc.last_column,this.yytext="",this.done)return this.yylloc.prev_offset=this.yylloc.first_offset,this.yylloc.prev_line=this.yylloc.first_line,this.yylloc.prev_column=this.yylloc.first_column,this.EOF;if(this.tokens.length>0?("object"===s((t=this.tokens.shift())[1])?this.setState(t[1]):this.consume(t[1]),t=t[0]):t=this.stateCb.apply(this,[]),this.offset>=this.size&&0===this.tokens.length&&(this.done=!0),this.debug){var e=t;e="number"==typeof e?this.engine.tokens.values[e]:'"'+e+'"';var i=new Error(e+"\tfrom "+this.yylloc.first_line+","+this.yylloc.first_column+"\t - to "+this.yylloc.last_line+","+this.yylloc.last_column+'\t"'+this.yytext+'"');console.error(i.stack)}return t},[i(9671),i(2429),i(3683),i(6545),i(3810),i(8510),i(4401),i(4349),i(8582)].forEach((function(t){for(var e in t)n.prototype[e]=t[e]})),t.exports=n},9671:t=>{t.exports={attributeIndex:0,attributeListDepth:{},matchST_ATTRIBUTE:function(){var t=this.input();if(this.is_WHITESPACE()){do{t=this.input()}while(this.is_WHITESPACE());return this.unput(1),null}switch(t){case"]":return 0===this.attributeListDepth[this.attributeIndex]?(delete this.attributeListDepth[this.attributeIndex],this.attributeIndex--,this.popState()):this.attributeListDepth[this.attributeIndex]--,"]";case"(":case")":case":":case"=":case"|":case"&":case"^":case"-":case"+":case"*":case"%":case"~":case"<":case">":case"!":case".":return this.consume_TOKEN();case"[":return this.attributeListDepth[this.attributeIndex]++,"[";case",":return",";case'"':return this.ST_DOUBLE_QUOTES();case"'":return this.T_CONSTANT_ENCAPSED_STRING();case"/":return"/"===this._input[this.offset]?this.T_COMMENT():"*"===this._input[this.offset]?(this.input(),this.T_DOC_COMMENT()):this.consume_TOKEN()}if(this.is_LABEL_START()||"\\"===t){for(;this.offset<this.size;){var e=this.input();if(!this.is_LABEL()&&"\\"!==e){e&&this.unput(1);break}}return this.T_STRING()}if(this.is_NUM())return this.consume_NUM();throw new Error('Bad terminal sequence "'.concat(t,'" at line ').concat(this.yylineno," (offset ").concat(this.offset,")"))}}},2429:t=>{t.exports={T_COMMENT:function(){for(;this.offset<this.size;){var t=this.input();if("\n"===t||"\r"===t)return this.tok.T_COMMENT;if("?"===t&&!this.aspTagMode&&">"===this._input[this.offset])return this.unput(1),this.tok.T_COMMENT;if("%"===t&&this.aspTagMode&&">"===this._input[this.offset])return this.unput(1),this.tok.T_COMMENT}return this.tok.T_COMMENT},T_DOC_COMMENT:function(){var t=this.input(),e=this.tok.T_COMMENT;if("*"===t){if(t=this.input(),this.is_WHITESPACE()&&(e=this.tok.T_DOC_COMMENT),"/"===t)return e;this.unput(1)}for(;this.offset<this.size;)if("*"===(t=this.input())&&"/"===this._input[this.offset]){this.input();break}return e}}},3683:t=>{t.exports={nextINITIAL:function(){return this.conditionStack.length>1&&"INITIAL"===this.conditionStack[this.conditionStack.length-1]?this.popState():this.begin("ST_IN_SCRIPTING"),this},matchINITIAL:function(){for(;this.offset<this.size;){var t=this.input();if("<"==t)if("?"==(t=this.ahead(1))){if(this.tryMatch("?=")){this.unput(1).appendToken(this.tok.T_OPEN_TAG_WITH_ECHO,3).nextINITIAL();break}if(this.tryMatchCaseless("?php")&&(" "===(t=this._input[this.offset+4])||"\t"===t||"\n"===t||"\r"===t)){this.unput(1).appendToken(this.tok.T_OPEN_TAG,6).nextINITIAL();break}if(this.short_tags){this.unput(1).appendToken(this.tok.T_OPEN_TAG,2).nextINITIAL();break}}else if(this.asp_tags&&"%"==t){if(this.tryMatch("%=")){this.aspTagMode=!0,this.unput(1).appendToken(this.tok.T_OPEN_TAG_WITH_ECHO,3).nextINITIAL();break}this.aspTagMode=!0,this.unput(1).appendToken(this.tok.T_OPEN_TAG,2).nextINITIAL();break}}return this.yytext.length>0&&this.tok.T_INLINE_HTML}}},6545:t=>{t.exports={consume_NUM:function(){var t=this.yytext[0],e="."===t;if("0"===t)if("x"===(t=this.input())||"X"===t){if("_"!==(t=this.input())&&this.is_HEX())return this.consume_HNUM();this.unput(t?2:1)}else if("b"===t||"B"===t){if("_"!==(t=this.input())&&"0"===t||"1"===t)return this.consume_BNUM();this.unput(t?2:1)}else if("o"===t||"O"===t){if("_"!==(t=this.input())&&this.is_OCTAL())return this.consume_ONUM();this.unput(t?2:1)}else this.is_NUM()||t&&this.unput(1);for(;this.offset<this.size;){var i=t;if("_"===(t=this.input())){if("_"===i){this.unput(2);break}if("."===i){this.unput(1);break}if("e"===i||"E"===i){this.unput(2);break}}else{if("."===t){if(e){this.unput(1);break}if("_"===i){this.unput(2);break}e=!0;continue}if("e"===t||"E"===t){if("_"===i){this.unput(1);break}var s=2;if("+"!==(t=this.input())&&"-"!==t||(s=3,t=this.input()),this.is_NUM_START())return this.consume_LNUM(),this.tok.T_DNUMBER;this.unput(t?s:s-1);break}}if(!this.is_NUM()){t&&this.unput(1);break}}return e?this.tok.T_DNUMBER:this.yytext.length<18||this.yytext.length<19||19==this.yytext.length&&this.yytext<"9223372036854775808"?this.tok.T_LNUMBER:this.tok.T_DNUMBER},consume_HNUM:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_HEX()){t&&this.unput(1);break}}return this.tok.T_LNUMBER},consume_LNUM:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_NUM()){t&&this.unput(1);break}}return this.tok.T_LNUMBER},consume_BNUM:function(){for(var t;this.offset<this.size;)if("0"!==(t=this.input())&&"1"!==t&&"_"!==t){t&&this.unput(1);break}return this.tok.T_LNUMBER},consume_ONUM:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_OCTAL()){t&&this.unput(1);break}}return this.tok.T_LNUMBER}}},3810:t=>{t.exports={matchST_LOOKING_FOR_PROPERTY:function(){var t=this.input();if("-"===t){if(">"===(t=this.input()))return this.tok.T_OBJECT_OPERATOR;t&&this.unput(1)}else{if(this.is_WHITESPACE())return this.tok.T_WHITESPACE;if(this.is_LABEL_START())return this.consume_LABEL(),this.popState(),this.tok.T_STRING}return this.popState(),t&&this.unput(1),!1},matchST_LOOKING_FOR_VARNAME:function(){var t=this.input();if(this.popState(),this.begin("ST_IN_SCRIPTING"),this.is_LABEL_START()){if(this.consume_LABEL(),"["===(t=this.input())||"}"===t)return this.unput(1),this.tok.T_STRING_VARNAME;this.unput(this.yytext.length)}else t&&this.unput(1);return!1},matchST_VAR_OFFSET:function(){var t=this.input();if(this.is_NUM_START())return this.consume_NUM(),this.tok.T_NUM_STRING;if("]"===t)return this.popState(),"]";if("$"===t){if(this.input(),this.is_LABEL_START())return this.consume_LABEL(),this.tok.T_VARIABLE;throw new Error("Unexpected terminal")}if(this.is_LABEL_START())return this.consume_LABEL(),this.tok.T_STRING;if(this.is_WHITESPACE()||"\\"===t||"'"===t||"#"===t)return this.tok.T_ENCAPSED_AND_WHITESPACE;if("["===t||"{"===t||"}"===t||'"'===t||"`"===t||this.is_TOKEN())return t;throw new Error("Unexpected terminal")}}},8510:t=>{t.exports={matchST_IN_SCRIPTING:function(){var t=this.input();switch(t){case" ":case"\t":case"\n":case"\r":case"\r\n":return this.T_WHITESPACE();case"#":return this.version>=800&&"["===this._input[this.offset]?(this.input(),this.attributeListDepth[++this.attributeIndex]=0,this.begin("ST_ATTRIBUTE"),this.tok.T_ATTRIBUTE):this.T_COMMENT();case"/":return"/"===this._input[this.offset]?this.T_COMMENT():"*"===this._input[this.offset]?(this.input(),this.T_DOC_COMMENT()):this.consume_TOKEN();case"'":return this.T_CONSTANT_ENCAPSED_STRING();case'"':return this.ST_DOUBLE_QUOTES();case"`":return this.begin("ST_BACKQUOTE"),"`";case"?":if(!this.aspTagMode&&this.tryMatch(">")){this.input();var e=this._input[this.offset];return"\n"!==e&&"\r"!==e||this.input(),this.conditionStack.length>1&&this.begin("INITIAL"),this.tok.T_CLOSE_TAG}return this.consume_TOKEN();case"%":return this.aspTagMode&&">"===this._input[this.offset]?(this.input(),"\n"!==(t=this._input[this.offset])&&"\r"!==t||this.input(),this.aspTagMode=!1,this.conditionStack.length>1&&this.begin("INITIAL"),this.tok.T_CLOSE_TAG):this.consume_TOKEN();case"{":return this.begin("ST_IN_SCRIPTING"),"{";case"}":return this.conditionStack.length>2&&this.popState(),"}";default:if("."===t){if(t=this.input(),this.is_NUM_START())return this.consume_NUM();t&&this.unput(1)}if(this.is_NUM_START())return this.consume_NUM();if(this.is_LABEL_START())return this.consume_LABEL().T_STRING();if(this.is_TOKEN())return this.consume_TOKEN()}throw new Error('Bad terminal sequence "'+t+'" at line '+this.yylineno+" (offset "+this.offset+")")},T_WHITESPACE:function(){for(;this.offset<this.size;){var t=this.input();if(" "!==t&&"\t"!==t&&"\n"!==t&&"\r"!==t){t&&this.unput(1);break}}return this.tok.T_WHITESPACE}}},4401:t=>{var e=["\n","\r"],i=["\n","\r",";"],s=i.concat(["\t"," ",",","]",")","/","=","!"]);t.exports={T_CONSTANT_ENCAPSED_STRING:function(){for(var t;this.offset<this.size;)if("\\"==(t=this.input()))this.input();else if("'"==t)break;return this.tok.T_CONSTANT_ENCAPSED_STRING},is_HEREDOC:function(){var t=this.offset;if("<"===this._input[this.offset-1]&&"<"===this._input[this.offset]&&"<"===this._input[this.offset+1]){if(this.offset+=3,this.is_TABSPACE())for(;this.offset<this.size&&(this.offset++,this.is_TABSPACE()););var i=this._input[this.offset-1];if("'"===i||'"'===i?this.offset++:i=null,this.is_LABEL_START()){for(var s=this.offset-1;this.offset<this.size&&(this.offset++,this.is_LABEL()););var n=this._input.substring(s,this.offset-1);if((!i||i===this._input[this.offset-1])&&(i&&this.offset++,e.includes(this._input[this.offset-1])))return this.heredoc_label.label=n,this.heredoc_label.length=n.length,this.heredoc_label.finished=!1,s=this.offset-t,this.offset=t,this.consume(s),"'"===i?this.begin("ST_NOWDOC"):this.begin("ST_HEREDOC"),this.prematch_ENDOFDOC(),this.tok.T_START_HEREDOC}}return this.offset=t,!1},ST_DOUBLE_QUOTES:function(){for(var t;this.offset<this.size;)if("\\"==(t=this.input()))this.input();else{if('"'==t)break;if("$"==t){if("{"==(t=this.input())||this.is_LABEL_START()){this.unput(2);break}t&&this.unput(1)}else if("{"==t){if("$"==(t=this.input())){this.unput(2);break}t&&this.unput(1)}}if('"'==t)return this.tok.T_CONSTANT_ENCAPSED_STRING;var e=1;return"b"!==this.yytext[0]&&"B"!==this.yytext[0]||(e=2),this.yytext.length>2&&this.appendToken(this.tok.T_ENCAPSED_AND_WHITESPACE,this.yytext.length-e),this.unput(this.yytext.length-e),this.begin("ST_DOUBLE_QUOTES"),this.yytext},isDOC_MATCH:function(t,n){var r=this._input[t-2];if(!e.includes(r))return!1;var h=!1,o=!1,a=0,_=this._input[t-1];if(this.version>=703){for(;"\t"===_||" "===_;)" "===_?h=!0:"\t"===_&&(o=!0),_=this._input[t+a],a++;if(t+=a,e.includes(this._input[t-1]))return!1}if(this._input.substring(t-1,t-1+this.heredoc_label.length)===this.heredoc_label.label){var l=this._input[t-1+this.heredoc_label.length];if((this.version>=703?s:i).includes(l)){if(n){if(this.consume(a),h&&o)throw new Error("Parse error:  mixing spaces and tabs in ending marker at line "+this.yylineno+" (offset "+this.offset+")")}else this.heredoc_label.indentation=a,this.heredoc_label.indentation_uses_spaces=h,this.heredoc_label.first_encaps_node=!0;return!0}}return!1},prematch_ENDOFDOC:function(){this.heredoc_label.indentation_uses_spaces=!1,this.heredoc_label.indentation=0,this.heredoc_label.first_encaps_node=!0;for(var t=this.offset+1;t<this._input.length;){if(this.isDOC_MATCH(t,!1))return;if(!e.includes(this._input[t-1]))for(;!e.includes(this._input[t++])&&t<this._input.length;);t++}},matchST_NOWDOC:function(){if(this.isDOC_MATCH(this.offset,!0))return this.consume(this.heredoc_label.length),this.popState(),this.tok.T_END_HEREDOC;for(var t=this._input[this.offset-1];this.offset<this.size;)if(e.includes(t)){if(t=this.input(),this.isDOC_MATCH(this.offset,!0))return this.unput(1).popState(),this.appendToken(this.tok.T_END_HEREDOC,this.heredoc_label.length),this.tok.T_ENCAPSED_AND_WHITESPACE}else t=this.input();return this.tok.T_ENCAPSED_AND_WHITESPACE},matchST_HEREDOC:function(){var t=this.input();if(this.isDOC_MATCH(this.offset,!0))return this.consume(this.heredoc_label.length-1),this.popState(),this.tok.T_END_HEREDOC;for(;this.offset<this.size;)if("\\"===t&&(t=this.input(),e.includes(t)||(t=this.input())),e.includes(t)){if(t=this.input(),this.isDOC_MATCH(this.offset,!0))return this.unput(1).popState(),this.appendToken(this.tok.T_END_HEREDOC,this.heredoc_label.length),this.tok.T_ENCAPSED_AND_WHITESPACE}else if("$"===t){if("{"===(t=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),this.yytext.length>2?(this.appendToken(this.tok.T_DOLLAR_OPEN_CURLY_BRACES,2),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START()){var i=this.offset,s=this.consume_VARIABLE();return this.yytext.length>this.offset-i+2?(this.appendToken(s,this.offset-i+2),this.unput(this.offset-i+2),this.tok.T_ENCAPSED_AND_WHITESPACE):s}}else if("{"===t){if("$"===(t=this.input()))return this.begin("ST_IN_SCRIPTING"),this.yytext.length>2?(this.appendToken(this.tok.T_CURLY_OPEN,1),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):(this.unput(1),this.tok.T_CURLY_OPEN)}else t=this.input();return this.tok.T_ENCAPSED_AND_WHITESPACE},consume_VARIABLE:function(){this.consume_LABEL();var t=this.input();if("["==t)return this.unput(1),this.begin("ST_VAR_OFFSET"),this.tok.T_VARIABLE;if("-"===t){if(">"===this.input())return this.input(),this.is_LABEL_START()&&this.begin("ST_LOOKING_FOR_PROPERTY"),this.unput(3),this.tok.T_VARIABLE;this.unput(2)}else t&&this.unput(1);return this.tok.T_VARIABLE},matchST_BACKQUOTE:function(){var t=this.input();if("$"===t){if("{"===(t=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START())return this.consume_VARIABLE()}else if("{"===t){if("$"===this._input[this.offset])return this.begin("ST_IN_SCRIPTING"),this.tok.T_CURLY_OPEN}else if("`"===t)return this.popState(),"`";for(;this.offset<this.size;){if("\\"===t)this.input();else{if("`"===t){this.unput(1),this.popState(),this.appendToken("`",1);break}if("$"===t){if("{"===(t=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),this.yytext.length>2?(this.appendToken(this.tok.T_DOLLAR_OPEN_CURLY_BRACES,2),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START()){var e=this.offset,i=this.consume_VARIABLE();return this.yytext.length>this.offset-e+2?(this.appendToken(i,this.offset-e+2),this.unput(this.offset-e+2),this.tok.T_ENCAPSED_AND_WHITESPACE):i}continue}if("{"===t){if("$"===(t=this.input()))return this.begin("ST_IN_SCRIPTING"),this.yytext.length>2?(this.appendToken(this.tok.T_CURLY_OPEN,1),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):(this.unput(1),this.tok.T_CURLY_OPEN);continue}}t=this.input()}return this.tok.T_ENCAPSED_AND_WHITESPACE},matchST_DOUBLE_QUOTES:function(){var t=this.input();if("$"===t){if("{"===(t=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START())return this.consume_VARIABLE()}else if("{"===t){if("$"===this._input[this.offset])return this.begin("ST_IN_SCRIPTING"),this.tok.T_CURLY_OPEN}else if('"'===t)return this.popState(),'"';for(;this.offset<this.size;){if("\\"===t)this.input();else{if('"'===t){this.unput(1),this.popState(),this.appendToken('"',1);break}if("$"===t){if("{"===(t=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),this.yytext.length>2?(this.appendToken(this.tok.T_DOLLAR_OPEN_CURLY_BRACES,2),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START()){var e=this.offset,i=this.consume_VARIABLE();return this.yytext.length>this.offset-e+2?(this.appendToken(i,this.offset-e+2),this.unput(this.offset-e+2),this.tok.T_ENCAPSED_AND_WHITESPACE):i}t&&this.unput(1)}else if("{"===t){if("$"===(t=this.input()))return this.begin("ST_IN_SCRIPTING"),this.yytext.length>2?(this.appendToken(this.tok.T_CURLY_OPEN,1),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):(this.unput(1),this.tok.T_CURLY_OPEN);t&&this.unput(1)}}t=this.input()}return this.tok.T_ENCAPSED_AND_WHITESPACE}}},4349:t=>{t.exports={T_STRING:function(){var t=this.yytext.toLowerCase(),e=this.keywords[t];if("number"!=typeof e)if("yield"===t)this.version>=700&&this.tryMatch(" from")?(this.consume(5),e=this.tok.T_YIELD_FROM):e=this.tok.T_YIELD;else if(e=this.tok.T_STRING,"b"===t||"B"===t){var i=this.input();if('"'===i)return this.ST_DOUBLE_QUOTES();if("'"===i)return this.T_CONSTANT_ENCAPSED_STRING();i&&this.unput(1)}if(e===this.tok.T_ENUM){if(this.version<801)return this.tok.T_STRING;for(var s=this.offset,n=this.input();" "==n;)n=this.input();var r=!1;if(this.is_LABEL_START()){for(;this.is_LABEL();)n+=this.input();var h=n.slice(0,-1).toLowerCase();r="extends"!==h&&"implements"!==h}return this.unput(this.offset-s),r?this.tok.T_ENUM:this.tok.T_STRING}if(this.offset<this.size&&e!==this.tok.T_YIELD_FROM){var o=this.input();if("\\"===o){e="namespace"===t?this.tok.T_NAME_RELATIVE:this.tok.T_NAME_QUALIFIED;do{if("{"===this._input[this.offset]){this.input();break}this.consume_LABEL(),o=this.input()}while("\\"===o)}o&&this.unput(1)}return e},consume_TOKEN:function(){var t=this._input[this.offset-1],e=this.tokenTerminals[t];return e?e.apply(this,[]):this.yytext},tokenTerminals:{$:function(){return this.offset++,this.is_LABEL_START()?(this.offset--,this.consume_LABEL(),this.tok.T_VARIABLE):(this.offset--,"$")},"-":function(){var t=this._input[this.offset];return">"===t?(this.begin("ST_LOOKING_FOR_PROPERTY").input(),this.tok.T_OBJECT_OPERATOR):"-"===t?(this.input(),this.tok.T_DEC):"="===t?(this.input(),this.tok.T_MINUS_EQUAL):"-"},"\\":function(){if(this.offset<this.size){if(this.input(),this.is_LABEL_START()){var t;do{if("{"===this._input[this.offset]){this.input();break}this.consume_LABEL(),t=this.input()}while("\\"===t);return this.unput(1),this.tok.T_NAME_FULLY_QUALIFIED}this.unput(1)}return this.tok.T_NS_SEPARATOR},"/":function(){return"="===this._input[this.offset]?(this.input(),this.tok.T_DIV_EQUAL):"/"},":":function(){return":"===this._input[this.offset]?(this.input(),this.tok.T_DOUBLE_COLON):":"},"(":function(){var t=this.offset;if(this.input(),this.is_TABSPACE()&&this.consume_TABSPACE().input(),this.is_LABEL_START()){var e=this.yytext.length;this.consume_LABEL();var i=this.yytext.substring(e-1).toLowerCase(),s=this.castKeywords[i];if("number"==typeof s&&(this.input(),this.is_TABSPACE()&&this.consume_TABSPACE().input(),")"===this._input[this.offset-1]))return s}return this.unput(this.offset-t),"("},"=":function(){var t=this._input[this.offset];return">"===t?(this.input(),this.tok.T_DOUBLE_ARROW):"="===t?"="===this._input[this.offset+1]?(this.consume(2),this.tok.T_IS_IDENTICAL):(this.input(),this.tok.T_IS_EQUAL):"="},"+":function(){var t=this._input[this.offset];return"+"===t?(this.input(),this.tok.T_INC):"="===t?(this.input(),this.tok.T_PLUS_EQUAL):"+"},"!":function(){return"="===this._input[this.offset]?"="===this._input[this.offset+1]?(this.consume(2),this.tok.T_IS_NOT_IDENTICAL):(this.input(),this.tok.T_IS_NOT_EQUAL):"!"},"?":function(){return this.version>=700&&"?"===this._input[this.offset]?this.version>=704&&"="===this._input[this.offset+1]?(this.consume(2),this.tok.T_COALESCE_EQUAL):(this.input(),this.tok.T_COALESCE):this.version>=800&&"-"===this._input[this.offset]&&">"===this._input[this.offset+1]?(this.consume(1),this.begin("ST_LOOKING_FOR_PROPERTY").input(),this.tok.T_NULLSAFE_OBJECT_OPERATOR):"?"},"<":function(){var t=this._input[this.offset];return"<"===t?"="===(t=this._input[this.offset+1])?(this.consume(2),this.tok.T_SL_EQUAL):"<"===t&&this.is_HEREDOC()?this.tok.T_START_HEREDOC:(this.input(),this.tok.T_SL):"="===t?(this.input(),this.version>=700&&">"===this._input[this.offset]?(this.input(),this.tok.T_SPACESHIP):this.tok.T_IS_SMALLER_OR_EQUAL):">"===t?(this.input(),this.tok.T_IS_NOT_EQUAL):"<"},">":function(){var t=this._input[this.offset];return"="===t?(this.input(),this.tok.T_IS_GREATER_OR_EQUAL):">"===t?"="===(t=this._input[this.offset+1])?(this.consume(2),this.tok.T_SR_EQUAL):(this.input(),this.tok.T_SR):">"},"*":function(){var t=this._input[this.offset];return"="===t?(this.input(),this.tok.T_MUL_EQUAL):"*"===t?(this.input(),"="===this._input[this.offset]?(this.input(),this.tok.T_POW_EQUAL):this.tok.T_POW):"*"},".":function(){var t=this._input[this.offset];return"="===t?(this.input(),this.tok.T_CONCAT_EQUAL):"."===t&&"."===this._input[this.offset+1]?(this.consume(2),this.tok.T_ELLIPSIS):"."},"%":function(){return"="===this._input[this.offset]?(this.input(),this.tok.T_MOD_EQUAL):"%"},"&":function(){var t=this._input[this.offset];return"="===t?(this.input(),this.tok.T_AND_EQUAL):"&"===t?(this.input(),this.tok.T_BOOLEAN_AND):"&"},"|":function(){var t=this._input[this.offset];return"="===t?(this.input(),this.tok.T_OR_EQUAL):"|"===t?(this.input(),this.tok.T_BOOLEAN_OR):"|"},"^":function(){return"="===this._input[this.offset]?(this.input(),this.tok.T_XOR_EQUAL):"^"}}}},8582:t=>{t.exports={is_NUM:function(){var t=this._input.charCodeAt(this.offset-1);return t>47&&t<58||95===t},is_NUM_START:function(){var t=this._input.charCodeAt(this.offset-1);return t>47&&t<58},is_LABEL:function(){var t=this._input.charCodeAt(this.offset-1);return t>96&&t<123||t>64&&t<91||95===t||t>47&&t<58||t>126},is_LABEL_START:function(){var t=this._input.charCodeAt(this.offset-1);return t>64&&t<91||t>96&&t<123||95===t||t>126},consume_LABEL:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_LABEL()){t&&this.unput(1);break}}return this},is_TOKEN:function(){var t=this._input[this.offset-1];return-1!==";:,.\\[]()|^&+-/*=%!~$<>?@".indexOf(t)},is_WHITESPACE:function(){var t=this._input[this.offset-1];return" "===t||"\t"===t||"\n"===t||"\r"===t},is_TABSPACE:function(){var t=this._input[this.offset-1];return" "===t||"\t"===t},consume_TABSPACE:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_TABSPACE()){t&&this.unput(1);break}}return this},is_HEX:function(){var t=this._input.charCodeAt(this.offset-1);return t>47&&t<58||t>64&&t<71||t>96&&t<103||95===t},is_OCTAL:function(){var t=this._input.charCodeAt(this.offset-1);return t>47&&t<56||95===t}}},7259:(t,e,i)=>{var s=i(8822);function n(t){return"."!=t&&","!=t&&!isNaN(parseFloat(t))&&isFinite(t)}var r=function(t,e){this.lexer=t,this.ast=e,this.tok=t.tok,this.EOF=t.EOF,this.token=null,this.prev=null,this.debug=!1,this.version=803,this.extractDoc=!1,this.extractTokens=!1,this.suppressErrors=!1;var i=function(t){return[t,null]};this.entries={IDENTIFIER:new Map([this.tok.T_ABSTRACT,this.tok.T_ARRAY,this.tok.T_AS,this.tok.T_BREAK,this.tok.T_CALLABLE,this.tok.T_CASE,this.tok.T_CATCH,this.tok.T_CLASS,this.tok.T_CLASS_C,this.tok.T_CLONE,this.tok.T_CONST,this.tok.T_CONTINUE,this.tok.T_DECLARE,this.tok.T_DEFAULT,this.tok.T_DIR,this.tok.T_DO,this.tok.T_ECHO,this.tok.T_ELSE,this.tok.T_ELSEIF,this.tok.T_EMPTY,this.tok.T_ENDDECLARE,this.tok.T_ENDFOR,this.tok.T_ENDFOREACH,this.tok.T_ENDIF,this.tok.T_ENDSWITCH,this.tok.T_ENDWHILE,this.tok.T_ENUM,this.tok.T_EVAL,this.tok.T_EXIT,this.tok.T_EXTENDS,this.tok.T_FILE,this.tok.T_FINAL,this.tok.T_FINALLY,this.tok.T_FN,this.tok.T_FOR,this.tok.T_FOREACH,this.tok.T_FUNC_C,this.tok.T_FUNCTION,this.tok.T_GLOBAL,this.tok.T_GOTO,this.tok.T_IF,this.tok.T_IMPLEMENTS,this.tok.T_INCLUDE,this.tok.T_INCLUDE_ONCE,this.tok.T_INSTANCEOF,this.tok.T_INSTEADOF,this.tok.T_INTERFACE,this.tok.T_ISSET,this.tok.T_LINE,this.tok.T_LIST,this.tok.T_LOGICAL_AND,this.tok.T_LOGICAL_OR,this.tok.T_LOGICAL_XOR,this.tok.T_MATCH,this.tok.T_METHOD_C,this.tok.T_NAMESPACE,this.tok.T_NEW,this.tok.T_NS_C,this.tok.T_PRINT,this.tok.T_PRIVATE,this.tok.T_PROTECTED,this.tok.T_PUBLIC,this.tok.T_READ_ONLY,this.tok.T_REQUIRE,this.tok.T_REQUIRE_ONCE,this.tok.T_RETURN,this.tok.T_STATIC,this.tok.T_SWITCH,this.tok.T_THROW,this.tok.T_TRAIT,this.tok.T_TRY,this.tok.T_UNSET,this.tok.T_USE,this.tok.T_VAR,this.tok.T_WHILE,this.tok.T_YIELD].map(i)),VARIABLE:new Map([this.tok.T_VARIABLE,"$","&",this.tok.T_STRING,this.tok.T_NAME_RELATIVE,this.tok.T_NAME_QUALIFIED,this.tok.T_NAME_FULLY_QUALIFIED,this.tok.T_NAMESPACE,this.tok.T_STATIC].map(i)),SCALAR:new Map([this.tok.T_CONSTANT_ENCAPSED_STRING,this.tok.T_START_HEREDOC,this.tok.T_LNUMBER,this.tok.T_DNUMBER,this.tok.T_ARRAY,"[",this.tok.T_CLASS_C,this.tok.T_TRAIT_C,this.tok.T_FUNC_C,this.tok.T_METHOD_C,this.tok.T_LINE,this.tok.T_FILE,this.tok.T_DIR,this.tok.T_NS_C,'"','b"','B"',"-",this.tok.T_NS_SEPARATOR].map(i)),T_MAGIC_CONST:new Map([this.tok.T_CLASS_C,this.tok.T_TRAIT_C,this.tok.T_FUNC_C,this.tok.T_METHOD_C,this.tok.T_LINE,this.tok.T_FILE,this.tok.T_DIR,this.tok.T_NS_C].map(i)),T_MEMBER_FLAGS:new Map([this.tok.T_PUBLIC,this.tok.T_PRIVATE,this.tok.T_PROTECTED,this.tok.T_STATIC,this.tok.T_ABSTRACT,this.tok.T_FINAL].map(i)),EOS:new Map([";",this.EOF,this.tok.T_INLINE_HTML].map(i)),EXPR:new Map(["@","-","+","!","~","(","`",this.tok.T_LIST,this.tok.T_CLONE,this.tok.T_INC,this.tok.T_DEC,this.tok.T_NEW,this.tok.T_ISSET,this.tok.T_EMPTY,this.tok.T_MATCH,this.tok.T_INCLUDE,this.tok.T_INCLUDE_ONCE,this.tok.T_REQUIRE,this.tok.T_REQUIRE_ONCE,this.tok.T_EVAL,this.tok.T_INT_CAST,this.tok.T_DOUBLE_CAST,this.tok.T_STRING_CAST,this.tok.T_ARRAY_CAST,this.tok.T_OBJECT_CAST,this.tok.T_BOOL_CAST,this.tok.T_UNSET_CAST,this.tok.T_EXIT,this.tok.T_PRINT,this.tok.T_YIELD,this.tok.T_STATIC,this.tok.T_FUNCTION,this.tok.T_FN,this.tok.T_VARIABLE,"$",this.tok.T_NS_SEPARATOR,this.tok.T_STRING,this.tok.T_NAME_RELATIVE,this.tok.T_NAME_QUALIFIED,this.tok.T_NAME_FULLY_QUALIFIED,this.tok.T_STRING,this.tok.T_CONSTANT_ENCAPSED_STRING,this.tok.T_START_HEREDOC,this.tok.T_LNUMBER,this.tok.T_DNUMBER,this.tok.T_ARRAY,"[",this.tok.T_CLASS_C,this.tok.T_TRAIT_C,this.tok.T_FUNC_C,this.tok.T_METHOD_C,this.tok.T_LINE,this.tok.T_FILE,this.tok.T_DIR,this.tok.T_NS_C,'"','b"','B"',"-",this.tok.T_NS_SEPARATOR].map(i))}};r.prototype.getTokenName=function(t){return n(t)?t==this.EOF?"the end of file (EOF)":this.lexer.engine.tokens.values[t]:"'"+t+"'"},r.prototype.parse=function(t,e){this._errors=[],this.filename=e||"eval",this.currentNamespace=[""],this.extractDoc?this._docs=[]:this._docs=null,this.extractTokens?this._tokens=[]:this._tokens=null,this._docIndex=0,this._lastNode=null,this.lexer.setInput(t),this.lexer.all_tokens=this.extractTokens,this.lexer.comment_tokens=this.extractDoc,this.length=this.lexer._input.length,this.innerList=!1,this.innerListForm=!1;var i=this.node("program"),s=[];for(this.next();this.token!=this.EOF;)s.push(this.read_start());0===s.length&&this.extractDoc&&this._docs.length>this._docIndex&&s.push(this.node("noop")()),this.prev=[this.lexer.yylloc.last_line,this.lexer.yylloc.last_column,this.lexer.offset];var n=i(s,this._errors,this._docs,this._tokens);if(this.debug){var r=this.ast.checkNodes();if(r.length>0)throw r.forEach((function(t){t.position&&console.log("Node at line "+t.position.line+", column "+t.position.column),console.log(t.stack.join("\n"))})),new Error("Some nodes are not closed")}return n},r.prototype.raiseError=function(t,e,i,s){if(t+=" on line "+this.lexer.yylloc.first_line,!this.suppressErrors){var n=new SyntaxError(t,this.filename,this.lexer.yylloc.first_line);throw n.lineNumber=this.lexer.yylloc.first_line,n.fileName=this.filename,n.columnNumber=this.lexer.yylloc.first_column,n}var r=this.ast.prepare("error",null,this)(t,s,this.lexer.yylloc.first_line,i);return this._errors.push(r),r},r.prototype.error=function(t){var e="Parse Error : syntax error",i=this.getTokenName(this.token),s="";if(this.token!==this.EOF){if(n(this.token)){var r=this.text();r.length>10&&(r=r.substring(0,7)+"..."),i="'"+r+"' ("+i+")"}e+=", unexpected "+i}return t&&!Array.isArray(t)&&((n(t)||1===t.length)&&(s=", expecting "+this.getTokenName(t)),e+=s),this.raiseError(e,s,t,i)},r.prototype.position=function(){return new s(this.lexer.yylloc.first_line,this.lexer.yylloc.first_column,this.lexer.yylloc.first_offset)},r.prototype.node=function(t){if(this.extractDoc){var e=null;this._docIndex<this._docs.length&&(e=this._docs.slice(this._docIndex),this._docIndex=this._docs.length,this.debug&&(console.log(new Error("Append docs on "+t)),console.log(e)));var i=this.ast.prepare(t,e,this);return i.postBuild=function(t){if(this._docIndex<this._docs.length)if(this._lastNode){for(var e=this.prev[2],i=this._docIndex;i<this._docs.length&&!(this._docs[i].offset>e);i++);i>this._docIndex&&(this._lastNode.setTrailingComments(this._docs.slice(this._docIndex,i)),this._docIndex=i)}else this.token===this.EOF&&(t.setTrailingComments(this._docs.slice(this._docIndex)),this._docIndex=this._docs.length);this._lastNode=t}.bind(this),i}return this.ast.prepare(t,null,this)},r.prototype.expectEndOfStatement=function(t){if(";"===this.token)t&&";"===this.lexer.yytext&&t.includeToken(this);else if(this.token!==this.tok.T_INLINE_HTML&&this.token!==this.EOF)return this.error(";"),!1;return this.next(),!0};var h=["parser.next","parser.node","parser.showlog"];r.prototype.showlog=function(){for(var t,e=(new Error).stack.split("\n"),i=2;i<e.length;i++){t=e[i].trim();for(var s=!1,n=0;n<h.length;n++)if(t.substring(3,3+h[n].length)===h[n]){s=!0;break}if(!s)break}return console.log("Line "+this.lexer.yylloc.first_line+" : "+this.getTokenName(this.token)+">"+this.lexer.yytext+"< @--\x3e"+t),this},r.prototype.expect=function(t){if(Array.isArray(t)){if(-1===t.indexOf(this.token))return this.error(t),!1}else if(this.token!=t)return this.error(t),!1;return!0},r.prototype.text=function(){return this.lexer.yytext},r.prototype.next=function(){if(";"===this.token&&";"!==this.lexer.yytext||(this.prev=[this.lexer.yylloc.last_line,this.lexer.yylloc.last_column,this.lexer.offset]),this.lex(),this.debug&&this.showlog(),this.extractDoc)for(;this.token===this.tok.T_COMMENT||this.token===this.tok.T_DOC_COMMENT;)this.token===this.tok.T_COMMENT?this._docs.push(this.read_comment()):this._docs.push(this.read_doc_comment());return this},r.prototype.peek=function(){var t=this.lexer.getState(),e=this.lexer.lex();return this.lexer.setState(t),e},r.prototype.lex=function(){if(this.extractTokens)do{if(this.token=this.lexer.lex()||this.EOF,this.token===this.EOF)return this;var t=this.lexer.yytext;if(t=Object.prototype.hasOwnProperty.call(this.lexer.engine.tokens.values,this.token)?[this.lexer.engine.tokens.values[this.token],t,this.lexer.yylloc.first_line,this.lexer.yylloc.first_offset,this.lexer.offset]:[null,t,this.lexer.yylloc.first_line,this.lexer.yylloc.first_offset,this.lexer.offset],this._tokens.push(t),this.token===this.tok.T_CLOSE_TAG)return this.token=";",this;if(this.token===this.tok.T_OPEN_TAG_WITH_ECHO)return this.token=this.tok.T_ECHO,this}while(this.token===this.tok.T_WHITESPACE||!this.extractDoc&&(this.token===this.tok.T_COMMENT||this.token===this.tok.T_DOC_COMMENT)||this.token===this.tok.T_OPEN_TAG);else this.token=this.lexer.lex()||this.EOF;return this},r.prototype.is=function(t){return Array.isArray(t)?-1!==t.indexOf(this.token):this.entries[t].has(this.token)},[i(5525),i(7072),i(3997),i(6477),i(979),i(8214),i(9461),i(5931),i(9147),i(9219),i(7170),i(6261),i(2478),i(77),i(6077),i(1130)].forEach((function(t){for(var e in t){if(Object.prototype.hasOwnProperty.call(r.prototype,e))throw new Error("Function "+e+" is already defined - collision");r.prototype[e]=t[e]}})),t.exports=r},5525:t=>{t.exports={read_array:function(){var t=null,e=!1,i=this.node("array");this.token===this.tok.T_ARRAY?(this.next().expect("("),t=")"):(e=!0,t="]");var s=[];return this.next().token!==t&&(s=this.read_array_pair_list(e)),this.expect(t),this.next(),i(e,s)},read_array_pair_list:function(t){var e=this;return this.read_list((function(){return e.read_array_pair(t)}),",",!0)},read_array_pair:function(t){if(!(!t&&")"===this.token||t&&"]"===this.token)){if(","===this.token)return this.node("noop")();var e=this.node("entry"),i=null,s=null,n=!1,r=!1;if("&"===this.token)this.next(),n=!0,s=this.read_variable(!0,!1);else if(this.token===this.tok.T_ELLIPSIS&&this.version>=704)this.next(),"&"===this.token&&this.error(),r=!0,s=this.read_expr();else{var h=this.read_expr();this.token===this.tok.T_DOUBLE_ARROW?(this.next(),i=h,"&"===this.token?(this.next(),n=!0,s=this.read_variable(!0,!1)):s=this.read_expr()):s=h}return e(i,s,n,r)}}}},7072:t=>{function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var s,n,r,h,o=[],a=!0,_=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;a=!1}else for(;!(a=(s=r.call(i)).done)&&(o.push(s.value),o.length!==e);a=!0);}catch(t){_=!0,n=t}finally{try{if(!a&&null!=i.return&&(h=i.return(),Object(h)!==h))return}finally{if(_)throw n}}return o}}(t,e)||s(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){if(t){if("string"==typeof t)return n(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,e):void 0}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}t.exports={read_class_declaration_statement:function(t){var e=this.node("class"),i=this.read_class_modifiers();if(this.token!==this.tok.T_CLASS)return this.error(this.tok.T_CLASS),this.next(),null;this.next().expect(this.tok.T_STRING);var s=this.node("identifier"),n=this.text();this.next(),s=s(n);var r=this.read_extends_from(),h=this.read_implements_list();this.expect("{");var o=e(s,r,h,this.next().read_class_body(!0,!1),i);return t&&(o.attrGroups=t),o},read_class_modifiers:function(){var t=this.read_class_modifier({readonly:0,final_or_abstract:0});return[0,0,t.final_or_abstract,t.readonly]},read_class_modifier:function(t){return this.token===this.tok.T_READ_ONLY?(this.next(),t.readonly=1,t=this.read_class_modifier(t)):0===t.final_or_abstract&&this.token===this.tok.T_ABSTRACT?(this.next(),t.final_or_abstract=1,t=this.read_class_modifier(t)):0===t.final_or_abstract&&this.token===this.tok.T_FINAL&&(this.next(),t.final_or_abstract=2,t=this.read_class_modifier(t)),t},read_class_body:function(t,e){for(var s=[],n=[];this.token!==this.EOF&&"}"!==this.token;)if(this.token!==this.tok.T_COMMENT)if(this.token!==this.tok.T_DOC_COMMENT)if(this.token!==this.tok.T_USE)if(e&&this.token===this.tok.T_CASE){var r=this.read_enum_case();this.expect(";")&&this.next(),s=s.concat(r)}else{this.token===this.tok.T_ATTRIBUTE&&(n=this.read_attr_list());var h=this.position(),o=this.read_member_flags(!1);if(this.token!==this.tok.T_CONST)if(t&&this.token===this.tok.T_VAR&&(this.next().expect(this.tok.T_VARIABLE),o[0]=null,o[1]=0),this.token===this.tok.T_FUNCTION)s.push(this.read_function(!1,o,n,h)),n=[];else if(t&&(this.token===this.tok.T_VARIABLE||this.version>=801&&this.token===this.tok.T_READ_ONLY||this.version>=704&&("?"===this.token||this.token===this.tok.T_ARRAY||this.token===this.tok.T_CALLABLE||this.token===this.tok.T_NAMESPACE||this.token===this.tok.T_NAME_FULLY_QUALIFIED||this.token===this.tok.T_NAME_QUALIFIED||this.token===this.tok.T_NAME_RELATIVE||this.token===this.tok.T_NS_SEPARATOR||this.token===this.tok.T_STRING))){var a=this.read_variable_list(o,n);n=[],this.expect(";"),this.next(),s=s.concat(a)}else this.error([this.tok.T_CONST].concat(i(t?[this.tok.T_VARIABLE]:[]),i(e?[this.tok.T_CASE]:[]),[this.tok.T_FUNCTION])),this.next();else{var _=this.read_constant_list(o,n);this.expect(";")&&this.next(),s=s.concat(_)}}else s=s.concat(this.read_trait_use_statement());else s.push(this.read_doc_comment());else s.push(this.read_comment());return this.expect("}"),this.next(),s},read_variable_list:function(t,i){var s=this.node("propertystatement"),n=this.read_list((function(){var t=this.node("property"),s=!1;this.token===this.tok.T_READ_ONLY&&(s=!0,this.next());var n=e(this.read_optional_type(),2),r=n[0],h=n[1];this.expect(this.tok.T_VARIABLE);var o=this.node("identifier"),a=this.text().substring(1);this.next(),o=o(a);var _=null;return this.expect([",",";","="]),"="===this.token&&(_=this.next().read_expr()),t(o,_,s,r,h,i||[])}),",");return s(null,n,t)},read_constant_list:function(t,i){this.expect(this.tok.T_CONST)&&this.next();var s=e(this.version>=803?this.read_optional_type():[!1,null],2),n=s[0],r=s[1],h=this.node("classconstant"),o=this.read_list((function(){var t=this.node("constant"),e=null,i=null;if(this.token===this.tok.T_STRING||this.version>=700&&this.is("IDENTIFIER")){e=this.node("identifier");var s=this.text();this.next(),e=e(s)}else this.expect("IDENTIFIER");return this.expect("=")&&(i=this.next().read_expr()),t(e,i)}),",");return h(null,o,t,n,r,i||[])},read_member_flags:function(t){var e=[-1,-1,-1];if(this.is("T_MEMBER_FLAGS")){var i=0,s=0;do{switch(this.token){case this.tok.T_PUBLIC:i=0,s=0;break;case this.tok.T_PROTECTED:i=0,s=1;break;case this.tok.T_PRIVATE:i=0,s=2;break;case this.tok.T_STATIC:i=1,s=1;break;case this.tok.T_ABSTRACT:i=2,s=1;break;case this.tok.T_FINAL:i=2,s=2}t&&(0===i&&2===s?(this.expect([this.tok.T_PUBLIC,this.tok.T_PROTECTED]),s=-1):2===i&&1===s&&(this.error(),s=-1)),-1!==e[i]?this.error():-1!==s&&(e[i]=s)}while(this.next().is("T_MEMBER_FLAGS"))}return-1===e[1]&&(e[1]=0),-1===e[2]&&(e[2]=0),e},read_optional_type:function(){var t="?"===this.token;if(t&&this.next(),"="===this.peek())return[!1,null];var e=this.read_types();if(t&&!e&&this.raiseError("Expecting a type definition combined with nullable operator"),!t&&!e)return[!1,null];if("|"===this.token){e=[e];do{this.next();var i=this.read_type();if(!i){this.raiseError("Expecting a type definition");break}e.push(i)}while("|"===this.token)}return[t,e]},read_interface_declaration_statement:function(t){var e=this.node("interface");if(this.token!==this.tok.T_INTERFACE)return this.error(this.tok.T_INTERFACE),this.next(),null;this.next().expect(this.tok.T_STRING);var i=this.node("identifier"),s=this.text();this.next(),i=i(s);var n=this.read_interface_extends_list();return this.expect("{"),e(i,n,this.next().read_interface_body(),t||[])},read_interface_body:function(){for(var t=[],e=[];this.token!==this.EOF&&"}"!==this.token;)if(this.token!==this.tok.T_COMMENT)if(this.token!==this.tok.T_DOC_COMMENT){var i=this.position();e=this.read_attr_list();var s=this.read_member_flags(!0);if(this.token===this.tok.T_CONST){var n=this.read_constant_list(s,e);this.expect(";")&&this.next(),t=t.concat(n),e=[]}else if(this.token===this.tok.T_FUNCTION){var r=this.read_function_declaration(2,s,e,i);r.parseFlags(s),t.push(r),this.expect(";")&&this.next(),e=[]}else this.error([this.tok.T_CONST,this.tok.T_FUNCTION]),this.next()}else t.push(this.read_doc_comment());else t.push(this.read_comment());return this.expect("}")&&this.next(),t},read_trait_declaration_statement:function(){var t=this.node("trait");if(this.token!==this.tok.T_TRAIT)return this.error(this.tok.T_TRAIT),this.next(),null;this.next().expect(this.tok.T_STRING);var e=this.node("identifier"),i=this.text();return this.next(),e=e(i),this.expect("{"),t(e,this.next().read_class_body(!0,!1))},read_trait_use_statement:function(){var t=this.node("traituse");this.expect(this.tok.T_USE)&&this.next();for(var e=[this.read_namespace_name()],i=null;","===this.token;)e.push(this.next().read_namespace_name());if("{"===this.token){for(i=[];this.next().token!==this.EOF&&"}"!==this.token;)i.push(this.read_trait_use_alias()),this.expect(";");this.expect("}")&&this.next()}else this.expect(";")&&this.next();return t(e,i)},read_trait_use_alias:function(){var t,e=this.node(),i=null;if(this.is("IDENTIFIER")){t=this.node("identifier");var s=this.text();this.next(),t=t(s)}else if(t=this.read_namespace_name(),this.token===this.tok.T_DOUBLE_COLON)if(this.next(),this.token===this.tok.T_STRING||this.version>=700&&this.is("IDENTIFIER")){i=t,t=this.node("identifier");var n=this.text();this.next(),t=t(n)}else this.expect(this.tok.T_STRING);else t=t.name;if(this.token===this.tok.T_INSTEADOF)return e("traitprecedence",i,t,this.next().read_name_list());if(this.token===this.tok.T_AS){var r=null,h=null;if(this.next().is("T_MEMBER_FLAGS")&&(r=this.read_member_flags()),this.token===this.tok.T_STRING||this.version>=700&&this.is("IDENTIFIER")){h=this.node("identifier");var o=this.text();this.next(),h=h(o)}else!1===r&&this.expect(this.tok.T_STRING);return e("traitalias",i,t,h,r)}return this.expect([this.tok.T_AS,this.tok.T_INSTEADOF]),e("traitalias",i,t,null,null)}}},3997:t=>{t.exports={read_comment:function(){var t=this.text(),e=this.ast.prepare("/*"===t.substring(0,2)?"commentblock":"commentline",null,this),i=this.lexer.yylloc.first_offset,s=this.prev;return this.prev=[this.lexer.yylloc.last_line,this.lexer.yylloc.last_column,this.lexer.offset],this.lex(),(e=e(t)).offset=i,this.prev=s,e},read_doc_comment:function(){var t=this.ast.prepare("commentblock",null,this),e=this.lexer.yylloc.first_offset,i=this.text(),s=this.prev;return this.prev=[this.lexer.yylloc.last_line,this.lexer.yylloc.last_column,this.lexer.offset],this.lex(),(t=t(i)).offset=e,this.prev=s,t}}},979:t=>{t.exports={read_enum_declaration_statement:function(t){var e=this.node("enum");if(!this.expect(this.tok.T_ENUM))return null;this.next().expect(this.tok.T_STRING);var i=this.node("identifier"),s=this.text();this.next(),i=i(s);var n=this.read_enum_value_type(),r=this.read_implements_list();this.expect("{");var h=e(i,n,r,this.next().read_class_body(!1,!0));return t&&(h.attrGroups=t),h},read_enum_value_type:function(){return":"===this.token?this.next().read_namespace_name():null},read_enum_case:function(){this.expect(this.tok.T_CASE);var t=this.node("enumcase"),e=this.node("identifier"),i=this.next().text();this.next(),e=e(i);var s="="===this.token?this.next().read_expr():null;return this.expect(";"),t(e,s)}}},6477:t=>{t.exports={read_expr:function(t){var e=this.node();if("@"===this.token)return t||(t=this.next().read_expr()),e("silent",t);if(t||(t=this.read_expr_item()),"|"===this.token)return e("bin","|",t,this.next().read_expr());if("&"===this.token)return e("bin","&",t,this.next().read_expr());if("^"===this.token)return e("bin","^",t,this.next().read_expr());if("."===this.token)return e("bin",".",t,this.next().read_expr());if("+"===this.token)return e("bin","+",t,this.next().read_expr());if("-"===this.token)return e("bin","-",t,this.next().read_expr());if("*"===this.token)return e("bin","*",t,this.next().read_expr());if("/"===this.token)return e("bin","/",t,this.next().read_expr());if("%"===this.token)return e("bin","%",t,this.next().read_expr());if(this.token===this.tok.T_POW)return e("bin","**",t,this.next().read_expr());if(this.token===this.tok.T_SL)return e("bin","<<",t,this.next().read_expr());if(this.token===this.tok.T_SR)return e("bin",">>",t,this.next().read_expr());if(this.token===this.tok.T_BOOLEAN_OR)return e("bin","||",t,this.next().read_expr());if(this.token===this.tok.T_LOGICAL_OR)return e("bin","or",t,this.next().read_expr());if(this.token===this.tok.T_BOOLEAN_AND)return e("bin","&&",t,this.next().read_expr());if(this.token===this.tok.T_LOGICAL_AND)return e("bin","and",t,this.next().read_expr());if(this.token===this.tok.T_LOGICAL_XOR)return e("bin","xor",t,this.next().read_expr());if(this.token===this.tok.T_IS_IDENTICAL)return e("bin","===",t,this.next().read_expr());if(this.token===this.tok.T_IS_NOT_IDENTICAL)return e("bin","!==",t,this.next().read_expr());if(this.token===this.tok.T_IS_EQUAL)return e("bin","==",t,this.next().read_expr());if(this.token===this.tok.T_IS_NOT_EQUAL)return e("bin","!=",t,this.next().read_expr());if("<"===this.token)return e("bin","<",t,this.next().read_expr());if(">"===this.token)return e("bin",">",t,this.next().read_expr());if(this.token===this.tok.T_IS_SMALLER_OR_EQUAL)return e("bin","<=",t,this.next().read_expr());if(this.token===this.tok.T_IS_GREATER_OR_EQUAL)return e("bin",">=",t,this.next().read_expr());if(this.token===this.tok.T_SPACESHIP)return e("bin","<=>",t,this.next().read_expr());if(this.token===this.tok.T_INSTANCEOF&&(t=e("bin","instanceof",t,this.next().read_class_name_reference()),";"!==this.token&&this.token!==this.tok.T_INLINE_HTML&&this.token!==this.EOF&&(t=this.read_expr(t))),this.token===this.tok.T_COALESCE)return e("bin","??",t,this.next().read_expr());if("?"===this.token){var i=null;return":"!==this.next().token&&(i=this.read_expr()),this.expect(":")&&this.next(),e("retif",t,i,this.read_expr())}return e.destroy(t),t},read_expr_cast:function(t){return this.node("cast")(t,this.text(),this.next().read_expr())},read_isset_variable:function(){return this.read_expr()},read_isset_variables:function(){return this.read_function_list(this.read_isset_variable,",")},read_internal_functions_in_yacc:function(){var t=null;switch(this.token){case this.tok.T_ISSET:t=this.node("isset"),this.next().expect("(")&&this.next();var e=this.read_isset_variables();this.expect(")")&&this.next(),t=t(e);break;case this.tok.T_EMPTY:t=this.node("empty"),this.next().expect("(")&&this.next();var i=this.read_expr();this.expect(")")&&this.next(),t=t(i);break;case this.tok.T_INCLUDE:t=this.node("include")(!1,!1,this.next().read_expr());break;case this.tok.T_INCLUDE_ONCE:t=this.node("include")(!0,!1,this.next().read_expr());break;case this.tok.T_EVAL:t=this.node("eval"),this.next().expect("(")&&this.next();var s=this.read_expr();this.expect(")")&&this.next(),t=t(s);break;case this.tok.T_REQUIRE:t=this.node("include")(!1,!0,this.next().read_expr());break;case this.tok.T_REQUIRE_ONCE:t=this.node("include")(!0,!0,this.next().read_expr())}return t},read_optional_expr:function(t){return this.token!==t?this.read_expr():null},read_exit_expr:function(){var t=null;return"("===this.token&&(this.next(),t=this.read_optional_expr(")"),this.expect(")")&&this.next()),t},read_expr_item:function(){var t,e,i=[];if("+"===this.token)return this.node("unary")("+",this.next().read_expr());if("-"===this.token)return this.node("unary")("-",this.next().read_expr());if("!"===this.token)return this.node("unary")("!",this.next().read_expr());if("~"===this.token)return this.node("unary")("~",this.next().read_expr());if("("===this.token)return(e=this.next().read_expr()).parenthesizedExpression=!0,this.expect(")")&&this.next(),this.handleDereferencable(e);if("`"===this.token)return this.read_encapsed_string("`");if(this.token===this.tok.T_LIST){var s=null,n=this.innerList;t=this.node("list"),n||(s=this.node("assign")),this.next().expect("(")&&this.next(),this.innerList||(this.innerList=!0);var r=this.read_array_pair_list(!1);this.expect(")")&&this.next();for(var h=!1,o=0;o<r.length;o++)if(null!==r[o]&&"noop"!==r[o].kind){h=!0;break}return h||this.raiseError("Fatal Error :  Cannot use empty list on line "+this.lexer.yylloc.first_line),n?t(r,!1):(this.innerList=!1,this.expect("=")?s(t(r,!1),this.next().read_expr(),"="):t(r,!1))}if(this.token===this.tok.T_ATTRIBUTE&&(i=this.read_attr_list()),this.token===this.tok.T_CLONE)return this.node("clone")(this.next().read_expr());switch(this.token){case this.tok.T_INC:return this.node("pre")("+",this.next().read_variable(!1,!1));case this.tok.T_DEC:return this.node("pre")("-",this.next().read_variable(!1,!1));case this.tok.T_NEW:return this.read_new_expr();case this.tok.T_ISSET:case this.tok.T_EMPTY:case this.tok.T_INCLUDE:case this.tok.T_INCLUDE_ONCE:case this.tok.T_EVAL:case this.tok.T_REQUIRE:case this.tok.T_REQUIRE_ONCE:return this.read_internal_functions_in_yacc();case this.tok.T_MATCH:return this.read_match_expression();case this.tok.T_INT_CAST:return this.read_expr_cast("int");case this.tok.T_DOUBLE_CAST:return this.read_expr_cast("float");case this.tok.T_STRING_CAST:return this.read_expr_cast(-1!==this.text().indexOf("binary")?"binary":"string");case this.tok.T_ARRAY_CAST:return this.read_expr_cast("array");case this.tok.T_OBJECT_CAST:return this.read_expr_cast("object");case this.tok.T_BOOL_CAST:return this.read_expr_cast("bool");case this.tok.T_UNSET_CAST:return this.read_expr_cast("unset");case this.tok.T_THROW:return this.version<800&&this.raiseError("PHP 8+ is required to use throw as an expression"),this.node("throw")(this.next().read_expr());case this.tok.T_EXIT:var a="die"===this.lexer.yytext.toLowerCase();return t=this.node("exit"),this.next(),t(this.read_exit_expr(),a);case this.tok.T_PRINT:return this.node("print")(this.next().read_expr());case this.tok.T_YIELD:var _=null,l=null;return t=this.node("yield"),this.next().is("EXPR")&&(_=this.read_expr(),this.token===this.tok.T_DOUBLE_ARROW&&(l=_,_=this.next().read_expr())),t(_,l);case this.tok.T_YIELD_FROM:return(t=this.node("yieldfrom"))(e=this.next().read_expr());case this.tok.T_FN:case this.tok.T_FUNCTION:return this.read_inline_function(void 0,i);case this.tok.T_STATIC:var c=[this.token,this.lexer.getState()];if(this.next(),this.token===this.tok.T_FUNCTION||this.version>=704&&this.token===this.tok.T_FN)return this.read_inline_function([0,1,0],i);this.lexer.tokens.push(c),this.next()}if(this.is("VARIABLE")){t=this.node();var u="identifier"===(e=this.read_variable(!1,!1)).kind||"staticlookup"===e.kind&&"identifier"===e.offset.kind;switch(this.token){case"=":return u&&this.error("VARIABLE"),"&"==this.next().token?this.read_assignref(t,e):t("assign",e,this.read_expr(),"=");case this.tok.T_PLUS_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"+=");case this.tok.T_MINUS_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"-=");case this.tok.T_MUL_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"*=");case this.tok.T_POW_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"**=");case this.tok.T_DIV_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"/=");case this.tok.T_CONCAT_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),".=");case this.tok.T_MOD_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"%=");case this.tok.T_AND_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"&=");case this.tok.T_OR_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"|=");case this.tok.T_XOR_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"^=");case this.tok.T_SL_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"<<=");case this.tok.T_SR_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),">>=");case this.tok.T_COALESCE_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"??=");case this.tok.T_INC:return u&&this.error("VARIABLE"),this.next(),t("post","+",e);case this.tok.T_DEC:return u&&this.error("VARIABLE"),this.next(),t("post","-",e);default:t.destroy(e)}}else{if(this.is("SCALAR")){if(t=this.node(),"array"===(e=this.read_scalar()).kind&&e.shortForm&&"="===this.token){var p=this.convertToList(e);return e.loc&&(p.loc=e.loc),t("assign",p,this.next().read_expr(),"=")}return t.destroy(e),this.handleDereferencable(e)}this.error("EXPR"),this.next()}return e},convertToList:function(t){var e=this,i=t.items.map((function(t){return t.value&&"array"===t.value.kind&&t.value.shortForm&&(t.value=e.convertToList(t.value)),t})),s=this.node("list")(i,!0);return t.loc&&(s.loc=t.loc),t.leadingComments&&(s.leadingComments=t.leadingComments),t.trailingComments&&(s.trailingComments=t.trailingComments),s},read_assignref:function(t,e){var i;return this.next(),this.token===this.tok.T_NEW?(this.version>=700&&this.error(),i=this.read_new_expr()):i=this.read_variable(!1,!1),t("assignref",e,i)},read_inline_function:function(t,e){if(this.token===this.tok.T_FUNCTION){var i=this.read_function(!0,t,e);return i.attrGroups=e,i}!this.version>=704&&this.raiseError("Arrow Functions are not allowed");var s=this.node("arrowfunc");this.expect(this.tok.T_FN)&&this.next();var n=this.is_reference();this.expect("(")&&this.next();var r=this.read_parameter_list();this.expect(")")&&this.next();var h=!1,o=null;":"===this.token&&("?"===this.next().token&&(h=!0,this.next()),o=this.read_types()),this.expect(this.tok.T_DOUBLE_ARROW)&&this.next();var a=s(r,n,this.read_expr(),o,h,!!t);return a.attrGroups=e,a},read_match_expression:function(){var t,e,i=this.node("match");return this.expect(this.tok.T_MATCH)&&this.next(),this.version<800&&this.raiseError("Match statements are not allowed before PHP 8"),this.expect("(")&&this.next(),t=this.read_expr(),this.expect(")")&&this.next(),this.expect("{")&&this.next(),e=this.read_match_arms(),this.expect("}")&&this.next(),i(t,e)},read_match_arms:function(){var t=this;return this.read_list((function(){return t.read_match_arm()}),",",!0)},read_match_arm:function(){if("}"!==this.token)return this.node("matcharm")(this.read_match_arm_conds(),this.read_expr())},read_match_arm_conds:function(){var t=[];if(this.token===this.tok.T_DEFAULT)t=null,this.next();else for(t.push(this.read_expr());","===this.token;){if(this.next(),this.token===this.tok.T_DOUBLE_ARROW)return this.next(),t;t.push(this.read_expr())}return this.expect(this.tok.T_DOUBLE_ARROW)&&this.next(),t},read_attribute:function(){var t=this.text(),e=[];return this.next(),"("===this.token&&(e=this.read_argument_list()),this.node("attribute")(t,e)},read_attr_list:function(){var t=[];if(this.token===this.tok.T_ATTRIBUTE)do{var e=this.node("attrgroup")([]);for(this.next(),e.attrs.push(this.read_attribute());","===this.token;)this.next(),"]"!==this.token&&e.attrs.push(this.read_attribute());t.push(e),this.expect("]"),this.next()}while(this.token===this.tok.T_ATTRIBUTE);return t},read_new_expr:function(){var t=this.node("new");this.expect(this.tok.T_NEW)&&this.next();var e=[];if("("===this.token){this.next();var i=this.read_expr();return this.expect(")"),this.next(),"("===this.token&&(e=this.read_argument_list()),t(i,e)}var s=this.read_attr_list();if(this.token===this.tok.T_CLASS){var n=this.node("class");"("===this.next().token&&(e=this.read_argument_list());var r=this.read_extends_from(),h=this.read_implements_list(),o=null;this.expect("{")&&(o=this.next().read_class_body(!0,!1));var a=n(null,r,h,o,[0,0,0]);return a.attrGroups=s,t(a,e)}for(var _=this.read_new_class_name();"["===this.token;){var l=this.node("offsetlookup"),c=this.next().read_encaps_var_offset();this.expect("]")&&this.next(),_=l(_,c)}return"("===this.token&&(e=this.read_argument_list()),t(_,e)},read_new_class_name:function(){if(this.token===this.tok.T_NS_SEPARATOR||this.token===this.tok.T_NAME_RELATIVE||this.token===this.tok.T_NAME_QUALIFIED||this.token===this.tok.T_NAME_FULLY_QUALIFIED||this.token===this.tok.T_STRING||this.token===this.tok.T_NAMESPACE){var t=this.read_namespace_name(!0);return this.token===this.tok.T_DOUBLE_COLON&&(t=this.read_static_getter(t)),t}if(this.is("VARIABLE"))return this.read_variable(!0,!1);this.expect([this.tok.T_STRING,"VARIABLE"])},handleDereferencable:function(t){for(;this.token!==this.EOF;)if(this.token===this.tok.T_OBJECT_OPERATOR||this.token===this.tok.T_DOUBLE_COLON)t=this.recursive_variable_chain_scan(t,!1,!1,!0);else if(this.token===this.tok.T_CURLY_OPEN||"["===this.token)t=this.read_dereferencable(t);else{if("("!==this.token)return t;t=this.node("call")(t,this.read_argument_list())}return t}}},8214:t=>{t.exports={is_reference:function(){return"&"===this.token&&(this.next(),!0)},is_variadic:function(){return this.token===this.tok.T_ELLIPSIS&&(this.next(),!0)},read_function:function(t,e,i,s){var n=this.read_function_declaration(t?1:e?2:0,e&&1===e[1],i||[],s);return e&&1==e[2]?(n.parseFlags(e),this.expect(";")&&this.next()):(this.expect("{")&&(n.body=this.read_code_block(!1),n.loc&&n.body.loc&&(n.loc.end=n.body.loc.end)),!t&&e&&n.parseFlags(e)),n},read_function_declaration:function(t,e,i,s){var n=this,r="function";1===t?r="closure":2===t&&(r="method");var h=this.node(r);this.expect(this.tok.T_FUNCTION)&&this.next();var o=this.is_reference(),a=!1,_=[],l=null,c=!1;if(1!==t){var u=this.node("identifier");2===t?this.version>=700?this.token===this.tok.T_STRING||this.is("IDENTIFIER")?(a=this.text(),this.next()):this.version<704&&this.error("IDENTIFIER"):this.token===this.tok.T_STRING?(a=this.text(),this.next()):this.error("IDENTIFIER"):this.version>=700?this.token===this.tok.T_STRING?(a=this.text(),this.next()):this.version>=704?this.expect("(")||this.next():(this.error(this.tok.T_STRING),this.next()):(this.expect(this.tok.T_STRING)&&(a=this.text()),this.next()),a=u(a)}this.expect("(")&&this.next();var p=this.read_parameter_list("__construct"===a.name);this.expect(")")&&this.next(),1===t&&(_=this.read_lexical_vars()),":"===this.token&&("?"===this.next().token&&(c=!0,this.next()),l=this.read_types());var f;return(f=1===t?h(p,o,_,l,c,e):h(a,p,o,l,c)).attrGroups=i||[],s&&f.loc&&(f.loc.start=s,f.loc.source&&(f.loc.source=n.lexer._input.substr(f.loc.start.offset,f.loc.end.offset-f.loc.start.offset))),f},read_lexical_vars:function(){var t=[];return this.token===this.tok.T_USE&&(this.next(),this.expect("(")&&this.next(),t=this.read_lexical_var_list(),this.expect(")")&&this.next()),t},read_list_with_dangling_comma:function(t){for(var e=[];this.token!=this.EOF;){if(e.push(t()),","!=this.token){if(")"==this.token)break;this.error([",",")"]);break}if(this.next(),this.version>=800&&")"===this.token)return e}return e},read_lexical_var_list:function(){return this.read_list_with_dangling_comma(this.read_lexical_var.bind(this))},read_lexical_var:function(){if("&"===this.token)return this.read_byref(this.read_lexical_var.bind(this));var t=this.node("variable");this.expect(this.tok.T_VARIABLE);var e=this.text().substring(1);return this.next(),t(e,!1)},read_parameter_list:function(t){if(")"!==this.token){var e=!1;return this.read_list_with_dangling_comma(function(){var i=this.read_parameter(t);return i&&(e&&this.raiseError("Unexpected parameter after a variadic parameter"),i.variadic&&(e=!0)),i}.bind(this),",")}return[]},read_parameter:function(t){var e,i=this.node("parameter"),s=null,n=null,r=!1,h=!1,o=[];this.token===this.tok.T_ATTRIBUTE&&(o=this.read_attr_list()),this.version>=801&&this.token===this.tok.T_READ_ONLY&&(t?(this.next(),h=!0):this.raiseError("readonly properties can be used only on class constructor"));var a=this.read_promoted();!h&&this.version>=801&&this.token===this.tok.T_READ_ONLY&&(t?(this.next(),h=!0):this.raiseError("readonly properties can be used only on class constructor")),"?"===this.token&&(this.next(),r=!0),e=this.read_types(),r&&!e&&this.raiseError("Expecting a type definition combined with nullable operator");var _=this.is_reference(),l=this.is_variadic();if(this.expect(this.tok.T_VARIABLE)){s=this.node("identifier");var c=this.text().substring(1);this.next(),s=s(c)}"="==this.token&&(n=this.next().read_expr());var u=i(s,e,n,_,l,h,r,a);return o&&(u.attrGroups=o),u},read_types:function(){var t="unset",e="union",i="intersection",s=[],n=t,r=this.read_type();if(!r)return null;for(s.push(r);"|"===this.token||this.version>=801&&"&"===this.token;){var h=this.peek();if(h===this.tok.T_ELLIPSIS||h===this.tok.T_VARIABLE)break;n===t?n="|"===this.token?e:i:(n===e&&"|"!==this.token||n===i&&"&"!==this.token)&&this.raiseError('Unexpect token "'+this.token+'", "|" and "&" can not be mixed'),this.next(),s.push(this.read_type())}return 1===s.length?s[0]:n===i?this.node("intersectiontype")(s):this.node("uniontype")(s)},read_promoted:function(){return this.token===this.tok.T_PUBLIC?(this.next(),1):this.token===this.tok.T_PROTECTED?(this.next(),2):this.token===this.tok.T_PRIVATE?(this.next(),4):0},read_argument_list:function(){var t=[];return this.expect("(")&&this.next(),this.version>=801&&this.token===this.tok.T_ELLIPSIS&&")"===this.peek()?(t.push(this.node("variadicplaceholder")()),this.next()):")"!==this.token&&(t=this.read_non_empty_argument_list()),this.expect(")")&&this.next(),t},read_non_empty_argument_list:function(){var t=!1;return this.read_function_list(function(){var e=this.read_argument();if(e){var i="variadic"===e.kind;t&&!i&&this.raiseError("Unexpected non-variadic argument after a variadic argument"),i&&(t=!0)}return e}.bind(this),",")},read_argument:function(){return this.token===this.tok.T_ELLIPSIS?this.node("variadic")(this.next().read_expr()):this.token!==this.tok.T_STRING&&!Object.values(this.lexer.keywords).includes(this.token)||":"!==this.peek()?this.read_expr():(this.version<800&&this.raiseError("PHP 8+ is required to use named arguments"),this.node("namedargument")(this.text(),this.next().next().read_expr()))},read_type:function(){var t=this.node();if(this.token===this.tok.T_ARRAY||this.token===this.tok.T_CALLABLE){var e=this.text();return this.next(),t("typereference",e.toLowerCase(),e)}if(this.token===this.tok.T_NAME_RELATIVE||this.token===this.tok.T_NAME_QUALIFIED||this.token===this.tok.T_NAME_FULLY_QUALIFIED||this.token===this.tok.T_STRING||this.token===this.tok.T_STATIC){var i=this.text(),s=[this.token,this.lexer.getState()];return this.next(),this.token!==this.tok.T_NS_SEPARATOR&&this.ast.typereference.types.indexOf(i.toLowerCase())>-1?t("typereference",i.toLowerCase(),i):(this.lexer.tokens.push(s),this.next(),t.destroy(),this.read_namespace_name())}return t.destroy(),null}}},9461:t=>{t.exports={read_if:function(){var t=this.node("if"),e=this.next().read_if_expr(),i=null,s=null,n=!1;if(":"===this.token){n=!0,this.next(),i=this.node("block");for(var r=[];this.token!==this.EOF&&this.token!==this.tok.T_ENDIF;){if(this.token===this.tok.T_ELSEIF){s=this.read_elseif_short();break}if(this.token===this.tok.T_ELSE){s=this.read_else_short();break}r.push(this.read_inner_statement())}i=i(null,r),this.expect(this.tok.T_ENDIF)&&this.next(),this.expectEndOfStatement()}else i=this.read_statement(),this.token===this.tok.T_ELSEIF?s=this.read_if():this.token===this.tok.T_ELSE&&(s=this.next().read_statement());return t(e,i,s,n)},read_if_expr:function(){this.expect("(")&&this.next();var t=this.read_expr();return this.expect(")")&&this.next(),t},read_elseif_short:function(){var t=null,e=this.node("if"),i=this.next().read_if_expr();this.expect(":")&&this.next();for(var s=this.node("block"),n=[];this.token!=this.EOF&&this.token!==this.tok.T_ENDIF;){if(this.token===this.tok.T_ELSEIF){t=this.read_elseif_short();break}if(this.token===this.tok.T_ELSE){t=this.read_else_short();break}n.push(this.read_inner_statement())}return e(i,s(null,n),t,!0)},read_else_short:function(){this.next().expect(":")&&this.next();for(var t=this.node("block"),e=[];this.token!=this.EOF&&this.token!==this.tok.T_ENDIF;)e.push(this.read_inner_statement());return t(null,e)}}},5931:t=>{t.exports={read_while:function(){var t=this.node("while");this.expect(this.tok.T_WHILE)&&this.next();var e,i=null,s=!1;return this.expect("(")&&this.next(),e=this.read_expr(),this.expect(")")&&this.next(),":"===this.token?(s=!0,i=this.read_short_form(this.tok.T_ENDWHILE)):i=this.read_statement(),t(e,i,s)},read_do:function(){var t=this.node("do");this.expect(this.tok.T_DO)&&this.next();var e,i=null;return e=this.read_statement(),this.expect(this.tok.T_WHILE)&&(this.next().expect("(")&&this.next(),i=this.read_expr(),this.expect(")")&&this.next(),this.expect(";")&&this.next()),t(i,e)},read_for:function(){var t=this.node("for");this.expect(this.tok.T_FOR)&&this.next();var e=[],i=[],s=[],n=null,r=!1;return this.expect("(")&&this.next(),";"!==this.token?(e=this.read_list(this.read_expr,","),this.expect(";")&&this.next()):this.next(),";"!==this.token?(i=this.read_list(this.read_expr,","),this.expect(";")&&this.next()):this.next(),")"!==this.token?(s=this.read_list(this.read_expr,","),this.expect(")")&&this.next()):this.next(),":"===this.token?(r=!0,n=this.read_short_form(this.tok.T_ENDFOR)):n=this.read_statement(),t(e,i,s,n,r)},read_foreach:function(){var t=this.node("foreach");this.expect(this.tok.T_FOREACH)&&this.next();var e,i=null,s=null,n=null,r=!1;return this.expect("(")&&this.next(),e=this.read_expr(),this.expect(this.tok.T_AS)&&(this.next(),s=this.read_foreach_variable(),this.token===this.tok.T_DOUBLE_ARROW&&(i=s,s=this.next().read_foreach_variable())),i&&"list"===i.kind&&this.raiseError("Fatal Error : Cannot use list as key element"),this.expect(")")&&this.next(),":"===this.token?(r=!0,n=this.read_short_form(this.tok.T_ENDFOREACH)):n=this.read_statement(),t(e,i,s,n,r)},read_foreach_variable:function(){if(this.token===this.tok.T_LIST||"["===this.token){var t="["===this.token,e=this.node("list");this.next(),!t&&this.expect("(")&&this.next();var i=this.read_array_pair_list(t);return this.expect(t?"]":")")&&this.next(),e(i,t)}return this.read_variable(!1,!1)}}},9147:t=>{t.exports={read_start:function(){return this.token==this.tok.T_NAMESPACE?this.read_namespace():this.read_top_statement()}}},9219:t=>{t.exports={read_namespace:function(){var t,e,i=this.node("namespace");return this.expect(this.tok.T_NAMESPACE)&&this.next(),e="{"===this.token?{name:[""]}:this.read_namespace_name(),this.currentNamespace=e,";"===this.token?(this.currentNamespace=e,t=this.next().read_top_statements(),this.expect(this.EOF),i(e.name,t,!1)):"{"===this.token?(this.currentNamespace=e,t=this.next().read_top_statements(),this.expect("}")&&this.next(),0===t.length&&this.extractDoc&&this._docs.length>this._docIndex&&t.push(this.node("noop")()),i(e.name,t,!0)):(this.error(["{",";"]),this.currentNamespace=e,t=this.read_top_statements(),this.expect(this.EOF),i(e,t,!1))},read_namespace_name:function(t){var e,i=this.node(),s=this.text();switch(this.token){case this.tok.T_NAME_RELATIVE:e=this.ast.name.RELATIVE_NAME,s=s.replace(/^namespace\\/,"");break;case this.tok.T_NAME_QUALIFIED:e=this.ast.name.QUALIFIED_NAME;break;case this.tok.T_NAME_FULLY_QUALIFIED:e=this.ast.name.FULL_QUALIFIED_NAME;break;default:if(e=this.ast.name.UNQUALIFIED_NAME,!this.expect(this.tok.T_STRING))return i("name","",this.ast.name.FULL_QUALIFIED_NAME)}if(this.next(),t||"("!==this.token){if("parent"===s.toLowerCase())return i("parentreference",s);if("self"===s.toLowerCase())return i("selfreference",s)}return i("name",s,e)},read_use_statement:function(){var t=this.node("usegroup"),e=[],i=null;this.expect(this.tok.T_USE)&&this.next();var s=this.read_use_type();return e.push(this.read_use_declaration(!1)),","===this.token?e=e.concat(this.next().read_use_declarations(!1)):"{"===this.token&&(i=e[0].name,e=this.next().read_use_declarations(null===s),this.expect("}")&&this.next()),t=t(i,s,e),this.expect(";")&&this.next(),t},read_class_name_reference:function(){return this.read_variable(!0,!1)},read_use_declaration:function(t){var e=this.node("useitem"),i=null;t&&(i=this.read_use_type());var s=this.read_namespace_name(),n=this.read_use_alias();return e(s.name,n,i)},read_use_declarations:function(t){for(var e=[this.read_use_declaration(t)];","===this.token;){if(this.next(),t){if(this.token!==this.tok.T_NAME_RELATIVE&&this.token!==this.tok.T_NAME_QUALIFIED&&this.token!==this.tok.T_NAME_FULLY_QUALIFIED&&this.token!==this.tok.T_FUNCTION&&this.token!==this.tok.T_CONST&&this.token!==this.tok.T_STRING)break}else if(this.token!==this.tok.T_NAME_RELATIVE&&this.token!==this.tok.T_NAME_QUALIFIED&&this.token!==this.tok.T_NAME_FULLY_QUALIFIED&&this.token!==this.tok.T_STRING&&this.token!==this.tok.T_NS_SEPARATOR)break;e.push(this.read_use_declaration(t))}return e},read_use_alias:function(){var t=null;if(this.token===this.tok.T_AS&&this.next().expect(this.tok.T_STRING)){var e=this.node("identifier"),i=this.text();this.next(),t=e(i)}return t},read_use_type:function(){return this.token===this.tok.T_FUNCTION?(this.next(),this.ast.useitem.TYPE_FUNCTION):this.token===this.tok.T_CONST?(this.next(),this.ast.useitem.TYPE_CONST):null}}},7170:t=>{var e={"\\":"\\",$:"$",n:"\n",r:"\r",t:"\t",f:String.fromCharCode(12),v:String.fromCharCode(11),e:String.fromCharCode(27)};t.exports={resolve_special_chars:function(t,i){return i?t.replace(/\\"/,'"').replace(/\\([\\$nrtfve]|[xX][0-9a-fA-F]{1,2}|[0-7]{1,3}|u{([0-9a-fA-F]+)})/g,(function(t,i,s){return e[i]?e[i]:"x"===i[0]||"X"===i[0]?String.fromCodePoint(parseInt(i.substr(1),16)):"u"===i[0]?String.fromCodePoint(parseInt(s,16)):String.fromCodePoint(parseInt(i,8))})):t.replace(/\\\\/g,"\\").replace(/\\'/g,"'")},remove_heredoc_leading_whitespace_chars:function(t,e,i,s){if(0===e)return t;this.check_heredoc_indentation_level(t,e,i,s);var n=i?" ":"\t",r=new RegExp("\\n".concat(n,"{").concat(e,"}"),"g"),h=new RegExp("^".concat(n,"{").concat(e,"}"));return s&&(t=t.replace(h,"")),t.replace(r,"\n")},check_heredoc_indentation_level:function(t,e,i,s){var n=t.length,r=0,h=0,o=!0,a=i?" ":"\t",_=!1;if(!s){if(-1===(r=t.indexOf("\n")))return;r++}for(;r<n;)o?t[r]===a?h++:_=!0:o=!1,"\n"!==t[r]&&_&&h<e?this.raiseError("Invalid body indentation level (expecting an indentation at least ".concat(e,")")):_=!1,"\n"===t[r]&&(o=!0,h=0),r++},read_dereferencable_scalar:function(){var t=null;switch(this.token){case this.tok.T_CONSTANT_ENCAPSED_STRING:var e=this.node("string"),i=this.text(),s=0;"b"!==i[0]&&"B"!==i[0]||(s=1);var n='"'===i[s];this.next(),e=e(n,this.resolve_special_chars(i.substring(s+1,i.length-1),n),1===s,i),t=this.token===this.tok.T_DOUBLE_COLON?this.read_static_getter(e):e;break;case this.tok.T_ARRAY:case"[":t=this.read_array()}return t},read_scalar:function(){if(this.is("T_MAGIC_CONST"))return this.get_magic_constant();var t,e;switch(this.token){case this.tok.T_LNUMBER:case this.tok.T_DNUMBER:var i=this.node("number");return t=this.text(),this.next(),i(t,null);case this.tok.T_START_HEREDOC:if("ST_NOWDOC"===this.lexer.curCondition){var s=this.lexer.yylloc.first_offset;e=this.node("nowdoc"),t=this.next().text(),this.lexer.heredoc_label.indentation>0&&(t=t.substring(0,t.length-this.lexer.heredoc_label.indentation));var n=t[t.length-1];"\n"===n?t="\r"===t[t.length-2]?t.substring(0,t.length-2):t.substring(0,t.length-1):"\r"===n&&(t=t.substring(0,t.length-1)),this.expect(this.tok.T_ENCAPSED_AND_WHITESPACE)&&this.next(),this.expect(this.tok.T_END_HEREDOC)&&this.next();var r=this.lexer._input.substring(s,this.lexer.yylloc.first_offset);return e=e(this.remove_heredoc_leading_whitespace_chars(t,this.lexer.heredoc_label.indentation,this.lexer.heredoc_label.indentation_uses_spaces,this.lexer.heredoc_label.first_encaps_node),r,this.lexer.heredoc_label.label),this.lexer.heredoc_label.finished=!0,e}return this.read_encapsed_string(this.tok.T_END_HEREDOC);case'"':return this.read_encapsed_string('"');case'b"':case'B"':return this.read_encapsed_string('"',!0);case this.tok.T_CONSTANT_ENCAPSED_STRING:case this.tok.T_ARRAY:case"[":return this.read_dereferencable_scalar();default:var h=this.error("SCALAR");return this.next(),h}},read_dereferencable:function(t){var e,i,s=this.node("offsetlookup");return"["===this.token?(i=this.next().read_expr(),this.expect("]")&&this.next(),e=s(t,i)):this.token===this.tok.T_DOLLAR_OPEN_CURLY_BRACES&&(e=s(t,i=this.read_encapsed_string_item(!1))),e},read_encapsed_string_item:function(t){var e,i,s,n=this.node("encapsedpart"),r=null,h=!1,o=this.node();if(this.token===this.tok.T_ENCAPSED_AND_WHITESPACE){var a=this.text();this.next(),o=o("string",!1,this.version>=703&&!this.lexer.heredoc_label.finished?this.remove_heredoc_leading_whitespace_chars(this.resolve_special_chars(a,t),this.lexer.heredoc_label.indentation,this.lexer.heredoc_label.indentation_uses_spaces,this.lexer.heredoc_label.first_encaps_node):a,!1,a)}else if(this.token===this.tok.T_DOLLAR_OPEN_CURLY_BRACES){if(r="simple",h=!0,s=null,this.next().token===this.tok.T_STRING_VARNAME){s=this.node("variable");var _=this.text();this.next(),o.destroy(),"["===this.token?(s=s(_,!1),i=this.node("offsetlookup"),e=this.next().read_expr(),this.expect("]")&&this.next(),o=i(s,e)):o=s(_,!1)}else o=o("variable",this.read_expr(),!1);this.expect("}")&&this.next()}else if(this.token===this.tok.T_CURLY_OPEN)r="complex",o.destroy(),o=this.next().read_variable(!1,!1),this.expect("}")&&this.next();else if(this.token===this.tok.T_VARIABLE){if(r="simple",o.destroy(),o=this.read_simple_variable(),"["===this.token&&(i=this.node("offsetlookup"),e=this.next().read_encaps_var_offset(),this.expect("]")&&this.next(),o=i(o,e)),this.token===this.tok.T_OBJECT_OPERATOR){i=this.node("propertylookup"),this.next().expect(this.tok.T_STRING);var l=this.node("identifier");s=this.text(),this.next(),o=i(o,l(s))}}else{this.expect(this.tok.T_ENCAPSED_AND_WHITESPACE);var c=this.text();this.next(),o.destroy(),o=o("string",!1,c,!1,c)}return this.lexer.heredoc_label.first_encaps_node=!1,n(o,r,h)},read_encapsed_string:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.lexer.yylloc.first_offset,s=this.node("encapsed");this.next();var n,r=this.lexer.yylloc.prev_offset-(e?1:0),h=[];for(n="`"===t?this.ast.encapsed.TYPE_SHELL:'"'===t?this.ast.encapsed.TYPE_STRING:this.ast.encapsed.TYPE_HEREDOC;this.token!==t&&this.token!==this.EOF;)h.push(this.read_encapsed_string_item(!0));if(h.length>0&&"encapsedpart"===h[h.length-1].kind&&"string"===h[h.length-1].expression.kind){var o=h[h.length-1].expression,a=o.value[o.value.length-1];"\n"===a?"\r"===o.value[o.value.length-2]?o.value=o.value.substring(0,o.value.length-2):o.value=o.value.substring(0,o.value.length-1):"\r"===a&&(o.value=o.value.substring(0,o.value.length-1))}return this.expect(t)&&this.next(),s=s(h,this.lexer._input.substring("heredoc"===n?i:r-1,this.lexer.yylloc.first_offset),n),t===this.tok.T_END_HEREDOC&&(s.label=this.lexer.heredoc_label.label,this.lexer.heredoc_label.finished=!0),s},get_magic_constant:function(){var t=this.node("magic"),e=this.text();return this.next(),t(e.toUpperCase(),e)}}},6261:t=>{t.exports={read_top_statements:function(){for(var t=[];this.token!==this.EOF&&"}"!==this.token;){var e=this.read_top_statement();e&&(Array.isArray(e)?t=t.concat(e):t.push(e))}return t},read_top_statement:function(){var t=[];switch(this.token===this.tok.T_ATTRIBUTE&&(t=this.read_attr_list()),this.token){case this.tok.T_FUNCTION:return this.read_function(!1,!1,t);case this.tok.T_ABSTRACT:case this.tok.T_FINAL:case this.tok.T_READ_ONLY:case this.tok.T_CLASS:return this.read_class_declaration_statement(t);case this.tok.T_INTERFACE:return this.read_interface_declaration_statement(t);case this.tok.T_TRAIT:return this.read_trait_declaration_statement();case this.tok.T_ENUM:return this.read_enum_declaration_statement(t);case this.tok.T_USE:return this.read_use_statement();case this.tok.T_CONST:var e=this.node("constantstatement"),i=this.next().read_const_list();return this.expectEndOfStatement(),e(null,i);case this.tok.T_NAMESPACE:return this.read_namespace();case this.tok.T_HALT_COMPILER:var s=this.node("halt");return this.next().expect("(")&&this.next(),this.expect(")")&&this.next(),this.expect(";"),this.lexer.done=!0,s(this.lexer._input.substring(this.lexer.offset));default:return this.read_statement()}},read_inner_statements:function(){for(var t=[];this.token!=this.EOF&&"}"!==this.token;){var e=this.read_inner_statement();e&&(Array.isArray(e)?t=t.concat(e):t.push(e))}return t},read_const_list:function(){return this.read_list((function(){this.expect(this.tok.T_STRING);var t=this.node("constant"),e=this.node("identifier"),i=this.text();return this.next(),e=e(i),this.expect("=")?t(e,this.next().read_expr()):t(e,null)}),",",!1)},read_declare_list:function(){for(var t=[];this.token!=this.EOF&&")"!==this.token;){this.expect(this.tok.T_STRING);var e=this.node("declaredirective"),i=this.node("identifier"),s=this.text();this.next(),i=i(s);var n=null;if(this.expect("=")&&(n=this.next().read_expr()),t.push(e(i,n)),","!==this.token)break;this.next()}return t},read_inner_statement:function(){var t=[];switch(this.token===this.tok.T_ATTRIBUTE&&(t=this.read_attr_list()),this.token){case this.tok.T_FUNCTION:var e=this.read_function(!1,!1);return e.attrGroups=t,e;case this.tok.T_ABSTRACT:case this.tok.T_FINAL:case this.tok.T_CLASS:return this.read_class_declaration_statement();case this.tok.T_INTERFACE:return this.read_interface_declaration_statement();case this.tok.T_TRAIT:return this.read_trait_declaration_statement();case this.tok.T_ENUM:return this.read_enum_declaration_statement();case this.tok.T_HALT_COMPILER:this.raiseError("__HALT_COMPILER() can only be used from the outermost scope");var i=this.node("halt");return this.next().expect("(")&&this.next(),this.expect(")")&&this.next(),i=i(this.lexer._input.substring(this.lexer.offset)),this.expect(";")&&this.next(),i;default:return this.read_statement()}},read_statement:function(){switch(this.token){case"{":return this.read_code_block(!1);case this.tok.T_IF:return this.read_if();case this.tok.T_SWITCH:return this.read_switch();case this.tok.T_FOR:return this.read_for();case this.tok.T_FOREACH:return this.read_foreach();case this.tok.T_WHILE:return this.read_while();case this.tok.T_DO:return this.read_do();case this.tok.T_COMMENT:return this.read_comment();case this.tok.T_DOC_COMMENT:return this.read_doc_comment();case this.tok.T_RETURN:var t=this.node("return");this.next();var e=this.read_optional_expr(";");return this.expectEndOfStatement(),t(e);case this.tok.T_BREAK:case this.tok.T_CONTINUE:var i=this.node(this.token===this.tok.T_CONTINUE?"continue":"break");this.next();var s=this.read_optional_expr(";");return this.expectEndOfStatement(),i(s);case this.tok.T_GLOBAL:var n=this.node("global"),r=this.next().read_list(this.read_simple_variable,",");return this.expectEndOfStatement(),n(r);case this.tok.T_STATIC:var h=[this.token,this.lexer.getState()],o=this.node();if(this.next().token===this.tok.T_DOUBLE_COLON){this.lexer.tokens.push(h);var a=this.next().read_expr();return this.expectEndOfStatement(a),o("expressionstatement",a)}if(this.token===this.tok.T_FUNCTION)return this.read_function(!0,[0,1,0]);var _=this.read_variable_declarations();return this.expectEndOfStatement(),o("static",_);case this.tok.T_ECHO:var l=this.node("echo"),c=this.text(),u="<?="===c||"<%="===c,p=this.next().read_function_list(this.read_expr,",");return this.expectEndOfStatement(),l(p,u);case this.tok.T_INLINE_HTML:var f=this.text(),T=this.lexer.yylloc.first_offset>0?this.lexer._input[this.lexer.yylloc.first_offset-1]:null,d="\r"===T||"\n"===T;d&&"\n"===T&&this.lexer.yylloc.first_offset>1&&"\r"===this.lexer._input[this.lexer.yylloc.first_offset-2]&&(T="\r\n");var k=this.node("inline");return this.next(),k(f,d?T+f:f);case this.tok.T_UNSET:var x=this.node("unset");this.next().expect("(")&&this.next();var E=this.read_function_list(this.read_variable,",");return this.expect(")")&&this.next(),this.expect(";")&&this.next(),x(E);case this.tok.T_DECLARE:var A,y=this.node("declare"),v=[];this.next().expect("(")&&this.next();var m=this.read_declare_list();if(this.expect(")")&&this.next(),":"===this.token){for(this.next();this.token!=this.EOF&&this.token!==this.tok.T_ENDDECLARE;)v.push(this.read_top_statement());0===v.length&&this.extractDoc&&this._docs.length>this._docIndex&&v.push(this.node("noop")()),this.expect(this.tok.T_ENDDECLARE)&&this.next(),this.expectEndOfStatement(),A=this.ast.declare.MODE_SHORT}else if("{"===this.token){for(this.next();this.token!=this.EOF&&"}"!==this.token;)v.push(this.read_top_statement());0===v.length&&this.extractDoc&&this._docs.length>this._docIndex&&v.push(this.node("noop")()),this.expect("}")&&this.next(),A=this.ast.declare.MODE_BLOCK}else this.expect(";")&&this.next(),A=this.ast.declare.MODE_NONE;return y(m,v,A);case this.tok.T_TRY:return this.read_try();case this.tok.T_THROW:var N=this.node("throw"),I=this.next().read_expr();return this.expectEndOfStatement(),N(I);case";":return this.next(),null;case this.tok.T_STRING:var L=this.node(),S=[this.token,this.lexer.getState()],C=this.text(),O=this.node("identifier");if(":"===this.next().token)return O=O(C),this.next(),L("label",O);O.destroy(),L.destroy(),this.lexer.tokens.push(S);var b=this.node("expressionstatement"),R=this.next().read_expr();return this.expectEndOfStatement(R),b(R);case this.tok.T_GOTO:var g=this.node("goto"),D=null;if(this.next().expect(this.tok.T_STRING)){D=this.node("identifier");var U=this.text();this.next(),D=D(U),this.expectEndOfStatement()}return g(D);default:var P=this.node("expressionstatement"),M=this.read_expr();return this.expectEndOfStatement(M),P(M)}},read_code_block:function(t){var e=this.node("block");this.expect("{")&&this.next();var i=t?this.read_top_statements():this.read_inner_statements();return 0===i.length&&this.extractDoc&&this._docs.length>this._docIndex&&i.push(this.node("noop")()),this.expect("}")&&this.next(),e(null,i)}}},2478:t=>{t.exports={read_switch:function(){var t=this.node("switch");this.expect(this.tok.T_SWITCH)&&this.next(),this.expect("(")&&this.next();var e=this.read_expr();this.expect(")")&&this.next();var i=":"===this.token;return t(e,this.read_switch_case_list(),i)},read_switch_case_list:function(){var t=null,e=this.node("block"),i=[];for("{"===this.token?t="}":":"===this.token?t=this.tok.T_ENDSWITCH:this.expect(["{",":"]),this.next(),";"===this.token&&this.next();this.token!==this.EOF&&this.token!==t;)i.push(this.read_case_list(t));return 0===i.length&&this.extractDoc&&this._docs.length>this._docIndex&&i.push(this.node("noop")()),this.expect(t)&&this.next(),t===this.tok.T_ENDSWITCH&&this.expectEndOfStatement(),e(null,i)},read_case_list:function(t){var e=this.node("case"),i=null;this.token===this.tok.T_CASE?i=this.next().read_expr():this.token===this.tok.T_DEFAULT?this.next():this.expect([this.tok.T_CASE,this.tok.T_DEFAULT]),this.expect([":",";"])&&this.next();for(var s=this.node("block"),n=[];this.token!==this.EOF&&this.token!==t&&this.token!==this.tok.T_CASE&&this.token!==this.tok.T_DEFAULT;)n.push(this.read_inner_statement());return e(i,s(null,n))}}},77:t=>{t.exports={read_try:function(){this.expect(this.tok.T_TRY);for(var t=this.node("try"),e=null,i=[],s=this.next().read_statement();this.token===this.tok.T_CATCH;){var n=this.node("catch");this.next().expect("(")&&this.next();var r=this.read_list(this.read_namespace_name,"|",!1),h=null;(this.version<800||this.token===this.tok.T_VARIABLE)&&(h=this.read_variable(!0,!1)),this.expect(")"),i.push(n(this.next().read_statement(),r,h))}return this.token===this.tok.T_FINALLY&&(e=this.next().read_statement()),t(s,i,e)}}},6077:t=>{t.exports={read_short_form:function(t){var e=this.node("block"),i=[];for(this.expect(":")&&this.next();this.token!=this.EOF&&this.token!==t;)i.push(this.read_inner_statement());return 0===i.length&&this.extractDoc&&this._docs.length>this._docIndex&&i.push(this.node("noop")()),this.expect(t)&&this.next(),this.expectEndOfStatement(),e(null,i)},read_function_list:function(t,e){var i=[];do{if(this.token==e&&this.version>=703&&i.length>0){i.push(this.node("noop")());break}if(i.push(t.apply(this,[])),this.token!=e)break;if(")"==this.next().token&&this.version>=703)break}while(this.token!=this.EOF);return i},read_list:function(t,e,i){var s=[];if(this.token==e&&(i&&s.push("function"==typeof t?this.node("noop")():null),this.next()),"function"==typeof t)do{var n=t.apply(this,[]);if(n&&s.push(n),this.token!=e)break}while(this.next().token!=this.EOF);else{if(!this.expect(t))return[];for(s.push(this.text());this.next().token!=this.EOF&&this.token==e&&this.next().token==t;)s.push(this.text())}return s},read_name_list:function(){return this.read_list(this.read_namespace_name,",",!1)},read_byref:function(t){var e=this.node("byref");this.next(),e=e(null);var i=t();return i&&(this.ast.swapLocations(i,e,i,this),i.byref=!0),i},read_variable_declarations:function(){return this.read_list((function(){var t=this.node("staticvariable"),e=this.node("variable");if(this.expect(this.tok.T_VARIABLE)){var i=this.text().substring(1);this.next(),e=e(i,!1)}else e=e("#ERR",!1);return"="===this.token?t(e,this.next().read_expr()):e}),",")},read_extends_from:function(){return this.token===this.tok.T_EXTENDS?this.next().read_namespace_name():null},read_interface_extends_list:function(){return this.token===this.tok.T_EXTENDS?this.next().read_name_list():null},read_implements_list:function(){return this.token===this.tok.T_IMPLEMENTS?this.next().read_name_list():null}}},1130:t=>{t.exports={read_variable:function(t,e){var i;if("&"===this.token)return this.read_byref(this.read_variable.bind(this,t,e));if(this.is([this.tok.T_VARIABLE,"$"]))i=this.read_reference_variable(e);else if(this.is([this.tok.T_NS_SEPARATOR,this.tok.T_STRING,this.tok.T_NAME_RELATIVE,this.tok.T_NAME_QUALIFIED,this.tok.T_NAME_FULLY_QUALIFIED,this.tok.T_NAMESPACE])){i=this.node();var s=this.read_namespace_name();if(this.token!=this.tok.T_DOUBLE_COLON&&"("!=this.token&&-1===["parentreference","selfreference"].indexOf(s.kind)){var n=s.name.toLowerCase();"true"===n?i=s.destroy(i("boolean",!0,s.name)):"false"===n?i=s.destroy(i("boolean",!1,s.name)):"null"===n?i=s.destroy(i("nullkeyword",s.name)):(i.destroy(s),i=s)}else i.destroy(s),i=s}else if(this.token===this.tok.T_STATIC){i=this.node("staticreference");var r=this.text();this.next(),i=i(r)}else this.expect("VARIABLE");return this.token===this.tok.T_DOUBLE_COLON&&(i=this.read_static_getter(i,e)),this.recursive_variable_chain_scan(i,t,e)},read_static_getter:function(t,e){var i,s,n=this.node("staticlookup");return this.next().is([this.tok.T_VARIABLE,"$"])?i=this.read_reference_variable(e):this.token===this.tok.T_STRING||this.token===this.tok.T_CLASS||this.version>=700&&this.is("IDENTIFIER")?(i=this.node("identifier"),s=this.text(),this.next(),i=i(s)):"{"===this.token?(i=this.node("literal"),s=this.next().read_expr(),this.expect("}")&&this.next(),i=i("literal",s,null),this.expect("(")):(this.error([this.tok.T_VARIABLE,this.tok.T_STRING]),i=this.node("identifier"),s=this.text(),this.next(),i=i(s)),n(t,i)},read_what:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=null,i=null;switch(this.next().token){case this.tok.T_STRING:e=this.node("identifier"),i=this.text(),this.next(),e=e(i),t&&this.token===this.tok.T_OBJECT_OPERATOR&&this.error();break;case this.tok.T_VARIABLE:e=this.node("variable"),i=this.text().substring(1),this.next(),e=e(i,!1);break;case"$":e=this.node(),this.next().expect(["$","{",this.tok.T_VARIABLE]),"{"===this.token?(i=this.next().read_expr(),this.expect("}")&&this.next(),e=e("variable",i,!0)):e=e("variable",i=this.read_expr(),!1);break;case"{":e=this.node("encapsedpart"),i=this.next().read_expr(),this.expect("}")&&this.next(),e=e(i,"complex",!1);break;default:this.error([this.tok.T_STRING,this.tok.T_VARIABLE,"$","{"]),e=this.node("identifier"),i=this.text(),this.next(),e=e(i)}return e},recursive_variable_chain_scan:function(t,e,i){var s,n;t:for(;this.token!=this.EOF;)switch(this.token){case"(":if(e)return t;t=this.node("call")(t,this.read_argument_list());break;case"[":case"{":var r="["===this.token;s=this.node("offsetlookup"),this.next(),n=!1,i?(n=this.read_encaps_var_offset(),this.expect(r?"]":"}")&&this.next()):(r?"]"!==this.token:"}"!==this.token)?(n=this.read_expr(),this.expect(r?"]":"}")&&this.next()):this.next(),t=s(t,n);break;case this.tok.T_DOUBLE_COLON:"staticlookup"===t.kind&&"identifier"===t.offset.kind&&this.error(),t=(s=this.node("staticlookup"))(t,this.read_what(!0));break;case this.tok.T_OBJECT_OPERATOR:t=(s=this.node("propertylookup"))(t,this.read_what());break;case this.tok.T_NULLSAFE_OBJECT_OPERATOR:t=(s=this.node("nullsafepropertylookup"))(t,this.read_what());break;default:break t}return t},read_encaps_var_offset:function(){var t=this.node();if(this.token===this.tok.T_STRING){var e=this.text();this.next(),t=t("identifier",e)}else if(this.token===this.tok.T_NUM_STRING){var i=this.text();this.next(),t=t("number",i,null)}else if("-"===this.token){this.next();var s=-1*this.text();this.expect(this.tok.T_NUM_STRING)&&this.next(),t=t("number",s,null)}else if(this.token===this.tok.T_VARIABLE){var n=this.text().substring(1);this.next(),t=t("variable",n,!1)}else{this.expect([this.tok.T_STRING,this.tok.T_NUM_STRING,"-",this.tok.T_VARIABLE]);var r=this.text();this.next(),t=t("identifier",r)}return t},read_reference_variable:function(t){for(var e,i=this.read_simple_variable();this.token!=this.EOF;){var s=this.node();if("{"!=this.token||t){s.destroy();break}e=this.next().read_expr(),this.expect("}")&&this.next(),i=s("offsetlookup",i,e)}return i},read_simple_variable:function(){var t,e=this.node("variable");if(this.expect([this.tok.T_VARIABLE,"$"])&&this.token===this.tok.T_VARIABLE)t=this.text().substring(1),this.next(),e=e(t,!1);else switch("$"===this.token&&this.next(),this.token){case"{":var i=this.next().read_expr();this.expect("}")&&this.next(),e=e(i,!0);break;case"$":e=e(this.read_simple_variable(),!1);break;case this.tok.T_VARIABLE:t=this.text().substring(1);var s=this.node("variable");this.next(),e=e(s(t,!1),!1);break;default:this.error(["{","$",this.tok.T_VARIABLE]),t=this.text(),this.next(),e=e(t,!1)}return e}}},1906:t=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function i(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function s(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?i(Object(s),!0).forEach((function(e){n(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):i(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function n(t,i,s){return(i=function(t){var i=function(t){if("object"!=e(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,"string");if("object"!=e(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(i)?i:i+""}(i))in t?Object.defineProperty(t,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[i]=s,t}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}var h={T_HALT_COMPILER:101,T_USE:102,T_ENCAPSED_AND_WHITESPACE:103,T_OBJECT_OPERATOR:104,T_STRING:105,T_DOLLAR_OPEN_CURLY_BRACES:106,T_STRING_VARNAME:107,T_CURLY_OPEN:108,T_NUM_STRING:109,T_ISSET:110,T_EMPTY:111,T_INCLUDE:112,T_INCLUDE_ONCE:113,T_EVAL:114,T_REQUIRE:115,T_REQUIRE_ONCE:116,T_NAMESPACE:117,T_NS_SEPARATOR:118,T_AS:119,T_IF:120,T_ENDIF:121,T_WHILE:122,T_DO:123,T_FOR:124,T_SWITCH:125,T_BREAK:126,T_CONTINUE:127,T_RETURN:128,T_GLOBAL:129,T_STATIC:130,T_ECHO:131,T_INLINE_HTML:132,T_UNSET:133,T_FOREACH:134,T_DECLARE:135,T_TRY:136,T_THROW:137,T_GOTO:138,T_FINALLY:139,T_CATCH:140,T_ENDDECLARE:141,T_LIST:142,T_CLONE:143,T_PLUS_EQUAL:144,T_MINUS_EQUAL:145,T_MUL_EQUAL:146,T_DIV_EQUAL:147,T_CONCAT_EQUAL:148,T_MOD_EQUAL:149,T_AND_EQUAL:150,T_OR_EQUAL:151,T_XOR_EQUAL:152,T_SL_EQUAL:153,T_SR_EQUAL:154,T_INC:155,T_DEC:156,T_BOOLEAN_OR:157,T_BOOLEAN_AND:158,T_LOGICAL_OR:159,T_LOGICAL_AND:160,T_LOGICAL_XOR:161,T_SL:162,T_SR:163,T_IS_IDENTICAL:164,T_IS_NOT_IDENTICAL:165,T_IS_EQUAL:166,T_IS_NOT_EQUAL:167,T_IS_SMALLER_OR_EQUAL:168,T_IS_GREATER_OR_EQUAL:169,T_INSTANCEOF:170,T_INT_CAST:171,T_DOUBLE_CAST:172,T_STRING_CAST:173,T_ARRAY_CAST:174,T_OBJECT_CAST:175,T_BOOL_CAST:176,T_UNSET_CAST:177,T_EXIT:178,T_PRINT:179,T_YIELD:180,T_YIELD_FROM:181,T_FUNCTION:182,T_DOUBLE_ARROW:183,T_DOUBLE_COLON:184,T_ARRAY:185,T_CALLABLE:186,T_CLASS:187,T_ABSTRACT:188,T_TRAIT:189,T_FINAL:190,T_EXTENDS:191,T_INTERFACE:192,T_IMPLEMENTS:193,T_VAR:194,T_PUBLIC:195,T_PROTECTED:196,T_PRIVATE:197,T_CONST:198,T_NEW:199,T_INSTEADOF:200,T_ELSEIF:201,T_ELSE:202,T_ENDSWITCH:203,T_CASE:204,T_DEFAULT:205,T_ENDFOR:206,T_ENDFOREACH:207,T_ENDWHILE:208,T_CONSTANT_ENCAPSED_STRING:209,T_LNUMBER:210,T_DNUMBER:211,T_LINE:212,T_FILE:213,T_DIR:214,T_TRAIT_C:215,T_METHOD_C:216,T_FUNC_C:217,T_NS_C:218,T_START_HEREDOC:219,T_END_HEREDOC:220,T_CLASS_C:221,T_VARIABLE:222,T_OPEN_TAG:223,T_OPEN_TAG_WITH_ECHO:224,T_CLOSE_TAG:225,T_WHITESPACE:226,T_COMMENT:227,T_DOC_COMMENT:228,T_ELLIPSIS:229,T_COALESCE:230,T_POW:231,T_POW_EQUAL:232,T_SPACESHIP:233,T_COALESCE_EQUAL:234,T_FN:235,T_NULLSAFE_OBJECT_OPERATOR:236,T_MATCH:237,T_ATTRIBUTE:238,T_ENUM:239,T_READ_ONLY:240,T_NAME_RELATIVE:241,T_NAME_QUALIFIED:242,T_NAME_FULLY_QUALIFIED:243},o={values:Object.entries(h).reduce((function(t,e){var i,h,o=(h=2,function(t){if(Array.isArray(t))return t}(i=e)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var s,n,r,h,o=[],a=!0,_=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;a=!1}else for(;!(a=(s=r.call(i)).done)&&(o.push(s.value),o.length!==e);a=!0);}catch(t){_=!0,n=t}finally{try{if(!a&&null!=i.return&&(h=i.return(),Object(h)!==h))return}finally{if(_)throw n}}return o}}(i,h)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(t,e):void 0}}(i,h)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],_=o[1];return s(s({},t),{},n({},_,a))}),{}),names:h};t.exports=Object.freeze(o)}},e={},i=function i(s){var n=e[s];if(void 0!==n)return n.exports;var r=e[s]={exports:{}};return t[s](r,r.exports,i),r.exports}(5362);return i.default})(),t.exports=e()},3145:(t,e,i)=>{"use strict";function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}i.d(e,{A:()=>s})},6369:(t,e,i)=>{"use strict";function s(t){if(Array.isArray(t))return t}i.d(e,{A:()=>s})},3029:(t,e,i)=>{"use strict";function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}i.d(e,{A:()=>s})},2901:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var s=i(816);function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(0,s.A)(n.key),n)}}function r(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}},6986:(t,e,i)=>{"use strict";function s(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var s,n,r,h,o=[],a=!0,_=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;a=!1}else for(;!(a=(s=r.call(i)).done)&&(o.push(s.value),o.length!==e);a=!0);}catch(t){_=!0,n=t}finally{try{if(!a&&null!=i.return&&(h=i.return(),Object(h)!==h))return}finally{if(_)throw n}}return o}}i.d(e,{A:()=>s})},6562:(t,e,i)=>{"use strict";function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}i.d(e,{A:()=>s})},3453:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var s=i(6369),n=i(6986),r=i(7800),h=i(6562);function o(t,e){return(0,s.A)(t)||(0,n.A)(t,e)||(0,r.A)(t,e)||(0,h.A)()}},816:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var s=i(2284);function n(t){var e=function(t){if("object"!=(0,s.A)(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=(0,s.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,s.A)(e)?e:e+""}},2284:(t,e,i)=>{"use strict";function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}i.d(e,{A:()=>s})},7800:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var s=i(3145);function n(t,e){if(t){if("string"==typeof t)return(0,s.A)(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?(0,s.A)(t,e):void 0}}}},i={};function s(t){var n=i[t];if(void 0!==n)return n.exports;var r=i[t]={exports:{}};return e[t](r,r.exports,s),r.exports}s.m=e,t=[],s.O=(e,i,n,r)=>{if(!i){var h=1/0;for(l=0;l<t.length;l++){for(var[i,n,r]=t[l],o=!0,a=0;a<i.length;a++)(!1&r||h>=r)&&Object.keys(s.O).every((t=>s.O[t](i[a])))?i.splice(a--,1):(o=!1,r<h&&(h=r));if(o){t.splice(l--,1);var _=n();void 0!==_&&(e=_)}}return e}r=r||0;for(var l=t.length;l>0&&t[l-1][2]>r;l--)t[l]=t[l-1];t[l]=[i,n,r]},s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={6008:0};s.O.j=e=>0===t[e];var e=(e,i)=>{var n,r,[h,o,a]=i,_=0;if(h.some((e=>0!==t[e]))){for(n in o)s.o(o,n)&&(s.m[n]=o[n]);if(a)var l=a(s)}for(e&&e(i);_<h.length;_++)r=h[_],s.o(t,r)&&t[r]&&t[r][0](),t[r]=0;return s.O(l)},i=self.webpackChunkcode_snippets=self.webpackChunkcode_snippets||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var n=s(3099);n=s.O(n)})();
     2(()=>{var t,e={3099:(t,e,i)=>{"use strict";const s=window.wp.CodeMirror;var n=i.n(s),r=i(3453),h=i(3029),o=i(2901),a=i(4776);function _(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return l(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var s=0,n=function(){};return{s:n,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,h=!0,o=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return h=t.done,t},e:function(t){o=!0,r=t},f:function(){try{h||null==i.return||i.return()}finally{if(o)throw r}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}var c=function(){return(0,o.A)((function t(e){(0,h.A)(this,t),this.code=e,this.annotations=[],this.function_names=new Set,this.class_names=new Set}),[{key:"lint",value:function(){var t=new a.Engine({parser:{suppressErrors:!0,version:800},ast:{withPositions:!0}});try{var e=t.parseEval(this.code);if(0<e.errors.length){var i,s=_(e.errors);try{for(s.s();!(i=s.n()).done;){var n=i.value;this.annotate(n.message,n.loc)}}catch(t){s.e(t)}finally{s.f()}}this.visit(e)}catch(n){console.error(n)}}},{key:"visit",value:function(t){if(t.kind&&this.validate(t),"children"in t){var e,i=_(t.children);try{for(i.s();!(e=i.n()).done;){var s=e.value;this.visit(s)}}catch(t){i.e(t)}finally{i.f()}}}},{key:"checkDuplicateIdentifier",value:function(t,e,i){e.has(t.name)?this.annotate("Cannot redeclare ".concat(i," ").concat(t.name,"()"),t.loc):e.add(t.name)}},{key:"validate",value:function(t){var e=t,i=e.name;"name"in e&&"name"in i&&"identifier"===i.kind&&("function"===t.kind?this.checkDuplicateIdentifier(i,this.function_names,"function"):"class"===t.kind&&this.checkDuplicateIdentifier(i,this.class_names,"class"))}},{key:"annotate",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"error",s=e?e.end.offset<e.start.offset?[e.end,e.start]:[e.start,e.end]:[{line:0,column:0},{line:0,column:0}],h=(0,r.A)(s,2),o=h[0],a=h[1];this.annotations.push({message:t,severity:i,from:n().Pos(o.line-1,o.column),to:n().Pos(a.line-1,a.column)})}}])}(),u={name:"application/x-httpd-php",startOpen:!0};(0,s.defineMode)("php-snippet",(function(t){return(0,s.getMode)(t,u)})),(0,s.registerHelper)("lint","php",(function(t){var e=new c(t);return e.lint(),e.annotations}))},4776:t=>{var e;self,e=()=>(()=>{"use strict";var t={8938:(t,e,i)=>{var s=i(4778),n=i(8822),r=function(t,e){this.withPositions=t,this.withSource=e};r.precedence={},[["or"],["xor"],["and"],["="],["?"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","!=","===","!==","<=>"],["<","<=",">",">="],["<<",">>"],["+","-","."],["*","/","%"],["!"],["instanceof"],["cast","silent"],["**"]].forEach((function(t,e){t.forEach((function(t){r.precedence[t]=e+1}))})),r.prototype.isRightAssociative=function(t){return"**"===t||"??"===t},r.prototype.swapLocations=function(t,e,i,s){this.withPositions&&(t.loc.start=e.loc.start,t.loc.end=i.loc.end,this.withSource&&(t.loc.source=s.lexer._input.substring(t.loc.start.offset,t.loc.end.offset)))},r.prototype.resolveLocations=function(t,e,i,s){this.withPositions&&(t.loc.start.offset>e.loc.start.offset&&(t.loc.start=e.loc.start),t.loc.end.offset<i.loc.end.offset&&(t.loc.end=i.loc.end),this.withSource&&(t.loc.source=s.lexer._input.substring(t.loc.start.offset,t.loc.end.offset)))},r.prototype.resolvePrecedence=function(t,e){var i,s,n;return"call"===t.kind?this.resolveLocations(t,t.what,t,e):"propertylookup"===t.kind||"staticlookup"===t.kind||"offsetlookup"===t.kind&&t.offset?this.resolveLocations(t,t.what,t.offset,e):"bin"===t.kind?t.right&&!t.right.parenthesizedExpression&&("bin"===t.right.kind?(s=r.precedence[t.type],n=r.precedence[t.right.type],s&&n&&n<=s&&(t.type!==t.right.type||!this.isRightAssociative(t.type))&&(i=t.right,t.right=t.right.left,this.swapLocations(t,t.left,t.right,e),i.left=this.resolvePrecedence(t,e),this.swapLocations(i,i.left,i.right,e),t=i)):"retif"===t.right.kind&&(s=r.precedence[t.type],n=r.precedence["?"],s&&n&&n<=s&&(i=t.right,t.right=t.right.test,this.swapLocations(t,t.left,t.right,e),i.test=this.resolvePrecedence(t,e),this.swapLocations(i,i.test,i.falseExpr,e),t=i))):"silent"!==t.kind&&"cast"!==t.kind||!t.expr||t.expr.parenthesizedExpression?"unary"===t.kind?t.what&&!t.what.parenthesizedExpression&&("bin"===t.what.kind?(i=t.what,t.what=t.what.left,this.swapLocations(t,t,t.what,e),i.left=this.resolvePrecedence(t,e),this.swapLocations(i,i.left,i.right,e),t=i):"retif"===t.what.kind&&(i=t.what,t.what=t.what.test,this.swapLocations(t,t,t.what,e),i.test=this.resolvePrecedence(t,e),this.swapLocations(i,i.test,i.falseExpr,e),t=i)):"retif"===t.kind?t.falseExpr&&"retif"===t.falseExpr.kind&&!t.falseExpr.parenthesizedExpression&&(i=t.falseExpr,t.falseExpr=i.test,this.swapLocations(t,t.test,t.falseExpr,e),i.test=this.resolvePrecedence(t,e),this.swapLocations(i,i.test,i.falseExpr,e),t=i):"assign"===t.kind?t.right&&"bin"===t.right.kind&&!t.right.parenthesizedExpression&&(s=r.precedence["="],n=r.precedence[t.right.type],s&&n&&n<s&&(i=t.right,t.right=t.right.left,i.left=t,this.swapLocations(i,i.left,t.right,e),t=i)):"expressionstatement"===t.kind&&this.swapLocations(t,t.expression,t,e):"bin"===t.expr.kind?(i=t.expr,t.expr=t.expr.left,this.swapLocations(t,t,t.expr,e),i.left=this.resolvePrecedence(t,e),this.swapLocations(i,i.left,i.right,e),t=i):"retif"===t.expr.kind&&(i=t.expr,t.expr=t.expr.test,this.swapLocations(t,t,t.expr,e),i.test=this.resolvePrecedence(t,e),this.swapLocations(i,i.test,i.falseExpr,e),t=i),t},r.prototype.prepare=function(t,e,i){var r=null;(this.withPositions||this.withSource)&&(r=i.position());var h=this,o=function(){var a=null,_=Array.prototype.slice.call(arguments);if(_.push(e),h.withPositions||h.withSource){var l=null;h.withSource&&(l=i.lexer._input.substring(r.offset,i.prev[2])),a=new s(l,r,new n(i.prev[0],i.prev[1],i.prev[2])),_.push(a)}t||(t=_.shift());var c=h[t];if("function"!=typeof c)throw new Error('Undefined node "'+t+'"');var u=Object.create(c.prototype);return c.apply(u,_),o.instance=u,o.trailingComments&&(u.trailingComments=o.trailingComments),"function"==typeof o.postBuild&&o.postBuild(u),i.debug&&delete h.stack[o.stackUid],h.resolvePrecedence(u,i)};return i.debug&&(this.stack||(this.stack={},this.stackUid=1),this.stack[++this.stackUid]={position:r,stack:(new Error).stack.split("\n").slice(3,5)},o.stackUid=this.stackUid),o.setTrailingComments=function(t){o.instance?o.instance.setTrailingComments(t):o.trailingComments=t},o.destroy=function(t){e&&(t?t.leadingComments?t.leadingComments=e.concat(t.leadingComments):t.leadingComments=e:i._docIndex=i._docs.length-e.length),i.debug&&delete h.stack[o.stackUid]},o},r.prototype.checkNodes=function(){var t=[];for(var e in this.stack)Object.prototype.hasOwnProperty.call(this.stack,e)&&(this.stack[e].key=e,t.push(this.stack[e]));return this.stack={},t},[i(3160),i(1654),i(1240),i(3979),i(5553),i(2207),i(2916),i(4628),i(7509),i(2906),i(5723),i(7561),i(6473),i(9626),i(4782),i(8477),i(5045),i(900),i(4824),i(1020),i(9847),i(2790),i(1333),i(2112),i(9960),i(8533),i(5947),i(7786),i(5436),i(1136),i(380),i(6129),i(9723),i(5125),i(9632),i(4300),i(1515),i(3411),i(9781),i(839),i(8374),i(9754),i(4251),i(6553),i(8630),i(9786),i(9742),i(1234),i(6),i(8861),i(7860),i(9834),i(2724),i(6025),i(2687),i(7633),i(5514),i(7427),i(1122),i(7256),i(7416),i(8140),i(6258),i(9474),i(6827),i(4427),i(4065),i(4297),i(5859),i(6985),i(9302),i(8212),i(864),i(8268),i(7190),i(8519),i(4835),i(2056),i(4838),i(7869),i(1908),i(170),i(1091),i(8276),i(1842),i(5739),i(1274),i(4352),i(9672),i(711),i(1231),i(1865),i(1102),i(7472),i(6133),i(1197),i(6649),i(1837),i(2277),i(8010),i(7579),i(3460),i(2702),i(514),i(5684),i(8019),i(7721),i(4369),i(40),i(4919),i(7676),i(2596),i(6744)].forEach((function(t){r.prototype[t.kind]=t})),t.exports=r},3160:(t,e,i)=>{var s=i(839),n="array";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.items=e,this.shortForm=t}))},1654:(t,e,i)=>{var s=i(839),n="arrowfunc";t.exports=s.extends(n,(function(t,e,i,r,h,o,a,_){s.apply(this,[n,a,_]),this.arguments=t,this.byref=e,this.body=i,this.type=r,this.nullable=h,this.isStatic=o||!1}))},1240:(t,e,i)=>{var s=i(839),n="assign";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.left=t,this.right=e,this.operator=i}))},3979:(t,e,i)=>{var s=i(839),n="assignref";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.left=t,this.right=e}))},2207:(t,e,i)=>{var s=i(4065),n="attrgroup";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.attrs=t||[]}))},5553:(t,e,i)=>{var s=i(4065),n="attribute";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.name=t,this.args=e}))},2916:(t,e,i)=>{var s=i(8268);t.exports=s.extends("bin",(function(t,e,i,n,r){s.apply(this,["bin",n,r]),this.type=t,this.left=e,this.right=i}))},4628:(t,e,i)=>{var s=i(9672),n="block";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[t||n,i,r]),this.children=e.filter(Boolean)}))},7509:(t,e,i)=>{var s=i(5514),n="boolean";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,t,e,i,r])}))},2906:(t,e,i)=>{var s=i(9672),n="break";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.level=t}))},5723:(t,e,i)=>{var s=i(839),n="byref";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.what=t}))},7561:(t,e,i)=>{var s=i(839),n="call";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.what=t,this.arguments=e}))},6473:(t,e,i)=>{var s=i(9672),n="case";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.test=t,this.body=e}))},9626:(t,e,i)=>{var s=i(8268),n="cast";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.type=t,this.raw=e,this.expr=i}))},4782:(t,e,i)=>{var s=i(9672),n="catch";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.body=t,this.what=e,this.variable=i}))},8477:(t,e,i)=>{var s=i(8533),n="class";t.exports=s.extends(n,(function(t,e,i,r,h,o,a){s.apply(this,[n,t,o,a]),this.isAnonymous=!t,this.extends=e,this.implements=i,this.body=r,this.attrGroups=[],this.parseFlags(h)}))},5045:(t,e,i)=>{var s=i(2112),n="classconstant",r=s.extends(n,(function(t,e,i,r,h,o,a,_){s.apply(this,[t||n,e,a,_]),this.parseFlags(i),this.nullable=r,this.type=h,this.attrGroups=o}));r.prototype.parseFlags=function(t){-1===t[0]?this.visibility="":null===t[0]?this.visibility=null:0===t[0]?this.visibility="public":1===t[0]?this.visibility="protected":2===t[0]&&(this.visibility="private"),this.final=2===t[2]},t.exports=r},900:(t,e,i)=>{var s=i(839),n="clone";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.what=t}))},4824:(t,e,i)=>{var s=i(839),n="closure";t.exports=s.extends(n,(function(t,e,i,r,h,o,a,_){s.apply(this,[n,a,_]),this.uses=i,this.arguments=t,this.byref=e,this.type=r,this.nullable=h,this.isStatic=o||!1,this.body=null,this.attrGroups=[]}))},1020:(t,e,i)=>{var s=i(4065);t.exports=s.extends("comment",(function(t,e,i,n){s.apply(this,[t,i,n]),this.value=e}))},9847:(t,e,i)=>{var s=i(1020),n="commentblock";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,t,e,i])}))},2790:(t,e,i)=>{var s=i(1020),n="commentline";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,t,e,i])}))},1333:(t,e,i)=>{var s=i(4065),n="constant";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.name=t,this.value=e}))},2112:(t,e,i)=>{var s=i(9672),n="constantstatement";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[t||n,i,r]),this.constants=e}))},9960:(t,e,i)=>{var s=i(9672),n="continue";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.level=t}))},8533:(t,e,i)=>{var s=i(9672),n="declaration",r=s.extends(n,(function(t,e,i,r){s.apply(this,[t||n,i,r]),this.name=e}));r.prototype.parseFlags=function(t){this.isAbstract=1===t[2],this.isFinal=2===t[2],this.isReadonly=1===t[3],"class"!==this.kind&&(-1===t[0]?this.visibility="":null===t[0]?this.visibility=null:0===t[0]?this.visibility="public":1===t[0]?this.visibility="protected":2===t[0]&&(this.visibility="private"),this.isStatic=1===t[1])},t.exports=r},5947:(t,e,i)=>{var s=i(4628),n="declare",r=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,e,r,h]),this.directives=t,this.mode=i}));r.MODE_SHORT="short",r.MODE_BLOCK="block",r.MODE_NONE="none",t.exports=r},7786:(t,e,i)=>{var s=i(4065),n="declaredirective";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.key=t,this.value=e}))},5436:(t,e,i)=>{var s=i(9672);t.exports=s.extends("do",(function(t,e,i,n){s.apply(this,["do",i,n]),this.test=t,this.body=e}))},1136:(t,e,i)=>{var s=i(9672),n="echo";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.shortForm=e,this.expressions=t}))},380:(t,e,i)=>{var s=i(839),n="empty";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.expression=t}))},6129:(t,e,i)=>{var s=i(5514),n="encapsed",r=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,t,e,r,h]),this.type=i}));r.TYPE_STRING="string",r.TYPE_SHELL="shell",r.TYPE_HEREDOC="heredoc",r.TYPE_OFFSET="offset",t.exports=r},9723:(t,e,i)=>{var s=i(839),n="encapsedpart";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.expression=t,this.syntax=e,this.curly=i}))},5125:(t,e,i)=>{var s=i(839),n="entry";t.exports=s.extends(n,(function(t,e,i,r,h,o){s.apply(this,[n,h,o]),this.key=t,this.value=e,this.byRef=i,this.unpack=r}))},9632:(t,e,i)=>{var s=i(8533),n="enum";t.exports=s.extends(n,(function(t,e,i,r,h,o){s.apply(this,[n,t,h,o]),this.valueType=e,this.implements=i,this.body=r,this.attrGroups=[]}))},4300:(t,e,i)=>{var s=i(4065),n="enumcase";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.name=t,this.value=e}))},1515:(t,e,i)=>{var s=i(4065),n="error";t.exports=s.extends(n,(function(t,e,i,r,h,o){s.apply(this,[n,h,o]),this.message=t,this.token=e,this.line=i,this.expected=r}))},3411:(t,e,i)=>{var s=i(839),n="eval";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.source=t}))},9781:(t,e,i)=>{var s=i(839),n="exit";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.expression=t,this.useDie=e}))},839:(t,e,i)=>{var s=i(4065),n="expression";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[t||n,e,i])}))},8374:(t,e,i)=>{var s=i(9672),n="expressionstatement";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.expression=t}))},9754:(t,e,i)=>{var s=i(9672);t.exports=s.extends("for",(function(t,e,i,n,r,h,o){s.apply(this,["for",h,o]),this.init=t,this.test=e,this.increment=i,this.shortForm=r,this.body=n}))},4251:(t,e,i)=>{var s=i(9672),n="foreach";t.exports=s.extends(n,(function(t,e,i,r,h,o,a){s.apply(this,[n,o,a]),this.source=t,this.key=e,this.value=i,this.shortForm=h,this.body=r}))},6553:(t,e,i)=>{var s=i(8533),n="function";t.exports=s.extends(n,(function(t,e,i,r,h,o,a){s.apply(this,[n,t,o,a]),this.arguments=e,this.byref=i,this.type=r,this.nullable=h,this.body=null,this.attrGroups=[]}))},8630:(t,e,i)=>{var s=i(9672),n="global";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.items=t}))},9786:(t,e,i)=>{var s=i(9672),n="goto";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.label=t}))},9742:(t,e,i)=>{var s=i(9672),n="halt";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.after=t}))},1234:(t,e,i)=>{var s=i(4065),n="identifier",r=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.name=t}));t.exports=r},6:(t,e,i)=>{var s=i(9672);t.exports=s.extends("if",(function(t,e,i,n,r,h){s.apply(this,["if",r,h]),this.test=t,this.body=e,this.alternate=i,this.shortForm=n}))},8861:(t,e,i)=>{var s=i(839),n="include";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.once=t,this.require=e,this.target=i}))},7860:(t,e,i)=>{var s=i(5514),n="inline";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,t,e,i,r])}))},9834:(t,e,i)=>{var s=i(8533),n="interface";t.exports=s.extends(n,(function(t,e,i,r,h,o){s.apply(this,[n,t,h,o]),this.extends=e,this.body=i,this.attrGroups=r}))},2724:(t,e,i)=>{var s=i(8533),n="intersectiontype";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,null,e,i]),this.types=t}))},6025:(t,e,i)=>{var s=i(839),n="isset";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.variables=t}))},2687:(t,e,i)=>{var s=i(9672),n="label";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.name=t}))},7633:(t,e,i)=>{var s=i(839),n="list";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.items=t,this.shortForm=e}))},5514:(t,e,i)=>{var s=i(839),n="literal";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[t||n,r,h]),this.value=e,i&&(this.raw=i)}))},4778:t=>{t.exports=function(t,e,i){this.source=t,this.start=e,this.end=i}},7427:(t,e,i)=>{var s=i(839),n="lookup";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[t||n,r,h]),this.what=e,this.offset=i}))},1122:(t,e,i)=>{var s=i(5514),n="magic";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,t,e,i,r])}))},7256:(t,e,i)=>{var s=i(839),n="match";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.cond=t,this.arms=e}))},7416:(t,e,i)=>{var s=i(839),n="matcharm";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.conds=t,this.body=e}))},8140:(t,e,i)=>{var s=i(6553),n="method";t.exports=s.extends(n,(function(){s.apply(this,arguments),this.kind=n}))},6258:(t,e,i)=>{var s=i(8276),n="name",r=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.name=t.replace(/\\$/,""),this.resolution=e}));r.UNQUALIFIED_NAME="uqn",r.QUALIFIED_NAME="qn",r.FULL_QUALIFIED_NAME="fqn",r.RELATIVE_NAME="rn",t.exports=r},6827:(t,e,i)=>{var s=i(839),n="namedargument";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.name=t,this.value=e}))},9474:(t,e,i)=>{var s=i(4628),n="namespace";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,e,r,h]),this.name=t,this.withBrackets=i||!1}))},4427:(t,e,i)=>{var s=i(839);t.exports=s.extends("new",(function(t,e,i,n){s.apply(this,["new",i,n]),this.what=t,this.arguments=e}))},4065:t=>{var e=function(t,e,i){this.kind=t,e&&(this.leadingComments=e),i&&(this.loc=i)};e.prototype.setTrailingComments=function(t){this.trailingComments=t},e.prototype.destroy=function(t){if(!t)throw new Error("Node already initialized, you must swap with another node");return this.leadingComments&&(t.leadingComments?t.leadingComments=Array.concat(this.leadingComments,t.leadingComments):t.leadingComments=this.leadingComments),this.trailingComments&&(t.trailingComments?t.trailingComments=Array.concat(this.trailingComments,t.trailingComments):t.trailingComments=this.trailingComments),t},e.prototype.includeToken=function(t){return this.loc&&(this.loc.end&&(this.loc.end.line=t.lexer.yylloc.last_line,this.loc.end.column=t.lexer.yylloc.last_column,this.loc.end.offset=t.lexer.offset),t.ast.withSource&&(this.loc.source=t.lexer._input.substring(this.loc.start.offset,t.lexer.offset))),this},e.extends=function(t,e){return e.prototype=Object.create(this.prototype),e.extends=this.extends,e.prototype.constructor=e,e.kind=t,e},t.exports=e},4297:(t,e,i)=>{var s=i(4065),n="noop";t.exports=s.extends(n,(function(t,e){s.apply(this,[n,t,e])}))},5859:(t,e,i)=>{var s=i(5514),n="nowdoc";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,t,e,r,h]),this.label=i}))},6985:(t,e,i)=>{var s=i(4065),n="nullkeyword";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.raw=t}))},9302:(t,e,i)=>{var s=i(7427),n="nullsafepropertylookup";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,t,e,i,r])}))},8212:(t,e,i)=>{var s=i(5514),n="number";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,t,e,i,r])}))},864:(t,e,i)=>{var s=i(7427),n="offsetlookup";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,t,e,i,r])}))},8268:(t,e,i)=>{var s=i(839),n="operation";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[t||n,e,i])}))},7190:(t,e,i)=>{var s=i(8533),n="parameter";t.exports=s.extends(n,(function(t,e,i,r,h,o,a,_,l,c){s.apply(this,[n,t,l,c]),this.value=i,this.type=e,this.byref=r,this.variadic=h,this.readonly=o,this.nullable=a,this.flags=_||0,this.attrGroups=[]}))},8519:(t,e,i)=>{var s=i(8276),n="parentreference",r=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.raw=t}));t.exports=r},8822:t=>{t.exports=function(t,e,i){this.line=t,this.column=e,this.offset=i}},4835:(t,e,i)=>{var s=i(8268),n="post";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.type=t,this.what=e}))},2056:(t,e,i)=>{var s=i(8268);t.exports=s.extends("pre",(function(t,e,i,n){s.apply(this,["pre",i,n]),this.type=t,this.what=e}))},4838:(t,e,i)=>{var s=i(839),n="print";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.expression=t}))},7869:(t,e,i)=>{var s=i(4628),n="program";t.exports=s.extends(n,(function(t,e,i,r,h,o){s.apply(this,[n,t,h,o]),this.errors=e,i&&(this.comments=i),r&&(this.tokens=r)}))},1908:(t,e,i)=>{var s=i(9672),n="property";t.exports=s.extends(n,(function(t,e,i,r,h,o,a,_){s.apply(this,[n,a,_]),this.name=t,this.value=e,this.readonly=i,this.nullable=r,this.type=h,this.attrGroups=o}))},170:(t,e,i)=>{var s=i(7427),n="propertylookup";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,t,e,i,r])}))},1091:(t,e,i)=>{var s=i(9672),n="propertystatement",r=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.properties=e,this.parseFlags(i)}));r.prototype.parseFlags=function(t){-1===t[0]?this.visibility="":null===t[0]?this.visibility=null:0===t[0]?this.visibility="public":1===t[0]?this.visibility="protected":2===t[0]&&(this.visibility="private"),this.isStatic=1===t[1]},t.exports=r},8276:(t,e,i)=>{var s=i(4065),n="reference",r=s.extends(n,(function(t,e,i){s.apply(this,[t||n,e,i])}));t.exports=r},1842:(t,e,i)=>{var s=i(839),n="retif";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.test=t,this.trueExpr=e,this.falseExpr=i}))},5739:(t,e,i)=>{var s=i(9672),n="return";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.expr=t}))},1274:(t,e,i)=>{var s=i(8276),n="selfreference",r=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.raw=t}));t.exports=r},4352:(t,e,i)=>{var s=i(839),n="silent";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.expr=t}))},9672:(t,e,i)=>{var s=i(4065),n="statement";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[t||n,e,i])}))},711:(t,e,i)=>{var s=i(9672),n="static";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.variables=t}))},1865:(t,e,i)=>{var s=i(7427),n="staticlookup";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,t,e,i,r])}))},1102:(t,e,i)=>{var s=i(8276),n="staticreference",r=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.raw=t}));t.exports=r},1231:(t,e,i)=>{var s=i(4065),n="staticvariable";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.variable=t,this.defaultValue=e}))},7472:(t,e,i)=>{var s=i(5514),n="string";t.exports=s.extends(n,(function(t,e,i,r,h,o){s.apply(this,[n,e,r,h,o]),this.unicode=i,this.isDoubleQuote=t}))},6133:(t,e,i)=>{var s=i(9672),n="switch";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.test=t,this.body=e,this.shortForm=i}))},1197:(t,e,i)=>{var s=i(9672),n="throw";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.what=t}))},6649:(t,e,i)=>{var s=i(8533),n="trait";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,t,i,r]),this.body=e}))},1837:(t,e,i)=>{var s=i(4065),n="traitalias";t.exports=s.extends(n,(function(t,e,i,r,h,o){s.apply(this,[n,h,o]),this.trait=t,this.method=e,this.as=i,this.visibility="",r&&(0===r[0]?this.visibility="public":1===r[0]?this.visibility="protected":2===r[0]&&(this.visibility="private"))}))},2277:(t,e,i)=>{var s=i(4065),n="traitprecedence";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.trait=t,this.method=e,this.instead=i}))},8010:(t,e,i)=>{var s=i(4065),n="traituse";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.traits=t,this.adaptations=e}))},7579:(t,e,i)=>{var s=i(9672);t.exports=s.extends("try",(function(t,e,i,n,r){s.apply(this,["try",n,r]),this.body=t,this.catches=e,this.always=i}))},3460:(t,e,i)=>{var s=i(8276),n="typereference",r=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.name=t,this.raw=e}));r.types=["int","float","string","bool","object","array","callable","iterable","void","static"],t.exports=r},2702:(t,e,i)=>{var s=i(8268),n="unary";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.type=t,this.what=e}))},514:(t,e,i)=>{var s=i(8533),n="uniontype";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,null,e,i]),this.types=t}))},5684:(t,e,i)=>{var s=i(9672),n="unset";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.variables=t}))},8019:(t,e,i)=>{var s=i(9672),n="usegroup";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.name=t,this.type=e,this.items=i}))},7721:(t,e,i)=>{var s=i(9672),n="useitem",r=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.name=t,this.alias=e,this.type=i}));r.TYPE_CONST="const",r.TYPE_FUNCTION="function",t.exports=r},4369:(t,e,i)=>{var s=i(839),n="variable";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.name=t,this.curly=e||!1}))},40:(t,e,i)=>{var s=i(839),n="variadic";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.what=t}))},4919:(t,e,i)=>{var s=i(4065),n="variadicplaceholder";t.exports=s.extends(n,(function(t,e){s.apply(this,[n,t,e])}))},7676:(t,e,i)=>{var s=i(9672),n="while";t.exports=s.extends(n,(function(t,e,i,r,h){s.apply(this,[n,r,h]),this.test=t,this.body=e,this.shortForm=i}))},2596:(t,e,i)=>{var s=i(839),n="yield";t.exports=s.extends(n,(function(t,e,i,r){s.apply(this,[n,i,r]),this.value=t,this.key=e}))},6744:(t,e,i)=>{var s=i(839),n="yieldfrom";t.exports=s.extends(n,(function(t,e,i){s.apply(this,[n,e,i]),this.value=t}))},5362:(t,e,i)=>{function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}var n=i(9108),r=i(7259),h=i(1906),o=i(8938);function a(t,e){for(var i=Object.keys(t),n=i.length;n--;){var r=i[n],h=t[r];null===h?delete e[r]:"function"==typeof h?e[r]=h.bind(e):Array.isArray(h)?e[r]=Array.isArray(e[r])?e[r].concat(h):h:"object"===s(h)?e[r]="object"===s(e[r])?a(h,e[r]):h:e[r]=h}return e}var _=function(t){if("function"==typeof this)return new this(t);if(this.tokens=h,this.lexer=new n(this),this.ast=new o,this.parser=new r(this.lexer,this.ast),t&&"object"===s(t)){if(t.parser&&(t.lexer||(t.lexer={}),t.parser.version)){if("string"==typeof t.parser.version){var e=t.parser.version.split(".");if(e=100*parseInt(e[0])+parseInt(e[1]),isNaN(e))throw new Error("Bad version number : "+t.parser.version);t.parser.version=e}else if("number"!=typeof t.parser.version)throw new Error("Expecting a number for version");if(t.parser.version<500||t.parser.version>900)throw new Error("Can only handle versions between 5.x to 8.x")}a(t,this),this.lexer.version=this.parser.version}},l=function(t){return"function"==typeof t.write?t.toString():t};_.create=function(t){return new _(t)},_.parseEval=function(t,e){return new _(e).parseEval(t)},_.prototype.parseEval=function(t){return this.lexer.mode_eval=!0,this.lexer.all_tokens=!1,t=l(t),this.parser.parse(t,"eval")},_.parseCode=function(t,e,i){return"object"!==s(e)||i||(i=e,e="unknown"),new _(i).parseCode(t,e)},_.prototype.parseCode=function(t,e){return this.lexer.mode_eval=!1,this.lexer.all_tokens=!1,t=l(t),this.parser.parse(t,e)},_.tokenGetAll=function(t,e){return new _(e).tokenGetAll(t)},_.prototype.tokenGetAll=function(t){this.lexer.mode_eval=!1,this.lexer.all_tokens=!0,t=l(t);var e=this.lexer.EOF,i=this.tokens.values;this.lexer.setInput(t);for(var s=this.lexer.lex()||e,n=[];s!=e;){var r=this.lexer.yytext;Object.prototype.hasOwnProperty.call(i,s)&&(r=[i[s],r,this.lexer.yylloc.first_line]),n.push(r),s=this.lexer.lex()||e}return n},t.exports=_,t.exports.tokens=h,t.exports.lexer=n,t.exports.AST=o,t.exports.parser=r,t.exports.combine=a,t.exports.Engine=_,t.exports.default=_},9108:(t,e,i)=>{function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}var n=function(t){this.engine=t,this.tok=this.engine.tokens.names,this.EOF=1,this.debug=!1,this.all_tokens=!0,this.comment_tokens=!1,this.mode_eval=!1,this.asp_tags=!1,this.short_tags=!1,this.version=803,this.yyprevcol=0,this.keywords={__class__:this.tok.T_CLASS_C,__trait__:this.tok.T_TRAIT_C,__function__:this.tok.T_FUNC_C,__method__:this.tok.T_METHOD_C,__line__:this.tok.T_LINE,__file__:this.tok.T_FILE,__dir__:this.tok.T_DIR,__namespace__:this.tok.T_NS_C,exit:this.tok.T_EXIT,die:this.tok.T_EXIT,function:this.tok.T_FUNCTION,const:this.tok.T_CONST,return:this.tok.T_RETURN,try:this.tok.T_TRY,catch:this.tok.T_CATCH,finally:this.tok.T_FINALLY,throw:this.tok.T_THROW,if:this.tok.T_IF,elseif:this.tok.T_ELSEIF,endif:this.tok.T_ENDIF,else:this.tok.T_ELSE,while:this.tok.T_WHILE,endwhile:this.tok.T_ENDWHILE,do:this.tok.T_DO,for:this.tok.T_FOR,endfor:this.tok.T_ENDFOR,foreach:this.tok.T_FOREACH,endforeach:this.tok.T_ENDFOREACH,declare:this.tok.T_DECLARE,enddeclare:this.tok.T_ENDDECLARE,instanceof:this.tok.T_INSTANCEOF,as:this.tok.T_AS,switch:this.tok.T_SWITCH,endswitch:this.tok.T_ENDSWITCH,case:this.tok.T_CASE,default:this.tok.T_DEFAULT,break:this.tok.T_BREAK,continue:this.tok.T_CONTINUE,goto:this.tok.T_GOTO,echo:this.tok.T_ECHO,print:this.tok.T_PRINT,class:this.tok.T_CLASS,interface:this.tok.T_INTERFACE,trait:this.tok.T_TRAIT,enum:this.tok.T_ENUM,extends:this.tok.T_EXTENDS,implements:this.tok.T_IMPLEMENTS,new:this.tok.T_NEW,clone:this.tok.T_CLONE,var:this.tok.T_VAR,eval:this.tok.T_EVAL,include:this.tok.T_INCLUDE,include_once:this.tok.T_INCLUDE_ONCE,require:this.tok.T_REQUIRE,require_once:this.tok.T_REQUIRE_ONCE,namespace:this.tok.T_NAMESPACE,use:this.tok.T_USE,insteadof:this.tok.T_INSTEADOF,global:this.tok.T_GLOBAL,isset:this.tok.T_ISSET,empty:this.tok.T_EMPTY,__halt_compiler:this.tok.T_HALT_COMPILER,static:this.tok.T_STATIC,abstract:this.tok.T_ABSTRACT,final:this.tok.T_FINAL,private:this.tok.T_PRIVATE,protected:this.tok.T_PROTECTED,public:this.tok.T_PUBLIC,unset:this.tok.T_UNSET,list:this.tok.T_LIST,array:this.tok.T_ARRAY,callable:this.tok.T_CALLABLE,or:this.tok.T_LOGICAL_OR,and:this.tok.T_LOGICAL_AND,xor:this.tok.T_LOGICAL_XOR,match:this.tok.T_MATCH,readonly:this.tok.T_READ_ONLY},this.castKeywords={int:this.tok.T_INT_CAST,integer:this.tok.T_INT_CAST,real:this.tok.T_DOUBLE_CAST,double:this.tok.T_DOUBLE_CAST,float:this.tok.T_DOUBLE_CAST,string:this.tok.T_STRING_CAST,binary:this.tok.T_STRING_CAST,array:this.tok.T_ARRAY_CAST,object:this.tok.T_OBJECT_CAST,bool:this.tok.T_BOOL_CAST,boolean:this.tok.T_BOOL_CAST,unset:this.tok.T_UNSET_CAST}};n.prototype.setInput=function(t){return this._input=t,this.size=t.length,this.yylineno=1,this.offset=0,this.yyprevcol=0,this.yytext="",this.yylloc={first_offset:0,first_line:1,first_column:0,prev_offset:0,prev_line:1,prev_column:0,last_line:1,last_column:0},this.tokens=[],this.version>703?this.keywords.fn=this.tok.T_FN:delete this.keywords.fn,this.done=this.offset>=this.size,!this.all_tokens&&this.mode_eval?(this.conditionStack=["INITIAL"],this.begin("ST_IN_SCRIPTING")):(this.conditionStack=[],this.begin("INITIAL")),this.heredoc_label={label:"",length:0,indentation:0,indentation_uses_spaces:!1,finished:!1,first_encaps_node:!1,toString:function(){this.label}},this},n.prototype.input=function(){var t=this._input[this.offset];return t?(this.yytext+=t,this.offset++,"\r"===t&&"\n"===this._input[this.offset]&&(this.yytext+="\n",this.offset++),"\n"===t||"\r"===t?(this.yylloc.last_line=++this.yylineno,this.yyprevcol=this.yylloc.last_column,this.yylloc.last_column=0):this.yylloc.last_column++,t):""},n.prototype.unput=function(t){if(1===t)this.offset--,"\n"===this._input[this.offset]&&"\r"===this._input[this.offset-1]&&(this.offset--,t++),"\r"===this._input[this.offset]||"\n"===this._input[this.offset]?(this.yylloc.last_line--,this.yylineno--,this.yylloc.last_column=this.yyprevcol):this.yylloc.last_column--,this.yytext=this.yytext.substring(0,this.yytext.length-t);else if(t>0)if(this.offset-=t,t<this.yytext.length){this.yytext=this.yytext.substring(0,this.yytext.length-t),this.yylloc.last_line=this.yylloc.first_line,this.yylloc.last_column=this.yyprevcol=this.yylloc.first_column;for(var e=0;e<this.yytext.length;e++){var i=this.yytext[e];"\r"===i?(i=this.yytext[++e],this.yyprevcol=this.yylloc.last_column,this.yylloc.last_line++,this.yylloc.last_column=0,"\n"!==i&&("\r"===i?this.yylloc.last_line++:this.yylloc.last_column++)):"\n"===i?(this.yyprevcol=this.yylloc.last_column,this.yylloc.last_line++,this.yylloc.last_column=0):this.yylloc.last_column++}this.yylineno=this.yylloc.last_line}else this.yytext="",this.yylloc.last_line=this.yylineno=this.yylloc.first_line,this.yylloc.last_column=this.yylloc.first_column;return this},n.prototype.tryMatch=function(t){return t===this.ahead(t.length)},n.prototype.tryMatchCaseless=function(t){return t===this.ahead(t.length).toLowerCase()},n.prototype.ahead=function(t){var e=this._input.substring(this.offset,this.offset+t);return"\r"===e[e.length-1]&&"\n"===this._input[this.offset+t+1]&&(e+="\n"),e},n.prototype.consume=function(t){for(var e=0;e<t;e++){var i=this._input[this.offset];if(!i)break;this.yytext+=i,this.offset++,"\r"===i&&"\n"===this._input[this.offset]&&(this.yytext+="\n",this.offset++,e++),"\n"===i||"\r"===i?(this.yylloc.last_line=++this.yylineno,this.yyprevcol=this.yylloc.last_column,this.yylloc.last_column=0):this.yylloc.last_column++}return this},n.prototype.getState=function(){return{yytext:this.yytext,offset:this.offset,yylineno:this.yylineno,yyprevcol:this.yyprevcol,yylloc:{first_offset:this.yylloc.first_offset,first_line:this.yylloc.first_line,first_column:this.yylloc.first_column,last_line:this.yylloc.last_line,last_column:this.yylloc.last_column},heredoc_label:this.heredoc_label}},n.prototype.setState=function(t){return this.yytext=t.yytext,this.offset=t.offset,this.yylineno=t.yylineno,this.yyprevcol=t.yyprevcol,this.yylloc=t.yylloc,t.heredoc_label&&(this.heredoc_label=t.heredoc_label),this},n.prototype.appendToken=function(t,e){return this.tokens.push([t,e]),this},n.prototype.lex=function(){this.yylloc.prev_offset=this.offset,this.yylloc.prev_line=this.yylloc.last_line,this.yylloc.prev_column=this.yylloc.last_column;var t=this.next()||this.lex();if(!this.all_tokens){for(;t===this.tok.T_WHITESPACE||!this.comment_tokens&&(t===this.tok.T_COMMENT||t===this.tok.T_DOC_COMMENT)||t===this.tok.T_OPEN_TAG;)t=this.next()||this.lex();if(t==this.tok.T_OPEN_TAG_WITH_ECHO)return this.tok.T_ECHO;if(t===this.tok.T_CLOSE_TAG)return";"}return this.yylloc.prev_offset||(this.yylloc.prev_offset=this.yylloc.first_offset,this.yylloc.prev_line=this.yylloc.first_line,this.yylloc.prev_column=this.yylloc.first_column),t},n.prototype.begin=function(t){if(this.conditionStack.push(t),this.curCondition=t,this.stateCb=this["match"+t],"function"!=typeof this.stateCb)throw new Error('Undefined condition state "'+t+'"');return this},n.prototype.popState=function(){var t=this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0];if(this.curCondition=this.conditionStack[this.conditionStack.length-1],this.stateCb=this["match"+this.curCondition],"function"!=typeof this.stateCb)throw new Error('Undefined condition state "'+this.curCondition+'"');return t},n.prototype.next=function(){var t;if(this._input||(this.done=!0),this.yylloc.first_offset=this.offset,this.yylloc.first_line=this.yylloc.last_line,this.yylloc.first_column=this.yylloc.last_column,this.yytext="",this.done)return this.yylloc.prev_offset=this.yylloc.first_offset,this.yylloc.prev_line=this.yylloc.first_line,this.yylloc.prev_column=this.yylloc.first_column,this.EOF;if(this.tokens.length>0?("object"===s((t=this.tokens.shift())[1])?this.setState(t[1]):this.consume(t[1]),t=t[0]):t=this.stateCb.apply(this,[]),this.offset>=this.size&&0===this.tokens.length&&(this.done=!0),this.debug){var e=t;e="number"==typeof e?this.engine.tokens.values[e]:'"'+e+'"';var i=new Error(e+"\tfrom "+this.yylloc.first_line+","+this.yylloc.first_column+"\t - to "+this.yylloc.last_line+","+this.yylloc.last_column+'\t"'+this.yytext+'"');console.error(i.stack)}return t},[i(9671),i(2429),i(3683),i(6545),i(3810),i(8510),i(4401),i(4349),i(8582)].forEach((function(t){for(var e in t)n.prototype[e]=t[e]})),t.exports=n},9671:t=>{t.exports={attributeIndex:0,attributeListDepth:{},matchST_ATTRIBUTE:function(){var t=this.input();if(this.is_WHITESPACE()){do{t=this.input()}while(this.is_WHITESPACE());return this.unput(1),null}switch(t){case"]":return 0===this.attributeListDepth[this.attributeIndex]?(delete this.attributeListDepth[this.attributeIndex],this.attributeIndex--,this.popState()):this.attributeListDepth[this.attributeIndex]--,"]";case"(":case")":case":":case"=":case"|":case"&":case"^":case"-":case"+":case"*":case"%":case"~":case"<":case">":case"!":case".":return this.consume_TOKEN();case"[":return this.attributeListDepth[this.attributeIndex]++,"[";case",":return",";case'"':return this.ST_DOUBLE_QUOTES();case"'":return this.T_CONSTANT_ENCAPSED_STRING();case"/":return"/"===this._input[this.offset]?this.T_COMMENT():"*"===this._input[this.offset]?(this.input(),this.T_DOC_COMMENT()):this.consume_TOKEN()}if(this.is_LABEL_START()||"\\"===t){for(;this.offset<this.size;){var e=this.input();if(!this.is_LABEL()&&"\\"!==e){e&&this.unput(1);break}}return this.T_STRING()}if(this.is_NUM())return this.consume_NUM();throw new Error('Bad terminal sequence "'.concat(t,'" at line ').concat(this.yylineno," (offset ").concat(this.offset,")"))}}},2429:t=>{t.exports={T_COMMENT:function(){for(;this.offset<this.size;){var t=this.input();if("\n"===t||"\r"===t)return this.tok.T_COMMENT;if("?"===t&&!this.aspTagMode&&">"===this._input[this.offset])return this.unput(1),this.tok.T_COMMENT;if("%"===t&&this.aspTagMode&&">"===this._input[this.offset])return this.unput(1),this.tok.T_COMMENT}return this.tok.T_COMMENT},T_DOC_COMMENT:function(){var t=this.input(),e=this.tok.T_COMMENT;if("*"===t){if(t=this.input(),this.is_WHITESPACE()&&(e=this.tok.T_DOC_COMMENT),"/"===t)return e;this.unput(1)}for(;this.offset<this.size;)if("*"===(t=this.input())&&"/"===this._input[this.offset]){this.input();break}return e}}},3683:t=>{t.exports={nextINITIAL:function(){return this.conditionStack.length>1&&"INITIAL"===this.conditionStack[this.conditionStack.length-1]?this.popState():this.begin("ST_IN_SCRIPTING"),this},matchINITIAL:function(){for(;this.offset<this.size;){var t=this.input();if("<"==t)if("?"==(t=this.ahead(1))){if(this.tryMatch("?=")){this.unput(1).appendToken(this.tok.T_OPEN_TAG_WITH_ECHO,3).nextINITIAL();break}if(this.tryMatchCaseless("?php")&&(" "===(t=this._input[this.offset+4])||"\t"===t||"\n"===t||"\r"===t)){this.unput(1).appendToken(this.tok.T_OPEN_TAG,6).nextINITIAL();break}if(this.short_tags){this.unput(1).appendToken(this.tok.T_OPEN_TAG,2).nextINITIAL();break}}else if(this.asp_tags&&"%"==t){if(this.tryMatch("%=")){this.aspTagMode=!0,this.unput(1).appendToken(this.tok.T_OPEN_TAG_WITH_ECHO,3).nextINITIAL();break}this.aspTagMode=!0,this.unput(1).appendToken(this.tok.T_OPEN_TAG,2).nextINITIAL();break}}return this.yytext.length>0&&this.tok.T_INLINE_HTML}}},6545:t=>{t.exports={consume_NUM:function(){var t=this.yytext[0],e="."===t;if("0"===t)if("x"===(t=this.input())||"X"===t){if("_"!==(t=this.input())&&this.is_HEX())return this.consume_HNUM();this.unput(t?2:1)}else if("b"===t||"B"===t){if("_"!==(t=this.input())&&"0"===t||"1"===t)return this.consume_BNUM();this.unput(t?2:1)}else if("o"===t||"O"===t){if("_"!==(t=this.input())&&this.is_OCTAL())return this.consume_ONUM();this.unput(t?2:1)}else this.is_NUM()||t&&this.unput(1);for(;this.offset<this.size;){var i=t;if("_"===(t=this.input())){if("_"===i){this.unput(2);break}if("."===i){this.unput(1);break}if("e"===i||"E"===i){this.unput(2);break}}else{if("."===t){if(e){this.unput(1);break}if("_"===i){this.unput(2);break}e=!0;continue}if("e"===t||"E"===t){if("_"===i){this.unput(1);break}var s=2;if("+"!==(t=this.input())&&"-"!==t||(s=3,t=this.input()),this.is_NUM_START())return this.consume_LNUM(),this.tok.T_DNUMBER;this.unput(t?s:s-1);break}}if(!this.is_NUM()){t&&this.unput(1);break}}return e?this.tok.T_DNUMBER:this.yytext.length<18||this.yytext.length<19||19==this.yytext.length&&this.yytext<"9223372036854775808"?this.tok.T_LNUMBER:this.tok.T_DNUMBER},consume_HNUM:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_HEX()){t&&this.unput(1);break}}return this.tok.T_LNUMBER},consume_LNUM:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_NUM()){t&&this.unput(1);break}}return this.tok.T_LNUMBER},consume_BNUM:function(){for(var t;this.offset<this.size;)if("0"!==(t=this.input())&&"1"!==t&&"_"!==t){t&&this.unput(1);break}return this.tok.T_LNUMBER},consume_ONUM:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_OCTAL()){t&&this.unput(1);break}}return this.tok.T_LNUMBER}}},3810:t=>{t.exports={matchST_LOOKING_FOR_PROPERTY:function(){var t=this.input();if("-"===t){if(">"===(t=this.input()))return this.tok.T_OBJECT_OPERATOR;t&&this.unput(1)}else{if(this.is_WHITESPACE())return this.tok.T_WHITESPACE;if(this.is_LABEL_START())return this.consume_LABEL(),this.popState(),this.tok.T_STRING}return this.popState(),t&&this.unput(1),!1},matchST_LOOKING_FOR_VARNAME:function(){var t=this.input();if(this.popState(),this.begin("ST_IN_SCRIPTING"),this.is_LABEL_START()){if(this.consume_LABEL(),"["===(t=this.input())||"}"===t)return this.unput(1),this.tok.T_STRING_VARNAME;this.unput(this.yytext.length)}else t&&this.unput(1);return!1},matchST_VAR_OFFSET:function(){var t=this.input();if(this.is_NUM_START())return this.consume_NUM(),this.tok.T_NUM_STRING;if("]"===t)return this.popState(),"]";if("$"===t){if(this.input(),this.is_LABEL_START())return this.consume_LABEL(),this.tok.T_VARIABLE;throw new Error("Unexpected terminal")}if(this.is_LABEL_START())return this.consume_LABEL(),this.tok.T_STRING;if(this.is_WHITESPACE()||"\\"===t||"'"===t||"#"===t)return this.tok.T_ENCAPSED_AND_WHITESPACE;if("["===t||"{"===t||"}"===t||'"'===t||"`"===t||this.is_TOKEN())return t;throw new Error("Unexpected terminal")}}},8510:t=>{t.exports={matchST_IN_SCRIPTING:function(){var t=this.input();switch(t){case" ":case"\t":case"\n":case"\r":case"\r\n":return this.T_WHITESPACE();case"#":return this.version>=800&&"["===this._input[this.offset]?(this.input(),this.attributeListDepth[++this.attributeIndex]=0,this.begin("ST_ATTRIBUTE"),this.tok.T_ATTRIBUTE):this.T_COMMENT();case"/":return"/"===this._input[this.offset]?this.T_COMMENT():"*"===this._input[this.offset]?(this.input(),this.T_DOC_COMMENT()):this.consume_TOKEN();case"'":return this.T_CONSTANT_ENCAPSED_STRING();case'"':return this.ST_DOUBLE_QUOTES();case"`":return this.begin("ST_BACKQUOTE"),"`";case"?":if(!this.aspTagMode&&this.tryMatch(">")){this.input();var e=this._input[this.offset];return"\n"!==e&&"\r"!==e||this.input(),this.conditionStack.length>1&&this.begin("INITIAL"),this.tok.T_CLOSE_TAG}return this.consume_TOKEN();case"%":return this.aspTagMode&&">"===this._input[this.offset]?(this.input(),"\n"!==(t=this._input[this.offset])&&"\r"!==t||this.input(),this.aspTagMode=!1,this.conditionStack.length>1&&this.begin("INITIAL"),this.tok.T_CLOSE_TAG):this.consume_TOKEN();case"{":return this.begin("ST_IN_SCRIPTING"),"{";case"}":return this.conditionStack.length>2&&this.popState(),"}";default:if("."===t){if(t=this.input(),this.is_NUM_START())return this.consume_NUM();t&&this.unput(1)}if(this.is_NUM_START())return this.consume_NUM();if(this.is_LABEL_START())return this.consume_LABEL().T_STRING();if(this.is_TOKEN())return this.consume_TOKEN()}throw new Error('Bad terminal sequence "'+t+'" at line '+this.yylineno+" (offset "+this.offset+")")},T_WHITESPACE:function(){for(;this.offset<this.size;){var t=this.input();if(" "!==t&&"\t"!==t&&"\n"!==t&&"\r"!==t){t&&this.unput(1);break}}return this.tok.T_WHITESPACE}}},4401:t=>{var e=["\n","\r"],i=["\n","\r",";"],s=i.concat(["\t"," ",",","]",")","/","=","!"]);t.exports={T_CONSTANT_ENCAPSED_STRING:function(){for(var t;this.offset<this.size;)if("\\"==(t=this.input()))this.input();else if("'"==t)break;return this.tok.T_CONSTANT_ENCAPSED_STRING},is_HEREDOC:function(){var t=this.offset;if("<"===this._input[this.offset-1]&&"<"===this._input[this.offset]&&"<"===this._input[this.offset+1]){if(this.offset+=3,this.is_TABSPACE())for(;this.offset<this.size&&(this.offset++,this.is_TABSPACE()););var i=this._input[this.offset-1];if("'"===i||'"'===i?this.offset++:i=null,this.is_LABEL_START()){for(var s=this.offset-1;this.offset<this.size&&(this.offset++,this.is_LABEL()););var n=this._input.substring(s,this.offset-1);if((!i||i===this._input[this.offset-1])&&(i&&this.offset++,e.includes(this._input[this.offset-1])))return this.heredoc_label.label=n,this.heredoc_label.length=n.length,this.heredoc_label.finished=!1,s=this.offset-t,this.offset=t,this.consume(s),"'"===i?this.begin("ST_NOWDOC"):this.begin("ST_HEREDOC"),this.prematch_ENDOFDOC(),this.tok.T_START_HEREDOC}}return this.offset=t,!1},ST_DOUBLE_QUOTES:function(){for(var t;this.offset<this.size;)if("\\"==(t=this.input()))this.input();else{if('"'==t)break;if("$"==t){if("{"==(t=this.input())||this.is_LABEL_START()){this.unput(2);break}t&&this.unput(1)}else if("{"==t){if("$"==(t=this.input())){this.unput(2);break}t&&this.unput(1)}}if('"'==t)return this.tok.T_CONSTANT_ENCAPSED_STRING;var e=1;return"b"!==this.yytext[0]&&"B"!==this.yytext[0]||(e=2),this.yytext.length>2&&this.appendToken(this.tok.T_ENCAPSED_AND_WHITESPACE,this.yytext.length-e),this.unput(this.yytext.length-e),this.begin("ST_DOUBLE_QUOTES"),this.yytext},isDOC_MATCH:function(t,n){var r=this._input[t-2];if(!e.includes(r))return!1;var h=!1,o=!1,a=0,_=this._input[t-1];if(this.version>=703){for(;"\t"===_||" "===_;)" "===_?h=!0:"\t"===_&&(o=!0),_=this._input[t+a],a++;if(t+=a,e.includes(this._input[t-1]))return!1}if(this._input.substring(t-1,t-1+this.heredoc_label.length)===this.heredoc_label.label){var l=this._input[t-1+this.heredoc_label.length];if((this.version>=703?s:i).includes(l)){if(n){if(this.consume(a),h&&o)throw new Error("Parse error:  mixing spaces and tabs in ending marker at line "+this.yylineno+" (offset "+this.offset+")")}else this.heredoc_label.indentation=a,this.heredoc_label.indentation_uses_spaces=h,this.heredoc_label.first_encaps_node=!0;return!0}}return!1},prematch_ENDOFDOC:function(){this.heredoc_label.indentation_uses_spaces=!1,this.heredoc_label.indentation=0,this.heredoc_label.first_encaps_node=!0;for(var t=this.offset+1;t<this._input.length;){if(this.isDOC_MATCH(t,!1))return;if(!e.includes(this._input[t-1]))for(;!e.includes(this._input[t++])&&t<this._input.length;);t++}},matchST_NOWDOC:function(){if(this.isDOC_MATCH(this.offset,!0))return this.consume(this.heredoc_label.length),this.popState(),this.tok.T_END_HEREDOC;for(var t=this._input[this.offset-1];this.offset<this.size;)if(e.includes(t)){if(t=this.input(),this.isDOC_MATCH(this.offset,!0))return this.unput(1).popState(),this.appendToken(this.tok.T_END_HEREDOC,this.heredoc_label.length),this.tok.T_ENCAPSED_AND_WHITESPACE}else t=this.input();return this.tok.T_ENCAPSED_AND_WHITESPACE},matchST_HEREDOC:function(){var t=this.input();if(this.isDOC_MATCH(this.offset,!0))return this.consume(this.heredoc_label.length-1),this.popState(),this.tok.T_END_HEREDOC;for(;this.offset<this.size;)if("\\"===t&&(t=this.input(),e.includes(t)||(t=this.input())),e.includes(t)){if(t=this.input(),this.isDOC_MATCH(this.offset,!0))return this.unput(1).popState(),this.appendToken(this.tok.T_END_HEREDOC,this.heredoc_label.length),this.tok.T_ENCAPSED_AND_WHITESPACE}else if("$"===t){if("{"===(t=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),this.yytext.length>2?(this.appendToken(this.tok.T_DOLLAR_OPEN_CURLY_BRACES,2),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START()){var i=this.offset,s=this.consume_VARIABLE();return this.yytext.length>this.offset-i+2?(this.appendToken(s,this.offset-i+2),this.unput(this.offset-i+2),this.tok.T_ENCAPSED_AND_WHITESPACE):s}}else if("{"===t){if("$"===(t=this.input()))return this.begin("ST_IN_SCRIPTING"),this.yytext.length>2?(this.appendToken(this.tok.T_CURLY_OPEN,1),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):(this.unput(1),this.tok.T_CURLY_OPEN)}else t=this.input();return this.tok.T_ENCAPSED_AND_WHITESPACE},consume_VARIABLE:function(){this.consume_LABEL();var t=this.input();if("["==t)return this.unput(1),this.begin("ST_VAR_OFFSET"),this.tok.T_VARIABLE;if("-"===t){if(">"===this.input())return this.input(),this.is_LABEL_START()&&this.begin("ST_LOOKING_FOR_PROPERTY"),this.unput(3),this.tok.T_VARIABLE;this.unput(2)}else t&&this.unput(1);return this.tok.T_VARIABLE},matchST_BACKQUOTE:function(){var t=this.input();if("$"===t){if("{"===(t=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START())return this.consume_VARIABLE()}else if("{"===t){if("$"===this._input[this.offset])return this.begin("ST_IN_SCRIPTING"),this.tok.T_CURLY_OPEN}else if("`"===t)return this.popState(),"`";for(;this.offset<this.size;){if("\\"===t)this.input();else{if("`"===t){this.unput(1),this.popState(),this.appendToken("`",1);break}if("$"===t){if("{"===(t=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),this.yytext.length>2?(this.appendToken(this.tok.T_DOLLAR_OPEN_CURLY_BRACES,2),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START()){var e=this.offset,i=this.consume_VARIABLE();return this.yytext.length>this.offset-e+2?(this.appendToken(i,this.offset-e+2),this.unput(this.offset-e+2),this.tok.T_ENCAPSED_AND_WHITESPACE):i}continue}if("{"===t){if("$"===(t=this.input()))return this.begin("ST_IN_SCRIPTING"),this.yytext.length>2?(this.appendToken(this.tok.T_CURLY_OPEN,1),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):(this.unput(1),this.tok.T_CURLY_OPEN);continue}}t=this.input()}return this.tok.T_ENCAPSED_AND_WHITESPACE},matchST_DOUBLE_QUOTES:function(){var t=this.input();if("$"===t){if("{"===(t=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START())return this.consume_VARIABLE()}else if("{"===t){if("$"===this._input[this.offset])return this.begin("ST_IN_SCRIPTING"),this.tok.T_CURLY_OPEN}else if('"'===t)return this.popState(),'"';for(;this.offset<this.size;){if("\\"===t)this.input();else{if('"'===t){this.unput(1),this.popState(),this.appendToken('"',1);break}if("$"===t){if("{"===(t=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),this.yytext.length>2?(this.appendToken(this.tok.T_DOLLAR_OPEN_CURLY_BRACES,2),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START()){var e=this.offset,i=this.consume_VARIABLE();return this.yytext.length>this.offset-e+2?(this.appendToken(i,this.offset-e+2),this.unput(this.offset-e+2),this.tok.T_ENCAPSED_AND_WHITESPACE):i}t&&this.unput(1)}else if("{"===t){if("$"===(t=this.input()))return this.begin("ST_IN_SCRIPTING"),this.yytext.length>2?(this.appendToken(this.tok.T_CURLY_OPEN,1),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):(this.unput(1),this.tok.T_CURLY_OPEN);t&&this.unput(1)}}t=this.input()}return this.tok.T_ENCAPSED_AND_WHITESPACE}}},4349:t=>{t.exports={T_STRING:function(){var t=this.yytext.toLowerCase(),e=this.keywords[t];if("number"!=typeof e)if("yield"===t)this.version>=700&&this.tryMatch(" from")?(this.consume(5),e=this.tok.T_YIELD_FROM):e=this.tok.T_YIELD;else if(e=this.tok.T_STRING,"b"===t||"B"===t){var i=this.input();if('"'===i)return this.ST_DOUBLE_QUOTES();if("'"===i)return this.T_CONSTANT_ENCAPSED_STRING();i&&this.unput(1)}if(e===this.tok.T_ENUM){if(this.version<801)return this.tok.T_STRING;for(var s=this.offset,n=this.input();" "==n;)n=this.input();var r=!1;if(this.is_LABEL_START()){for(;this.is_LABEL();)n+=this.input();var h=n.slice(0,-1).toLowerCase();r="extends"!==h&&"implements"!==h}return this.unput(this.offset-s),r?this.tok.T_ENUM:this.tok.T_STRING}if(this.offset<this.size&&e!==this.tok.T_YIELD_FROM){var o=this.input();if("\\"===o){e="namespace"===t?this.tok.T_NAME_RELATIVE:this.tok.T_NAME_QUALIFIED;do{if("{"===this._input[this.offset]){this.input();break}this.consume_LABEL(),o=this.input()}while("\\"===o)}o&&this.unput(1)}return e},consume_TOKEN:function(){var t=this._input[this.offset-1],e=this.tokenTerminals[t];return e?e.apply(this,[]):this.yytext},tokenTerminals:{$:function(){return this.offset++,this.is_LABEL_START()?(this.offset--,this.consume_LABEL(),this.tok.T_VARIABLE):(this.offset--,"$")},"-":function(){var t=this._input[this.offset];return">"===t?(this.begin("ST_LOOKING_FOR_PROPERTY").input(),this.tok.T_OBJECT_OPERATOR):"-"===t?(this.input(),this.tok.T_DEC):"="===t?(this.input(),this.tok.T_MINUS_EQUAL):"-"},"\\":function(){if(this.offset<this.size){if(this.input(),this.is_LABEL_START()){var t;do{if("{"===this._input[this.offset]){this.input();break}this.consume_LABEL(),t=this.input()}while("\\"===t);return this.unput(1),this.tok.T_NAME_FULLY_QUALIFIED}this.unput(1)}return this.tok.T_NS_SEPARATOR},"/":function(){return"="===this._input[this.offset]?(this.input(),this.tok.T_DIV_EQUAL):"/"},":":function(){return":"===this._input[this.offset]?(this.input(),this.tok.T_DOUBLE_COLON):":"},"(":function(){var t=this.offset;if(this.input(),this.is_TABSPACE()&&this.consume_TABSPACE().input(),this.is_LABEL_START()){var e=this.yytext.length;this.consume_LABEL();var i=this.yytext.substring(e-1).toLowerCase(),s=this.castKeywords[i];if("number"==typeof s&&(this.input(),this.is_TABSPACE()&&this.consume_TABSPACE().input(),")"===this._input[this.offset-1]))return s}return this.unput(this.offset-t),"("},"=":function(){var t=this._input[this.offset];return">"===t?(this.input(),this.tok.T_DOUBLE_ARROW):"="===t?"="===this._input[this.offset+1]?(this.consume(2),this.tok.T_IS_IDENTICAL):(this.input(),this.tok.T_IS_EQUAL):"="},"+":function(){var t=this._input[this.offset];return"+"===t?(this.input(),this.tok.T_INC):"="===t?(this.input(),this.tok.T_PLUS_EQUAL):"+"},"!":function(){return"="===this._input[this.offset]?"="===this._input[this.offset+1]?(this.consume(2),this.tok.T_IS_NOT_IDENTICAL):(this.input(),this.tok.T_IS_NOT_EQUAL):"!"},"?":function(){return this.version>=700&&"?"===this._input[this.offset]?this.version>=704&&"="===this._input[this.offset+1]?(this.consume(2),this.tok.T_COALESCE_EQUAL):(this.input(),this.tok.T_COALESCE):this.version>=800&&"-"===this._input[this.offset]&&">"===this._input[this.offset+1]?(this.consume(1),this.begin("ST_LOOKING_FOR_PROPERTY").input(),this.tok.T_NULLSAFE_OBJECT_OPERATOR):"?"},"<":function(){var t=this._input[this.offset];return"<"===t?"="===(t=this._input[this.offset+1])?(this.consume(2),this.tok.T_SL_EQUAL):"<"===t&&this.is_HEREDOC()?this.tok.T_START_HEREDOC:(this.input(),this.tok.T_SL):"="===t?(this.input(),this.version>=700&&">"===this._input[this.offset]?(this.input(),this.tok.T_SPACESHIP):this.tok.T_IS_SMALLER_OR_EQUAL):">"===t?(this.input(),this.tok.T_IS_NOT_EQUAL):"<"},">":function(){var t=this._input[this.offset];return"="===t?(this.input(),this.tok.T_IS_GREATER_OR_EQUAL):">"===t?"="===(t=this._input[this.offset+1])?(this.consume(2),this.tok.T_SR_EQUAL):(this.input(),this.tok.T_SR):">"},"*":function(){var t=this._input[this.offset];return"="===t?(this.input(),this.tok.T_MUL_EQUAL):"*"===t?(this.input(),"="===this._input[this.offset]?(this.input(),this.tok.T_POW_EQUAL):this.tok.T_POW):"*"},".":function(){var t=this._input[this.offset];return"="===t?(this.input(),this.tok.T_CONCAT_EQUAL):"."===t&&"."===this._input[this.offset+1]?(this.consume(2),this.tok.T_ELLIPSIS):"."},"%":function(){return"="===this._input[this.offset]?(this.input(),this.tok.T_MOD_EQUAL):"%"},"&":function(){var t=this._input[this.offset];return"="===t?(this.input(),this.tok.T_AND_EQUAL):"&"===t?(this.input(),this.tok.T_BOOLEAN_AND):"&"},"|":function(){var t=this._input[this.offset];return"="===t?(this.input(),this.tok.T_OR_EQUAL):"|"===t?(this.input(),this.tok.T_BOOLEAN_OR):"|"},"^":function(){return"="===this._input[this.offset]?(this.input(),this.tok.T_XOR_EQUAL):"^"}}}},8582:t=>{t.exports={is_NUM:function(){var t=this._input.charCodeAt(this.offset-1);return t>47&&t<58||95===t},is_NUM_START:function(){var t=this._input.charCodeAt(this.offset-1);return t>47&&t<58},is_LABEL:function(){var t=this._input.charCodeAt(this.offset-1);return t>96&&t<123||t>64&&t<91||95===t||t>47&&t<58||t>126},is_LABEL_START:function(){var t=this._input.charCodeAt(this.offset-1);return t>64&&t<91||t>96&&t<123||95===t||t>126},consume_LABEL:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_LABEL()){t&&this.unput(1);break}}return this},is_TOKEN:function(){var t=this._input[this.offset-1];return-1!==";:,.\\[]()|^&+-/*=%!~$<>?@".indexOf(t)},is_WHITESPACE:function(){var t=this._input[this.offset-1];return" "===t||"\t"===t||"\n"===t||"\r"===t},is_TABSPACE:function(){var t=this._input[this.offset-1];return" "===t||"\t"===t},consume_TABSPACE:function(){for(;this.offset<this.size;){var t=this.input();if(!this.is_TABSPACE()){t&&this.unput(1);break}}return this},is_HEX:function(){var t=this._input.charCodeAt(this.offset-1);return t>47&&t<58||t>64&&t<71||t>96&&t<103||95===t},is_OCTAL:function(){var t=this._input.charCodeAt(this.offset-1);return t>47&&t<56||95===t}}},7259:(t,e,i)=>{var s=i(8822);function n(t){return"."!=t&&","!=t&&!isNaN(parseFloat(t))&&isFinite(t)}var r=function(t,e){this.lexer=t,this.ast=e,this.tok=t.tok,this.EOF=t.EOF,this.token=null,this.prev=null,this.debug=!1,this.version=803,this.extractDoc=!1,this.extractTokens=!1,this.suppressErrors=!1;var i=function(t){return[t,null]};this.entries={IDENTIFIER:new Map([this.tok.T_ABSTRACT,this.tok.T_ARRAY,this.tok.T_AS,this.tok.T_BREAK,this.tok.T_CALLABLE,this.tok.T_CASE,this.tok.T_CATCH,this.tok.T_CLASS,this.tok.T_CLASS_C,this.tok.T_CLONE,this.tok.T_CONST,this.tok.T_CONTINUE,this.tok.T_DECLARE,this.tok.T_DEFAULT,this.tok.T_DIR,this.tok.T_DO,this.tok.T_ECHO,this.tok.T_ELSE,this.tok.T_ELSEIF,this.tok.T_EMPTY,this.tok.T_ENDDECLARE,this.tok.T_ENDFOR,this.tok.T_ENDFOREACH,this.tok.T_ENDIF,this.tok.T_ENDSWITCH,this.tok.T_ENDWHILE,this.tok.T_ENUM,this.tok.T_EVAL,this.tok.T_EXIT,this.tok.T_EXTENDS,this.tok.T_FILE,this.tok.T_FINAL,this.tok.T_FINALLY,this.tok.T_FN,this.tok.T_FOR,this.tok.T_FOREACH,this.tok.T_FUNC_C,this.tok.T_FUNCTION,this.tok.T_GLOBAL,this.tok.T_GOTO,this.tok.T_IF,this.tok.T_IMPLEMENTS,this.tok.T_INCLUDE,this.tok.T_INCLUDE_ONCE,this.tok.T_INSTANCEOF,this.tok.T_INSTEADOF,this.tok.T_INTERFACE,this.tok.T_ISSET,this.tok.T_LINE,this.tok.T_LIST,this.tok.T_LOGICAL_AND,this.tok.T_LOGICAL_OR,this.tok.T_LOGICAL_XOR,this.tok.T_MATCH,this.tok.T_METHOD_C,this.tok.T_NAMESPACE,this.tok.T_NEW,this.tok.T_NS_C,this.tok.T_PRINT,this.tok.T_PRIVATE,this.tok.T_PROTECTED,this.tok.T_PUBLIC,this.tok.T_READ_ONLY,this.tok.T_REQUIRE,this.tok.T_REQUIRE_ONCE,this.tok.T_RETURN,this.tok.T_STATIC,this.tok.T_SWITCH,this.tok.T_THROW,this.tok.T_TRAIT,this.tok.T_TRY,this.tok.T_UNSET,this.tok.T_USE,this.tok.T_VAR,this.tok.T_WHILE,this.tok.T_YIELD].map(i)),VARIABLE:new Map([this.tok.T_VARIABLE,"$","&",this.tok.T_STRING,this.tok.T_NAME_RELATIVE,this.tok.T_NAME_QUALIFIED,this.tok.T_NAME_FULLY_QUALIFIED,this.tok.T_NAMESPACE,this.tok.T_STATIC].map(i)),SCALAR:new Map([this.tok.T_CONSTANT_ENCAPSED_STRING,this.tok.T_START_HEREDOC,this.tok.T_LNUMBER,this.tok.T_DNUMBER,this.tok.T_ARRAY,"[",this.tok.T_CLASS_C,this.tok.T_TRAIT_C,this.tok.T_FUNC_C,this.tok.T_METHOD_C,this.tok.T_LINE,this.tok.T_FILE,this.tok.T_DIR,this.tok.T_NS_C,'"','b"','B"',"-",this.tok.T_NS_SEPARATOR].map(i)),T_MAGIC_CONST:new Map([this.tok.T_CLASS_C,this.tok.T_TRAIT_C,this.tok.T_FUNC_C,this.tok.T_METHOD_C,this.tok.T_LINE,this.tok.T_FILE,this.tok.T_DIR,this.tok.T_NS_C].map(i)),T_MEMBER_FLAGS:new Map([this.tok.T_PUBLIC,this.tok.T_PRIVATE,this.tok.T_PROTECTED,this.tok.T_STATIC,this.tok.T_ABSTRACT,this.tok.T_FINAL].map(i)),EOS:new Map([";",this.EOF,this.tok.T_INLINE_HTML].map(i)),EXPR:new Map(["@","-","+","!","~","(","`",this.tok.T_LIST,this.tok.T_CLONE,this.tok.T_INC,this.tok.T_DEC,this.tok.T_NEW,this.tok.T_ISSET,this.tok.T_EMPTY,this.tok.T_MATCH,this.tok.T_INCLUDE,this.tok.T_INCLUDE_ONCE,this.tok.T_REQUIRE,this.tok.T_REQUIRE_ONCE,this.tok.T_EVAL,this.tok.T_INT_CAST,this.tok.T_DOUBLE_CAST,this.tok.T_STRING_CAST,this.tok.T_ARRAY_CAST,this.tok.T_OBJECT_CAST,this.tok.T_BOOL_CAST,this.tok.T_UNSET_CAST,this.tok.T_EXIT,this.tok.T_PRINT,this.tok.T_YIELD,this.tok.T_STATIC,this.tok.T_FUNCTION,this.tok.T_FN,this.tok.T_VARIABLE,"$",this.tok.T_NS_SEPARATOR,this.tok.T_STRING,this.tok.T_NAME_RELATIVE,this.tok.T_NAME_QUALIFIED,this.tok.T_NAME_FULLY_QUALIFIED,this.tok.T_STRING,this.tok.T_CONSTANT_ENCAPSED_STRING,this.tok.T_START_HEREDOC,this.tok.T_LNUMBER,this.tok.T_DNUMBER,this.tok.T_ARRAY,"[",this.tok.T_CLASS_C,this.tok.T_TRAIT_C,this.tok.T_FUNC_C,this.tok.T_METHOD_C,this.tok.T_LINE,this.tok.T_FILE,this.tok.T_DIR,this.tok.T_NS_C,'"','b"','B"',"-",this.tok.T_NS_SEPARATOR].map(i))}};r.prototype.getTokenName=function(t){return n(t)?t==this.EOF?"the end of file (EOF)":this.lexer.engine.tokens.values[t]:"'"+t+"'"},r.prototype.parse=function(t,e){this._errors=[],this.filename=e||"eval",this.currentNamespace=[""],this.extractDoc?this._docs=[]:this._docs=null,this.extractTokens?this._tokens=[]:this._tokens=null,this._docIndex=0,this._lastNode=null,this.lexer.setInput(t),this.lexer.all_tokens=this.extractTokens,this.lexer.comment_tokens=this.extractDoc,this.length=this.lexer._input.length,this.innerList=!1,this.innerListForm=!1;var i=this.node("program"),s=[];for(this.next();this.token!=this.EOF;)s.push(this.read_start());0===s.length&&this.extractDoc&&this._docs.length>this._docIndex&&s.push(this.node("noop")()),this.prev=[this.lexer.yylloc.last_line,this.lexer.yylloc.last_column,this.lexer.offset];var n=i(s,this._errors,this._docs,this._tokens);if(this.debug){var r=this.ast.checkNodes();if(r.length>0)throw r.forEach((function(t){t.position&&console.log("Node at line "+t.position.line+", column "+t.position.column),console.log(t.stack.join("\n"))})),new Error("Some nodes are not closed")}return n},r.prototype.raiseError=function(t,e,i,s){if(t+=" on line "+this.lexer.yylloc.first_line,!this.suppressErrors){var n=new SyntaxError(t,this.filename,this.lexer.yylloc.first_line);throw n.lineNumber=this.lexer.yylloc.first_line,n.fileName=this.filename,n.columnNumber=this.lexer.yylloc.first_column,n}var r=this.ast.prepare("error",null,this)(t,s,this.lexer.yylloc.first_line,i);return this._errors.push(r),r},r.prototype.error=function(t){var e="Parse Error : syntax error",i=this.getTokenName(this.token),s="";if(this.token!==this.EOF){if(n(this.token)){var r=this.text();r.length>10&&(r=r.substring(0,7)+"..."),i="'"+r+"' ("+i+")"}e+=", unexpected "+i}return t&&!Array.isArray(t)&&((n(t)||1===t.length)&&(s=", expecting "+this.getTokenName(t)),e+=s),this.raiseError(e,s,t,i)},r.prototype.position=function(){return new s(this.lexer.yylloc.first_line,this.lexer.yylloc.first_column,this.lexer.yylloc.first_offset)},r.prototype.node=function(t){if(this.extractDoc){var e=null;this._docIndex<this._docs.length&&(e=this._docs.slice(this._docIndex),this._docIndex=this._docs.length,this.debug&&(console.log(new Error("Append docs on "+t)),console.log(e)));var i=this.ast.prepare(t,e,this);return i.postBuild=function(t){if(this._docIndex<this._docs.length)if(this._lastNode){for(var e=this.prev[2],i=this._docIndex;i<this._docs.length&&!(this._docs[i].offset>e);i++);i>this._docIndex&&(this._lastNode.setTrailingComments(this._docs.slice(this._docIndex,i)),this._docIndex=i)}else this.token===this.EOF&&(t.setTrailingComments(this._docs.slice(this._docIndex)),this._docIndex=this._docs.length);this._lastNode=t}.bind(this),i}return this.ast.prepare(t,null,this)},r.prototype.expectEndOfStatement=function(t){if(";"===this.token)t&&";"===this.lexer.yytext&&t.includeToken(this);else if(this.token!==this.tok.T_INLINE_HTML&&this.token!==this.EOF)return this.error(";"),!1;return this.next(),!0};var h=["parser.next","parser.node","parser.showlog"];r.prototype.showlog=function(){for(var t,e=(new Error).stack.split("\n"),i=2;i<e.length;i++){t=e[i].trim();for(var s=!1,n=0;n<h.length;n++)if(t.substring(3,3+h[n].length)===h[n]){s=!0;break}if(!s)break}return console.log("Line "+this.lexer.yylloc.first_line+" : "+this.getTokenName(this.token)+">"+this.lexer.yytext+"< @--\x3e"+t),this},r.prototype.expect=function(t){if(Array.isArray(t)){if(-1===t.indexOf(this.token))return this.error(t),!1}else if(this.token!=t)return this.error(t),!1;return!0},r.prototype.text=function(){return this.lexer.yytext},r.prototype.next=function(){if(";"===this.token&&";"!==this.lexer.yytext||(this.prev=[this.lexer.yylloc.last_line,this.lexer.yylloc.last_column,this.lexer.offset]),this.lex(),this.debug&&this.showlog(),this.extractDoc)for(;this.token===this.tok.T_COMMENT||this.token===this.tok.T_DOC_COMMENT;)this.token===this.tok.T_COMMENT?this._docs.push(this.read_comment()):this._docs.push(this.read_doc_comment());return this},r.prototype.peek=function(){var t=this.lexer.getState(),e=this.lexer.lex();return this.lexer.setState(t),e},r.prototype.lex=function(){if(this.extractTokens)do{if(this.token=this.lexer.lex()||this.EOF,this.token===this.EOF)return this;var t=this.lexer.yytext;if(t=Object.prototype.hasOwnProperty.call(this.lexer.engine.tokens.values,this.token)?[this.lexer.engine.tokens.values[this.token],t,this.lexer.yylloc.first_line,this.lexer.yylloc.first_offset,this.lexer.offset]:[null,t,this.lexer.yylloc.first_line,this.lexer.yylloc.first_offset,this.lexer.offset],this._tokens.push(t),this.token===this.tok.T_CLOSE_TAG)return this.token=";",this;if(this.token===this.tok.T_OPEN_TAG_WITH_ECHO)return this.token=this.tok.T_ECHO,this}while(this.token===this.tok.T_WHITESPACE||!this.extractDoc&&(this.token===this.tok.T_COMMENT||this.token===this.tok.T_DOC_COMMENT)||this.token===this.tok.T_OPEN_TAG);else this.token=this.lexer.lex()||this.EOF;return this},r.prototype.is=function(t){return Array.isArray(t)?-1!==t.indexOf(this.token):this.entries[t].has(this.token)},[i(5525),i(7072),i(3997),i(6477),i(979),i(8214),i(9461),i(5931),i(9147),i(9219),i(7170),i(6261),i(2478),i(77),i(6077),i(1130)].forEach((function(t){for(var e in t){if(Object.prototype.hasOwnProperty.call(r.prototype,e))throw new Error("Function "+e+" is already defined - collision");r.prototype[e]=t[e]}})),t.exports=r},5525:t=>{t.exports={read_array:function(){var t=null,e=!1,i=this.node("array");this.token===this.tok.T_ARRAY?(this.next().expect("("),t=")"):(e=!0,t="]");var s=[];return this.next().token!==t&&(s=this.read_array_pair_list(e)),this.expect(t),this.next(),i(e,s)},read_array_pair_list:function(t){var e=this;return this.read_list((function(){return e.read_array_pair(t)}),",",!0)},read_array_pair:function(t){if(!(!t&&")"===this.token||t&&"]"===this.token)){if(","===this.token)return this.node("noop")();var e=this.node("entry"),i=null,s=null,n=!1,r=!1;if("&"===this.token)this.next(),n=!0,s=this.read_variable(!0,!1);else if(this.token===this.tok.T_ELLIPSIS&&this.version>=704)this.next(),"&"===this.token&&this.error(),r=!0,s=this.read_expr();else{var h=this.read_expr();this.token===this.tok.T_DOUBLE_ARROW?(this.next(),i=h,"&"===this.token?(this.next(),n=!0,s=this.read_variable(!0,!1)):s=this.read_expr()):s=h}return e(i,s,n,r)}}}},7072:t=>{function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var s,n,r,h,o=[],a=!0,_=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;a=!1}else for(;!(a=(s=r.call(i)).done)&&(o.push(s.value),o.length!==e);a=!0);}catch(t){_=!0,n=t}finally{try{if(!a&&null!=i.return&&(h=i.return(),Object(h)!==h))return}finally{if(_)throw n}}return o}}(t,e)||s(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){if(t){if("string"==typeof t)return n(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,e):void 0}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}t.exports={read_class_declaration_statement:function(t){var e=this.node("class"),i=this.read_class_modifiers();if(this.token!==this.tok.T_CLASS)return this.error(this.tok.T_CLASS),this.next(),null;this.next().expect(this.tok.T_STRING);var s=this.node("identifier"),n=this.text();this.next(),s=s(n);var r=this.read_extends_from(),h=this.read_implements_list();this.expect("{");var o=e(s,r,h,this.next().read_class_body(!0,!1),i);return t&&(o.attrGroups=t),o},read_class_modifiers:function(){var t=this.read_class_modifier({readonly:0,final_or_abstract:0});return[0,0,t.final_or_abstract,t.readonly]},read_class_modifier:function(t){return this.token===this.tok.T_READ_ONLY?(this.next(),t.readonly=1,t=this.read_class_modifier(t)):0===t.final_or_abstract&&this.token===this.tok.T_ABSTRACT?(this.next(),t.final_or_abstract=1,t=this.read_class_modifier(t)):0===t.final_or_abstract&&this.token===this.tok.T_FINAL&&(this.next(),t.final_or_abstract=2,t=this.read_class_modifier(t)),t},read_class_body:function(t,e){for(var s=[],n=[];this.token!==this.EOF&&"}"!==this.token;)if(this.token!==this.tok.T_COMMENT)if(this.token!==this.tok.T_DOC_COMMENT)if(this.token!==this.tok.T_USE)if(e&&this.token===this.tok.T_CASE){var r=this.read_enum_case();this.expect(";")&&this.next(),s=s.concat(r)}else{this.token===this.tok.T_ATTRIBUTE&&(n=this.read_attr_list());var h=this.position(),o=this.read_member_flags(!1);if(this.token!==this.tok.T_CONST)if(t&&this.token===this.tok.T_VAR&&(this.next().expect(this.tok.T_VARIABLE),o[0]=null,o[1]=0),this.token===this.tok.T_FUNCTION)s.push(this.read_function(!1,o,n,h)),n=[];else if(t&&(this.token===this.tok.T_VARIABLE||this.version>=801&&this.token===this.tok.T_READ_ONLY||this.version>=704&&("?"===this.token||this.token===this.tok.T_ARRAY||this.token===this.tok.T_CALLABLE||this.token===this.tok.T_NAMESPACE||this.token===this.tok.T_NAME_FULLY_QUALIFIED||this.token===this.tok.T_NAME_QUALIFIED||this.token===this.tok.T_NAME_RELATIVE||this.token===this.tok.T_NS_SEPARATOR||this.token===this.tok.T_STRING))){var a=this.read_variable_list(o,n);n=[],this.expect(";"),this.next(),s=s.concat(a)}else this.error([this.tok.T_CONST].concat(i(t?[this.tok.T_VARIABLE]:[]),i(e?[this.tok.T_CASE]:[]),[this.tok.T_FUNCTION])),this.next();else{var _=this.read_constant_list(o,n);this.expect(";")&&this.next(),s=s.concat(_)}}else s=s.concat(this.read_trait_use_statement());else s.push(this.read_doc_comment());else s.push(this.read_comment());return this.expect("}"),this.next(),s},read_variable_list:function(t,i){var s=this.node("propertystatement"),n=this.read_list((function(){var t=this.node("property"),s=!1;this.token===this.tok.T_READ_ONLY&&(s=!0,this.next());var n=e(this.read_optional_type(),2),r=n[0],h=n[1];this.expect(this.tok.T_VARIABLE);var o=this.node("identifier"),a=this.text().substring(1);this.next(),o=o(a);var _=null;return this.expect([",",";","="]),"="===this.token&&(_=this.next().read_expr()),t(o,_,s,r,h,i||[])}),",");return s(null,n,t)},read_constant_list:function(t,i){this.expect(this.tok.T_CONST)&&this.next();var s=e(this.version>=803?this.read_optional_type():[!1,null],2),n=s[0],r=s[1],h=this.node("classconstant"),o=this.read_list((function(){var t=this.node("constant"),e=null,i=null;if(this.token===this.tok.T_STRING||this.version>=700&&this.is("IDENTIFIER")){e=this.node("identifier");var s=this.text();this.next(),e=e(s)}else this.expect("IDENTIFIER");return this.expect("=")&&(i=this.next().read_expr()),t(e,i)}),",");return h(null,o,t,n,r,i||[])},read_member_flags:function(t){var e=[-1,-1,-1];if(this.is("T_MEMBER_FLAGS")){var i=0,s=0;do{switch(this.token){case this.tok.T_PUBLIC:i=0,s=0;break;case this.tok.T_PROTECTED:i=0,s=1;break;case this.tok.T_PRIVATE:i=0,s=2;break;case this.tok.T_STATIC:i=1,s=1;break;case this.tok.T_ABSTRACT:i=2,s=1;break;case this.tok.T_FINAL:i=2,s=2}t&&(0===i&&2===s?(this.expect([this.tok.T_PUBLIC,this.tok.T_PROTECTED]),s=-1):2===i&&1===s&&(this.error(),s=-1)),-1!==e[i]?this.error():-1!==s&&(e[i]=s)}while(this.next().is("T_MEMBER_FLAGS"))}return-1===e[1]&&(e[1]=0),-1===e[2]&&(e[2]=0),e},read_optional_type:function(){var t="?"===this.token;if(t&&this.next(),"="===this.peek())return[!1,null];var e=this.read_types();if(t&&!e&&this.raiseError("Expecting a type definition combined with nullable operator"),!t&&!e)return[!1,null];if("|"===this.token){e=[e];do{this.next();var i=this.read_type();if(!i){this.raiseError("Expecting a type definition");break}e.push(i)}while("|"===this.token)}return[t,e]},read_interface_declaration_statement:function(t){var e=this.node("interface");if(this.token!==this.tok.T_INTERFACE)return this.error(this.tok.T_INTERFACE),this.next(),null;this.next().expect(this.tok.T_STRING);var i=this.node("identifier"),s=this.text();this.next(),i=i(s);var n=this.read_interface_extends_list();return this.expect("{"),e(i,n,this.next().read_interface_body(),t||[])},read_interface_body:function(){for(var t=[],e=[];this.token!==this.EOF&&"}"!==this.token;)if(this.token!==this.tok.T_COMMENT)if(this.token!==this.tok.T_DOC_COMMENT){var i=this.position();e=this.read_attr_list();var s=this.read_member_flags(!0);if(this.token===this.tok.T_CONST){var n=this.read_constant_list(s,e);this.expect(";")&&this.next(),t=t.concat(n),e=[]}else if(this.token===this.tok.T_FUNCTION){var r=this.read_function_declaration(2,s,e,i);r.parseFlags(s),t.push(r),this.expect(";")&&this.next(),e=[]}else this.error([this.tok.T_CONST,this.tok.T_FUNCTION]),this.next()}else t.push(this.read_doc_comment());else t.push(this.read_comment());return this.expect("}")&&this.next(),t},read_trait_declaration_statement:function(){var t=this.node("trait");if(this.token!==this.tok.T_TRAIT)return this.error(this.tok.T_TRAIT),this.next(),null;this.next().expect(this.tok.T_STRING);var e=this.node("identifier"),i=this.text();return this.next(),e=e(i),this.expect("{"),t(e,this.next().read_class_body(!0,!1))},read_trait_use_statement:function(){var t=this.node("traituse");this.expect(this.tok.T_USE)&&this.next();for(var e=[this.read_namespace_name()],i=null;","===this.token;)e.push(this.next().read_namespace_name());if("{"===this.token){for(i=[];this.next().token!==this.EOF&&"}"!==this.token;)i.push(this.read_trait_use_alias()),this.expect(";");this.expect("}")&&this.next()}else this.expect(";")&&this.next();return t(e,i)},read_trait_use_alias:function(){var t,e=this.node(),i=null;if(this.is("IDENTIFIER")){t=this.node("identifier");var s=this.text();this.next(),t=t(s)}else if(t=this.read_namespace_name(),this.token===this.tok.T_DOUBLE_COLON)if(this.next(),this.token===this.tok.T_STRING||this.version>=700&&this.is("IDENTIFIER")){i=t,t=this.node("identifier");var n=this.text();this.next(),t=t(n)}else this.expect(this.tok.T_STRING);else t=t.name;if(this.token===this.tok.T_INSTEADOF)return e("traitprecedence",i,t,this.next().read_name_list());if(this.token===this.tok.T_AS){var r=null,h=null;if(this.next().is("T_MEMBER_FLAGS")&&(r=this.read_member_flags()),this.token===this.tok.T_STRING||this.version>=700&&this.is("IDENTIFIER")){h=this.node("identifier");var o=this.text();this.next(),h=h(o)}else!1===r&&this.expect(this.tok.T_STRING);return e("traitalias",i,t,h,r)}return this.expect([this.tok.T_AS,this.tok.T_INSTEADOF]),e("traitalias",i,t,null,null)}}},3997:t=>{t.exports={read_comment:function(){var t=this.text(),e=this.ast.prepare("/*"===t.substring(0,2)?"commentblock":"commentline",null,this),i=this.lexer.yylloc.first_offset,s=this.prev;return this.prev=[this.lexer.yylloc.last_line,this.lexer.yylloc.last_column,this.lexer.offset],this.lex(),(e=e(t)).offset=i,this.prev=s,e},read_doc_comment:function(){var t=this.ast.prepare("commentblock",null,this),e=this.lexer.yylloc.first_offset,i=this.text(),s=this.prev;return this.prev=[this.lexer.yylloc.last_line,this.lexer.yylloc.last_column,this.lexer.offset],this.lex(),(t=t(i)).offset=e,this.prev=s,t}}},979:t=>{t.exports={read_enum_declaration_statement:function(t){var e=this.node("enum");if(!this.expect(this.tok.T_ENUM))return null;this.next().expect(this.tok.T_STRING);var i=this.node("identifier"),s=this.text();this.next(),i=i(s);var n=this.read_enum_value_type(),r=this.read_implements_list();this.expect("{");var h=e(i,n,r,this.next().read_class_body(!1,!0));return t&&(h.attrGroups=t),h},read_enum_value_type:function(){return":"===this.token?this.next().read_namespace_name():null},read_enum_case:function(){this.expect(this.tok.T_CASE);var t=this.node("enumcase"),e=this.node("identifier"),i=this.next().text();this.next(),e=e(i);var s="="===this.token?this.next().read_expr():null;return this.expect(";"),t(e,s)}}},6477:t=>{t.exports={read_expr:function(t){var e=this.node();if("@"===this.token)return t||(t=this.next().read_expr()),e("silent",t);if(t||(t=this.read_expr_item()),"|"===this.token)return e("bin","|",t,this.next().read_expr());if("&"===this.token)return e("bin","&",t,this.next().read_expr());if("^"===this.token)return e("bin","^",t,this.next().read_expr());if("."===this.token)return e("bin",".",t,this.next().read_expr());if("+"===this.token)return e("bin","+",t,this.next().read_expr());if("-"===this.token)return e("bin","-",t,this.next().read_expr());if("*"===this.token)return e("bin","*",t,this.next().read_expr());if("/"===this.token)return e("bin","/",t,this.next().read_expr());if("%"===this.token)return e("bin","%",t,this.next().read_expr());if(this.token===this.tok.T_POW)return e("bin","**",t,this.next().read_expr());if(this.token===this.tok.T_SL)return e("bin","<<",t,this.next().read_expr());if(this.token===this.tok.T_SR)return e("bin",">>",t,this.next().read_expr());if(this.token===this.tok.T_BOOLEAN_OR)return e("bin","||",t,this.next().read_expr());if(this.token===this.tok.T_LOGICAL_OR)return e("bin","or",t,this.next().read_expr());if(this.token===this.tok.T_BOOLEAN_AND)return e("bin","&&",t,this.next().read_expr());if(this.token===this.tok.T_LOGICAL_AND)return e("bin","and",t,this.next().read_expr());if(this.token===this.tok.T_LOGICAL_XOR)return e("bin","xor",t,this.next().read_expr());if(this.token===this.tok.T_IS_IDENTICAL)return e("bin","===",t,this.next().read_expr());if(this.token===this.tok.T_IS_NOT_IDENTICAL)return e("bin","!==",t,this.next().read_expr());if(this.token===this.tok.T_IS_EQUAL)return e("bin","==",t,this.next().read_expr());if(this.token===this.tok.T_IS_NOT_EQUAL)return e("bin","!=",t,this.next().read_expr());if("<"===this.token)return e("bin","<",t,this.next().read_expr());if(">"===this.token)return e("bin",">",t,this.next().read_expr());if(this.token===this.tok.T_IS_SMALLER_OR_EQUAL)return e("bin","<=",t,this.next().read_expr());if(this.token===this.tok.T_IS_GREATER_OR_EQUAL)return e("bin",">=",t,this.next().read_expr());if(this.token===this.tok.T_SPACESHIP)return e("bin","<=>",t,this.next().read_expr());if(this.token===this.tok.T_INSTANCEOF&&(t=e("bin","instanceof",t,this.next().read_class_name_reference()),";"!==this.token&&this.token!==this.tok.T_INLINE_HTML&&this.token!==this.EOF&&(t=this.read_expr(t))),this.token===this.tok.T_COALESCE)return e("bin","??",t,this.next().read_expr());if("?"===this.token){var i=null;return":"!==this.next().token&&(i=this.read_expr()),this.expect(":")&&this.next(),e("retif",t,i,this.read_expr())}return e.destroy(t),t},read_expr_cast:function(t){return this.node("cast")(t,this.text(),this.next().read_expr())},read_isset_variable:function(){return this.read_expr()},read_isset_variables:function(){return this.read_function_list(this.read_isset_variable,",")},read_internal_functions_in_yacc:function(){var t=null;switch(this.token){case this.tok.T_ISSET:t=this.node("isset"),this.next().expect("(")&&this.next();var e=this.read_isset_variables();this.expect(")")&&this.next(),t=t(e);break;case this.tok.T_EMPTY:t=this.node("empty"),this.next().expect("(")&&this.next();var i=this.read_expr();this.expect(")")&&this.next(),t=t(i);break;case this.tok.T_INCLUDE:t=this.node("include")(!1,!1,this.next().read_expr());break;case this.tok.T_INCLUDE_ONCE:t=this.node("include")(!0,!1,this.next().read_expr());break;case this.tok.T_EVAL:t=this.node("eval"),this.next().expect("(")&&this.next();var s=this.read_expr();this.expect(")")&&this.next(),t=t(s);break;case this.tok.T_REQUIRE:t=this.node("include")(!1,!0,this.next().read_expr());break;case this.tok.T_REQUIRE_ONCE:t=this.node("include")(!0,!0,this.next().read_expr())}return t},read_optional_expr:function(t){return this.token!==t?this.read_expr():null},read_exit_expr:function(){var t=null;return"("===this.token&&(this.next(),t=this.read_optional_expr(")"),this.expect(")")&&this.next()),t},read_expr_item:function(){var t,e,i=[];if("+"===this.token)return this.node("unary")("+",this.next().read_expr());if("-"===this.token)return this.node("unary")("-",this.next().read_expr());if("!"===this.token)return this.node("unary")("!",this.next().read_expr());if("~"===this.token)return this.node("unary")("~",this.next().read_expr());if("("===this.token)return(e=this.next().read_expr()).parenthesizedExpression=!0,this.expect(")")&&this.next(),this.handleDereferencable(e);if("`"===this.token)return this.read_encapsed_string("`");if(this.token===this.tok.T_LIST){var s=null,n=this.innerList;t=this.node("list"),n||(s=this.node("assign")),this.next().expect("(")&&this.next(),this.innerList||(this.innerList=!0);var r=this.read_array_pair_list(!1);this.expect(")")&&this.next();for(var h=!1,o=0;o<r.length;o++)if(null!==r[o]&&"noop"!==r[o].kind){h=!0;break}return h||this.raiseError("Fatal Error :  Cannot use empty list on line "+this.lexer.yylloc.first_line),n?t(r,!1):(this.innerList=!1,this.expect("=")?s(t(r,!1),this.next().read_expr(),"="):t(r,!1))}if(this.token===this.tok.T_ATTRIBUTE&&(i=this.read_attr_list()),this.token===this.tok.T_CLONE)return this.node("clone")(this.next().read_expr());switch(this.token){case this.tok.T_INC:return this.node("pre")("+",this.next().read_variable(!1,!1));case this.tok.T_DEC:return this.node("pre")("-",this.next().read_variable(!1,!1));case this.tok.T_NEW:return this.read_new_expr();case this.tok.T_ISSET:case this.tok.T_EMPTY:case this.tok.T_INCLUDE:case this.tok.T_INCLUDE_ONCE:case this.tok.T_EVAL:case this.tok.T_REQUIRE:case this.tok.T_REQUIRE_ONCE:return this.read_internal_functions_in_yacc();case this.tok.T_MATCH:return this.read_match_expression();case this.tok.T_INT_CAST:return this.read_expr_cast("int");case this.tok.T_DOUBLE_CAST:return this.read_expr_cast("float");case this.tok.T_STRING_CAST:return this.read_expr_cast(-1!==this.text().indexOf("binary")?"binary":"string");case this.tok.T_ARRAY_CAST:return this.read_expr_cast("array");case this.tok.T_OBJECT_CAST:return this.read_expr_cast("object");case this.tok.T_BOOL_CAST:return this.read_expr_cast("bool");case this.tok.T_UNSET_CAST:return this.read_expr_cast("unset");case this.tok.T_THROW:return this.version<800&&this.raiseError("PHP 8+ is required to use throw as an expression"),this.node("throw")(this.next().read_expr());case this.tok.T_EXIT:var a="die"===this.lexer.yytext.toLowerCase();return t=this.node("exit"),this.next(),t(this.read_exit_expr(),a);case this.tok.T_PRINT:return this.node("print")(this.next().read_expr());case this.tok.T_YIELD:var _=null,l=null;return t=this.node("yield"),this.next().is("EXPR")&&(_=this.read_expr(),this.token===this.tok.T_DOUBLE_ARROW&&(l=_,_=this.next().read_expr())),t(_,l);case this.tok.T_YIELD_FROM:return(t=this.node("yieldfrom"))(e=this.next().read_expr());case this.tok.T_FN:case this.tok.T_FUNCTION:return this.read_inline_function(void 0,i);case this.tok.T_STATIC:var c=[this.token,this.lexer.getState()];if(this.next(),this.token===this.tok.T_FUNCTION||this.version>=704&&this.token===this.tok.T_FN)return this.read_inline_function([0,1,0],i);this.lexer.tokens.push(c),this.next()}if(this.is("VARIABLE")){t=this.node();var u="identifier"===(e=this.read_variable(!1,!1)).kind||"staticlookup"===e.kind&&"identifier"===e.offset.kind;switch(this.token){case"=":return u&&this.error("VARIABLE"),"&"==this.next().token?this.read_assignref(t,e):t("assign",e,this.read_expr(),"=");case this.tok.T_PLUS_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"+=");case this.tok.T_MINUS_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"-=");case this.tok.T_MUL_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"*=");case this.tok.T_POW_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"**=");case this.tok.T_DIV_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"/=");case this.tok.T_CONCAT_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),".=");case this.tok.T_MOD_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"%=");case this.tok.T_AND_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"&=");case this.tok.T_OR_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"|=");case this.tok.T_XOR_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"^=");case this.tok.T_SL_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"<<=");case this.tok.T_SR_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),">>=");case this.tok.T_COALESCE_EQUAL:return u&&this.error("VARIABLE"),t("assign",e,this.next().read_expr(),"??=");case this.tok.T_INC:return u&&this.error("VARIABLE"),this.next(),t("post","+",e);case this.tok.T_DEC:return u&&this.error("VARIABLE"),this.next(),t("post","-",e);default:t.destroy(e)}}else{if(this.is("SCALAR")){if(t=this.node(),"array"===(e=this.read_scalar()).kind&&e.shortForm&&"="===this.token){var p=this.convertToList(e);return e.loc&&(p.loc=e.loc),t("assign",p,this.next().read_expr(),"=")}return t.destroy(e),this.handleDereferencable(e)}this.error("EXPR"),this.next()}return e},convertToList:function(t){var e=this,i=t.items.map((function(t){return t.value&&"array"===t.value.kind&&t.value.shortForm&&(t.value=e.convertToList(t.value)),t})),s=this.node("list")(i,!0);return t.loc&&(s.loc=t.loc),t.leadingComments&&(s.leadingComments=t.leadingComments),t.trailingComments&&(s.trailingComments=t.trailingComments),s},read_assignref:function(t,e){var i;return this.next(),this.token===this.tok.T_NEW?(this.version>=700&&this.error(),i=this.read_new_expr()):i=this.read_variable(!1,!1),t("assignref",e,i)},read_inline_function:function(t,e){if(this.token===this.tok.T_FUNCTION){var i=this.read_function(!0,t,e);return i.attrGroups=e,i}!this.version>=704&&this.raiseError("Arrow Functions are not allowed");var s=this.node("arrowfunc");this.expect(this.tok.T_FN)&&this.next();var n=this.is_reference();this.expect("(")&&this.next();var r=this.read_parameter_list();this.expect(")")&&this.next();var h=!1,o=null;":"===this.token&&("?"===this.next().token&&(h=!0,this.next()),o=this.read_types()),this.expect(this.tok.T_DOUBLE_ARROW)&&this.next();var a=s(r,n,this.read_expr(),o,h,!!t);return a.attrGroups=e,a},read_match_expression:function(){var t,e,i=this.node("match");return this.expect(this.tok.T_MATCH)&&this.next(),this.version<800&&this.raiseError("Match statements are not allowed before PHP 8"),this.expect("(")&&this.next(),t=this.read_expr(),this.expect(")")&&this.next(),this.expect("{")&&this.next(),e=this.read_match_arms(),this.expect("}")&&this.next(),i(t,e)},read_match_arms:function(){var t=this;return this.read_list((function(){return t.read_match_arm()}),",",!0)},read_match_arm:function(){if("}"!==this.token)return this.node("matcharm")(this.read_match_arm_conds(),this.read_expr())},read_match_arm_conds:function(){var t=[];if(this.token===this.tok.T_DEFAULT)t=null,this.next();else for(t.push(this.read_expr());","===this.token;){if(this.next(),this.token===this.tok.T_DOUBLE_ARROW)return this.next(),t;t.push(this.read_expr())}return this.expect(this.tok.T_DOUBLE_ARROW)&&this.next(),t},read_attribute:function(){var t=this.text(),e=[];return this.next(),"("===this.token&&(e=this.read_argument_list()),this.node("attribute")(t,e)},read_attr_list:function(){var t=[];if(this.token===this.tok.T_ATTRIBUTE)do{var e=this.node("attrgroup")([]);for(this.next(),e.attrs.push(this.read_attribute());","===this.token;)this.next(),"]"!==this.token&&e.attrs.push(this.read_attribute());t.push(e),this.expect("]"),this.next()}while(this.token===this.tok.T_ATTRIBUTE);return t},read_new_expr:function(){var t=this.node("new");this.expect(this.tok.T_NEW)&&this.next();var e=[];if("("===this.token){this.next();var i=this.read_expr();return this.expect(")"),this.next(),"("===this.token&&(e=this.read_argument_list()),t(i,e)}var s=this.read_attr_list();if(this.token===this.tok.T_CLASS){var n=this.node("class");"("===this.next().token&&(e=this.read_argument_list());var r=this.read_extends_from(),h=this.read_implements_list(),o=null;this.expect("{")&&(o=this.next().read_class_body(!0,!1));var a=n(null,r,h,o,[0,0,0]);return a.attrGroups=s,t(a,e)}for(var _=this.read_new_class_name();"["===this.token;){var l=this.node("offsetlookup"),c=this.next().read_encaps_var_offset();this.expect("]")&&this.next(),_=l(_,c)}return"("===this.token&&(e=this.read_argument_list()),t(_,e)},read_new_class_name:function(){if(this.token===this.tok.T_NS_SEPARATOR||this.token===this.tok.T_NAME_RELATIVE||this.token===this.tok.T_NAME_QUALIFIED||this.token===this.tok.T_NAME_FULLY_QUALIFIED||this.token===this.tok.T_STRING||this.token===this.tok.T_NAMESPACE){var t=this.read_namespace_name(!0);return this.token===this.tok.T_DOUBLE_COLON&&(t=this.read_static_getter(t)),t}if(this.is("VARIABLE"))return this.read_variable(!0,!1);this.expect([this.tok.T_STRING,"VARIABLE"])},handleDereferencable:function(t){for(;this.token!==this.EOF;)if(this.token===this.tok.T_OBJECT_OPERATOR||this.token===this.tok.T_DOUBLE_COLON)t=this.recursive_variable_chain_scan(t,!1,!1,!0);else if(this.token===this.tok.T_CURLY_OPEN||"["===this.token)t=this.read_dereferencable(t);else{if("("!==this.token)return t;t=this.node("call")(t,this.read_argument_list())}return t}}},8214:t=>{t.exports={is_reference:function(){return"&"===this.token&&(this.next(),!0)},is_variadic:function(){return this.token===this.tok.T_ELLIPSIS&&(this.next(),!0)},read_function:function(t,e,i,s){var n=this.read_function_declaration(t?1:e?2:0,e&&1===e[1],i||[],s);return e&&1==e[2]?(n.parseFlags(e),this.expect(";")&&this.next()):(this.expect("{")&&(n.body=this.read_code_block(!1),n.loc&&n.body.loc&&(n.loc.end=n.body.loc.end)),!t&&e&&n.parseFlags(e)),n},read_function_declaration:function(t,e,i,s){var n=this,r="function";1===t?r="closure":2===t&&(r="method");var h=this.node(r);this.expect(this.tok.T_FUNCTION)&&this.next();var o=this.is_reference(),a=!1,_=[],l=null,c=!1;if(1!==t){var u=this.node("identifier");2===t?this.version>=700?this.token===this.tok.T_STRING||this.is("IDENTIFIER")?(a=this.text(),this.next()):this.version<704&&this.error("IDENTIFIER"):this.token===this.tok.T_STRING?(a=this.text(),this.next()):this.error("IDENTIFIER"):this.version>=700?this.token===this.tok.T_STRING?(a=this.text(),this.next()):this.version>=704?this.expect("(")||this.next():(this.error(this.tok.T_STRING),this.next()):(this.expect(this.tok.T_STRING)&&(a=this.text()),this.next()),a=u(a)}this.expect("(")&&this.next();var p=this.read_parameter_list("__construct"===a.name);this.expect(")")&&this.next(),1===t&&(_=this.read_lexical_vars()),":"===this.token&&("?"===this.next().token&&(c=!0,this.next()),l=this.read_types());var f;return(f=1===t?h(p,o,_,l,c,e):h(a,p,o,l,c)).attrGroups=i||[],s&&f.loc&&(f.loc.start=s,f.loc.source&&(f.loc.source=n.lexer._input.substr(f.loc.start.offset,f.loc.end.offset-f.loc.start.offset))),f},read_lexical_vars:function(){var t=[];return this.token===this.tok.T_USE&&(this.next(),this.expect("(")&&this.next(),t=this.read_lexical_var_list(),this.expect(")")&&this.next()),t},read_list_with_dangling_comma:function(t){for(var e=[];this.token!=this.EOF;){if(e.push(t()),","!=this.token){if(")"==this.token)break;this.error([",",")"]);break}if(this.next(),this.version>=800&&")"===this.token)return e}return e},read_lexical_var_list:function(){return this.read_list_with_dangling_comma(this.read_lexical_var.bind(this))},read_lexical_var:function(){if("&"===this.token)return this.read_byref(this.read_lexical_var.bind(this));var t=this.node("variable");this.expect(this.tok.T_VARIABLE);var e=this.text().substring(1);return this.next(),t(e,!1)},read_parameter_list:function(t){if(")"!==this.token){var e=!1;return this.read_list_with_dangling_comma(function(){var i=this.read_parameter(t);return i&&(e&&this.raiseError("Unexpected parameter after a variadic parameter"),i.variadic&&(e=!0)),i}.bind(this),",")}return[]},read_parameter:function(t){var e,i=this.node("parameter"),s=null,n=null,r=!1,h=!1,o=[];this.token===this.tok.T_ATTRIBUTE&&(o=this.read_attr_list()),this.version>=801&&this.token===this.tok.T_READ_ONLY&&(t?(this.next(),h=!0):this.raiseError("readonly properties can be used only on class constructor"));var a=this.read_promoted();!h&&this.version>=801&&this.token===this.tok.T_READ_ONLY&&(t?(this.next(),h=!0):this.raiseError("readonly properties can be used only on class constructor")),"?"===this.token&&(this.next(),r=!0),e=this.read_types(),r&&!e&&this.raiseError("Expecting a type definition combined with nullable operator");var _=this.is_reference(),l=this.is_variadic();if(this.expect(this.tok.T_VARIABLE)){s=this.node("identifier");var c=this.text().substring(1);this.next(),s=s(c)}"="==this.token&&(n=this.next().read_expr());var u=i(s,e,n,_,l,h,r,a);return o&&(u.attrGroups=o),u},read_types:function(){var t="unset",e="union",i="intersection",s=[],n=t,r=this.read_type();if(!r)return null;for(s.push(r);"|"===this.token||this.version>=801&&"&"===this.token;){var h=this.peek();if(h===this.tok.T_ELLIPSIS||h===this.tok.T_VARIABLE)break;n===t?n="|"===this.token?e:i:(n===e&&"|"!==this.token||n===i&&"&"!==this.token)&&this.raiseError('Unexpect token "'+this.token+'", "|" and "&" can not be mixed'),this.next(),s.push(this.read_type())}return 1===s.length?s[0]:n===i?this.node("intersectiontype")(s):this.node("uniontype")(s)},read_promoted:function(){return this.token===this.tok.T_PUBLIC?(this.next(),1):this.token===this.tok.T_PROTECTED?(this.next(),2):this.token===this.tok.T_PRIVATE?(this.next(),4):0},read_argument_list:function(){var t=[];return this.expect("(")&&this.next(),this.version>=801&&this.token===this.tok.T_ELLIPSIS&&")"===this.peek()?(t.push(this.node("variadicplaceholder")()),this.next()):")"!==this.token&&(t=this.read_non_empty_argument_list()),this.expect(")")&&this.next(),t},read_non_empty_argument_list:function(){var t=!1;return this.read_function_list(function(){var e=this.read_argument();if(e){var i="variadic"===e.kind;t&&!i&&this.raiseError("Unexpected non-variadic argument after a variadic argument"),i&&(t=!0)}return e}.bind(this),",")},read_argument:function(){return this.token===this.tok.T_ELLIPSIS?this.node("variadic")(this.next().read_expr()):this.token!==this.tok.T_STRING&&!Object.values(this.lexer.keywords).includes(this.token)||":"!==this.peek()?this.read_expr():(this.version<800&&this.raiseError("PHP 8+ is required to use named arguments"),this.node("namedargument")(this.text(),this.next().next().read_expr()))},read_type:function(){var t=this.node();if(this.token===this.tok.T_ARRAY||this.token===this.tok.T_CALLABLE){var e=this.text();return this.next(),t("typereference",e.toLowerCase(),e)}if(this.token===this.tok.T_NAME_RELATIVE||this.token===this.tok.T_NAME_QUALIFIED||this.token===this.tok.T_NAME_FULLY_QUALIFIED||this.token===this.tok.T_STRING||this.token===this.tok.T_STATIC){var i=this.text(),s=[this.token,this.lexer.getState()];return this.next(),this.token!==this.tok.T_NS_SEPARATOR&&this.ast.typereference.types.indexOf(i.toLowerCase())>-1?t("typereference",i.toLowerCase(),i):(this.lexer.tokens.push(s),this.next(),t.destroy(),this.read_namespace_name())}return t.destroy(),null}}},9461:t=>{t.exports={read_if:function(){var t=this.node("if"),e=this.next().read_if_expr(),i=null,s=null,n=!1;if(":"===this.token){n=!0,this.next(),i=this.node("block");for(var r=[];this.token!==this.EOF&&this.token!==this.tok.T_ENDIF;){if(this.token===this.tok.T_ELSEIF){s=this.read_elseif_short();break}if(this.token===this.tok.T_ELSE){s=this.read_else_short();break}r.push(this.read_inner_statement())}i=i(null,r),this.expect(this.tok.T_ENDIF)&&this.next(),this.expectEndOfStatement()}else i=this.read_statement(),this.token===this.tok.T_ELSEIF?s=this.read_if():this.token===this.tok.T_ELSE&&(s=this.next().read_statement());return t(e,i,s,n)},read_if_expr:function(){this.expect("(")&&this.next();var t=this.read_expr();return this.expect(")")&&this.next(),t},read_elseif_short:function(){var t=null,e=this.node("if"),i=this.next().read_if_expr();this.expect(":")&&this.next();for(var s=this.node("block"),n=[];this.token!=this.EOF&&this.token!==this.tok.T_ENDIF;){if(this.token===this.tok.T_ELSEIF){t=this.read_elseif_short();break}if(this.token===this.tok.T_ELSE){t=this.read_else_short();break}n.push(this.read_inner_statement())}return e(i,s(null,n),t,!0)},read_else_short:function(){this.next().expect(":")&&this.next();for(var t=this.node("block"),e=[];this.token!=this.EOF&&this.token!==this.tok.T_ENDIF;)e.push(this.read_inner_statement());return t(null,e)}}},5931:t=>{t.exports={read_while:function(){var t=this.node("while");this.expect(this.tok.T_WHILE)&&this.next();var e,i=null,s=!1;return this.expect("(")&&this.next(),e=this.read_expr(),this.expect(")")&&this.next(),":"===this.token?(s=!0,i=this.read_short_form(this.tok.T_ENDWHILE)):i=this.read_statement(),t(e,i,s)},read_do:function(){var t=this.node("do");this.expect(this.tok.T_DO)&&this.next();var e,i=null;return e=this.read_statement(),this.expect(this.tok.T_WHILE)&&(this.next().expect("(")&&this.next(),i=this.read_expr(),this.expect(")")&&this.next(),this.expect(";")&&this.next()),t(i,e)},read_for:function(){var t=this.node("for");this.expect(this.tok.T_FOR)&&this.next();var e=[],i=[],s=[],n=null,r=!1;return this.expect("(")&&this.next(),";"!==this.token?(e=this.read_list(this.read_expr,","),this.expect(";")&&this.next()):this.next(),";"!==this.token?(i=this.read_list(this.read_expr,","),this.expect(";")&&this.next()):this.next(),")"!==this.token?(s=this.read_list(this.read_expr,","),this.expect(")")&&this.next()):this.next(),":"===this.token?(r=!0,n=this.read_short_form(this.tok.T_ENDFOR)):n=this.read_statement(),t(e,i,s,n,r)},read_foreach:function(){var t=this.node("foreach");this.expect(this.tok.T_FOREACH)&&this.next();var e,i=null,s=null,n=null,r=!1;return this.expect("(")&&this.next(),e=this.read_expr(),this.expect(this.tok.T_AS)&&(this.next(),s=this.read_foreach_variable(),this.token===this.tok.T_DOUBLE_ARROW&&(i=s,s=this.next().read_foreach_variable())),i&&"list"===i.kind&&this.raiseError("Fatal Error : Cannot use list as key element"),this.expect(")")&&this.next(),":"===this.token?(r=!0,n=this.read_short_form(this.tok.T_ENDFOREACH)):n=this.read_statement(),t(e,i,s,n,r)},read_foreach_variable:function(){if(this.token===this.tok.T_LIST||"["===this.token){var t="["===this.token,e=this.node("list");this.next(),!t&&this.expect("(")&&this.next();var i=this.read_array_pair_list(t);return this.expect(t?"]":")")&&this.next(),e(i,t)}return this.read_variable(!1,!1)}}},9147:t=>{t.exports={read_start:function(){return this.token==this.tok.T_NAMESPACE?this.read_namespace():this.read_top_statement()}}},9219:t=>{t.exports={read_namespace:function(){var t,e,i=this.node("namespace");return this.expect(this.tok.T_NAMESPACE)&&this.next(),e="{"===this.token?{name:[""]}:this.read_namespace_name(),this.currentNamespace=e,";"===this.token?(this.currentNamespace=e,t=this.next().read_top_statements(),this.expect(this.EOF),i(e.name,t,!1)):"{"===this.token?(this.currentNamespace=e,t=this.next().read_top_statements(),this.expect("}")&&this.next(),0===t.length&&this.extractDoc&&this._docs.length>this._docIndex&&t.push(this.node("noop")()),i(e.name,t,!0)):(this.error(["{",";"]),this.currentNamespace=e,t=this.read_top_statements(),this.expect(this.EOF),i(e,t,!1))},read_namespace_name:function(t){var e,i=this.node(),s=this.text();switch(this.token){case this.tok.T_NAME_RELATIVE:e=this.ast.name.RELATIVE_NAME,s=s.replace(/^namespace\\/,"");break;case this.tok.T_NAME_QUALIFIED:e=this.ast.name.QUALIFIED_NAME;break;case this.tok.T_NAME_FULLY_QUALIFIED:e=this.ast.name.FULL_QUALIFIED_NAME;break;default:if(e=this.ast.name.UNQUALIFIED_NAME,!this.expect(this.tok.T_STRING))return i("name","",this.ast.name.FULL_QUALIFIED_NAME)}if(this.next(),t||"("!==this.token){if("parent"===s.toLowerCase())return i("parentreference",s);if("self"===s.toLowerCase())return i("selfreference",s)}return i("name",s,e)},read_use_statement:function(){var t=this.node("usegroup"),e=[],i=null;this.expect(this.tok.T_USE)&&this.next();var s=this.read_use_type();return e.push(this.read_use_declaration(!1)),","===this.token?e=e.concat(this.next().read_use_declarations(!1)):"{"===this.token&&(i=e[0].name,e=this.next().read_use_declarations(null===s),this.expect("}")&&this.next()),t=t(i,s,e),this.expect(";")&&this.next(),t},read_class_name_reference:function(){return this.read_variable(!0,!1)},read_use_declaration:function(t){var e=this.node("useitem"),i=null;t&&(i=this.read_use_type());var s=this.read_namespace_name(),n=this.read_use_alias();return e(s.name,n,i)},read_use_declarations:function(t){for(var e=[this.read_use_declaration(t)];","===this.token;){if(this.next(),t){if(this.token!==this.tok.T_NAME_RELATIVE&&this.token!==this.tok.T_NAME_QUALIFIED&&this.token!==this.tok.T_NAME_FULLY_QUALIFIED&&this.token!==this.tok.T_FUNCTION&&this.token!==this.tok.T_CONST&&this.token!==this.tok.T_STRING)break}else if(this.token!==this.tok.T_NAME_RELATIVE&&this.token!==this.tok.T_NAME_QUALIFIED&&this.token!==this.tok.T_NAME_FULLY_QUALIFIED&&this.token!==this.tok.T_STRING&&this.token!==this.tok.T_NS_SEPARATOR)break;e.push(this.read_use_declaration(t))}return e},read_use_alias:function(){var t=null;if(this.token===this.tok.T_AS&&this.next().expect(this.tok.T_STRING)){var e=this.node("identifier"),i=this.text();this.next(),t=e(i)}return t},read_use_type:function(){return this.token===this.tok.T_FUNCTION?(this.next(),this.ast.useitem.TYPE_FUNCTION):this.token===this.tok.T_CONST?(this.next(),this.ast.useitem.TYPE_CONST):null}}},7170:t=>{var e={"\\":"\\",$:"$",n:"\n",r:"\r",t:"\t",f:String.fromCharCode(12),v:String.fromCharCode(11),e:String.fromCharCode(27)};t.exports={resolve_special_chars:function(t,i){return i?t.replace(/\\"/,'"').replace(/\\([\\$nrtfve]|[xX][0-9a-fA-F]{1,2}|[0-7]{1,3}|u{([0-9a-fA-F]+)})/g,(function(t,i,s){return e[i]?e[i]:"x"===i[0]||"X"===i[0]?String.fromCodePoint(parseInt(i.substr(1),16)):"u"===i[0]?String.fromCodePoint(parseInt(s,16)):String.fromCodePoint(parseInt(i,8))})):t.replace(/\\\\/g,"\\").replace(/\\'/g,"'")},remove_heredoc_leading_whitespace_chars:function(t,e,i,s){if(0===e)return t;this.check_heredoc_indentation_level(t,e,i,s);var n=i?" ":"\t",r=new RegExp("\\n".concat(n,"{").concat(e,"}"),"g"),h=new RegExp("^".concat(n,"{").concat(e,"}"));return s&&(t=t.replace(h,"")),t.replace(r,"\n")},check_heredoc_indentation_level:function(t,e,i,s){var n=t.length,r=0,h=0,o=!0,a=i?" ":"\t",_=!1;if(!s){if(-1===(r=t.indexOf("\n")))return;r++}for(;r<n;)o?t[r]===a?h++:_=!0:o=!1,"\n"!==t[r]&&_&&h<e?this.raiseError("Invalid body indentation level (expecting an indentation at least ".concat(e,")")):_=!1,"\n"===t[r]&&(o=!0,h=0),r++},read_dereferencable_scalar:function(){var t=null;switch(this.token){case this.tok.T_CONSTANT_ENCAPSED_STRING:var e=this.node("string"),i=this.text(),s=0;"b"!==i[0]&&"B"!==i[0]||(s=1);var n='"'===i[s];this.next(),e=e(n,this.resolve_special_chars(i.substring(s+1,i.length-1),n),1===s,i),t=this.token===this.tok.T_DOUBLE_COLON?this.read_static_getter(e):e;break;case this.tok.T_ARRAY:case"[":t=this.read_array()}return t},read_scalar:function(){if(this.is("T_MAGIC_CONST"))return this.get_magic_constant();var t,e;switch(this.token){case this.tok.T_LNUMBER:case this.tok.T_DNUMBER:var i=this.node("number");return t=this.text(),this.next(),i(t,null);case this.tok.T_START_HEREDOC:if("ST_NOWDOC"===this.lexer.curCondition){var s=this.lexer.yylloc.first_offset;e=this.node("nowdoc"),t=this.next().text(),this.lexer.heredoc_label.indentation>0&&(t=t.substring(0,t.length-this.lexer.heredoc_label.indentation));var n=t[t.length-1];"\n"===n?t="\r"===t[t.length-2]?t.substring(0,t.length-2):t.substring(0,t.length-1):"\r"===n&&(t=t.substring(0,t.length-1)),this.expect(this.tok.T_ENCAPSED_AND_WHITESPACE)&&this.next(),this.expect(this.tok.T_END_HEREDOC)&&this.next();var r=this.lexer._input.substring(s,this.lexer.yylloc.first_offset);return e=e(this.remove_heredoc_leading_whitespace_chars(t,this.lexer.heredoc_label.indentation,this.lexer.heredoc_label.indentation_uses_spaces,this.lexer.heredoc_label.first_encaps_node),r,this.lexer.heredoc_label.label),this.lexer.heredoc_label.finished=!0,e}return this.read_encapsed_string(this.tok.T_END_HEREDOC);case'"':return this.read_encapsed_string('"');case'b"':case'B"':return this.read_encapsed_string('"',!0);case this.tok.T_CONSTANT_ENCAPSED_STRING:case this.tok.T_ARRAY:case"[":return this.read_dereferencable_scalar();default:var h=this.error("SCALAR");return this.next(),h}},read_dereferencable:function(t){var e,i,s=this.node("offsetlookup");return"["===this.token?(i=this.next().read_expr(),this.expect("]")&&this.next(),e=s(t,i)):this.token===this.tok.T_DOLLAR_OPEN_CURLY_BRACES&&(e=s(t,i=this.read_encapsed_string_item(!1))),e},read_encapsed_string_item:function(t){var e,i,s,n=this.node("encapsedpart"),r=null,h=!1,o=this.node();if(this.token===this.tok.T_ENCAPSED_AND_WHITESPACE){var a=this.text();this.next(),o=o("string",!1,this.version>=703&&!this.lexer.heredoc_label.finished?this.remove_heredoc_leading_whitespace_chars(this.resolve_special_chars(a,t),this.lexer.heredoc_label.indentation,this.lexer.heredoc_label.indentation_uses_spaces,this.lexer.heredoc_label.first_encaps_node):a,!1,a)}else if(this.token===this.tok.T_DOLLAR_OPEN_CURLY_BRACES){if(r="simple",h=!0,s=null,this.next().token===this.tok.T_STRING_VARNAME){s=this.node("variable");var _=this.text();this.next(),o.destroy(),"["===this.token?(s=s(_,!1),i=this.node("offsetlookup"),e=this.next().read_expr(),this.expect("]")&&this.next(),o=i(s,e)):o=s(_,!1)}else o=o("variable",this.read_expr(),!1);this.expect("}")&&this.next()}else if(this.token===this.tok.T_CURLY_OPEN)r="complex",o.destroy(),o=this.next().read_variable(!1,!1),this.expect("}")&&this.next();else if(this.token===this.tok.T_VARIABLE){if(r="simple",o.destroy(),o=this.read_simple_variable(),"["===this.token&&(i=this.node("offsetlookup"),e=this.next().read_encaps_var_offset(),this.expect("]")&&this.next(),o=i(o,e)),this.token===this.tok.T_OBJECT_OPERATOR){i=this.node("propertylookup"),this.next().expect(this.tok.T_STRING);var l=this.node("identifier");s=this.text(),this.next(),o=i(o,l(s))}}else{this.expect(this.tok.T_ENCAPSED_AND_WHITESPACE);var c=this.text();this.next(),o.destroy(),o=o("string",!1,c,!1,c)}return this.lexer.heredoc_label.first_encaps_node=!1,n(o,r,h)},read_encapsed_string:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.lexer.yylloc.first_offset,s=this.node("encapsed");this.next();var n,r=this.lexer.yylloc.prev_offset-(e?1:0),h=[];for(n="`"===t?this.ast.encapsed.TYPE_SHELL:'"'===t?this.ast.encapsed.TYPE_STRING:this.ast.encapsed.TYPE_HEREDOC;this.token!==t&&this.token!==this.EOF;)h.push(this.read_encapsed_string_item(!0));if(h.length>0&&"encapsedpart"===h[h.length-1].kind&&"string"===h[h.length-1].expression.kind){var o=h[h.length-1].expression,a=o.value[o.value.length-1];"\n"===a?"\r"===o.value[o.value.length-2]?o.value=o.value.substring(0,o.value.length-2):o.value=o.value.substring(0,o.value.length-1):"\r"===a&&(o.value=o.value.substring(0,o.value.length-1))}return this.expect(t)&&this.next(),s=s(h,this.lexer._input.substring("heredoc"===n?i:r-1,this.lexer.yylloc.first_offset),n),t===this.tok.T_END_HEREDOC&&(s.label=this.lexer.heredoc_label.label,this.lexer.heredoc_label.finished=!0),s},get_magic_constant:function(){var t=this.node("magic"),e=this.text();return this.next(),t(e.toUpperCase(),e)}}},6261:t=>{t.exports={read_top_statements:function(){for(var t=[];this.token!==this.EOF&&"}"!==this.token;){var e=this.read_top_statement();e&&(Array.isArray(e)?t=t.concat(e):t.push(e))}return t},read_top_statement:function(){var t=[];switch(this.token===this.tok.T_ATTRIBUTE&&(t=this.read_attr_list()),this.token){case this.tok.T_FUNCTION:return this.read_function(!1,!1,t);case this.tok.T_ABSTRACT:case this.tok.T_FINAL:case this.tok.T_READ_ONLY:case this.tok.T_CLASS:return this.read_class_declaration_statement(t);case this.tok.T_INTERFACE:return this.read_interface_declaration_statement(t);case this.tok.T_TRAIT:return this.read_trait_declaration_statement();case this.tok.T_ENUM:return this.read_enum_declaration_statement(t);case this.tok.T_USE:return this.read_use_statement();case this.tok.T_CONST:var e=this.node("constantstatement"),i=this.next().read_const_list();return this.expectEndOfStatement(),e(null,i);case this.tok.T_NAMESPACE:return this.read_namespace();case this.tok.T_HALT_COMPILER:var s=this.node("halt");return this.next().expect("(")&&this.next(),this.expect(")")&&this.next(),this.expect(";"),this.lexer.done=!0,s(this.lexer._input.substring(this.lexer.offset));default:return this.read_statement()}},read_inner_statements:function(){for(var t=[];this.token!=this.EOF&&"}"!==this.token;){var e=this.read_inner_statement();e&&(Array.isArray(e)?t=t.concat(e):t.push(e))}return t},read_const_list:function(){return this.read_list((function(){this.expect(this.tok.T_STRING);var t=this.node("constant"),e=this.node("identifier"),i=this.text();return this.next(),e=e(i),this.expect("=")?t(e,this.next().read_expr()):t(e,null)}),",",!1)},read_declare_list:function(){for(var t=[];this.token!=this.EOF&&")"!==this.token;){this.expect(this.tok.T_STRING);var e=this.node("declaredirective"),i=this.node("identifier"),s=this.text();this.next(),i=i(s);var n=null;if(this.expect("=")&&(n=this.next().read_expr()),t.push(e(i,n)),","!==this.token)break;this.next()}return t},read_inner_statement:function(){var t=[];switch(this.token===this.tok.T_ATTRIBUTE&&(t=this.read_attr_list()),this.token){case this.tok.T_FUNCTION:var e=this.read_function(!1,!1);return e.attrGroups=t,e;case this.tok.T_ABSTRACT:case this.tok.T_FINAL:case this.tok.T_CLASS:return this.read_class_declaration_statement();case this.tok.T_INTERFACE:return this.read_interface_declaration_statement();case this.tok.T_TRAIT:return this.read_trait_declaration_statement();case this.tok.T_ENUM:return this.read_enum_declaration_statement();case this.tok.T_HALT_COMPILER:this.raiseError("__HALT_COMPILER() can only be used from the outermost scope");var i=this.node("halt");return this.next().expect("(")&&this.next(),this.expect(")")&&this.next(),i=i(this.lexer._input.substring(this.lexer.offset)),this.expect(";")&&this.next(),i;default:return this.read_statement()}},read_statement:function(){switch(this.token){case"{":return this.read_code_block(!1);case this.tok.T_IF:return this.read_if();case this.tok.T_SWITCH:return this.read_switch();case this.tok.T_FOR:return this.read_for();case this.tok.T_FOREACH:return this.read_foreach();case this.tok.T_WHILE:return this.read_while();case this.tok.T_DO:return this.read_do();case this.tok.T_COMMENT:return this.read_comment();case this.tok.T_DOC_COMMENT:return this.read_doc_comment();case this.tok.T_RETURN:var t=this.node("return");this.next();var e=this.read_optional_expr(";");return this.expectEndOfStatement(),t(e);case this.tok.T_BREAK:case this.tok.T_CONTINUE:var i=this.node(this.token===this.tok.T_CONTINUE?"continue":"break");this.next();var s=this.read_optional_expr(";");return this.expectEndOfStatement(),i(s);case this.tok.T_GLOBAL:var n=this.node("global"),r=this.next().read_list(this.read_simple_variable,",");return this.expectEndOfStatement(),n(r);case this.tok.T_STATIC:var h=[this.token,this.lexer.getState()],o=this.node();if(this.next().token===this.tok.T_DOUBLE_COLON){this.lexer.tokens.push(h);var a=this.next().read_expr();return this.expectEndOfStatement(a),o("expressionstatement",a)}if(this.token===this.tok.T_FUNCTION)return this.read_function(!0,[0,1,0]);var _=this.read_variable_declarations();return this.expectEndOfStatement(),o("static",_);case this.tok.T_ECHO:var l=this.node("echo"),c=this.text(),u="<?="===c||"<%="===c,p=this.next().read_function_list(this.read_expr,",");return this.expectEndOfStatement(),l(p,u);case this.tok.T_INLINE_HTML:var f=this.text(),T=this.lexer.yylloc.first_offset>0?this.lexer._input[this.lexer.yylloc.first_offset-1]:null,d="\r"===T||"\n"===T;d&&"\n"===T&&this.lexer.yylloc.first_offset>1&&"\r"===this.lexer._input[this.lexer.yylloc.first_offset-2]&&(T="\r\n");var k=this.node("inline");return this.next(),k(f,d?T+f:f);case this.tok.T_UNSET:var x=this.node("unset");this.next().expect("(")&&this.next();var E=this.read_function_list(this.read_variable,",");return this.expect(")")&&this.next(),this.expect(";")&&this.next(),x(E);case this.tok.T_DECLARE:var A,y=this.node("declare"),v=[];this.next().expect("(")&&this.next();var m=this.read_declare_list();if(this.expect(")")&&this.next(),":"===this.token){for(this.next();this.token!=this.EOF&&this.token!==this.tok.T_ENDDECLARE;)v.push(this.read_top_statement());0===v.length&&this.extractDoc&&this._docs.length>this._docIndex&&v.push(this.node("noop")()),this.expect(this.tok.T_ENDDECLARE)&&this.next(),this.expectEndOfStatement(),A=this.ast.declare.MODE_SHORT}else if("{"===this.token){for(this.next();this.token!=this.EOF&&"}"!==this.token;)v.push(this.read_top_statement());0===v.length&&this.extractDoc&&this._docs.length>this._docIndex&&v.push(this.node("noop")()),this.expect("}")&&this.next(),A=this.ast.declare.MODE_BLOCK}else this.expect(";")&&this.next(),A=this.ast.declare.MODE_NONE;return y(m,v,A);case this.tok.T_TRY:return this.read_try();case this.tok.T_THROW:var N=this.node("throw"),I=this.next().read_expr();return this.expectEndOfStatement(),N(I);case";":return this.next(),null;case this.tok.T_STRING:var L=this.node(),S=[this.token,this.lexer.getState()],C=this.text(),O=this.node("identifier");if(":"===this.next().token)return O=O(C),this.next(),L("label",O);O.destroy(),L.destroy(),this.lexer.tokens.push(S);var b=this.node("expressionstatement"),R=this.next().read_expr();return this.expectEndOfStatement(R),b(R);case this.tok.T_GOTO:var g=this.node("goto"),D=null;if(this.next().expect(this.tok.T_STRING)){D=this.node("identifier");var U=this.text();this.next(),D=D(U),this.expectEndOfStatement()}return g(D);default:var P=this.node("expressionstatement"),M=this.read_expr();return this.expectEndOfStatement(M),P(M)}},read_code_block:function(t){var e=this.node("block");this.expect("{")&&this.next();var i=t?this.read_top_statements():this.read_inner_statements();return 0===i.length&&this.extractDoc&&this._docs.length>this._docIndex&&i.push(this.node("noop")()),this.expect("}")&&this.next(),e(null,i)}}},2478:t=>{t.exports={read_switch:function(){var t=this.node("switch");this.expect(this.tok.T_SWITCH)&&this.next(),this.expect("(")&&this.next();var e=this.read_expr();this.expect(")")&&this.next();var i=":"===this.token;return t(e,this.read_switch_case_list(),i)},read_switch_case_list:function(){var t=null,e=this.node("block"),i=[];for("{"===this.token?t="}":":"===this.token?t=this.tok.T_ENDSWITCH:this.expect(["{",":"]),this.next(),";"===this.token&&this.next();this.token!==this.EOF&&this.token!==t;)i.push(this.read_case_list(t));return 0===i.length&&this.extractDoc&&this._docs.length>this._docIndex&&i.push(this.node("noop")()),this.expect(t)&&this.next(),t===this.tok.T_ENDSWITCH&&this.expectEndOfStatement(),e(null,i)},read_case_list:function(t){var e=this.node("case"),i=null;this.token===this.tok.T_CASE?i=this.next().read_expr():this.token===this.tok.T_DEFAULT?this.next():this.expect([this.tok.T_CASE,this.tok.T_DEFAULT]),this.expect([":",";"])&&this.next();for(var s=this.node("block"),n=[];this.token!==this.EOF&&this.token!==t&&this.token!==this.tok.T_CASE&&this.token!==this.tok.T_DEFAULT;)n.push(this.read_inner_statement());return e(i,s(null,n))}}},77:t=>{t.exports={read_try:function(){this.expect(this.tok.T_TRY);for(var t=this.node("try"),e=null,i=[],s=this.next().read_statement();this.token===this.tok.T_CATCH;){var n=this.node("catch");this.next().expect("(")&&this.next();var r=this.read_list(this.read_namespace_name,"|",!1),h=null;(this.version<800||this.token===this.tok.T_VARIABLE)&&(h=this.read_variable(!0,!1)),this.expect(")"),i.push(n(this.next().read_statement(),r,h))}return this.token===this.tok.T_FINALLY&&(e=this.next().read_statement()),t(s,i,e)}}},6077:t=>{t.exports={read_short_form:function(t){var e=this.node("block"),i=[];for(this.expect(":")&&this.next();this.token!=this.EOF&&this.token!==t;)i.push(this.read_inner_statement());return 0===i.length&&this.extractDoc&&this._docs.length>this._docIndex&&i.push(this.node("noop")()),this.expect(t)&&this.next(),this.expectEndOfStatement(),e(null,i)},read_function_list:function(t,e){var i=[];do{if(this.token==e&&this.version>=703&&i.length>0){i.push(this.node("noop")());break}if(i.push(t.apply(this,[])),this.token!=e)break;if(")"==this.next().token&&this.version>=703)break}while(this.token!=this.EOF);return i},read_list:function(t,e,i){var s=[];if(this.token==e&&(i&&s.push("function"==typeof t?this.node("noop")():null),this.next()),"function"==typeof t)do{var n=t.apply(this,[]);if(n&&s.push(n),this.token!=e)break}while(this.next().token!=this.EOF);else{if(!this.expect(t))return[];for(s.push(this.text());this.next().token!=this.EOF&&this.token==e&&this.next().token==t;)s.push(this.text())}return s},read_name_list:function(){return this.read_list(this.read_namespace_name,",",!1)},read_byref:function(t){var e=this.node("byref");this.next(),e=e(null);var i=t();return i&&(this.ast.swapLocations(i,e,i,this),i.byref=!0),i},read_variable_declarations:function(){return this.read_list((function(){var t=this.node("staticvariable"),e=this.node("variable");if(this.expect(this.tok.T_VARIABLE)){var i=this.text().substring(1);this.next(),e=e(i,!1)}else e=e("#ERR",!1);return"="===this.token?t(e,this.next().read_expr()):e}),",")},read_extends_from:function(){return this.token===this.tok.T_EXTENDS?this.next().read_namespace_name():null},read_interface_extends_list:function(){return this.token===this.tok.T_EXTENDS?this.next().read_name_list():null},read_implements_list:function(){return this.token===this.tok.T_IMPLEMENTS?this.next().read_name_list():null}}},1130:t=>{t.exports={read_variable:function(t,e){var i;if("&"===this.token)return this.read_byref(this.read_variable.bind(this,t,e));if(this.is([this.tok.T_VARIABLE,"$"]))i=this.read_reference_variable(e);else if(this.is([this.tok.T_NS_SEPARATOR,this.tok.T_STRING,this.tok.T_NAME_RELATIVE,this.tok.T_NAME_QUALIFIED,this.tok.T_NAME_FULLY_QUALIFIED,this.tok.T_NAMESPACE])){i=this.node();var s=this.read_namespace_name();if(this.token!=this.tok.T_DOUBLE_COLON&&"("!=this.token&&-1===["parentreference","selfreference"].indexOf(s.kind)){var n=s.name.toLowerCase();"true"===n?i=s.destroy(i("boolean",!0,s.name)):"false"===n?i=s.destroy(i("boolean",!1,s.name)):"null"===n?i=s.destroy(i("nullkeyword",s.name)):(i.destroy(s),i=s)}else i.destroy(s),i=s}else if(this.token===this.tok.T_STATIC){i=this.node("staticreference");var r=this.text();this.next(),i=i(r)}else this.expect("VARIABLE");return this.token===this.tok.T_DOUBLE_COLON&&(i=this.read_static_getter(i,e)),this.recursive_variable_chain_scan(i,t,e)},read_static_getter:function(t,e){var i,s,n=this.node("staticlookup");return this.next().is([this.tok.T_VARIABLE,"$"])?i=this.read_reference_variable(e):this.token===this.tok.T_STRING||this.token===this.tok.T_CLASS||this.version>=700&&this.is("IDENTIFIER")?(i=this.node("identifier"),s=this.text(),this.next(),i=i(s)):"{"===this.token?(i=this.node("literal"),s=this.next().read_expr(),this.expect("}")&&this.next(),i=i("literal",s,null),this.expect("(")):(this.error([this.tok.T_VARIABLE,this.tok.T_STRING]),i=this.node("identifier"),s=this.text(),this.next(),i=i(s)),n(t,i)},read_what:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=null,i=null;switch(this.next().token){case this.tok.T_STRING:e=this.node("identifier"),i=this.text(),this.next(),e=e(i),t&&this.token===this.tok.T_OBJECT_OPERATOR&&this.error();break;case this.tok.T_VARIABLE:e=this.node("variable"),i=this.text().substring(1),this.next(),e=e(i,!1);break;case"$":e=this.node(),this.next().expect(["$","{",this.tok.T_VARIABLE]),"{"===this.token?(i=this.next().read_expr(),this.expect("}")&&this.next(),e=e("variable",i,!0)):e=e("variable",i=this.read_expr(),!1);break;case"{":e=this.node("encapsedpart"),i=this.next().read_expr(),this.expect("}")&&this.next(),e=e(i,"complex",!1);break;default:this.error([this.tok.T_STRING,this.tok.T_VARIABLE,"$","{"]),e=this.node("identifier"),i=this.text(),this.next(),e=e(i)}return e},recursive_variable_chain_scan:function(t,e,i){var s,n;t:for(;this.token!=this.EOF;)switch(this.token){case"(":if(e)return t;t=this.node("call")(t,this.read_argument_list());break;case"[":case"{":var r="["===this.token;s=this.node("offsetlookup"),this.next(),n=!1,i?(n=this.read_encaps_var_offset(),this.expect(r?"]":"}")&&this.next()):(r?"]"!==this.token:"}"!==this.token)?(n=this.read_expr(),this.expect(r?"]":"}")&&this.next()):this.next(),t=s(t,n);break;case this.tok.T_DOUBLE_COLON:"staticlookup"===t.kind&&"identifier"===t.offset.kind&&this.error(),t=(s=this.node("staticlookup"))(t,this.read_what(!0));break;case this.tok.T_OBJECT_OPERATOR:t=(s=this.node("propertylookup"))(t,this.read_what());break;case this.tok.T_NULLSAFE_OBJECT_OPERATOR:t=(s=this.node("nullsafepropertylookup"))(t,this.read_what());break;default:break t}return t},read_encaps_var_offset:function(){var t=this.node();if(this.token===this.tok.T_STRING){var e=this.text();this.next(),t=t("identifier",e)}else if(this.token===this.tok.T_NUM_STRING){var i=this.text();this.next(),t=t("number",i,null)}else if("-"===this.token){this.next();var s=-1*this.text();this.expect(this.tok.T_NUM_STRING)&&this.next(),t=t("number",s,null)}else if(this.token===this.tok.T_VARIABLE){var n=this.text().substring(1);this.next(),t=t("variable",n,!1)}else{this.expect([this.tok.T_STRING,this.tok.T_NUM_STRING,"-",this.tok.T_VARIABLE]);var r=this.text();this.next(),t=t("identifier",r)}return t},read_reference_variable:function(t){for(var e,i=this.read_simple_variable();this.token!=this.EOF;){var s=this.node();if("{"!=this.token||t){s.destroy();break}e=this.next().read_expr(),this.expect("}")&&this.next(),i=s("offsetlookup",i,e)}return i},read_simple_variable:function(){var t,e=this.node("variable");if(this.expect([this.tok.T_VARIABLE,"$"])&&this.token===this.tok.T_VARIABLE)t=this.text().substring(1),this.next(),e=e(t,!1);else switch("$"===this.token&&this.next(),this.token){case"{":var i=this.next().read_expr();this.expect("}")&&this.next(),e=e(i,!0);break;case"$":e=e(this.read_simple_variable(),!1);break;case this.tok.T_VARIABLE:t=this.text().substring(1);var s=this.node("variable");this.next(),e=e(s(t,!1),!1);break;default:this.error(["{","$",this.tok.T_VARIABLE]),t=this.text(),this.next(),e=e(t,!1)}return e}}},1906:t=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function i(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function s(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?i(Object(s),!0).forEach((function(e){n(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):i(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function n(t,i,s){return(i=function(t){var i=function(t){if("object"!=e(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,"string");if("object"!=e(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(i)?i:i+""}(i))in t?Object.defineProperty(t,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[i]=s,t}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}var h={T_HALT_COMPILER:101,T_USE:102,T_ENCAPSED_AND_WHITESPACE:103,T_OBJECT_OPERATOR:104,T_STRING:105,T_DOLLAR_OPEN_CURLY_BRACES:106,T_STRING_VARNAME:107,T_CURLY_OPEN:108,T_NUM_STRING:109,T_ISSET:110,T_EMPTY:111,T_INCLUDE:112,T_INCLUDE_ONCE:113,T_EVAL:114,T_REQUIRE:115,T_REQUIRE_ONCE:116,T_NAMESPACE:117,T_NS_SEPARATOR:118,T_AS:119,T_IF:120,T_ENDIF:121,T_WHILE:122,T_DO:123,T_FOR:124,T_SWITCH:125,T_BREAK:126,T_CONTINUE:127,T_RETURN:128,T_GLOBAL:129,T_STATIC:130,T_ECHO:131,T_INLINE_HTML:132,T_UNSET:133,T_FOREACH:134,T_DECLARE:135,T_TRY:136,T_THROW:137,T_GOTO:138,T_FINALLY:139,T_CATCH:140,T_ENDDECLARE:141,T_LIST:142,T_CLONE:143,T_PLUS_EQUAL:144,T_MINUS_EQUAL:145,T_MUL_EQUAL:146,T_DIV_EQUAL:147,T_CONCAT_EQUAL:148,T_MOD_EQUAL:149,T_AND_EQUAL:150,T_OR_EQUAL:151,T_XOR_EQUAL:152,T_SL_EQUAL:153,T_SR_EQUAL:154,T_INC:155,T_DEC:156,T_BOOLEAN_OR:157,T_BOOLEAN_AND:158,T_LOGICAL_OR:159,T_LOGICAL_AND:160,T_LOGICAL_XOR:161,T_SL:162,T_SR:163,T_IS_IDENTICAL:164,T_IS_NOT_IDENTICAL:165,T_IS_EQUAL:166,T_IS_NOT_EQUAL:167,T_IS_SMALLER_OR_EQUAL:168,T_IS_GREATER_OR_EQUAL:169,T_INSTANCEOF:170,T_INT_CAST:171,T_DOUBLE_CAST:172,T_STRING_CAST:173,T_ARRAY_CAST:174,T_OBJECT_CAST:175,T_BOOL_CAST:176,T_UNSET_CAST:177,T_EXIT:178,T_PRINT:179,T_YIELD:180,T_YIELD_FROM:181,T_FUNCTION:182,T_DOUBLE_ARROW:183,T_DOUBLE_COLON:184,T_ARRAY:185,T_CALLABLE:186,T_CLASS:187,T_ABSTRACT:188,T_TRAIT:189,T_FINAL:190,T_EXTENDS:191,T_INTERFACE:192,T_IMPLEMENTS:193,T_VAR:194,T_PUBLIC:195,T_PROTECTED:196,T_PRIVATE:197,T_CONST:198,T_NEW:199,T_INSTEADOF:200,T_ELSEIF:201,T_ELSE:202,T_ENDSWITCH:203,T_CASE:204,T_DEFAULT:205,T_ENDFOR:206,T_ENDFOREACH:207,T_ENDWHILE:208,T_CONSTANT_ENCAPSED_STRING:209,T_LNUMBER:210,T_DNUMBER:211,T_LINE:212,T_FILE:213,T_DIR:214,T_TRAIT_C:215,T_METHOD_C:216,T_FUNC_C:217,T_NS_C:218,T_START_HEREDOC:219,T_END_HEREDOC:220,T_CLASS_C:221,T_VARIABLE:222,T_OPEN_TAG:223,T_OPEN_TAG_WITH_ECHO:224,T_CLOSE_TAG:225,T_WHITESPACE:226,T_COMMENT:227,T_DOC_COMMENT:228,T_ELLIPSIS:229,T_COALESCE:230,T_POW:231,T_POW_EQUAL:232,T_SPACESHIP:233,T_COALESCE_EQUAL:234,T_FN:235,T_NULLSAFE_OBJECT_OPERATOR:236,T_MATCH:237,T_ATTRIBUTE:238,T_ENUM:239,T_READ_ONLY:240,T_NAME_RELATIVE:241,T_NAME_QUALIFIED:242,T_NAME_FULLY_QUALIFIED:243},o={values:Object.entries(h).reduce((function(t,e){var i,h,o=(h=2,function(t){if(Array.isArray(t))return t}(i=e)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var s,n,r,h,o=[],a=!0,_=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;a=!1}else for(;!(a=(s=r.call(i)).done)&&(o.push(s.value),o.length!==e);a=!0);}catch(t){_=!0,n=t}finally{try{if(!a&&null!=i.return&&(h=i.return(),Object(h)!==h))return}finally{if(_)throw n}}return o}}(i,h)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(t,e):void 0}}(i,h)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],_=o[1];return s(s({},t),{},n({},_,a))}),{}),names:h};t.exports=Object.freeze(o)}},e={},i=function i(s){var n=e[s];if(void 0!==n)return n.exports;var r=e[s]={exports:{}};return t[s](r,r.exports,i),r.exports}(5362);return i.default})(),t.exports=e()},3145:(t,e,i)=>{"use strict";function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}i.d(e,{A:()=>s})},6369:(t,e,i)=>{"use strict";function s(t){if(Array.isArray(t))return t}i.d(e,{A:()=>s})},3029:(t,e,i)=>{"use strict";function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}i.d(e,{A:()=>s})},2901:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var s=i(9922);function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(0,s.A)(n.key),n)}}function r(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}},6986:(t,e,i)=>{"use strict";function s(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var s,n,r,h,o=[],a=!0,_=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;a=!1}else for(;!(a=(s=r.call(i)).done)&&(o.push(s.value),o.length!==e);a=!0);}catch(t){_=!0,n=t}finally{try{if(!a&&null!=i.return&&(h=i.return(),Object(h)!==h))return}finally{if(_)throw n}}return o}}i.d(e,{A:()=>s})},6562:(t,e,i)=>{"use strict";function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}i.d(e,{A:()=>s})},3453:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var s=i(6369),n=i(6986),r=i(7800),h=i(6562);function o(t,e){return(0,s.A)(t)||(0,n.A)(t,e)||(0,r.A)(t,e)||(0,h.A)()}},2327:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var s=i(2284);function n(t,e){if("object"!=(0,s.A)(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=(0,s.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}},9922:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var s=i(2284),n=i(2327);function r(t){var e=(0,n.A)(t,"string");return"symbol"==(0,s.A)(e)?e:e+""}},2284:(t,e,i)=>{"use strict";function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}i.d(e,{A:()=>s})},7800:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var s=i(3145);function n(t,e){if(t){if("string"==typeof t)return(0,s.A)(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?(0,s.A)(t,e):void 0}}}},i={};function s(t){var n=i[t];if(void 0!==n)return n.exports;var r=i[t]={exports:{}};return e[t](r,r.exports,s),r.exports}s.m=e,t=[],s.O=(e,i,n,r)=>{if(!i){var h=1/0;for(l=0;l<t.length;l++){for(var[i,n,r]=t[l],o=!0,a=0;a<i.length;a++)(!1&r||h>=r)&&Object.keys(s.O).every((t=>s.O[t](i[a])))?i.splice(a--,1):(o=!1,r<h&&(h=r));if(o){t.splice(l--,1);var _=n();void 0!==_&&(e=_)}}return e}r=r||0;for(var l=t.length;l>0&&t[l-1][2]>r;l--)t[l]=t[l-1];t[l]=[i,n,r]},s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={6008:0};s.O.j=e=>0===t[e];var e=(e,i)=>{var n,r,[h,o,a]=i,_=0;if(h.some((e=>0!==t[e]))){for(n in o)s.o(o,n)&&(s.m[n]=o[n]);if(a)var l=a(s)}for(e&&e(i);_<h.length;_++)r=h[_],s.o(t,r)&&t[r]&&t[r][0](),t[r]=0;return s.O(l)},i=self.webpackChunkcode_snippets=self.webpackChunkcode_snippets||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var n=s(3099);n=s.O(n)})();
  • code-snippets/tags/3.7.0-beta/dist/manage-rtl.css

    r3345197 r3348557  
    1 .badge{align-items:center;border-radius:3px;box-sizing:border-box;display:inline-flex;font-size:12px;font-weight:700;gap:5px;justify-content:center;line-height:1;min-block-size:24px;min-inline-size:43px;padding-block:0;padding-inline:3px;text-align:center;text-transform:uppercase}.badge .dashicons{block-size:18px;font-size:18px;inline-size:18px}.small-badge{block-size:auto;font-size:smaller;inline-size:auto;padding-block:0;padding-inline:.5em}.wp-core-ui .button.nav-tab-button{align-items:center;align-self:center;background:#f6f7f7;border-color:#f6f7f7;color:#a7aaad;display:flex;float:inline-end;gap:2px;justify-content:center;margin-inline-start:.5em}.badge.php-badge,.nav-tab-inactive:hover .badge.php-badge,:hover>.inverted-badges .php-badge{background-color:#1d97c6;color:#fff}.badge.php-badge:hover{background-color:#1a86b0;color:#fff}.badge.html-badge,.nav-tab-inactive:hover .badge.html-badge,:hover>.inverted-badges .html-badge{background-color:#ef6a36;color:#fff}.badge.html-badge:hover{background-color:#ed581e;color:#fff}.badge.css-badge,.nav-tab-inactive:hover .badge.css-badge,:hover>.inverted-badges .css-badge{background-color:#9b59b6;color:#fff}.badge.css-badge:hover{background-color:#8f4bab;color:#fff}.badge.js-badge,.nav-tab-inactive:hover .badge.js-badge,:hover>.inverted-badges .js-badge{background-color:#ffeb3b;color:#1c1f20}.badge.js-badge:hover{background-color:#ffe822;color:#1c1f20}.badge.cond-badge,.nav-tab-inactive:hover .badge.cond-badge,:hover>.inverted-badges .cond-badge{background-color:#2eae95;color:#fff}.badge.cond-badge:hover{background-color:#299a84;color:#fff}.badge.core-badge,.nav-tab-inactive:hover .badge.core-badge,:hover>.inverted-badges .core-badge{background-color:#61c5cb;color:#fff}.badge.core-badge:hover{background-color:#4ebec5;color:#fff}.badge.pro-badge,.nav-tab-inactive:hover .badge.pro-badge,:hover>.inverted-badges .pro-badge{background-color:#f7e8e3;color:#df9279}.badge.pro-badge:hover{background-color:#f1d8cf;color:#df9279}.badge.cloud-badge,.nav-tab-inactive:hover .badge.cloud-badge,:hover>.inverted-badges .cloud-badge{background-color:#00bcd4;color:#fff}.badge.cloud-badge:hover{background-color:#00a5bb;color:#fff}.badge.bundles-badge,.nav-tab-inactive:hover .badge.bundles-badge,:hover>.inverted-badges .bundles-badge{background-color:#50575e;color:#fff}.badge.bundles-badge:hover{background-color:#444a50;color:#fff}.badge.cloud_search-badge,.nav-tab-inactive:hover .badge.cloud_search-badge,:hover>.inverted-badges .cloud_search-badge{background-color:#ff9800;color:#fff}.badge.cloud_search-badge:hover{background-color:#e68900;color:#fff}.badge.private-badge,.nav-tab-inactive:hover .badge.private-badge,:hover>.inverted-badges .private-badge{background-color:#f7e6be;color:#ca961b}.badge.private-badge:hover{background-color:#f4dda7;color:#ca961b}.badge.public-badge,.nav-tab-inactive:hover .badge.public-badge,:hover>.inverted-badges .public-badge{background-color:#dbebf7;color:#2271b1}.badge.public-badge:hover{background-color:#c6dff2;color:#2271b1}.badge.success-badge,.nav-tab-inactive:hover .badge.success-badge,:hover>.inverted-badges .success-badge{background-color:#d3e8d1;color:#447340}.badge.success-badge:hover{background-color:#c3e0c0;color:#447340}.badge.failure-badge,.nav-tab-inactive:hover .badge.failure-badge,:hover>.inverted-badges .failure-badge{background-color:#fad7c1;color:#a24b16}.badge.failure-badge:hover{background-color:#f8c8a9;color:#a24b16}.badge.info-badge,.nav-tab-inactive:hover .badge.info-badge,:hover>.inverted-badges .info-badge{background-color:#d2e6f4;color:#2b71a3}.badge.info-badge:hover{background-color:#bedbef;color:#2b71a3}.badge.neutral-badge,.nav-tab-inactive:hover .badge.neutral-badge,:hover>.inverted-badges .neutral-badge{background-color:#e2e5e5;color:#6c7e7e}.badge.neutral-badge:hover{background-color:#d5d9d9;color:#6c7e7e}.badge.special-badge,.nav-tab-inactive:hover .badge.special-badge,:hover>.inverted-badges .special-badge{background-color:#dfc5ef;color:#6e249c}.badge.special-badge:hover{background-color:#d4b1e9;color:#6e249c}.inverted-badges .badge,.nav-tab-inactive .badge{background-color:#a7aaad;color:#fff}.nav-tab-inactive{background:transparent}.nav-tab-button .dashicons-external{color:#666;font-size:15px}.snippet-activation-switch,.snippet-execution-button,input[type=checkbox].switch{display:block;position:relative}.snippet-activation-switch,input[type=checkbox].switch{-webkit-appearance:none;-moz-appearance:none;appearance:none;block-size:19px;border:1px solid #2271b1;border-radius:34px;box-sizing:border-box;cursor:pointer;inline-size:32px;margin:0;outline:0;text-align:start}.snippet-activation-switch:before,input[type=checkbox].switch:before{background-color:#2271b1;block-size:13px;border-radius:50%;content:"";display:inline-block;inline-size:13px;margin:2px;transition:all .4s}.active-snippet .snippet-activation-switch,input[type=checkbox].switch:checked{background-color:#0073aa}.active-snippet .snippet-activation-switch:before,input[type=checkbox].switch:checked:before{background-color:#fff;transform:translateX(-100%)}.erroneous-snippet .snippet-activation-switch:before{color:#bbb;content:"!";font-weight:700;line-height:1;text-align:center;transform:translateX(-50%)}a.snippet-condition-count{align-items:center;block-size:29px;border:1.8px solid;border-radius:50%;box-sizing:border-box;display:flex;inline-size:29px;justify-content:center}.inactive-snippet a.snippet-condition-count{color:#ccc}.active-snippet a.snippet-condition-count{color:#2271b1;font-weight:700}.snippet-execution-button{block-size:0;border-block:9px solid transparent;border-inline-start:10px solid #ccc;inline-size:0;margin-block-start:9px;margin-inline-start:11px}.snippet-execution-button:before{border:1.8px solid #ccc;border-radius:50%;content:"";inset:-14px -8px -14px -21px;position:absolute;z-index:2}.snippet-execution-button:hover{border-inline-start-color:#2271b1;transition:border-right-color .6s}.snippet-execution-button:hover:before{border-color:#2271b1;transition:border-color .6s}.code-snippets-select input[type=text]:focus{box-shadow:none}.help-tooltip{border-block-end:1px dotted;display:inline-flex;flex-direction:column;justify-content:center;position:relative;vertical-align:middle}.help-tooltip-anchor{background:transparent!important;cursor:help;display:inline-block;font-size:10px;padding-block:.3em 0;padding-inline:.3em}.tooltip{cursor:help!important;display:inline-block;position:relative}.tooltip .dashicons{color:#789}.tooltip.badge{display:inline-flex}.tooltip.badge .dashicons{color:inherit}.tooltip-content,.tooltip:before{opacity:0;pointer-events:none;position:absolute;transform:translateZ(0);transition:opacity .2s ease-in-out,visibility .2s ease-in-out,transform .2s cubic-bezier(.71,1.7,.77,1.24);visibility:hidden}.tooltip:before{background:transparent;border:6px solid transparent;content:"";z-index:1001}.tooltip-inline:before{inset-block-start:4px}.tooltip-content{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background-color:rgba(51,51,51,.9);border-radius:6px;color:#fff;font-size:small;font-weight:400;min-inline-size:200px;padding:8px;position:absolute;text-transform:none;z-index:1000}.tooltip-block .tooltip-content{margin-inline-start:-80px}.tooltip-inline .tooltip-content{margin-block-end:-16px;margin-inline-start:0}.tooltip-inline.tooltip-start .tooltip-content{inset-block-start:-50%}.tooltip-block.tooltip-start:before{border-block-start-color:rgba(51,51,51,.9);margin-block-end:-12px;margin-inline-start:-6px}.tooltip-block.tooltip-start .tooltip-content,.tooltip-block.tooltip-start:before{inset-block-end:100%;inset-inline-start:50%}.tooltip-block.tooltip-end:before{border-block-end-color:rgba(51,51,51,.9);border-block-start-color:transparent;margin-block:-12px 0}.tooltip-block.tooltip-end .tooltip-content,.tooltip-block.tooltip-end:before{inset-block:100% auto;margin-inline-start:25%}.tooltip-block.tooltip-end .tooltip-content{inset-inline-end:-70%}.tooltip-inline.tooltip-start:before{border-block-start-color:transparent;border-inline-start-color:rgba(51,51,51,.9);inset-block-end:50%;margin-block-end:0;margin-inline:0 -12px}.tooltip-inline.tooltip-start .tooltip-content,.tooltip-inline.tooltip-start:before{inset-inline:auto 100%}.tooltip-inline.tooltip-end:before{border-block-start-color:transparent;border-inline-end-color:rgba(51,51,51,.9);margin-block-end:0;margin-inline-start:-12px}.tooltip-inline.tooltip-end .tooltip-content,.tooltip-inline.tooltip-end:before{inset-inline-start:100%}.tooltip-inline.tooltip-end .tooltip-content{inset-block-start:-50%}.tooltip:focus .tooltip-content,.tooltip:focus:before,.tooltip:hover .tooltip-content,.tooltip:hover:before{opacity:1;visibility:visible}.tooltip-block.tooltip-start:focus .tooltip-content,.tooltip-block.tooltip-start:focus:before,.tooltip-block.tooltip-start:hover .tooltip-content,.tooltip-block.tooltip-start:hover:before{transform:translateY(-10px)}.tooltip-block.tooltip-end:focus .tooltip-content,.tooltip-block.tooltip-end:focus:before,.tooltip-block.tooltip-end:hover .tooltip-content,.tooltip-block.tooltip-end:hover:before{transform:translateY(10px)}.tooltip-inline.tooltip-end:focus .tooltip-content,.tooltip-inline.tooltip-end:focus:before,.tooltip-inline.tooltip-end:hover .tooltip-content,.tooltip-inline.tooltip-end:hover:before{transform:translateX(-10px)}.tooltip-inline.tooltip-start:focus .tooltip-content,.tooltip-inline.tooltip-start:focus:before,.tooltip-inline.tooltip-start:hover .tooltip-content,.tooltip-inline.tooltip-start:hover:before{transform:translateX(10px)}.cloud-legend-tooltip h3{color:#fff;font-size:16px;text-align:center}.cloud-legend-tooltip td{vertical-align:top}.cloud-search-info{text-align:justify}.cloud-search-info small{color:#646970;float:inline-end}.thickbox-code-viewer{background-color:#f6f6f6;border-radius:10px;min-block-size:250px;padding:20px}#snippet-code-thickbox{display:block;inline-size:100%}.no-results{font-size:15px}.dashicons.cloud-synced{color:#00bcd4}.dashicons.cloud-downloaded{color:#e91e63}.dashicons.cloud-not-downloaded{color:#9e9e9e}.dashicons.cloud-update{color:#ff9800}.cloud_update a{color:#ff9800!important;text-decoration:underline}.updated.column-updated span{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}td.column-name .cloud-icon{margin-inline-end:3px}td.column-download{display:flex;flex-flow:column;gap:.5em;text-align:center}.cloud-snippet-download{color:#2271b1!important}.cloud-snippet-downloaded,.cloud-snippet-preview-style{color:#616161!important}.cloud-snippet-update{color:#ff9800!important}#cloud-search-form{margin-block:30px;text-align:center}.input-group{align-items:stretch;display:flex;flex-wrap:wrap;margin-block:0;margin-inline:auto;max-inline-size:900px;position:relative}#cloud_search{background-clip:padding-box;border-radius:0;color:#495057;display:block;flex:1 1 auto;font-size:1rem;inline-size:1%;margin-block-end:0;padding-block:.375rem;padding-inline:.75rem;position:relative;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}#cloud_search:focus{border:1px solid #8c8f94;box-shadow:none;outline:0}#cloud-select-prepend{background-color:#f6f7f7;border-color:#2271b1;border-end-end-radius:0;border-start-end-radius:0;color:#2271b1;margin-inline-end:-3px;position:relative;z-index:2}#cloud-select-prepend:hover{background-color:#f0f0f1;border-color:#0a4b78;color:#0a4b78}#cloud-search-submit{align-items:center;display:flex;justify-content:center;margin-inline-start:-3px;padding-block:0;padding-inline:15px}.cloud-search{margin-inline-start:5px}.bundle-group{display:flex;flex-wrap:nowrap;gap:5px;justify-content:space-between;margin-block-start:10px}#cloud-bundles{color:#495057;display:flex;flex:1 1 auto;font-size:1rem;inline-size:50%;padding-block:.375rem;padding-inline:.75rem;position:relative}#cloud-bundle-show{inline-size:10%}#cloud-bundle-run{inline-size:15%}#bundle_share_name{color:#495057;font-size:1rem;inline-size:25%}.heading-box{margin:auto;max-inline-size:900px;padding-block-end:1rem}.cloud-search-heading{font-size:23px;font-weight:400;line-height:1.3;margin-block-end:0;padding-block:9px 4px;padding-inline:0;text-align:center}.cloud-badge.ai-icon{color:#b22222;font-size:12px;margin-inline-start:5px;padding:3px}.cloud-search-card-bottom{min-block-size:40px}#cloud-search-results .cloud-snippets #the-list{display:flex;flex-wrap:wrap;justify-content:center}.cloud-snippets .plugin-card{display:flex;flex-direction:column;justify-content:space-between}.cloud-connect-wrap{align-items:center;display:flex;float:inline-end;gap:5px;justify-content:space-between;margin-block:0;margin-inline:3px;max-block-size:35px}.cloud-table>tbody>tr{block-size:80px;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.cloud-table>tbody>tr>td{max-inline-size:250px}.cloud-table tbody .active-snippet .column-name{font-weight:400;max-inline-size:400px;white-space:normal!important}.cloud-table td .no-results{color:#e32121;margin-block-start:15px;text-align:center}.cloud-status-dot{background-color:#ce0000;block-size:10px;border-radius:50%;inline-size:10px}.cloud-connect-active .cloud-status-dot{background-color:#25a349}.cloud-connect-text{color:#ce0000}.cloud-connect-active .cloud-connect-text{color:#2e7d32}.thumbs-up{block-size:1.25rem;inline-size:1.25rem;transform-origin:bottom right}.thumbs-up:hover{stroke:#059669;fill:#6ee7b7}.voted-info{align-items:center;display:inline-flex;gap:3px;margin-block-end:6px!important}.voted-info:hover .thumbs-up{stroke:#059669;fill:#6ee7b7;animation:thumb 1s ease-in-out infinite}.plugin-card-bottom{overflow:visible!important}.beta-test-notice{margin-block-start:20px}.highlight-yellow{background:#ffee58;border-radius:3px;padding:3px}@keyframes thumb{0%{transform:rotate(0)}33%{transform:rotate(-7deg)}66%{transform:rotate(15deg)}90%{transform:rotate(-5deg)}to{transform:rotate(0)}}.column-name .dashicons,.column-type .dashicons{block-size:16px;font-size:16px;inline-size:16px;vertical-align:middle}.column-name .dashicons-clock,.column-type .dashicons-clock{vertical-align:middle}.active-snippet .column-name>a{font-weight:600}.active-snippet td,.active-snippet th{background-color:rgba(120,200,230,.06)}.active-snippet th.check-column{border-inline-start:2px solid #2ea2cc}.column-priority input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;box-shadow:none;color:#666;inline-size:4em;text-align:center}.column-priority input:active,.column-priority input:focus,.column-priority input:hover{background-color:#f5f5f5;background-color:rgba(0,0,0,.1);border-radius:6px;color:#000}.column-priority input:disabled{color:inherit}.clear-filters{vertical-align:baseline!important}.snippets td.column-id{text-align:center}.snippets tr{background:#fff}.snippets ol,.snippets ul{margin-block:0 1.5em;margin-inline:1.5em 0}.snippets ul{list-style:disc}.snippets th.sortable a,.snippets th.sorted a{display:flex;flex-direction:row}.snippets .row-actions{color:#ddd;inset-inline-start:0;position:relative}.snippets .column-activate{padding-inline-end:0!important}.snippets .clear-filters{vertical-align:middle}.snippets tfoot th.check-column{padding-block:13px 0;padding-inline:3px 0}.snippets .inactive-snippet th.check-column,.snippets tfoot th.check-column,.snippets thead th.check-column{padding-inline-start:5px}.snippets .active-snippet td,.snippets .active-snippet th,.snippets .inactive-snippet td,.snippets .inactive-snippet th{border:none;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);padding-block:10px;padding-inline:9px}.snippets tr.active-snippet+tr.inactive-snippet td,.snippets tr.active-snippet+tr.inactive-snippet th{border-block-start:1px solid rgba(0,0,0,.03);box-shadow:inset 0 1px 0 rgba(0,0,0,.02),inset 0 -1px 0 #e1e1e1}.snippets #all-snippets-table a.delete:hover,.snippets #search-snippets-table a.delete:hover,.snippets a.delete:hover{border-block-end:1px solid red;color:red}#wpbody-content .snippets .column-name{white-space:nowrap}td.column-description{max-inline-size:700px}td.column-description pre{white-space:unset}.inactive-snippet a{color:#579}.inactive-snippet a:active,.inactive-snippet a:focus,.inactive-snippet a:hover{color:#819db9}@media screen and (width <= 782px){p.search-box{block-size:auto;float:inline-start;margin-block:1em 0;margin-inline:0;position:static}}.wp-list-table .is-expanded td.column-activate.activate{display:table-cell!important}.nav-tab-wrapper+.subsubsub,p.search-box{margin-block:10px 0;margin-inline:0}.snippet-type-description{border-block-end:1px solid #ccc;margin:0;padding-block:1em;padding-inline:0}.code-snippets-notice a.notice-dismiss{text-decoration:none}.refresh-button-container{align-items:center;display:flex;gap:7px;justify-content:flex-start;margin-block:15px -39px}#refresh-button{font-size:20px;inline-size:30px;line-height:1.4;padding:0}.wrap h2.nav-tab-wrapper .nav-tab{align-items:center;display:flex;flex-flow:row wrap;gap:8px}@media screen and (width <= 1190px){.nav-tab .snippet-label{display:none}}
     1.badge{align-items:center;border-radius:3px;box-sizing:border-box;display:inline-flex;font-size:12px;font-weight:700;gap:5px;justify-content:center;line-height:1;min-block-size:24px;min-inline-size:43px;padding-block:0;padding-inline:3px;text-align:center;text-transform:uppercase}.badge .dashicons{block-size:18px;font-size:18px;inline-size:18px}.small-badge{block-size:auto;font-size:smaller;inline-size:auto;padding-block:0;padding-inline:.5em}.wp-core-ui .button.nav-tab-button{align-items:center;align-self:center;background:#f6f7f7;border-color:#f6f7f7;color:#a7aaad;display:flex;float:inline-end;gap:2px;justify-content:center;margin-inline-start:.5em}.badge.php-badge,.nav-tab-inactive:hover .badge.php-badge,:hover>.inverted-badges .php-badge{background-color:#1d97c6;color:#fff}.badge.php-badge:hover{background-color:#1a86b0;color:#fff}.badge.html-badge,.nav-tab-inactive:hover .badge.html-badge,:hover>.inverted-badges .html-badge{background-color:#ef6a36;color:#fff}.badge.html-badge:hover{background-color:#ed581e;color:#fff}.badge.css-badge,.nav-tab-inactive:hover .badge.css-badge,:hover>.inverted-badges .css-badge{background-color:#9b59b6;color:#fff}.badge.css-badge:hover{background-color:#8f4bab;color:#fff}.badge.js-badge,.nav-tab-inactive:hover .badge.js-badge,:hover>.inverted-badges .js-badge{background-color:#ffeb3b;color:#1c1f20}.badge.js-badge:hover{background-color:#ffe822;color:#1c1f20}.badge.cond-badge,.nav-tab-inactive:hover .badge.cond-badge,:hover>.inverted-badges .cond-badge{background-color:#2eae95;color:#fff}.badge.cond-badge:hover{background-color:#299a84;color:#fff}.badge.core-badge,.nav-tab-inactive:hover .badge.core-badge,:hover>.inverted-badges .core-badge{background-color:#61c5cb;color:#fff}.badge.core-badge:hover{background-color:#4ebec5;color:#fff}.badge.pro-badge,.nav-tab-inactive:hover .badge.pro-badge,:hover>.inverted-badges .pro-badge{background-color:#f7e8e3;color:#df9279}.badge.pro-badge:hover{background-color:#f1d8cf;color:#df9279}.badge.cloud-badge,.nav-tab-inactive:hover .badge.cloud-badge,:hover>.inverted-badges .cloud-badge{background-color:#00bcd4;color:#fff}.badge.cloud-badge:hover{background-color:#00a5bb;color:#fff}.badge.bundles-badge,.nav-tab-inactive:hover .badge.bundles-badge,:hover>.inverted-badges .bundles-badge{background-color:#50575e;color:#fff}.badge.bundles-badge:hover{background-color:#444a50;color:#fff}.badge.cloud_search-badge,.nav-tab-inactive:hover .badge.cloud_search-badge,:hover>.inverted-badges .cloud_search-badge{background-color:#ff9800;color:#fff}.badge.cloud_search-badge:hover{background-color:#e68900;color:#fff}.badge.private-badge,.nav-tab-inactive:hover .badge.private-badge,:hover>.inverted-badges .private-badge{background-color:#f7e6be;color:#ca961b}.badge.private-badge:hover{background-color:#f4dda7;color:#ca961b}.badge.public-badge,.nav-tab-inactive:hover .badge.public-badge,:hover>.inverted-badges .public-badge{background-color:#dbebf7;color:#2271b1}.badge.public-badge:hover{background-color:#c6dff2;color:#2271b1}.badge.success-badge,.nav-tab-inactive:hover .badge.success-badge,:hover>.inverted-badges .success-badge{background-color:#d3e8d1;color:#447340}.badge.success-badge:hover{background-color:#c3e0c0;color:#447340}.badge.failure-badge,.nav-tab-inactive:hover .badge.failure-badge,:hover>.inverted-badges .failure-badge{background-color:#fad7c1;color:#a24b16}.badge.failure-badge:hover{background-color:#f8c8a9;color:#a24b16}.badge.info-badge,.nav-tab-inactive:hover .badge.info-badge,:hover>.inverted-badges .info-badge{background-color:#d2e6f4;color:#2b71a3}.badge.info-badge:hover{background-color:#bedbef;color:#2b71a3}.badge.neutral-badge,.nav-tab-inactive:hover .badge.neutral-badge,:hover>.inverted-badges .neutral-badge{background-color:#e2e5e5;color:#6c7e7e}.badge.neutral-badge:hover{background-color:#d5d9d9;color:#6c7e7e}.badge.special-badge,.nav-tab-inactive:hover .badge.special-badge,:hover>.inverted-badges .special-badge{background-color:#dfc5ef;color:#6e249c}.badge.special-badge:hover{background-color:#d4b1e9;color:#6e249c}.inverted-badges .badge,.nav-tab-inactive .badge{background-color:#a7aaad;color:#fff}.nav-tab-inactive{background:transparent}.nav-tab-button .dashicons-external{color:#666;font-size:15px}.snippet-activation-switch,.snippet-execution-button,input[type=checkbox].switch{display:block;position:relative}.snippet-activation-switch,input[type=checkbox].switch{-webkit-appearance:none;-moz-appearance:none;appearance:none;block-size:19px;border:1px solid #789;border-radius:34px;box-sizing:border-box;cursor:pointer;inline-size:32px;margin:0;outline:0;text-align:start}.snippet-activation-switch:before,input[type=checkbox].switch:before{background-color:#789;block-size:13px;border-radius:50%;content:"";display:inline-block;inline-size:13px;margin:2px;transition:all .1s}.active-snippet .snippet-activation-switch,input[type=checkbox].switch:checked{background-color:#0073aa}.active-snippet .snippet-activation-switch:before,input[type=checkbox].switch:checked:before{background-color:#fff;transform:translateX(-100%)}.erroneous-snippet .snippet-activation-switch:before{color:#bbb;content:"!";font-weight:700;line-height:1;text-align:center;transform:translateX(-50%)}a.snippet-condition-count{align-items:center;block-size:29px;border:1.8px solid;border-radius:50%;box-sizing:border-box;display:flex;inline-size:29px;justify-content:center}.inactive-snippet a.snippet-condition-count{color:#ccc}.active-snippet a.snippet-condition-count{color:#2271b1;font-weight:700}.snippet-execution-button{block-size:0;border-block:9px solid transparent;border-inline-start:10px solid #ccc;inline-size:0;margin-block-start:9px;margin-inline-start:11px}.snippet-execution-button:before{border:1.8px solid #ccc;border-radius:50%;content:"";inset:-14px -8px -14px -21px;position:absolute;z-index:2}.snippet-execution-button:hover{border-inline-start-color:#2271b1;transition:border-right-color .6s}.snippet-execution-button:hover:before{border-color:#2271b1;transition:border-color .6s}.code-snippets-select input[type=text]:focus{box-shadow:none}.help-tooltip{border-block-end:1px dotted;display:inline-flex;flex-direction:column;justify-content:center;position:relative;vertical-align:middle}.help-tooltip-anchor{background:transparent!important;cursor:help;display:inline-block;font-size:10px;padding-block:.3em 0;padding-inline:.3em}.tooltip{cursor:help!important;display:inline-block;position:relative}.tooltip .dashicons{color:#789}.tooltip.badge{display:inline-flex}.tooltip.badge .dashicons{color:inherit}.tooltip-content,.tooltip:before{opacity:0;pointer-events:none;position:absolute;transform:translateZ(0);transition:opacity .2s ease-in-out,visibility .2s ease-in-out,transform .2s cubic-bezier(.71,1.7,.77,1.24);visibility:hidden}.tooltip:before{background:transparent;border:6px solid transparent;content:"";z-index:1001}.tooltip-inline:before{inset-block-start:4px}.tooltip-content{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background-color:rgba(51,51,51,.9);border-radius:6px;color:#fff;font-size:small;font-weight:400;min-inline-size:200px;padding:8px;position:absolute;text-transform:none;z-index:1000}.tooltip-block .tooltip-content{margin-inline-start:-80px}.tooltip-inline .tooltip-content{margin-block-end:-16px;margin-inline-start:0}.tooltip-inline.tooltip-start .tooltip-content{inset-block-start:-50%}.tooltip-block.tooltip-start:before{border-block-start-color:rgba(51,51,51,.9);margin-block-end:-12px;margin-inline-start:-6px}.tooltip-block.tooltip-start .tooltip-content,.tooltip-block.tooltip-start:before{inset-block-end:100%;inset-inline-start:50%}.tooltip-block.tooltip-end:before{border-block-end-color:rgba(51,51,51,.9);border-block-start-color:transparent;margin-block:-12px 0}.tooltip-block.tooltip-end .tooltip-content,.tooltip-block.tooltip-end:before{inset-block:100% auto;margin-inline-start:25%}.tooltip-block.tooltip-end .tooltip-content{inset-inline-end:-70%}.tooltip-inline.tooltip-start:before{border-block-start-color:transparent;border-inline-start-color:rgba(51,51,51,.9);inset-block-end:50%;margin-block-end:0;margin-inline:0 -12px}.tooltip-inline.tooltip-start .tooltip-content,.tooltip-inline.tooltip-start:before{inset-inline:auto 100%}.tooltip-inline.tooltip-end:before{border-block-start-color:transparent;border-inline-end-color:rgba(51,51,51,.9);margin-block-end:0;margin-inline-start:-12px}.tooltip-inline.tooltip-end .tooltip-content,.tooltip-inline.tooltip-end:before{inset-inline-start:100%}.tooltip-inline.tooltip-end .tooltip-content{inset-block-start:-50%}.tooltip:focus .tooltip-content,.tooltip:focus:before,.tooltip:hover .tooltip-content,.tooltip:hover:before{opacity:1;visibility:visible}.tooltip-block.tooltip-start:focus .tooltip-content,.tooltip-block.tooltip-start:focus:before,.tooltip-block.tooltip-start:hover .tooltip-content,.tooltip-block.tooltip-start:hover:before{transform:translateY(-10px)}.tooltip-block.tooltip-end:focus .tooltip-content,.tooltip-block.tooltip-end:focus:before,.tooltip-block.tooltip-end:hover .tooltip-content,.tooltip-block.tooltip-end:hover:before{transform:translateY(10px)}.tooltip-inline.tooltip-end:focus .tooltip-content,.tooltip-inline.tooltip-end:focus:before,.tooltip-inline.tooltip-end:hover .tooltip-content,.tooltip-inline.tooltip-end:hover:before{transform:translateX(-10px)}.tooltip-inline.tooltip-start:focus .tooltip-content,.tooltip-inline.tooltip-start:focus:before,.tooltip-inline.tooltip-start:hover .tooltip-content,.tooltip-inline.tooltip-start:hover:before{transform:translateX(10px)}.cloud-legend-tooltip h3{color:#fff;font-size:16px;text-align:center}.cloud-legend-tooltip td{vertical-align:top}.cloud-search-info{text-align:justify}.cloud-search-info small{color:#646970;float:inline-end}.thickbox-code-viewer{background-color:#f6f6f6;border-radius:10px;min-block-size:250px;padding:20px}#snippet-code-thickbox{display:block;inline-size:100%}.no-results{font-size:15px}.dashicons.cloud-synced{color:#00bcd4}.dashicons.cloud-downloaded{color:#e91e63}.dashicons.cloud-not-downloaded{color:#9e9e9e}.dashicons.cloud-update{color:#ff9800}.cloud_update a{color:#ff9800!important;text-decoration:underline}.updated.column-updated span{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}td.column-name .cloud-icon{margin-inline-end:3px}td.column-download{display:flex;flex-flow:column;gap:.5em;text-align:center}.cloud-snippet-download{color:#2271b1!important}.cloud-snippet-downloaded,.cloud-snippet-preview-style{color:#616161!important}.cloud-snippet-update{color:#ff9800!important}#cloud-search-form{margin-block:30px;text-align:center}.input-group{align-items:stretch;display:flex;flex-wrap:wrap;margin-block:0;margin-inline:auto;max-inline-size:900px;position:relative}#cloud_search{background-clip:padding-box;border-radius:0;color:#495057;display:block;flex:1 1 auto;font-size:1rem;inline-size:1%;margin-block-end:0;padding-block:.375rem;padding-inline:.75rem;position:relative;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}#cloud_search:focus{border:1px solid #8c8f94;box-shadow:none;outline:0}#cloud-select-prepend{background-color:#f6f7f7;border-color:#2271b1;border-end-end-radius:0;border-start-end-radius:0;color:#2271b1;margin-inline-end:-3px;position:relative;z-index:2}#cloud-select-prepend:hover{background-color:#f0f0f1;border-color:#0a4b78;color:#0a4b78}#cloud-search-submit{align-items:center;display:flex;justify-content:center;margin-inline-start:-3px;padding-block:0;padding-inline:15px}.cloud-search{margin-inline-start:5px}.bundle-group{display:flex;flex-wrap:nowrap;gap:5px;justify-content:space-between;margin-block-start:10px}#cloud-bundles{color:#495057;display:flex;flex:1 1 auto;font-size:1rem;inline-size:50%;padding-block:.375rem;padding-inline:.75rem;position:relative}#cloud-bundle-show{inline-size:10%}#cloud-bundle-run{inline-size:15%}#bundle_share_name{color:#495057;font-size:1rem;inline-size:25%}.heading-box{margin:auto;max-inline-size:900px;padding-block-end:1rem}.cloud-search-heading{font-size:23px;font-weight:400;line-height:1.3;margin-block-end:0;padding-block:9px 4px;padding-inline:0;text-align:center}.cloud-badge.ai-icon{color:#b22222;font-size:12px;margin-inline-start:5px;padding:3px}.cloud-search-card-bottom{min-block-size:40px}#cloud-search-results .cloud-snippets #the-list{display:flex;flex-wrap:wrap;justify-content:center}.cloud-snippets .plugin-card{display:flex;flex-direction:column;justify-content:space-between}.cloud-connect-wrap{align-items:center;display:flex;float:inline-end;gap:5px;justify-content:space-between;margin-block:0;margin-inline:3px;max-block-size:35px}.cloud-table>tbody>tr{block-size:80px;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.cloud-table>tbody>tr>td{max-inline-size:250px}.cloud-table tbody .active-snippet .column-name{font-weight:400;max-inline-size:400px;white-space:normal!important}.cloud-table td .no-results{color:#e32121;margin-block-start:15px;text-align:center}.cloud-status-dot{background-color:#ce0000;block-size:10px;border-radius:50%;inline-size:10px}.cloud-connect-active .cloud-status-dot{background-color:#25a349}.cloud-connect-text{color:#ce0000}.cloud-connect-active .cloud-connect-text{color:#2e7d32}.thumbs-up{block-size:1.25rem;inline-size:1.25rem;transform-origin:bottom right}.thumbs-up:hover{stroke:#059669;fill:#6ee7b7}.voted-info{align-items:center;display:inline-flex;gap:3px;margin-block-end:6px!important}.voted-info:hover .thumbs-up{stroke:#059669;fill:#6ee7b7;animation:thumb 1s ease-in-out infinite}.plugin-card-bottom{overflow:visible!important}.beta-test-notice{margin-block-start:20px}.highlight-yellow{background:#fefdba;border-radius:3px;padding:3px}@keyframes thumb{0%{transform:rotate(0)}33%{transform:rotate(-7deg)}66%{transform:rotate(15deg)}90%{transform:rotate(-5deg)}to{transform:rotate(0)}}.column-name .dashicons,.column-type .dashicons{block-size:16px;font-size:16px;inline-size:16px;vertical-align:middle}.column-name .dashicons-clock,.column-type .dashicons-clock{vertical-align:middle}.active-snippet .column-name>a{font-weight:600}.active-snippet td,.active-snippet th{background-color:rgba(120,200,230,.06)}.active-snippet th.check-column{border-inline-start:2px solid #2ea2cc}.column-priority input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;box-shadow:none;color:#666;inline-size:4em;text-align:center}.column-priority input:active,.column-priority input:focus,.column-priority input:hover{background-color:#f5f5f5;background-color:rgba(0,0,0,.1);border-radius:6px;color:#000}.column-priority input:disabled{color:inherit}.clear-filters{vertical-align:baseline!important}.snippets td.column-id{text-align:center}.snippets tr{background:#fff}.snippets ol,.snippets ul{margin-block:0 1.5em;margin-inline:1.5em 0}.snippets ul{list-style:disc}.snippets th.sortable a,.snippets th.sorted a{display:flex;flex-direction:row}.snippets .row-actions{color:#ddd;inset-inline-start:0;position:relative}.snippets .column-activate{padding-inline-end:0!important}.snippets .clear-filters{vertical-align:middle}.snippets tfoot th.check-column{padding-block:13px 0;padding-inline:3px 0}.snippets .inactive-snippet th.check-column,.snippets tfoot th.check-column,.snippets thead th.check-column{padding-inline-start:5px}.snippets .active-snippet td,.snippets .active-snippet th,.snippets .inactive-snippet td,.snippets .inactive-snippet th{border:none;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);padding-block:10px;padding-inline:9px}.snippets tr.active-snippet+tr.inactive-snippet td,.snippets tr.active-snippet+tr.inactive-snippet th{border-block-start:1px solid rgba(0,0,0,.03);box-shadow:inset 0 1px 0 rgba(0,0,0,.02),inset 0 -1px 0 #e1e1e1}.snippets #all-snippets-table a.delete:hover,.snippets #search-snippets-table a.delete:hover,.snippets a.delete:hover{border-block-end:1px solid red;color:red}#wpbody-content .snippets .column-name{white-space:nowrap}td.column-description{max-inline-size:700px}td.column-description pre{white-space:unset}.inactive-snippet a{color:#579}.inactive-snippet a:active,.inactive-snippet a:focus,.inactive-snippet a:hover{color:#819db9}@media screen and (width <= 782px){p.search-box{block-size:auto;float:inline-start;margin-block:1em 0;margin-inline:0;position:static}}.wp-list-table .is-expanded td.column-activate.activate{display:table-cell!important}.nav-tab-wrapper+.subsubsub,p.search-box{margin-block:10px 0;margin-inline:0}.snippet-type-description{border-block-end:1px solid #ccc;margin:0;padding-block:1em;padding-inline:0}.code-snippets-notice a.notice-dismiss{text-decoration:none}.refresh-button-container{align-items:center;display:flex;gap:7px;justify-content:flex-start;margin-block:15px -39px}#refresh-button{font-size:20px;inline-size:30px;line-height:1.4;padding:0}.wrap h2.nav-tab-wrapper .nav-tab{align-items:center;display:flex;flex-flow:row wrap;gap:8px}@media screen and (width <= 1190px){.nav-tab .snippet-label{display:none}}
  • code-snippets/tags/3.7.0-beta/dist/manage.css

    r3345197 r3348557  
    1 .badge{align-items:center;border-radius:3px;box-sizing:border-box;display:inline-flex;font-size:12px;font-weight:700;gap:5px;justify-content:center;line-height:1;min-block-size:24px;min-inline-size:43px;padding-block:0;padding-inline:3px;text-align:center;text-transform:uppercase}.badge .dashicons{block-size:18px;font-size:18px;inline-size:18px}.small-badge{block-size:auto;font-size:smaller;inline-size:auto;padding-block:0;padding-inline:.5em}.wp-core-ui .button.nav-tab-button{align-items:center;align-self:center;background:#f6f7f7;border-color:#f6f7f7;color:#a7aaad;display:flex;float:inline-end;gap:2px;justify-content:center;margin-inline-start:.5em}.badge.php-badge,.nav-tab-inactive:hover .badge.php-badge,:hover>.inverted-badges .php-badge{background-color:#1d97c6;color:#fff}.badge.php-badge:hover{background-color:#1a86b0;color:#fff}.badge.html-badge,.nav-tab-inactive:hover .badge.html-badge,:hover>.inverted-badges .html-badge{background-color:#ef6a36;color:#fff}.badge.html-badge:hover{background-color:#ed581e;color:#fff}.badge.css-badge,.nav-tab-inactive:hover .badge.css-badge,:hover>.inverted-badges .css-badge{background-color:#9b59b6;color:#fff}.badge.css-badge:hover{background-color:#8f4bab;color:#fff}.badge.js-badge,.nav-tab-inactive:hover .badge.js-badge,:hover>.inverted-badges .js-badge{background-color:#ffeb3b;color:#1c1f20}.badge.js-badge:hover{background-color:#ffe822;color:#1c1f20}.badge.cond-badge,.nav-tab-inactive:hover .badge.cond-badge,:hover>.inverted-badges .cond-badge{background-color:#2eae95;color:#fff}.badge.cond-badge:hover{background-color:#299a84;color:#fff}.badge.core-badge,.nav-tab-inactive:hover .badge.core-badge,:hover>.inverted-badges .core-badge{background-color:#61c5cb;color:#fff}.badge.core-badge:hover{background-color:#4ebec5;color:#fff}.badge.pro-badge,.nav-tab-inactive:hover .badge.pro-badge,:hover>.inverted-badges .pro-badge{background-color:#f7e8e3;color:#df9279}.badge.pro-badge:hover{background-color:#f1d8cf;color:#df9279}.badge.cloud-badge,.nav-tab-inactive:hover .badge.cloud-badge,:hover>.inverted-badges .cloud-badge{background-color:#00bcd4;color:#fff}.badge.cloud-badge:hover{background-color:#00a5bb;color:#fff}.badge.bundles-badge,.nav-tab-inactive:hover .badge.bundles-badge,:hover>.inverted-badges .bundles-badge{background-color:#50575e;color:#fff}.badge.bundles-badge:hover{background-color:#444a50;color:#fff}.badge.cloud_search-badge,.nav-tab-inactive:hover .badge.cloud_search-badge,:hover>.inverted-badges .cloud_search-badge{background-color:#ff9800;color:#fff}.badge.cloud_search-badge:hover{background-color:#e68900;color:#fff}.badge.private-badge,.nav-tab-inactive:hover .badge.private-badge,:hover>.inverted-badges .private-badge{background-color:#f7e6be;color:#ca961b}.badge.private-badge:hover{background-color:#f4dda7;color:#ca961b}.badge.public-badge,.nav-tab-inactive:hover .badge.public-badge,:hover>.inverted-badges .public-badge{background-color:#dbebf7;color:#2271b1}.badge.public-badge:hover{background-color:#c6dff2;color:#2271b1}.badge.success-badge,.nav-tab-inactive:hover .badge.success-badge,:hover>.inverted-badges .success-badge{background-color:#d3e8d1;color:#447340}.badge.success-badge:hover{background-color:#c3e0c0;color:#447340}.badge.failure-badge,.nav-tab-inactive:hover .badge.failure-badge,:hover>.inverted-badges .failure-badge{background-color:#fad7c1;color:#a24b16}.badge.failure-badge:hover{background-color:#f8c8a9;color:#a24b16}.badge.info-badge,.nav-tab-inactive:hover .badge.info-badge,:hover>.inverted-badges .info-badge{background-color:#d2e6f4;color:#2b71a3}.badge.info-badge:hover{background-color:#bedbef;color:#2b71a3}.badge.neutral-badge,.nav-tab-inactive:hover .badge.neutral-badge,:hover>.inverted-badges .neutral-badge{background-color:#e2e5e5;color:#6c7e7e}.badge.neutral-badge:hover{background-color:#d5d9d9;color:#6c7e7e}.badge.special-badge,.nav-tab-inactive:hover .badge.special-badge,:hover>.inverted-badges .special-badge{background-color:#dfc5ef;color:#6e249c}.badge.special-badge:hover{background-color:#d4b1e9;color:#6e249c}.inverted-badges .badge,.nav-tab-inactive .badge{background-color:#a7aaad;color:#fff}.nav-tab-inactive{background:transparent}.nav-tab-button .dashicons-external{color:#666;font-size:15px}.snippet-activation-switch,.snippet-execution-button,input[type=checkbox].switch{display:block;position:relative}.snippet-activation-switch,input[type=checkbox].switch{-webkit-appearance:none;-moz-appearance:none;appearance:none;block-size:19px;border:1px solid #2271b1;border-radius:34px;box-sizing:border-box;cursor:pointer;inline-size:32px;margin:0;outline:0;text-align:start}.snippet-activation-switch:before,input[type=checkbox].switch:before{background-color:#2271b1;block-size:13px;border-radius:50%;content:"";display:inline-block;inline-size:13px;margin:2px;transition:all .4s}.active-snippet .snippet-activation-switch,input[type=checkbox].switch:checked{background-color:#0073aa}.active-snippet .snippet-activation-switch:before,input[type=checkbox].switch:checked:before{background-color:#fff;transform:translateX(100%)}.erroneous-snippet .snippet-activation-switch:before{color:#bbb;content:"!";font-weight:700;line-height:1;text-align:center;transform:translateX(50%)}a.snippet-condition-count{align-items:center;block-size:29px;border:1.8px solid;border-radius:50%;box-sizing:border-box;display:flex;inline-size:29px;justify-content:center}.inactive-snippet a.snippet-condition-count{color:#ccc}.active-snippet a.snippet-condition-count{color:#2271b1;font-weight:700}.snippet-execution-button{block-size:0;border-block:9px solid transparent;border-inline-start:10px solid #ccc;inline-size:0;margin-block-start:9px;margin-inline-start:11px}.snippet-execution-button:before{border:1.8px solid #ccc;border-radius:50%;content:"";inset:-14px -8px -14px -21px;position:absolute;z-index:2}.snippet-execution-button:hover{border-inline-start-color:#2271b1;transition:border-left-color .6s}.snippet-execution-button:hover:before{border-color:#2271b1;transition:border-color .6s}.code-snippets-select input[type=text]:focus{box-shadow:none}.help-tooltip{border-block-end:1px dotted;display:inline-flex;flex-direction:column;justify-content:center;position:relative;vertical-align:middle}.help-tooltip-anchor{background:transparent!important;cursor:help;display:inline-block;font-size:10px;padding-block:.3em 0;padding-inline:.3em}.tooltip{cursor:help!important;display:inline-block;position:relative}.tooltip .dashicons{color:#789}.tooltip.badge{display:inline-flex}.tooltip.badge .dashicons{color:inherit}.tooltip-content,.tooltip:before{opacity:0;pointer-events:none;position:absolute;transform:translateZ(0);transition:opacity .2s ease-in-out,visibility .2s ease-in-out,transform .2s cubic-bezier(.71,1.7,.77,1.24);visibility:hidden}.tooltip:before{background:transparent;border:6px solid transparent;content:"";z-index:1001}.tooltip-inline:before{inset-block-start:4px}.tooltip-content{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background-color:rgba(51,51,51,.9);border-radius:6px;color:#fff;font-size:small;font-weight:400;min-inline-size:200px;padding:8px;position:absolute;text-transform:none;z-index:1000}.tooltip-block .tooltip-content{margin-inline-start:-80px}.tooltip-inline .tooltip-content{margin-block-end:-16px;margin-inline-start:0}.tooltip-inline.tooltip-start .tooltip-content{inset-block-start:-50%}.tooltip-block.tooltip-start:before{border-block-start-color:rgba(51,51,51,.9);margin-block-end:-12px;margin-inline-start:-6px}.tooltip-block.tooltip-start .tooltip-content,.tooltip-block.tooltip-start:before{inset-block-end:100%;inset-inline-start:50%}.tooltip-block.tooltip-end:before{border-block-end-color:rgba(51,51,51,.9);border-block-start-color:transparent;margin-block:-12px 0}.tooltip-block.tooltip-end .tooltip-content,.tooltip-block.tooltip-end:before{inset-block:100% auto;margin-inline-start:25%}.tooltip-block.tooltip-end .tooltip-content{inset-inline-end:-70%}.tooltip-inline.tooltip-start:before{border-block-start-color:transparent;border-inline-start-color:rgba(51,51,51,.9);inset-block-end:50%;margin-block-end:0;margin-inline:0 -12px}.tooltip-inline.tooltip-start .tooltip-content,.tooltip-inline.tooltip-start:before{inset-inline:auto 100%}.tooltip-inline.tooltip-end:before{border-block-start-color:transparent;border-inline-end-color:rgba(51,51,51,.9);margin-block-end:0;margin-inline-start:-12px}.tooltip-inline.tooltip-end .tooltip-content,.tooltip-inline.tooltip-end:before{inset-inline-start:100%}.tooltip-inline.tooltip-end .tooltip-content{inset-block-start:-50%}.tooltip:focus .tooltip-content,.tooltip:focus:before,.tooltip:hover .tooltip-content,.tooltip:hover:before{opacity:1;visibility:visible}.tooltip-block.tooltip-start:focus .tooltip-content,.tooltip-block.tooltip-start:focus:before,.tooltip-block.tooltip-start:hover .tooltip-content,.tooltip-block.tooltip-start:hover:before{transform:translateY(-10px)}.tooltip-block.tooltip-end:focus .tooltip-content,.tooltip-block.tooltip-end:focus:before,.tooltip-block.tooltip-end:hover .tooltip-content,.tooltip-block.tooltip-end:hover:before{transform:translateY(10px)}.tooltip-inline.tooltip-end:focus .tooltip-content,.tooltip-inline.tooltip-end:focus:before,.tooltip-inline.tooltip-end:hover .tooltip-content,.tooltip-inline.tooltip-end:hover:before{transform:translateX(10px)}.tooltip-inline.tooltip-start:focus .tooltip-content,.tooltip-inline.tooltip-start:focus:before,.tooltip-inline.tooltip-start:hover .tooltip-content,.tooltip-inline.tooltip-start:hover:before{transform:translateX(-10px)}.cloud-legend-tooltip h3{color:#fff;font-size:16px;text-align:center}.cloud-legend-tooltip td{vertical-align:top}.cloud-search-info{text-align:justify}.cloud-search-info small{color:#646970;float:inline-end}.thickbox-code-viewer{background-color:#f6f6f6;border-radius:10px;min-block-size:250px;padding:20px}#snippet-code-thickbox{display:block;inline-size:100%}.no-results{font-size:15px}.dashicons.cloud-synced{color:#00bcd4}.dashicons.cloud-downloaded{color:#e91e63}.dashicons.cloud-not-downloaded{color:#9e9e9e}.dashicons.cloud-update{color:#ff9800}.cloud_update a{color:#ff9800!important;text-decoration:underline}.updated.column-updated span{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}td.column-name .cloud-icon{margin-inline-end:3px}td.column-download{display:flex;flex-flow:column;gap:.5em;text-align:center}.cloud-snippet-download{color:#2271b1!important}.cloud-snippet-downloaded,.cloud-snippet-preview-style{color:#616161!important}.cloud-snippet-update{color:#ff9800!important}#cloud-search-form{margin-block:30px;text-align:center}.input-group{align-items:stretch;display:flex;flex-wrap:wrap;margin-block:0;margin-inline:auto;max-inline-size:900px;position:relative}#cloud_search{background-clip:padding-box;border-radius:0;color:#495057;display:block;flex:1 1 auto;font-size:1rem;inline-size:1%;margin-block-end:0;padding-block:.375rem;padding-inline:.75rem;position:relative;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}#cloud_search:focus{border:1px solid #8c8f94;box-shadow:none;outline:0}#cloud-select-prepend{background-color:#f6f7f7;border-color:#2271b1;border-end-end-radius:0;border-start-end-radius:0;color:#2271b1;margin-inline-end:-3px;position:relative;z-index:2}#cloud-select-prepend:hover{background-color:#f0f0f1;border-color:#0a4b78;color:#0a4b78}#cloud-search-submit{align-items:center;display:flex;justify-content:center;margin-inline-start:-3px;padding-block:0;padding-inline:15px}.cloud-search{margin-inline-start:5px}.bundle-group{display:flex;flex-wrap:nowrap;gap:5px;justify-content:space-between;margin-block-start:10px}#cloud-bundles{color:#495057;display:flex;flex:1 1 auto;font-size:1rem;inline-size:50%;padding-block:.375rem;padding-inline:.75rem;position:relative}#cloud-bundle-show{inline-size:10%}#cloud-bundle-run{inline-size:15%}#bundle_share_name{color:#495057;font-size:1rem;inline-size:25%}.heading-box{margin:auto;max-inline-size:900px;padding-block-end:1rem}.cloud-search-heading{font-size:23px;font-weight:400;line-height:1.3;margin-block-end:0;padding-block:9px 4px;padding-inline:0;text-align:center}.cloud-badge.ai-icon{color:#b22222;font-size:12px;margin-inline-start:5px;padding:3px}.cloud-search-card-bottom{min-block-size:40px}#cloud-search-results .cloud-snippets #the-list{display:flex;flex-wrap:wrap;justify-content:center}.cloud-snippets .plugin-card{display:flex;flex-direction:column;justify-content:space-between}.cloud-connect-wrap{align-items:center;display:flex;float:inline-end;gap:5px;justify-content:space-between;margin-block:0;margin-inline:3px;max-block-size:35px}.cloud-table>tbody>tr{block-size:80px;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.cloud-table>tbody>tr>td{max-inline-size:250px}.cloud-table tbody .active-snippet .column-name{font-weight:400;max-inline-size:400px;white-space:normal!important}.cloud-table td .no-results{color:#e32121;margin-block-start:15px;text-align:center}.cloud-status-dot{background-color:#ce0000;block-size:10px;border-radius:50%;inline-size:10px}.cloud-connect-active .cloud-status-dot{background-color:#25a349}.cloud-connect-text{color:#ce0000}.cloud-connect-active .cloud-connect-text{color:#2e7d32}.thumbs-up{block-size:1.25rem;inline-size:1.25rem;transform-origin:bottom left}.thumbs-up:hover{stroke:#059669;fill:#6ee7b7}.voted-info{align-items:center;display:inline-flex;gap:3px;margin-block-end:6px!important}.voted-info:hover .thumbs-up{stroke:#059669;fill:#6ee7b7;animation:thumb 1s ease-in-out infinite}.plugin-card-bottom{overflow:visible!important}.beta-test-notice{margin-block-start:20px}.highlight-yellow{background:#ffee58;border-radius:3px;padding:3px}@keyframes thumb{0%{transform:rotate(0)}33%{transform:rotate(7deg)}66%{transform:rotate(-15deg)}90%{transform:rotate(5deg)}to{transform:rotate(0)}}.column-name .dashicons,.column-type .dashicons{block-size:16px;font-size:16px;inline-size:16px;vertical-align:middle}.column-name .dashicons-clock,.column-type .dashicons-clock{vertical-align:middle}.active-snippet .column-name>a{font-weight:600}.active-snippet td,.active-snippet th{background-color:rgba(120,200,230,.06)}.active-snippet th.check-column{border-inline-start:2px solid #2ea2cc}.column-priority input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;box-shadow:none;color:#666;inline-size:4em;text-align:center}.column-priority input:active,.column-priority input:focus,.column-priority input:hover{background-color:#f5f5f5;background-color:rgba(0,0,0,.1);border-radius:6px;color:#000}.column-priority input:disabled{color:inherit}.clear-filters{vertical-align:baseline!important}.snippets td.column-id{text-align:center}.snippets tr{background:#fff}.snippets ol,.snippets ul{margin-block:0 1.5em;margin-inline:1.5em 0}.snippets ul{list-style:disc}.snippets th.sortable a,.snippets th.sorted a{display:flex;flex-direction:row}.snippets .row-actions{color:#ddd;inset-inline-start:0;position:relative}.snippets .column-activate{padding-inline-end:0!important}.snippets .clear-filters{vertical-align:middle}.snippets tfoot th.check-column{padding-block:13px 0;padding-inline:3px 0}.snippets .inactive-snippet th.check-column,.snippets tfoot th.check-column,.snippets thead th.check-column{padding-inline-start:5px}.snippets .active-snippet td,.snippets .active-snippet th,.snippets .inactive-snippet td,.snippets .inactive-snippet th{border:none;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);padding-block:10px;padding-inline:9px}.snippets tr.active-snippet+tr.inactive-snippet td,.snippets tr.active-snippet+tr.inactive-snippet th{border-block-start:1px solid rgba(0,0,0,.03);box-shadow:inset 0 1px 0 rgba(0,0,0,.02),inset 0 -1px 0 #e1e1e1}.snippets #all-snippets-table a.delete:hover,.snippets #search-snippets-table a.delete:hover,.snippets a.delete:hover{border-block-end:1px solid red;color:red}#wpbody-content .snippets .column-name{white-space:nowrap}td.column-description{max-inline-size:700px}td.column-description pre{white-space:unset}.inactive-snippet a{color:#579}.inactive-snippet a:active,.inactive-snippet a:focus,.inactive-snippet a:hover{color:#819db9}@media screen and (width <= 782px){p.search-box{block-size:auto;float:inline-start;margin-block:1em 0;margin-inline:0;position:static}}.wp-list-table .is-expanded td.column-activate.activate{display:table-cell!important}.nav-tab-wrapper+.subsubsub,p.search-box{margin-block:10px 0;margin-inline:0}.snippet-type-description{border-block-end:1px solid #ccc;margin:0;padding-block:1em;padding-inline:0}.code-snippets-notice a.notice-dismiss{text-decoration:none}.refresh-button-container{align-items:center;display:flex;gap:7px;justify-content:flex-start;margin-block:15px -39px}#refresh-button{font-size:20px;inline-size:30px;line-height:1.4;padding:0}.wrap h2.nav-tab-wrapper .nav-tab{align-items:center;display:flex;flex-flow:row wrap;gap:8px}@media screen and (width <= 1190px){.nav-tab .snippet-label{display:none}}
     1.badge{align-items:center;border-radius:3px;box-sizing:border-box;display:inline-flex;font-size:12px;font-weight:700;gap:5px;justify-content:center;line-height:1;min-block-size:24px;min-inline-size:43px;padding-block:0;padding-inline:3px;text-align:center;text-transform:uppercase}.badge .dashicons{block-size:18px;font-size:18px;inline-size:18px}.small-badge{block-size:auto;font-size:smaller;inline-size:auto;padding-block:0;padding-inline:.5em}.wp-core-ui .button.nav-tab-button{align-items:center;align-self:center;background:#f6f7f7;border-color:#f6f7f7;color:#a7aaad;display:flex;float:inline-end;gap:2px;justify-content:center;margin-inline-start:.5em}.badge.php-badge,.nav-tab-inactive:hover .badge.php-badge,:hover>.inverted-badges .php-badge{background-color:#1d97c6;color:#fff}.badge.php-badge:hover{background-color:#1a86b0;color:#fff}.badge.html-badge,.nav-tab-inactive:hover .badge.html-badge,:hover>.inverted-badges .html-badge{background-color:#ef6a36;color:#fff}.badge.html-badge:hover{background-color:#ed581e;color:#fff}.badge.css-badge,.nav-tab-inactive:hover .badge.css-badge,:hover>.inverted-badges .css-badge{background-color:#9b59b6;color:#fff}.badge.css-badge:hover{background-color:#8f4bab;color:#fff}.badge.js-badge,.nav-tab-inactive:hover .badge.js-badge,:hover>.inverted-badges .js-badge{background-color:#ffeb3b;color:#1c1f20}.badge.js-badge:hover{background-color:#ffe822;color:#1c1f20}.badge.cond-badge,.nav-tab-inactive:hover .badge.cond-badge,:hover>.inverted-badges .cond-badge{background-color:#2eae95;color:#fff}.badge.cond-badge:hover{background-color:#299a84;color:#fff}.badge.core-badge,.nav-tab-inactive:hover .badge.core-badge,:hover>.inverted-badges .core-badge{background-color:#61c5cb;color:#fff}.badge.core-badge:hover{background-color:#4ebec5;color:#fff}.badge.pro-badge,.nav-tab-inactive:hover .badge.pro-badge,:hover>.inverted-badges .pro-badge{background-color:#f7e8e3;color:#df9279}.badge.pro-badge:hover{background-color:#f1d8cf;color:#df9279}.badge.cloud-badge,.nav-tab-inactive:hover .badge.cloud-badge,:hover>.inverted-badges .cloud-badge{background-color:#00bcd4;color:#fff}.badge.cloud-badge:hover{background-color:#00a5bb;color:#fff}.badge.bundles-badge,.nav-tab-inactive:hover .badge.bundles-badge,:hover>.inverted-badges .bundles-badge{background-color:#50575e;color:#fff}.badge.bundles-badge:hover{background-color:#444a50;color:#fff}.badge.cloud_search-badge,.nav-tab-inactive:hover .badge.cloud_search-badge,:hover>.inverted-badges .cloud_search-badge{background-color:#ff9800;color:#fff}.badge.cloud_search-badge:hover{background-color:#e68900;color:#fff}.badge.private-badge,.nav-tab-inactive:hover .badge.private-badge,:hover>.inverted-badges .private-badge{background-color:#f7e6be;color:#ca961b}.badge.private-badge:hover{background-color:#f4dda7;color:#ca961b}.badge.public-badge,.nav-tab-inactive:hover .badge.public-badge,:hover>.inverted-badges .public-badge{background-color:#dbebf7;color:#2271b1}.badge.public-badge:hover{background-color:#c6dff2;color:#2271b1}.badge.success-badge,.nav-tab-inactive:hover .badge.success-badge,:hover>.inverted-badges .success-badge{background-color:#d3e8d1;color:#447340}.badge.success-badge:hover{background-color:#c3e0c0;color:#447340}.badge.failure-badge,.nav-tab-inactive:hover .badge.failure-badge,:hover>.inverted-badges .failure-badge{background-color:#fad7c1;color:#a24b16}.badge.failure-badge:hover{background-color:#f8c8a9;color:#a24b16}.badge.info-badge,.nav-tab-inactive:hover .badge.info-badge,:hover>.inverted-badges .info-badge{background-color:#d2e6f4;color:#2b71a3}.badge.info-badge:hover{background-color:#bedbef;color:#2b71a3}.badge.neutral-badge,.nav-tab-inactive:hover .badge.neutral-badge,:hover>.inverted-badges .neutral-badge{background-color:#e2e5e5;color:#6c7e7e}.badge.neutral-badge:hover{background-color:#d5d9d9;color:#6c7e7e}.badge.special-badge,.nav-tab-inactive:hover .badge.special-badge,:hover>.inverted-badges .special-badge{background-color:#dfc5ef;color:#6e249c}.badge.special-badge:hover{background-color:#d4b1e9;color:#6e249c}.inverted-badges .badge,.nav-tab-inactive .badge{background-color:#a7aaad;color:#fff}.nav-tab-inactive{background:transparent}.nav-tab-button .dashicons-external{color:#666;font-size:15px}.snippet-activation-switch,.snippet-execution-button,input[type=checkbox].switch{display:block;position:relative}.snippet-activation-switch,input[type=checkbox].switch{-webkit-appearance:none;-moz-appearance:none;appearance:none;block-size:19px;border:1px solid #789;border-radius:34px;box-sizing:border-box;cursor:pointer;inline-size:32px;margin:0;outline:0;text-align:start}.snippet-activation-switch:before,input[type=checkbox].switch:before{background-color:#789;block-size:13px;border-radius:50%;content:"";display:inline-block;inline-size:13px;margin:2px;transition:all .1s}.active-snippet .snippet-activation-switch,input[type=checkbox].switch:checked{background-color:#0073aa}.active-snippet .snippet-activation-switch:before,input[type=checkbox].switch:checked:before{background-color:#fff;transform:translateX(100%)}.erroneous-snippet .snippet-activation-switch:before{color:#bbb;content:"!";font-weight:700;line-height:1;text-align:center;transform:translateX(50%)}a.snippet-condition-count{align-items:center;block-size:29px;border:1.8px solid;border-radius:50%;box-sizing:border-box;display:flex;inline-size:29px;justify-content:center}.inactive-snippet a.snippet-condition-count{color:#ccc}.active-snippet a.snippet-condition-count{color:#2271b1;font-weight:700}.snippet-execution-button{block-size:0;border-block:9px solid transparent;border-inline-start:10px solid #ccc;inline-size:0;margin-block-start:9px;margin-inline-start:11px}.snippet-execution-button:before{border:1.8px solid #ccc;border-radius:50%;content:"";inset:-14px -8px -14px -21px;position:absolute;z-index:2}.snippet-execution-button:hover{border-inline-start-color:#2271b1;transition:border-left-color .6s}.snippet-execution-button:hover:before{border-color:#2271b1;transition:border-color .6s}.code-snippets-select input[type=text]:focus{box-shadow:none}.help-tooltip{border-block-end:1px dotted;display:inline-flex;flex-direction:column;justify-content:center;position:relative;vertical-align:middle}.help-tooltip-anchor{background:transparent!important;cursor:help;display:inline-block;font-size:10px;padding-block:.3em 0;padding-inline:.3em}.tooltip{cursor:help!important;display:inline-block;position:relative}.tooltip .dashicons{color:#789}.tooltip.badge{display:inline-flex}.tooltip.badge .dashicons{color:inherit}.tooltip-content,.tooltip:before{opacity:0;pointer-events:none;position:absolute;transform:translateZ(0);transition:opacity .2s ease-in-out,visibility .2s ease-in-out,transform .2s cubic-bezier(.71,1.7,.77,1.24);visibility:hidden}.tooltip:before{background:transparent;border:6px solid transparent;content:"";z-index:1001}.tooltip-inline:before{inset-block-start:4px}.tooltip-content{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background-color:rgba(51,51,51,.9);border-radius:6px;color:#fff;font-size:small;font-weight:400;min-inline-size:200px;padding:8px;position:absolute;text-transform:none;z-index:1000}.tooltip-block .tooltip-content{margin-inline-start:-80px}.tooltip-inline .tooltip-content{margin-block-end:-16px;margin-inline-start:0}.tooltip-inline.tooltip-start .tooltip-content{inset-block-start:-50%}.tooltip-block.tooltip-start:before{border-block-start-color:rgba(51,51,51,.9);margin-block-end:-12px;margin-inline-start:-6px}.tooltip-block.tooltip-start .tooltip-content,.tooltip-block.tooltip-start:before{inset-block-end:100%;inset-inline-start:50%}.tooltip-block.tooltip-end:before{border-block-end-color:rgba(51,51,51,.9);border-block-start-color:transparent;margin-block:-12px 0}.tooltip-block.tooltip-end .tooltip-content,.tooltip-block.tooltip-end:before{inset-block:100% auto;margin-inline-start:25%}.tooltip-block.tooltip-end .tooltip-content{inset-inline-end:-70%}.tooltip-inline.tooltip-start:before{border-block-start-color:transparent;border-inline-start-color:rgba(51,51,51,.9);inset-block-end:50%;margin-block-end:0;margin-inline:0 -12px}.tooltip-inline.tooltip-start .tooltip-content,.tooltip-inline.tooltip-start:before{inset-inline:auto 100%}.tooltip-inline.tooltip-end:before{border-block-start-color:transparent;border-inline-end-color:rgba(51,51,51,.9);margin-block-end:0;margin-inline-start:-12px}.tooltip-inline.tooltip-end .tooltip-content,.tooltip-inline.tooltip-end:before{inset-inline-start:100%}.tooltip-inline.tooltip-end .tooltip-content{inset-block-start:-50%}.tooltip:focus .tooltip-content,.tooltip:focus:before,.tooltip:hover .tooltip-content,.tooltip:hover:before{opacity:1;visibility:visible}.tooltip-block.tooltip-start:focus .tooltip-content,.tooltip-block.tooltip-start:focus:before,.tooltip-block.tooltip-start:hover .tooltip-content,.tooltip-block.tooltip-start:hover:before{transform:translateY(-10px)}.tooltip-block.tooltip-end:focus .tooltip-content,.tooltip-block.tooltip-end:focus:before,.tooltip-block.tooltip-end:hover .tooltip-content,.tooltip-block.tooltip-end:hover:before{transform:translateY(10px)}.tooltip-inline.tooltip-end:focus .tooltip-content,.tooltip-inline.tooltip-end:focus:before,.tooltip-inline.tooltip-end:hover .tooltip-content,.tooltip-inline.tooltip-end:hover:before{transform:translateX(10px)}.tooltip-inline.tooltip-start:focus .tooltip-content,.tooltip-inline.tooltip-start:focus:before,.tooltip-inline.tooltip-start:hover .tooltip-content,.tooltip-inline.tooltip-start:hover:before{transform:translateX(-10px)}.cloud-legend-tooltip h3{color:#fff;font-size:16px;text-align:center}.cloud-legend-tooltip td{vertical-align:top}.cloud-search-info{text-align:justify}.cloud-search-info small{color:#646970;float:inline-end}.thickbox-code-viewer{background-color:#f6f6f6;border-radius:10px;min-block-size:250px;padding:20px}#snippet-code-thickbox{display:block;inline-size:100%}.no-results{font-size:15px}.dashicons.cloud-synced{color:#00bcd4}.dashicons.cloud-downloaded{color:#e91e63}.dashicons.cloud-not-downloaded{color:#9e9e9e}.dashicons.cloud-update{color:#ff9800}.cloud_update a{color:#ff9800!important;text-decoration:underline}.updated.column-updated span{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}td.column-name .cloud-icon{margin-inline-end:3px}td.column-download{display:flex;flex-flow:column;gap:.5em;text-align:center}.cloud-snippet-download{color:#2271b1!important}.cloud-snippet-downloaded,.cloud-snippet-preview-style{color:#616161!important}.cloud-snippet-update{color:#ff9800!important}#cloud-search-form{margin-block:30px;text-align:center}.input-group{align-items:stretch;display:flex;flex-wrap:wrap;margin-block:0;margin-inline:auto;max-inline-size:900px;position:relative}#cloud_search{background-clip:padding-box;border-radius:0;color:#495057;display:block;flex:1 1 auto;font-size:1rem;inline-size:1%;margin-block-end:0;padding-block:.375rem;padding-inline:.75rem;position:relative;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}#cloud_search:focus{border:1px solid #8c8f94;box-shadow:none;outline:0}#cloud-select-prepend{background-color:#f6f7f7;border-color:#2271b1;border-end-end-radius:0;border-start-end-radius:0;color:#2271b1;margin-inline-end:-3px;position:relative;z-index:2}#cloud-select-prepend:hover{background-color:#f0f0f1;border-color:#0a4b78;color:#0a4b78}#cloud-search-submit{align-items:center;display:flex;justify-content:center;margin-inline-start:-3px;padding-block:0;padding-inline:15px}.cloud-search{margin-inline-start:5px}.bundle-group{display:flex;flex-wrap:nowrap;gap:5px;justify-content:space-between;margin-block-start:10px}#cloud-bundles{color:#495057;display:flex;flex:1 1 auto;font-size:1rem;inline-size:50%;padding-block:.375rem;padding-inline:.75rem;position:relative}#cloud-bundle-show{inline-size:10%}#cloud-bundle-run{inline-size:15%}#bundle_share_name{color:#495057;font-size:1rem;inline-size:25%}.heading-box{margin:auto;max-inline-size:900px;padding-block-end:1rem}.cloud-search-heading{font-size:23px;font-weight:400;line-height:1.3;margin-block-end:0;padding-block:9px 4px;padding-inline:0;text-align:center}.cloud-badge.ai-icon{color:#b22222;font-size:12px;margin-inline-start:5px;padding:3px}.cloud-search-card-bottom{min-block-size:40px}#cloud-search-results .cloud-snippets #the-list{display:flex;flex-wrap:wrap;justify-content:center}.cloud-snippets .plugin-card{display:flex;flex-direction:column;justify-content:space-between}.cloud-connect-wrap{align-items:center;display:flex;float:inline-end;gap:5px;justify-content:space-between;margin-block:0;margin-inline:3px;max-block-size:35px}.cloud-table>tbody>tr{block-size:80px;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1)}.cloud-table>tbody>tr>td{max-inline-size:250px}.cloud-table tbody .active-snippet .column-name{font-weight:400;max-inline-size:400px;white-space:normal!important}.cloud-table td .no-results{color:#e32121;margin-block-start:15px;text-align:center}.cloud-status-dot{background-color:#ce0000;block-size:10px;border-radius:50%;inline-size:10px}.cloud-connect-active .cloud-status-dot{background-color:#25a349}.cloud-connect-text{color:#ce0000}.cloud-connect-active .cloud-connect-text{color:#2e7d32}.thumbs-up{block-size:1.25rem;inline-size:1.25rem;transform-origin:bottom left}.thumbs-up:hover{stroke:#059669;fill:#6ee7b7}.voted-info{align-items:center;display:inline-flex;gap:3px;margin-block-end:6px!important}.voted-info:hover .thumbs-up{stroke:#059669;fill:#6ee7b7;animation:thumb 1s ease-in-out infinite}.plugin-card-bottom{overflow:visible!important}.beta-test-notice{margin-block-start:20px}.highlight-yellow{background:#fefdba;border-radius:3px;padding:3px}@keyframes thumb{0%{transform:rotate(0)}33%{transform:rotate(7deg)}66%{transform:rotate(-15deg)}90%{transform:rotate(5deg)}to{transform:rotate(0)}}.column-name .dashicons,.column-type .dashicons{block-size:16px;font-size:16px;inline-size:16px;vertical-align:middle}.column-name .dashicons-clock,.column-type .dashicons-clock{vertical-align:middle}.active-snippet .column-name>a{font-weight:600}.active-snippet td,.active-snippet th{background-color:rgba(120,200,230,.06)}.active-snippet th.check-column{border-inline-start:2px solid #2ea2cc}.column-priority input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;box-shadow:none;color:#666;inline-size:4em;text-align:center}.column-priority input:active,.column-priority input:focus,.column-priority input:hover{background-color:#f5f5f5;background-color:rgba(0,0,0,.1);border-radius:6px;color:#000}.column-priority input:disabled{color:inherit}.clear-filters{vertical-align:baseline!important}.snippets td.column-id{text-align:center}.snippets tr{background:#fff}.snippets ol,.snippets ul{margin-block:0 1.5em;margin-inline:1.5em 0}.snippets ul{list-style:disc}.snippets th.sortable a,.snippets th.sorted a{display:flex;flex-direction:row}.snippets .row-actions{color:#ddd;inset-inline-start:0;position:relative}.snippets .column-activate{padding-inline-end:0!important}.snippets .clear-filters{vertical-align:middle}.snippets tfoot th.check-column{padding-block:13px 0;padding-inline:3px 0}.snippets .inactive-snippet th.check-column,.snippets tfoot th.check-column,.snippets thead th.check-column{padding-inline-start:5px}.snippets .active-snippet td,.snippets .active-snippet th,.snippets .inactive-snippet td,.snippets .inactive-snippet th{border:none;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1);padding-block:10px;padding-inline:9px}.snippets tr.active-snippet+tr.inactive-snippet td,.snippets tr.active-snippet+tr.inactive-snippet th{border-block-start:1px solid rgba(0,0,0,.03);box-shadow:inset 0 1px 0 rgba(0,0,0,.02),inset 0 -1px 0 #e1e1e1}.snippets #all-snippets-table a.delete:hover,.snippets #search-snippets-table a.delete:hover,.snippets a.delete:hover{border-block-end:1px solid red;color:red}#wpbody-content .snippets .column-name{white-space:nowrap}td.column-description{max-inline-size:700px}td.column-description pre{white-space:unset}.inactive-snippet a{color:#579}.inactive-snippet a:active,.inactive-snippet a:focus,.inactive-snippet a:hover{color:#819db9}@media screen and (width <= 782px){p.search-box{block-size:auto;float:inline-start;margin-block:1em 0;margin-inline:0;position:static}}.wp-list-table .is-expanded td.column-activate.activate{display:table-cell!important}.nav-tab-wrapper+.subsubsub,p.search-box{margin-block:10px 0;margin-inline:0}.snippet-type-description{border-block-end:1px solid #ccc;margin:0;padding-block:1em;padding-inline:0}.code-snippets-notice a.notice-dismiss{text-decoration:none}.refresh-button-container{align-items:center;display:flex;gap:7px;justify-content:flex-start;margin-block:15px -39px}#refresh-button{font-size:20px;inline-size:30px;line-height:1.4;padding:0}.wrap h2.nav-tab-wrapper .nav-tab{align-items:center;display:flex;flex-flow:row wrap;gap:8px}@media screen and (width <= 1190px){.nav-tab .snippet-label{display:none}}
  • code-snippets/tags/3.7.0-beta/dist/manage.js

    r3345197 r3348557  
    11/*! For license information please see manage.js.LICENSE.txt */
    2 (()=>{var e={5624:()=>{Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}},1983:(e,t,n)=>{var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},a.util.type(t)){case"Object":if(i=a.util.objId(t),n[i])return n[i];for(var s in r={},n[i]=r,t)t.hasOwnProperty(s)&&(r[s]=e(t[s],n));return r;case"Array":return i=a.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,a){r[a]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var a=e.classList;if(a.contains(t))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=a.util.clone(a.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||a.languages)[e],s={};for(var o in i)if(i.hasOwnProperty(o)){if(o==t)for(var l in n)n.hasOwnProperty(l)&&(s[l]=n[l]);n.hasOwnProperty(o)||(s[o]=i[o])}var u=r[e];return r[e]=s,a.languages.DFS(a.languages,(function(t,n){n===u&&t!=e&&(this[t]=s)})),s},DFS:function e(t,n,r,i){i=i||{};var s=a.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var l=t[o],u=a.util.type(l);"Object"!==u||i[s(l)]?"Array"!==u||i[s(l)]||(i[s(l)]=!0,e(l,n,o,i)):(i[s(l)]=!0,e(l,n,null,i))}}},plugins:{},highlightAll:function(e,t){a.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),a.hooks.run("before-all-elements-highlight",r);for(var i,s=0;i=r.elements[s++];)a.highlightElement(i,!0===t,r.callback)},highlightElement:function(t,n,r){var i=a.util.getLanguage(t),s=a.languages[i];a.util.setLanguage(t,i);var o=t.parentElement;o&&"pre"===o.nodeName.toLowerCase()&&a.util.setLanguage(o,i);var l={element:t,language:i,grammar:s,code:t.textContent};function u(e){l.highlightedCode=e,a.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,a.hooks.run("after-highlight",l),a.hooks.run("complete",l),r&&r.call(l.element)}if(a.hooks.run("before-sanity-check",l),(o=l.element.parentElement)&&"pre"===o.nodeName.toLowerCase()&&!o.hasAttribute("tabindex")&&o.setAttribute("tabindex","0"),!l.code)return a.hooks.run("complete",l),void(r&&r.call(l.element));if(a.hooks.run("before-highlight",l),l.grammar)if(n&&e.Worker){var c=new Worker(a.filename);c.onmessage=function(e){u(e.data)},c.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else u(a.highlight(l.code,l.grammar,l.language));else u(a.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(a.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=a.tokenize(r.code,r.grammar),a.hooks.run("after-tokenize",r),i.stringify(a.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new l;return u(a,a.head,e),o(e,a,t,a.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(a)},hooks:{all:{},add:function(e,t){var n=a.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=a.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function s(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var i=a[1].length;a.index+=i,a[0]=a[0].slice(i)}return a}function o(e,t,n,r,l,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var g=n[p];g=Array.isArray(g)?g:[g];for(var f=0;f<g.length;++f){if(d&&d.cause==p+","+f)return;var m=g[f],h=m.inside,b=!!m.lookbehind,y=!!m.greedy,v=m.alias;if(y&&!m.pattern.global){var w=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,w+"g")}for(var k=m.pattern||m,x=r.next,A=l;x!==t.tail&&!(d&&A>=d.reach);A+=x.value.length,x=x.next){var S=x.value;if(t.length>e.length)return;if(!(S instanceof i)){var P,F=1;if(y){if(!(P=s(k,A,e,b))||P.index>=e.length)break;var _=P.index,E=P.index+P[0].length,$=A;for($+=x.value.length;_>=$;)$+=(x=x.next).value.length;if(A=$-=x.value.length,x.value instanceof i)continue;for(var C=x;C!==t.tail&&($<E||"string"==typeof C.value);C=C.next)F++,$+=C.value.length;F--,S=e.slice(A,$),P.index-=A}else if(!(P=s(k,0,S,b)))continue;_=P.index;var z=P[0],T=S.slice(0,_),j=S.slice(_+z.length),L=A+S.length;d&&L>d.reach&&(d.reach=L);var O=x.prev;if(T&&(O=u(t,O,T),A+=T.length),c(t,O,F),x=u(t,O,new i(p,h?a.tokenize(z,h):z,v,z)),j&&u(t,x,j),F>1){var N={cause:p+","+f,reach:L};o(e,t,n,x.prev,A,N),d&&N.reach>d.reach&&(d.reach=N.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function u(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function c(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}if(e.Prism=a,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},s=t.alias;s&&(Array.isArray(s)?Array.prototype.push.apply(i.classes,s):i.classes.push(s)),a.hooks.run("wrap",i);var o="";for(var l in i.attributes)o+=" "+l+'="'+(i.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+o+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(a.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,s=n.immediateClose;e.postMessage(a.highlight(i,a.languages[r],r)),s&&e.close()}),!1),a):a;var d=a.util.currentScript();function p(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var g=document.readyState;"loading"===g||"interactive"===g&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return a}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r)},1113:()=>{!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism)},5723:()=>{Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},9700:()=>{!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,a,i){if(n.language===r){var s=n.tokenStack=[];n.code=n.code.replace(a,(function(e){if("function"==typeof i&&!i(e))return e;for(var a,o=s.length;-1!==n.code.indexOf(a=t(r,o));)++o;return s[o]=e,a})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var a=0,i=Object.keys(n.tokenStack);!function s(o){for(var l=0;l<o.length&&!(a>=i.length);l++){var u=o[l];if("string"==typeof u||u.content&&"string"==typeof u.content){var c=i[a],d=n.tokenStack[c],p="string"==typeof u?u:u.content,g=t(r,c),f=p.indexOf(g);if(f>-1){++a;var m=p.substring(0,f),h=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),b=p.substring(f+g.length),y=[];m&&y.push.apply(y,s([m])),y.push(h),b&&y.push.apply(y,s([b])),"string"==typeof u?o.splice.apply(o,[l,1].concat(y)):u.content=y}}else u.content&&s(u.content)}return o}(n.tokens)}}}})}(Prism)},4312:()=>{Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var a={};a[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},5248:()=>{Prism.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})},3554:()=>{!function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:a,punctuation:i};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},o=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:s}}];e.languages.insertBefore("php","variable",{string:o,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:o,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:a,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism)},4173:()=>{"undefined"!=typeof Prism&&"undefined"!=typeof document&&document.createRange&&(Prism.plugins.KeepMarkup=!0,Prism.hooks.add("before-highlight",(function(e){if(e.element.children.length&&Prism.util.isActive(e.element,"keep-markup",!0)){var t=Prism.util.isActive(e.element,"drop-tokens",!1),n=0,r=[];i(e.element),r.length&&(e.keepMarkup=r)}function a(e){if(function(e){return!t||"span"!==e.nodeName.toLowerCase()||!e.classList.contains("token")}(e)){var a={element:e,posOpen:n};r.push(a),i(e),a.posClose=n}else i(e)}function i(e){for(var t=0,r=e.childNodes.length;t<r;t++){var i=e.childNodes[t];1===i.nodeType?a(i):3===i.nodeType&&(n+=i.data.length)}}})),Prism.hooks.add("after-highlight",(function(e){if(e.keepMarkup&&e.keepMarkup.length){var t=function(e,n){for(var r=0,a=e.childNodes.length;r<a;r++){var i=e.childNodes[r];if(1===i.nodeType){if(!t(i,n))return!1}else 3===i.nodeType&&(!n.nodeStart&&n.pos+i.data.length>n.node.posOpen&&(n.nodeStart=i,n.nodeStartPos=n.node.posOpen-n.pos),n.nodeStart&&n.pos+i.data.length>=n.node.posClose&&(n.nodeEnd=i,n.nodeEndPos=n.node.posClose-n.pos),n.pos+=i.data.length);if(n.nodeStart&&n.nodeEnd){var s=document.createRange();return s.setStart(n.nodeStart,n.nodeStartPos),s.setEnd(n.nodeEnd,n.nodeEndPos),n.node.element.innerHTML="",n.node.element.appendChild(s.extractContents()),s.insertNode(n.node.element),s.detach(),!1}}return!0};e.keepMarkup.forEach((function(n){t(e.element,{node:n,pos:0})})),e.highlightedCode=e.element.innerHTML}})))},6285:()=>{!function(){if("undefined"!=typeof Prism&&"undefined"!=typeof document&&document.querySelector){var e,t="line-numbers",n="linkable-line-numbers",r=/\n(?!$)/g,a=!0;Prism.plugins.lineHighlight={highlightLines:function(i,u,c){var d=(u="string"==typeof u?u:i.getAttribute("data-line")||"").replace(/\s+/g,"").split(",").filter(Boolean),p=+i.getAttribute("data-line-offset")||0,g=(function(){if(void 0===e){var t=document.createElement("div");t.style.fontSize="13px",t.style.lineHeight="1.5",t.style.padding="0",t.style.border="0",t.innerHTML="&nbsp;<br />&nbsp;",document.body.appendChild(t),e=38===t.offsetHeight,document.body.removeChild(t)}return e}()?parseInt:parseFloat)(getComputedStyle(i).lineHeight),f=Prism.util.isActive(i,t),m=i.querySelector("code"),h=f?i:m||i,b=[],y=m.textContent.match(r),v=y?y.length+1:1,w=m&&h!=m?function(e,t){var n=getComputedStyle(e),r=getComputedStyle(t);function a(e){return+e.substr(0,e.length-2)}return t.offsetTop+a(r.borderTopWidth)+a(r.paddingTop)-a(n.paddingTop)}(i,m):0;d.forEach((function(e){var t=e.split("-"),n=+t[0],r=+t[1]||n;if(!((r=Math.min(v+p,r))<n)){var a=i.querySelector('.line-highlight[data-range="'+e+'"]')||document.createElement("div");if(b.push((function(){a.setAttribute("aria-hidden","true"),a.setAttribute("data-range",e),a.className=(c||"")+" line-highlight"})),f&&Prism.plugins.lineNumbers){var s=Prism.plugins.lineNumbers.getLine(i,n),o=Prism.plugins.lineNumbers.getLine(i,r);if(s){var l=s.offsetTop+w+"px";b.push((function(){a.style.top=l}))}if(o){var u=o.offsetTop-s.offsetTop+o.offsetHeight+"px";b.push((function(){a.style.height=u}))}}else b.push((function(){a.setAttribute("data-start",String(n)),r>n&&a.setAttribute("data-end",String(r)),a.style.top=(n-p-1)*g+w+"px",a.textContent=new Array(r-n+2).join(" \n")}));b.push((function(){a.style.width=i.scrollWidth+"px"})),b.push((function(){h.appendChild(a)}))}}));var k=i.id;if(f&&Prism.util.isActive(i,n)&&k){o(i,n)||b.push((function(){i.classList.add(n)}));var x=parseInt(i.getAttribute("data-start")||"1");s(".line-numbers-rows > span",i).forEach((function(e,t){var n=t+x;e.onclick=function(){var e=k+"."+n;a=!1,location.hash=e,setTimeout((function(){a=!0}),1)}}))}return function(){b.forEach(l)}}};var i=0;Prism.hooks.add("before-sanity-check",(function(e){var t=e.element.parentElement;if(u(t)){var n=0;s(".line-highlight",t).forEach((function(e){n+=e.textContent.length,e.parentNode.removeChild(e)})),n&&/^(?: \n)+$/.test(e.code.slice(-n))&&(e.code=e.code.slice(0,-n))}})),Prism.hooks.add("complete",(function e(n){var r=n.element.parentElement;if(u(r)){clearTimeout(i);var a=Prism.plugins.lineNumbers,s=n.plugins&&n.plugins.lineNumbers;o(r,t)&&a&&!s?Prism.hooks.add("line-numbers",e):(Prism.plugins.lineHighlight.highlightLines(r)(),i=setTimeout(c,1))}})),window.addEventListener("hashchange",c),window.addEventListener("resize",(function(){s("pre").filter(u).map((function(e){return Prism.plugins.lineHighlight.highlightLines(e)})).forEach(l)}))}function s(e,t){return Array.prototype.slice.call((t||document).querySelectorAll(e))}function o(e,t){return e.classList.contains(t)}function l(e){e()}function u(e){return!!(e&&/pre/i.test(e.nodeName)&&(e.hasAttribute("data-line")||e.id&&Prism.util.isActive(e,n)))}function c(){var e=location.hash.slice(1);s(".temporary.line-highlight").forEach((function(e){e.parentNode.removeChild(e)}));var t=(e.match(/\.([\d,-]+)$/)||[,""])[1];if(t&&!document.getElementById(e)){var n=e.slice(0,e.lastIndexOf(".")),r=document.getElementById(n);r&&(r.hasAttribute("data-line")||r.setAttribute("data-line",""),Prism.plugins.lineHighlight.highlightLines(r,t,"temporary ")(),a&&document.querySelector(".temporary.line-highlight").scrollIntoView())}}}()},6837:()=>{!function(){if("undefined"!=typeof Prism&&"undefined"!=typeof document){var e="line-numbers",t=/\n(?!$)/g,n=Prism.plugins.lineNumbers={getLine:function(t,n){if("PRE"===t.tagName&&t.classList.contains(e)){var r=t.querySelector(".line-numbers-rows");if(r){var a=parseInt(t.getAttribute("data-start"),10)||1,i=a+(r.children.length-1);n<a&&(n=a),n>i&&(n=i);var s=n-a;return r.children[s]}}},resize:function(e){a([e])},assumeViewportIndependence:!0},r=void 0;window.addEventListener("resize",(function(){n.assumeViewportIndependence&&r===window.innerWidth||(r=window.innerWidth,a(Array.prototype.slice.call(document.querySelectorAll("pre."+e))))})),Prism.hooks.add("complete",(function(n){if(n.code){var r=n.element,i=r.parentNode;if(i&&/pre/i.test(i.nodeName)&&!r.querySelector(".line-numbers-rows")&&Prism.util.isActive(r,e)){r.classList.remove(e),i.classList.add(e);var s,o=n.code.match(t),l=o?o.length+1:1,u=new Array(l+1).join("<span></span>");(s=document.createElement("span")).setAttribute("aria-hidden","true"),s.className="line-numbers-rows",s.innerHTML=u,i.hasAttribute("data-start")&&(i.style.counterReset="linenumber "+(parseInt(i.getAttribute("data-start"),10)-1)),n.element.appendChild(s),a([i]),Prism.hooks.run("line-numbers",n)}}})),Prism.hooks.add("line-numbers",(function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}))}function a(e){if(0!=(e=e.filter((function(e){var t,n=(t=e,t?window.getComputedStyle?getComputedStyle(t):t.currentStyle||null:null)["white-space"];return"pre-wrap"===n||"pre-line"===n}))).length){var n=e.map((function(e){var n=e.querySelector("code"),r=e.querySelector(".line-numbers-rows");if(n&&r){var a=e.querySelector(".line-numbers-sizer"),i=n.textContent.split(t);a||((a=document.createElement("span")).className="line-numbers-sizer",n.appendChild(a)),a.innerHTML="0",a.style.display="block";var s=a.getBoundingClientRect().height;return a.innerHTML="",{element:e,lines:i,lineHeights:[],oneLinerHeight:s,sizer:a}}})).filter(Boolean);n.forEach((function(e){var t=e.sizer,n=e.lines,r=e.lineHeights,a=e.oneLinerHeight;r[n.length-1]=void 0,n.forEach((function(e,n){if(e&&e.length>1){var i=t.appendChild(document.createElement("span"));i.style.display="block",i.textContent=e}else r[n]=a}))})),n.forEach((function(e){for(var t=e.sizer,n=e.lineHeights,r=0,a=0;a<n.length;a++)void 0===n[a]&&(n[a]=t.children[r++].getBoundingClientRect().height)})),n.forEach((function(e){var t=e.sizer,n=e.element.querySelector(".line-numbers-rows");t.style.display="none",t.innerHTML="",e.lineHeights.forEach((function(e,t){n.children[t].style.height=e+"px"}))}))}}}()}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t(e,n)}const r=window.wp.i18n;var a=function(e,t,n,r){var a,i,s,o,l=document.getElementById("code_snippets_ajax_nonce"),u=t.querySelector(".column-id");l&&null!=u&&u.textContent&&parseInt(u.textContent,10)&&(n.id=parseInt(u.textContent,10),n.shared_network=null!==/\bshared-network-snippet\b/.exec(t.className),n.network=n.shared_network||window.pagenow.endsWith("-network"),n.scope=null!==(a=t.getAttribute("data-snippet-scope"))&&void 0!==a?a:n.scope,i="action=update_code_snippet&_ajax_nonce=".concat(l.value,"&field=").concat(e,"&snippet=").concat(JSON.stringify(n)),s=r,(o=new XMLHttpRequest).open("POST",window.ajaxurl,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),o.onload=function(){200>o.status||400<=o.status||(console.info(o.responseText),null==s||s(JSON.parse(o.responseText)))},o.send(i))};function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(){s=function(e,t){return new a(e,void 0,t)};var n=RegExp.prototype,r=new WeakMap;function a(e,n,i){var s=RegExp(e,n);return r.set(s,i||r.get(e)),t(s,a.prototype)}function i(e,t){var n=r.get(t);return Object.keys(n).reduce((function(t,r){var a=n[r];if("number"==typeof a)t[r]=e[a];else{for(var i=0;void 0===e[a[i]]&&i+1<a.length;)i++;t[r]=e[a[i]]}return t}),Object.create(null))}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&t(e,n)}(a,RegExp),a.prototype.exec=function(e){var t=n.exec.call(this,e);if(t){t.groups=i(t,this);var r=t.indices;r&&(r.groups=i(r,this))}return t},a.prototype[Symbol.replace]=function(t,a){if("string"==typeof a){var s=r.get(this);return n[Symbol.replace].call(this,t,a.replace(/\$<([^>]+)(>|$)/g,(function(e,t,n){if(""===n)return e;var r=s[t];return Array.isArray(r)?"$"+r.join("$"):"number"==typeof r?"$"+r:""})))}if("function"==typeof a){var o=this;return n[Symbol.replace].call(this,t,(function(){var t=arguments;return"object"!=e(t[t.length-1])&&(t=[].slice.call(t)).push(i(t,o)),a.apply(this,t)}))}return n[Symbol.replace].call(this,t,a)},s.apply(this,arguments)}var o=function(e,t){if(null!=e&&e.textContent){var n=parseInt(e.textContent.replace(s(/\((\d+)\)/,{count:1}),"$1"),10);n+=t?1:-1,e.textContent="(".concat(n,")")}else console.error("Could not update view count.",e)};function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var c=n(1983),d=n.n(c);n(4312),n(9700),n(3554),n(5248),n(6285),n(6837),n(5624),n(5723),n(1113),n(4173),function(){var e,t=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,s=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw s}}}}(document.getElementsByClassName("snippet-activation-switch"));try{var n=function(){var t=e.value;t.addEventListener("click",(function(e){return function(e,t){var n,i=null===(n=e.parentElement)||void 0===n?void 0:n.parentElement;if(i){var s=/\b(?:in)?active-snippet\b/.exec(i.className);if(s){t.preventDefault();var l="inactive-snippet"===s[0];a("active",i,{active:l},(function(e){var t=i.querySelector(".snippet-activation-switch");if(e.success){i.className=l?i.className.replace(/\binactive-snippet\b/,"active-snippet"):i.className.replace(/\bactive-snippet\b/,"inactive-snippet");var n=document.querySelector(".subsubsub"),a=null==n?void 0:n.querySelector(".active .count"),s=null==n?void 0:n.querySelector(".inactive .count");a&&o(a,l),s&&o(s,l),t&&(t.title=l?(0,r.__)("Deactivate","code-snippets"):(0,r.__)("Activate","code-snippets"))}else i.className+=" erroneous-snippet",t&&(t.title=(0,r.__)("An error occurred when attempting to activate","code-snippets"))}))}}else console.error("Could not toggle snippet active status.",i)}(t,e)}))};for(t.s();!(e=t.n()).done;)n()}catch(e){t.e(e)}finally{t.f()}}(),function(){var e,t=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw i}}}}(document.getElementsByClassName("snippet-priority"));try{var n=function(){var t=e.value;t.addEventListener("input",(function(){return r=null===(n=(e=t).parentElement)||void 0===n?void 0:n.parentElement,i={priority:parseFloat(e.value)},void(r?a("priority",r,i):console.error("Could not update snippet information.",i,r));var e,n,r,i})),t.disabled=!1};for(t.s();!(e=t.n()).done;)n()}catch(e){t.e(e)}finally{t.f()}}(),document.querySelectorAll(".cloud-snippet-preview").forEach((function(e){e.addEventListener("click",(function(){var t,n,r=e.getAttribute("data-snippet"),a=e.getAttribute("data-lang"),i=document.getElementById("cloud-snippet-code-".concat(r)),s=document.getElementById("snippet-code-thickbox");s&&i&&((t=s.classList).remove.apply(t,function(e){if(Array.isArray(e))return u(e)}(n=s.classList)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s.classList.add("language-".concat(a)),s.textContent=i.value,"markup"===a&&(s.innerHTML="<xmp>".concat(i.value,"</xmp>")),"php"===a&&(i.value.startsWith("<?php")||(s.textContent="<?php\n".concat(i.value))),d().highlightElement(s))}))}))})()})();
     2(()=>{var e={5624:()=>{Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}},1983:(e,t,n)=>{var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},a.util.type(t)){case"Object":if(i=a.util.objId(t),n[i])return n[i];for(var s in r={},n[i]=r,t)t.hasOwnProperty(s)&&(r[s]=e(t[s],n));return r;case"Array":return i=a.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,a){r[a]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var a=e.classList;if(a.contains(t))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=a.util.clone(a.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||a.languages)[e],s={};for(var o in i)if(i.hasOwnProperty(o)){if(o==t)for(var l in n)n.hasOwnProperty(l)&&(s[l]=n[l]);n.hasOwnProperty(o)||(s[o]=i[o])}var u=r[e];return r[e]=s,a.languages.DFS(a.languages,(function(t,n){n===u&&t!=e&&(this[t]=s)})),s},DFS:function e(t,n,r,i){i=i||{};var s=a.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var l=t[o],u=a.util.type(l);"Object"!==u||i[s(l)]?"Array"!==u||i[s(l)]||(i[s(l)]=!0,e(l,n,o,i)):(i[s(l)]=!0,e(l,n,null,i))}}},plugins:{},highlightAll:function(e,t){a.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),a.hooks.run("before-all-elements-highlight",r);for(var i,s=0;i=r.elements[s++];)a.highlightElement(i,!0===t,r.callback)},highlightElement:function(t,n,r){var i=a.util.getLanguage(t),s=a.languages[i];a.util.setLanguage(t,i);var o=t.parentElement;o&&"pre"===o.nodeName.toLowerCase()&&a.util.setLanguage(o,i);var l={element:t,language:i,grammar:s,code:t.textContent};function u(e){l.highlightedCode=e,a.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,a.hooks.run("after-highlight",l),a.hooks.run("complete",l),r&&r.call(l.element)}if(a.hooks.run("before-sanity-check",l),(o=l.element.parentElement)&&"pre"===o.nodeName.toLowerCase()&&!o.hasAttribute("tabindex")&&o.setAttribute("tabindex","0"),!l.code)return a.hooks.run("complete",l),void(r&&r.call(l.element));if(a.hooks.run("before-highlight",l),l.grammar)if(n&&e.Worker){var c=new Worker(a.filename);c.onmessage=function(e){u(e.data)},c.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else u(a.highlight(l.code,l.grammar,l.language));else u(a.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(a.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=a.tokenize(r.code,r.grammar),a.hooks.run("after-tokenize",r),i.stringify(a.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new l;return u(a,a.head,e),o(e,a,t,a.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(a)},hooks:{all:{},add:function(e,t){var n=a.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=a.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function s(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var i=a[1].length;a.index+=i,a[0]=a[0].slice(i)}return a}function o(e,t,n,r,l,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var g=n[p];g=Array.isArray(g)?g:[g];for(var f=0;f<g.length;++f){if(d&&d.cause==p+","+f)return;var m=g[f],h=m.inside,b=!!m.lookbehind,y=!!m.greedy,v=m.alias;if(y&&!m.pattern.global){var w=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,w+"g")}for(var k=m.pattern||m,x=r.next,A=l;x!==t.tail&&!(d&&A>=d.reach);A+=x.value.length,x=x.next){var P=x.value;if(t.length>e.length)return;if(!(P instanceof i)){var S,F=1;if(y){if(!(S=s(k,A,e,b))||S.index>=e.length)break;var _=S.index,E=S.index+S[0].length,$=A;for($+=x.value.length;_>=$;)$+=(x=x.next).value.length;if(A=$-=x.value.length,x.value instanceof i)continue;for(var j=x;j!==t.tail&&($<E||"string"==typeof j.value);j=j.next)F++,$+=j.value.length;F--,P=e.slice(A,$),S.index-=A}else if(!(S=s(k,0,P,b)))continue;_=S.index;var O=S[0],C=P.slice(0,_),z=P.slice(_+O.length),T=A+P.length;d&&T>d.reach&&(d.reach=T);var L=x.prev;if(C&&(L=u(t,L,C),A+=C.length),c(t,L,F),x=u(t,L,new i(p,h?a.tokenize(O,h):O,v,O)),z&&u(t,x,z),F>1){var N={cause:p+","+f,reach:T};o(e,t,n,x.prev,A,N),d&&N.reach>d.reach&&(d.reach=N.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function u(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function c(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}if(e.Prism=a,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},s=t.alias;s&&(Array.isArray(s)?Array.prototype.push.apply(i.classes,s):i.classes.push(s)),a.hooks.run("wrap",i);var o="";for(var l in i.attributes)o+=" "+l+'="'+(i.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+o+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(a.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,s=n.immediateClose;e.postMessage(a.highlight(i,a.languages[r],r)),s&&e.close()}),!1),a):a;var d=a.util.currentScript();function p(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var g=document.readyState;"loading"===g||"interactive"===g&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return a}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r)},1113:()=>{!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism)},5723:()=>{Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},9700:()=>{!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,a,i){if(n.language===r){var s=n.tokenStack=[];n.code=n.code.replace(a,(function(e){if("function"==typeof i&&!i(e))return e;for(var a,o=s.length;-1!==n.code.indexOf(a=t(r,o));)++o;return s[o]=e,a})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var a=0,i=Object.keys(n.tokenStack);!function s(o){for(var l=0;l<o.length&&!(a>=i.length);l++){var u=o[l];if("string"==typeof u||u.content&&"string"==typeof u.content){var c=i[a],d=n.tokenStack[c],p="string"==typeof u?u:u.content,g=t(r,c),f=p.indexOf(g);if(f>-1){++a;var m=p.substring(0,f),h=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),b=p.substring(f+g.length),y=[];m&&y.push.apply(y,s([m])),y.push(h),b&&y.push.apply(y,s([b])),"string"==typeof u?o.splice.apply(o,[l,1].concat(y)):u.content=y}}else u.content&&s(u.content)}return o}(n.tokens)}}}})}(Prism)},4312:()=>{Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var a={};a[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},5248:()=>{Prism.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})},3554:()=>{!function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:a,punctuation:i};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},o=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:s}}];e.languages.insertBefore("php","variable",{string:o,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:o,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:a,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism)},4173:()=>{"undefined"!=typeof Prism&&"undefined"!=typeof document&&document.createRange&&(Prism.plugins.KeepMarkup=!0,Prism.hooks.add("before-highlight",(function(e){if(e.element.children.length&&Prism.util.isActive(e.element,"keep-markup",!0)){var t=Prism.util.isActive(e.element,"drop-tokens",!1),n=0,r=[];i(e.element),r.length&&(e.keepMarkup=r)}function a(e){if(function(e){return!t||"span"!==e.nodeName.toLowerCase()||!e.classList.contains("token")}(e)){var a={element:e,posOpen:n};r.push(a),i(e),a.posClose=n}else i(e)}function i(e){for(var t=0,r=e.childNodes.length;t<r;t++){var i=e.childNodes[t];1===i.nodeType?a(i):3===i.nodeType&&(n+=i.data.length)}}})),Prism.hooks.add("after-highlight",(function(e){if(e.keepMarkup&&e.keepMarkup.length){var t=function(e,n){for(var r=0,a=e.childNodes.length;r<a;r++){var i=e.childNodes[r];if(1===i.nodeType){if(!t(i,n))return!1}else 3===i.nodeType&&(!n.nodeStart&&n.pos+i.data.length>n.node.posOpen&&(n.nodeStart=i,n.nodeStartPos=n.node.posOpen-n.pos),n.nodeStart&&n.pos+i.data.length>=n.node.posClose&&(n.nodeEnd=i,n.nodeEndPos=n.node.posClose-n.pos),n.pos+=i.data.length);if(n.nodeStart&&n.nodeEnd){var s=document.createRange();return s.setStart(n.nodeStart,n.nodeStartPos),s.setEnd(n.nodeEnd,n.nodeEndPos),n.node.element.innerHTML="",n.node.element.appendChild(s.extractContents()),s.insertNode(n.node.element),s.detach(),!1}}return!0};e.keepMarkup.forEach((function(n){t(e.element,{node:n,pos:0})})),e.highlightedCode=e.element.innerHTML}})))},6285:()=>{!function(){if("undefined"!=typeof Prism&&"undefined"!=typeof document&&document.querySelector){var e,t="line-numbers",n="linkable-line-numbers",r=/\n(?!$)/g,a=!0;Prism.plugins.lineHighlight={highlightLines:function(i,u,c){var d=(u="string"==typeof u?u:i.getAttribute("data-line")||"").replace(/\s+/g,"").split(",").filter(Boolean),p=+i.getAttribute("data-line-offset")||0,g=(function(){if(void 0===e){var t=document.createElement("div");t.style.fontSize="13px",t.style.lineHeight="1.5",t.style.padding="0",t.style.border="0",t.innerHTML="&nbsp;<br />&nbsp;",document.body.appendChild(t),e=38===t.offsetHeight,document.body.removeChild(t)}return e}()?parseInt:parseFloat)(getComputedStyle(i).lineHeight),f=Prism.util.isActive(i,t),m=i.querySelector("code"),h=f?i:m||i,b=[],y=m.textContent.match(r),v=y?y.length+1:1,w=m&&h!=m?function(e,t){var n=getComputedStyle(e),r=getComputedStyle(t);function a(e){return+e.substr(0,e.length-2)}return t.offsetTop+a(r.borderTopWidth)+a(r.paddingTop)-a(n.paddingTop)}(i,m):0;d.forEach((function(e){var t=e.split("-"),n=+t[0],r=+t[1]||n;if(!((r=Math.min(v+p,r))<n)){var a=i.querySelector('.line-highlight[data-range="'+e+'"]')||document.createElement("div");if(b.push((function(){a.setAttribute("aria-hidden","true"),a.setAttribute("data-range",e),a.className=(c||"")+" line-highlight"})),f&&Prism.plugins.lineNumbers){var s=Prism.plugins.lineNumbers.getLine(i,n),o=Prism.plugins.lineNumbers.getLine(i,r);if(s){var l=s.offsetTop+w+"px";b.push((function(){a.style.top=l}))}if(o){var u=o.offsetTop-s.offsetTop+o.offsetHeight+"px";b.push((function(){a.style.height=u}))}}else b.push((function(){a.setAttribute("data-start",String(n)),r>n&&a.setAttribute("data-end",String(r)),a.style.top=(n-p-1)*g+w+"px",a.textContent=new Array(r-n+2).join(" \n")}));b.push((function(){a.style.width=i.scrollWidth+"px"})),b.push((function(){h.appendChild(a)}))}}));var k=i.id;if(f&&Prism.util.isActive(i,n)&&k){o(i,n)||b.push((function(){i.classList.add(n)}));var x=parseInt(i.getAttribute("data-start")||"1");s(".line-numbers-rows > span",i).forEach((function(e,t){var n=t+x;e.onclick=function(){var e=k+"."+n;a=!1,location.hash=e,setTimeout((function(){a=!0}),1)}}))}return function(){b.forEach(l)}}};var i=0;Prism.hooks.add("before-sanity-check",(function(e){var t=e.element.parentElement;if(u(t)){var n=0;s(".line-highlight",t).forEach((function(e){n+=e.textContent.length,e.parentNode.removeChild(e)})),n&&/^(?: \n)+$/.test(e.code.slice(-n))&&(e.code=e.code.slice(0,-n))}})),Prism.hooks.add("complete",(function e(n){var r=n.element.parentElement;if(u(r)){clearTimeout(i);var a=Prism.plugins.lineNumbers,s=n.plugins&&n.plugins.lineNumbers;o(r,t)&&a&&!s?Prism.hooks.add("line-numbers",e):(Prism.plugins.lineHighlight.highlightLines(r)(),i=setTimeout(c,1))}})),window.addEventListener("hashchange",c),window.addEventListener("resize",(function(){s("pre").filter(u).map((function(e){return Prism.plugins.lineHighlight.highlightLines(e)})).forEach(l)}))}function s(e,t){return Array.prototype.slice.call((t||document).querySelectorAll(e))}function o(e,t){return e.classList.contains(t)}function l(e){e()}function u(e){return!!(e&&/pre/i.test(e.nodeName)&&(e.hasAttribute("data-line")||e.id&&Prism.util.isActive(e,n)))}function c(){var e=location.hash.slice(1);s(".temporary.line-highlight").forEach((function(e){e.parentNode.removeChild(e)}));var t=(e.match(/\.([\d,-]+)$/)||[,""])[1];if(t&&!document.getElementById(e)){var n=e.slice(0,e.lastIndexOf(".")),r=document.getElementById(n);r&&(r.hasAttribute("data-line")||r.setAttribute("data-line",""),Prism.plugins.lineHighlight.highlightLines(r,t,"temporary ")(),a&&document.querySelector(".temporary.line-highlight").scrollIntoView())}}}()},6837:()=>{!function(){if("undefined"!=typeof Prism&&"undefined"!=typeof document){var e="line-numbers",t=/\n(?!$)/g,n=Prism.plugins.lineNumbers={getLine:function(t,n){if("PRE"===t.tagName&&t.classList.contains(e)){var r=t.querySelector(".line-numbers-rows");if(r){var a=parseInt(t.getAttribute("data-start"),10)||1,i=a+(r.children.length-1);n<a&&(n=a),n>i&&(n=i);var s=n-a;return r.children[s]}}},resize:function(e){a([e])},assumeViewportIndependence:!0},r=void 0;window.addEventListener("resize",(function(){n.assumeViewportIndependence&&r===window.innerWidth||(r=window.innerWidth,a(Array.prototype.slice.call(document.querySelectorAll("pre."+e))))})),Prism.hooks.add("complete",(function(n){if(n.code){var r=n.element,i=r.parentNode;if(i&&/pre/i.test(i.nodeName)&&!r.querySelector(".line-numbers-rows")&&Prism.util.isActive(r,e)){r.classList.remove(e),i.classList.add(e);var s,o=n.code.match(t),l=o?o.length+1:1,u=new Array(l+1).join("<span></span>");(s=document.createElement("span")).setAttribute("aria-hidden","true"),s.className="line-numbers-rows",s.innerHTML=u,i.hasAttribute("data-start")&&(i.style.counterReset="linenumber "+(parseInt(i.getAttribute("data-start"),10)-1)),n.element.appendChild(s),a([i]),Prism.hooks.run("line-numbers",n)}}})),Prism.hooks.add("line-numbers",(function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}))}function a(e){if(0!=(e=e.filter((function(e){var t,n=(t=e,t?window.getComputedStyle?getComputedStyle(t):t.currentStyle||null:null)["white-space"];return"pre-wrap"===n||"pre-line"===n}))).length){var n=e.map((function(e){var n=e.querySelector("code"),r=e.querySelector(".line-numbers-rows");if(n&&r){var a=e.querySelector(".line-numbers-sizer"),i=n.textContent.split(t);a||((a=document.createElement("span")).className="line-numbers-sizer",n.appendChild(a)),a.innerHTML="0",a.style.display="block";var s=a.getBoundingClientRect().height;return a.innerHTML="",{element:e,lines:i,lineHeights:[],oneLinerHeight:s,sizer:a}}})).filter(Boolean);n.forEach((function(e){var t=e.sizer,n=e.lines,r=e.lineHeights,a=e.oneLinerHeight;r[n.length-1]=void 0,n.forEach((function(e,n){if(e&&e.length>1){var i=t.appendChild(document.createElement("span"));i.style.display="block",i.textContent=e}else r[n]=a}))})),n.forEach((function(e){for(var t=e.sizer,n=e.lineHeights,r=0,a=0;a<n.length;a++)void 0===n[a]&&(n[a]=t.children[r++].getBoundingClientRect().height)})),n.forEach((function(e){var t=e.sizer,n=e.element.querySelector(".line-numbers-rows");t.style.display="none",t.innerHTML="",e.lineHeights.forEach((function(e,t){n.children[t].style.height=e+"px"}))}))}}}()}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t(e,n)}const r=window.wp.i18n;function a(t,n,r){return(n=function(t){var n=function(t){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var s=function(e,t,n,r){var s,o,l=document.getElementById("code_snippets_ajax_nonce"),u=t.querySelector(".column-id");if(l&&null!=u&&u.textContent&&parseInt(u.textContent,10)){var c,d,p,g=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:parseInt(u.textContent,10),shared_network:null!==/\bshared-network-snippet\b/.exec(t.className),network:null!==(s=n.shared_network)&&void 0!==s?s:window.pagenow.endsWith("-network"),scope:null!==(o=t.getAttribute("data-snippet-scope"))&&void 0!==o?o:n.scope},n);c="action=update_code_snippet&_ajax_nonce=".concat(l.value,"&field=").concat(e,"&snippet=").concat(JSON.stringify(g)),d=r,(p=new XMLHttpRequest).open("POST",window.ajaxurl,!0),p.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),p.onload=function(){200>p.status||400<=p.status||(console.info(p.responseText),null==d||d(JSON.parse(p.responseText)))},p.send(c)}};function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(){l=function(e,t){return new a(e,void 0,t)};var n=RegExp.prototype,r=new WeakMap;function a(e,n,i){var s=RegExp(e,n);return r.set(s,i||r.get(e)),t(s,a.prototype)}function i(e,t){var n=r.get(t);return Object.keys(n).reduce((function(t,r){var a=n[r];if("number"==typeof a)t[r]=e[a];else{for(var i=0;void 0===e[a[i]]&&i+1<a.length;)i++;t[r]=e[a[i]]}return t}),Object.create(null))}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&t(e,n)}(a,RegExp),a.prototype.exec=function(e){var t=n.exec.call(this,e);if(t){t.groups=i(t,this);var r=t.indices;r&&(r.groups=i(r,this))}return t},a.prototype[Symbol.replace]=function(t,a){if("string"==typeof a){var s=r.get(this);return n[Symbol.replace].call(this,t,a.replace(/\$<([^>]+)(>|$)/g,(function(e,t,n){if(""===n)return e;var r=s[t];return Array.isArray(r)?"$"+r.join("$"):"number"==typeof r?"$"+r:""})))}if("function"==typeof a){var o=this;return n[Symbol.replace].call(this,t,(function(){var t=arguments;return"object"!=e(t[t.length-1])&&(t=[].slice.call(t)).push(i(t,o)),a.apply(this,t)}))}return n[Symbol.replace].call(this,t,a)},l.apply(this,arguments)}var u=function(e,t){if(null!=e&&e.textContent){var n=parseInt(e.textContent.replace(l(/\((\d+)\)/,{count:1}),"$1"),10);n+=t?1:-1,e.textContent="(".concat(n,")")}else console.error("Could not update view count.",e)};function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var p=n(1983),g=n.n(p);n(4312),n(9700),n(3554),n(5248),n(6285),n(6837),n(5624),n(5723),n(1113),n(4173),function(){var e,t=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}(document.getElementsByClassName("snippet-activation-switch"));try{var n=function(){var t=e.value;t.addEventListener("click",(function(e){return function(e,t){var n,a=null===(n=e.parentElement)||void 0===n?void 0:n.parentElement;if(a){var i=/\b(?:in)?active-snippet\b/.exec(a.className);if(i){t.preventDefault();var o="inactive-snippet"===i[0];s("active",a,{active:o},(function(e){var t=a.querySelector(".snippet-activation-switch");if(e.success){a.className=o?a.className.replace(/\binactive-snippet\b/,"active-snippet"):a.className.replace(/\bactive-snippet\b/,"inactive-snippet");var n=document.querySelector(".subsubsub"),i=null==n?void 0:n.querySelector(".active .count"),s=null==n?void 0:n.querySelector(".inactive .count");i&&u(i,o),s&&u(s,o),t&&(t.title=o?(0,r.__)("Deactivate","code-snippets"):(0,r.__)("Activate","code-snippets"))}else a.className+=" erroneous-snippet",t&&(t.title=(0,r.__)("An error occurred when attempting to activate","code-snippets"))}))}}else console.error("Could not toggle snippet active status.",a)}(t,e)}))};for(t.s();!(e=t.n()).done;)n()}catch(e){t.e(e)}finally{t.f()}}(),function(){var e,t=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw i}}}}(document.getElementsByClassName("snippet-priority"));try{var n=function(){var t=e.value;t.addEventListener("input",(function(){return r=null===(n=(e=t).parentElement)||void 0===n?void 0:n.parentElement,a={priority:parseFloat(e.value)},void(r?s("priority",r,a):console.error("Could not update snippet information.",a,r));var e,n,r,a})),t.disabled=!1};for(t.s();!(e=t.n()).done;)n()}catch(e){t.e(e)}finally{t.f()}}(),document.querySelectorAll(".cloud-snippet-preview").forEach((function(e){e.addEventListener("click",(function(){var t,n,r=e.getAttribute("data-snippet"),a=e.getAttribute("data-lang"),i=document.getElementById("cloud-snippet-code-".concat(r)),s=document.getElementById("snippet-code-thickbox");s&&i&&((t=s.classList).remove.apply(t,function(e){if(Array.isArray(e))return d(e)}(n=s.classList)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s.classList.add("language-".concat(a)),s.textContent=i.value,"markup"===a&&(s.innerHTML="<xmp>".concat(i.value,"</xmp>")),"php"===a&&(i.value.startsWith("<?php")||(s.textContent="<?php\n".concat(i.value))),g().highlightElement(s))}))}))})()})();
  • code-snippets/tags/3.7.0-beta/js/components/ConditionModal/ConditionModalButton.tsx

    r3345197 r3348557  
    44import { isLicensed } from '../../utils/screen'
    55import { isCondition } from '../../utils/snippets/snippets'
     6import { Badge } from '../common/Badge'
    67import { Button } from '../common/Button'
    78import { useSnippetForm } from '../../hooks/useSnippetForm'
     
    1819
    1920    return (
    20         <div className={classnames('conditions-editor-open', hasCondition ? 'has-condition' : 'no-condition')}>
     21        <div className={classnames('conditions-editor-open block-form-field', hasCondition ? 'has-condition' : 'no-condition')}>
    2122            {isCondition(snippet) ? null
    2223                : <>
    23                     <h3>{__('Conditions', 'code-snippets')}</h3>
     24                    <h4>
     25                        {__('Conditions', 'code-snippets')}
     26                        <Badge name="beta" small>{__('beta', 'code-snippets')}</Badge>
     27                        {!isLicensed() && <Badge name="pro" small>{__('Pro', 'code-snippets')}</Badge>}
     28                    </h4>
    2429
    25                     <Button
    26                         large
    27                         primary={hasCondition}
    28                         disabled={isReadOnly}
    29                         onClick={() => setIsDialogOpen(true)}
    30                     >
    31                         <span className="dashicons dashicons-randomize"></span>
     30                    <Button large disabled={isReadOnly} onClick={() => setIsDialogOpen(true)}>
     31                        <Badge name="cond" small />
    3232                        {hasCondition
    33                             ? __('Conditions', 'code-snippets')
    34                             : __('Set Conditions', 'code-snippets')}
    35 
    36                         <span className="badge beta-badge small-badge">{__('beta', 'code-snippets')}</span>
    37                         {!isLicensed() && <span className="badge pro-badge small-badge">{__('Pro', 'code-snippets')}</span>}
     33                            ? __('Edit Conditions', 'code-snippets')
     34                            : __('Add Conditions', 'code-snippets')}
    3835                    </Button>
    3936                </>}
  • code-snippets/tags/3.7.0-beta/js/components/EditorSidebar/EditorSidebar.tsx

    r3345197 r3348557  
    44import { useSnippetForm } from '../../hooks/useSnippetForm'
    55import { isNetworkAdmin } from '../../utils/screen'
    6 import { getSnippetType, isCondition } from '../../utils/snippets/snippets'
     6import { isCondition } from '../../utils/snippets/snippets'
     7import { ConditionModalButton } from '../ConditionModal/ConditionModalButton'
     8import { SnippetLocationInput } from '../SnippetForm/fields/SnippetLocationInput'
     9import { SnippetTypeInput } from '../SnippetForm/fields/SnippetTypeInput'
    710import { Notices } from '../SnippetForm/page/Notices'
    811import { ShortcodeInfo } from './actions/ShortcodeInfo'
     
    1417import { PriorityInput } from './controls/PriorityInput'
    1518import { RTLControl } from './controls/RTLControl'
    16 import { TagsInput } from './controls/TagsInput'
     19import type { Dispatch, SetStateAction } from 'react'
    1720
    18 export const EditorSidebar = () => {
     21export interface EditorSidebarProps {
     22    setIsUpgradeDialogOpen: Dispatch<SetStateAction<boolean>>
     23}
     24
     25export const EditorSidebar: React.FC<EditorSidebarProps> = ({ setIsUpgradeDialogOpen }) => {
    1926    const { snippet, isWorking } = useSnippetForm()
    2027
    2128    return (
    2229        <div className="snippet-editor-sidebar">
     30            <SnippetTypeInput setIsUpgradeDialogOpen={setIsUpgradeDialogOpen} />
     31
    2332            <div className="box">
    2433                {snippet.id && !isCondition(snippet) ? <ActivationSwitch /> : null}
     
    2837                {isRTL() ? <RTLControl /> : null}
    2938
     39                <ConditionModalButton setIsDialogOpen={setIsUpgradeDialogOpen} />
     40                <SnippetLocationInput />
     41                <ShortcodeInfo />
    3042                <PriorityInput />
    3143
    32                 {window.CODE_SNIPPETS_EDIT?.tagOptions.enabled ? <TagsInput /> : null}
    33 
    3444                {snippet.id
    35                     ? <div className="row-actions visible">
     45                    ? <div className="row-actions visible inline-form-field">
    3646                        <ExportButtons />
    3747                        <DeleteButton />
     
    4555
    4656            <Notices />
    47 
    48             {'html' === getSnippetType(snippet) ? <ShortcodeInfo /> : null}
    4957        </div>
    5058    )
  • code-snippets/tags/3.7.0-beta/js/components/EditorSidebar/actions/ShortcodeInfo.tsx

    r3345197 r3348557  
    1 import React, { useState } from 'react'
    2 import { ExternalLink } from '@wordpress/components'
     1import  React, { useState } from 'react'
     2import { CheckboxControl, ExternalLink, Modal } from '@wordpress/components'
    33import { __ } from '@wordpress/i18n'
    44import { useSnippetForm } from '../../../hooks/useSnippetForm'
     5import { Button } from '../../common/Button'
    56import { CopyToClipboardButton } from '../../common/CopyToClipboardButton'
    6 import type { Dispatch, SetStateAction} from 'react'
     7import type { Dispatch, SetStateAction } from 'react'
    78
    89type ShortcodeAtts = Record<string, unknown>
     
    2526}
    2627
    27 const ShortcodeTag: React.FC<{ atts: ShortcodeAtts }> = ({ atts }) =>
    28     <p className="shortcode-tag-wrapper">
    29         <code className="shortcode-tag">{buildShortcodeTag(SHORTCODE_TAG, atts)}</code>
     28interface CheckboxListProps<T extends string> {
     29    options: T[]
     30    checked: Record<T, boolean>
     31    disabled: boolean
     32    setChecked: Dispatch<SetStateAction<Record<T, boolean>>>
     33    optionLabels: Partial<Record<T, string>>
     34    optionDescriptions: Partial<Record<T, string>>
     35}
    3036
    31         <CopyToClipboardButton
    32             title={__('Copy shortcode to clipboard', 'code-snippets')}
    33             text={buildShortcodeTag(SHORTCODE_TAG, atts)}
    34         />
     37const CheckboxList = <T extends string>({
     38    options,
     39    checked,
     40    disabled,
     41    setChecked,
     42    optionLabels,
     43    optionDescriptions
     44}: CheckboxListProps<T>) =>
     45    <ul>
     46        {options.map(option =>
     47            <li key={option}>
     48                <CheckboxControl
     49                    label={optionLabels[option]}
     50                    help={optionDescriptions[option]}
     51                    checked={checked[option]}
     52                    disabled={disabled}
     53                    onChange={value =>
     54                        setChecked(previous => ({ ...previous, [option]: value }))}
     55                />
     56            </li>)}
     57    </ul>
     58
     59const ShortcodeDescription = () =>
     60    <p className="description">
     61        {__('Copy the below shortcode to insert this snippet into a post, page, or other content.', 'code-snippets')}{'\n'}
     62        {__('You can also use the Classic Editor button, Block editor (Pro) or Elementor widget (Pro).', 'code-snippets')}{'\n'}
     63
     64        <ExternalLink
     65            href={__('https://codesnippets.pro/doc/inserting-content-snippets/', 'code-snippets')}
     66        >
     67            {__('Learn more', 'code-snippets')}
     68        </ExternalLink>
    3569    </p>
    3670
    37 interface ShortcodeOptionsProps {
    38     optionLabels: [keyof ShortcodeOptions, string][]
    39     options: ShortcodeOptions
    40     setOptions: Dispatch<SetStateAction<ShortcodeOptions>>
    41     isReadOnly: boolean
     71const OPTION_LABELS: Record<keyof ShortcodeOptions, string> = {
     72    php: __('Evaluate PHP code', 'code-snippets'),
     73    format: __('Add paragraphs and formatting', 'code-snippets'),
     74    shortcodes: __('Evaluate additional shortcode tags', 'code-snippets')
    4275}
    4376
    44 const ShortcodeOptions: React.FC<ShortcodeOptionsProps> = ({
    45     optionLabels,
    46     options,
    47     setOptions,
    48     isReadOnly
    49 }) =>
    50     <p className="html-shortcode-options">
    51         <h4>{__('Shortcode Options', 'code-snippets')}</h4>
    52         <ul>
    53             {optionLabels.map(([option, label]) =>
    54                 <li key={option}>
    55                     <label>
    56                         <input
    57                             type="checkbox"
    58                             value={option}
    59                             checked={options[option]}
    60                             disabled={isReadOnly}
    61                             onChange={event =>
    62                                 setOptions(previous => ({ ...previous, [option]: event.target.checked }))}
    63                         />
    64                         {` ${label}`}
    65                     </label>
    66                 </li>
    67             )}
    68         </ul>
    69     </p>
     77const OPTION_DESCRIPTIONS: Record<keyof ShortcodeOptions, string> = {
     78    php: __('Run code within <?php ?> tags.', 'code-snippets'),
     79    format: __('Wrap output in paragraphs and apply formatting.', 'code-snippets'),
     80    shortcodes: __('Replace [shortcodes] embedded within the snippet.', 'code-snippets')
     81}
    7082
    71 export const ShortcodeInfo: React.FC = () => {
     83const ModalContent = () => {
    7284    const { snippet, isReadOnly } = useSnippetForm()
     85
    7386    const [options, setOptions] = useState<ShortcodeOptions>(() => ({
    7487        php: snippet.code.includes('<?'),
     
    7790    }))
    7891
    79     return 'content' === snippet.scope
    80         ? <>
    81             <p className="description">
    82                 {__('There are multiple options for inserting this snippet into a post, page or other content.', 'code-snippets')}
    83                 {' '}
    84                 {snippet.id
    85                     ? __('You can copy the below shortcode, or use the Classic Editor button, Block editor (Pro) or Elementor widget (Pro).', 'code-snippets')
    86                     : __('After saving, you can copy a shortcode, or use the Classic Editor button, Block editor (Pro) or Elementor widget (Pro).', 'code-snippets')}
    87                 {' '}
    88                 <ExternalLink
    89                     href={__('https://help.codesnippets.pro/article/50-inserting-snippets', 'code-snippets')}
    90                 >
    91                     {__('Learn more', 'code-snippets')}
    92                 </ExternalLink>
     92    const shortcodeAtts: ShortcodeAtts = {
     93        id: snippet.id,
     94        network: snippet.network,
     95        ...options,
     96        name: snippet.name
     97    }
     98
     99    const shortcodeTag = buildShortcodeTag(SHORTCODE_TAG, shortcodeAtts)
     100
     101    return (
     102        <>
     103            <ShortcodeDescription />
     104
     105            <p className="shortcode-tag-wrapper">
     106                <code className="shortcode-tag">{shortcodeTag}</code>
     107                <CopyToClipboardButton primary text={shortcodeTag} />
    93108            </p>
    94109
    95             {snippet.id
    96                 ? <>
    97                     <ShortcodeTag atts={{
    98                         id: snippet.id,
    99                         network: snippet.network,
    100                         ...options
    101                     }} />
     110            <p>
     111                <h4>{__('Shortcode Options', 'code-snippets')}</h4>
    102112
    103                     <ShortcodeOptions
    104                         options={options}
    105                         setOptions={setOptions}
    106                         isReadOnly={isReadOnly}
    107                         optionLabels={[
    108                             ['php', __('Evaluate PHP code', 'code-snippets')],
    109                             ['format', __('Add paragraphs and formatting', 'code-snippets')],
    110                             ['shortcodes', __('Evaluate additional shortcode tags', 'code-snippets')]
    111                         ]}
    112                     />
    113                 </> : null}
    114         </> : null
     113                <CheckboxList
     114                    options={['php', 'format', 'shortcodes']}
     115                    checked={options}
     116                    disabled={isReadOnly}
     117                    setChecked={setOptions}
     118                    optionLabels={OPTION_LABELS}
     119                    optionDescriptions={OPTION_DESCRIPTIONS}
     120                />
     121            </p>
     122        </>
     123    )
    115124}
     125
     126export const ShortcodeInfo: React.FC = () => {
     127    const { snippet, isReadOnly } = useSnippetForm()
     128    const [isModalOpen, setIsModalOpen] = useState(false)
     129
     130    return 'content' === snippet.scope && snippet.id
     131        ? <div className="inline-form-field">
     132            <h4>{__('Shortcode', 'code-snippets')}</h4>
     133            <Button onClick={() => setIsModalOpen(true)} disabled={isReadOnly}>
     134                {__('See options', 'code-snippets')}
     135            </Button>
     136
     137            {isModalOpen
     138                ? <Modal
     139                    size="medium"
     140                    className="code-snippets-modal"
     141                    title={__('Embed Snippet with Shortcode', 'code-snippets')}
     142                    onRequestClose={() => setIsModalOpen(false)}
     143                >
     144                    <div className="modal-content">
     145                        <ModalContent />
     146                    </div>
     147
     148                    <div className="modal-footer">
     149                        <Button link large onClick={() => setIsModalOpen(false)}>
     150                            {__('Close Popup', 'code-snippets')}
     151                        </Button>
     152                    </div>
     153                </Modal>
     154                : null}
     155        </div>
     156        : null
     157}
  • code-snippets/tags/3.7.0-beta/js/components/EditorSidebar/controls/ActivationSwitch.tsx

    r3345197 r3348557  
    1010
    1111    return (
    12         <div>
    13             <h4>
    14                 <label htmlFor="activation-switch">
    15                     {__('Is Active', 'code-snippets')}
    16                 </label>
    17             </h4>
     12        <div className="inline-form-field activation-switch-container">
     13            <h4>{__('Status')}</h4>
    1814
    19             <input
    20                 id="activation-switch"
    21                 type="checkbox"
    22                 checked={snippet.active}
    23                 disabled={isWorking || !!snippet.shared_network}
    24                 className="switch"
    25                 title={snippet.active
    26                     ? __('Deactivate', 'code-snippets')
    27                     : __('Activate', 'code-snippets')}
    28                 onChange={() => {
    29                     submitSnippet(snippet.active
    30                         ? SubmitSnippetAction.SAVE_AND_DEACTIVATE
    31                         : SubmitSnippetAction.SAVE_AND_ACTIVATE)
    32                         .then(() => undefined)
    33                         .catch(handleUnknownError)
    34                 }}
    35             />
     15            <label>
     16                {snippet.active
     17                    ? __('Active', 'code-snippets')
     18                    : __('Inactive', 'code-snippets')}
     19
     20                <input
     21                    id="activation-switch"
     22                    type="checkbox"
     23                    checked={snippet.active}
     24                    disabled={isWorking || !!snippet.shared_network}
     25                    className="switch"
     26                    onChange={() => {
     27                        submitSnippet(snippet.active
     28                            ? SubmitSnippetAction.SAVE_AND_DEACTIVATE
     29                            : SubmitSnippetAction.SAVE_AND_ACTIVATE)
     30                            .then(() => undefined)
     31                            .catch(handleUnknownError)
     32                    }}
     33                />
     34            </label>
    3635        </div>
    3736    )
  • code-snippets/tags/3.7.0-beta/js/components/EditorSidebar/controls/PriorityInput.tsx

    r3345197 r3348557  
    11import React from 'react'
    2 import { __, _x } from '@wordpress/i18n'
     2import { __ } from '@wordpress/i18n'
    33import { useSnippetForm } from '../../../hooks/useSnippetForm'
    44import { Tooltip } from '../../common/Tooltip'
     
    88
    99    return (
    10         <div className="snippet-priority">
     10        <div className="snippet-priority inline-form-field">
    1111            <h4>
    1212                <label htmlFor="snippet-priority">
  • code-snippets/tags/3.7.0-beta/js/components/SnippetForm/SnippetForm.tsx

    r3345197 r3348557  
    1111import { ConfirmDialog } from '../common/ConfirmDialog'
    1212import { UpsellDialog } from '../common/UpsellDialog'
    13 import { ConditionModalButton } from '../ConditionModal/ConditionModalButton'
    1413import { EditorSidebar } from '../EditorSidebar'
    1514import { UpsellBanner } from '../common/UpsellBanner'
     15import { TagsEditor } from './fields/TagsEditor'
    1616import { CodeEditor } from './fields/CodeEditor'
    17 import { SnippetLocationInput } from './fields/SnippetLocationInput'
    18 import { SnippetTypeInput } from './fields/SnippetTypeInput'
    1917import { DescriptionEditor } from './fields/DescriptionEditor'
    2018import { NameInput } from './fields/NameInput'
     
    162160                <main className="snippet-form-upper">
    163161                    <NameInput />
    164 
    165                     {!isCondition(snippet) || 0 === snippet.id
    166                         ? <div className="above-editor-container">
    167                             <SnippetTypeInput setIsUpgradeDialogOpen={setIsUpgradeDialogOpen} />
    168                             <SnippetLocationInput />
    169                             <ConditionModalButton setIsDialogOpen={setIsUpgradeDialogOpen} />
    170                         </div>
    171                         : null}
    172 
    173162                    <CodeEditor {...{ isExpanded, setIsExpanded }} />
    174163                    <ConditionsEditor />
     
    178167                    <UpsellBanner />
    179168                    <DescriptionEditor />
     169                    <TagsEditor />
    180170                </div>
    181171
    182                 <EditorSidebar />
     172                <EditorSidebar setIsUpgradeDialogOpen={setIsUpgradeDialogOpen} />
    183173            </EditForm>
    184174
  • code-snippets/tags/3.7.0-beta/js/components/SnippetForm/fields/CodeEditor.tsx

    r3345197 r3348557  
    8585                <Button small className="expand-editor-button" onClick={() => setIsExpanded(current => !current)}>
    8686                    {isExpanded ? <MinimiseIcon /> : <ExpandIcon />}
    87                     {isExpanded ? __('Minimise', 'code-snippets') : __('Expand', 'code-snippets')}
     87                    {isExpanded ? __('Minimize', 'code-snippets') : __('Expand', 'code-snippets')}
    8888                </Button>
    8989            </div>
  • code-snippets/tags/3.7.0-beta/js/components/SnippetForm/fields/SnippetLocationInput.tsx

    r3345197 r3348557  
    2727    'front-end': __('Only run on site front-end', 'code-snippets'),
    2828    'single-use': __('Only run once', 'code-snippets'),
    29     'content': __('Where inserted into a post or page', 'code-snippets'),
     29    'content': __('Where inserted in editor', 'code-snippets'),
    3030    'head-content': __('In site <head> section', 'code-snippets'),
    3131    'footer-content': __('In site footer (end of <body>)', 'code-snippets'),
     
    4747        }))
    4848
    49     return (
    50         <div className="snippet-location-container">
    51             {isCondition(snippet) ? null
    52                 : <>
    53                     <h3><label htmlFor="snippet-location">{__('Snippet Location', 'code-snippets')}</label></h3>
    54                     <Select
    55                         id="snippet-location"
    56                         className="code-snippets-select"
    57                         options={options}
    58                         isDisabled={isReadOnly}
    59                         styles={{
    60                             menu: provided => ({ ...provided, zIndex: 9999 }),
    61                             input: provided => ({ ...provided, ':focus': { boxShadow: 'none' } })
    62                         }}
    63                         value={options.find(option => option.value === snippet.scope)}
    64                         formatOptionLabel={({ label, value }) =>
    65                             <>
    66                                 <span className={`dashicons dashicons-${SCOPE_ICONS[value]}`}></span>{` ${label}`}
    67                             </>
    68                         }
    69                         onChange={option =>
    70                             option?.value && setSnippet(previous => ({ ...previous, scope: option.value }))}
    71                     />
    72                 </>}
     49    return isCondition(snippet)
     50        ? null
     51        : <div className="block-form-field">
     52            <h4><label htmlFor="snippet-location">{__('Location', 'code-snippets')}</label></h4>
     53            <Select
     54                inputId="snippet-location"
     55                className="code-snippets-select"
     56                options={options}
     57                isDisabled={isReadOnly}
     58                styles={{
     59                    menu: provided => ({ ...provided, zIndex: 9999 }),
     60                    input: provided => ({ ...provided, ':focus': { boxShadow: 'none' } })
     61                }}
     62                value={options.find(option => option.value === snippet.scope)}
     63                formatOptionLabel={({ label, value }) =>
     64                    <>
     65                        <span className={`dashicons dashicons-${SCOPE_ICONS[value]}`}></span>{` ${label}`}
     66                    </>
     67                }
     68                onChange={option =>
     69                    option?.value && setSnippet(previous => ({ ...previous, scope: option.value }))}
     70            />
    7371        </div>
    74     )
    7572}
  • code-snippets/tags/3.7.0-beta/js/components/SnippetForm/fields/SnippetTypeInput.tsx

    r3345197 r3348557  
    6262    return (
    6363        <div className="snippet-type-container">
    64             <label htmlFor="snippet-type-select-input">
    65                 <h3>{__('Snippet Type', 'code-snippets')}</h3>
     64            <label htmlFor="snippet-type-select-input" className="screen-reader-text">
     65                {__('Snippet Type', 'code-snippets')}
    6666            </label>
    6767            <Select
  • code-snippets/tags/3.7.0-beta/js/components/SnippetForm/page/Notices.tsx

    r3345197 r3348557  
     1import { createInterpolateElement } from '@wordpress/element'
    12import React from 'react'
    23import { __, sprintf } from '@wordpress/i18n'
     
    1011        {currentNotice
    1112            ? <DismissibleNotice className={currentNotice[0]} onDismiss={() => setCurrentNotice(undefined)}>
    12                 <p>{currentNotice[1]}</p>
     13                <p>{createInterpolateElement(currentNotice[1], { strong: <strong /> })}</p>
    1314            </DismissibleNotice>
    1415            : null}
  • code-snippets/tags/3.7.0-beta/js/components/common/Badge.tsx

    r3345197 r3348557  
    11import React from 'react'
    22import classnames from 'classnames'
     3import type { ReactNode } from 'react'
    34import type { SnippetType } from '../../types/Snippet'
    45
    5 export type BadgeName = SnippetType | 'core' | 'pro' | 'ai' | 'cloud' | 'bundles' | 'cloud_search'
     6export type BadgeName = SnippetType | 'core' | 'pro' | 'ai' | 'cloud' | 'bundles' | 'cloud_search' | 'beta'
    67
    78const badgeIcons: Partial<Record<BadgeName, string>> = {
     
    1617    small?: boolean
    1718    inverted?: boolean
    18     content?: boolean
     19    children?: ReactNode
    1920}
    2021
    21 export const Badge: React.FC<BadgeProps> = ({ name, small, inverted }) =>
     22export const Badge: React.FC<BadgeProps> = ({ name, small, inverted, children }) =>
    2223    <span className={classnames('badge', `${name}-badge`, { 'small-badge': small, 'inverted-badge': inverted })}>
    2324        {badgeIcons[name]
    2425            ? <span className={`dashicons dashicons-${badgeIcons[name]}`} />
    25             : name}
     26            : children ?? name}
    2627    </span>
  • code-snippets/tags/3.7.0-beta/js/components/common/CopyToClipboardButton.tsx

    r3345197 r3348557  
     1import { Spinner } from '@wordpress/components'
     2import { __ } from '@wordpress/i18n'
    13import React, { useState } from 'react'
    2 import { handleUnknownError } from '../../utils/errors'
    3 import type { HTMLAttributes, MouseEventHandler } from 'react'
     4import { Button } from './Button'
     5import { CopyIcon } from './icons/CopyIcon'
     6import type { ButtonProps } from './Button'
    47
    5 const TIMEOUT = 3000
     8const TIMEOUT = 1500
    69
    7 export interface CopyToClipboardButtonProps extends HTMLAttributes<HTMLAnchorElement> {
     10enum Status {
     11    INITIAL,
     12    PROGRESSING,
     13    SUCCESS,
     14    ERROR
     15}
     16
     17interface StatusIconProps {
     18    status: Status
     19}
     20
     21const StatusIcon: React.FC<StatusIconProps> = ({ status }) => {
     22    switch (status) {
     23        case Status.INITIAL:
     24            return <CopyIcon />
     25        case Status.PROGRESSING:
     26            return <span className="spinner-wrapper"><Spinner /></span>
     27        case Status.SUCCESS:
     28            return <span className="dashicons dashicons-yes"></span>
     29        case Status.ERROR:
     30            return <span className="dashicons dashicons-warning"></span>
     31    }
     32}
     33
     34export interface CopyToClipboardButtonProps extends ButtonProps {
    835    text: string
    9     copyIcon?: string
    10     successIcon?: string
    1136    timeout?: number
    1237}
     
    1439export const CopyToClipboardButton: React.FC<CopyToClipboardButtonProps> = ({
    1540    text,
    16     copyIcon = 'clipboard',
    17     successIcon = 'yes',
     41    timeout = TIMEOUT,
    1842    ...props
    1943}) => {
    20     const [isSuccess, setIsSuccess] = useState(false)
     44    const [status, setStatus] = useState(Status.INITIAL)
    2145    const clipboard = window.navigator.clipboard as Clipboard | undefined
    2246
    23     const clickHandler: MouseEventHandler<HTMLAnchorElement> = event => {
    24         event.preventDefault()
     47    const handleClick = () => {
     48        setStatus(Status.PROGRESSING)
    2549
    2650        clipboard?.writeText(text)
    2751            .then(() => {
    28                 setIsSuccess(true)
    29                 setTimeout(() => setIsSuccess(false), TIMEOUT)
     52                setStatus(Status.SUCCESS)
     53                setTimeout(() => setStatus(Status.INITIAL), timeout)
    3054            })
    31             .catch(handleUnknownError)
     55            .catch((error: unknown) => {
     56                console.error('Failed to copy text to clipboard.', error)
     57                setStatus(Status.ERROR)
     58            })
    3259    }
    3360
    34     return clipboard
    35         ? <a
    36             href="#"
    37             className={`code-snippets-copy-text dashicons dashicons-${isSuccess ? successIcon : copyIcon}`}
    38             onClick={clickHandler}
     61    return clipboard && window.isSecureContext
     62        ? <Button
     63            className="code-snippets-copy-text"
     64            onClick={handleClick}
    3965            {...props}
    40         ></a>
     66        >
     67            <StatusIcon status={status} />
     68            {__('Copy', 'code-snippets')}
     69        </Button>
    4170        : null
    4271}
  • code-snippets/tags/3.7.0-beta/js/components/common/UpsellBanner.tsx

    r3345197 r3348557  
    11import { ExternalLink } from '@wordpress/components'
     2import { createInterpolateElement } from '@wordpress/element'
    23import { __ } from '@wordpress/i18n'
    34import React, { useState } from 'react'
     
    1718            />
    1819            <p>
    19                 {__('Unlock ', 'code-snippets')}
    20                 <strong>{__('cloud sync, snippet conditions, AI features', 'code-snippets')}</strong>
    21                 {__(' and much more with Code Snippets Pro.', 'code-snippets')}
     20                {createInterpolateElement(
     21                    __('Unlock <strong>cloud sync, snippet conditions, AI features</strong> and much more with Code Snippets Pro.', 'code-snippets'),
     22                    { strong: <strong /> }
     23                )}
    2224            </p>
    2325
  • code-snippets/tags/3.7.0-beta/js/components/common/UpsellDialog.tsx

    r3345197 r3348557  
     1import { createInterpolateElement } from '@wordpress/element'
    12import React from 'react'
    23import { __ } from '@wordpress/i18n'
     
    2425
    2526            <h1>
    26                 {__('Unlock all cloud sync features and many more, with ', 'code-snippets')}
    27                 <span>{__('Code Snippets Pro', 'code-snippets')}</span>
     27                {createInterpolateElement(
     28                    __('Unlock all cloud sync features and many more, with <span>Code Snippets Pro</span>', 'code-snippets'),
     29                    { span: <span /> }
     30                )}
    2831            </h1>
    2932
    3033            <p>
    31                 {__('With Code Snippets Pro you can ', 'code-snippets')}
    32                 <strong>{__('connect your WordPress sites', 'code-snippets')}</strong>
    33                 {__(' to the code snippets cloud platform and be able to ', 'code-snippets')}
    34                 <strong>{__('backup, synchronise, collaborate, and deploy', 'code-snippets')}</strong>
    35                 {__(' your snippets from one central location.', 'code-snippets')}
     34                {createInterpolateElement(
     35                    __('With Code Snippets Pro you can connect your WordPress sites to the code snippets cloud platform and be able to <strong>backup, synchronise, collaborate, and deploy</strong> your snippets from one central location.', 'code-snippets'),
     36                    { strong: <strong /> }
     37                )}
    3638            </p>
    3739
  • code-snippets/tags/3.7.0-beta/js/hooks/useSubmitSnippet.ts

    r3345197 r3348557  
    1111    addNew: __('Add New Snippet', 'code-snippets'),
    1212    edit: __('Edit Snippet', 'code-snippets'),
    13     created: __('Snippet created.', 'code-snippets'),
    14     updated: __('Snippet updated.', 'code-snippets'),
    15     createdActivated: __('Snippet created and activated.', 'code-snippets'),
    16     updatedActivated: __('Snippet updated and activated.', 'code-snippets'),
    17     updatedDeactivated: __('Snippet updated and deactivated'),
    18     updatedExecuted: __('Snippet updated and executed.', 'code-snippets'),
     13    created: __('Snippet <strong>created</strong>.', 'code-snippets'),
     14    updated: __('Snippet <strong>updated</strong>.', 'code-snippets'),
     15    createdActivated: __('Snippet <strong>created</strong> and <strong>activated</strong>.', 'code-snippets'),
     16    updatedActivated: __('Snippet <strong>updated</strong> and <strong>activated</strong>.', 'code-snippets'),
     17    updatedDeactivated: __('Snippet <strong>updated</strong> and <strong>deactivated</strong>'),
     18    updatedExecuted: __('Snippet <strong>updated</strong> and <strong>executed</strong>.', 'code-snippets'),
    1919    failedCreate: __('Could not create snippet.', 'code-snippets'),
    2020    failedUpdate: __('Could not update snippet.', 'code-snippets')
    2121}
    2222
     23const conditionCreated = __('Condition <strong>created</strong>.', 'code-snippets')
     24const conditionUpdated = __('Condition <strong>updated</strong>.', 'code-snippets')
     25
    2326const conditionMessages: typeof snippetMessages = {
    2427    addNew: __('Add New Condition', 'code-snippets'),
    2528    edit: __('Edit Condition', 'code-snippets'),
    26     created: __('Condition created.', 'code-snippets'),
    27     updated: __('Condition updated.', 'code-snippets'),
    28     createdActivated: __('Condition created and activated', 'code-snippets'),
    29     updatedActivated: __('Condition updated and activated.', 'code-snippets'),
    30     updatedDeactivated: __('Condition updated and deactivated'),
    31     updatedExecuted: snippetMessages.updatedExecuted,
     29    created: conditionCreated,
     30    updated: conditionUpdated,
     31    createdActivated: conditionCreated,
     32    updatedActivated: conditionUpdated,
     33    updatedDeactivated: conditionUpdated,
     34    updatedExecuted: conditionUpdated,
    3235    failedCreate: __('Could not create condition.', 'code-snippets'),
    3336    failedUpdate: __('Could not update condition.', 'code-snippets')
  • code-snippets/tags/3.7.0-beta/js/services/manage/requests.ts

    r3345197 r3348557  
    11import { isNetworkAdmin } from '../../utils/screen'
     2import type { SnippetSchema } from '../../types/schema/SnippetSchema'
    23import type { Snippet, SnippetScope } from '../../types/Snippet'
    34
     
    4344    }
    4445
    45     snippet.id = parseInt(columnId.textContent, 10)
    46     snippet.shared_network = null !== /\bshared-network-snippet\b/.exec(row.className)
    47     snippet.network = snippet.shared_network || isNetworkAdmin()
    48     snippet.scope = <SnippetScope | null> row.getAttribute('data-snippet-scope') ?? snippet.scope
     46    const updatedSnippet: Partial<SnippetSchema> = {
     47        id: parseInt(columnId.textContent, 10),
     48        shared_network: null !== /\bshared-network-snippet\b/.exec(row.className),
     49        network: snippet.shared_network ?? isNetworkAdmin(),
     50        scope: <SnippetScope | null> row.getAttribute('data-snippet-scope') ?? snippet.scope,
     51        ...snippet
     52    }
    4953
    50     const queryString = `action=update_code_snippet&_ajax_nonce=${nonce.value}&field=${field}&snippet=${JSON.stringify(snippet)}`
     54    const queryString = `action=update_code_snippet&_ajax_nonce=${nonce.value}&field=${field}&snippet=${JSON.stringify(updatedSnippet)}`
    5155    sendSnippetRequest(queryString, successCallback)
    5256}
  • code-snippets/tags/3.7.0-beta/js/utils/snippets/api.ts

    r3345197 r3348557  
    5959
    6060    create: snippet =>
    61         post<SnippetSchema, WritableSnippetSchema>(REST_SNIPPETS_BASE, mapToSchema(snippet))
     61        post<SnippetSchema>(REST_SNIPPETS_BASE, mapToSchema(snippet))
    6262            .then(createSnippetObject),
    6363
    6464    update: snippet =>
    65         post<SnippetSchema, WritableSnippetSchema>(snippet.id ? buildURL(snippet) : REST_SNIPPETS_BASE, mapToSchema(snippet))
     65        post<SnippetSchema>(snippet.id ? buildURL(snippet) : REST_SNIPPETS_BASE, mapToSchema(snippet))
    6666            .then(createSnippetObject),
    6767
  • code-snippets/tags/3.7.0-beta/php/admin-menus/class-edit-menu.php

    r3345197 r3348557  
    1313     * Handle for JavaScript asset file.
    1414     */
    15     const JS_HANDLE = 'code-snippets-edit-menu';
     15    public const JS_HANDLE = 'code-snippets-edit-menu';
    1616
    1717    /**
    1818     * Handle for CSS asset file.
    1919     */
    20     const CSS_HANDLE = 'code-snippets-edit';
     20    public const CSS_HANDLE = 'code-snippets-edit';
    2121
    2222    /**
     
    178178                'wp-url',
    179179                'wp-i18n',
     180                'wp-element',
    180181                'wp-components',
    181182            ],
  • code-snippets/tags/3.7.0-beta/php/admin-menus/class-manage-menu.php

    r3345197 r3348557  
    5252        add_action( 'admin_menu', array( $this, 'register_upgrade_menu' ), 500 );
    5353        add_filter( 'set-screen-option', array( $this, 'save_screen_option' ), 10, 3 );
     54        add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_menu_css' ] );
    5455        add_action( 'wp_ajax_update_code_snippet', array( $this, 'ajax_callback' ) );
    5556    }
     
    5960     */
    6061    public function register() {
    61         $icon_xml = '<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024"><path fill="transparent" d="M191.968 464.224H350.88c23.68 0 42.656 19.2 42.656 42.656 0 11.488-4.48 21.984-11.968 29.632l.192.448-108.768 108.736c-75.104 75.136-75.104 196.512 0 271.584 74.88 74.848 196.448 74.848 271.552 0 74.88-75.104 74.88-196.48 0-271.584-21.76-21.504-47.36-37.12-74.464-46.272l28.608-28.576h365.248c87.04 0 157.856-74.016 159.968-166.4 0-1.472.224-2.752 0-4.256-2.112-23.904-22.368-42.656-46.912-42.656h-264.96L903.36 166.208c17.504-17.504 18.56-45.024 3.2-63.36-1.024-1.28-2.08-2.144-3.2-3.2-66.528-63.552-169.152-65.92-230.56-4.48L410.432 357.536h-46.528c12.8-25.6 20.032-54.624 20.032-85.344 0-106.016-85.952-192-192-192-106.016 0-191.968 85.984-191.968 192 .032 106.08 85.984 192.032 192 192.032zm85.344-191.968c0 47.136-38.176 85.344-85.344 85.344-47.136 0-85.312-38.176-85.312-85.344s38.176-85.344 85.312-85.344c47.168 0 85.344 38.208 85.344 85.344zm191.776 449.056c33.28 33.248 33.28 87.264 0 120.512-33.28 33.472-87.264 33.472-120.736 0-33.28-33.248-33.28-87.264 0-120.512 33.472-33.504 87.456-33.504 120.736 0z"/></svg>';
    62         // phpcs:disable WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode
    63         $encoded_icon = base64_encode( $icon_xml );
    64 
    65         // Register the top-level menu.
    6662        add_menu_page(
    6763            __( 'Snippets', 'code-snippets' ),
     
    7066            code_snippets()->get_menu_slug(),
    7167            array( $this, 'render' ),
    72             "data:image/svg+xml;base64,$encoded_icon",
     68            'none', // Added through CSS as a mask to prevent loading 'blinking'.
    7369            apply_filters( 'code_snippets/admin/menu_position', is_network_admin() ? 21 : 67 )
    7470        );
     
    105101
    106102        add_action( "load-$hook", [ $this, 'load_upgrade_menu' ] );
    107         add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_menu_button_css' ] );
    108     }
    109 
    110     /**
    111      * Print CSS required for the upgrade button.
    112      *
    113      * @return void
    114      */
    115     public function enqueue_menu_button_css() {
     103    }
     104
     105    /**
     106     * Print CSS required for the admin menu icon.
     107     *
     108     * @return void
     109     */
     110    public function enqueue_menu_css() {
    116111        wp_enqueue_style(
    117             'code-snippets-menu-button',
    118             plugins_url( 'dist/menu-button.css', PLUGIN_FILE ),
     112            'code-snippets-menu',
     113            plugins_url( 'dist/menu.css', PLUGIN_FILE ),
    119114            [],
    120115            PLUGIN_VERSION
  • code-snippets/tags/3.7.0-beta/php/admin-menus/class-settings-menu.php

    r3345197 r3348557  
    1818     * Settings page name as registered with the Settings API.
    1919     */
    20     const SETTINGS_PAGE = 'code-snippets';
     20    public const SETTINGS_PAGE = 'code-snippets';
    2121
    2222    /**
  • code-snippets/tags/3.7.0-beta/php/class-data-item.php

    r3345197 r3348557  
    227227     *
    228228     * @return bool true if the field was set successfully, false if the field name is invalid.
     229     *
     230     * @noinspection PhpDocMissingThrowsInspection
    229231     */
    230232    public function set_field( string $field, $value ): bool {
     
    233235        }
    234236
     237        /**
     238         * Above is_allowed_field check should bypass exception.
     239         *
     240         * @noinspection PhpUnhandledExceptionInspection
     241         */
    235242        $this->__set( $field, $value );
    236243
  • code-snippets/tags/3.7.0-beta/php/class-db.php

    r3345197 r3348557  
    1313     * Unprefixed site-wide table name.
    1414     */
    15     const TABLE_NAME = 'snippets';
     15    public const TABLE_NAME = 'snippets';
    1616
    1717    /**
    1818     * Unprefixed network-wide table name.
    1919     */
    20     const MS_TABLE_NAME = 'ms_snippets';
     20    public const MS_TABLE_NAME = 'ms_snippets';
    2121
    2222    /**
  • code-snippets/tags/3.7.0-beta/php/class-list-table.php

    r3345197 r3348557  
    122122     * @return bool
    123123     */
    124     protected function is_condition_active( Snippet $condition ) {
     124    protected function is_condition_active( Snippet $condition ): bool {
    125125        return $condition->is_condition()
    126126               && isset( $this->active_by_condition[ $condition->id ] )
  • code-snippets/tags/3.7.0-beta/php/class-plugin.php

    r3345197 r3348557  
    44
    55use Code_Snippets\Cloud\Cloud_API;
    6 use Code_Snippets\REST_API\Cloud_REST_API;
    7 use Code_Snippets\REST_API\Conditions_REST_API;
    86use Code_Snippets\REST_API\Snippets_REST_Controller;
    97use Evaluation\Evaluate_Content;
     
    4341     * @var Evaluate_Functions
    4442     */
    45     public $evaluate_functions;
     43    public Evaluate_Functions $evaluate_functions;
    4644
    4745    /**
     
    5048     * @var Evaluate_Content
    5149     */
    52     public $evaluate_content;
     50    public Evaluate_Content $evaluate_content;
    5351
    5452    /**
  • code-snippets/tags/3.7.0-beta/php/class-snippet.php

    r3345197 r3348557  
    4444     * MySQL datetime format (YYYY-MM-DD hh:mm:ss).
    4545     */
    46     const DATE_FORMAT = 'Y-m-d H:i:s';
     46    public const DATE_FORMAT = 'Y-m-d H:i:s';
    4747
    4848    /**
    4949     * Default value used for a datetime variable.
    5050     */
    51     const DEFAULT_DATE = '0000-00-00 00:00:00';
     51    public const DEFAULT_DATE = '0000-00-00 00:00:00';
    5252
    5353    /**
  • code-snippets/tags/3.7.0-beta/php/cloud/class-cloud-api.php

    r3345197 r3348557  
    55use Code_Snippets\Snippet;
    66use WP_Error;
    7 use function Code_Snippets\code_snippets;
    87use function Code_Snippets\get_snippet_by_cloud_id;
    98use function Code_Snippets\get_snippets;
     
    7170     *
    7271     * @return string
     72     *
     73     * @noinspection PhpUndefinedConstantInspection
    7374     */
    7475    public static function get_cloud_url(): string {
     
    8283     *
    8384     * @return string
     85     *
     86     * @noinspection PhpUndefinedConstantInspection
    8487     */
    8588    public static function get_cloud_api_url(): string {
  • code-snippets/tags/3.7.0-beta/php/cloud/list-table-shared-ops.php

    r3345197 r3348557  
    3131 * Process the download snippet action
    3232 *
    33  * @param string $action         Action - 'download' or 'update'.
    34  * @param string $source         Source - 'search' or 'cloud'.
    35  * @param string $snippet        Snippet ID.
    36  * @param int    $codevault_page The current page of the codevault.
     33 * @param string $action  Action - 'download' or 'update'.
     34 * @param string $source  Source - 'search' or 'cloud'.
     35 * @param string $snippet Snippet ID.
    3736 *
    3837 * @return void
    3938 */
    40 function cloud_lts_process_download_action( string $action, string $source, string $snippet, int $codevault_page = 0 ) {
     39function cloud_lts_process_download_action( string $action, string $source, string $snippet ) {
    4140    if ( 'download' === $action || 'update' === $action ) {
    42         $result = code_snippets()->cloud_api->download_or_update_snippet( $snippet, $source, $action, $codevault_page );
     41        $result = code_snippets()->cloud_api->download_or_update_snippet( $snippet, $source, $action );
    4342
    4443        if ( $result['success'] ) {
  • code-snippets/tags/3.7.0-beta/php/evaluation/class-evaluate-functions.php

    r3345197 r3348557  
    6767     *
    6868     * @return bool
     69     *
     70     * @noinspection PhpUndefinedConstantInspection
    6971     */
    7072    public function is_safe_mode_active(): bool {
  • code-snippets/tags/3.7.0-beta/php/front-end/class-front-end.php

    r3345197 r3348557  
    1717     * Name of the shortcode tag for rendering the code source
    1818     */
    19     const SOURCE_SHORTCODE = 'code_snippet_source';
     19    public const SOURCE_SHORTCODE = 'code_snippet_source';
    2020
    2121    /**
    2222     * Name of the shortcode tag for rendering content snippets
    2323     */
    24     const CONTENT_SHORTCODE = 'code_snippet';
     24    public const CONTENT_SHORTCODE = 'code_snippet';
    2525
    2626    /**
    2727     * Handle to use for front-end scripts and styles.
    2828     */
    29     const PRISM_HANDLE = 'code-snippets-prism';
    30 
    31     /**
    32      * Maximum depth for shortcode recursion.
    33      */
    34     const MAX_SHORTCODE_DEPTH = 5;
     29    public const PRISM_HANDLE = 'code-snippets-prism';
    3530
    3631    /**
     
    255250
    256251        ob_start();
    257         eval( "?>\n\n" . $snippet->code . "\n\n<?php" );
     252        eval( "?>\n\n" . $snippet->code );
    258253
    259254        return ob_get_clean();
  • code-snippets/tags/3.7.0-beta/php/rest-api/class-snippets-rest-controller.php

    r3345197 r3348557  
    1717use function Code_Snippets\get_snippets;
    1818use function Code_Snippets\save_snippet;
    19 use function Code_Snippets\update_snippet_fields;
    2019use const Code_Snippets\REST_API_NAMESPACE;
    2120
     
    3130     * Current API version.
    3231     */
    33     const VERSION = 1;
     32    public const VERSION = 1;
    3433
    3534    /**
    3635     * The base of this controller's route.
    3736     */
    38     const BASE_ROUTE = 'snippets';
     37    public const BASE_ROUTE = 'snippets';
    3938
    4039    /**
  • code-snippets/tags/3.7.0-beta/php/snippet-ops.php

    r3345197 r3348557  
    88namespace Code_Snippets;
    99
    10 use Code_Snippets\REST_API\Snippets_REST_Controller;
    1110use ParseError;
    1211use function Code_Snippets\Settings\get_self_option;
     
    582581 */
    583582function execute_snippet( string $code, int $id = 0, bool $force = false ) {
     583    /**
     584     * Do not continue if safe mode is active.
     585     *
     586     * @noinspection PhpUndefinedConstantInspection
     587     */
    584588    if ( empty( $code ) || ( ! $force && defined( 'CODE_SNIPPETS_SAFE_MODE' ) && CODE_SNIPPETS_SAFE_MODE ) ) {
    585589        return false;
  • code-snippets/tags/3.7.0-beta/php/views/manage.php

    r3345197 r3348557  
    2727    echo '<div class="notice beta-test-notice"><p id="beta-testing">';
    2828    echo wp_kses(
    29         __( 'Thank you for testing this <span class="highlight-yellow">beta version of Code Snippets</span>. We would love to hear your feedback.', 'code-snippets' ),
     29        __( 'Thank you for testing this <span class="highlight-yellow">beta version of Code Snippets</span>. We would love to hear your thoughts.', 'code-snippets' ),
    3030        [ 'span' => [ 'class' => [ 'highlight-yellow' ] ] ]
    3131    );
    3232
    3333    printf(
    34         ' <a href="%s">%s</a>',
    35         esc_url( __( 'mailto:[email protected]?subject=Code Snippet Beta Test Feedback', 'code-snippets' ) ),
    36         esc_html__( 'Please let us know!', 'code-snippets' )
     34        ' <a href="%s" class="button button-secondary" target="_blank">%s</a>',
     35        esc_url( __( 'https://codesnippets.pro/beta-testing/feedback/', 'code-snippets' ) ),
     36        esc_html__( 'Share feedback', 'code-snippets' )
    3737    );
    3838    echo '</p></div>';
  • code-snippets/tags/3.7.0-beta/php/views/partials/list-table-notices.php

    r3345197 r3348557  
    1515 */
    1616
     17/**
     18 * Constant existence is checked with defined().
     19 *
     20 * @noinspection PhpUndefinedConstantInspection
     21 */
    1722if ( defined( 'CODE_SNIPPETS_SAFE_MODE' ) && CODE_SNIPPETS_SAFE_MODE ) {
    1823    ?>
  • code-snippets/tags/3.7.0-beta/readme.txt

    r3345197 r3348557  
    55License: GPL-2.0-or-later
    66License URI: license.txt
    7 Stable tag: 3.7.0-beta.5
     7Stable tag: 3.7.0-beta.7
    88Tested up to: 6.8.2
    99
     
    107107= 3.7.0 (beta release) =
    108108
    109 ### Added
     109__Added__
     110
    110111* New 'conditions' feature: control where and when snippets execute with a powerful logic builder. (PRO)
    111112
    112 ### Changed
     113__Changed__
     114
    113115* Redesigned edit menu with refreshed look and functionality.
    114 
    115 ### Fixed
     116* Updated snippet type badges to be more visually distinct.
     117* Redesigned tooltips used throughout the plugin.
     118* Moved content snippet shortcode options into separate modal window.
     119* Updated snippet tag editor to use built-in WordPress tag editor.
     120* Created proper form for sharing beta feedback.
     121* Improved UX of snippet activation toggle.
     122
     123__Fixed__
     124
    116125* Fetching active snippets on a multisite network now respects the 'priority' field above all else when ordering snippets.
    117126* Cloud search appears correctly and allows downloading snippets in the free version of Code Snippets.
     127* Improved performance of loading admin menu icon.
    118128
    119129= 3.6.9 (2025-02-17) =
    120130
    121131__Changed__
     132
    122133* Updated `Cloud_API::get_bundles()` to properly check bundle data and return an empty array if no valid bundles are present.
    123134* Refactored `Cloud_List_Table::fetch_snippets()` to always return a valid `Cloud_Snippets` instance.
     
    125136
    126137__Fixed__
     138
    127139* Fixed errors in bundle iteration by adding a check for the bundles array before iterating.
    128140
     
    130142
    131143__Added__
     144
    132145* `code_snippets/hide_welcome_banner` filter hook for hiding welcome banner in dashboard.
    133146
    134147__Changed__
     148
    135149* Updated Freemius SDK to the latest version. (PRO)
    136150
    137151__Removed__
     152
    138153* Functionality allowing `[code_snippet]` shortcodes to be embedded recursively – it will be re-added in a future version.
    139154
    140155__Fixed__
     156
    141157* Shortcodes embedded within `[code_snippet]` shortcodes not evaluating correctly.
    142158* Translation functions being called too early in some instances when loading plugin settings.
     
    148164
    149165__Added__
     166
    150167* Generated snippet shortcode tags will include the snippet name, for easier identification.
    151168* Admin notices will dismiss automatically after five seconds. ([#208](https://github.com/codesnippetspro/code-snippets/issues/208))
    152169
    153170__Changed__
     171
    154172* Updated CSS to use latest Sass features.
    155173* Moved theme selector to just above editor preview on settings page (thanks to brandonjp). ([#206](https://github.com/codesnippetspro/code-snippets/issues/206))
     
    157175
    158176__Fixed__
     177
    159178* Save buttons above editor did not follow usual validation process in Pro. (PRO) ([#197](https://github.com/codesnippetspro/code-snippets/issues/197))
    160179* Minor inconsistencies in consistent UI elements between Core and Pro.
     
    302321* Error when attempting to update network shared snippets after saving. [[#](https://wordpress.org/support/topic/activating-snippets-breaks-on-wordpress-6-3/)]
    303322
    304 = 3.4.2 (2023-07-05) =
    305 
    306 __Fixed__
    307 
    308 * Issue causing export process to fail with fatal error. [[#](https://wordpress.org/support/topic/critical-error-on-exporting-snippets/)]
    309 * Type issue on `the_posts` filter when no posts available. [[#](https://wordpress.org/support/topic/collision-with-plugin-xml-sitemap-google-news/)]
    310 
    311 = 3.4.1 (2023-06-29) =
    312 
    313 __Added__
    314 
    315 * Added better debugging when calling REST API methods from the edit menu.
    316 
    317 __Changed__
    318 
    319 * Escape special characters when sending snippet code through AJAX to avoid false-positives from security modules. [[#](https://wordpress.org/support/topic/latest-3-4-0-ajax-bug-cannot-save-snippets-403-error/)]
    320 * Only display the latest update or error notice on the edit page, instead of allowing them to stack.
    321 
    322 __Fixed__
    323 
    324 * Undefined array key error. [[#](https://wordpress.org/support/topic/after-updating-occasionally-getting-undefined-array-key-query/)]
    325 * Potential type issue when loading Prism. [[#](https://wordpress.org/support/topic/code-snippets-fatal-error-breaking-xml-sitemaps/)]
    326 * Potential type issue when sorting snippets. [[#](https://github.com/codesnippetspro/code-snippets/issues/166)]
    327 * Issue preventing asset revision numbers from updating correctly. (PRO) [[#](https://github.com/codesnippetspro/code-snippets/issues/166)]
    328 
    329 = 3.4.0 (2023-05-17) =
    330 
    331 __Added__
    332 
    333 * Proper WordPress REST API support for retrieving and modifying snippets.
    334 * Added help links to content snippet options.
    335 
    336 __Changed__
    337 
    338 * Better compatibility with modern versions of PHP (7.0+).
    339 * Converted Edit/Add New Snippet page to use React.
    340   * Converted action buttons to asynchronously use REST API endpoints through AJAX.
    341   * Load page components dynamically through React.
    342   * Added action notice queue system.
    343   * Replaced native alert dialog with proper React modal.
    344 * Catch snippet execution errors to prevent site from crashing.
    345 * Display recent snippet errors in admin dashboard instead.
    346 * Updated editor block to use new REST API endpoints. (PRO)
    347 * Change colour of upgrade notice in Pro plugin. (PRO)
    348 * All available snippet data is included in export files.
    349 * Only import specific fields from export file, even if additional fields specified.
    350 * Pass additional attributes specified in `[code_snippet]` content shortcode to shortcode content.
    351 * Make shortcode attributes available as individual variables.
    352 * Allow boolean attributes to be passed to code snippets shortcodes without specifying a value.
    353 * Replace external links to Pro pricing page with an upgrade modal.
    354 
    355 __Fixed__
    356 
    357 * Issue preventing editor colorpicker from loading correctly. (PRO)
    358 * Issue preventing linting libraries from loading correctly in the code editor.
    359 
    360323**[The full changelog is available on GitHub](https://github.com/codesnippetspro/code-snippets/blob/core/CHANGELOG.md)**
  • code-snippets/tags/3.7.0-beta/vendor/composer/installed.php

    r3345197 r3348557  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => 'bad9c8c17c381f63fc9de079490601682f712f7d',
     6        'reference' => 'a3b29f27bd5a94e550e32c485c3197744f2f0e31',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-master',
    1515            'version' => 'dev-master',
    16             'reference' => 'bad9c8c17c381f63fc9de079490601682f712f7d',
     16            'reference' => 'a3b29f27bd5a94e550e32c485c3197744f2f0e31',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.