    }
`,p=u.i`
    :host([layout="half"]) .setting-suggest-list {
        right: 12px;
    }
    :host([layout="small"]) .setting-suggest-list {
        right: 12px;
    }
    :host([layout="full"]) .setting-suggest-list {
        right: 16px;
    }
    .detect-location-icon-v2 {
        margin-right: 4px;
        position: relative;
        top: 1px;
    }
`,f=u.i`
    .detect-location-text {
        color: #005FB8;
    }
    .detect-location-icon path {
        fill: #005FB8;
    }
    .icon-dark {
        display: none;
    }
`,m=u.i`
    .detect-location-text {
        color: #60CDFF;
    }
    .detect-location-icon path {
        fill: #60CDFF;
    }
    .icon-light {
        display: none;
    }
`,v=(t,e)=>u.i`
    ${d.U}
    ${(0,r.j)("flex")} :host {
        position: relative;
        width: auto;
        height: 100%;
        box-sizing: border-box;
        font-family: ${a.SVJ};
        flex-direction: column;
        outline: none;
    }

    .setting-container {
        overflow: hidden;
        display: flex;
        flex-direction: column;
        border-radius: calc(${a.UWU} * 2px);
        height: 100%;
    }

    :host([layout="half"]) .setting-container {
        padding: 6px 12px;
    }
    :host([layout="small"]) .setting-container {
        padding: 6px 12px;
    }

    :host([layout="half"]):host([locationModeV2="true"]) .setting-container {
        padding: 12px;
    }
    :host([layout="full"]) .setting-container {
        padding: 16px;
    }

    :host([layout="small"]) .specify-location-label {
        margin-bottom: 4px;
    }
    :host([layout="small"]):host([locationModeV2="v3"]) .setting-suggest-list {
        top: 60px;
        width: 276px;
    }

    .setting-area {
        height: 160px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .setting-edit {
        font-weight: 500;
        font-size: ${a.sNp};
        line-height: ${a.vgC};
        display: flex;
        align-items: center;
        letter-spacing: 0.7px;
        text-transform: uppercase;
        color: ${a.Q5n};
    }

    .setting-auto-suggest {
        position: relative;
    }

    .setting-location-v2 {
        display: flex;
        flex-direction: column;
    }

    .setting-location-v2-multilocation {
        margin-top: 8px;
    }

    .specify-location-label {
        width: 100%;
        height: 19px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: ${a.cSu};
        line-height: ${a.RUt};
        font-weight: 500;
    }

    :host([layout="half"]) .specify-location-label {
        margin-bottom: 4px;
    }

    .specify-location-label {
        margin-bottom: 12px;
    }
    .detect-location-icon {
        vertical-align: middle;
        border: none;
    }

    .detect-location-label {
        height: 16px;
        font-size: ${a.sNp};
        line-height: ${a.vgC};
        margin-top: 4px;
        text-decoration: none;
        background: transparent;
        padding: 0;
        max-width: fit-content;
    }
    .detect-location-label:hover,
    .detect-location-label:active,
    .detect-location-label:${s.b} {
        outline: 1px solid
    }

    .detect-location-nocolor path,
    .detect-location-nocolor {
        color: inherit !important;
        fill: inherit !important;
    }

    .location-followed-icon {
        display: flex;
        align-items: center;
    }

    .detect-location-label::part(control) {
        padding: 0;
        border: none;
    }

    .setting-location-textaction {
        margin: 0;
        height: 32px;
        width: 100%;
        border: 1px solid #949494;
        border-radius: 2px;
        display: flex;
        position: relative;
    }
    .setting-location-textaction.focused:after {
        content: " ";
        height: 2px;
        width: 100%;
        background: ${a.UEO};
        position: absolute;
        bottom: -1px;
        left: 0;
        right: 0;
    }

    .setting-location-icon {
        margin-top: 8px;
        margin-bottom: 8px;
        fill: currentcolor;
        margin-inline: 16px 12px;
        width: 16px;
        height: 16px;
    }

    .setting-location-input {
        flex: 1 0 0px;
        background: transparent;
        min-width: inherit;
        width: 100%;
        border: none;
        outline: none;
        color: ${a.CHi};
        text-overflow: ellipsis;
    }
    .setting-location-input-alert {
        display: flex;
        align-items: center;
        height: 100%;
        margin: 0 5px;
        fill: #DC3435;
    }
    .setting-location-input-clear {
        background: none;
        border: none;
        display: flex;
        align-items: center;
        height: 100%;
        margin: 0 2px;
        fill: ${a.CHi};
        cursor: pointer;
    }

    .setting-location-input:disabled {
        background: ${a.wFS};
        opacity: ${a.VFZ};
    }

    :host([layout="half"]) .setting-suggest-list {
        top: 100px;
        width: 276px;
    }

    :host([layout="full"]) .setting-suggest-list {
        top: 150px;
        width: 268px;
    }

    :host([layout="full"]):host([cardType="greeting"]) .setting-suggest-list {
        top: 128px;
    }

    :host([layout="half"]):host([locationModeV2="true"]) .setting-suggest-list {
        top: 70px;
        width: 276px;
    }

    :host([layout="full"]):host([locationModeV2="true"]) .setting-suggest-list {
        top: 122px;
        width: 268px;
    }

    :host([layout="half"]):host([locationModeV2="v3"]) .setting-suggest-list {
        top: 60px;
        width: 276px;
    }

    :host([layout="full"]):host([locationModeV2="v3"]) .setting-suggest-list {
        top: 129px;
        width: 268px;
    }

    :host([layout="full"]):host([cardType="greeting"]):host([locationModeV2="true"])  .setting-suggest-list {
        top: 120px;
    }
    :host([layout="full"]):host([cardType="greeting"]):host([locationModeV2="v3"]) .setting-suggest-list {
        top: 111px;
    }
    :host([layout="full"]):host([cardType="greeting"]) .setting-container {
        padding-bottom: 16px;
        height: calc(100% - 32px);
    }

    :host([layout="full"]):host([cardType="greeting"]) .setting-edit {
        padding-bottom: 8px;
        color: ${a.CHi};
    }

    :host([layout="full"]):host([cardType="greeting"]) .specify-location-label {
        margin-bottom: 8px;
        color: ${a.CHi};
    }

    :host([layout="full"]):host([cardType="greeting"]) .detect-location-label {
        margin-bottom: 12px;
    }

    .setting-suggest-list {
        display: block;
        position: absolute;
        list-style: none;
        background: ${a.wFS};
        border: 1px solid;
        border-radius: 2px;
        margin: 0;
        padding: 0;
        z-index: 99;
        outline: none;
        border-color: ${a.akT};
    }

    .setting-suggest-list-multilocation {
        margin-top: -49px;
    }

    .setting-suggest-text {
        text-overflow: ellipsis;
        word-wrap: break-word;
        padding: 5px;
        cursor: pointer;
        font-size: ${a.sNp};
        line-height: ${a.vgC};
        background: ${a.RJY};
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .setting-suggest-first-line {
        font-size: ${a.PwC};
        line-height: ${a.b3W};
        color: ${a.CHi}
    }

    .setting-suggest-second-line {
        font-size: ${a.sNp};
        line-height: ${a.vgC};
        color: ${a.Q5n}
    }

    .setting-suggest-text:hover {
        background: ${a.XiB};
    }

    .setting-suggest-text-h {
        background: ${a.XiB};
    }

    .setting-unit-title {
        font-weight: 500;
        font-size: ${a.cSu};
        line-height: ${a.RUt};
        align-items: center;
        letter-spacing: 0.7px;
        text-transform: capitalize;
        color: ${a.CHi};
    }

    .setting-action-button {
        display: flex;
        justify-content: space-between;
    }

    .setting-action-button-multilocation {
        position: absolute;
    }

    :host([layout="half"]) .setting-action-button-multilocation {
        bottom: 6px;
    }
    :host([layout="small"]) .setting-action-button-multilocation {
        bottom: 6px;
    }

    :host([layout="half"]):host([locationModeV2="true"]) .setting-action-button-multilocation {
        bottom: 12px;
    }
    :host([layout="full"]) .setting-action-button-multilocation {
        bottom: 16px;
    }

    .setting-save-button,
    .setting-cancel-button {
        min-width: 120px;
        align-self: center;
        border-radius: 4px;
    }
`.withBehaviors(new n.O(g,p),new c.Y(f,m),(0,l.vF)(u.i`
                :host {
                    forced-color-adjust: auto;
                    color: ${h.H.ButtonText};
                }
                .detect-location-text {
                    color: ${h.H.ButtonText};
                }
                .detect-location-text-option {
                    color: ${h.H.Highlight};
                }
                .detect-location-icon path {
                    opacity: 1;
                    fill: ${h.H.Highlight};
                }
                .detect-location-label:hover span,
                .detect-location-label:${s.b} span,
                .setting-suggest-text:hover span {
                    color: ${h.H.HighlightText};
                }
                .detect-location-label:hover path,
                .detect-location-label:${s.b} path,
                .setting-suggest-text:hover path {
                    fill: ${h.H.HighlightText};
                }
                .detect-location-label {
                    outline: 1px solid;
                }
                .setting-suggest-list {
                    background: ${h.H.ButtonFace};
                    border-color: ${h.H.CanvasText};
                }
                .setting-suggest-item {
                    background: ${h.H.ButtonFace};
                }
                .setting-suggest-text:hover {
                    forced-color-adjust: none;
                    background: ${h.H.Highlight};
                    color: ${h.H.HighlightText};
                }
                .setting-suggest-text:hover .detect-location-icon path {
                    fill: ${h.H.HighlightText};
                }
                .setting-suggest-text:hover .detect-location-text-option {
                    color: ${h.H.HighlightText};
                }
                .setting-suggest-text-h {
                    forced-color-adjust: none;
                    background: ${h.H.Highlight};
                    color: ${h.H.HighlightText};
                }
                .setting-suggest-text-h .detect-location-icon path {
                    fill: ${h.H.HighlightText};
                }
                .setting-suggest-text-h .detect-location-text-option {
                    color: ${h.H.HighlightText};
                }
                .setting-location-input:disabled {
                    opacity: 1;
                }
                .setting-location-textaction.focused:after {
                    background: ${h.H.Highlight};
                }
            `));var y=i(39181),w=i(13988),x=i(58952),b=i(18864),L=i(29484),C=i(29422);const $=y.d`
    <svg 
        width="14" 
        height="14" 
        viewBox="0 0 14 14" 
        class="setting-location-icon"
        xmlns="http://www.w3.org/2000/svg"
        aria-hidden="true"
    >
        <path
            d="M13.6719 13C13.6719 13.0938 13.6536 13.1823 13.6172 13.2656C13.5807 13.3438 13.5312 13.4141 13.4688 13.4766C13.4062 13.5339 13.3333 13.5807 13.25 13.6172C13.1719 13.6484 13.0885 13.6641 13 13.6641C12.8177 13.6641 12.6615 13.599 12.5312 13.4688L8.9375 9.875C8.46354 10.2396 7.94792 10.5182 7.39062 10.7109C6.83854 10.9036 6.26302 11 5.66406 11C5.17448 11 4.70052 10.9375 4.24219 10.8125C3.78906 10.6823 3.36458 10.5026 2.96875 10.2734C2.57812 10.0391 2.21875 9.76042 1.89062 9.4375C1.56771 9.11458 1.29167 8.75521 1.0625 8.35938C0.833333 7.96354 0.653646 7.53906 0.523438 7.08594C0.398438 6.6276 0.335938 6.15365 0.335938 5.66406C0.335938 5.17448 0.398438 4.70312 0.523438 4.25C0.653646 3.79688 0.833333 3.3724 1.0625 2.97656C1.29688 2.58073 1.57552 2.22135 1.89844 1.89844C2.22135 1.57552 2.58073 1.29948 2.97656 1.07031C3.3724 0.835938 3.79688 0.65625 4.25 0.53125C4.70312 0.401042 5.17448 0.335938 5.66406 0.335938C6.39844 0.335938 7.08854 0.476562 7.73438 0.757812C8.38542 1.03385 8.95052 1.41406 9.42969 1.89844C9.91406 2.38281 10.2969 2.94792 10.5781 3.59375C10.8594 4.23958 11 4.92969 11 5.66406C11 6.26302 10.9036 6.84115 10.7109 7.39844C10.5182 7.95052 10.2396 8.46354 9.875 8.9375L13.4688 12.5312C13.5365 12.599 13.5859 12.6693 13.6172 12.7422C13.6536 12.8151 13.6719 12.901 13.6719 13ZM5.66406 9.66406H5.74219C6.28385 9.66406 6.79167 9.55729 7.26562 9.34375C7.74479 9.125 8.16146 8.83333 8.51562 8.46875C8.86979 8.09896 9.14844 7.67448 9.35156 7.19531C9.5599 6.71094 9.66406 6.20052 9.66406 5.66406C9.66406 5.11198 9.5599 4.59375 9.35156 4.10938C9.14323 3.61979 8.85677 3.19531 8.49219 2.83594C8.13281 2.47135 7.70833 2.1849 7.21875 1.97656C6.73438 1.76823 6.21615 1.66406 5.66406 1.66406C5.11198 1.66406 4.59115 1.76823 4.10156 1.97656C3.61719 2.1849 3.19271 2.47135 2.82812 2.83594C2.46875 3.19531 2.1849 3.61979 1.97656 4.10938C1.76823 4.59375 1.66406 5.11198 1.66406 5.66406C1.66406 6.21615 1.76823 6.73698 1.97656 7.22656C2.1849 7.71094 2.46875 8.13542 2.82812 8.5C3.19271 8.85938 3.61719 9.14323 4.10156 9.35156C4.59115 9.5599 5.11198 9.66406 5.66406 9.66406Z" fill-opacity="0.8956"
        />
    </svg>
`,S=y.d`<svg
    width="12"
    height="12"
    viewBox="0 0 12 12"
    xmlns="http://www.w3.org/2000/svg"
>
    <path
        d="M6 0C6.3077 0 6.5613 0.231624 6.59596 0.530027L6.6 0.6L6.60021 1.38838C8.68853 1.6575 10.3428 3.31199 10.6117 5.4004L11.4 5.4C11.7314 5.4 12 5.66863 12 6C12 6.3077 11.7684 6.5613 11.47 6.59596L11.4 6.6L10.6116 6.60021C10.3425 8.68832 8.68832 10.3425 6.60021 10.6116L6.6 11.4C6.6 11.7314 6.33137 12 6 12C5.6923 12 5.4387 11.7684 5.40404 11.47L5.4 11.4L5.4004 10.6117C3.31199 10.3428 1.6575 8.68853 1.38838 6.60021L0.6 6.6C0.268629 6.6 0 6.33137 0 6C0 5.6923 0.231624 5.4387 0.530027 5.40404L0.6 5.4L1.3883 5.4004C1.65718 3.31179 3.31179 1.65718 5.4004 1.3883L5.4 0.6C5.4 0.268629 5.66863 0 6 0ZM6 2.55C4.09462 2.55 2.55 4.09462 2.55 6C2.55 7.90538 4.09462 9.45 6 9.45C7.90538 9.45 9.45 7.90538 9.45 6C9.45 4.09462 7.90538 2.55 6 2.55ZM6 3.6C7.32548 3.6 8.4 4.67452 8.4 6C8.4 7.32548 7.32548 8.4 6 8.4C4.67452 8.4 3.6 7.32548 3.6 6C3.6 4.67452 4.67452 3.6 6 3.6Z"
    />
</svg> `,k=y.d`
    <span>
        <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" class="icon-light">
            <path d="M10 2C10.4103 2 10.7484 2.30883 10.7946 2.7067L10.8 2.8L10.8003 3.85117C13.5847 4.21 15.7905 6.41599 16.1489 9.20053L17.2 9.2C17.6418 9.2 18 9.55817 18 10C18 10.4103 17.6912 10.7484 17.2933 10.7946L17.2 10.8L16.1488 10.8003C15.79 13.5844 13.5844 15.79 10.8003 16.1488L10.8 17.2C10.8 17.6418 10.4418 18 10 18C9.58973 18 9.25159 17.6912 9.20538 17.2933L9.2 17.2L9.20053 16.1489C6.41599 15.7905 4.21 13.5847 3.85117 10.8003L2.8 10.8C2.35817 10.8 2 10.4418 2 10C2 9.58973 2.30883 9.25159 2.7067 9.20538L2.8 9.2L3.85107 9.20053C4.20958 6.41572 6.41572 4.20958 9.20053 3.85107L9.2 2.8C9.2 2.35817 9.55817 2 10 2ZM10 5.4C7.45949 5.4 5.4 7.45949 5.4 10C5.4 12.5405 7.45949 14.6 10 14.6C12.5405 14.6 14.6 12.5405 14.6 10C14.6 7.45949 12.5405 5.4 10 5.4ZM10 6.8C11.7673 6.8 13.2 8.23269 13.2 10C13.2 11.7673 11.7673 13.2 10 13.2C8.23269 13.2 6.8 11.7673 6.8 10C6.8 8.23269 8.23269 6.8 10 6.8Z" fill="#2F2F2F"/>
        </svg>
        <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" class="icon-dark">
            <path d="M10 2C10.4103 2 10.7484 2.30883 10.7946 2.7067L10.8 2.8L10.8003 3.85117C13.5847 4.21 15.7905 6.41599 16.1489 9.20053L17.2 9.2C17.6418 9.2 18 9.55817 18 10C18 10.4103 17.6912 10.7484 17.2933 10.7946L17.2 10.8L16.1488 10.8003C15.79 13.5844 13.5844 15.79 10.8003 16.1488L10.8 17.2C10.8 17.6418 10.4418 18 10 18C9.58973 18 9.25159 17.6912 9.20538 17.2933L9.2 17.2L9.20053 16.1489C6.41599 15.7905 4.21 13.5847 3.85117 10.8003L2.8 10.8C2.35817 10.8 2 10.4418 2 10C2 9.58973 2.30883 9.25159 2.7067 9.20538L2.8 9.2L3.85107 9.20053C4.20958 6.41572 6.41572 4.20958 9.20053 3.85107L9.2 2.8C9.2 2.35817 9.55817 2 10 2ZM10 5.4C7.45949 5.4 5.4 7.45949 5.4 10C5.4 12.5405 7.45949 14.6 10 14.6C12.5405 14.6 14.6 12.5405 14.6 10C14.6 7.45949 12.5405 5.4 10 5.4ZM10 6.8C11.7673 6.8 13.2 8.23269 13.2 10C13.2 11.7673 11.7673 13.2 10 13.2C8.23269 13.2 6.8 11.7673 6.8 10C6.8 8.23269 8.23269 6.8 10 6.8Z" fill="white"/>
        </svg>
    </span>
`,T=y.d`
    <span>
        <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" class="icon-light">
            <path d="M10.5556 5.55458C10.5556 5.24775 10.3068 4.99902 10 4.99902C9.69318 4.99902 9.44444 5.24775 9.44444 5.55458V9.44347H5.55556C5.24873 9.44347 5 9.6922 5 9.99902C5 10.3058 5.24873 10.5546 5.55556 10.5546H9.44444V14.4435C9.44444 14.7503 9.69318 14.999 10 14.999C10.3068 14.999 10.5556 14.7503 10.5556 14.4435V10.5546H14.4444C14.7513 10.5546 15 10.3058 15 9.99902C15 9.6922 14.7513 9.44347 14.4444 9.44347H10.5556V5.55458Z" fill="#1A1A1A"/>
            <rect x="0.5" y="0.499023" width="19" height="19" rx="9.5" stroke="black" stroke-opacity="0.25"/>
        </svg>
        <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" class="icon-dark">
            <rect width="20" height="20" rx="10" fill="white" fill-opacity="0.1"/>
            <path d="M10.5556 5.55556C10.5556 5.24873 10.3068 5 10 5C9.69318 5 9.44444 5.24873 9.44444 5.55556V9.44444H5.55556C5.24873 9.44444 5 9.69318 5 10C5 10.3068 5.24873 10.5556 5.55556 10.5556H9.44444V14.4444C9.44444 14.7513 9.69318 15 10 15C10.3068 15 10.5556 14.7513 10.5556 14.4444V10.5556H14.4444C14.7513 10.5556 15 10.3068 15 10C15 9.69318 14.7513 9.44444 14.4444 9.44444H10.5556V5.55556Z" fill="white"/>
            <rect x="0.5" y="0.5" width="19" height="19" rx="9.5" stroke="white" stroke-opacity="0.25"/>
        </svg>
    </span>
`,M=y.d`
    <span>
        <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" class="icon-light">
            <rect width="20" height="20" rx="10" fill="#036AC4"/>
            <path d="M13.765 7.20474C14.0661 7.48915 14.0797 7.96383 13.7953 8.26497L9.54526 12.765C9.40613 12.9123 9.21332 12.997 9.01071 12.9999C8.8081 13.0028 8.61295 12.9236 8.46967 12.7803L6.21967 10.5303C5.92678 10.2374 5.92678 9.76257 6.21967 9.46967C6.51256 9.17678 6.98744 9.17678 7.28033 9.46967L8.98463 11.174L12.7047 7.23503C12.9891 6.9339 13.4638 6.92033 13.765 7.20474Z" fill="white"/>
        </svg>
        <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" class="icon-dark">
            <rect width="20" height="20" rx="10" fill="#63ADE5"/>
            <path d="M13.765 7.20474C14.0661 7.48915 14.0797 7.96383 13.7953 8.26497L9.54526 12.765C9.40613 12.9123 9.21332 12.997 9.01071 12.9999C8.8081 13.0028 8.61295 12.9236 8.46967 12.7803L6.21967 10.5303C5.92678 10.2374 5.92678 9.76257 6.21967 9.46967C6.51256 9.17678 6.98744 9.17678 7.28033 9.46967L8.98463 11.174L12.7047 7.23503C12.9891 6.9339 13.4638 6.92033 13.765 7.20474Z" fill="white"/>
        </svg>
    </span>
`,O=(t,e)=>y.d`
    <div class="setting-auto-suggest">
        <div
            class="setting-location-textaction ${t=>t.inputFocused?"focused":""}"
        >
            ${$}

            <input
                class="setting-location-input"
                part="setting-location-input"
                id="weather_location_input"
                placeholder="${t=>t.searchPlaceHolder}"
                @input="${t=>t.handleInputForSuggest()}"
                @blur="${t=>t.handleInputBlur()}"
                type="text"
                title="${t=>t.searchPlaceHolder}"
                autocomplete="off"
                aria-autocomplete="both"
                aria-activedescendant=${t=>null!=t.activeSuggestIndex&&t.activeSuggestIndex>=0?"locationSug_"+t.activeSuggestIndex:null}
                value="${t=>t.getSelectedName()}"
                aria-owns="weather_location_search_list"
                aria-controls="weather_location_search_list"
                ${(0,x.i)("inputControl")}
                data-t="${t=>t.inputTelemetryTag}"
            />
            ${(0,w.g)((t=>t.shouldShowAlertIcon()),y.d`
                    <div
                        class="setting-location-input-alert"
                        title="${t=>t.searchPlaceHolder}"
                        aria-hidden="true"
                    >
                        <svg width="14" height="14" viewBox="0 0 14 14">
                            <path
                                d="M6.5625 0L13.125 13.125H0L6.5625 0ZM7 11.375V10.5H6.125V11.375H7ZM6.125 9.625H7V4.375H6.125V9.625Z"
                            ></path>
                        </svg>
                    </div>
                `)}
            ${(0,w.g)((t=>t.shouldShowClearButton()),y.d`
                    <button
                        title="${t=>t.searchClearButtonLabel}"
                        aria-label="${t=>t.searchClearButtonLabel}"
                        class="setting-location-input-clear"
                        data-t="${t=>t.searchClearTelemetryTag}"
                        @click=${t=>t.handleClearClick()}
                        @focus=${t=>t.handleClearFocusChange(!0)}
                        @blur=${t=>t.handleClearFocusChange(!1)}
                    >
                        <svg width="14" height="14" viewBox="0 0 14 14" >
                            <path
                                d="M6.84961 6L12 11.1504L11.1504 12L6 6.84961L0.849609 12L0 11.1504L5.15039 6L0 0.849609L0.849609 0L6 5.15039L11.1504 0L12 0.849609L6.84961 6Z"
                            ></path>
                        </svg>
                    </div>
                `)}
        </div>
    </div>
`,D=(t,e)=>y.d`
    <div class="setting-location">
        <div>
            <fluent-radio-group
                value="${t=>t.settingData.locationMode}"
                @change="${(t,e)=>t.chooseLocationMode(e.event)}"
                aria-labelledby="setlocationmode"
                name="set-location-mode"
                orientation="vertical"
            >
                <fluent-radio
                    value="${o.EM.AutoDetectLoc}"
                    tabindex="${t=>t.isAlwaysDetectLocation?0:null}"
                    data-t="${t=>t.detectTelemetryTag}"
                    >${t=>t.detectLocationLabel}</fluent-radio
                >
                <fluent-radio
                    value="${o.EM.SpecifyLoc}"
                    tabindex="${t=>t.settingData.locationMode==o.EM.SpecifyLoc?0:null}"
                    data-t="${t=>t.specifyTelemetryTag}"
                    >${t=>t.specifyLocationLabel}</fluent-radio
                >
            </fluent-radio-group>
        </div>
        ${O}
    </div>
`,H=(t,e)=>y.d`
    <div class="setting-location-v2 ${t=>t.multiLocation?"setting-location-v2-multilocation":""}">
        ${(0,w.g)((t=>!t.multiLocation&&((0,L.TW)(t.layout)||(0,L.aL)(t.layout)||"v3"===t.locationModeV2)),y.d` <div class="specify-location-label">
                ${t=>t.detectLocationLabel}
                <fluent-switch
                    class="${t=>t.isAlwaysDetectLocation?"checked":""}"
                    ?checked="${t=>t.isAlwaysDetectLocation}"
                    current-checked="${t=>t.isAlwaysDetectLocation}"
                    aria-checked="${t=>t.isAlwaysDetectLocation}"
                    aria-label="${t=>t.detectLocationLabel}"
                    @click="${t=>t.clickOnSwitchLocationMode()}"
                    @keydown="${(t,e)=>t.keyDownOnSwitchLocationMode(e.event)}"
                    data-t="${t=>t.alwaysDetectSwitchTelemetryTag}"
                />
            </div>`)}
        ${O}
        ${(0,w.g)((t=>!t.multiLocation&&"v3"!==t.locationModeV2&&t.showDetectButton),y.d` <fluent-button
                class="detect-location-label"
                tabindex="0"
                aria-label=${t=>t.detectLocationActionLabel}
                role="button"
                title=${t=>t.detectLocationActionLabel}
                @click="${(t,e)=>t.detectCurrentLocation()}"
                data-t="${t=>t.detectLocationTelemetryTag}"
            >
                <i class="detect-location-icon" aria-hidden="true">${S} </i>
                <span class="detect-location-text"
                    >${t=>t.detectLocationActionLabel}</span
                >
            </fluent-button>`)}
        ${(0,w.g)((t=>!t.multiLocation&&"v3"!==t.locationModeV2&&!t.showDetectButton),y.d` <div
                class="detect-location-label"
            >
            </div>`)}
    </div>
`,R=(t,e)=>y.d`
    <div class="setting-action-button ${t=>t.multiLocation?"setting-action-button-multilocation":""}">
    ${(0,w.g)((t=>!t.multiLocation),y.d`<fluent-button
            class="setting-save-button"
            appearance="accent"
            @click="${t=>t.saveSetting()}"
            ?disabled=${t=>!t.settingData.changeSignal}
            data-t="${t=>!t.settingData.changeSignal||t.settingData.changeSignal<4||!t.settingData.saveTelemetryTab?t.saveTelemetryTag:t.settingData.saveTelemetryTab}"
        >
            ${t=>t.saveButtonCont}
        </fluent-button>`)}
        <fluent-button
            class="setting-cancel-button"
            appearance="outline"
            @click="${t=>t.cancelSetting()}"
            @focusout="${(t,e)=>t.focusoutHandler(null==e?void 0:e.event)}"
            data-t="${t=>t.cancelTelemetryTag}"
        >
            ${t=>t.cancelButtonCont}
        </fluent-button>
    </div>
`,B=y.d` ${(0,w.g)((t=>t.shouldShowSuggests()),y.d`
        <div
            id="weather_location_search_list"
            aria-expanded="${t=>!!t.showSuggests}"
            aria-label="${t=>t.searchPlaceHolder}"
            aria-live="polite"
        >
            <ul
                class="setting-suggest-list ${t=>t.multiLocation?"setting-suggest-list-multilocation":""}"
                tabindex="-1"
                aria-labelledby="weather_location_input"
                ${(0,x.i)("suggestList")}
            >
                ${(0,w.g)((t=>t.userQuery&&t.settingData.suggestedLocations&&t.settingData.suggestedLocations.length>0),y.d`${(0,b.rx)((t=>t.settingData.suggestedLocations),((t,e)=>y.d`
    <li
        class="${(t,e)=>e.index==e.parent.activeSuggestIndex?"setting-suggest-text setting-suggest-text-h":"setting-suggest-text"}"
        role="option"
        id=${(t,e)=>"locationSug_"+e.index}
        title="${t=>`${t.displayName}`}"
        aria-label="${t=>`${t.displayName}`}"
        aria-selected="${(t,e)=>e.index==e.parent.activeSuggestIndex}"
        @click="${(t,e)=>e.parent.selectSuggestLocation(t,e.event)}"
        data-t="${(t,e)=>e.parent.suggestTelemetryTag}"
    >
        ${(0,w.g)(((t,e)=>!!e.parent.settingData.showSuggestionInTwoLines),y.d`
                <div>
                    <div class="setting-suggest-first-line">
                        ${t=>t.firstLine||t.displayName}
                    </div>
                    <div class="setting-suggest-second-line">
                        ${t=>t.secondLine}
                    </div>
                </div>
            `)}
        ${(0,w.g)(((t,e)=>!e.parent.settingData.showSuggestionInTwoLines),y.d` ${t=>t.displayName} `)}
        <span class="location-followed-icon">
            ${(0,w.g)(((t,e)=>e.parent.locationFollowed(t)),y.d`${M}`)}
            ${(0,w.g)(((t,e)=>!e.parent.locationFollowed(t)),y.d`${T}`)}
        </span>
    </li>
`),{positioning:!0})}`)}
                ${(0,w.g)((t=>t.userQuery&&(!t.settingData.suggestedLocations||0==t.settingData.suggestedLocations.length)),y.d`<li
                        role="option"
                        aria-label="${t=>t.searchNoResult}"
                        title="${t=>t.searchNoResult}"
                        class="setting-suggest-text"
                    >
                        ${t=>t.searchNoResult}
                    </li>`)}
                ${(0,w.g)((t=>"v3"===t.locationModeV2&&!t.userQuery),y.d`<li
                        role="option"
                        id="locationSug_0"
                        aria-label="${t=>t.detectLocationActionLabel}"
                        title="${t=>t.detectLocationActionLabel}"
                        class="${t=>0===t.activeSuggestIndex?"setting-suggest-text setting-suggest-text-h":"setting-suggest-text"}"
                        aria-selected="${t=>0===t.activeSuggestIndex}"
                        @click="${t=>t.detectCurrentLocation()}"
                        data-t="${t=>t.detectLocationTelemetryTag}"
                    >
                        <i
                            class="detect-location-icon detect-location-icon-option"
                            aria-hidden="true"
                        >
                            ${S}
                        </i>
                        <span class="detect-location-text detect-location-text-option"
                            >${t=>t.detectLocationActionLabel}</span
                        >
                    </li>`)}
                ${(0,w.g)((t=>t.shouldShowDetectLocation()),y.d`<li
                        role="option"
                        id="locationSug_0"
                        aria-label="${t=>t.detectLocationActionLabel}"
                        title="${t=>t.detectLocationActionLabel}"
                        class="${t=>0===t.activeSuggestIndex?"setting-suggest-text setting-suggest-text-h":"setting-suggest-text"}"
                        aria-selected="${t=>0===t.activeSuggestIndex}"
                        @click="${t=>t.detectedLocation&&t.selectSuggestLocation(t.detectedLocation)}"
                        data-t="${t=>t.detectLocationTelemetryTag}"
                    >
                        <span style="display: flex; align-items: center">
                            <span class="detect-location-text detect-location-text-option detect-location-nocolor"
                                >${t=>t.detectedLocation&&C.getDisplayName(t.detectedLocation)}</span
                            >
                            <i
                                class="detect-location-icon-v2"
                                aria-hidden="true"
                            >
                                ${k}
                            </i>
                        </span>
                        <span class="location-followed-icon">
                            ${(0,w.g)((t=>!!t.detectedLocation&&t.locationFollowed(t.detectedLocation)),y.d`${M}`)}
                            ${(0,w.g)((t=>!!t.detectedLocation&&!t.locationFollowed(t.detectedLocation)),y.d`${T}`)}
                        </span>
                    </li>`)}
            </ul>
        </div>
    `)}`,F=(t,e)=>y.d`
<div class="setting-unit">
    ${(0,w.g)((t=>!(0,L.KW)(t.layout)),y.d`<label id="unitsgroup" class="setting-unit-title">${t=>t.unitsTitle}</label>`)}
    <fluent-radio-group
        value="${t=>t.settingData.unitSet}"
        @change="${(t,e)=>t.chooseWeatherUnit(e.event)}"
        aria-labelledby="unitsgroup"
        name="set-unit"
    >
        <fluent-radio
            value="${o.ao.Fahrenheit}"
            tabindex="${t=>t.settingData.unitSet==o.ao.Fahrenheit?0:null}"
            data-t="${t=>t.fahrenheitTelemetryTag}"
            ${(0,x.i)("fahrenheitRaido")}
            aria-label="${t=>t.fahrenheitLabel}"
            label="${t=>t.fahrenheitLabel}"
            title="${t=>t.fahrenheitLabel}"
            @click="${(t,e)=>t.handleUnitClick(!0)}"
        >
            <span>${t=>t.fahrenheitLabel}</span>
        </fluent-radio>
        <fluent-radio
            value="${o.ao.Celsius}"
            tabindex="${t=>t.settingData.unitSet==o.ao.Celsius?0:null}"
            data-t="${t=>t.celsiusTelemetryTag}"
            ${(0,x.i)("celsiusRaido")}
            aria-label="${t=>t.celsiusLabel}"
            label="${t=>t.celsiusLabel}"
            title="${t=>t.celsiusLabel}"
            @click="${(t,e)=>t.handleUnitClick(!1)}"
        >
            <span>${t=>t.celsiusLabel}</span>
        </fluent-radio>
    </fluent-radio-group>
</div>`,A=y.d`
    ${(0,w.g)((t=>(0,L.TW)(t.layout)||(0,L.aL)(t.layout)),y.d`
            <div class="setting-edit">
                ${t=>t.editHeader}
            </div>
        `)}
    ${H} ${(0,w.g)((t=>!t.multiLocation),F)}
`,I=y.d`
    <div class="setting-edit">
        ${t=>t.editHeader}
    </div>
`,j=(t,e)=>y.d`
    ${(0,w.g)((t=>t.settingData),y.d`
    <div class="setting-container" style=${t=>t.multiLocation?"":"justify-content: space-between"}>
        ${(0,w.g)((t=>"v3"===t.locationModeV2),A)}

        ${(0,w.g)((t=>"v3"!==t.locationModeV2&&(0,L.TW)(t.layout)),y.d`
            ${(0,w.g)((t=>t.editHeader),I)}
            ${(0,w.g)((t=>!t.locationModeV2),D)}
            ${(0,w.g)((t=>t.locationModeV2),H)}
            ${(0,w.g)((t=>!t.multiLocation),F)}`)}

        ${(0,w.g)((t=>"v3"!==t.locationModeV2&&(0,L.KW)(t.layout)),y.d`
            ${(0,w.g)((t=>!t.locationModeV2),D)}
            ${(0,w.g)((t=>t.locationModeV2),H)}`)}

        ${(0,w.g)((t=>"v3"!==t.locationModeV2&&(0,L.aL)(t.layout)),y.d`
            <div class="setting-area">
                ${H}
                ${(0,w.g)((t=>!t.multiLocation),F)}
            </div>`)}

        ${R}
    </div>
    ${B}`)}
`;var N=i(69222);const P=u.i`
    :host([layout="medium"]) .setting-suggest-list {
        left: 16px;
    }
    :host([layout="large"]) .setting-suggest-list {
        left: 16px;
    }
`,E=u.i`
    :host([layout="medium"]) .setting-suggest-list {
        right: 16px;
    }
    :host([layout="large"]) .setting-suggest-list {
        right: 16px;
    }
`,z=u.i`
    :host {
        --fill-color: #FDFDFD;
    }
`,V=u.i`
    :host {
        --fill-color: #2C2C2C;
    }
`,U=u.i`
    :host([layout="full"]) .setting-suggest-list {
        left: 24px;
    }
`,W=u.i`
    :host([layout="full"]) .setting-suggest-list {
        right: 24px;
    }
`,G=o.P3.compose({baseName:"weather-setting-card",template:j,styles:v,shadowOptions:{delegatesFocus:!0}}),_=o.P3.compose({baseName:"weather-setting-sd-card",template:(t,e)=>y.d`
    <msft-structured-data-card
        target="_blank"
        :data=${t=>t.sdCardData}
        tab-index="-1"
    >
        <slot name="title-icon" slot="title-icon"></slot>
        <slot name="pin" slot="pin"></slot>
        <slot name="more-actions" slot="more-actions"></slot>
        ${j()}
        <slot name="footer-start" slot="footer-start"></slot>
        <slot name="footer-end" slot="footer-end"></slot>
    </msft-structured-data-card>
`,styles:(t,e)=>u.i`
    ${N.Hj}
    ${v()}
    msft-structured-data-card {
        padding: 12px 0px 16px;
        background-color: var(--fill-color);
        border-radius: calc(${a.rSr} * 2px);
    }

    .setting-suggest-text {
        padding: 10px 16px;
        font-size: 14px;
        line-height: 20px;
        overflow: hidden;
    }

    :host([layout="medium"]) .setting-container {
        padding: 24px 16px 0px;
        height: auto
    }
    :host([layout="large"]) .setting-container {
        padding: 24px 16px 8px;
        height: auto;
    }

    :host([layout="medium"]):host([locationModeV2="true"]) .setting-suggest-list {
        top: 148px;
        width: 268px;
    }
    :host([layout="large"]):host([locationModeV2="true"]) .setting-suggest-list {
        top: 148px;
        width: 268px;
    }

    :host([layout="large"]):host([locationModeV2="true"]) .setting-action-button {
        padding: 0px 8px;
    }
`.withBehaviors(new n.O(P,E),new c.Y(z,V)),shadowOptions:{delegatesFocus:!0}}),Y=o.P3.compose({baseName:"weather-setting-card-widget",template:(t,e)=>y.d` ${(0,w.g)((t=>t.settingData),y.d`
            <div class="setting-container">
                <div class="setting-area">
                    ${H} ${F}
                </div>
                ${R}
            </div>
            ${B}
        `)}`,styles:(t,e)=>u.i`
        ${v()}

        .sd-action {
            border-radius: 4px;
        }

        :host([layout="full"]) .setting-container {
            padding: 55px 24px 24px 24px;
        }
        :host([layout="full"]) .setting-suggest-list {
            top: 120px;
            width: 252px;
        }
        :host([layout="full"]):host([locationModeV2="v3"]) .setting-suggest-list {
            top: 120px;
            width: 252px;
        }
        .setting-area {
            height: 176px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .setting-unit-title {
            font-size: ${a.cSu};
            line-height: ${a.RUt};
        }
        .setting-save-button,
        .setting-cancel-button {
            width: 120px;
            font-size: ${a.cSu};
            line-height: ${a.RUt};
        }
    `.withBehaviors(new n.O(U,W)),shadowOptions:{delegatesFocus:!0}})},23149:function(t,e,i){i.d(e,{EM:function(){return o},P3:function(){return u},ao:function(){return n}});var o,a,n,r=i(33940),s=i(65620),l=i(87697),c=i(33832),d=i(48839),h=i(29422);!function(t){t[t.AutoDetectLoc=1]="AutoDetectLoc",t[t.SpecifyLoc=2]="SpecifyLoc"}(o||(o={})),function(t){t[t.Success=1]="Success",t[t.Failure=2]="Failure"}(a||(a={})),function(t){t[t.Fahrenheit=1]="Fahrenheit",t[t.Celsius=2]="Celsius"}(n||(n={}));class u extends d.I{constructor(){super(...arguments),this.showSuggests=!1,this.inputFocused=!1,this.inputClearFocused=!1,this.handleDocumentKeydown=t=>{if(t.defaultPrevented||!this.settingData)return;const e=this.userQuery&&this.settingData.suggestedLocations&&this.settingData.suggestedLocations.length>0;if(!e&&("v3"!==this.locationModeV2||this.userQuery))return;let i=this.settingData.suggestedLocations?this.settingData.suggestedLocations.length:0;this.userQuery||(i=1);const o=this.settingData.suggestedLocations||[];switch(t.keyCode){case c.Q6:t.preventDefault(),t.stopPropagation(),null==this.activeSuggestIndex||this.activeSuggestIndex<0||this.activeSuggestIndex>=i-1?this.activeSuggestIndex=0:this.activeSuggestIndex=this.activeSuggestIndex+1;break;case c.$Y:null==this.activeSuggestIndex||this.activeSuggestIndex<=0||this.activeSuggestIndex>i-1?this.activeSuggestIndex=i-1:this.activeSuggestIndex=this.activeSuggestIndex-1,t.preventDefault(),t.stopPropagation();break;case c.bq:case c.ei:null!=this.activeSuggestIndex&&this.activeSuggestIndex>=0&&this.activeSuggestIndex<i&&(e?this.selectSuggestLocation(o[this.activeSuggestIndex]):this.detectCurrentLocation(),this.activeSuggestIndex=-1,t.preventDefault());break;case c.RN:this.showSuggests=!1;break;case 27:t.preventDefault(),this.handleClearClick();break;default:return}},this.handleClickOutside=t=>{t.defaultPrevented||this.suggestList&&!this.suggestList.contains(t.target)&&(this.showSuggests=!1)}}get isAlwaysDetectLocation(){return this.settingData.locationMode==o.AutoDetectLoc}get showDetectButton(){return this.settingData.locationMode===o.SpecifyLoc&&0==(2&(this.settingData.changeSignal||0))&&!this.shouldShowAlertIcon()}handleInputForSuggest(t){0==this.showSuggests&&(this.showSuggests=!0),this.inputFocused=!0,t&&t.preventDefault(),this.inputControl&&(this.userQuery!==this.inputControl.value&&(this.userQuery=this.inputControl.value),this.inputControl.value&&(this.$emit("suggest",this.inputControl.value),this.settingData.selectedLocation&&this.settingData.selectedLocation.displayName!==this.inputControl.value&&this.$emit("select",null)))}handleClickOnLocationInput(t){this.handleInputForSuggest(t)}handleFocusOnLocationInput(t){this.handleInputForSuggest(t)}handleInputBlur(){this.inputFocused=!1}focusoutHandler(t){return this.$emit("weatherFocusout",t),!0}detectCurrentLocation(){this.$emit("setLocationMode",o.SpecifyLoc),this.$emit("detectLocation"),this.showSuggests=!1}getSelectedName(){var t;const e=(null===(t=this.settingData.selectedLocation)||void 0===t?void 0:t.displayName)||"";return this.inputControl&&e&&(this.inputControl.value=e),e}selectSuggestLocation(t,e){this.inputControl&&t&&(this.inputControl.value=`${t.displayName}`),e&&e.preventDefault(),this.$emit("setLocationMode",o.SpecifyLoc),this.$emit("select",t),this.showSuggests=!1,this.multiLocation&&this.saveSetting();const i=this.settingData.unitSet==n.Fahrenheit?this.fahrenheitRaido:this.celsiusRaido;i&&i.focus()}chooseLocationMode(t){if(t.defaultPrevented||!t.target)return;t.preventDefault(),this.showSuggests=!1;const e=parseInt(t.target.value);this.$emit("setLocationMode",e),this.inputControl&&(this.inputControl.value="")}clickOnSwitchLocationMode(){this.switchLocationMode()}keyDownOnSwitchLocationMode(t){const e=t.code.toLocaleLowerCase();if("space"!==e&&"enter"!==e)return!0;this.switchLocationMode()}switchLocationMode(){this.showSuggests=!1;const t=this.settingData.locationMode===o.SpecifyLoc?o.AutoDetectLoc:o.SpecifyLoc;this.$emit("setLocationMode",t),this.inputControl&&(this.inputControl.value="")}chooseWeatherUnit(t){if(t.defaultPrevented||!t.target)return;t.preventDefault(),this.showSuggests=!1;const e=parseInt(t.target.value);this.$emit("setUnitMode",e)}cancelSetting(){this.$emit("cancel"),this.inputControl&&(this.inputControl.value="")}saveSetting(){this.$emit("save"),this.inputControl&&(this.inputControl.value="")}connectedCallback(){super.connectedCallback(),this.layout||(this.layout="half"),this.focus(),this.addEventListener("keydown",this.handleDocumentKeydown),document.addEventListener("click",this.handleClickOutside)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleDocumentKeydown),document.removeEventListener("click",this.handleClickOutside)}shouldShowSuggests(){if(!this.showSuggests)return!1;if(!this.userQuery)return"v3"===this.locationModeV2||!!this.multiLocation;return!!(this.userQuery&&this.settingData.suggestedLocations&&this.settingData.suggestedLocations.length>0)||!!this.searchNoResult}shouldShowDetectLocation(){var t,e,i,o;return!(!this.multiLocation||void 0!==(null===(e=null===(t=this.inputControl)||void 0===t?void 0:t.value)||void 0===e?void 0:e.length)&&0!==(null===(o=null===(i=this.inputControl)||void 0===i?void 0:i.value)||void 0===o?void 0:o.length)||this.userQuery||!this.detectedLocation)}locationFollowed(t){return!!this.followedLocations&&this.followedLocations.filter((e=>h.isSameLocationName(t,e))).length>0}shouldShowAlertIcon(){return!this.multiLocation&&(this.settingData.locationMode!==o.AutoDetectLoc&&(!(this.inputFocused||this.inputClearFocused||this.showSuggests)&&!this.settingData.selectedLocation))}shouldShowClearButton(){return this.settingData.locationMode!==o.AutoDetectLoc&&((this.inputFocused||this.inputClearFocused||this.showSuggests)&&!!this.userQuery||!!this.settingData.selectedLocation)}handleClearClick(){this.$emit("select",null),this.userQuery="",this.inputControl&&(this.inputControl.value="",this.inputControl.focus()),this.multiLocation&&(this.showSuggests=!0)}handleClearFocusChange(t){this.inputClearFocused=t}handleUnitClick(t){setTimeout((()=>{t?this.fahrenheitRaido&&this.fahrenheitRaido.focus():this.celsiusRaido&&this.celsiusRaido.focus()}),0)}}(0,r.gn)([s.Lj],u.prototype,"layout",void 0),(0,r.gn)([s.Lj],u.prototype,"editHeader",void 0),(0,r.gn)([s.Lj],u.prototype,"detectLocationLabel",void 0),(0,r.gn)([s.Lj],u.prototype,"specifyLocationLabel",void 0),(0,r.gn)([s.Lj],u.prototype,"detectLocationActionLabel",void 0),(0,r.gn)([s.Lj],u.prototype,"specifyLocationActionButton",void 0),(0,r.gn)([s.Lj],u.prototype,"searchPlaceHolder",void 0),(0,r.gn)([s.Lj],u.prototype,"searchClearButtonLabel",void 0),(0,r.gn)([s.Lj],u.prototype,"searchNoResult",void 0),(0,r.gn)([s.Lj],u.prototype,"unitsTitle",void 0),(0,r.gn)([s.Lj],u.prototype,"fahrenheitLabel",void 0),(0,r.gn)([s.Lj],u.prototype,"celsiusLabel",void 0),(0,r.gn)([s.Lj],u.prototype,"saveButtonCont",void 0),(0,r.gn)([s.Lj],u.prototype,"cancelButtonCont",void 0),(0,r.gn)([s.Lj],u.prototype,"locationModeV2",void 0),(0,r.gn)([(0,s.Lj)({mode:"boolean"})],u.prototype,"multiLocation",void 0),(0,r.gn)([s.Lj],u.prototype,"detectedLocation",void 0),(0,r.gn)([s.Lj],u.prototype,"followedLocations",void 0),(0,r.gn)([l.LO],u.prototype,"settingData",void 0),(0,r.gn)([l.LO],u.prototype,"activeSuggestIndex",void 0),(0,r.gn)([l.LO],u.prototype,"showSuggests",void 0),(0,r.gn)([l.LO],u.prototype,"inputFocused",void 0),(0,r.gn)([l.LO],u.prototype,"inputClearFocused",void 0),(0,r.gn)([l.LO],u.prototype,"userQuery",void 0),(0,r.gn)([l.LO],u.prototype,"saveTelemetryTag",void 0),(0,r.gn)([l.LO],u.prototype,"cancelTelemetryTag",void 0),(0,r.gn)([l.LO],u.prototype,"detectTelemetryTag",void 0),(0,r.gn)([l.LO],u.prototype,"specifyTelemetryTag",void 0),(0,r.gn)([l.LO],u.prototype,"fahrenheitTelemetryTag",void 0),(0,r.gn)([l.LO],u.prototype,"celsiusTelemetryTag",void 0),(0,r.gn)([l.LO],u.prototype,"inputTelemetryTag",void 0),(0,r.gn)([l.LO],u.prototype,"searchClearTelemetryTag",void 0),(0,r.gn)([l.LO],u.prototype,"suggestTelemetryTag",void 0),(0,r.gn)([l.LO],u.prototype,"detectLocationTelemetryTag",void 0),(0,r.gn)([l.LO],u.prototype,"sdCardData",void 0)},29422:function(t,e,i){i.r(e),i.d(e,{AUTOSUGGEST_SUBTYPE:function(){return d},AUTOSUGGEST_TYPE:function(){return c},addLocation:function(){return A},addLocationForMobileWC:function(){return F},contains:function(){return G},dedup:function(){return _},distance:function(){return y},extractLanguageTag:function(){return N},formatLocation:function(){return B},getAutoSuggestLocationFirstLine:function(){return H},getAutoSuggestLocationSecondLine:function(){return R},getAutoSuggestionName:function(){return M},getDisplayName:function(){return W},getHyperlocalType:function(){return g},headLocation:function(){return P},hyperlocalLabeled:function(){return u},isAbnormalLatLon:function(){return $},isCurrentLocaleName:function(){return j},isHyperlocal:function(){return h},isSameLocationName:function(){return f},isSameLocationPoint:function(){return p},isValid:function(){return L},isValidLatLon:function(){return C},isValidLocationNameStructure:function(){return O},isValidLocationToSuggest:function(){return S},normalizeLatLong:function(){return T},parseDetailShortInfo:function(){return x},removeLocation:function(){return I},reset:function(){return b},resolveNameFromLocalityRegionCountry:function(){return V},shouldIgnoreSubRegion:function(){return v},showReverseName:function(){return U},toDebugString:function(){return k},toDetailShortInfo:function(){return w},toLatLong:function(){return E},transformToClientLocation:function(){return z},truncateFloatTo3Decimal:function(){return m}});var o=i(16517),a=i(54804),n=i(4596),r=i(38573);new Set(["CN","JP","TW"]);const s=new Set(["河北省","山西省","辽宁省","吉林省","黑龙江省","江苏省","浙江省","安徽省","福建省","江西省","山东省","河南省","湖北省","湖南省","广东省","海南省","四川省","贵州省","云南省","陕西省","甘肃省","青海省","台湾省","内蒙古自治区","广西壮族自治区","西藏自治区","宁夏回族自治区","新疆维吾尔自治区"]);var l;!function(t){t[t.HYPERLOCAL=101]="HYPERLOCAL",t[t.NONHYPERLOCAL=102]="NONHYPERLOCAL",t[t.UNKNOWN=103]="UNKNOWN"}(l||(l={}));const c={PLACE:"Place",LOCAL_BUSINESS:"LocalBusiness",ADDRESS:"PostalAddress"},d={ADDRESS:"Address",ROAD:"Road"};function h(t){return t.locationType===l.HYPERLOCAL||t.locationType===l.UNKNOWN}function u(t){return!!(null==t?void 0:t.locationType)&&(t.locationType===l.HYPERLOCAL||t.locationType===l.NONHYPERLOCAL||t.locationType===l.UNKNOWN)}function g(t,e){switch(t){case c.PLACE:return l.NONHYPERLOCAL;case c.LOCAL_BUSINESS:return l.HYPERLOCAL;case c.ADDRESS:return e===d.ADDRESS?l.HYPERLOCAL:e===d.ROAD?l.NONHYPERLOCAL:l.UNKNOWN;default:return l.UNKNOWN}}function p(t,e,i=!1){if(t&&e){let o=""+(t[0]||t.latitude),a=""+(e[0]||e.latitude),n=""+(t[1]||t.longitude),r=""+(e[1]||e.longitude);return i&&(o=m(o).toString(),n=m(n).toString(),a=m(a).toString(),r=m(r).toString()),o===a&&n==r}return!1}function f(t,e){return!(!t||!e)&&W(t)===W(e)}function m(t){const e="number"==typeof t?t:parseFloat(t);return Math.trunc(1e3*e)/1e3}function v(t){return(0,r.vt)(t)}function y(t,e){function i(t){const e=Math.sin(t/2);return e*e}function o(t){return t*Math.PI/180}e=e||{};const a=[o(+(t=t||{}).latitude),o(+t.longitude)],n=[o(+e.latitude),o(+e.longitude)],r=i(Math.abs(a[0]-n[0]))+Math.cos(a[0])*Math.cos(n[0])*i(Math.abs(a[1]-n[1]));return 12742*Math.asin(Math.sqrt(r))}function w(t,e=!1){return(0,r.gl)(t,e)}function x(t,e=!1){return(0,r.$i)(t,e)}function b(t){const e=t||{};Object.keys(e).forEach((t=>{e[t]=null}))}function L(t){return(0,r.JY)(t)}function C(t){return(0,r.JY)(t)}function $(t){return(void 0!==t.latitude||void 0!==t.longitude)&&(!C(t)||""+t.latitude=="-1"&&""+t.longitude=="-1")}function S(t){var e;if("zh-cn"===(null===(e=null==t?void 0:t.language)||void 0===e?void 0:e.toLowerCase())){if(!(null==t?void 0:t.country))return!1;if(null==t?void 0:t.addressLine){if(!(null==t?void 0:t.locality)&&!(null==t?void 0:t.subRegion)&&!(null==t?void 0:t.region)&&s.has(t.addressLine))return!1}else if(!(null==t?void 0:t.subRegion)&&!(null==t?void 0:t.region)&&s.has(null==t?void 0:t.locality))return!1}return!(!t||!t.addressLine&&!t.locality)}function k(t){if(t)return t.el?`el=[${t.el}]`:`lat=${t.latitude},long=${t.longitude}`}function T(t,e){return(0,r.br)(t,e)}function M(t){if(t){if(t.autoSuggestionName)return t.autoSuggestionName;return V(t,{enforceSmallLocaleFirst:!0})}}function O(t){const e=o.jG.AppType;return["windowsShell","windows","newsAndInterests","windowsNewsPlus","winWidgets"].indexOf(e)>=0?!(!t||!(t.addressLine||t.locality||t.region)):"zh-cn"===t.language||"CN"===t.isoCode?!(!t||!(t.addressLine||t.locality||t.subRegion||t.addressLine)):!(!t||!t.locality&&!t.addressLine)}function D(t,e){var i;const a=null===(i=null===o.jG||void 0===o.jG?void 0:o.jG.LocaleContentMarket)||void 0===i?void 0:i.market,n=(t.isoCode||"").toUpperCase(),r=n&&a&&a.substr(-n.length).toUpperCase()===n,s=[t.addressLine,t.locality,!v(t.isoCode)&&t.subRegion,!(null==e?void 0:e.skipRegionAndCountry)&&t.region,!(null==e?void 0:e.skipRegionAndCountry)&&!r&&t.country].filter((t=>!!t));return s.filter(((t,e)=>t!==s[e+1]))}function H(t){return D(t)[0]}function R(t){return D(t).slice(1).join(", ")}function B(t,e){const i=D(t,e);return U(t.language)&&i.reverse(),i.join(", ")}function F(t,e){if(!e)return t;if(!t||!t.length)return[e];t=t||[];const i=e.isDetected?[e,...t]:[t[0],e,...t.slice(1)],o={},a=[];for(let t=0;t<i.length;++t){const e=W(i[t]),n=`${i[t].latitude},${i[t].longitude}`;o[e]||o[n]||(0!=t&&(i[t].isDetected=!1),a.push(i[t]),o[e]=t+1,o[n]=t+1)}return a}function A(t,e){if(!e)return t;t=t||[];const i=[Object.assign({},e),...t],o={},a=[];for(let t=0;t<i.length;++t){const e=W(i[t]),n=`${i[t].latitude},${i[t].longitude}`;o[e]||o[n]||(a.push(i[t]),o[e]=t+1,o[n]=t+1)}return a}function I(t,e){if(!t||!e)return t;for(let i=0;i<t.length;++i)if(W(t[i])===W(e)||t[i].latitude===e.latitude&&t[i].longitude===e.longitude){t.splice(i,1);break}return t}function j(t){const e=a.Al.Locale;return t&&t.language&&(t.language===e||/en-/i.test(t.language)&&/en-/i.test(e))}function N(t){return(/,g=([a-z]+-[a-z]+)$/i.exec(t)||[])[1]}function P(){if(a.Al.ClientSettings&&a.Al.ClientSettings.geo_lat&&a.Al.ClientSettings.geo_long&&""!==a.Al.ClientSettings.geo_lat&&""!==a.Al.ClientSettings.geo_long){const t={latitude:a.Al.ClientSettings.geo_lat,longitude:a.Al.ClientSettings.geo_long,locality:a.Al.ClientSettings.geo_city,region:a.Al.ClientSettings.geo_subdivision,country:a.Al.ClientSettings.geo_countryname,isoCode:a.Al.ClientSettings.geo_country,isDetected:!0,language:"en-us"};return t.region=(0,n.abbreviateUSState)(t.region,t.language,t.isoCode),t.displayName=W(t),t}return null}function E(t){return`${t.latitude},${t.longitude}`}function z(t){return t?{country:t.Country,region:t.State,addressLine:t.AddressLine,locality:t.City,subRegion:t.SubRegion,postalCode:t.PostalCode,isoCode:t.CountryCode,latitude:t.Latitude,longitude:t.Longitude,displayName:void 0,language:t.Language||a.Al.Locale}:{}}function V(t,e){return(0,r.zl)(t,e)}function U(t){return(0,r.EC)(t)}function W(t,e){return(0,r.Gf)(t,e)}function G(t,e){if(!t)return!1;for(const i of t)if(p(i,e))return!0;return!1}function _(t){if(!t)return[];const e=new Set,i=[];for(const o of t){const t=W(o);e.has(t)||(e.add(t),i.push(o))}return i}},4596:function(t,e,i){i.r(e),i.d(e,{abbreviateUSState:function(){return a},toCamelCase:function(){return n}});const o={Alabama:"AL",Alaska:"AK",Arizona:"AZ",Arkansas:"AR",California:"CA",Colorado:"CO",Connecticut:"CT",Delaware:"DE",Florida:"FL",Georgia:"GA",Hawaii:"HI",Idaho:"ID",Illinois:"IL",Indiana:"IN",Iowa:"IA",Kansas:"KS",Kentucky:"KY",Louisiana:"LA",Maine:"ME",Maryland:"MD",Massachusetts:"MA",Michigan:"MI",Minnesota:"MN",Mississippi:"MS",Missouri:"MO",Montana:"MT",Nebraska:"NE",Nevada:"NV","New Hampshire":"NH","New Jersey":"NJ","New Mexico":"NM","New York":"NY","North Carolina":"NC","North Dakota":"ND",Ohio:"OH",Oklahoma:"OK",Oregon:"OR",Pennsylvania:"PA","Rhode Island":"RI","South Carolina":"SC","South Dakota":"SD",Tennessee:"TN",Texas:"TX",Utah:"UT",Vermont:"VT",Virginia:"VA",Washington:"WA","West Virginia":"WV",Wisconsin:"WI",Wyoming:"WY","American Samoa":"AS","District of Columbia":"DC",Guam:"GU","Marshall Islands":"MH","Northern Mariana Island":"MP","Puerto Rico":"PR","Virgin Islands":"VI"};function a(t,e,i){return"US"!==i&&"us"!==i||"en-us"!==e?t:o[t]||t}function n(t,e){return t&&JSON.parse(JSON.stringify(t,(function(t,i){if(i&&"object"==typeof i&&!Array.isArray(i)){const t={};for(const o in i)if(Object.hasOwnProperty.call(i,o)){t[e&&e[o]||o&&o.charAt(0).toLowerCase()+o.substring(1)]=i[o]}return t}return i})))}},38573:function(t,e,i){i.d(e,{$i:function(){return w},DF:function(){return d},EC:function(){return h},Gf:function(){return r},JY:function(){return m},XA:function(){return x},aQ:function(){return l},br:function(){return y},gl:function(){return g},mH:function(){return s},vt:function(){return f},zl:function(){return c}});var o=i(16517),a=i(65135),n=i(26415);function r(t,e){if(t)return t.displayName?t.displayName:c(t,e)}function s(t,e){const i=t&&t.displayName,o=d(t,{enforceOnlySmallLocal:!0}),r=o.length>0?o[0]:i;return r||a.M0.sendAppErrorEvent(Object.assign(Object.assign({},n.s$v),{message:`ShortlocationNameArr: ${o}.\n             CurrentLocation: ${JSON.stringify(t)}. \n             Error: Short location name in ${e} is empty.`})),r}function l(t){return`${t.latitude},${t.longitude}`}function c(t,e){return d(t,e).join(", ")}function d(t,e){const i=!e||!e.skipLocale,a=!(null==e?void 0:e.skipAddressLine),n=o.jG&&o.jG.LocaleContentMarket&&o.jG.LocaleContentMarket.market,r=(t.isoCode||"").toUpperCase(),s=r&&n&&n.substr(-r.length).toUpperCase()===r,l=f(t.isoCode)?null:t.subRegion,c=[a&&t.addressLine,i?t.locality:"",l,t.region,t.country].filter((t=>!!t));let d=0;for(;c[d+1];)c[d+1]===c[d]?c.splice(d+1,1):d++;const u="CN"==(null==n?void 0:n.toUpperCase())?1:2;if(t.country&&s&&c.length>u&&c.splice(-1,1),e&&e.enforceOnlySmallLocal&&c.length>0){return[/,/.test(c[0])?c[0].split(",")[0]:c[0]]}return e&&e.enforceSmallLocaleFirst||h(t.language)&&c.reverse(),c}function h(t){return t&&u.has(t.toUpperCase())}const u=new Set(["ZH-CN","KO-KR","JA-JP"]);function g(t,e=!1){const i={a:t.addressLine,l:t.locality,r:t.region,r2:t.subRegion,c:t.country,i:t.isoCode,t:t.locationType,g:t.language,x:e?t.longitude:void 0,y:e?t.latitude:void 0,n:o.jG.isMiniProgram?t.displayName:void 0},a=JSON.stringify(i,((t,e)=>null!=e&&""!==e?e:void 0));return"{}"!==a?a:void 0}const p=new Set(["CN","JP","TW"]);function f(t){return!p.has((t||"").toUpperCase())}function m(t){const e=parseFloat(null==t?void 0:t.latitude),i=parseFloat(null==t?void 0:t.longitude);return v(e,-85,85)&&v(i,-180,180)&&(0!==e||0!==i)}function v(t,e,i){return!isNaN(t)&&t>=e&&t<=i}function y(t,e){return{latitude:""+parseFloat(t),longitude:""+parseFloat(e)}}function w(t,e=!1){if(t)try{const i=JSON.parse(t),a={};return a.addressLine=i.a,a.locality=i.l,a.region=i.r,a.subRegion=i.r2,a.country=i.c,a.isoCode=i.i,a.locationType=i.t,a.language=i.g,e&&(a.latitude=i.y,a.longitude=i.x),o.jG.isMiniProgram&&(a.displayName=i.n),a}catch(t){return}}function x(t,e){return b(null==t?void 0:t.longitude,null==e?void 0:e.longitude)&&b(null==t?void 0:t.latitude,null==e?void 0:e.latitude)}function b(t,e){return!(!t||!e)&&L(t)===L(e)}function L(t){const e=parseFloat(t),i=Math.pow(10,6);return Math.round(e*i)/i}},38247:function(t,e,i){i.d(e,{QT:function(){return h}});var o=i(33940),a=i(28090),n=i(65620),r=i(45169),s=i(53046),l=i(45597),c=i(82636);class d extends a.e{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="neutral")}defaultSlottedContentChanged(){const t=this.defaultSlottedContent.filter((t=>t.nodeType===Node.ELEMENT_NODE));1===t.length&&t[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}}(0,o.gn)([n.Lj,(0,o.w6)("design:type",String)],d.prototype,"appearance",void 0);const h=d.compose({baseName:"anchor",baseClass:a.e,template:r.g,styles:(t,e)=>s.i`
        ${(0,l.vN)(t,e)}
    `.withBehaviors((0,c.H)("accent",l.jQ),(0,c.H)("hypertext",l.Xu),(0,c.H)("lightweight",l.vt),(0,c.H)("outline",l.O8),(0,c.H)("stealth",l.cg)),shadowOptions:{delegatesFocus:!0}})},69298:function(t,e,i){i.d(e,{Zb:function(){return w},F:function(){return b},ay:function(){return x}});var o=i(33940),a=i(65130),n=i(97186),r=i(22680),s=i(87697),l=i(65620),c=i(48657),d=i(32804),h=i(42355),u=i(42255),g=i(53046),p=i(67020),f=i(40082),m=i(87839),v=i(62734);const y=(t,e)=>g.i`
        ${(0,p.j)("block")} :host {
            --elevation: 4;
            display: block;
            contain: content;
            height: var(--card-height, 100%);
            width: var(--card-width, 100%);
            box-sizing: border-box;
            background: ${d.IfY};
            color: ${d.CHi};
            border-radius: calc(${d.rSr} * 1px);
            ${v.XC}
        }

        :host(:hover) {
            --elevation: 8;
        }

        :host(:focus-within) {
            --elevation: 8;
        }

        :host {
            content-visibility: auto;
        }
    `.withBehaviors((0,f.vF)(g.i`
                :host {
                    forced-color-adjust: none;
                    background: ${m.H.Canvas};
                    box-shadow: 0 0 0 1px ${m.H.CanvasText};
                }
            `));class w extends a.Z{cardFillColorChanged(t,e){if(e){const t=(0,n.in)(e);null!==t&&(this.neutralPaletteSource=e,d.IfY.setValueFor(this,h.w.create(t.r,t.g,t.b)))}}neutralPaletteSourceChanged(t,e){if(e){const t=(0,n.in)(e),i=h.w.create(t.r,t.g,t.b);d.yvm.setValueFor(this,u.v.create(i))}}handleChange(t,e){this.cardFillColor||d.IfY.setValueFor(this,(e=>d.abR.getValueFor(e).evaluate(e,d.IfY.getValueFor(t))))}connectedCallback(){super.connectedCallback();const t=(0,r.T)(this);if(t){const e=s.y$.getNotifier(t);e.subscribe(this,"fillColor"),e.subscribe(this,"neutralPalette"),this.handleChange(t,"fillColor")}}}(0,o.gn)([(0,l.Lj)({attribute:"card-fill-color",mode:"fromView"}),(0,o.w6)("design:type",String)],w.prototype,"cardFillColor",void 0),(0,o.gn)([(0,l.Lj)({attribute:"neutral-palette-source",mode:"fromView"}),(0,o.w6)("design:type",String)],w.prototype,"neutralPaletteSource",void 0);const x=w.compose({baseName:"card",baseClass:a.Z,template:c.O,styles:y}),b=y},60712:function(t,e,i){i.d(e,{oM:function(){return y}});var o=i(20005),a=i(65620),n=i(87697),r=i(15983),s=i(36153),l=i(65825),c=i(11433),d=i(48839);class h extends d.I{constructor(){super(...arguments),this.orientation=r.i.horizontal,this.radioChangeHandler=t=>{const e=t.target;e.checked&&(this.slottedRadioButtons.forEach((t=>{t!==e&&(t.checked=!1,this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"))})),this.selectedRadio=e,this.value=e.value,e.setAttribute("tabindex","0"),this.focusedRadio=e),t.stopPropagation()},this.moveToRadioByIndex=(t,e)=>{const i=t[e];this.isInsideToolbar||(i.setAttribute("tabindex","0"),i.readOnly?this.slottedRadioButtons.forEach((t=>{t!==i&&t.setAttribute("tabindex","-1")})):(i.checked=!0,this.selectedRadio=i)),this.focusedRadio=i,i.focus()},this.moveRightOffGroup=()=>{var t;null===(t=this.nextElementSibling)||void 0===t||t.focus()},this.moveLeftOffGroup=()=>{var t;null===(t=this.previousElementSibling)||void 0===t||t.focus()},this.focusOutHandler=t=>{const e=this.slottedRadioButtons,i=t.target,o=null!==i?e.indexOf(i):0,a=this.focusedRadio?e.indexOf(this.focusedRadio):-1;return(0===a&&o===a||a===e.length-1&&a===o)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),e.forEach((t=>{t!==this.selectedRadio&&t.setAttribute("tabindex","-1")})))):(this.focusedRadio=e[0],this.focusedRadio.setAttribute("tabindex","0"),e.forEach((t=>{t!==this.focusedRadio&&t.setAttribute("tabindex","-1")})))),!0},this.clickHandler=t=>{const e=t.target;if(e){const t=this.slottedRadioButtons;e.checked||0===t.indexOf(e)?(e.setAttribute("tabindex","0"),this.selectedRadio=e):(e.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=e}t.preventDefault()},this.shouldMoveOffGroupToTheRight=(t,e,i)=>t===e.length&&this.isInsideToolbar&&i===s.mr,this.shouldMoveOffGroupToTheLeft=(t,e)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&e===s.BE,this.checkFocusedRadio=()=>{null===this.focusedRadio||this.focusedRadio.readOnly||this.focusedRadio.checked||(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(i,e,t.key))this.moveRightOffGroup();else for(i===e.length&&(i=0);i<e.length&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;if(i+1>=e.length){if(this.isInsideToolbar)break;i=0}else i+=1}},this.moveLeft=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)-1:0,i=i<0?e.length-1:i,this.shouldMoveOffGroupToTheLeft(e,t.key))this.moveLeftOffGroup();else for(;i>=0&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;i-1<0?i=e.length-1:i-=1}},this.keydownHandler=t=>{const e=t.key;if(e in s.uf&&this.isInsideFoundationToolbar)return!0;switch(e){case s.kL:this.checkFocusedRadio();break;case s.mr:case s.iF:this.direction===l.N.ltr?this.moveRight(t):this.moveLeft(t);break;case s.BE:case s.SB:this.direction===l.N.ltr?this.moveLeft(t):this.moveRight(t);break;default:return!0}}}readOnlyChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((t=>{this.readOnly?t.readOnly=!0:t.readOnly=!1}))}disabledChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((t=>{this.disabled?t.disabled=!0:t.disabled=!1}))}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach((t=>{t.setAttribute("name",this.name)}))}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach((t=>{t.value===this.value&&(t.checked=!0,this.selectedRadio=t)})),this.$emit("change")}slottedRadioButtonsChanged(t,e){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var t;return null!==(t=this.parentToolbar)&&void 0!==t&&t}get isInsideFoundationToolbar(){var t;return!!(null===(t=this.parentToolbar)||void 0===t?void 0:t.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=(0,c.M)(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach((t=>{t.removeEventListener("change",this.radioChangeHandler)}))}setupRadioButtons(){const t=this.slottedRadioButtons.filter((t=>t.hasAttribute("checked"))),e=t?t.length:0;if(e>1){t[e-1].checked=!0}let i=!1;if(this.slottedRadioButtons.forEach((t=>{void 0!==this.name&&t.setAttribute("name",this.name),this.disabled&&(t.disabled=!0),this.readOnly&&(t.readOnly=!0),this.value&&this.value===t.value?(this.selectedRadio=t,this.focusedRadio=t,t.checked=!0,t.setAttribute("tabindex","0"),i=!0):(this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"),t.checked=!1),t.addEventListener("change",this.radioChangeHandler)})),void 0===this.value&&this.slottedRadioButtons.length>0){const t=this.slottedRadioButtons.filter((t=>t.hasAttribute("checked"))),e=null!==t?t.length:0;if(e>0&&!i){const i=t[e-1];i.checked=!0,this.focusedRadio=i,i.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}(0,o.gn)([(0,a.Lj)({attribute:"readonly",mode:"boolean"})],h.prototype,"readOnly",void 0),(0,o.gn)([(0,a.Lj)({attribute:"disabled",mode:"boolean"})],h.prototype,"disabled",void 0),(0,o.gn)([a.Lj],h.prototype,"name",void 0),(0,o.gn)([a.Lj],h.prototype,"value",void 0),(0,o.gn)([a.Lj],h.prototype,"orientation",void 0),(0,o.gn)([n.LO],h.prototype,"childItems",void 0),(0,o.gn)([n.LO],h.prototype,"slottedRadioButtons",void 0);var u=i(39181),g=i(90960),p=i(74009);var f=i(53046),m=i(67020),v=i(32804);const y=h.compose({baseName:"radio-group",template:(t,e)=>u.d`
    <template
        role="radiogroup"
        aria-disabled="${t=>t.disabled}"
        aria-readonly="${t=>t.readOnly}"
        @click="${(t,e)=>t.clickHandler(e.event)}"
        @keydown="${(t,e)=>t.keydownHandler(e.event)}"
        @focusout="${(t,e)=>t.focusOutHandler(e.event)}"
    >
        <slot name="label"></slot>
        <div
            class="positioning-region ${t=>t.orientation===r.i.horizontal?"horizontal":"vertical"}"
            part="positioning-region"
        >
            <slot
                ${(0,g.Q)({property:"slottedRadioButtons",filter:(0,p.R)("[role=radio]")})}
            ></slot>
        </div>
    </template>
`,styles:(t,e)=>f.i`
    ${(0,m.j)("flex")} :host {
        align-items: flex-start;
        margin: calc(${v._5n} * 1px) 0;
        flex-direction: column;
    }

    .positioning-region {
        display: flex;
        flex-wrap: wrap;
    }

    :host([orientation="vertical"]) .positioning-region {
        flex-direction: column;
    }

    :host([orientation="horizontal"]) .positioning-region {
        flex-direction: row;
    }
`})},65033:function(t,e,i){i.d(e,{d$:function(){return L}});var o=i(20005),a=i(65620),n=i(87697),r=i(36153),s=i(82500),l=i(48839);class c extends l.I{}class d extends((0,s.V2)(c)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class h extends d{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{if(t.key!==r.BI)return!0;this.checked||this.readOnly||(this.checked=!0)},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var t;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t,this.dirtyChecked=!1))}connectedCallback(){var t,e;super.connectedCallback(),this.validate(),"radiogroup"!==(null===(t=this.parentElement)||void 0===t?void 0:t.getAttribute("role"))&&null===this.getAttribute("tabindex")&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e,this.dirtyChecked=!1))}isInsideRadioGroup(){return null!==this.closest("[role=radiogroup]")}clickHandler(t){this.disabled||this.readOnly||this.checked||(this.checked=!0)}}(0,o.gn)([(0,a.Lj)({attribute:"readonly",mode:"boolean"})],h.prototype,"readOnly",void 0),(0,o.gn)([n.LO],h.prototype,"name",void 0),(0,o.gn)([n.LO],h.prototype,"defaultSlottedNodes",void 0);var u=i(39181),g=i(90960);var p=i(53046),f=i(67020),m=i(56201),v=i(37139),y=i(40082),w=i(87839),x=i(2658),b=i(32804);const L=h.compose({baseName:"radio",template:(t,e)=>u.d`
    <template
        role="radio"
        class="${t=>t.checked?"checked":""} ${t=>t.readOnly?"readonly":""}"
        aria-checked="${t=>t.checked}"
        aria-required="${t=>t.required}"
        aria-disabled="${t=>t.disabled}"
        aria-readonly="${t=>t.readOnly}"
        @keypress="${(t,e)=>t.keypressHandler(e.event)}"
        @click="${(t,e)=>t.clickHandler(e.event)}"
    >
        <div part="control" class="control">
            <slot name="checked-indicator">
                ${e.checkedIndicator||""}
            </slot>
        </div>
        <label
            part="label"
            class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"
        >
            <slot ${(0,g.Q)("defaultSlottedNodes")}></slot>
        </label>
    </template>
`,styles:(t,e)=>p.i`
        ${(0,f.j)("inline-flex")} :host {
            --input-size: calc((${x.i} / 2) + ${b._5n});
            align-items: center;
            outline: none;
            margin: calc(${b._5n} * 1px) 0;
            ${""} user-select: none;
            position: relative;
            flex-direction: row;
            transition: all 0.2s ease-in-out;
        }

        .control {
            position: relative;
            width: calc(var(--input-size) * 1px);
            height: calc(var(--input-size) * 1px);
            box-sizing: border-box;
            border-radius: 50%;
            border: calc(${b.Han} * 1px) solid ${b.rU8};
            background: ${b._Bj};
            outline: none;
            cursor: pointer;
        }

        .label__hidden {
            display: none;
            visibility: hidden;
        }

        .label {
            font-family: ${b.SVJ};
            color: ${b.CHi};
            ${""} padding-inline-start: calc(${b._5n} * 2px + 2px);
            margin-inline-end: calc(${b._5n} * 2px + 2px);
            cursor: pointer;
            font-size: ${b.cSu};
            line-height: ${b.RUt};
        }

        .control,
        .checked-indicator {
            flex-shrink: 0;
        }

        .checked-indicator {
            position: absolute;
            top: 5px;
            left: 5px;
            right: 5px;
            bottom: 5px;
            border-radius: 50%;
            display: inline-block;
            background: ${b.CHi};
            fill: ${b.CHi};
            opacity: 0;
            pointer-events: none;
        }

        :host(:enabled) .control:hover {
            background: ${b.Tm7};
            border-color: ${b.gKw};
        }

        :host(:enabled) .control:active {
            background: ${b.Ium};
            border-color: ${b.ekh};
        }

        :host(:${m.b}) .control {
            box-shadow: 0 0 0 2px ${b.IfY}, 0 0 0 4px ${b.yGg};
            border-color: ${b.yGg};
        }

        :host(.disabled) .label,
        :host(.readonly) .label,
        :host(.readonly) .control,
        :host(.disabled) .control {
            cursor: ${v.H};
        }

        :host(.checked) .checked-indicator {
            opacity: 1;
        }

        :host(.disabled) {
            opacity: ${b.VFZ};
        }
    `.withBehaviors((0,y.vF)(p.i`
                .control {
                    forced-color-adjust: none;
                    border-color: ${w.H.FieldText};
                    background: ${w.H.Field};
                }
                :host(:enabled) .control:hover,
                .control:active {
                    border-color: ${w.H.Highlight};
                    background: ${w.H.Field};
                }
                :host(:${m.b}) .control {
                    border-color: ${w.H.Highlight};
                    box-shadow: 0 0 0 2px ${w.H.Field},
                        0 0 0 4px ${w.H.FieldText};
                }
                :host(.checked:${m.b}:enabled) .control {
                    border-color: ${w.H.Highlight};
                    box-shadow: 0 0 0 2px ${w.H.Field},
                        0 0 0 4px ${w.H.FieldText};
                }
                :host(.checked:enabled) .control:hover,
                .control:active {
                    border-color: ${w.H.Highlight};
                    background: ${w.H.Highlight};
                }
                :host(.checked) .checked-indicator {
                    background: ${w.H.Highlight};
                    fill: ${w.H.Highlight};
                }
                :host(.checked) .control:hover .checked-indicator {
                    background: ${w.H.HighlightText};
                    fill: ${w.H.HighlightText};
                }
                :host(.disabled) {
                    forced-color-adjust: none;
                    opacity: 1;
                }
                :host(.disabled) .label {
                    color: ${w.H.GrayText};
                }
                :host(.disabled) .control,
                :host(.checked.disabled) .control:hover,
                .control:active {
                    background: ${w.H.Field};
                    border-color: ${w.H.GrayText};
                }
                :host(.disabled) .checked-indicator,
                :host(.checked.disabled) .control:hover .checked-indicator {
                    fill: ${w.H.GrayText};
                    background: ${w.H.GrayText};
                }
            `)),checkedIndicator:'\n    <div part="checked-indicator" class="checked-indicator"></div>\n  '})},28090:function(t,e,i){i.d(e,{e:function(){return d},m:function(){return h}});var o=i(20005),a=i(65620),n=i(87697),r=i(48839),s=i(7775),l=i(51208),c=i(86076);class d extends r.I{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=this.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}(0,o.gn)([a.Lj],d.prototype,"download",void 0),(0,o.gn)([a.Lj],d.prototype,"href",void 0),(0,o.gn)([a.Lj],d.prototype,"hreflang",void 0),(0,o.gn)([a.Lj],d.prototype,"ping",void 0),(0,o.gn)([a.Lj],d.prototype,"referrerpolicy",void 0),(0,o.gn)([a.Lj],d.prototype,"rel",void 0),(0,o.gn)([a.Lj],d.prototype,"target",void 0),(0,o.gn)([a.Lj],d.prototype,"type",void 0),(0,o.gn)([n.LO],d.prototype,"defaultSlottedContent",void 0);class h{}(0,o.gn)([(0,a.Lj)({attribute:"aria-expanded"})],h.prototype,"ariaExpanded",void 0),(0,c.e)(h,s.v),(0,c.e)(d,l.hW,h)},45169:function(t,e,i){i.d(e,{g:function(){return s}});var o=i(39181),a=i(58952),n=i(90960),r=i(51208);const s=(t,e)=>o.d`
    <a
        class="control"
        part="control"
        download="${t=>t.download}"
        href="${t=>t.href}"
        hreflang="${t=>t.hreflang}"
        ping="${t=>t.ping}"
        referrerpolicy="${t=>t.referrerpolicy}"
        rel="${t=>t.rel}"
        target="${t=>t.target}"
        type="${t=>t.type}"
        aria-atomic="${t=>t.ariaAtomic}"
        aria-busy="${t=>t.ariaBusy}"
        aria-controls="${t=>t.ariaControls}"
        aria-current="${t=>t.ariaCurrent}"
        aria-describedby="${t=>t.ariaDescribedby}"
        aria-details="${t=>t.ariaDetails}"
        aria-disabled="${t=>t.ariaDisabled}"
        aria-errormessage="${t=>t.ariaErrormessage}"
        aria-expanded="${t=>t.ariaExpanded}"
        aria-flowto="${t=>t.ariaFlowto}"
        aria-haspopup="${t=>t.ariaHaspopup}"
        aria-hidden="${t=>t.ariaHidden}"
        aria-invalid="${t=>t.ariaInvalid}"
        aria-keyshortcuts="${t=>t.ariaKeyshortcuts}"
        aria-label="${t=>t.ariaLabel}"
        aria-labelledby="${t=>t.ariaLabelledby}"
        aria-live="${t=>t.ariaLive}"
        aria-owns="${t=>t.ariaOwns}"
        aria-relevant="${t=>t.ariaRelevant}"
        aria-roledescription="${t=>t.ariaRoledescription}"
        ${(0,a.i)("control")}
    >
        ${(0,r.m9)(t,e)}
        <span class="content" part="content">
            <slot ${(0,n.Q)("defaultSlottedContent")}></slot>
        </span>
        ${(0,r.LC)(t,e)}
    </a>
`},65130:function(t,e,i){i.d(e,{Z:function(){return a}});var o=i(48839);class a extends o.I{}},48657:function(t,e,i){i.d(e,{O:function(){return a}});var o=i(39181);const a=(t,e)=>o.d`
    <slot></slot>
`}}]);A
Eo