Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@warp-ds/elements

Package Overview
Dependencies
Maintainers
7
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@warp-ds/elements - npm Package Compare versions

Comparing version 1.2.0-next.6 to 1.2.0-next.7

dist/packages/expandable/locales/en/messages.d.mts

14

dist/packages/affix/index.js

@@ -1,14 +0,16 @@

var k=Object.defineProperty;var y=(a,l,c)=>l in a?k(a,l,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[l]=c;var s=(a,l,c)=>(y(a,typeof l!="symbol"?l+"":l,c),c);import{html as b}from"lit";import h from"@warp-ds/elements-core";import{ifDefined as m}from"lit/directives/if-defined.js";var u={box:"group block relative break-words last-child:mb-0 p-16 rounded-8",bleed:"-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8",info:"i-bg-$color-box-info-background i-text-$color-box-info-text",neutral:"i-bg-$color-box-neutral-background i-text-$color-box-neutral-text",bordered:"border-2 i-border-$color-box-bordered-border i-bg-$color-box-bordered-background i-text-$color-box-bordered-text",infoClickable:"hover:i-bg-$color-box-info-background-hover active:i-bg-$color-box-info-background-hover",neutralClickable:"hover:i-bg-$color-box-neutral-background-hover active:i-bg-$color-box-neutral-background-hover",borderedClickable:"hover:i-bg-$color-box-bordered-background-hover active:i-bg-$color-box-bordered-background-hover hover:i-border-$color-box-bordered-border-hover active:i-border-$color-box-bordered-border-hover"};var w="focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block",Q={expandable:"will-change-height",expandableTitle:"font-bold i-text-$color-expandable-title-text",expandableBox:"i-bg-$color-expandable-background hover:i-bg-$color-expandable-background-hover py-0 px-0 "+u.box,expandableBleed:u.bleed,chevron:"inline-block align-middle i-text-$color-expandable-icon",chevronNonBox:"relative left-8",chevronBox:"absolute right-16",chevronTransform:"transform transition-transform transform-gpu ease-in-out",chevronExpand:"-rotate-180",chevronCollapse:"rotate-180",expansion:"overflow-hidden",expansionNotExpanded:"h-0 invisible",button:w+" hover:underline focus:underline",buttonBox:"w-full text-left relative inline-flex items-center "+u.box,paddingTop:"pt-0",title:"flex justify-between items-center",titleType:"h4"},n="font-bold focusable justify-center transition-colors ease-in-out",i={primary:"i-text-$color-button-primary-text hover:i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover active:i-bg-$color-button-primary-background-active",secondary:"i-text-$color-button-secondary-text hover:i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active",utility:"i-text-$color-button-utility-text hover:i-text-$color-button-utility-text i-bg-$color-button-utility-background i-border-$color-button-utility-border hover:i-bg-$color-button-utility-background hover:i-border-$color-button-utility-border-hover active:i-border-$color-button-utility-border-active",destructive:"i-bg-$color-button-negative-background i-text-$color-button-negative-text hover:i-text-$color-button-negative-text hover:i-bg-$color-button-negative-background-hover active:i-bg-$color-button-negative-background-active",pill:"i-text-$color-button-pill-icon hover:i-text-$color-button-pill-icon-hover active:i-text-$color-button-pill-icon-active i-bg-$color-button-pill-background hover:i-bg-$color-button-pill-background-hover active:i-bg-$color-button-pill-background-active",disabled:"i-text-$color-button-disabled-text i-bg-$color-button-disabled-background",quiet:"i-bg-$color-button-quiet-background i-text-$color-button-quiet-text hover:i-bg-$color-button-quiet-background-hover active:i-bg-$color-button-quiet-background-active",utilityQuiet:"i-text-$color-button-utility-quiet-text i-bg-$color-button-utility-quiet-background hover:i-bg-$color-button-utility-quiet-background-hover",negativeQuiet:"i-bg-$color-button-negative-quiet-background i-text-$color-button-negative-quiet-text hover:i-bg-$color-button-negative-quiet-background-hover active:i-bg-$color-button-negative-quiet-background-active",loading:"i-text-$color-button-loading-text i-bg-$color-button-loading-background",link:"i-text-$color-button-link-text"},t={primary:`border-0 rounded-8 ${n}`,secondary:`border-2 rounded-8 ${n}`,utility:`border rounded-4 ${n}`,negative:`border-0 rounded-8 ${n}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${n}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline ${i.link}`},r={xsmall:"py-6 px-16",small:"py-8 px-16",medium:"py-10 px-14",large:"py-12 px-16",utility:"py-[11px] px-[15px]",smallUtility:"py-[7px] px-[15px]",pill:"min-h-[44px] min-w-[44px]",pillSmall:"min-h-32 min-w-32",link:"p-0"},o={medium:"text-m leading-[24]",xsmall:"text-xs"},e={inProgress:`border-transparent animate-inprogress pointer-events-none ${i.loading}`,quiet:`border-0 rounded-8 ${n}`,utilityQuiet:`border-0 rounded-4 ${n}`,negativeQuiet:`border-0 rounded-8 ${n}`,isDisabled:`font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${i.disabled}`},B={secondary:`${r.medium} ${o.medium} ${t.secondary} ${i.secondary}`,secondaryHref:`${r.medium} ${o.medium} ${t.secondary} ${i.secondary}`,secondaryDisabled:`${r.medium} ${o.medium} ${t.secondary} ${e.isDisabled}`,secondarySmall:`${o.xsmall} ${r.xsmall} ${t.secondary} ${i.secondary}`,secondarySmallDisabled:`${o.xsmall} ${r.xsmall} ${t.secondary} ${e.isDisabled}`,secondaryQuiet:`${r.medium} ${o.medium} ${e.quiet} ${i.quiet}`,secondaryQuietDisabled:`${r.medium} ${o.medium} ${e.quiet} ${e.isDisabled}`,secondarySmallQuiet:`${o.xsmall} ${r.xsmall} ${e.quiet} ${i.quiet}`,secondarySmallQuietDisabled:`${o.xsmall} ${r.xsmall} ${e.quiet} ${e.isDisabled}`,secondaryLoading:`${r.medium} ${o.medium} ${t.secondary} ${e.inProgress}`,secondarySmallLoading:`${o.xsmall} ${r.xsmall} ${t.secondary} ${e.inProgress}`,secondarySmallQuietLoading:`${o.xsmall} ${r.xsmall} ${e.quiet} ${e.inProgress}`,secondaryQuietLoading:`${r.medium} ${o.medium} ${e.quiet} ${e.inProgress}`,primary:`${r.large} ${o.medium} ${t.primary} ${i.primary}`,primaryDisabled:`${r.large} ${o.medium} ${e.isDisabled} ${t.primary}`,primarySmall:`${r.small} ${o.xsmall} ${t.primary} ${i.primary}`,primarySmallDisabled:`${r.small} ${o.xsmall} ${e.isDisabled} ${t.primary} `,primaryQuiet:`${r.large} ${o.medium} ${e.quiet} ${i.quiet}`,primaryQuietDisabled:`${r.large} ${o.medium} ${e.quiet} ${e.isDisabled}`,primarySmallQuiet:`${r.small} ${o.xsmall} ${e.quiet} ${i.quiet}`,primarySmallQuietDisabled:`${r.small} ${o.xsmall} ${e.quiet} ${e.isDisabled}`,primaryLoading:`${r.large} ${o.medium} ${e.inProgress} ${t.primary}`,primarySmallLoading:`${r.small} ${o.xsmall} ${e.inProgress} ${t.primary}`,primarySmallQuietLoading:`${r.small} ${o.xsmall} ${e.quiet} ${e.inProgress} ${t.primary}`,primaryQuietLoading:`${r.large} ${o.medium} ${e.quiet} ${e.inProgress}`,utility:`${r.utility} ${o.medium} ${t.utility} ${i.utility}`,utilityDisabled:`${r.utility} ${o.medium} ${t.utility} ${e.isDisabled}`,utilityQuiet:`${r.large} ${o.medium} ${e.utilityQuiet} ${i.utilityQuiet}`,utilityQuietDisabled:`${r.large} ${o.medium} ${e.utilityQuiet} ${e.isDisabled}`,utilitySmall:`${r.smallUtility} ${o.xsmall} ${t.utility} ${i.utility}`,utilitySmallDisabled:`${r.smallUtility} ${o.xsmall} ${t.utility} ${e.isDisabled}`,utilitySmallQuiet:`${r.smallUtility} ${o.xsmall} ${e.utilityQuiet} ${i.utilityQuiet}`,utilitySmallQuietDisabled:`${r.smallUtility} ${o.xsmall} ${e.utilityQuiet} ${e.isDisabled}`,utilityLoading:`${r.large} ${o.medium} ${t.utility} ${e.inProgress}`,utilitySmallLoading:`${r.smallUtility} ${o.xsmall} ${t.utility} ${e.inProgress}`,utilityQuietLoading:`${r.large} ${o.medium} ${e.inProgress} ${e.utilityQuiet}`,utilitySmallQuietLoading:`${r.smallUtility} ${o.xsmall} ${e.inProgress} ${e.utilityQuiet}`,negative:`${r.large} ${o.medium} ${t.negative} ${i.destructive}`,negativeDisabled:`${r.large} ${o.medium} ${t.negative} ${e.isDisabled}`,negativeQuiet:`${r.large} ${o.medium} ${e.negativeQuiet} ${i.negativeQuiet}`,negativeQuietDisabled:`${r.large} ${o.medium} ${e.negativeQuiet}${e.isDisabled}`,negativeSmall:`${r.small} ${o.xsmall} ${t.negative} ${i.destructive}`,negativeSmallDisabled:`${r.small} ${o.xsmall} ${t.negative} ${e.isDisabled}`,negativeSmallQuiet:`${r.small} ${o.xsmall} ${e.negativeQuiet} ${i.negativeQuiet}`,negativeSmallQuietDisabled:`${r.small} ${o.xsmall} ${e.negativeQuiet} ${e.isDisabled}`,negativeLoading:`${r.large} ${o.medium} ${t.negative} ${e.inProgress}`,negativeSmallLoading:`${r.small} ${o.xsmall} ${e.inProgress} ${t.negative}`,negativeQuietLoading:`${r.large} ${o.medium} ${e.negativeQuiet} ${t.negative} ${e.inProgress}`,negativeSmallQuietLoading:`${r.small} ${o.xsmall} ${e.negativeQuiet} ${e.inProgress}`,pill:`${r.pill} ${o.medium} ${t.pill} ${i.pill}`,pillSmall:`${r.pillSmall} ${o.xsmall} ${t.pill} ${i.pill}`,pillLoading:`${r.pill} ${o.medium} ${t.pill} ${e.inProgress}`,pillSmallLoading:`${r.pillSmall} ${o.xsmall} ${t.pill} ${e.inProgress}`,link:`${r.link} ${o.medium} ${t.link}`,linkSmall:`${r.link} ${o.xsmall} ${t.link}`,linkAsButton:"inline-block hover:no-underline text-center",a11y:"sr-only",fullWidth:"w-full max-w-full",contentWidth:"max-w-max"};var q={transparentBg:'before:i-bg-$color-modal-backdrop-background before:content-[""] before:absolute before:top-0 before:bottom-0 before:left-0 before:right-0 before:opacity-25',backdrop:"fixed inset-0 flex sm:place-content-center sm:place-items-center items-end z-20 [--w-modal-max-height:80%] [--w-modal-width:640px]",modal:"pb-safe-[32] i-shadow-$shadow-modal max-h-[--w-modal-max-height] min-h-[--w-modal-min-height] w-[--w-modal-width] h-[--w-modal-height] relative transition-300 ease-in-out backface-hidden will-change-height rounded-8 mx-0 sm:mx-16 i-bg-$color-modal-background flex flex-col overflow-hidden outline-none space-y-16 pt-8 sm:pt-32 sm:pb-32 rounded-b-0 sm:rounded-b-8",content:"block overflow-y-auto overflow-x-hidden last-child:mb-0 grow shrink px-16 sm:px-32 relative",footer:"flex justify-end shrink-0 px-16 sm:px-32",transitionTitle:"transition-all duration-300",transitionTitleCenter:"justify-self-center",transitionTitleColSpan:"col-span-2",title:"-mt-4 sm:-mt-8 h-40 sm:h-48 grid gap-8 sm:gap-16 grid-cols-[auto_1fr_auto] items-center px-16 sm:px-32 border-b sm:border-b-0 shrink-0",titleText:"mb-0 h4 sm:h3",titleButton:`${o.medium} ${t.pill} ${i.pill} sm:min-h-[44px] sm:min-w-[44px] min-h-[32px] min-w-[32px]`,titleButtonLeft:"-ml-8 sm:-ml-12 justify-self-start",titleButtonRight:"-mr-8 sm:-mr-12 justify-self-end",titleButtonIcon:"h-16 w-16 sm:h-24 sm:w-24",titleButtonIconRotated:"transform rotate-90"};var D={label:"antialiased block relative text-s font-bold pb-4 cursor-pointer i-text-$color-label-text",labelInvalid:"i-text-$color-label-text-negative",optional:"pl-8 font-normal text-s i-text-$color-label-optional-text"};var g="absolute top-0 bottom-0 flex justify-center items-center focusable focus:[--w-outline-offset:-2px] bg-transparent ",p={wrapper:g+"right-0",wrapperWithLabel:"w-max pr-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"},$={wrapper:g+"left-0",wrapperWithLabel:"w-max pl-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"};var T={toggle:"absolute inset-0 h-full w-full appearance-none cursor-pointer focusable focusable-inset",label:`px-12 ${D.label} py-8! cursor-pointer focusable focusable-inset`,buttonOrLink:"bg-transparent focusable",buttonOrLinkStretch:"inset-0 absolute"};var _={base:"border-2 relative flex items-start",tooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background i-shadow-$shadow-tooltip i-text-$color-tooltip-text rounded-4 py-6 px-8",callout:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8",highlight:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8 drop-shadow-m",popover:"i-bg-$color-popover-background i-border-$color-popover-background i-text-$color-popover-paragraph-text rounded-8 p-16 drop-shadow-m",arrowBase:"absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",arrowDirectionLeft:"-left-[8px]",arrowDirectionRight:"-right-[8px]",arrowDirectionBottom:"-bottom-[8px]",arrowDirectionTop:"-top-[8px]",arrowTooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background",arrowCallout:"i-bg-$color-callout-background i-border-$color-callout-border",arrowPopover:"i-bg-$color-popover-background i-border-$color-popover-background",arrowHighlight:"i-bg-$color-callout-background i-border-$color-callout-border",content:"last-child:mb-0",notCallout:"absolute z-50",closeBtn:`${o.medium} ${t.pill} ${i.pill} justify-self-end -mr-8 ml-8`};import{classMap as L}from"lit/directives/class-map.js";function x(a){let l={};for(let[c,v]of Object.entries(a))for(let f of c.split(" "))l[f]=v;return L(l)}var d=class extends h{get _classBase(){return this.slot==="suffix"?p:$}get _classes(){return x({[this._classBase.wrapper]:!0,[this._classBase.wrapperWithLabel]:this.label,[this._classBase.wrapperWithIcon]:!this.label})}get _searchButton(){return b`
<button aria-label="${m(this.ariaLabel)}" class="${this._classes}" type="submit">
var xe=Object.defineProperty;var ye=(e,r,o)=>r in e?xe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o;var q=(e,r,o)=>(ye(e,typeof r!="symbol"?r+"":r,o),o);import{html as N}from"lit";import $e from"@warp-ds/elements-core";import{ifDefined as ve}from"lit/directives/if-defined.js";var U={box:"group block relative break-words last-child:mb-0 p-16 rounded-8",bleed:"-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8",info:"i-bg-$color-box-info-background i-text-$color-box-info-text",neutral:"i-bg-$color-box-neutral-background i-text-$color-box-neutral-text",bordered:"border-2 i-border-$color-box-bordered-border i-bg-$color-box-bordered-background i-text-$color-box-bordered-text",infoClickable:"hover:i-bg-$color-box-info-background-hover active:i-bg-$color-box-info-background-hover",neutralClickable:"hover:i-bg-$color-box-neutral-background-hover active:i-bg-$color-box-neutral-background-hover",borderedClickable:"hover:i-bg-$color-box-bordered-background-hover active:i-bg-$color-box-bordered-background-hover hover:i-border-$color-box-bordered-border-hover active:i-border-$color-box-bordered-border-hover"};var ke="focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block",Nr={expandable:"will-change-height",expandableTitle:"font-bold i-text-$color-expandable-title-text",expandableBox:"i-bg-$color-expandable-background hover:i-bg-$color-expandable-background-hover py-0 px-0 "+U.box,expandableBleed:U.bleed,chevron:"inline-block align-middle i-text-$color-expandable-icon",chevronNonBox:"relative left-8",chevronBox:"absolute right-16",chevronTransform:"transform transition-transform transform-gpu ease-in-out",chevronExpand:"-rotate-180",chevronCollapse:"rotate-180",expansion:"overflow-hidden",expansionNotExpanded:"h-0 invisible",button:ke+" hover:underline focus:underline",buttonBox:"w-full text-left relative inline-flex items-center "+U.box,paddingTop:"pt-0",title:"flex justify-between items-center",titleType:"h4"},w="font-bold focusable justify-center transition-colors ease-in-out",f={primary:"i-text-$color-button-primary-text hover:i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover active:i-bg-$color-button-primary-background-active",secondary:"i-text-$color-button-secondary-text hover:i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active",utility:"i-text-$color-button-utility-text hover:i-text-$color-button-utility-text i-bg-$color-button-utility-background i-border-$color-button-utility-border hover:i-bg-$color-button-utility-background hover:i-border-$color-button-utility-border-hover active:i-border-$color-button-utility-border-active",destructive:"i-bg-$color-button-negative-background i-text-$color-button-negative-text hover:i-text-$color-button-negative-text hover:i-bg-$color-button-negative-background-hover active:i-bg-$color-button-negative-background-active",pill:"i-text-$color-button-pill-icon hover:i-text-$color-button-pill-icon-hover active:i-text-$color-button-pill-icon-active i-bg-$color-button-pill-background hover:i-bg-$color-button-pill-background-hover active:i-bg-$color-button-pill-background-active",disabled:"i-text-$color-button-disabled-text i-bg-$color-button-disabled-background",quiet:"i-bg-$color-button-quiet-background i-text-$color-button-quiet-text hover:i-bg-$color-button-quiet-background-hover active:i-bg-$color-button-quiet-background-active",utilityQuiet:"i-text-$color-button-utility-quiet-text i-bg-$color-button-utility-quiet-background hover:i-bg-$color-button-utility-quiet-background-hover",negativeQuiet:"i-bg-$color-button-negative-quiet-background i-text-$color-button-negative-quiet-text hover:i-bg-$color-button-negative-quiet-background-hover active:i-bg-$color-button-negative-quiet-background-active",loading:"i-text-$color-button-loading-text i-bg-$color-button-loading-background",link:"i-text-$color-button-link-text"},u={primary:`border-0 rounded-8 ${w}`,secondary:`border-2 rounded-8 ${w}`,utility:`border rounded-4 ${w}`,negative:`border-0 rounded-8 ${w}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${w}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline ${f.link}`},s={xsmall:"py-6 px-16",small:"py-8 px-16",medium:"py-10 px-14",large:"py-12 px-16",utility:"py-[11px] px-[15px]",smallUtility:"py-[7px] px-[15px]",pill:"min-h-[44px] min-w-[44px]",pillSmall:"min-h-32 min-w-32",link:"p-0"},c={medium:"text-m leading-[24]",xsmall:"text-xs"},n={inProgress:`border-transparent animate-inprogress pointer-events-none ${f.loading}`,quiet:`border-0 rounded-8 ${w}`,utilityQuiet:`border-0 rounded-4 ${w}`,negativeQuiet:`border-0 rounded-8 ${w}`,isDisabled:`font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${f.disabled}`},Br={secondary:`${s.medium} ${c.medium} ${u.secondary} ${f.secondary}`,secondaryHref:`${s.medium} ${c.medium} ${u.secondary} ${f.secondary}`,secondaryDisabled:`${s.medium} ${c.medium} ${u.secondary} ${n.isDisabled}`,secondarySmall:`${c.xsmall} ${s.xsmall} ${u.secondary} ${f.secondary}`,secondarySmallDisabled:`${c.xsmall} ${s.xsmall} ${u.secondary} ${n.isDisabled}`,secondaryQuiet:`${s.medium} ${c.medium} ${n.quiet} ${f.quiet}`,secondaryQuietDisabled:`${s.medium} ${c.medium} ${n.quiet} ${n.isDisabled}`,secondarySmallQuiet:`${c.xsmall} ${s.xsmall} ${n.quiet} ${f.quiet}`,secondarySmallQuietDisabled:`${c.xsmall} ${s.xsmall} ${n.quiet} ${n.isDisabled}`,secondaryLoading:`${s.medium} ${c.medium} ${u.secondary} ${n.inProgress}`,secondarySmallLoading:`${c.xsmall} ${s.xsmall} ${u.secondary} ${n.inProgress}`,secondarySmallQuietLoading:`${c.xsmall} ${s.xsmall} ${n.quiet} ${n.inProgress}`,secondaryQuietLoading:`${s.medium} ${c.medium} ${n.quiet} ${n.inProgress}`,primary:`${s.large} ${c.medium} ${u.primary} ${f.primary}`,primaryDisabled:`${s.large} ${c.medium} ${n.isDisabled} ${u.primary}`,primarySmall:`${s.small} ${c.xsmall} ${u.primary} ${f.primary}`,primarySmallDisabled:`${s.small} ${c.xsmall} ${n.isDisabled} ${u.primary} `,primaryQuiet:`${s.large} ${c.medium} ${n.quiet} ${f.quiet}`,primaryQuietDisabled:`${s.large} ${c.medium} ${n.quiet} ${n.isDisabled}`,primarySmallQuiet:`${s.small} ${c.xsmall} ${n.quiet} ${f.quiet}`,primarySmallQuietDisabled:`${s.small} ${c.xsmall} ${n.quiet} ${n.isDisabled}`,primaryLoading:`${s.large} ${c.medium} ${n.inProgress} ${u.primary}`,primarySmallLoading:`${s.small} ${c.xsmall} ${n.inProgress} ${u.primary}`,primarySmallQuietLoading:`${s.small} ${c.xsmall} ${n.quiet} ${n.inProgress} ${u.primary}`,primaryQuietLoading:`${s.large} ${c.medium} ${n.quiet} ${n.inProgress}`,utility:`${s.utility} ${c.medium} ${u.utility} ${f.utility}`,utilityDisabled:`${s.utility} ${c.medium} ${u.utility} ${n.isDisabled}`,utilityQuiet:`${s.large} ${c.medium} ${n.utilityQuiet} ${f.utilityQuiet}`,utilityQuietDisabled:`${s.large} ${c.medium} ${n.utilityQuiet} ${n.isDisabled}`,utilitySmall:`${s.smallUtility} ${c.xsmall} ${u.utility} ${f.utility}`,utilitySmallDisabled:`${s.smallUtility} ${c.xsmall} ${u.utility} ${n.isDisabled}`,utilitySmallQuiet:`${s.smallUtility} ${c.xsmall} ${n.utilityQuiet} ${f.utilityQuiet}`,utilitySmallQuietDisabled:`${s.smallUtility} ${c.xsmall} ${n.utilityQuiet} ${n.isDisabled}`,utilityLoading:`${s.large} ${c.medium} ${u.utility} ${n.inProgress}`,utilitySmallLoading:`${s.smallUtility} ${c.xsmall} ${u.utility} ${n.inProgress}`,utilityQuietLoading:`${s.large} ${c.medium} ${n.inProgress} ${n.utilityQuiet}`,utilitySmallQuietLoading:`${s.smallUtility} ${c.xsmall} ${n.inProgress} ${n.utilityQuiet}`,negative:`${s.large} ${c.medium} ${u.negative} ${f.destructive}`,negativeDisabled:`${s.large} ${c.medium} ${u.negative} ${n.isDisabled}`,negativeQuiet:`${s.large} ${c.medium} ${n.negativeQuiet} ${f.negativeQuiet}`,negativeQuietDisabled:`${s.large} ${c.medium} ${n.negativeQuiet}${n.isDisabled}`,negativeSmall:`${s.small} ${c.xsmall} ${u.negative} ${f.destructive}`,negativeSmallDisabled:`${s.small} ${c.xsmall} ${u.negative} ${n.isDisabled}`,negativeSmallQuiet:`${s.small} ${c.xsmall} ${n.negativeQuiet} ${f.negativeQuiet}`,negativeSmallQuietDisabled:`${s.small} ${c.xsmall} ${n.negativeQuiet} ${n.isDisabled}`,negativeLoading:`${s.large} ${c.medium} ${u.negative} ${n.inProgress}`,negativeSmallLoading:`${s.small} ${c.xsmall} ${n.inProgress} ${u.negative}`,negativeQuietLoading:`${s.large} ${c.medium} ${n.negativeQuiet} ${u.negative} ${n.inProgress}`,negativeSmallQuietLoading:`${s.small} ${c.xsmall} ${n.negativeQuiet} ${n.inProgress}`,pill:`${s.pill} ${c.medium} ${u.pill} ${f.pill}`,pillSmall:`${s.pillSmall} ${c.xsmall} ${u.pill} ${f.pill}`,pillLoading:`${s.pill} ${c.medium} ${u.pill} ${n.inProgress}`,pillSmallLoading:`${s.pillSmall} ${c.xsmall} ${u.pill} ${n.inProgress}`,link:`${s.link} ${c.medium} ${u.link}`,linkSmall:`${s.link} ${c.xsmall} ${u.link}`,linkAsButton:"inline-block hover:no-underline text-center",a11y:"sr-only",fullWidth:"w-full max-w-full",contentWidth:"max-w-max"};var qr={transparentBg:'before:i-bg-$color-modal-backdrop-background before:content-[""] before:absolute before:top-0 before:bottom-0 before:left-0 before:right-0 before:opacity-25',backdrop:"fixed inset-0 flex sm:place-content-center sm:place-items-center items-end z-20 [--w-modal-max-height:80%] [--w-modal-width:640px]",modal:"pb-safe-[32] i-shadow-$shadow-modal max-h-[--w-modal-max-height] min-h-[--w-modal-min-height] w-[--w-modal-width] h-[--w-modal-height] relative transition-300 ease-in-out backface-hidden will-change-height rounded-8 mx-0 sm:mx-16 i-bg-$color-modal-background flex flex-col overflow-hidden outline-none space-y-16 pt-8 sm:pt-32 sm:pb-32 rounded-b-0 sm:rounded-b-8",content:"block overflow-y-auto overflow-x-hidden last-child:mb-0 grow shrink px-16 sm:px-32 relative",footer:"flex justify-end shrink-0 px-16 sm:px-32",transitionTitle:"transition-all duration-300",transitionTitleCenter:"justify-self-center",transitionTitleColSpan:"col-span-2",title:"-mt-4 sm:-mt-8 h-40 sm:h-48 grid gap-8 sm:gap-16 grid-cols-[auto_1fr_auto] items-center px-16 sm:px-32 border-b sm:border-b-0 shrink-0",titleText:"mb-0 h4 sm:h3",titleButton:`${c.medium} ${u.pill} ${f.pill} sm:min-h-[44px] sm:min-w-[44px] min-h-[32px] min-w-[32px]`,titleButtonLeft:"-ml-8 sm:-ml-12 justify-self-start",titleButtonRight:"-mr-8 sm:-mr-12 justify-self-end",titleButtonIcon:"h-16 w-16 sm:h-24 sm:w-24",titleButtonIconRotated:"transform rotate-90"};var we={label:"antialiased block relative text-s font-bold pb-4 cursor-pointer i-text-$color-label-text",labelInvalid:"i-text-$color-label-text-negative",optional:"pl-8 font-normal text-s i-text-$color-label-optional-text"};var V="absolute top-0 bottom-0 flex justify-center items-center focusable focus:[--w-outline-offset:-2px] bg-transparent ",G={wrapper:V+"right-0",wrapperWithLabel:"w-max pr-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"},K={wrapper:V+"left-0",wrapperWithLabel:"w-max pl-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"};var Ur={toggle:"absolute inset-0 h-full w-full appearance-none cursor-pointer focusable focusable-inset",label:`px-12 ${we.label} py-8! cursor-pointer focusable focusable-inset`,buttonOrLink:"bg-transparent focusable",buttonOrLinkStretch:"inset-0 absolute"};var Rr={base:"border-2 relative flex items-start",tooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background i-shadow-$shadow-tooltip i-text-$color-tooltip-text rounded-4 py-6 px-8",callout:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8",highlight:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8 drop-shadow-m",popover:"i-bg-$color-popover-background i-border-$color-popover-background i-text-$color-popover-paragraph-text rounded-8 p-16 drop-shadow-m",arrowBase:"absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",arrowDirectionLeft:"-left-[8px]",arrowDirectionRight:"-right-[8px]",arrowDirectionBottom:"-bottom-[8px]",arrowDirectionTop:"-top-[8px]",arrowTooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background",arrowCallout:"i-bg-$color-callout-background i-border-$color-callout-border",arrowPopover:"i-bg-$color-popover-background i-border-$color-popover-background",arrowHighlight:"i-bg-$color-callout-background i-border-$color-callout-border",content:"last-child:mb-0",notCallout:"absolute z-50",closeBtn:`${c.medium} ${u.pill} ${f.pill} justify-self-end -mr-8 ml-8`};import{LitElement as Pe}from"lit";import{unsafeStatic as Ie,html as Ae}from"lit/static-html.js";var _e=Object.create,re=Object.defineProperty,De=Object.getOwnPropertyDescriptor,Oe=Object.getOwnPropertyNames,X=Object.getOwnPropertySymbols,Se=Object.getPrototypeOf,oe=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,Le=(e,r)=>{var o={};for(var t in e)oe.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&X)for(var t of X(e))r.indexOf(t)<0&&Ee.call(e,t)&&(o[t]=e[t]);return o},te=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Me=(e,r,o,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let d of Oe(r))!oe.call(e,d)&&d!==o&&re(e,d,{get:()=>r[d],enumerable:!(t=De(r,d))||t.enumerable});return e},Te=(e,r,o)=>(o=e!=null?_e(Se(e)):{},Me(r||!e||!e.__esModule?re(o,"default",{value:e,enumerable:!0}):o,e)),je=te(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0;var r;(function(o){o.MalformedUnicode="MALFORMED_UNICODE",o.MalformedHexadecimal="MALFORMED_HEXADECIMAL",o.CodePointLimit="CODE_POINT_LIMIT",o.OctalDeprecation="OCTAL_DEPRECATION",o.EndOfString="END_OF_STRING"})(r=e.ErrorType||(e.ErrorType={})),e.errorMessages=new Map([[r.MalformedUnicode,"malformed Unicode character escape sequence"],[r.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[r.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[r.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[r.EndOfString,"malformed escape sequence at end of string"]])}),Ce=te(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;var r=je();Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return r.ErrorType}}),Object.defineProperty(e,"errorMessages",{enumerable:!0,get:function(){return r.errorMessages}});function o(a){return a.match(/[^a-f0-9]/i)?NaN:parseInt(a,16)}function t(a,g,h){let m=o(a);if(Number.isNaN(m)||h!==void 0&&h!==a.length)throw new SyntaxError(r.errorMessages.get(g));return m}function d(a){let g=t(a,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(g)}function i(a,g){let h=t(a,r.ErrorType.MalformedUnicode,4);if(g!==void 0){let m=t(g,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(h,m)}return String.fromCharCode(h)}function l(a){return a.charAt(0)==="{"&&a.charAt(a.length-1)==="}"}function b(a){if(!l(a))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));let g=a.slice(1,-1),h=t(g,r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(h)}catch(m){throw m instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):m}}function p(a,g=!1){if(g)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));let h=parseInt(a,8);return String.fromCharCode(h)}var $=new Map([["b","\b"],["f","\f"],["n",`
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function v(a){return $.get(a)||a}var _=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function x(a,g=!1){return a.replace(_,function(h,m,E,L,M,B,T,D,j){if(m!==void 0)return"\\";if(E!==void 0)return d(E);if(L!==void 0)return b(L);if(M!==void 0)return i(M,B);if(T!==void 0)return i(T);if(D==="0")return"\0";if(D!==void 0)return p(D,!g);if(j!==void 0)return v(j);throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))})}e.unraw=x,e.default=x}),Qe=Te(Ce(),1),y=e=>typeof e=="string",Ne=e=>typeof e=="function",Z=new Map;function H(e){return[...Array.isArray(e)?e:[e],"en"]}function ie(e,r,o){let t=H(e);return P(()=>I("date",t,o),()=>new Intl.DateTimeFormat(t,o)).format(y(r)?new Date(r):r)}function R(e,r,o){let t=H(e);return P(()=>I("number",t,o),()=>new Intl.NumberFormat(t,o)).format(r)}function Y(e,r,o,t){var d=t,{offset:i=0}=d,l=Le(d,["offset"]),b,p;let $=H(e),v=r?P(()=>I("plural-ordinal",$),()=>new Intl.PluralRules($,{type:"ordinal"})):P(()=>I("plural-cardinal",$),()=>new Intl.PluralRules($,{type:"cardinal"}));return(p=(b=l[o])!=null?b:l[v.select(o-i)])!=null?p:l.other}function P(e,r){let o=e(),t=Z.get(o);return t||(t=r(),Z.set(o,t)),t}function I(e,r,o){let t=r.join("-");return`${e}-${t}-${JSON.stringify(o)}`}var le=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,Be=(e,r,o={})=>{r=r||e;let t=i=>y(i)?o[i]||{style:i}:i,d=(i,l)=>{let b=Object.keys(o).length?t("number"):{},p=R(r,i,b);return l.replace("#",p)};return{plural:(i,l)=>{let{offset:b=0}=l,p=Y(r,!1,i,l);return d(i-b,p)},selectordinal:(i,l)=>{let{offset:b=0}=l,p=Y(r,!0,i,l);return d(i-b,p)},select:(i,l)=>{var b;return(b=l[i])!=null?b:l.other},number:(i,l)=>R(r,i,t(l)),date:(i,l)=>ie(r,i,t(l)),undefined:i=>i}};function qe(e,r,o){return(t,d={})=>{let i=Be(r,o,d),l=p=>Array.isArray(p)?p.reduce(($,v)=>{if(y(v))return $+v;let[_,x,a]=v,g={};a!=null&&!y(a)?Object.keys(a).forEach(m=>{g[m]=l(a[m])}):g=a;let h=i[x](t[_],g);return h==null?$:$+h},""):p,b=l(e);return y(b)&&le.test(b)?(0,Qe.default)(b.trim()):y(b)?b.trim():b}}var Ue=Object.defineProperty,Re=(e,r,o)=>r in e?Ue(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,Fe=(e,r,o)=>(Re(e,typeof r!="symbol"?r+"":r,o),o),He=class{constructor(){Fe(this,"_events",{})}on(e,r){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(r),()=>this.removeListener(e,r)}removeListener(e,r){if(!this._hasEvent(e))return;let o=this._events[e].indexOf(r);~o&&this._events[e].splice(o,1)}emit(e,...r){this._hasEvent(e)&&this._events[e].map(o=>o.apply(this,r))}_hasEvent(e){return Array.isArray(this._events[e])}},ze=Object.defineProperty,We=(e,r,o)=>r in e?ze(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,O=(e,r,o)=>(We(e,typeof r!="symbol"?r+"":r,o),o),Je=class extends He{constructor(e){super(),O(this,"_locale"),O(this,"_locales"),O(this,"_localeData"),O(this,"_messages"),O(this,"_missing"),O(this,"t",this._.bind(this)),this._messages={},this._localeData={},e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(e.locale!=null||e.locales!=null)&&this.activate(e.locale,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,r){this._localeData[e]==null?this._localeData[e]=r:Object.assign(this._localeData[e],r)}loadLocaleData(e,r){r!=null?this._loadLocaleData(e,r):Object.keys(e).forEach(o=>this._loadLocaleData(o,e[o])),this.emit("change")}_load(e,r){this._messages[e]==null?this._messages[e]=r:Object.assign(this._messages[e],r)}load(e,r){r!=null?this._load(e,r):Object.keys(e).forEach(o=>this._load(o,e[o])),this.emit("change")}loadAndActivate({locale:e,locales:r,messages:o}){this._locale=e,this._locales=r||void 0,this._messages[this._locale]=o,this.emit("change")}activate(e,r){this._locale=e,this._locales=r,this.emit("change")}_(e,r={},{message:o,formats:t}={}){y(e)||(r=e.values||r,o=e.message,e=e.id);let d=!this.messages[e],i=this._missing;if(i&&d)return Ne(i)?i(this._locale,e):i;d&&this.emit("missing",{id:e,locale:this._locale});let l=this.messages[e]||o||e;return y(l)&&le.test(l)?JSON.parse(`"${l}"`):y(l)?l:qe(l,this._locale,this._locales)(r,t)}date(e,r){return ie(this._locales||this._locale,e,r)}number(e,r){return R(this._locales||this._locale,e,r)}};function Ve(e={}){return new Je(e)}var F=Ve(),Ge=JSON.parse('{"icon.title.search":"Forst\xF8rrelsesglass"}'),Ke=JSON.parse('{"icon.title.search":"Magnifying glass"}'),Xe=JSON.parse('{"icon.title.search":"Suurennuslasi"}'),Ze=["en","nb","fi"],ae="en",ee=e=>Ze.find(r=>e===r||e.toLowerCase().includes(r))||ae;function Ye(){if(typeof window=="undefined"){let e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return ee(e)}try{let e=document.documentElement.lang;return ee(e)}catch(e){return console.warn("could not detect locale, falling back to source locale",e),ae}}var er=(e,r,o,t)=>e==="nb"?o:e==="fi"?t:r,rr=(e,r,o)=>{let t=Ye(),d=er(t,e,r,o);F.load(t,d),F.activate(t)};rr(Ke,Ge,Xe);var or=class extends Pe{render(){let e=F.t({message:"Magnifying glass",id:"icon.title.search",comment:"Title for search icon"});return Ae`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16">${Ie(`<title>${e}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8.796 11.803A5.684 5.684 0 1 0 4.349 1.341a5.684 5.684 0 0 0 4.447 10.462ZM11 11l4 4"></path></svg>`}};customElements.get("w-icon-search-16")||customElements.define("w-icon-search-16",or);import{LitElement as gr}from"lit";import{unsafeStatic as pr,html as hr}from"lit/static-html.js";var tr=Object.create,be=Object.defineProperty,ir=Object.getOwnPropertyDescriptor,lr=Object.getOwnPropertyNames,ne=Object.getOwnPropertySymbols,ar=Object.getPrototypeOf,ue=Object.prototype.hasOwnProperty,nr=Object.prototype.propertyIsEnumerable,cr=(e,r)=>{var o={};for(var t in e)ue.call(e,t)&&r.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&ne)for(var t of ne(e))r.indexOf(t)<0&&nr.call(e,t)&&(o[t]=e[t]);return o},ge=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),sr=(e,r,o,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let d of lr(r))!ue.call(e,d)&&d!==o&&be(e,d,{get:()=>r[d],enumerable:!(t=ir(r,d))||t.enumerable});return e},dr=(e,r,o)=>(o=e!=null?tr(ar(e)):{},sr(r||!e||!e.__esModule?be(o,"default",{value:e,enumerable:!0}):o,e)),br=ge(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0;var r;(function(o){o.MalformedUnicode="MALFORMED_UNICODE",o.MalformedHexadecimal="MALFORMED_HEXADECIMAL",o.CodePointLimit="CODE_POINT_LIMIT",o.OctalDeprecation="OCTAL_DEPRECATION",o.EndOfString="END_OF_STRING"})(r=e.ErrorType||(e.ErrorType={})),e.errorMessages=new Map([[r.MalformedUnicode,"malformed Unicode character escape sequence"],[r.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[r.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[r.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[r.EndOfString,"malformed escape sequence at end of string"]])}),ur=ge(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;var r=br();Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return r.ErrorType}}),Object.defineProperty(e,"errorMessages",{enumerable:!0,get:function(){return r.errorMessages}});function o(a){return a.match(/[^a-f0-9]/i)?NaN:parseInt(a,16)}function t(a,g,h){let m=o(a);if(Number.isNaN(m)||h!==void 0&&h!==a.length)throw new SyntaxError(r.errorMessages.get(g));return m}function d(a){let g=t(a,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(g)}function i(a,g){let h=t(a,r.ErrorType.MalformedUnicode,4);if(g!==void 0){let m=t(g,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(h,m)}return String.fromCharCode(h)}function l(a){return a.charAt(0)==="{"&&a.charAt(a.length-1)==="}"}function b(a){if(!l(a))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));let g=a.slice(1,-1),h=t(g,r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(h)}catch(m){throw m instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):m}}function p(a,g=!1){if(g)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));let h=parseInt(a,8);return String.fromCharCode(h)}var $=new Map([["b","\b"],["f","\f"],["n",`
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function v(a){return $.get(a)||a}var _=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function x(a,g=!1){return a.replace(_,function(h,m,E,L,M,B,T,D,j){if(m!==void 0)return"\\";if(E!==void 0)return d(E);if(L!==void 0)return b(L);if(M!==void 0)return i(M,B);if(T!==void 0)return i(T);if(D==="0")return"\0";if(D!==void 0)return p(D,!g);if(j!==void 0)return v(j);throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))})}e.unraw=x,e.default=x}),mr=dr(ur(),1),k=e=>typeof e=="string",fr=e=>typeof e=="function",ce=new Map;function J(e){return[...Array.isArray(e)?e:[e],"en"]}function pe(e,r,o){let t=J(e);return A(()=>Q("date",t,o),()=>new Intl.DateTimeFormat(t,o)).format(k(r)?new Date(r):r)}function z(e,r,o){let t=J(e);return A(()=>Q("number",t,o),()=>new Intl.NumberFormat(t,o)).format(r)}function se(e,r,o,t){var d=t,{offset:i=0}=d,l=cr(d,["offset"]),b,p;let $=J(e),v=r?A(()=>Q("plural-ordinal",$),()=>new Intl.PluralRules($,{type:"ordinal"})):A(()=>Q("plural-cardinal",$),()=>new Intl.PluralRules($,{type:"cardinal"}));return(p=(b=l[o])!=null?b:l[v.select(o-i)])!=null?p:l.other}function A(e,r){let o=e(),t=ce.get(o);return t||(t=r(),ce.set(o,t)),t}function Q(e,r,o){let t=r.join("-");return`${e}-${t}-${JSON.stringify(o)}`}var he=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,$r=(e,r,o={})=>{r=r||e;let t=i=>k(i)?o[i]||{style:i}:i,d=(i,l)=>{let b=Object.keys(o).length?t("number"):{},p=z(r,i,b);return l.replace("#",p)};return{plural:(i,l)=>{let{offset:b=0}=l,p=se(r,!1,i,l);return d(i-b,p)},selectordinal:(i,l)=>{let{offset:b=0}=l,p=se(r,!0,i,l);return d(i-b,p)},select:(i,l)=>{var b;return(b=l[i])!=null?b:l.other},number:(i,l)=>z(r,i,t(l)),date:(i,l)=>pe(r,i,t(l)),undefined:i=>i}};function vr(e,r,o){return(t,d={})=>{let i=$r(r,o,d),l=p=>Array.isArray(p)?p.reduce(($,v)=>{if(k(v))return $+v;let[_,x,a]=v,g={};a!=null&&!k(a)?Object.keys(a).forEach(m=>{g[m]=l(a[m])}):g=a;let h=i[x](t[_],g);return h==null?$:$+h},""):p,b=l(e);return k(b)&&he.test(b)?(0,mr.default)(b.trim()):k(b)?b.trim():b}}var xr=Object.defineProperty,yr=(e,r,o)=>r in e?xr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,kr=(e,r,o)=>(yr(e,typeof r!="symbol"?r+"":r,o),o),wr=class{constructor(){kr(this,"_events",{})}on(e,r){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(r),()=>this.removeListener(e,r)}removeListener(e,r){if(!this._hasEvent(e))return;let o=this._events[e].indexOf(r);~o&&this._events[e].splice(o,1)}emit(e,...r){this._hasEvent(e)&&this._events[e].map(o=>o.apply(this,r))}_hasEvent(e){return Array.isArray(this._events[e])}},_r=Object.defineProperty,Dr=(e,r,o)=>r in e?_r(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,S=(e,r,o)=>(Dr(e,typeof r!="symbol"?r+"":r,o),o),Or=class extends wr{constructor(e){super(),S(this,"_locale"),S(this,"_locales"),S(this,"_localeData"),S(this,"_messages"),S(this,"_missing"),S(this,"t",this._.bind(this)),this._messages={},this._localeData={},e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(e.locale!=null||e.locales!=null)&&this.activate(e.locale,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,r){this._localeData[e]==null?this._localeData[e]=r:Object.assign(this._localeData[e],r)}loadLocaleData(e,r){r!=null?this._loadLocaleData(e,r):Object.keys(e).forEach(o=>this._loadLocaleData(o,e[o])),this.emit("change")}_load(e,r){this._messages[e]==null?this._messages[e]=r:Object.assign(this._messages[e],r)}load(e,r){r!=null?this._load(e,r):Object.keys(e).forEach(o=>this._load(o,e[o])),this.emit("change")}loadAndActivate({locale:e,locales:r,messages:o}){this._locale=e,this._locales=r||void 0,this._messages[this._locale]=o,this.emit("change")}activate(e,r){this._locale=e,this._locales=r,this.emit("change")}_(e,r={},{message:o,formats:t}={}){k(e)||(r=e.values||r,o=e.message,e=e.id);let d=!this.messages[e],i=this._missing;if(i&&d)return fr(i)?i(this._locale,e):i;d&&this.emit("missing",{id:e,locale:this._locale});let l=this.messages[e]||o||e;return k(l)&&he.test(l)?JSON.parse(`"${l}"`):k(l)?l:vr(l,this._locale,this._locales)(r,t)}date(e,r){return pe(this._locales||this._locale,e,r)}number(e,r){return z(this._locales||this._locale,e,r)}};function Sr(e={}){return new Or(e)}var W=Sr(),Er=JSON.parse('{"icon.title.close":"Kryss"}'),Lr=JSON.parse('{"icon.title.close":"Cross"}'),Mr=JSON.parse('{"icon.title.close":"Risti"}'),Tr=["en","nb","fi"],me="en",de=e=>Tr.find(r=>e===r||e.toLowerCase().includes(r))||me;function jr(){if(typeof window=="undefined"){let e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return de(e)}try{let e=document.documentElement.lang;return de(e)}catch(e){return console.warn("could not detect locale, falling back to source locale",e),me}}var Cr=(e,r,o,t)=>e==="nb"?o:e==="fi"?t:r,Pr=(e,r,o)=>{let t=jr(),d=Cr(t,e,r,o);W.load(t,d),W.activate(t)};Pr(Lr,Er,Mr);var Ir=class extends gr{render(){let e=W.t({message:"Cross",id:"icon.title.close",comment:"Title for close icon"});return hr`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16">${pr(`<title>${e}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m12.5 3.5-9 9M3.5 3.5l9 9"></path></svg>`}};customElements.get("w-icon-close-16")||customElements.define("w-icon-close-16",Ir);import{classMap as Ar}from"lit/directives/class-map.js";function fe(e){let r={};for(let[o,t]of Object.entries(e))for(let d of o.split(" "))r[d]=t;return Ar(r)}var C=class extends $e{get _classBase(){return this.slot==="suffix"?G:K}get _classes(){return fe({[this._classBase.wrapper]:!0,[this._classBase.wrapperWithLabel]:this.label,[this._classBase.wrapperWithIcon]:!this.label})}get _searchButton(){return N`
<button aria-label="${ve(this.ariaLabel)}" class="${this._classes}" type="submit">
<w-icon-search-16></w-icon-search-16>
</button>
`}get _clearButton(){return b`
<button aria-label="${m(this.ariaLabel)}" class="${this._classes}" type="reset">
`}get _clearButton(){return N`
<button aria-label="${ve(this.ariaLabel)}" class="${this._classes}" type="reset">
<w-icon-close-16></w-icon-close-16>
</button>
`}get _text(){return b`
`}get _text(){return N`
<div class="${this._classes}">
<span class="${this._classBase.label}">${this.label}</span>
</div>
`}get _markup(){if(this.label)return this._text;if(this.search)return this._searchButton;if(this.clear)return this._clearButton}render(){return b`${this._markup}`}};s(d,"styles",[h.styles]),s(d,"properties",{ariaLabel:{type:String,attribute:"aria-label"},clear:{type:Boolean},search:{type:Boolean},label:{type:String}});customElements.get("w-affix")||customElements.define("w-affix",d);export{d as WarpAffix};
`}get _markup(){if(this.label)return this._text;if(this.search)return this._searchButton;if(this.clear)return this._clearButton}render(){return N`${this._markup}`}};q(C,"styles",[$e.styles]),q(C,"properties",{ariaLabel:{type:String,attribute:"aria-label"},clear:{type:Boolean},search:{type:Boolean},label:{type:String}});customElements.get("w-affix")||customElements.define("w-affix",C);export{C as WarpAffix};
//# sourceMappingURL=index.js.map

@@ -1,7 +0,11 @@

var f=Object.defineProperty;var k=(a,l,c)=>l in a?f(a,l,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[l]=c;var $=(a,l,c)=>(k(a,typeof l!="symbol"?l+"":l,c),c);import m from"@warp-ds/elements-core";import{css as D,html as s}from"lit";var x={box:"group block relative break-words last-child:mb-0 p-16 rounded-8",bleed:"-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8",info:"i-bg-$color-box-info-background i-text-$color-box-info-text",neutral:"i-bg-$color-box-neutral-background i-text-$color-box-neutral-text",bordered:"border-2 i-border-$color-box-bordered-border i-bg-$color-box-bordered-background i-text-$color-box-bordered-text",infoClickable:"hover:i-bg-$color-box-info-background-hover active:i-bg-$color-box-info-background-hover",neutralClickable:"hover:i-bg-$color-box-neutral-background-hover active:i-bg-$color-box-neutral-background-hover",borderedClickable:"hover:i-bg-$color-box-bordered-background-hover active:i-bg-$color-box-bordered-background-hover hover:i-border-$color-box-bordered-border-hover active:i-border-$color-box-bordered-border-hover"};var y="focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block",Q={expandable:"will-change-height",expandableTitle:"font-bold i-text-$color-expandable-title-text",expandableBox:"i-bg-$color-expandable-background hover:i-bg-$color-expandable-background-hover py-0 px-0 "+x.box,expandableBleed:x.bleed,chevron:"inline-block align-middle i-text-$color-expandable-icon",chevronNonBox:"relative left-8",chevronBox:"absolute right-16",chevronTransform:"transform transition-transform transform-gpu ease-in-out",chevronExpand:"-rotate-180",chevronCollapse:"rotate-180",expansion:"overflow-hidden",expansionNotExpanded:"h-0 invisible",button:y+" hover:underline focus:underline",buttonBox:"w-full text-left relative inline-flex items-center "+x.box,paddingTop:"pt-0",title:"flex justify-between items-center",titleType:"h4"},d="font-bold focusable justify-center transition-colors ease-in-out",i={primary:"i-text-$color-button-primary-text hover:i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover active:i-bg-$color-button-primary-background-active",secondary:"i-text-$color-button-secondary-text hover:i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active",utility:"i-text-$color-button-utility-text hover:i-text-$color-button-utility-text i-bg-$color-button-utility-background i-border-$color-button-utility-border hover:i-bg-$color-button-utility-background hover:i-border-$color-button-utility-border-hover active:i-border-$color-button-utility-border-active",destructive:"i-bg-$color-button-negative-background i-text-$color-button-negative-text hover:i-text-$color-button-negative-text hover:i-bg-$color-button-negative-background-hover active:i-bg-$color-button-negative-background-active",pill:"i-text-$color-button-pill-icon hover:i-text-$color-button-pill-icon-hover active:i-text-$color-button-pill-icon-active i-bg-$color-button-pill-background hover:i-bg-$color-button-pill-background-hover active:i-bg-$color-button-pill-background-active",disabled:"i-text-$color-button-disabled-text i-bg-$color-button-disabled-background",quiet:"i-bg-$color-button-quiet-background i-text-$color-button-quiet-text hover:i-bg-$color-button-quiet-background-hover active:i-bg-$color-button-quiet-background-active",utilityQuiet:"i-text-$color-button-utility-quiet-text i-bg-$color-button-utility-quiet-background hover:i-bg-$color-button-utility-quiet-background-hover",negativeQuiet:"i-bg-$color-button-negative-quiet-background i-text-$color-button-negative-quiet-text hover:i-bg-$color-button-negative-quiet-background-hover active:i-bg-$color-button-negative-quiet-background-active",loading:"i-text-$color-button-loading-text i-bg-$color-button-loading-background",link:"i-text-$color-button-link-text"},t={primary:`border-0 rounded-8 ${d}`,secondary:`border-2 rounded-8 ${d}`,utility:`border rounded-4 ${d}`,negative:`border-0 rounded-8 ${d}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${d}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline ${i.link}`},r={xsmall:"py-6 px-16",small:"py-8 px-16",medium:"py-10 px-14",large:"py-12 px-16",utility:"py-[11px] px-[15px]",smallUtility:"py-[7px] px-[15px]",pill:"min-h-[44px] min-w-[44px]",pillSmall:"min-h-32 min-w-32",link:"p-0"},o={medium:"text-m leading-[24]",xsmall:"text-xs"},e={inProgress:`border-transparent animate-inprogress pointer-events-none ${i.loading}`,quiet:`border-0 rounded-8 ${d}`,utilityQuiet:`border-0 rounded-4 ${d}`,negativeQuiet:`border-0 rounded-8 ${d}`,isDisabled:`font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${i.disabled}`},L={secondary:`${r.medium} ${o.medium} ${t.secondary} ${i.secondary}`,secondaryHref:`${r.medium} ${o.medium} ${t.secondary} ${i.secondary}`,secondaryDisabled:`${r.medium} ${o.medium} ${t.secondary} ${e.isDisabled}`,secondarySmall:`${o.xsmall} ${r.xsmall} ${t.secondary} ${i.secondary}`,secondarySmallDisabled:`${o.xsmall} ${r.xsmall} ${t.secondary} ${e.isDisabled}`,secondaryQuiet:`${r.medium} ${o.medium} ${e.quiet} ${i.quiet}`,secondaryQuietDisabled:`${r.medium} ${o.medium} ${e.quiet} ${e.isDisabled}`,secondarySmallQuiet:`${o.xsmall} ${r.xsmall} ${e.quiet} ${i.quiet}`,secondarySmallQuietDisabled:`${o.xsmall} ${r.xsmall} ${e.quiet} ${e.isDisabled}`,secondaryLoading:`${r.medium} ${o.medium} ${t.secondary} ${e.inProgress}`,secondarySmallLoading:`${o.xsmall} ${r.xsmall} ${t.secondary} ${e.inProgress}`,secondarySmallQuietLoading:`${o.xsmall} ${r.xsmall} ${e.quiet} ${e.inProgress}`,secondaryQuietLoading:`${r.medium} ${o.medium} ${e.quiet} ${e.inProgress}`,primary:`${r.large} ${o.medium} ${t.primary} ${i.primary}`,primaryDisabled:`${r.large} ${o.medium} ${e.isDisabled} ${t.primary}`,primarySmall:`${r.small} ${o.xsmall} ${t.primary} ${i.primary}`,primarySmallDisabled:`${r.small} ${o.xsmall} ${e.isDisabled} ${t.primary} `,primaryQuiet:`${r.large} ${o.medium} ${e.quiet} ${i.quiet}`,primaryQuietDisabled:`${r.large} ${o.medium} ${e.quiet} ${e.isDisabled}`,primarySmallQuiet:`${r.small} ${o.xsmall} ${e.quiet} ${i.quiet}`,primarySmallQuietDisabled:`${r.small} ${o.xsmall} ${e.quiet} ${e.isDisabled}`,primaryLoading:`${r.large} ${o.medium} ${e.inProgress} ${t.primary}`,primarySmallLoading:`${r.small} ${o.xsmall} ${e.inProgress} ${t.primary}`,primarySmallQuietLoading:`${r.small} ${o.xsmall} ${e.quiet} ${e.inProgress} ${t.primary}`,primaryQuietLoading:`${r.large} ${o.medium} ${e.quiet} ${e.inProgress}`,utility:`${r.utility} ${o.medium} ${t.utility} ${i.utility}`,utilityDisabled:`${r.utility} ${o.medium} ${t.utility} ${e.isDisabled}`,utilityQuiet:`${r.large} ${o.medium} ${e.utilityQuiet} ${i.utilityQuiet}`,utilityQuietDisabled:`${r.large} ${o.medium} ${e.utilityQuiet} ${e.isDisabled}`,utilitySmall:`${r.smallUtility} ${o.xsmall} ${t.utility} ${i.utility}`,utilitySmallDisabled:`${r.smallUtility} ${o.xsmall} ${t.utility} ${e.isDisabled}`,utilitySmallQuiet:`${r.smallUtility} ${o.xsmall} ${e.utilityQuiet} ${i.utilityQuiet}`,utilitySmallQuietDisabled:`${r.smallUtility} ${o.xsmall} ${e.utilityQuiet} ${e.isDisabled}`,utilityLoading:`${r.large} ${o.medium} ${t.utility} ${e.inProgress}`,utilitySmallLoading:`${r.smallUtility} ${o.xsmall} ${t.utility} ${e.inProgress}`,utilityQuietLoading:`${r.large} ${o.medium} ${e.inProgress} ${e.utilityQuiet}`,utilitySmallQuietLoading:`${r.smallUtility} ${o.xsmall} ${e.inProgress} ${e.utilityQuiet}`,negative:`${r.large} ${o.medium} ${t.negative} ${i.destructive}`,negativeDisabled:`${r.large} ${o.medium} ${t.negative} ${e.isDisabled}`,negativeQuiet:`${r.large} ${o.medium} ${e.negativeQuiet} ${i.negativeQuiet}`,negativeQuietDisabled:`${r.large} ${o.medium} ${e.negativeQuiet}${e.isDisabled}`,negativeSmall:`${r.small} ${o.xsmall} ${t.negative} ${i.destructive}`,negativeSmallDisabled:`${r.small} ${o.xsmall} ${t.negative} ${e.isDisabled}`,negativeSmallQuiet:`${r.small} ${o.xsmall} ${e.negativeQuiet} ${i.negativeQuiet}`,negativeSmallQuietDisabled:`${r.small} ${o.xsmall} ${e.negativeQuiet} ${e.isDisabled}`,negativeLoading:`${r.large} ${o.medium} ${t.negative} ${e.inProgress}`,negativeSmallLoading:`${r.small} ${o.xsmall} ${e.inProgress} ${t.negative}`,negativeQuietLoading:`${r.large} ${o.medium} ${e.negativeQuiet} ${t.negative} ${e.inProgress}`,negativeSmallQuietLoading:`${r.small} ${o.xsmall} ${e.negativeQuiet} ${e.inProgress}`,pill:`${r.pill} ${o.medium} ${t.pill} ${i.pill}`,pillSmall:`${r.pillSmall} ${o.xsmall} ${t.pill} ${i.pill}`,pillLoading:`${r.pill} ${o.medium} ${t.pill} ${e.inProgress}`,pillSmallLoading:`${r.pillSmall} ${o.xsmall} ${t.pill} ${e.inProgress}`,link:`${r.link} ${o.medium} ${t.link}`,linkSmall:`${r.link} ${o.xsmall} ${t.link}`,linkAsButton:"inline-block hover:no-underline text-center",a11y:"sr-only",fullWidth:"w-full max-w-full",contentWidth:"max-w-max"};var B={transparentBg:'before:i-bg-$color-modal-backdrop-background before:content-[""] before:absolute before:top-0 before:bottom-0 before:left-0 before:right-0 before:opacity-25',backdrop:"fixed inset-0 flex sm:place-content-center sm:place-items-center items-end z-20 [--w-modal-max-height:80%] [--w-modal-width:640px]",modal:"pb-safe-[32] i-shadow-$shadow-modal max-h-[--w-modal-max-height] min-h-[--w-modal-min-height] w-[--w-modal-width] h-[--w-modal-height] relative transition-300 ease-in-out backface-hidden will-change-height rounded-8 mx-0 sm:mx-16 i-bg-$color-modal-background flex flex-col overflow-hidden outline-none space-y-16 pt-8 sm:pt-32 sm:pb-32 rounded-b-0 sm:rounded-b-8",content:"block overflow-y-auto overflow-x-hidden last-child:mb-0 grow shrink px-16 sm:px-32 relative",footer:"flex justify-end shrink-0 px-16 sm:px-32",transitionTitle:"transition-all duration-300",transitionTitleCenter:"justify-self-center",transitionTitleColSpan:"col-span-2",title:"-mt-4 sm:-mt-8 h-40 sm:h-48 grid gap-8 sm:gap-16 grid-cols-[auto_1fr_auto] items-center px-16 sm:px-32 border-b sm:border-b-0 shrink-0",titleText:"mb-0 h4 sm:h3",titleButton:`${o.medium} ${t.pill} ${i.pill} sm:min-h-[44px] sm:min-w-[44px] min-h-[32px] min-w-[32px]`,titleButtonLeft:"-ml-8 sm:-ml-12 justify-self-start",titleButtonRight:"-mr-8 sm:-mr-12 justify-self-end",titleButtonIcon:"h-16 w-16 sm:h-24 sm:w-24",titleButtonIconRotated:"transform rotate-90"},b={alert:"flex p-16 border border-l-4 rounded-4",willChangeHeight:"will-change-height",textWrapper:"last-child:mb-0 text-s",title:"text-s",icon:"w-16 mr-8 min-w-16",negative:"i-border-$color-alert-negative-subtle-border i-bg-$color-alert-negative-background i-text-$color-alert-negative-text i-border-l-$color-alert-negative-border",negativeIcon:"i-text-$color-alert-negative-icon",positive:"i-border-$color-alert-positive-subtle-border i-bg-$color-alert-positive-background i-text-$color-alert-positive-text i-border-l-$color-alert-positive-border",positiveIcon:"i-text-$color-alert-positive-icon",warning:"i-border-$color-alert-warning-subtle-border i-bg-$color-alert-warning-background i-text-$color-alert-warning-text i-border-l-$color-alert-warning-border",warningIcon:"i-text-$color-alert-warning-icon",info:"i-border-$color-alert-info-subtle-border i-bg-$color-alert-info-background i-text-$color-alert-info-text i-border-l-$color-alert-info-border",infoIcon:"i-text-$color-alert-info-icon"};var w={label:"antialiased block relative text-s font-bold pb-4 cursor-pointer i-text-$color-label-text",labelInvalid:"i-text-$color-label-text-negative",optional:"pl-8 font-normal text-s i-text-$color-label-optional-text"};var v="absolute top-0 bottom-0 flex justify-center items-center focusable focus:[--w-outline-offset:-2px] bg-transparent ",q={wrapper:v+"right-0",wrapperWithLabel:"w-max pr-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"},T={wrapper:v+"left-0",wrapperWithLabel:"w-max pl-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"};var C={toggle:"absolute inset-0 h-full w-full appearance-none cursor-pointer focusable focusable-inset",label:`px-12 ${w.label} py-8! cursor-pointer focusable focusable-inset`,buttonOrLink:"bg-transparent focusable",buttonOrLinkStretch:"inset-0 absolute"};var I={base:"border-2 relative flex items-start",tooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background i-shadow-$shadow-tooltip i-text-$color-tooltip-text rounded-4 py-6 px-8",callout:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8",highlight:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8 drop-shadow-m",popover:"i-bg-$color-popover-background i-border-$color-popover-background i-text-$color-popover-paragraph-text rounded-8 p-16 drop-shadow-m",arrowBase:"absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",arrowDirectionLeft:"-left-[8px]",arrowDirectionRight:"-right-[8px]",arrowDirectionBottom:"-bottom-[8px]",arrowDirectionTop:"-top-[8px]",arrowTooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background",arrowCallout:"i-bg-$color-callout-background i-border-$color-callout-border",arrowPopover:"i-bg-$color-popover-background i-border-$color-popover-background",arrowHighlight:"i-bg-$color-callout-background i-border-$color-callout-border",content:"last-child:mb-0",notCallout:"absolute z-50",closeBtn:`${o.medium} ${t.pill} ${i.pill} justify-self-end -mr-8 ml-8`};var p=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];return a.reduce(function(c,n){return c.concat(typeof n=="string"?n:Array.isArray(n)?p.apply(void 0,n):typeof n=="object"&&n?Object.keys(n).map(function(h){return n[h]?h:""}):"")},[]).join(" ")};var u={negative:"negative",positive:"positive",warning:"warning",info:"info"},g=class extends m{constructor(){super(),this.show=!1,this.role="alert"}connectedCallback(){if(super.connectedCallback(),!this.variant||!u[this.variant])throw new Error(`Invalid "variant" attribute. Set its value to one of the following:
negative, positive, warning, info.`)}get _wrapperClasses(){return p({[b.alert]:!0,[b[this.variant]]:!0})}get _iconClasses(){let l=b[`${this.variant}Icon`];return p({[b.icon]:!0,[l]:!0})}get _icon(){return this.variant===u.info?s`<w-icon-alert-info-16></w-icon-alert-info-16>`:this.variant===u.warning?s`<w-icon-alert-warning-16></w-icon-alert-warning-16>`:this.variant===u.negative?s`<w-icon-alert-error-16></w-icon-alert-error-16>`:this.variant===u.positive?s`<w-icon-alert-success-16></w-icon-alert-success-16>`:""}render(){return s`
var Ke=Object.defineProperty;var er=(e,r,t)=>r in e?Ke(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var X=(e,r,t)=>(er(e,typeof r!="symbol"?r+"":r,t),t);import Ye from"@warp-ds/elements-core";import{css as So,html as U}from"lit";var Y={box:"group block relative break-words last-child:mb-0 p-16 rounded-8",bleed:"-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8",info:"i-bg-$color-box-info-background i-text-$color-box-info-text",neutral:"i-bg-$color-box-neutral-background i-text-$color-box-neutral-text",bordered:"border-2 i-border-$color-box-bordered-border i-bg-$color-box-bordered-background i-text-$color-box-bordered-text",infoClickable:"hover:i-bg-$color-box-info-background-hover active:i-bg-$color-box-info-background-hover",neutralClickable:"hover:i-bg-$color-box-neutral-background-hover active:i-bg-$color-box-neutral-background-hover",borderedClickable:"hover:i-bg-$color-box-bordered-background-hover active:i-bg-$color-box-bordered-background-hover hover:i-border-$color-box-bordered-border-hover active:i-border-$color-box-bordered-border-hover"};var rr="focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block",To={expandable:"will-change-height",expandableTitle:"font-bold i-text-$color-expandable-title-text",expandableBox:"i-bg-$color-expandable-background hover:i-bg-$color-expandable-background-hover py-0 px-0 "+Y.box,expandableBleed:Y.bleed,chevron:"inline-block align-middle i-text-$color-expandable-icon",chevronNonBox:"relative left-8",chevronBox:"absolute right-16",chevronTransform:"transform transition-transform transform-gpu ease-in-out",chevronExpand:"-rotate-180",chevronCollapse:"rotate-180",expansion:"overflow-hidden",expansionNotExpanded:"h-0 invisible",button:rr+" hover:underline focus:underline",buttonBox:"w-full text-left relative inline-flex items-center "+Y.box,paddingTop:"pt-0",title:"flex justify-between items-center",titleType:"h4"},L="font-bold focusable justify-center transition-colors ease-in-out",$={primary:"i-text-$color-button-primary-text hover:i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover active:i-bg-$color-button-primary-background-active",secondary:"i-text-$color-button-secondary-text hover:i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active",utility:"i-text-$color-button-utility-text hover:i-text-$color-button-utility-text i-bg-$color-button-utility-background i-border-$color-button-utility-border hover:i-bg-$color-button-utility-background hover:i-border-$color-button-utility-border-hover active:i-border-$color-button-utility-border-active",destructive:"i-bg-$color-button-negative-background i-text-$color-button-negative-text hover:i-text-$color-button-negative-text hover:i-bg-$color-button-negative-background-hover active:i-bg-$color-button-negative-background-active",pill:"i-text-$color-button-pill-icon hover:i-text-$color-button-pill-icon-hover active:i-text-$color-button-pill-icon-active i-bg-$color-button-pill-background hover:i-bg-$color-button-pill-background-hover active:i-bg-$color-button-pill-background-active",disabled:"i-text-$color-button-disabled-text i-bg-$color-button-disabled-background",quiet:"i-bg-$color-button-quiet-background i-text-$color-button-quiet-text hover:i-bg-$color-button-quiet-background-hover active:i-bg-$color-button-quiet-background-active",utilityQuiet:"i-text-$color-button-utility-quiet-text i-bg-$color-button-utility-quiet-background hover:i-bg-$color-button-utility-quiet-background-hover",negativeQuiet:"i-bg-$color-button-negative-quiet-background i-text-$color-button-negative-quiet-text hover:i-bg-$color-button-negative-quiet-background-hover active:i-bg-$color-button-negative-quiet-background-active",loading:"i-text-$color-button-loading-text i-bg-$color-button-loading-background",link:"i-text-$color-button-link-text"},m={primary:`border-0 rounded-8 ${L}`,secondary:`border-2 rounded-8 ${L}`,utility:`border rounded-4 ${L}`,negative:`border-0 rounded-8 ${L}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${L}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline ${$.link}`},p={xsmall:"py-6 px-16",small:"py-8 px-16",medium:"py-10 px-14",large:"py-12 px-16",utility:"py-[11px] px-[15px]",smallUtility:"py-[7px] px-[15px]",pill:"min-h-[44px] min-w-[44px]",pillSmall:"min-h-32 min-w-32",link:"p-0"},b={medium:"text-m leading-[24]",xsmall:"text-xs"},u={inProgress:`border-transparent animate-inprogress pointer-events-none ${$.loading}`,quiet:`border-0 rounded-8 ${L}`,utilityQuiet:`border-0 rounded-4 ${L}`,negativeQuiet:`border-0 rounded-8 ${L}`,isDisabled:`font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${$.disabled}`},jo={secondary:`${p.medium} ${b.medium} ${m.secondary} ${$.secondary}`,secondaryHref:`${p.medium} ${b.medium} ${m.secondary} ${$.secondary}`,secondaryDisabled:`${p.medium} ${b.medium} ${m.secondary} ${u.isDisabled}`,secondarySmall:`${b.xsmall} ${p.xsmall} ${m.secondary} ${$.secondary}`,secondarySmallDisabled:`${b.xsmall} ${p.xsmall} ${m.secondary} ${u.isDisabled}`,secondaryQuiet:`${p.medium} ${b.medium} ${u.quiet} ${$.quiet}`,secondaryQuietDisabled:`${p.medium} ${b.medium} ${u.quiet} ${u.isDisabled}`,secondarySmallQuiet:`${b.xsmall} ${p.xsmall} ${u.quiet} ${$.quiet}`,secondarySmallQuietDisabled:`${b.xsmall} ${p.xsmall} ${u.quiet} ${u.isDisabled}`,secondaryLoading:`${p.medium} ${b.medium} ${m.secondary} ${u.inProgress}`,secondarySmallLoading:`${b.xsmall} ${p.xsmall} ${m.secondary} ${u.inProgress}`,secondarySmallQuietLoading:`${b.xsmall} ${p.xsmall} ${u.quiet} ${u.inProgress}`,secondaryQuietLoading:`${p.medium} ${b.medium} ${u.quiet} ${u.inProgress}`,primary:`${p.large} ${b.medium} ${m.primary} ${$.primary}`,primaryDisabled:`${p.large} ${b.medium} ${u.isDisabled} ${m.primary}`,primarySmall:`${p.small} ${b.xsmall} ${m.primary} ${$.primary}`,primarySmallDisabled:`${p.small} ${b.xsmall} ${u.isDisabled} ${m.primary} `,primaryQuiet:`${p.large} ${b.medium} ${u.quiet} ${$.quiet}`,primaryQuietDisabled:`${p.large} ${b.medium} ${u.quiet} ${u.isDisabled}`,primarySmallQuiet:`${p.small} ${b.xsmall} ${u.quiet} ${$.quiet}`,primarySmallQuietDisabled:`${p.small} ${b.xsmall} ${u.quiet} ${u.isDisabled}`,primaryLoading:`${p.large} ${b.medium} ${u.inProgress} ${m.primary}`,primarySmallLoading:`${p.small} ${b.xsmall} ${u.inProgress} ${m.primary}`,primarySmallQuietLoading:`${p.small} ${b.xsmall} ${u.quiet} ${u.inProgress} ${m.primary}`,primaryQuietLoading:`${p.large} ${b.medium} ${u.quiet} ${u.inProgress}`,utility:`${p.utility} ${b.medium} ${m.utility} ${$.utility}`,utilityDisabled:`${p.utility} ${b.medium} ${m.utility} ${u.isDisabled}`,utilityQuiet:`${p.large} ${b.medium} ${u.utilityQuiet} ${$.utilityQuiet}`,utilityQuietDisabled:`${p.large} ${b.medium} ${u.utilityQuiet} ${u.isDisabled}`,utilitySmall:`${p.smallUtility} ${b.xsmall} ${m.utility} ${$.utility}`,utilitySmallDisabled:`${p.smallUtility} ${b.xsmall} ${m.utility} ${u.isDisabled}`,utilitySmallQuiet:`${p.smallUtility} ${b.xsmall} ${u.utilityQuiet} ${$.utilityQuiet}`,utilitySmallQuietDisabled:`${p.smallUtility} ${b.xsmall} ${u.utilityQuiet} ${u.isDisabled}`,utilityLoading:`${p.large} ${b.medium} ${m.utility} ${u.inProgress}`,utilitySmallLoading:`${p.smallUtility} ${b.xsmall} ${m.utility} ${u.inProgress}`,utilityQuietLoading:`${p.large} ${b.medium} ${u.inProgress} ${u.utilityQuiet}`,utilitySmallQuietLoading:`${p.smallUtility} ${b.xsmall} ${u.inProgress} ${u.utilityQuiet}`,negative:`${p.large} ${b.medium} ${m.negative} ${$.destructive}`,negativeDisabled:`${p.large} ${b.medium} ${m.negative} ${u.isDisabled}`,negativeQuiet:`${p.large} ${b.medium} ${u.negativeQuiet} ${$.negativeQuiet}`,negativeQuietDisabled:`${p.large} ${b.medium} ${u.negativeQuiet}${u.isDisabled}`,negativeSmall:`${p.small} ${b.xsmall} ${m.negative} ${$.destructive}`,negativeSmallDisabled:`${p.small} ${b.xsmall} ${m.negative} ${u.isDisabled}`,negativeSmallQuiet:`${p.small} ${b.xsmall} ${u.negativeQuiet} ${$.negativeQuiet}`,negativeSmallQuietDisabled:`${p.small} ${b.xsmall} ${u.negativeQuiet} ${u.isDisabled}`,negativeLoading:`${p.large} ${b.medium} ${m.negative} ${u.inProgress}`,negativeSmallLoading:`${p.small} ${b.xsmall} ${u.inProgress} ${m.negative}`,negativeQuietLoading:`${p.large} ${b.medium} ${u.negativeQuiet} ${m.negative} ${u.inProgress}`,negativeSmallQuietLoading:`${p.small} ${b.xsmall} ${u.negativeQuiet} ${u.inProgress}`,pill:`${p.pill} ${b.medium} ${m.pill} ${$.pill}`,pillSmall:`${p.pillSmall} ${b.xsmall} ${m.pill} ${$.pill}`,pillLoading:`${p.pill} ${b.medium} ${m.pill} ${u.inProgress}`,pillSmallLoading:`${p.pillSmall} ${b.xsmall} ${m.pill} ${u.inProgress}`,link:`${p.link} ${b.medium} ${m.link}`,linkSmall:`${p.link} ${b.xsmall} ${m.link}`,linkAsButton:"inline-block hover:no-underline text-center",a11y:"sr-only",fullWidth:"w-full max-w-full",contentWidth:"max-w-max"};var Lo={transparentBg:'before:i-bg-$color-modal-backdrop-background before:content-[""] before:absolute before:top-0 before:bottom-0 before:left-0 before:right-0 before:opacity-25',backdrop:"fixed inset-0 flex sm:place-content-center sm:place-items-center items-end z-20 [--w-modal-max-height:80%] [--w-modal-width:640px]",modal:"pb-safe-[32] i-shadow-$shadow-modal max-h-[--w-modal-max-height] min-h-[--w-modal-min-height] w-[--w-modal-width] h-[--w-modal-height] relative transition-300 ease-in-out backface-hidden will-change-height rounded-8 mx-0 sm:mx-16 i-bg-$color-modal-background flex flex-col overflow-hidden outline-none space-y-16 pt-8 sm:pt-32 sm:pb-32 rounded-b-0 sm:rounded-b-8",content:"block overflow-y-auto overflow-x-hidden last-child:mb-0 grow shrink px-16 sm:px-32 relative",footer:"flex justify-end shrink-0 px-16 sm:px-32",transitionTitle:"transition-all duration-300",transitionTitleCenter:"justify-self-center",transitionTitleColSpan:"col-span-2",title:"-mt-4 sm:-mt-8 h-40 sm:h-48 grid gap-8 sm:gap-16 grid-cols-[auto_1fr_auto] items-center px-16 sm:px-32 border-b sm:border-b-0 shrink-0",titleText:"mb-0 h4 sm:h3",titleButton:`${b.medium} ${m.pill} ${$.pill} sm:min-h-[44px] sm:min-w-[44px] min-h-[32px] min-w-[32px]`,titleButtonLeft:"-ml-8 sm:-ml-12 justify-self-start",titleButtonRight:"-mr-8 sm:-mr-12 justify-self-end",titleButtonIcon:"h-16 w-16 sm:h-24 sm:w-24",titleButtonIconRotated:"transform rotate-90"},P={alert:"flex p-16 border border-l-4 rounded-4",willChangeHeight:"will-change-height",textWrapper:"last-child:mb-0 text-s",title:"text-s",icon:"w-16 mr-8 min-w-16",negative:"i-border-$color-alert-negative-subtle-border i-bg-$color-alert-negative-background i-text-$color-alert-negative-text i-border-l-$color-alert-negative-border",negativeIcon:"i-text-$color-alert-negative-icon",positive:"i-border-$color-alert-positive-subtle-border i-bg-$color-alert-positive-background i-text-$color-alert-positive-text i-border-l-$color-alert-positive-border",positiveIcon:"i-text-$color-alert-positive-icon",warning:"i-border-$color-alert-warning-subtle-border i-bg-$color-alert-warning-background i-text-$color-alert-warning-text i-border-l-$color-alert-warning-border",warningIcon:"i-text-$color-alert-warning-icon",info:"i-border-$color-alert-info-subtle-border i-bg-$color-alert-info-background i-text-$color-alert-info-text i-border-l-$color-alert-info-border",infoIcon:"i-text-$color-alert-info-icon"};var tr={label:"antialiased block relative text-s font-bold pb-4 cursor-pointer i-text-$color-label-text",labelInvalid:"i-text-$color-label-text-negative",optional:"pl-8 font-normal text-s i-text-$color-label-optional-text"};var ue="absolute top-0 bottom-0 flex justify-center items-center focusable focus:[--w-outline-offset:-2px] bg-transparent ",Co={wrapper:ue+"right-0",wrapperWithLabel:"w-max pr-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"},Po={wrapper:ue+"left-0",wrapperWithLabel:"w-max pl-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"};var Ao={toggle:"absolute inset-0 h-full w-full appearance-none cursor-pointer focusable focusable-inset",label:`px-12 ${tr.label} py-8! cursor-pointer focusable focusable-inset`,buttonOrLink:"bg-transparent focusable",buttonOrLinkStretch:"inset-0 absolute"};var Io={base:"border-2 relative flex items-start",tooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background i-shadow-$shadow-tooltip i-text-$color-tooltip-text rounded-4 py-6 px-8",callout:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8",highlight:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8 drop-shadow-m",popover:"i-bg-$color-popover-background i-border-$color-popover-background i-text-$color-popover-paragraph-text rounded-8 p-16 drop-shadow-m",arrowBase:"absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",arrowDirectionLeft:"-left-[8px]",arrowDirectionRight:"-right-[8px]",arrowDirectionBottom:"-bottom-[8px]",arrowDirectionTop:"-top-[8px]",arrowTooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background",arrowCallout:"i-bg-$color-callout-background i-border-$color-callout-border",arrowPopover:"i-bg-$color-popover-background i-border-$color-popover-background",arrowHighlight:"i-bg-$color-callout-background i-border-$color-callout-border",content:"last-child:mb-0",notCallout:"absolute z-50",closeBtn:`${b.medium} ${m.pill} ${$.pill} justify-self-end -mr-8 ml-8`};var Q=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return e.reduce(function(t,o){return t.concat(typeof o=="string"?o:Array.isArray(o)?Q.apply(void 0,o):typeof o=="object"&&o?Object.keys(o).map(function(n){return o[n]?n:""}):"")},[]).join(" ")};import{LitElement as gr}from"lit";import{unsafeStatic as pr,html as fr}from"lit/static-html.js";var or=Object.create,he=Object.defineProperty,ir=Object.getOwnPropertyDescriptor,lr=Object.getOwnPropertyNames,be=Object.getOwnPropertySymbols,ar=Object.getPrototypeOf,me=Object.prototype.hasOwnProperty,nr=Object.prototype.propertyIsEnumerable,sr=(e,r)=>{var t={};for(var o in e)me.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&be)for(var o of be(e))r.indexOf(o)<0&&nr.call(e,o)&&(t[o]=e[o]);return t},ve=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),cr=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of lr(r))!me.call(e,n)&&n!==t&&he(e,n,{get:()=>r[n],enumerable:!(o=ir(r,n))||o.enumerable});return e},dr=(e,r,t)=>(t=e!=null?or(ar(e)):{},cr(r||!e||!e.__esModule?he(t,"default",{value:e,enumerable:!0}):t,e)),ur=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0;var r;(function(t){t.MalformedUnicode="MALFORMED_UNICODE",t.MalformedHexadecimal="MALFORMED_HEXADECIMAL",t.CodePointLimit="CODE_POINT_LIMIT",t.OctalDeprecation="OCTAL_DEPRECATION",t.EndOfString="END_OF_STRING"})(r=e.ErrorType||(e.ErrorType={})),e.errorMessages=new Map([[r.MalformedUnicode,"malformed Unicode character escape sequence"],[r.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[r.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[r.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[r.EndOfString,"malformed escape sequence at end of string"]])}),br=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;var r=ur();Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return r.ErrorType}}),Object.defineProperty(e,"errorMessages",{enumerable:!0,get:function(){return r.errorMessages}});function t(a){return a.match(/[^a-f0-9]/i)?NaN:parseInt(a,16)}function o(a,c,g){let f=t(a);if(Number.isNaN(f)||g!==void 0&&g!==a.length)throw new SyntaxError(r.errorMessages.get(c));return f}function n(a){let c=o(a,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(c)}function i(a,c){let g=o(a,r.ErrorType.MalformedUnicode,4);if(c!==void 0){let f=o(c,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(g,f)}return String.fromCharCode(g)}function l(a){return a.charAt(0)==="{"&&a.charAt(a.length-1)==="}"}function s(a){if(!l(a))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));let c=a.slice(1,-1),g=o(c,r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(g)}catch(f){throw f instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):f}}function d(a,c=!1){if(c)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));let g=parseInt(a,8);return String.fromCharCode(g)}var h=new Map([["b","\b"],["f","\f"],["n",`
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function v(a){return h.get(a)||a}var y=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function x(a,c=!1){return a.replace(y,function(g,f,k,_,O,C,E,w,D){if(f!==void 0)return"\\";if(k!==void 0)return n(k);if(_!==void 0)return s(_);if(O!==void 0)return i(O,C);if(E!==void 0)return i(E);if(w==="0")return"\0";if(w!==void 0)return d(w,!c);if(D!==void 0)return v(D);throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))})}e.unraw=x,e.default=x}),hr=dr(br(),1),S=e=>typeof e=="string",mr=e=>typeof e=="function",ge=new Map;function re(e){return[...Array.isArray(e)?e:[e],"en"]}function $e(e,r,t){let o=re(e);return B(()=>H("date",o,t),()=>new Intl.DateTimeFormat(o,t)).format(S(r)?new Date(r):r)}function K(e,r,t){let o=re(e);return B(()=>H("number",o,t),()=>new Intl.NumberFormat(o,t)).format(r)}function pe(e,r,t,o){var n=o,{offset:i=0}=n,l=sr(n,["offset"]),s,d;let h=re(e),v=r?B(()=>H("plural-ordinal",h),()=>new Intl.PluralRules(h,{type:"ordinal"})):B(()=>H("plural-cardinal",h),()=>new Intl.PluralRules(h,{type:"cardinal"}));return(d=(s=l[t])!=null?s:l[v.select(t-i)])!=null?d:l.other}function B(e,r){let t=e(),o=ge.get(t);return o||(o=r(),ge.set(t,o)),o}function H(e,r,t){let o=r.join("-");return`${e}-${o}-${JSON.stringify(t)}`}var xe=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,vr=(e,r,t={})=>{r=r||e;let o=i=>S(i)?t[i]||{style:i}:i,n=(i,l)=>{let s=Object.keys(t).length?o("number"):{},d=K(r,i,s);return l.replace("#",d)};return{plural:(i,l)=>{let{offset:s=0}=l,d=pe(r,!1,i,l);return n(i-s,d)},selectordinal:(i,l)=>{let{offset:s=0}=l,d=pe(r,!0,i,l);return n(i-s,d)},select:(i,l)=>{var s;return(s=l[i])!=null?s:l.other},number:(i,l)=>K(r,i,o(l)),date:(i,l)=>$e(r,i,o(l)),undefined:i=>i}};function $r(e,r,t){return(o,n={})=>{let i=vr(r,t,n),l=d=>Array.isArray(d)?d.reduce((h,v)=>{if(S(v))return h+v;let[y,x,a]=v,c={};a!=null&&!S(a)?Object.keys(a).forEach(f=>{c[f]=l(a[f])}):c=a;let g=i[x](o[y],c);return g==null?h:h+g},""):d,s=l(e);return S(s)&&xe.test(s)?(0,hr.default)(s.trim()):S(s)?s.trim():s}}var xr=Object.defineProperty,yr=(e,r,t)=>r in e?xr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,wr=(e,r,t)=>(yr(e,typeof r!="symbol"?r+"":r,t),t),kr=class{constructor(){wr(this,"_events",{})}on(e,r){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(r),()=>this.removeListener(e,r)}removeListener(e,r){if(!this._hasEvent(e))return;let t=this._events[e].indexOf(r);~t&&this._events[e].splice(t,1)}emit(e,...r){this._hasEvent(e)&&this._events[e].map(t=>t.apply(this,r))}_hasEvent(e){return Array.isArray(this._events[e])}},_r=Object.defineProperty,Or=(e,r,t)=>r in e?_r(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,A=(e,r,t)=>(Or(e,typeof r!="symbol"?r+"":r,t),t),Er=class extends kr{constructor(e){super(),A(this,"_locale"),A(this,"_locales"),A(this,"_localeData"),A(this,"_messages"),A(this,"_missing"),A(this,"t",this._.bind(this)),this._messages={},this._localeData={},e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(e.locale!=null||e.locales!=null)&&this.activate(e.locale,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,r){this._localeData[e]==null?this._localeData[e]=r:Object.assign(this._localeData[e],r)}loadLocaleData(e,r){r!=null?this._loadLocaleData(e,r):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,r){this._messages[e]==null?this._messages[e]=r:Object.assign(this._messages[e],r)}load(e,r){r!=null?this._load(e,r):Object.keys(e).forEach(t=>this._load(t,e[t])),this.emit("change")}loadAndActivate({locale:e,locales:r,messages:t}){this._locale=e,this._locales=r||void 0,this._messages[this._locale]=t,this.emit("change")}activate(e,r){this._locale=e,this._locales=r,this.emit("change")}_(e,r={},{message:t,formats:o}={}){S(e)||(r=e.values||r,t=e.message,e=e.id);let n=!this.messages[e],i=this._missing;if(i&&n)return mr(i)?i(this._locale,e):i;n&&this.emit("missing",{id:e,locale:this._locale});let l=this.messages[e]||t||e;return S(l)&&xe.test(l)?JSON.parse(`"${l}"`):S(l)?l:$r(l,this._locale,this._locales)(r,o)}date(e,r){return $e(this._locales||this._locale,e,r)}number(e,r){return K(this._locales||this._locale,e,r)}};function Dr(e={}){return new Er(e)}var ee=Dr(),Sr=JSON.parse('{"icon.title.alert-info":"Bl\xE5 sirkel med bokstaven \\"I\\""}'),Mr=JSON.parse('{"icon.title.alert-info":"Blue circle with the letter I"}'),Tr=JSON.parse('{"icon.title.alert-info":"Sininen ympyr\xE4, jonka sis\xE4ll\xE4 on i-kirjain"}'),jr=["en","nb","fi"],ye="en",fe=e=>jr.find(r=>e===r||e.toLowerCase().includes(r))||ye;function Lr(){if(typeof window=="undefined"){let e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return fe(e)}try{let e=document.documentElement.lang;return fe(e)}catch(e){return console.warn("could not detect locale, falling back to source locale",e),ye}}var Cr=(e,r,t,o)=>e==="nb"?t:e==="fi"?o:r,Pr=(e,r,t)=>{let o=Lr(),n=Cr(o,e,r,t);ee.load(o,n),ee.activate(o)};Pr(Mr,Sr,Tr);var Ar=class extends gr{render(){let e=ee.t({message:"Blue circle with the letter I",id:"icon.title.alert-info",comment:"Title for alert info icon"});return fr`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16">${pr(`<title>${e}</title>`)}<circle cx="8" cy="8" r="8" fill="currentColor"></circle><path fill="#fff" fill-rule="evenodd" d="M8 4a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM7.25 12a.75.75 0 0 0 1.5 0V8a.75.75 0 0 0-1.5 0v4Z" clip-rule="evenodd"></path></svg>`}};customElements.get("w-icon-alert-info-16")||customElements.define("w-icon-alert-info-16",Ar);import{LitElement as Gr}from"lit";import{unsafeStatic as zr,html as Vr}from"lit/static-html.js";var Ir=Object.create,Ee=Object.defineProperty,Nr=Object.getOwnPropertyDescriptor,Fr=Object.getOwnPropertyNames,we=Object.getOwnPropertySymbols,Ur=Object.getPrototypeOf,De=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable,Rr=(e,r)=>{var t={};for(var o in e)De.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&we)for(var o of we(e))r.indexOf(o)<0&&qr.call(e,o)&&(t[o]=e[o]);return t},Se=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Qr=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Fr(r))!De.call(e,n)&&n!==t&&Ee(e,n,{get:()=>r[n],enumerable:!(o=Nr(r,n))||o.enumerable});return e},Br=(e,r,t)=>(t=e!=null?Ir(Ur(e)):{},Qr(r||!e||!e.__esModule?Ee(t,"default",{value:e,enumerable:!0}):t,e)),Hr=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0;var r;(function(t){t.MalformedUnicode="MALFORMED_UNICODE",t.MalformedHexadecimal="MALFORMED_HEXADECIMAL",t.CodePointLimit="CODE_POINT_LIMIT",t.OctalDeprecation="OCTAL_DEPRECATION",t.EndOfString="END_OF_STRING"})(r=e.ErrorType||(e.ErrorType={})),e.errorMessages=new Map([[r.MalformedUnicode,"malformed Unicode character escape sequence"],[r.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[r.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[r.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[r.EndOfString,"malformed escape sequence at end of string"]])}),Jr=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;var r=Hr();Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return r.ErrorType}}),Object.defineProperty(e,"errorMessages",{enumerable:!0,get:function(){return r.errorMessages}});function t(a){return a.match(/[^a-f0-9]/i)?NaN:parseInt(a,16)}function o(a,c,g){let f=t(a);if(Number.isNaN(f)||g!==void 0&&g!==a.length)throw new SyntaxError(r.errorMessages.get(c));return f}function n(a){let c=o(a,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(c)}function i(a,c){let g=o(a,r.ErrorType.MalformedUnicode,4);if(c!==void 0){let f=o(c,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(g,f)}return String.fromCharCode(g)}function l(a){return a.charAt(0)==="{"&&a.charAt(a.length-1)==="}"}function s(a){if(!l(a))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));let c=a.slice(1,-1),g=o(c,r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(g)}catch(f){throw f instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):f}}function d(a,c=!1){if(c)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));let g=parseInt(a,8);return String.fromCharCode(g)}var h=new Map([["b","\b"],["f","\f"],["n",`
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function v(a){return h.get(a)||a}var y=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function x(a,c=!1){return a.replace(y,function(g,f,k,_,O,C,E,w,D){if(f!==void 0)return"\\";if(k!==void 0)return n(k);if(_!==void 0)return s(_);if(O!==void 0)return i(O,C);if(E!==void 0)return i(E);if(w==="0")return"\0";if(w!==void 0)return d(w,!c);if(D!==void 0)return v(D);throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))})}e.unraw=x,e.default=x}),Wr=Br(Jr(),1),M=e=>typeof e=="string",Zr=e=>typeof e=="function",ke=new Map;function ie(e){return[...Array.isArray(e)?e:[e],"en"]}function Me(e,r,t){let o=ie(e);return J(()=>G("date",o,t),()=>new Intl.DateTimeFormat(o,t)).format(M(r)?new Date(r):r)}function te(e,r,t){let o=ie(e);return J(()=>G("number",o,t),()=>new Intl.NumberFormat(o,t)).format(r)}function _e(e,r,t,o){var n=o,{offset:i=0}=n,l=Rr(n,["offset"]),s,d;let h=ie(e),v=r?J(()=>G("plural-ordinal",h),()=>new Intl.PluralRules(h,{type:"ordinal"})):J(()=>G("plural-cardinal",h),()=>new Intl.PluralRules(h,{type:"cardinal"}));return(d=(s=l[t])!=null?s:l[v.select(t-i)])!=null?d:l.other}function J(e,r){let t=e(),o=ke.get(t);return o||(o=r(),ke.set(t,o)),o}function G(e,r,t){let o=r.join("-");return`${e}-${o}-${JSON.stringify(t)}`}var Te=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,Xr=(e,r,t={})=>{r=r||e;let o=i=>M(i)?t[i]||{style:i}:i,n=(i,l)=>{let s=Object.keys(t).length?o("number"):{},d=te(r,i,s);return l.replace("#",d)};return{plural:(i,l)=>{let{offset:s=0}=l,d=_e(r,!1,i,l);return n(i-s,d)},selectordinal:(i,l)=>{let{offset:s=0}=l,d=_e(r,!0,i,l);return n(i-s,d)},select:(i,l)=>{var s;return(s=l[i])!=null?s:l.other},number:(i,l)=>te(r,i,o(l)),date:(i,l)=>Me(r,i,o(l)),undefined:i=>i}};function Yr(e,r,t){return(o,n={})=>{let i=Xr(r,t,n),l=d=>Array.isArray(d)?d.reduce((h,v)=>{if(M(v))return h+v;let[y,x,a]=v,c={};a!=null&&!M(a)?Object.keys(a).forEach(f=>{c[f]=l(a[f])}):c=a;let g=i[x](o[y],c);return g==null?h:h+g},""):d,s=l(e);return M(s)&&Te.test(s)?(0,Wr.default)(s.trim()):M(s)?s.trim():s}}var Kr=Object.defineProperty,et=(e,r,t)=>r in e?Kr(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,rt=(e,r,t)=>(et(e,typeof r!="symbol"?r+"":r,t),t),tt=class{constructor(){rt(this,"_events",{})}on(e,r){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(r),()=>this.removeListener(e,r)}removeListener(e,r){if(!this._hasEvent(e))return;let t=this._events[e].indexOf(r);~t&&this._events[e].splice(t,1)}emit(e,...r){this._hasEvent(e)&&this._events[e].map(t=>t.apply(this,r))}_hasEvent(e){return Array.isArray(this._events[e])}},ot=Object.defineProperty,it=(e,r,t)=>r in e?ot(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,I=(e,r,t)=>(it(e,typeof r!="symbol"?r+"":r,t),t),lt=class extends tt{constructor(e){super(),I(this,"_locale"),I(this,"_locales"),I(this,"_localeData"),I(this,"_messages"),I(this,"_missing"),I(this,"t",this._.bind(this)),this._messages={},this._localeData={},e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(e.locale!=null||e.locales!=null)&&this.activate(e.locale,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,r){this._localeData[e]==null?this._localeData[e]=r:Object.assign(this._localeData[e],r)}loadLocaleData(e,r){r!=null?this._loadLocaleData(e,r):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,r){this._messages[e]==null?this._messages[e]=r:Object.assign(this._messages[e],r)}load(e,r){r!=null?this._load(e,r):Object.keys(e).forEach(t=>this._load(t,e[t])),this.emit("change")}loadAndActivate({locale:e,locales:r,messages:t}){this._locale=e,this._locales=r||void 0,this._messages[this._locale]=t,this.emit("change")}activate(e,r){this._locale=e,this._locales=r,this.emit("change")}_(e,r={},{message:t,formats:o}={}){M(e)||(r=e.values||r,t=e.message,e=e.id);let n=!this.messages[e],i=this._missing;if(i&&n)return Zr(i)?i(this._locale,e):i;n&&this.emit("missing",{id:e,locale:this._locale});let l=this.messages[e]||t||e;return M(l)&&Te.test(l)?JSON.parse(`"${l}"`):M(l)?l:Yr(l,this._locale,this._locales)(r,o)}date(e,r){return Me(this._locales||this._locale,e,r)}number(e,r){return te(this._locales||this._locale,e,r)}};function at(e={}){return new lt(e)}var oe=at(),nt=JSON.parse('{"icon.title.alert-warning":"Gul varseltrekant med utropstegn"}'),st=JSON.parse('{"icon.title.alert-warning":"Yellow warning triangle with exclamation point"}'),ct=JSON.parse('{"icon.title.alert-warning":"Keltainen varoituskolmio, jonka sis\xE4ll\xE4 on huutomerkki"}'),dt=["en","nb","fi"],je="en",Oe=e=>dt.find(r=>e===r||e.toLowerCase().includes(r))||je;function ut(){if(typeof window=="undefined"){let e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return Oe(e)}try{let e=document.documentElement.lang;return Oe(e)}catch(e){return console.warn("could not detect locale, falling back to source locale",e),je}}var bt=(e,r,t,o)=>e==="nb"?t:e==="fi"?o:r,gt=(e,r,t)=>{let o=ut(),n=bt(o,e,r,t);oe.load(o,n),oe.activate(o)};gt(st,nt,ct);var pt=class extends Gr{render(){let e=oe.t({message:"Yellow warning triangle with exclamation point",id:"icon.title.alert-warning",comment:"Title for alert warning icon"});return Vr`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16">${zr(`<title>${e}</title>`)}<path fill="currentColor" d="M.245 12.01 6.159 1.083c.782-1.445 2.9-1.445 3.682 0l5.914 10.925c.734 1.357-.271 2.991-1.84 2.991H2.084C.517 15-.49 13.366.246 12.01Z"></path><path fill="#fff" fill-rule="evenodd" d="M8 3.25a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0V4A.75.75 0 0 1 8 3.25Z" clip-rule="evenodd"></path><path fill="#fff" d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z"></path></svg>`}};customElements.get("w-icon-alert-warning-16")||customElements.define("w-icon-alert-warning-16",pt);import{LitElement as Ot}from"lit";import{unsafeStatic as Et,html as Dt}from"lit/static-html.js";var ft=Object.create,Ie=Object.defineProperty,ht=Object.getOwnPropertyDescriptor,mt=Object.getOwnPropertyNames,Le=Object.getOwnPropertySymbols,vt=Object.getPrototypeOf,Ne=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable,xt=(e,r)=>{var t={};for(var o in e)Ne.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&Le)for(var o of Le(e))r.indexOf(o)<0&&$t.call(e,o)&&(t[o]=e[o]);return t},Fe=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),yt=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of mt(r))!Ne.call(e,n)&&n!==t&&Ie(e,n,{get:()=>r[n],enumerable:!(o=ht(r,n))||o.enumerable});return e},wt=(e,r,t)=>(t=e!=null?ft(vt(e)):{},yt(r||!e||!e.__esModule?Ie(t,"default",{value:e,enumerable:!0}):t,e)),kt=Fe(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0;var r;(function(t){t.MalformedUnicode="MALFORMED_UNICODE",t.MalformedHexadecimal="MALFORMED_HEXADECIMAL",t.CodePointLimit="CODE_POINT_LIMIT",t.OctalDeprecation="OCTAL_DEPRECATION",t.EndOfString="END_OF_STRING"})(r=e.ErrorType||(e.ErrorType={})),e.errorMessages=new Map([[r.MalformedUnicode,"malformed Unicode character escape sequence"],[r.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[r.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[r.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[r.EndOfString,"malformed escape sequence at end of string"]])}),_t=Fe(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;var r=kt();Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return r.ErrorType}}),Object.defineProperty(e,"errorMessages",{enumerable:!0,get:function(){return r.errorMessages}});function t(a){return a.match(/[^a-f0-9]/i)?NaN:parseInt(a,16)}function o(a,c,g){let f=t(a);if(Number.isNaN(f)||g!==void 0&&g!==a.length)throw new SyntaxError(r.errorMessages.get(c));return f}function n(a){let c=o(a,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(c)}function i(a,c){let g=o(a,r.ErrorType.MalformedUnicode,4);if(c!==void 0){let f=o(c,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(g,f)}return String.fromCharCode(g)}function l(a){return a.charAt(0)==="{"&&a.charAt(a.length-1)==="}"}function s(a){if(!l(a))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));let c=a.slice(1,-1),g=o(c,r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(g)}catch(f){throw f instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):f}}function d(a,c=!1){if(c)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));let g=parseInt(a,8);return String.fromCharCode(g)}var h=new Map([["b","\b"],["f","\f"],["n",`
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function v(a){return h.get(a)||a}var y=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function x(a,c=!1){return a.replace(y,function(g,f,k,_,O,C,E,w,D){if(f!==void 0)return"\\";if(k!==void 0)return n(k);if(_!==void 0)return s(_);if(O!==void 0)return i(O,C);if(E!==void 0)return i(E);if(w==="0")return"\0";if(w!==void 0)return d(w,!c);if(D!==void 0)return v(D);throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))})}e.unraw=x,e.default=x}),St=wt(_t(),1),T=e=>typeof e=="string",Mt=e=>typeof e=="function",Ce=new Map;function ne(e){return[...Array.isArray(e)?e:[e],"en"]}function Ue(e,r,t){let o=ne(e);return z(()=>V("date",o,t),()=>new Intl.DateTimeFormat(o,t)).format(T(r)?new Date(r):r)}function le(e,r,t){let o=ne(e);return z(()=>V("number",o,t),()=>new Intl.NumberFormat(o,t)).format(r)}function Pe(e,r,t,o){var n=o,{offset:i=0}=n,l=xt(n,["offset"]),s,d;let h=ne(e),v=r?z(()=>V("plural-ordinal",h),()=>new Intl.PluralRules(h,{type:"ordinal"})):z(()=>V("plural-cardinal",h),()=>new Intl.PluralRules(h,{type:"cardinal"}));return(d=(s=l[t])!=null?s:l[v.select(t-i)])!=null?d:l.other}function z(e,r){let t=e(),o=Ce.get(t);return o||(o=r(),Ce.set(t,o)),o}function V(e,r,t){let o=r.join("-");return`${e}-${o}-${JSON.stringify(t)}`}var qe=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,Tt=(e,r,t={})=>{r=r||e;let o=i=>T(i)?t[i]||{style:i}:i,n=(i,l)=>{let s=Object.keys(t).length?o("number"):{},d=le(r,i,s);return l.replace("#",d)};return{plural:(i,l)=>{let{offset:s=0}=l,d=Pe(r,!1,i,l);return n(i-s,d)},selectordinal:(i,l)=>{let{offset:s=0}=l,d=Pe(r,!0,i,l);return n(i-s,d)},select:(i,l)=>{var s;return(s=l[i])!=null?s:l.other},number:(i,l)=>le(r,i,o(l)),date:(i,l)=>Ue(r,i,o(l)),undefined:i=>i}};function jt(e,r,t){return(o,n={})=>{let i=Tt(r,t,n),l=d=>Array.isArray(d)?d.reduce((h,v)=>{if(T(v))return h+v;let[y,x,a]=v,c={};a!=null&&!T(a)?Object.keys(a).forEach(f=>{c[f]=l(a[f])}):c=a;let g=i[x](o[y],c);return g==null?h:h+g},""):d,s=l(e);return T(s)&&qe.test(s)?(0,St.default)(s.trim()):T(s)?s.trim():s}}var Lt=Object.defineProperty,Ct=(e,r,t)=>r in e?Lt(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Pt=(e,r,t)=>(Ct(e,typeof r!="symbol"?r+"":r,t),t),At=class{constructor(){Pt(this,"_events",{})}on(e,r){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(r),()=>this.removeListener(e,r)}removeListener(e,r){if(!this._hasEvent(e))return;let t=this._events[e].indexOf(r);~t&&this._events[e].splice(t,1)}emit(e,...r){this._hasEvent(e)&&this._events[e].map(t=>t.apply(this,r))}_hasEvent(e){return Array.isArray(this._events[e])}},It=Object.defineProperty,Nt=(e,r,t)=>r in e?It(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,N=(e,r,t)=>(Nt(e,typeof r!="symbol"?r+"":r,t),t),Ft=class extends At{constructor(e){super(),N(this,"_locale"),N(this,"_locales"),N(this,"_localeData"),N(this,"_messages"),N(this,"_missing"),N(this,"t",this._.bind(this)),this._messages={},this._localeData={},e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(e.locale!=null||e.locales!=null)&&this.activate(e.locale,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,r){this._localeData[e]==null?this._localeData[e]=r:Object.assign(this._localeData[e],r)}loadLocaleData(e,r){r!=null?this._loadLocaleData(e,r):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,r){this._messages[e]==null?this._messages[e]=r:Object.assign(this._messages[e],r)}load(e,r){r!=null?this._load(e,r):Object.keys(e).forEach(t=>this._load(t,e[t])),this.emit("change")}loadAndActivate({locale:e,locales:r,messages:t}){this._locale=e,this._locales=r||void 0,this._messages[this._locale]=t,this.emit("change")}activate(e,r){this._locale=e,this._locales=r,this.emit("change")}_(e,r={},{message:t,formats:o}={}){T(e)||(r=e.values||r,t=e.message,e=e.id);let n=!this.messages[e],i=this._missing;if(i&&n)return Mt(i)?i(this._locale,e):i;n&&this.emit("missing",{id:e,locale:this._locale});let l=this.messages[e]||t||e;return T(l)&&qe.test(l)?JSON.parse(`"${l}"`):T(l)?l:jt(l,this._locale,this._locales)(r,o)}date(e,r){return Ue(this._locales||this._locale,e,r)}number(e,r){return le(this._locales||this._locale,e,r)}};function Ut(e={}){return new Ft(e)}var ae=Ut(),qt=JSON.parse('{"icon.title.alert-error":"R\xF8d \xE5ttekant med hvitt utropstegn"}'),Rt=JSON.parse('{"icon.title.alert-error":"Red octagon with white exclamation point"}'),Qt=JSON.parse('{"icon.title.alert-error":"Punainen kahdeksankulmio, jonka sis\xE4ll\xE4 on valkoinen huutomerkki"}'),Bt=["en","nb","fi"],Re="en",Ae=e=>Bt.find(r=>e===r||e.toLowerCase().includes(r))||Re;function Ht(){if(typeof window=="undefined"){let e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return Ae(e)}try{let e=document.documentElement.lang;return Ae(e)}catch(e){return console.warn("could not detect locale, falling back to source locale",e),Re}}var Jt=(e,r,t,o)=>e==="nb"?t:e==="fi"?o:r,Gt=(e,r,t)=>{let o=Ht(),n=Jt(o,e,r,t);ae.load(o,n),ae.activate(o)};Gt(Rt,qt,Qt);var zt=class extends Ot{render(){let e=ae.t({message:"Red octagon with white exclamation point",id:"icon.title.alert-error",comment:"Title for alert error icon"});return Dt`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16">${Et(`<title>${e}</title>`)}<path fill="currentColor" d="M4.1.586A2 2 0 0 1 5.516 0h4.97A2 2 0 0 1 11.9.586L15.413 4.1A2 2 0 0 1 16 5.514v4.97a2 2 0 0 1-.586 1.415L11.9 15.413a2 2 0 0 1-1.415.586h-4.97a2 2 0 0 1-1.414-.586L.586 11.9A2 2 0 0 1 0 10.485v-4.97A2 2 0 0 1 .586 4.1L4.1.586Z"></path><path fill="#fff" fill-rule="evenodd" d="M8 3.25a.75.75 0 0 1 .75.75v5a.75.75 0 1 1-1.5 0V4A.75.75 0 0 1 8 3.25Z" clip-rule="evenodd"></path><path fill="#fff" d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z"></path></svg>`}};customElements.get("w-icon-alert-error-16")||customElements.define("w-icon-alert-error-16",zt);import{LitElement as io}from"lit";import{unsafeStatic as lo,html as ao}from"lit/static-html.js";var Vt=Object.create,Ge=Object.defineProperty,Wt=Object.getOwnPropertyDescriptor,Zt=Object.getOwnPropertyNames,Qe=Object.getOwnPropertySymbols,Xt=Object.getPrototypeOf,ze=Object.prototype.hasOwnProperty,Yt=Object.prototype.propertyIsEnumerable,Kt=(e,r)=>{var t={};for(var o in e)ze.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&Qe)for(var o of Qe(e))r.indexOf(o)<0&&Yt.call(e,o)&&(t[o]=e[o]);return t},Ve=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),eo=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Zt(r))!ze.call(e,n)&&n!==t&&Ge(e,n,{get:()=>r[n],enumerable:!(o=Wt(r,n))||o.enumerable});return e},ro=(e,r,t)=>(t=e!=null?Vt(Xt(e)):{},eo(r||!e||!e.__esModule?Ge(t,"default",{value:e,enumerable:!0}):t,e)),to=Ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0;var r;(function(t){t.MalformedUnicode="MALFORMED_UNICODE",t.MalformedHexadecimal="MALFORMED_HEXADECIMAL",t.CodePointLimit="CODE_POINT_LIMIT",t.OctalDeprecation="OCTAL_DEPRECATION",t.EndOfString="END_OF_STRING"})(r=e.ErrorType||(e.ErrorType={})),e.errorMessages=new Map([[r.MalformedUnicode,"malformed Unicode character escape sequence"],[r.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[r.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[r.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[r.EndOfString,"malformed escape sequence at end of string"]])}),oo=Ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;var r=to();Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return r.ErrorType}}),Object.defineProperty(e,"errorMessages",{enumerable:!0,get:function(){return r.errorMessages}});function t(a){return a.match(/[^a-f0-9]/i)?NaN:parseInt(a,16)}function o(a,c,g){let f=t(a);if(Number.isNaN(f)||g!==void 0&&g!==a.length)throw new SyntaxError(r.errorMessages.get(c));return f}function n(a){let c=o(a,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(c)}function i(a,c){let g=o(a,r.ErrorType.MalformedUnicode,4);if(c!==void 0){let f=o(c,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(g,f)}return String.fromCharCode(g)}function l(a){return a.charAt(0)==="{"&&a.charAt(a.length-1)==="}"}function s(a){if(!l(a))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));let c=a.slice(1,-1),g=o(c,r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(g)}catch(f){throw f instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):f}}function d(a,c=!1){if(c)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));let g=parseInt(a,8);return String.fromCharCode(g)}var h=new Map([["b","\b"],["f","\f"],["n",`
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function v(a){return h.get(a)||a}var y=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function x(a,c=!1){return a.replace(y,function(g,f,k,_,O,C,E,w,D){if(f!==void 0)return"\\";if(k!==void 0)return n(k);if(_!==void 0)return s(_);if(O!==void 0)return i(O,C);if(E!==void 0)return i(E);if(w==="0")return"\0";if(w!==void 0)return d(w,!c);if(D!==void 0)return v(D);throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))})}e.unraw=x,e.default=x}),no=ro(oo(),1),j=e=>typeof e=="string",so=e=>typeof e=="function",Be=new Map;function de(e){return[...Array.isArray(e)?e:[e],"en"]}function We(e,r,t){let o=de(e);return W(()=>Z("date",o,t),()=>new Intl.DateTimeFormat(o,t)).format(j(r)?new Date(r):r)}function se(e,r,t){let o=de(e);return W(()=>Z("number",o,t),()=>new Intl.NumberFormat(o,t)).format(r)}function He(e,r,t,o){var n=o,{offset:i=0}=n,l=Kt(n,["offset"]),s,d;let h=de(e),v=r?W(()=>Z("plural-ordinal",h),()=>new Intl.PluralRules(h,{type:"ordinal"})):W(()=>Z("plural-cardinal",h),()=>new Intl.PluralRules(h,{type:"cardinal"}));return(d=(s=l[t])!=null?s:l[v.select(t-i)])!=null?d:l.other}function W(e,r){let t=e(),o=Be.get(t);return o||(o=r(),Be.set(t,o)),o}function Z(e,r,t){let o=r.join("-");return`${e}-${o}-${JSON.stringify(t)}`}var Ze=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,co=(e,r,t={})=>{r=r||e;let o=i=>j(i)?t[i]||{style:i}:i,n=(i,l)=>{let s=Object.keys(t).length?o("number"):{},d=se(r,i,s);return l.replace("#",d)};return{plural:(i,l)=>{let{offset:s=0}=l,d=He(r,!1,i,l);return n(i-s,d)},selectordinal:(i,l)=>{let{offset:s=0}=l,d=He(r,!0,i,l);return n(i-s,d)},select:(i,l)=>{var s;return(s=l[i])!=null?s:l.other},number:(i,l)=>se(r,i,o(l)),date:(i,l)=>We(r,i,o(l)),undefined:i=>i}};function uo(e,r,t){return(o,n={})=>{let i=co(r,t,n),l=d=>Array.isArray(d)?d.reduce((h,v)=>{if(j(v))return h+v;let[y,x,a]=v,c={};a!=null&&!j(a)?Object.keys(a).forEach(f=>{c[f]=l(a[f])}):c=a;let g=i[x](o[y],c);return g==null?h:h+g},""):d,s=l(e);return j(s)&&Ze.test(s)?(0,no.default)(s.trim()):j(s)?s.trim():s}}var bo=Object.defineProperty,go=(e,r,t)=>r in e?bo(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,po=(e,r,t)=>(go(e,typeof r!="symbol"?r+"":r,t),t),fo=class{constructor(){po(this,"_events",{})}on(e,r){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(r),()=>this.removeListener(e,r)}removeListener(e,r){if(!this._hasEvent(e))return;let t=this._events[e].indexOf(r);~t&&this._events[e].splice(t,1)}emit(e,...r){this._hasEvent(e)&&this._events[e].map(t=>t.apply(this,r))}_hasEvent(e){return Array.isArray(this._events[e])}},ho=Object.defineProperty,mo=(e,r,t)=>r in e?ho(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,F=(e,r,t)=>(mo(e,typeof r!="symbol"?r+"":r,t),t),vo=class extends fo{constructor(e){super(),F(this,"_locale"),F(this,"_locales"),F(this,"_localeData"),F(this,"_messages"),F(this,"_missing"),F(this,"t",this._.bind(this)),this._messages={},this._localeData={},e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(e.locale!=null||e.locales!=null)&&this.activate(e.locale,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,r){this._localeData[e]==null?this._localeData[e]=r:Object.assign(this._localeData[e],r)}loadLocaleData(e,r){r!=null?this._loadLocaleData(e,r):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,r){this._messages[e]==null?this._messages[e]=r:Object.assign(this._messages[e],r)}load(e,r){r!=null?this._load(e,r):Object.keys(e).forEach(t=>this._load(t,e[t])),this.emit("change")}loadAndActivate({locale:e,locales:r,messages:t}){this._locale=e,this._locales=r||void 0,this._messages[this._locale]=t,this.emit("change")}activate(e,r){this._locale=e,this._locales=r,this.emit("change")}_(e,r={},{message:t,formats:o}={}){j(e)||(r=e.values||r,t=e.message,e=e.id);let n=!this.messages[e],i=this._missing;if(i&&n)return so(i)?i(this._locale,e):i;n&&this.emit("missing",{id:e,locale:this._locale});let l=this.messages[e]||t||e;return j(l)&&Ze.test(l)?JSON.parse(`"${l}"`):j(l)?l:uo(l,this._locale,this._locales)(r,o)}date(e,r){return We(this._locales||this._locale,e,r)}number(e,r){return se(this._locales||this._locale,e,r)}};function $o(e={}){return new vo(e)}var ce=$o(),xo=JSON.parse('{"icon.title.alert-success":"Gr\xF8nn sirkel med sjekkmerke"}'),yo=JSON.parse('{"icon.title.alert-success":"Green circle with checkmark"}'),wo=JSON.parse('{"icon.title.alert-success":"Vihre\xE4 ympyr\xE4, jonka sis\xE4ll\xE4 on valintamerkki"}'),ko=["en","nb","fi"],Xe="en",Je=e=>ko.find(r=>e===r||e.toLowerCase().includes(r))||Xe;function _o(){if(typeof window=="undefined"){let e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return Je(e)}try{let e=document.documentElement.lang;return Je(e)}catch(e){return console.warn("could not detect locale, falling back to source locale",e),Xe}}var Oo=(e,r,t,o)=>e==="nb"?t:e==="fi"?o:r,Eo=(e,r,t)=>{let o=_o(),n=Oo(o,e,r,t);ce.load(o,n),ce.activate(o)};Eo(yo,xo,wo);var Do=class extends io{render(){let e=ce.t({message:"Green circle with checkmark",id:"icon.title.alert-success",comment:"Title for alert success icon"});return ao`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16">${lo(`<title>${e}</title>`)}<circle cx="8" cy="8" r="8" fill="currentColor" transform="rotate(180 8 8)"></circle><path fill="#fff" fill-rule="evenodd" d="M11.498 4.94a.75.75 0 0 1 .063 1.058l-4 4.5a.75.75 0 0 1-1.091.032l-2-2a.75.75 0 0 1 1.06-1.06l1.438 1.437 3.471-3.905a.75.75 0 0 1 1.06-.063Z" clip-rule="evenodd"></path></svg>`}};customElements.get("w-icon-alert-success-16")||customElements.define("w-icon-alert-success-16",Do);var q={negative:"negative",positive:"positive",warning:"warning",info:"info"},R=class extends Ye{constructor(){super(),this.show=!1,this.role="alert"}connectedCallback(){if(super.connectedCallback(),!this.variant||!q[this.variant])throw new Error(`Invalid "variant" attribute. Set its value to one of the following:
negative, positive, warning, info.`)}get _wrapperClasses(){return Q({[P.alert]:!0,[P[this.variant]]:!0})}get _iconClasses(){let r=P[`${this.variant}Icon`];return Q({[P.icon]:!0,[r]:!0})}get _icon(){return this.variant===q.info?U`<w-icon-alert-info-16></w-icon-alert-info-16>`:this.variant===q.warning?U`<w-icon-alert-warning-16></w-icon-alert-warning-16>`:this.variant===q.negative?U`<w-icon-alert-error-16></w-icon-alert-error-16>`:this.variant===q.positive?U`<w-icon-alert-success-16></w-icon-alert-success-16>`:""}render(){return U`
<w-expand-transition ?show=${this.show}>
<div role=${this.role} class=${this._wrapperClasses}>
<div class=${this._iconClasses}>${this._icon}</div>
<div class=${b.textWrapper}>
<div class=${P.textWrapper}>
<slot></slot>

@@ -11,3 +15,3 @@ </div>

</w-expand-transition>
`}};$(g,"properties",{variant:{type:String,reflect:!0},show:{type:Boolean,reflect:!0},role:{type:String,reflect:!0}}),$(g,"styles",[m.styles,D`
`}};X(R,"properties",{variant:{type:String,reflect:!0},show:{type:Boolean,reflect:!0},role:{type:String,reflect:!0}}),X(R,"styles",[Ye.styles,So`
:host {

@@ -22,3 +26,3 @@ display: block;

}
`]);customElements.get("w-alert")||customElements.define("w-alert",g);export{g as WarpAlert};
`]);customElements.get("w-alert")||customElements.define("w-alert",R);export{R as WarpAlert};
//# sourceMappingURL=index.js.map

@@ -1,10 +0,11 @@

var Et=Object.create;var ye=Object.defineProperty,Rt=Object.defineProperties,Tt=Object.getOwnPropertyDescriptor,At=Object.getOwnPropertyDescriptors,Ot=Object.getOwnPropertyNames,ce=Object.getOwnPropertySymbols,Pt=Object.getPrototypeOf,we=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable;var ve=(e,t,o)=>t in e?ye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,C=(e,t)=>{for(var o in t||(t={}))we.call(t,o)&&ve(e,o,t[o]);if(ce)for(var o of ce(t))Ie.call(t,o)&&ve(e,o,t[o]);return e},O=(e,t)=>Rt(e,At(t));var J=(e,t)=>{var o={};for(var r in e)we.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&ce)for(var r of ce(e))t.indexOf(r)<0&&Ie.call(e,r)&&(o[r]=e[r]);return o};var qe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Mt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ot(t))!we.call(e,a)&&a!==o&&ye(e,a,{get:()=>t[a],enumerable:!(r=Tt(t,a))||r.enumerable});return e};var Bt=(e,t,o)=>(o=e!=null?Et(Pt(e)):{},Mt(t||!e||!e.__esModule?ye(o,"default",{value:e,enumerable:!0}):o,e));var ke=(e,t,o)=>(ve(e,typeof t!="symbol"?t+"":t,o),o);var ut=qe(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});j.errorMessages=j.ErrorType=void 0;var V;(function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"})(V=j.ErrorType||(j.ErrorType={}));j.errorMessages=new Map([[V.MalformedUnicode,"malformed Unicode character escape sequence"],[V.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[V.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[V.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[V.EndOfString,"malformed escape sequence at end of string"]])});var gt=qe(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.unraw=B.errorMessages=B.ErrorType=void 0;var D=ut();Object.defineProperty(B,"ErrorType",{enumerable:!0,get:function(){return D.ErrorType}});Object.defineProperty(B,"errorMessages",{enumerable:!0,get:function(){return D.errorMessages}});function Zt(e){return!e.match(/[^a-f0-9]/i)?parseInt(e,16):NaN}function me(e,t,o){let r=Zt(e);if(Number.isNaN(r)||o!==void 0&&o!==e.length)throw new SyntaxError(D.errorMessages.get(t));return r}function eo(e){let t=me(e,D.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}function bt(e,t){let o=me(e,D.ErrorType.MalformedUnicode,4);if(t!==void 0){let r=me(t,D.ErrorType.MalformedUnicode,4);return String.fromCharCode(o,r)}return String.fromCharCode(o)}function to(e){return e.charAt(0)==="{"&&e.charAt(e.length-1)==="}"}function oo(e){if(!to(e))throw new SyntaxError(D.errorMessages.get(D.ErrorType.MalformedUnicode));let t=e.slice(1,-1),o=me(t,D.ErrorType.MalformedUnicode);try{return String.fromCodePoint(o)}catch(r){throw r instanceof RangeError?new SyntaxError(D.errorMessages.get(D.ErrorType.CodePointLimit)):r}}function ro(e,t=!1){if(t)throw new SyntaxError(D.errorMessages.get(D.ErrorType.OctalDeprecation));let o=parseInt(e,8);return String.fromCharCode(o)}var io=new Map([["b","\b"],["f","\f"],["n",`
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function no(e){return io.get(e)||e}var lo=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function pt(e,t=!1){return e.replace(lo,function(o,r,a,n,l,i,s,p,g){if(r!==void 0)return"\\";if(a!==void 0)return eo(a);if(n!==void 0)return oo(n);if(l!==void 0)return bt(l,i);if(s!==void 0)return bt(s);if(p==="0")return"\0";if(p!==void 0)return ro(p,!t);if(g!==void 0)return no(g);throw new SyntaxError(D.errorMessages.get(D.ErrorType.EndOfString))})}B.unraw=pt;B.default=pt});import{css as vo,html as ie,nothing as Lt}from"lit";import Ct from"@warp-ds/elements-core";import{ifDefined as yo}from"lit/directives/if-defined.js";import{classMap as _o}from"lit/directives/class-map.js";var Ht=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function je(e){return class extends e{static createProperty(t,o){let r=o;(typeof(o==null?void 0:o.attribute)=="undefined"||(o==null?void 0:o.attribute)===!0)&&(r=Object.assign({},o,{attribute:Ht(t.toString())})),super.createProperty(t,r)}}}function _e(e){let t=[];for(let[o,r]of Object.entries(e))r&&t.push(o);return t.join(" ")}function Ue(){return`m${Math.random().toString(36).slice(2)}`}var De={box:"group block relative break-words last-child:mb-0 p-16 rounded-8",bleed:"-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8",info:"i-bg-$color-box-info-background i-text-$color-box-info-text",neutral:"i-bg-$color-box-neutral-background i-text-$color-box-neutral-text",bordered:"border-2 i-border-$color-box-bordered-border i-bg-$color-box-bordered-background i-text-$color-box-bordered-text",infoClickable:"hover:i-bg-$color-box-info-background-hover active:i-bg-$color-box-info-background-hover",neutralClickable:"hover:i-bg-$color-box-neutral-background-hover active:i-bg-$color-box-neutral-background-hover",borderedClickable:"hover:i-bg-$color-box-bordered-background-hover active:i-bg-$color-box-bordered-background-hover hover:i-border-$color-box-bordered-border-hover active:i-border-$color-box-bordered-border-hover"};var Nt="focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block",Co={expandable:"will-change-height",expandableTitle:"font-bold i-text-$color-expandable-title-text",expandableBox:"i-bg-$color-expandable-background hover:i-bg-$color-expandable-background-hover py-0 px-0 "+De.box,expandableBleed:De.bleed,chevron:"inline-block align-middle i-text-$color-expandable-icon",chevronNonBox:"relative left-8",chevronBox:"absolute right-16",chevronTransform:"transform transition-transform transform-gpu ease-in-out",chevronExpand:"-rotate-180",chevronCollapse:"rotate-180",expansion:"overflow-hidden",expansionNotExpanded:"h-0 invisible",button:Nt+" hover:underline focus:underline",buttonBox:"w-full text-left relative inline-flex items-center "+De.box,paddingTop:"pt-0",title:"flex justify-between items-center",titleType:"h4"},N="font-bold focusable justify-center transition-colors ease-in-out",v={primary:"i-text-$color-button-primary-text hover:i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover active:i-bg-$color-button-primary-background-active",secondary:"i-text-$color-button-secondary-text hover:i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active",utility:"i-text-$color-button-utility-text hover:i-text-$color-button-utility-text i-bg-$color-button-utility-background i-border-$color-button-utility-border hover:i-bg-$color-button-utility-background hover:i-border-$color-button-utility-border-hover active:i-border-$color-button-utility-border-active",destructive:"i-bg-$color-button-negative-background i-text-$color-button-negative-text hover:i-text-$color-button-negative-text hover:i-bg-$color-button-negative-background-hover active:i-bg-$color-button-negative-background-active",pill:"i-text-$color-button-pill-icon hover:i-text-$color-button-pill-icon-hover active:i-text-$color-button-pill-icon-active i-bg-$color-button-pill-background hover:i-bg-$color-button-pill-background-hover active:i-bg-$color-button-pill-background-active",disabled:"i-text-$color-button-disabled-text i-bg-$color-button-disabled-background",quiet:"i-bg-$color-button-quiet-background i-text-$color-button-quiet-text hover:i-bg-$color-button-quiet-background-hover active:i-bg-$color-button-quiet-background-active",utilityQuiet:"i-text-$color-button-utility-quiet-text i-bg-$color-button-utility-quiet-background hover:i-bg-$color-button-utility-quiet-background-hover",negativeQuiet:"i-bg-$color-button-negative-quiet-background i-text-$color-button-negative-quiet-text hover:i-bg-$color-button-negative-quiet-background-hover active:i-bg-$color-button-negative-quiet-background-active",loading:"i-text-$color-button-loading-text i-bg-$color-button-loading-background",link:"i-text-$color-button-link-text"},f={primary:`border-0 rounded-8 ${N}`,secondary:`border-2 rounded-8 ${N}`,utility:`border rounded-4 ${N}`,negative:`border-0 rounded-8 ${N}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${N}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline ${v.link}`},u={xsmall:"py-6 px-16",small:"py-8 px-16",medium:"py-10 px-14",large:"py-12 px-16",utility:"py-[11px] px-[15px]",smallUtility:"py-[7px] px-[15px]",pill:"min-h-[44px] min-w-[44px]",pillSmall:"min-h-32 min-w-32",link:"p-0"},d={medium:"text-m leading-[24]",xsmall:"text-xs"},c={inProgress:`border-transparent animate-inprogress pointer-events-none ${v.loading}`,quiet:`border-0 rounded-8 ${N}`,utilityQuiet:`border-0 rounded-4 ${N}`,negativeQuiet:`border-0 rounded-8 ${N}`,isDisabled:`font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${v.disabled}`},So={secondary:`${u.medium} ${d.medium} ${f.secondary} ${v.secondary}`,secondaryHref:`${u.medium} ${d.medium} ${f.secondary} ${v.secondary}`,secondaryDisabled:`${u.medium} ${d.medium} ${f.secondary} ${c.isDisabled}`,secondarySmall:`${d.xsmall} ${u.xsmall} ${f.secondary} ${v.secondary}`,secondarySmallDisabled:`${d.xsmall} ${u.xsmall} ${f.secondary} ${c.isDisabled}`,secondaryQuiet:`${u.medium} ${d.medium} ${c.quiet} ${v.quiet}`,secondaryQuietDisabled:`${u.medium} ${d.medium} ${c.quiet} ${c.isDisabled}`,secondarySmallQuiet:`${d.xsmall} ${u.xsmall} ${c.quiet} ${v.quiet}`,secondarySmallQuietDisabled:`${d.xsmall} ${u.xsmall} ${c.quiet} ${c.isDisabled}`,secondaryLoading:`${u.medium} ${d.medium} ${f.secondary} ${c.inProgress}`,secondarySmallLoading:`${d.xsmall} ${u.xsmall} ${f.secondary} ${c.inProgress}`,secondarySmallQuietLoading:`${d.xsmall} ${u.xsmall} ${c.quiet} ${c.inProgress}`,secondaryQuietLoading:`${u.medium} ${d.medium} ${c.quiet} ${c.inProgress}`,primary:`${u.large} ${d.medium} ${f.primary} ${v.primary}`,primaryDisabled:`${u.large} ${d.medium} ${c.isDisabled} ${f.primary}`,primarySmall:`${u.small} ${d.xsmall} ${f.primary} ${v.primary}`,primarySmallDisabled:`${u.small} ${d.xsmall} ${c.isDisabled} ${f.primary} `,primaryQuiet:`${u.large} ${d.medium} ${c.quiet} ${v.quiet}`,primaryQuietDisabled:`${u.large} ${d.medium} ${c.quiet} ${c.isDisabled}`,primarySmallQuiet:`${u.small} ${d.xsmall} ${c.quiet} ${v.quiet}`,primarySmallQuietDisabled:`${u.small} ${d.xsmall} ${c.quiet} ${c.isDisabled}`,primaryLoading:`${u.large} ${d.medium} ${c.inProgress} ${f.primary}`,primarySmallLoading:`${u.small} ${d.xsmall} ${c.inProgress} ${f.primary}`,primarySmallQuietLoading:`${u.small} ${d.xsmall} ${c.quiet} ${c.inProgress} ${f.primary}`,primaryQuietLoading:`${u.large} ${d.medium} ${c.quiet} ${c.inProgress}`,utility:`${u.utility} ${d.medium} ${f.utility} ${v.utility}`,utilityDisabled:`${u.utility} ${d.medium} ${f.utility} ${c.isDisabled}`,utilityQuiet:`${u.large} ${d.medium} ${c.utilityQuiet} ${v.utilityQuiet}`,utilityQuietDisabled:`${u.large} ${d.medium} ${c.utilityQuiet} ${c.isDisabled}`,utilitySmall:`${u.smallUtility} ${d.xsmall} ${f.utility} ${v.utility}`,utilitySmallDisabled:`${u.smallUtility} ${d.xsmall} ${f.utility} ${c.isDisabled}`,utilitySmallQuiet:`${u.smallUtility} ${d.xsmall} ${c.utilityQuiet} ${v.utilityQuiet}`,utilitySmallQuietDisabled:`${u.smallUtility} ${d.xsmall} ${c.utilityQuiet} ${c.isDisabled}`,utilityLoading:`${u.large} ${d.medium} ${f.utility} ${c.inProgress}`,utilitySmallLoading:`${u.smallUtility} ${d.xsmall} ${f.utility} ${c.inProgress}`,utilityQuietLoading:`${u.large} ${d.medium} ${c.inProgress} ${c.utilityQuiet}`,utilitySmallQuietLoading:`${u.smallUtility} ${d.xsmall} ${c.inProgress} ${c.utilityQuiet}`,negative:`${u.large} ${d.medium} ${f.negative} ${v.destructive}`,negativeDisabled:`${u.large} ${d.medium} ${f.negative} ${c.isDisabled}`,negativeQuiet:`${u.large} ${d.medium} ${c.negativeQuiet} ${v.negativeQuiet}`,negativeQuietDisabled:`${u.large} ${d.medium} ${c.negativeQuiet}${c.isDisabled}`,negativeSmall:`${u.small} ${d.xsmall} ${f.negative} ${v.destructive}`,negativeSmallDisabled:`${u.small} ${d.xsmall} ${f.negative} ${c.isDisabled}`,negativeSmallQuiet:`${u.small} ${d.xsmall} ${c.negativeQuiet} ${v.negativeQuiet}`,negativeSmallQuietDisabled:`${u.small} ${d.xsmall} ${c.negativeQuiet} ${c.isDisabled}`,negativeLoading:`${u.large} ${d.medium} ${f.negative} ${c.inProgress}`,negativeSmallLoading:`${u.small} ${d.xsmall} ${c.inProgress} ${f.negative}`,negativeQuietLoading:`${u.large} ${d.medium} ${c.negativeQuiet} ${f.negative} ${c.inProgress}`,negativeSmallQuietLoading:`${u.small} ${d.xsmall} ${c.negativeQuiet} ${c.inProgress}`,pill:`${u.pill} ${d.medium} ${f.pill} ${v.pill}`,pillSmall:`${u.pillSmall} ${d.xsmall} ${f.pill} ${v.pill}`,pillLoading:`${u.pill} ${d.medium} ${f.pill} ${c.inProgress}`,pillSmallLoading:`${u.pillSmall} ${d.xsmall} ${f.pill} ${c.inProgress}`,link:`${u.link} ${d.medium} ${f.link}`,linkSmall:`${u.link} ${d.xsmall} ${f.link}`,linkAsButton:"inline-block hover:no-underline text-center",a11y:"sr-only",fullWidth:"w-full max-w-full",contentWidth:"max-w-max"};var Eo={transparentBg:'before:i-bg-$color-modal-backdrop-background before:content-[""] before:absolute before:top-0 before:bottom-0 before:left-0 before:right-0 before:opacity-25',backdrop:"fixed inset-0 flex sm:place-content-center sm:place-items-center items-end z-20 [--w-modal-max-height:80%] [--w-modal-width:640px]",modal:"pb-safe-[32] i-shadow-$shadow-modal max-h-[--w-modal-max-height] min-h-[--w-modal-min-height] w-[--w-modal-width] h-[--w-modal-height] relative transition-300 ease-in-out backface-hidden will-change-height rounded-8 mx-0 sm:mx-16 i-bg-$color-modal-background flex flex-col overflow-hidden outline-none space-y-16 pt-8 sm:pt-32 sm:pb-32 rounded-b-0 sm:rounded-b-8",content:"block overflow-y-auto overflow-x-hidden last-child:mb-0 grow shrink px-16 sm:px-32 relative",footer:"flex justify-end shrink-0 px-16 sm:px-32",transitionTitle:"transition-all duration-300",transitionTitleCenter:"justify-self-center",transitionTitleColSpan:"col-span-2",title:"-mt-4 sm:-mt-8 h-40 sm:h-48 grid gap-8 sm:gap-16 grid-cols-[auto_1fr_auto] items-center px-16 sm:px-32 border-b sm:border-b-0 shrink-0",titleText:"mb-0 h4 sm:h3",titleButton:`${d.medium} ${f.pill} ${v.pill} sm:min-h-[44px] sm:min-w-[44px] min-h-[32px] min-w-[32px]`,titleButtonLeft:"-ml-8 sm:-ml-12 justify-self-start",titleButtonRight:"-mr-8 sm:-mr-12 justify-self-end",titleButtonIcon:"h-16 w-16 sm:h-24 sm:w-24",titleButtonIconRotated:"transform rotate-90"};var Qt={label:"antialiased block relative text-s font-bold pb-4 cursor-pointer i-text-$color-label-text",labelInvalid:"i-text-$color-label-text-negative",optional:"pl-8 font-normal text-s i-text-$color-label-optional-text"};var ze="absolute top-0 bottom-0 flex justify-center items-center focusable focus:[--w-outline-offset:-2px] bg-transparent ",Ro={wrapper:ze+"right-0",wrapperWithLabel:"w-max pr-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"},To={wrapper:ze+"left-0",wrapperWithLabel:"w-max pl-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"};var Ao={toggle:"absolute inset-0 h-full w-full appearance-none cursor-pointer focusable focusable-inset",label:`px-12 ${Qt.label} py-8! cursor-pointer focusable focusable-inset`,buttonOrLink:"bg-transparent focusable",buttonOrLinkStretch:"inset-0 absolute"};var I={base:"border-2 relative flex items-start",tooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background i-shadow-$shadow-tooltip i-text-$color-tooltip-text rounded-4 py-6 px-8",callout:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8",highlight:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8 drop-shadow-m",popover:"i-bg-$color-popover-background i-border-$color-popover-background i-text-$color-popover-paragraph-text rounded-8 p-16 drop-shadow-m",arrowBase:"absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",arrowDirectionLeft:"-left-[8px]",arrowDirectionRight:"-right-[8px]",arrowDirectionBottom:"-bottom-[8px]",arrowDirectionTop:"-top-[8px]",arrowTooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background",arrowCallout:"i-bg-$color-callout-background i-border-$color-callout-border",arrowPopover:"i-bg-$color-popover-background i-border-$color-popover-background",arrowHighlight:"i-bg-$color-callout-background i-border-$color-callout-border",content:"last-child:mb-0",notCallout:"absolute z-50",closeBtn:`${d.medium} ${f.pill} ${v.pill} justify-self-end -mr-8 ml-8`};function K(e){return e.split("-")[0]}function ue(e){return e.split("-")[1]}function Y(e){return["top","bottom"].includes(K(e))?"x":"y"}function Ce(e){return e==="y"?"height":"width"}function Ve(e,t,o){let{reference:r,floating:a}=e,n=r.x+r.width/2-a.width/2,l=r.y+r.height/2-a.height/2,i=Y(t),s=Ce(i),p=r[s]/2-a[s]/2,g=i==="x",b;switch(K(t)){case"top":b={x:n,y:r.y-a.height};break;case"bottom":b={x:n,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:l};break;case"left":b={x:r.x-a.width,y:l};break;default:b={x:r.x,y:r.y}}switch(ue(t)){case"start":b[i]-=p*(o&&g?-1:1);break;case"end":b[i]+=p*(o&&g?-1:1)}return b}var We=async(e,t,o)=>{let{placement:r="bottom",strategy:a="absolute",middleware:n=[],platform:l}=o,i=await(l.isRTL==null?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:p,y:g}=Ve(s,r,i),b=r,x={},h=0;for(let m=0;m<n.length;m++){let{name:$,fn:y}=n[m],{x:w,y:L,data:_,reset:k}=await y({x:p,y:g,initialPlacement:r,placement:b,strategy:a,middlewareData:x,rects:s,platform:l,elements:{reference:e,floating:t}});p=w!=null?w:p,g=L!=null?L:g,x=O(C({},x),{[$]:C(C({},x[$]),_)}),k&&h<=50&&(h++,typeof k=="object"&&(k.placement&&(b=k.placement),k.rects&&(s=k.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):k.rects),{x:p,y:g}=Ve(s,b,i)),m=-1)}return{x:p,y:g,placement:b,strategy:a,middlewareData:x}};function Ge(e){return typeof e!="number"?function(t){return C({top:0,right:0,bottom:0,left:0},t)}(e):{top:e,right:e,bottom:e,left:e}}function X(e){return O(C({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}async function Se(e,t){var o;t===void 0&&(t={});let{x:r,y:a,platform:n,rects:l,elements:i,strategy:s}=e,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:b="floating",altBoundary:x=!1,padding:h=0}=t,m=Ge(h),$=i[x?b==="floating"?"reference":"floating":b],y=X(await n.getClippingRect({element:(o=await(n.isElement==null?void 0:n.isElement($)))==null||o?$:$.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(i.floating)),boundary:p,rootBoundary:g,strategy:s})),w=X(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b==="floating"?O(C({},l.floating),{x:r,y:a}):l.reference,offsetParent:await(n.getOffsetParent==null?void 0:n.getOffsetParent(i.floating)),strategy:s}):l[b]);return{top:y.top-w.top+m.top,bottom:w.bottom-y.bottom+m.bottom,left:y.left-w.left+m.left,right:w.right-y.right+m.right}}var It=Math.min,qt=Math.max;function Le(e,t,o){return qt(e,It(t,o))}var Ee=e=>({name:"arrow",options:e,async fn(t){let{element:o,padding:r=0}=e!=null?e:{},{x:a,y:n,placement:l,rects:i,platform:s}=t;if(o==null)return{};let p=Ge(r),g={x:a,y:n},b=Y(l),x=ue(l),h=Ce(b),m=await s.getDimensions(o),$=b==="y"?"top":"left",y=b==="y"?"bottom":"right",w=i.reference[h]+i.reference[b]-g[b]-i.floating[h],L=g[b]-i.reference[b],_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(o)),k=_?b==="y"?_.clientHeight||0:_.clientWidth||0:0;k===0&&(k=i.floating[h]);let le=w/2-L/2,U=p[$],W=k-m[h]-p[y],T=k/2-m[h]/2+le,S=Le(U,T,W),A=(x==="start"?p[$]:p[y])>0&&T!==S&&i.reference[h]<=i.floating[h];return{[b]:g[b]-(A?T<U?U-T:W-T:0),data:{[b]:S,centerOffset:T-S}}}}),jt={left:"right",right:"left",bottom:"top",top:"bottom"};function de(e){return e.replace(/left|right|bottom|top/g,t=>jt[t])}function Ut(e,t,o){o===void 0&&(o=!1);let r=ue(e),a=Y(e),n=Ce(a),l=a==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(l=de(l)),{main:l,cross:de(l)}}var zt={start:"end",end:"start"};function Fe(e){return e.replace(/start|end/g,t=>zt[t])}var Vt=["top","right","bottom","left"],Po=Vt.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);var Re=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o;let{placement:r,middlewareData:a,rects:n,initialPlacement:l,platform:i,elements:s}=t,T=e,{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",flipAlignment:h=!0}=T,m=J(T,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"]),$=K(r),y=b||($===l||!h?[de(l)]:function(S){let A=de(S);return[Fe(S),A,Fe(A)]}(l)),w=[l,...y],L=await Se(t,m),_=[],k=((o=a.flip)==null?void 0:o.overflows)||[];if(p&&_.push(L[$]),g){let{main:S,cross:A}=Ut(r,n,await(i.isRTL==null?void 0:i.isRTL(s.floating)));_.push(L[S],L[A])}if(k=[...k,{placement:r,overflows:_}],!_.every(S=>S<=0)){var le,U;let S=((le=(U=a.flip)==null?void 0:U.index)!=null?le:0)+1,A=w[S];if(A)return{data:{index:S,overflows:k},reset:{placement:A}};let ae="bottom";switch(x){case"bestFit":{var W;let Qe=(W=k.map(se=>[se,se.overflows.filter(G=>G>0).reduce((G,St)=>G+St,0)]).sort((se,G)=>se[1]-G[1])[0])==null?void 0:W[0].placement;Qe&&(ae=Qe);break}case"initialPlacement":ae=l}if(r!==ae)return{reset:{placement:ae}}}return{}}}};var Te=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){let{x:o,y:r}=t,a=await async function(n,l){let{placement:i,platform:s,elements:p}=n,g=await(s.isRTL==null?void 0:s.isRTL(p.floating)),b=K(i),x=ue(i),h=Y(i)==="x",m=["left","top"].includes(b)?-1:1,$=g&&h?-1:1,y=typeof l=="function"?l(n):l,{mainAxis:w,crossAxis:L,alignmentAxis:_}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:C({mainAxis:0,crossAxis:0,alignmentAxis:null},y);return x&&typeof _=="number"&&(L=x==="end"?-1*_:_),h?{x:L*$,y:w*m}:{x:w*m,y:L*$}}(t,e);return{x:o+a.x,y:r+a.y,data:a}}}};function Ft(e){return e==="x"?"y":"x"}var Ae=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:r,placement:a}=t,y=e,{mainAxis:n=!0,crossAxis:l=!1,limiter:i={fn:w=>{let{x:L,y:_}=w;return{x:L,y:_}}}}=y,s=J(y,["mainAxis","crossAxis","limiter"]),p={x:o,y:r},g=await Se(t,s),b=Y(K(a)),x=Ft(b),h=p[b],m=p[x];if(n){let w=b==="y"?"bottom":"right";h=Le(h+g[b==="y"?"top":"left"],h,h-g[w])}if(l){let w=x==="y"?"bottom":"right";m=Le(m+g[x==="y"?"top":"left"],m,m-g[w])}let $=i.fn(O(C({},t),{[b]:h,[x]:m}));return O(C({},$),{data:{x:$.x-o,y:$.y-r}})}}};function et(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function M(e){if(e==null)return window;if(!et(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function ee(e){return M(e).getComputedStyle(e)}function P(e){return et(e)?"":e?(e.nodeName||"").toLowerCase():""}function tt(){let e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function R(e){return e instanceof M(e).HTMLElement}function z(e){return e instanceof M(e).Element}function Pe(e){return typeof ShadowRoot=="undefined"?!1:e instanceof M(e).ShadowRoot||e instanceof ShadowRoot}function pe(e){let{overflow:t,overflowX:o,overflowY:r}=ee(e);return/auto|scroll|overlay|hidden/.test(t+r+o)}function Wt(e){return["table","td","th"].includes(P(e))}function Je(e){let t=/firefox/i.test(tt()),o=ee(e);return o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].includes(o.willChange)||t&&o.willChange==="filter"||t&&!!o.filter&&o.filter!=="none"}function ot(){return!/^((?!chrome|android).)*safari/i.test(tt())}var Xe=Math.min,Z=Math.max,be=Math.round;function q(e,t,o){var r,a,n,l;t===void 0&&(t=!1),o===void 0&&(o=!1);let i=e.getBoundingClientRect(),s=1,p=1;t&&R(e)&&(s=e.offsetWidth>0&&be(i.width)/e.offsetWidth||1,p=e.offsetHeight>0&&be(i.height)/e.offsetHeight||1);let g=z(e)?M(e):window,b=!ot()&&o,x=(i.left+(b&&(r=(a=g.visualViewport)==null?void 0:a.offsetLeft)!=null?r:0))/s,h=(i.top+(b&&(n=(l=g.visualViewport)==null?void 0:l.offsetTop)!=null?n:0))/p,m=i.width/s,$=i.height/p;return{width:m,height:$,top:h,right:x+m,bottom:h+$,left:x,x,y:h}}function Q(e){return(t=e,(t instanceof M(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function ge(e){return z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function rt(e){return q(Q(e)).left+ge(e).scrollLeft}function Gt(e,t,o){let r=R(t),a=Q(t),n=q(e,r&&function(s){let p=q(s);return be(p.width)!==s.offsetWidth||be(p.height)!==s.offsetHeight}(t),o==="fixed"),l={scrollLeft:0,scrollTop:0},i={x:0,y:0};if(r||!r&&o!=="fixed")if((P(t)!=="body"||pe(a))&&(l=ge(t)),R(t)){let s=q(t,!0);i.x=s.x+t.clientLeft,i.y=s.y+t.clientTop}else a&&(i.x=rt(a));return{x:n.left+l.scrollLeft-i.x,y:n.top+l.scrollTop-i.y,width:n.width,height:n.height}}function it(e){return P(e)==="html"?e:e.assignedSlot||e.parentNode||(Pe(e)?e.host:null)||Q(e)}function Ke(e){return R(e)&&getComputedStyle(e).position!=="fixed"?e.offsetParent:null}function Oe(e){let t=M(e),o=Ke(e);for(;o&&Wt(o)&&getComputedStyle(o).position==="static";)o=Ke(o);return o&&(P(o)==="html"||P(o)==="body"&&getComputedStyle(o).position==="static"&&!Je(o))?t:o||function(r){let a=it(r);for(Pe(a)&&(a=a.host);R(a)&&!["html","body"].includes(P(a));){if(Je(a))return a;a=a.parentNode}return null}(e)||t}function Ye(e){if(R(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=q(e);return{width:t.width,height:t.height}}function nt(e){let t=it(e);return["html","body","#document"].includes(P(t))?e.ownerDocument.body:R(t)&&pe(t)?t:nt(t)}function lt(e,t){var o;t===void 0&&(t=[]);let r=nt(e),a=r===((o=e.ownerDocument)==null?void 0:o.body),n=M(r),l=a?[n].concat(n.visualViewport||[],pe(r)?r:[]):r,i=t.concat(l);return a?i:i.concat(lt(l))}function Ze(e,t,o){return t==="viewport"?X(function(r,a){let n=M(r),l=Q(r),i=n.visualViewport,s=l.clientWidth,p=l.clientHeight,g=0,b=0;if(i){s=i.width,p=i.height;let x=ot();(x||!x&&a==="fixed")&&(g=i.offsetLeft,b=i.offsetTop)}return{width:s,height:p,x:g,y:b}}(e,o)):z(t)?function(r,a){let n=q(r,!1,a==="fixed"),l=n.top+r.clientTop,i=n.left+r.clientLeft;return{top:l,left:i,x:i,y:l,right:i+r.clientWidth,bottom:l+r.clientHeight,width:r.clientWidth,height:r.clientHeight}}(t,o):X(function(r){var a;let n=Q(r),l=ge(r),i=(a=r.ownerDocument)==null?void 0:a.body,s=Z(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),p=Z(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),g=-l.scrollLeft+rt(r),b=-l.scrollTop;return ee(i||n).direction==="rtl"&&(g+=Z(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:p,x:g,y:b}}(Q(e)))}function Jt(e){let t=lt(e),o=["absolute","fixed"].includes(ee(e).position)&&R(e)?Oe(e):e;return z(o)?t.filter(r=>z(r)&&function(a,n){let l=n.getRootNode==null?void 0:n.getRootNode();if(a.contains(n))return!0;if(l&&Pe(l)){let i=n;do{if(i&&a===i)return!0;i=i.parentNode||i.host}while(i)}return!1}(r,o)&&P(r)!=="body"):[]}var Xt={getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:r,strategy:a}=e,n=[...o==="clippingAncestors"?Jt(t):[].concat(o),r],l=n[0],i=n.reduce((s,p)=>{let g=Ze(t,p,a);return s.top=Z(g.top,s.top),s.right=Xe(g.right,s.right),s.bottom=Xe(g.bottom,s.bottom),s.left=Z(g.left,s.left),s},Ze(t,l,a));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:o,strategy:r}=e,a=R(o),n=Q(o);if(o===n)return t;let l={scrollLeft:0,scrollTop:0},i={x:0,y:0};if((a||!a&&r!=="fixed")&&((P(o)!=="body"||pe(n))&&(l=ge(o)),R(o))){let s=q(o,!0);i.x=s.x+o.clientLeft,i.y=s.y+o.clientTop}return O(C({},t),{x:t.x-l.scrollLeft+i.x,y:t.y-l.scrollTop+i.y})},isElement:z,getDimensions:Ye,getOffsetParent:Oe,getDocumentElement:Q,getElementRects:e=>{let{reference:t,floating:o,strategy:r}=e;return{reference:Gt(t,Oe(o),r),floating:O(C({},Ye(o)),{x:0,y:0})}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>ee(e).direction==="rtl"};var at=(e,t,o)=>We(e,t,C({platform:Xt},o));var te="top",oe="bottom",fe="left",he="right",re={[te]:oe,[oe]:te,[fe]:he,[he]:fe},Wo={[te]:"\u2191",[oe]:"\u2193",[fe]:"\u2190",[he]:"\u2192"};var ct={[fe]:-45,[te]:45,[he]:135,[oe]:-135},st="calc(50% - 7px)",Kt=e=>[te,oe].includes(e);function Yt({actualDirection:e,directionName:t,arrowEl:o}){if(!o)return;e=t;let r=Kt(t);o.style.left=r?st:"",o.style.top=r?"":st}async function dt(e){var a,n;if(!e.isShowing)return;if(await((a=e==null?void 0:e.waitForDOM)==null?void 0:a.call(e)),e.isCallout)return Yt(e);let t=await at(e.targetEl,e.attentionEl,{placement:e.directionName,middleware:[Re(),Te(8),Ae({padding:16}),Ee({element:e.noArrow?void 0:e.arrowEl})]});e.actualDirection=t.placement,Object.assign(((n=e.attentionEl)==null?void 0:n.style)||{},{left:"0",top:"0",transform:`translate3d(${Math.round(t.x)}px, ${Math.round(t.y)}px, 0)`});let{x:o,y:r}=t.middlewareData.arrow;e.arrowEl&&(e.arrowEl.style.left=o?o+"px":"",e.arrowEl.style.top=r?r+"px":"")}var mt=Bt(gt(),1);var H=e=>typeof e=="string",ao=e=>typeof e=="function",ft=new Map;function Ne(e){return[...Array.isArray(e)?e:[e],"en"]}function xt(e,t,o){let r=Ne(e);return xe(()=>$e("date",r,o),()=>new Intl.DateTimeFormat(r,o)).format(H(t)?new Date(t):t)}function Me(e,t,o){let r=Ne(e);return xe(()=>$e("number",r,o),()=>new Intl.NumberFormat(r,o)).format(t)}function ht(e,t,o,n){var l=n,{offset:r=0}=l,a=J(l,["offset"]);var p,g;let i=Ne(e),s=t?xe(()=>$e("plural-ordinal",i),()=>new Intl.PluralRules(i,{type:"ordinal"})):xe(()=>$e("plural-cardinal",i),()=>new Intl.PluralRules(i,{type:"cardinal"}));return(g=(p=a[o])!=null?p:a[s.select(o-r)])!=null?g:a.other}function xe(e,t){let o=e(),r=ft.get(o);return r||(r=t(),ft.set(o,r)),r}function $e(e,t,o){let r=t.join("-");return`${e}-${r}-${JSON.stringify(o)}`}var $t=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,so=(e,t,o={})=>{t=t||e;let r=n=>H(n)?o[n]||{style:n}:n,a=(n,l)=>{let i=Object.keys(o).length?r("number"):{},s=Me(t,n,i);return l.replace("#",s)};return{plural:(n,l)=>{let{offset:i=0}=l,s=ht(t,!1,n,l);return a(n-i,s)},selectordinal:(n,l)=>{let{offset:i=0}=l,s=ht(t,!0,n,l);return a(n-i,s)},select:(n,l)=>{var i;return(i=l[n])!=null?i:l.other},number:(n,l)=>Me(t,n,r(l)),date:(n,l)=>xt(t,n,r(l)),undefined:n=>n}};function co(e,t,o){return(r,a={})=>{let n=so(t,o,a),l=s=>Array.isArray(s)?s.reduce((p,g)=>{if(H(g))return p+g;let[b,x,h]=g,m={};h!=null&&!H(h)?Object.keys(h).forEach(y=>{m[y]=l(h[y])}):m=h;let $=n[x](r[b],m);return $==null?p:p+$},""):s,i=l(e);return H(i)&&$t.test(i)?(0,mt.default)(i.trim()):H(i)?i.trim():i}}var uo=Object.defineProperty,bo=(e,t,o)=>t in e?uo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,po=(e,t,o)=>(bo(e,typeof t!="symbol"?t+"":t,o),o),Be=class{constructor(){po(this,"_events",{})}on(t,o){return this._hasEvent(t)||(this._events[t]=[]),this._events[t].push(o),()=>this.removeListener(t,o)}removeListener(t,o){if(!this._hasEvent(t))return;let r=this._events[t].indexOf(o);~r&&this._events[t].splice(r,1)}emit(t,...o){this._hasEvent(t)&&this._events[t].map(r=>r.apply(this,o))}_hasEvent(t){return Array.isArray(this._events[t])}},go=Object.defineProperty,fo=(e,t,o)=>t in e?go(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,F=(e,t,o)=>(fo(e,typeof t!="symbol"?t+"":t,o),o),He=class extends Be{constructor(t){super(),F(this,"_locale"),F(this,"_locales"),F(this,"_localeData"),F(this,"_messages"),F(this,"_missing"),F(this,"t",this._.bind(this)),this._messages={},this._localeData={},t.missing!=null&&(this._missing=t.missing),t.messages!=null&&this.load(t.messages),t.localeData!=null&&this.loadLocaleData(t.localeData),(t.locale!=null||t.locales!=null)&&this.activate(t.locale,t.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var t;return(t=this._messages[this._locale])!=null?t:{}}get localeData(){var t;return(t=this._localeData[this._locale])!=null?t:{}}_loadLocaleData(t,o){this._localeData[t]==null?this._localeData[t]=o:Object.assign(this._localeData[t],o)}loadLocaleData(t,o){o!=null?this._loadLocaleData(t,o):Object.keys(t).forEach(r=>this._loadLocaleData(r,t[r])),this.emit("change")}_load(t,o){this._messages[t]==null?this._messages[t]=o:Object.assign(this._messages[t],o)}load(t,o){o!=null?this._load(t,o):Object.keys(t).forEach(r=>this._load(r,t[r])),this.emit("change")}loadAndActivate({locale:t,locales:o,messages:r}){this._locale=t,this._locales=o||void 0,this._messages[this._locale]=r,this.emit("change")}activate(t,o){this._locale=t,this._locales=o,this.emit("change")}_(t,o={},{message:r,formats:a}={}){H(t)||(o=t.values||o,r=t.message,t=t.id);let n=!this.messages[t],l=this._missing;if(l&&n)return ao(l)?l(this._locale,t):l;n&&this.emit("missing",{id:t,locale:this._locale});let i=this.messages[t]||r||t;return H(i)&&$t.test(i)?JSON.parse(`"${i}"`):H(i)?i:co(i,this._locale,this._locales)(o,a)}date(t,o){return xt(this._locales||this._locale,t,o)}number(t,o){return Me(this._locales||this._locale,t,o)}};function ho(e={}){return new He(e)}var E=ho();var vt=JSON.parse('{"attention.aria.callout":"callout speech bubble","attention.aria.close":"Close","attention.aria.highlight":"highlighted speech bubble","attention.aria.pointingDown":"pointing down","attention.aria.pointingLeft":"pointing left","attention.aria.pointingRight":"pointing right","attention.aria.pointingUp":"pointing up","attention.aria.popover":"popover speech bubble","attention.aria.tooltip":"tooltip"}');var yt=JSON.parse('{"attention.aria.callout":"callout speech bubble","attention.aria.close":"Lukk","attention.aria.highlight":"highlighted speech bubble","attention.aria.pointingDown":"pointing down","attention.aria.pointingLeft":"pointing left","attention.aria.pointingRight":"pointing right","attention.aria.pointingUp":"pointing up","attention.aria.popover":"popover speech bubble","attention.aria.tooltip":"tooltip"}');var wt=JSON.parse('{"attention.aria.callout":"callout speech bubble","attention.aria.close":"Sulje","attention.aria.highlight":"highlighted speech bubble","attention.aria.pointingDown":"pointing down","attention.aria.pointingLeft":"pointing left","attention.aria.pointingRight":"pointing right","attention.aria.pointingUp":"pointing up","attention.aria.popover":"popover speech bubble","attention.aria.tooltip":"tooltip"}');var mo=["en","nb","fi"],_t="en",kt=e=>mo.find(t=>e===t||e.toLowerCase().includes(t))||_t;function xo(){if(typeof window=="undefined"){let e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return kt(e)}try{let e=document.documentElement.lang;return kt(e)}catch(e){return console.warn("could not detect locale, falling back to source locale",e),_t}}var $o=(e,t,o,r)=>e==="nb"?o:e==="fi"?r:t,Dt=(e,t,o)=>{let r=xo(),a=$o(r,e,t,o);E.load(r,a),E.activate(r)};var ne=class extends je(Ct){constructor(){super(),Dt(vt,yt,wt),this.show=!1,this.tooltip=!1,this.callout=!1,this.popover=!1,this.highlight=!1,this.canClose=!1,this.noArrow=!1}connectedCallback(){if(super.connectedCallback(),!this.placement||!Object.keys(re).includes(this.placement))throw new Error(`Invalid "placement" attribute. Set its value to one of the following:
${JSON.stringify(Object.keys(re))}`);setTimeout(()=>this.requestUpdate(),0)}get _actualDirection(){return this.placement}set _actualDirection(t){this.placement=t}get _arrowDirection(){return re[this.placement]}updated(){this.callout||this._attentionEl.style.setProperty("--attention-visibility",this.show?"":"hidden"),this.tooltip||this._attentionEl.style.setProperty("--attention-display",this.show?"flex":"none"),this.attentionState={isShowing:this.show,isCallout:this.callout,actualDirection:this._actualDirection,directionName:this.placement,arrowEl:this.renderRoot.querySelector("#arrow"),attentionEl:this._attentionEl,targetEl:this._targetEl,noArrow:this.noArrow},dt(this.attentionState)}pointingAtDirection(){switch(re[this._actualDirection]){case"top":return E._({id:"attention.aria.pointingUp",message:"pointing up",comment:"Default screenreader message for top direction in the attention component"});case"right":return E._({id:"attention.aria.pointingRight",message:"pointing right",comment:"Default screenreader message for right direction in the attention component"});case"bottom":return E._({id:"attention.aria.pointingDown",message:"pointing down",comment:"Default screenreader message for bottom direction in the attention component"});case"left":return E._({id:"attention.aria.pointingLeft",message:"pointing left",comment:"Default screenreader message for left direction in the attention component"});default:return""}}activeAttentionType(){switch(!0){case this.tooltip:return E._({id:"attention.aria.tooltip",message:"tooltip",comment:"Default screenreader message for tooltip in the attention component"});case this.callout:return E._({id:"attention.aria.callout",message:"callout speech bubble",comment:"Default screenreader message for callout speech bubble in the attention component"});case this.popover:return E._({id:"attention.aria.popover",message:"popover speech bubble",comment:"Default screenreader message for popover speech bubble in the attention component"});case this.highlight:return E._({id:"attention.aria.highlight",message:"highlighted speech bubble",comment:"Default screenreader message for highlighted speech bubble in the attention component"});default:return""}}defaultAriaLabel(){return`${this.activeAttentionType()} ${this.noArrow?"":this.pointingAtDirection()}`}setAriaLabels(){if(this._targetEl&&!this._targetEl.getAttribute("aria-details")){let t=this._messageEl.id||(this._messageEl.id=Ue());this._targetEl.setAttribute("aria-details",t)}}get _activeVariantClasses(){let t={callout:this.callout,popover:this.popover,tooltip:this.tooltip,highlight:this.highlight},o=Object.keys(t).find(r=>!!t[r])||"";return{wrapper:I[o],arrow:I[`arrow${o.charAt(0).toUpperCase()+o.slice(1)}`]}}get _ariaClose(){return E._({id:"attention.aria.close",message:"Close",comment:"Aria label for the close button in attention"})}firstUpdated(){this.setAriaLabels(),this.callout&&(this._attentionEl.style.position="relative")}get _attentionEl(){return this.renderRoot.querySelector("#attention")}get _targetEl(){return this.renderRoot.querySelector("slot[name='target']").assignedNodes()[0]}get _messageEl(){return this.renderRoot.querySelector("slot[name='message']").assignedNodes()[0]}get _wrapperClasses(){return _e({[I.base]:!0,[this._activeVariantClasses.wrapper]:!0})}get _arrowClasses(){return _e({[I.arrowBase]:!0,[I[`arrowDirection${this._arrowDirection.charAt(0).toUpperCase()+this._arrowDirection.slice(1)}`]]:!0,[this._activeVariantClasses.arrow]:!0})}get _arrowHtml(){return this.noArrow?"":ie`<div
var Vt=Object.create;var De=Object.defineProperty,Wt=Object.defineProperties,Jt=Object.getOwnPropertyDescriptor,Gt=Object.getOwnPropertyDescriptors,Xt=Object.getOwnPropertyNames,ue=Object.getOwnPropertySymbols,Kt=Object.getPrototypeOf,Ee=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable;var _e=(e,t,o)=>t in e?De(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,L=(e,t)=>{for(var o in t||(t={}))Ee.call(t,o)&&_e(e,o,t[o]);if(ue)for(var o of ue(t))We.call(t,o)&&_e(e,o,t[o]);return e},R=(e,t)=>Wt(e,Gt(t));var Y=(e,t)=>{var o={};for(var r in e)Ee.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&ue)for(var r of ue(e))t.indexOf(r)<0&&We.call(e,r)&&(o[r]=e[r]);return o};var Je=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Yt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Xt(t))!Ee.call(e,a)&&a!==o&&De(e,a,{get:()=>t[a],enumerable:!(r=Jt(t,a))||r.enumerable});return e};var Zt=(e,t,o)=>(o=e!=null?Vt(Kt(e)):{},Yt(t||!e||!e.__esModule?De(o,"default",{value:e,enumerable:!0}):o,e));var Le=(e,t,o)=>(_e(e,typeof t!="symbol"?t+"":t,o),o);var xt=Je(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.errorMessages=V.ErrorType=void 0;var J;(function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"})(J=V.ErrorType||(V.ErrorType={}));V.errorMessages=new Map([[J.MalformedUnicode,"malformed Unicode character escape sequence"],[J.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[J.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[J.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[J.EndOfString,"malformed escape sequence at end of string"]])});var yt=Je(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});j.unraw=j.errorMessages=j.ErrorType=void 0;var E=xt();Object.defineProperty(j,"ErrorType",{enumerable:!0,get:function(){return E.ErrorType}});Object.defineProperty(j,"errorMessages",{enumerable:!0,get:function(){return E.errorMessages}});function mo(e){return!e.match(/[^a-f0-9]/i)?parseInt(e,16):NaN}function ve(e,t,o){let r=mo(e);if(Number.isNaN(r)||o!==void 0&&o!==e.length)throw new SyntaxError(E.errorMessages.get(t));return r}function xo(e){let t=ve(e,E.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}function vt(e,t){let o=ve(e,E.ErrorType.MalformedUnicode,4);if(t!==void 0){let r=ve(t,E.ErrorType.MalformedUnicode,4);return String.fromCharCode(o,r)}return String.fromCharCode(o)}function vo(e){return e.charAt(0)==="{"&&e.charAt(e.length-1)==="}"}function $o(e){if(!vo(e))throw new SyntaxError(E.errorMessages.get(E.ErrorType.MalformedUnicode));let t=e.slice(1,-1),o=ve(t,E.ErrorType.MalformedUnicode);try{return String.fromCodePoint(o)}catch(r){throw r instanceof RangeError?new SyntaxError(E.errorMessages.get(E.ErrorType.CodePointLimit)):r}}function yo(e,t=!1){if(t)throw new SyntaxError(E.errorMessages.get(E.ErrorType.OctalDeprecation));let o=parseInt(e,8);return String.fromCharCode(o)}var wo=new Map([["b","\b"],["f","\f"],["n",`
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function ko(e){return wo.get(e)||e}var _o=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function $t(e,t=!1){return e.replace(_o,function(o,r,a,n,l,i,s,d,p){if(r!==void 0)return"\\";if(a!==void 0)return xo(a);if(n!==void 0)return $o(n);if(l!==void 0)return vt(l,i);if(s!==void 0)return vt(s);if(d==="0")return"\0";if(d!==void 0)return yo(d,!t);if(p!==void 0)return ko(p);throw new SyntaxError(E.errorMessages.get(E.ErrorType.EndOfString))})}j.unraw=$t;j.default=$t});import{css as hr,html as ae,nothing as Qt}from"lit";import Ft from"@warp-ds/elements-core";import{ifDefined as mr}from"lit/directives/if-defined.js";import{classMap as $r}from"lit/directives/class-map.js";var eo=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function Ge(e){return class extends e{static createProperty(t,o){let r=o;(typeof(o==null?void 0:o.attribute)=="undefined"||(o==null?void 0:o.attribute)===!0)&&(r=Object.assign({},o,{attribute:eo(t.toString())})),super.createProperty(t,r)}}}function Oe(e){let t=[];for(let[o,r]of Object.entries(e))r&&t.push(o);return t.join(" ")}function Xe(){return`m${Math.random().toString(36).slice(2)}`}var Se={box:"group block relative break-words last-child:mb-0 p-16 rounded-8",bleed:"-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8",info:"i-bg-$color-box-info-background i-text-$color-box-info-text",neutral:"i-bg-$color-box-neutral-background i-text-$color-box-neutral-text",bordered:"border-2 i-border-$color-box-bordered-border i-bg-$color-box-bordered-background i-text-$color-box-bordered-text",infoClickable:"hover:i-bg-$color-box-info-background-hover active:i-bg-$color-box-info-background-hover",neutralClickable:"hover:i-bg-$color-box-neutral-background-hover active:i-bg-$color-box-neutral-background-hover",borderedClickable:"hover:i-bg-$color-box-bordered-background-hover active:i-bg-$color-box-bordered-background-hover hover:i-border-$color-box-bordered-border-hover active:i-border-$color-box-bordered-border-hover"};var to="focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block",kr={expandable:"will-change-height",expandableTitle:"font-bold i-text-$color-expandable-title-text",expandableBox:"i-bg-$color-expandable-background hover:i-bg-$color-expandable-background-hover py-0 px-0 "+Se.box,expandableBleed:Se.bleed,chevron:"inline-block align-middle i-text-$color-expandable-icon",chevronNonBox:"relative left-8",chevronBox:"absolute right-16",chevronTransform:"transform transition-transform transform-gpu ease-in-out",chevronExpand:"-rotate-180",chevronCollapse:"rotate-180",expansion:"overflow-hidden",expansionNotExpanded:"h-0 invisible",button:to+" hover:underline focus:underline",buttonBox:"w-full text-left relative inline-flex items-center "+Se.box,paddingTop:"pt-0",title:"flex justify-between items-center",titleType:"h4"},q="font-bold focusable justify-center transition-colors ease-in-out",y={primary:"i-text-$color-button-primary-text hover:i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover active:i-bg-$color-button-primary-background-active",secondary:"i-text-$color-button-secondary-text hover:i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active",utility:"i-text-$color-button-utility-text hover:i-text-$color-button-utility-text i-bg-$color-button-utility-background i-border-$color-button-utility-border hover:i-bg-$color-button-utility-background hover:i-border-$color-button-utility-border-hover active:i-border-$color-button-utility-border-active",destructive:"i-bg-$color-button-negative-background i-text-$color-button-negative-text hover:i-text-$color-button-negative-text hover:i-bg-$color-button-negative-background-hover active:i-bg-$color-button-negative-background-active",pill:"i-text-$color-button-pill-icon hover:i-text-$color-button-pill-icon-hover active:i-text-$color-button-pill-icon-active i-bg-$color-button-pill-background hover:i-bg-$color-button-pill-background-hover active:i-bg-$color-button-pill-background-active",disabled:"i-text-$color-button-disabled-text i-bg-$color-button-disabled-background",quiet:"i-bg-$color-button-quiet-background i-text-$color-button-quiet-text hover:i-bg-$color-button-quiet-background-hover active:i-bg-$color-button-quiet-background-active",utilityQuiet:"i-text-$color-button-utility-quiet-text i-bg-$color-button-utility-quiet-background hover:i-bg-$color-button-utility-quiet-background-hover",negativeQuiet:"i-bg-$color-button-negative-quiet-background i-text-$color-button-negative-quiet-text hover:i-bg-$color-button-negative-quiet-background-hover active:i-bg-$color-button-negative-quiet-background-active",loading:"i-text-$color-button-loading-text i-bg-$color-button-loading-background",link:"i-text-$color-button-link-text"},x={primary:`border-0 rounded-8 ${q}`,secondary:`border-2 rounded-8 ${q}`,utility:`border rounded-4 ${q}`,negative:`border-0 rounded-8 ${q}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${q}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline ${y.link}`},g={xsmall:"py-6 px-16",small:"py-8 px-16",medium:"py-10 px-14",large:"py-12 px-16",utility:"py-[11px] px-[15px]",smallUtility:"py-[7px] px-[15px]",pill:"min-h-[44px] min-w-[44px]",pillSmall:"min-h-32 min-w-32",link:"p-0"},b={medium:"text-m leading-[24]",xsmall:"text-xs"},u={inProgress:`border-transparent animate-inprogress pointer-events-none ${y.loading}`,quiet:`border-0 rounded-8 ${q}`,utilityQuiet:`border-0 rounded-4 ${q}`,negativeQuiet:`border-0 rounded-8 ${q}`,isDisabled:`font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${y.disabled}`},_r={secondary:`${g.medium} ${b.medium} ${x.secondary} ${y.secondary}`,secondaryHref:`${g.medium} ${b.medium} ${x.secondary} ${y.secondary}`,secondaryDisabled:`${g.medium} ${b.medium} ${x.secondary} ${u.isDisabled}`,secondarySmall:`${b.xsmall} ${g.xsmall} ${x.secondary} ${y.secondary}`,secondarySmallDisabled:`${b.xsmall} ${g.xsmall} ${x.secondary} ${u.isDisabled}`,secondaryQuiet:`${g.medium} ${b.medium} ${u.quiet} ${y.quiet}`,secondaryQuietDisabled:`${g.medium} ${b.medium} ${u.quiet} ${u.isDisabled}`,secondarySmallQuiet:`${b.xsmall} ${g.xsmall} ${u.quiet} ${y.quiet}`,secondarySmallQuietDisabled:`${b.xsmall} ${g.xsmall} ${u.quiet} ${u.isDisabled}`,secondaryLoading:`${g.medium} ${b.medium} ${x.secondary} ${u.inProgress}`,secondarySmallLoading:`${b.xsmall} ${g.xsmall} ${x.secondary} ${u.inProgress}`,secondarySmallQuietLoading:`${b.xsmall} ${g.xsmall} ${u.quiet} ${u.inProgress}`,secondaryQuietLoading:`${g.medium} ${b.medium} ${u.quiet} ${u.inProgress}`,primary:`${g.large} ${b.medium} ${x.primary} ${y.primary}`,primaryDisabled:`${g.large} ${b.medium} ${u.isDisabled} ${x.primary}`,primarySmall:`${g.small} ${b.xsmall} ${x.primary} ${y.primary}`,primarySmallDisabled:`${g.small} ${b.xsmall} ${u.isDisabled} ${x.primary} `,primaryQuiet:`${g.large} ${b.medium} ${u.quiet} ${y.quiet}`,primaryQuietDisabled:`${g.large} ${b.medium} ${u.quiet} ${u.isDisabled}`,primarySmallQuiet:`${g.small} ${b.xsmall} ${u.quiet} ${y.quiet}`,primarySmallQuietDisabled:`${g.small} ${b.xsmall} ${u.quiet} ${u.isDisabled}`,primaryLoading:`${g.large} ${b.medium} ${u.inProgress} ${x.primary}`,primarySmallLoading:`${g.small} ${b.xsmall} ${u.inProgress} ${x.primary}`,primarySmallQuietLoading:`${g.small} ${b.xsmall} ${u.quiet} ${u.inProgress} ${x.primary}`,primaryQuietLoading:`${g.large} ${b.medium} ${u.quiet} ${u.inProgress}`,utility:`${g.utility} ${b.medium} ${x.utility} ${y.utility}`,utilityDisabled:`${g.utility} ${b.medium} ${x.utility} ${u.isDisabled}`,utilityQuiet:`${g.large} ${b.medium} ${u.utilityQuiet} ${y.utilityQuiet}`,utilityQuietDisabled:`${g.large} ${b.medium} ${u.utilityQuiet} ${u.isDisabled}`,utilitySmall:`${g.smallUtility} ${b.xsmall} ${x.utility} ${y.utility}`,utilitySmallDisabled:`${g.smallUtility} ${b.xsmall} ${x.utility} ${u.isDisabled}`,utilitySmallQuiet:`${g.smallUtility} ${b.xsmall} ${u.utilityQuiet} ${y.utilityQuiet}`,utilitySmallQuietDisabled:`${g.smallUtility} ${b.xsmall} ${u.utilityQuiet} ${u.isDisabled}`,utilityLoading:`${g.large} ${b.medium} ${x.utility} ${u.inProgress}`,utilitySmallLoading:`${g.smallUtility} ${b.xsmall} ${x.utility} ${u.inProgress}`,utilityQuietLoading:`${g.large} ${b.medium} ${u.inProgress} ${u.utilityQuiet}`,utilitySmallQuietLoading:`${g.smallUtility} ${b.xsmall} ${u.inProgress} ${u.utilityQuiet}`,negative:`${g.large} ${b.medium} ${x.negative} ${y.destructive}`,negativeDisabled:`${g.large} ${b.medium} ${x.negative} ${u.isDisabled}`,negativeQuiet:`${g.large} ${b.medium} ${u.negativeQuiet} ${y.negativeQuiet}`,negativeQuietDisabled:`${g.large} ${b.medium} ${u.negativeQuiet}${u.isDisabled}`,negativeSmall:`${g.small} ${b.xsmall} ${x.negative} ${y.destructive}`,negativeSmallDisabled:`${g.small} ${b.xsmall} ${x.negative} ${u.isDisabled}`,negativeSmallQuiet:`${g.small} ${b.xsmall} ${u.negativeQuiet} ${y.negativeQuiet}`,negativeSmallQuietDisabled:`${g.small} ${b.xsmall} ${u.negativeQuiet} ${u.isDisabled}`,negativeLoading:`${g.large} ${b.medium} ${x.negative} ${u.inProgress}`,negativeSmallLoading:`${g.small} ${b.xsmall} ${u.inProgress} ${x.negative}`,negativeQuietLoading:`${g.large} ${b.medium} ${u.negativeQuiet} ${x.negative} ${u.inProgress}`,negativeSmallQuietLoading:`${g.small} ${b.xsmall} ${u.negativeQuiet} ${u.inProgress}`,pill:`${g.pill} ${b.medium} ${x.pill} ${y.pill}`,pillSmall:`${g.pillSmall} ${b.xsmall} ${x.pill} ${y.pill}`,pillLoading:`${g.pill} ${b.medium} ${x.pill} ${u.inProgress}`,pillSmallLoading:`${g.pillSmall} ${b.xsmall} ${x.pill} ${u.inProgress}`,link:`${g.link} ${b.medium} ${x.link}`,linkSmall:`${g.link} ${b.xsmall} ${x.link}`,linkAsButton:"inline-block hover:no-underline text-center",a11y:"sr-only",fullWidth:"w-full max-w-full",contentWidth:"max-w-max"};var Dr={transparentBg:'before:i-bg-$color-modal-backdrop-background before:content-[""] before:absolute before:top-0 before:bottom-0 before:left-0 before:right-0 before:opacity-25',backdrop:"fixed inset-0 flex sm:place-content-center sm:place-items-center items-end z-20 [--w-modal-max-height:80%] [--w-modal-width:640px]",modal:"pb-safe-[32] i-shadow-$shadow-modal max-h-[--w-modal-max-height] min-h-[--w-modal-min-height] w-[--w-modal-width] h-[--w-modal-height] relative transition-300 ease-in-out backface-hidden will-change-height rounded-8 mx-0 sm:mx-16 i-bg-$color-modal-background flex flex-col overflow-hidden outline-none space-y-16 pt-8 sm:pt-32 sm:pb-32 rounded-b-0 sm:rounded-b-8",content:"block overflow-y-auto overflow-x-hidden last-child:mb-0 grow shrink px-16 sm:px-32 relative",footer:"flex justify-end shrink-0 px-16 sm:px-32",transitionTitle:"transition-all duration-300",transitionTitleCenter:"justify-self-center",transitionTitleColSpan:"col-span-2",title:"-mt-4 sm:-mt-8 h-40 sm:h-48 grid gap-8 sm:gap-16 grid-cols-[auto_1fr_auto] items-center px-16 sm:px-32 border-b sm:border-b-0 shrink-0",titleText:"mb-0 h4 sm:h3",titleButton:`${b.medium} ${x.pill} ${y.pill} sm:min-h-[44px] sm:min-w-[44px] min-h-[32px] min-w-[32px]`,titleButtonLeft:"-ml-8 sm:-ml-12 justify-self-start",titleButtonRight:"-mr-8 sm:-mr-12 justify-self-end",titleButtonIcon:"h-16 w-16 sm:h-24 sm:w-24",titleButtonIconRotated:"transform rotate-90"};var oo={label:"antialiased block relative text-s font-bold pb-4 cursor-pointer i-text-$color-label-text",labelInvalid:"i-text-$color-label-text-negative",optional:"pl-8 font-normal text-s i-text-$color-label-optional-text"};var Ke="absolute top-0 bottom-0 flex justify-center items-center focusable focus:[--w-outline-offset:-2px] bg-transparent ",Er={wrapper:Ke+"right-0",wrapperWithLabel:"w-max pr-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"},Lr={wrapper:Ke+"left-0",wrapperWithLabel:"w-max pl-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"};var Or={toggle:"absolute inset-0 h-full w-full appearance-none cursor-pointer focusable focusable-inset",label:`px-12 ${oo.label} py-8! cursor-pointer focusable focusable-inset`,buttonOrLink:"bg-transparent focusable",buttonOrLinkStretch:"inset-0 absolute"};var F={base:"border-2 relative flex items-start",tooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background i-shadow-$shadow-tooltip i-text-$color-tooltip-text rounded-4 py-6 px-8",callout:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8",highlight:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8 drop-shadow-m",popover:"i-bg-$color-popover-background i-border-$color-popover-background i-text-$color-popover-paragraph-text rounded-8 p-16 drop-shadow-m",arrowBase:"absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",arrowDirectionLeft:"-left-[8px]",arrowDirectionRight:"-right-[8px]",arrowDirectionBottom:"-bottom-[8px]",arrowDirectionTop:"-top-[8px]",arrowTooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background",arrowCallout:"i-bg-$color-callout-background i-border-$color-callout-border",arrowPopover:"i-bg-$color-popover-background i-border-$color-popover-background",arrowHighlight:"i-bg-$color-callout-background i-border-$color-callout-border",content:"last-child:mb-0",notCallout:"absolute z-50",closeBtn:`${b.medium} ${x.pill} ${y.pill} justify-self-end -mr-8 ml-8`};function ee(e){return e.split("-")[0]}function pe(e){return e.split("-")[1]}function te(e){return["top","bottom"].includes(ee(e))?"x":"y"}function Te(e){return e==="y"?"height":"width"}function Ye(e,t,o){let{reference:r,floating:a}=e,n=r.x+r.width/2-a.width/2,l=r.y+r.height/2-a.height/2,i=te(t),s=Te(i),d=r[s]/2-a[s]/2,p=i==="x",f;switch(ee(t)){case"top":f={x:n,y:r.y-a.height};break;case"bottom":f={x:n,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:l};break;case"left":f={x:r.x-a.width,y:l};break;default:f={x:r.x,y:r.y}}switch(pe(t)){case"start":f[i]-=d*(o&&p?-1:1);break;case"end":f[i]+=d*(o&&p?-1:1)}return f}var et=async(e,t,o)=>{let{placement:r="bottom",strategy:a="absolute",middleware:n=[],platform:l}=o,i=await(l.isRTL==null?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:p}=Ye(s,r,i),f=r,$={},c=0;for(let h=0;h<n.length;h++){let{name:m,fn:v}=n[h],{x:w,y:D,data:k,reset:_}=await v({x:d,y:p,initialPlacement:r,placement:f,strategy:a,middlewareData:$,rects:s,platform:l,elements:{reference:e,floating:t}});d=w!=null?w:d,p=D!=null?D:p,$=R(L({},$),{[m]:L(L({},$[m]),k)}),_&&c<=50&&(c++,typeof _=="object"&&(_.placement&&(f=_.placement),_.rects&&(s=_.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):_.rects),{x:d,y:p}=Ye(s,f,i)),h=-1)}return{x:d,y:p,placement:f,strategy:a,middlewareData:$}};function tt(e){return typeof e!="number"?function(t){return L({top:0,right:0,bottom:0,left:0},t)}(e):{top:e,right:e,bottom:e,left:e}}function Z(e){return R(L({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}async function Ae(e,t){var o;t===void 0&&(t={});let{x:r,y:a,platform:n,rects:l,elements:i,strategy:s}=e,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:$=!1,padding:c=0}=t,h=tt(c),m=i[$?f==="floating"?"reference":"floating":f],v=Z(await n.getClippingRect({element:(o=await(n.isElement==null?void 0:n.isElement(m)))==null||o?m:m.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(i.floating)),boundary:d,rootBoundary:p,strategy:s})),w=Z(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:f==="floating"?R(L({},l.floating),{x:r,y:a}):l.reference,offsetParent:await(n.getOffsetParent==null?void 0:n.getOffsetParent(i.floating)),strategy:s}):l[f]);return{top:v.top-w.top+h.top,bottom:w.bottom-v.bottom+h.bottom,left:v.left-w.left+h.left,right:w.right-v.right+h.right}}var ro=Math.min,io=Math.max;function Ce(e,t,o){return io(e,ro(t,o))}var Pe=e=>({name:"arrow",options:e,async fn(t){let{element:o,padding:r=0}=e!=null?e:{},{x:a,y:n,placement:l,rects:i,platform:s}=t;if(o==null)return{};let d=tt(r),p={x:a,y:n},f=te(l),$=pe(l),c=Te(f),h=await s.getDimensions(o),m=f==="y"?"top":"left",v=f==="y"?"bottom":"right",w=i.reference[c]+i.reference[f]-p[f]-i.floating[c],D=p[f]-i.reference[f],k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(o)),_=k?f==="y"?k.clientHeight||0:k.clientWidth||0:0;_===0&&(_=i.floating[c]);let Q=w/2-D/2,C=d[m],B=_-h[c]-d[v],A=_/2-h[c]/2+Q,O=Ce(C,A,B),P=($==="start"?d[m]:d[v])>0&&A!==O&&i.reference[c]<=i.floating[c];return{[f]:p[f]-(P?A<C?C-A:B-A:0),data:{[f]:O,centerOffset:A-O}}}}),no={left:"right",right:"left",bottom:"top",top:"bottom"};function be(e){return e.replace(/left|right|bottom|top/g,t=>no[t])}function lo(e,t,o){o===void 0&&(o=!1);let r=pe(e),a=te(e),n=Te(a),l=a==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(l=be(l)),{main:l,cross:be(l)}}var ao={start:"end",end:"start"};function Ze(e){return e.replace(/start|end/g,t=>ao[t])}var so=["top","right","bottom","left"],Cr=so.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);var Re=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o;let{placement:r,middlewareData:a,rects:n,initialPlacement:l,platform:i,elements:s}=t,A=e,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:$="bestFit",flipAlignment:c=!0}=A,h=Y(A,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"]),m=ee(r),v=f||(m===l||!c?[be(l)]:function(O){let P=be(O);return[Ze(O),P,Ze(P)]}(l)),w=[l,...v],D=await Ae(t,h),k=[],_=((o=a.flip)==null?void 0:o.overflows)||[];if(d&&k.push(D[m]),p){let{main:O,cross:P}=lo(r,n,await(i.isRTL==null?void 0:i.isRTL(s.floating)));k.push(D[O],D[P])}if(_=[..._,{placement:r,overflows:k}],!k.every(O=>O<=0)){var Q,C;let O=((Q=(C=a.flip)==null?void 0:C.index)!=null?Q:0)+1,P=w[O];if(P)return{data:{index:O,overflows:_},reset:{placement:P}};let ce="bottom";switch($){case"bestFit":{var B;let Ve=(B=_.map(de=>[de,de.overflows.filter(K=>K>0).reduce((K,zt)=>K+zt,0)]).sort((de,K)=>de[1]-K[1])[0])==null?void 0:B[0].placement;Ve&&(ce=Ve);break}case"initialPlacement":ce=l}if(r!==ce)return{reset:{placement:ce}}}return{}}}};var Me=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){let{x:o,y:r}=t,a=await async function(n,l){let{placement:i,platform:s,elements:d}=n,p=await(s.isRTL==null?void 0:s.isRTL(d.floating)),f=ee(i),$=pe(i),c=te(i)==="x",h=["left","top"].includes(f)?-1:1,m=p&&c?-1:1,v=typeof l=="function"?l(n):l,{mainAxis:w,crossAxis:D,alignmentAxis:k}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:L({mainAxis:0,crossAxis:0,alignmentAxis:null},v);return $&&typeof k=="number"&&(D=$==="end"?-1*k:k),c?{x:D*m,y:w*h}:{x:w*h,y:D*m}}(t,e);return{x:o+a.x,y:r+a.y,data:a}}}};function co(e){return e==="x"?"y":"x"}var Ne=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:r,placement:a}=t,v=e,{mainAxis:n=!0,crossAxis:l=!1,limiter:i={fn:w=>{let{x:D,y:k}=w;return{x:D,y:k}}}}=v,s=Y(v,["mainAxis","crossAxis","limiter"]),d={x:o,y:r},p=await Ae(t,s),f=te(ee(a)),$=co(f),c=d[f],h=d[$];if(n){let w=f==="y"?"bottom":"right";c=Ce(c+p[f==="y"?"top":"left"],c,c-p[w])}if(l){let w=$==="y"?"bottom":"right";h=Ce(h+p[$==="y"?"top":"left"],h,h-p[w])}let m=i.fn(R(L({},t),{[f]:c,[$]:h}));return R(L({},m),{data:{x:m.x-o,y:m.y-r}})}}};function at(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function N(e){if(e==null)return window;if(!at(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function re(e){return N(e).getComputedStyle(e)}function M(e){return at(e)?"":e?(e.nodeName||"").toLowerCase():""}function st(){let e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function T(e){return e instanceof N(e).HTMLElement}function W(e){return e instanceof N(e).Element}function Ie(e){return typeof ShadowRoot=="undefined"?!1:e instanceof N(e).ShadowRoot||e instanceof ShadowRoot}function fe(e){let{overflow:t,overflowX:o,overflowY:r}=re(e);return/auto|scroll|overlay|hidden/.test(t+r+o)}function uo(e){return["table","td","th"].includes(M(e))}function ot(e){let t=/firefox/i.test(st()),o=re(e);return o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].includes(o.willChange)||t&&o.willChange==="filter"||t&&!!o.filter&&o.filter!=="none"}function ct(){return!/^((?!chrome|android).)*safari/i.test(st())}var rt=Math.min,oe=Math.max,ge=Math.round;function z(e,t,o){var r,a,n,l;t===void 0&&(t=!1),o===void 0&&(o=!1);let i=e.getBoundingClientRect(),s=1,d=1;t&&T(e)&&(s=e.offsetWidth>0&&ge(i.width)/e.offsetWidth||1,d=e.offsetHeight>0&&ge(i.height)/e.offsetHeight||1);let p=W(e)?N(e):window,f=!ct()&&o,$=(i.left+(f&&(r=(a=p.visualViewport)==null?void 0:a.offsetLeft)!=null?r:0))/s,c=(i.top+(f&&(n=(l=p.visualViewport)==null?void 0:l.offsetTop)!=null?n:0))/d,h=i.width/s,m=i.height/d;return{width:h,height:m,top:c,right:$+h,bottom:c+m,left:$,x:$,y:c}}function U(e){return(t=e,(t instanceof N(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function he(e){return W(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function dt(e){return z(U(e)).left+he(e).scrollLeft}function bo(e,t,o){let r=T(t),a=U(t),n=z(e,r&&function(s){let d=z(s);return ge(d.width)!==s.offsetWidth||ge(d.height)!==s.offsetHeight}(t),o==="fixed"),l={scrollLeft:0,scrollTop:0},i={x:0,y:0};if(r||!r&&o!=="fixed")if((M(t)!=="body"||fe(a))&&(l=he(t)),T(t)){let s=z(t,!0);i.x=s.x+t.clientLeft,i.y=s.y+t.clientTop}else a&&(i.x=dt(a));return{x:n.left+l.scrollLeft-i.x,y:n.top+l.scrollTop-i.y,width:n.width,height:n.height}}function ut(e){return M(e)==="html"?e:e.assignedSlot||e.parentNode||(Ie(e)?e.host:null)||U(e)}function it(e){return T(e)&&getComputedStyle(e).position!=="fixed"?e.offsetParent:null}function je(e){let t=N(e),o=it(e);for(;o&&uo(o)&&getComputedStyle(o).position==="static";)o=it(o);return o&&(M(o)==="html"||M(o)==="body"&&getComputedStyle(o).position==="static"&&!ot(o))?t:o||function(r){let a=ut(r);for(Ie(a)&&(a=a.host);T(a)&&!["html","body"].includes(M(a));){if(ot(a))return a;a=a.parentNode}return null}(e)||t}function nt(e){if(T(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=z(e);return{width:t.width,height:t.height}}function bt(e){let t=ut(e);return["html","body","#document"].includes(M(t))?e.ownerDocument.body:T(t)&&fe(t)?t:bt(t)}function pt(e,t){var o;t===void 0&&(t=[]);let r=bt(e),a=r===((o=e.ownerDocument)==null?void 0:o.body),n=N(r),l=a?[n].concat(n.visualViewport||[],fe(r)?r:[]):r,i=t.concat(l);return a?i:i.concat(pt(l))}function lt(e,t,o){return t==="viewport"?Z(function(r,a){let n=N(r),l=U(r),i=n.visualViewport,s=l.clientWidth,d=l.clientHeight,p=0,f=0;if(i){s=i.width,d=i.height;let $=ct();($||!$&&a==="fixed")&&(p=i.offsetLeft,f=i.offsetTop)}return{width:s,height:d,x:p,y:f}}(e,o)):W(t)?function(r,a){let n=z(r,!1,a==="fixed"),l=n.top+r.clientTop,i=n.left+r.clientLeft;return{top:l,left:i,x:i,y:l,right:i+r.clientWidth,bottom:l+r.clientHeight,width:r.clientWidth,height:r.clientHeight}}(t,o):Z(function(r){var a;let n=U(r),l=he(r),i=(a=r.ownerDocument)==null?void 0:a.body,s=oe(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),d=oe(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),p=-l.scrollLeft+dt(r),f=-l.scrollTop;return re(i||n).direction==="rtl"&&(p+=oe(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:d,x:p,y:f}}(U(e)))}function po(e){let t=pt(e),o=["absolute","fixed"].includes(re(e).position)&&T(e)?je(e):e;return W(o)?t.filter(r=>W(r)&&function(a,n){let l=n.getRootNode==null?void 0:n.getRootNode();if(a.contains(n))return!0;if(l&&Ie(l)){let i=n;do{if(i&&a===i)return!0;i=i.parentNode||i.host}while(i)}return!1}(r,o)&&M(r)!=="body"):[]}var go={getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:r,strategy:a}=e,n=[...o==="clippingAncestors"?po(t):[].concat(o),r],l=n[0],i=n.reduce((s,d)=>{let p=lt(t,d,a);return s.top=oe(p.top,s.top),s.right=rt(p.right,s.right),s.bottom=rt(p.bottom,s.bottom),s.left=oe(p.left,s.left),s},lt(t,l,a));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:o,strategy:r}=e,a=T(o),n=U(o);if(o===n)return t;let l={scrollLeft:0,scrollTop:0},i={x:0,y:0};if((a||!a&&r!=="fixed")&&((M(o)!=="body"||fe(n))&&(l=he(o)),T(o))){let s=z(o,!0);i.x=s.x+o.clientLeft,i.y=s.y+o.clientTop}return R(L({},t),{x:t.x-l.scrollLeft+i.x,y:t.y-l.scrollTop+i.y})},isElement:W,getDimensions:nt,getOffsetParent:je,getDocumentElement:U,getElementRects:e=>{let{reference:t,floating:o,strategy:r}=e;return{reference:bo(t,je(o),r),floating:R(L({},nt(o)),{x:0,y:0})}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>re(e).direction==="rtl"};var gt=(e,t,o)=>et(e,t,L({platform:go},o));var ie="top",ne="bottom",me="left",xe="right",le={[ie]:ne,[ne]:ie,[me]:xe,[xe]:me},Qr={[ie]:"\u2191",[ne]:"\u2193",[me]:"\u2190",[xe]:"\u2192"};var ht={[me]:-45,[ie]:45,[xe]:135,[ne]:-135},ft="calc(50% - 7px)",fo=e=>[ie,ne].includes(e);function ho({actualDirection:e,directionName:t,arrowEl:o}){if(!o)return;e=t;let r=fo(t);o.style.left=r?ft:"",o.style.top=r?"":ft}async function mt(e){var a,n;if(!e.isShowing)return;if(await((a=e==null?void 0:e.waitForDOM)==null?void 0:a.call(e)),e.isCallout)return ho(e);let t=await gt(e.targetEl,e.attentionEl,{placement:e.directionName,middleware:[Re(),Me(8),Ne({padding:16}),Pe({element:e.noArrow?void 0:e.arrowEl})]});e.actualDirection=t.placement,Object.assign(((n=e.attentionEl)==null?void 0:n.style)||{},{left:"0",top:"0",transform:`translate3d(${Math.round(t.x)}px, ${Math.round(t.y)}px, 0)`});let{x:o,y:r}=t.middlewareData.arrow;e.arrowEl&&(e.arrowEl.style.left=o?o+"px":"",e.arrowEl.style.top=r?r+"px":"")}var _t=Zt(yt(),1);var I=e=>typeof e=="string",Do=e=>typeof e=="function",wt=new Map;function Ue(e){return[...Array.isArray(e)?e:[e],"en"]}function Dt(e,t,o){let r=Ue(e);return $e(()=>ye("date",r,o),()=>new Intl.DateTimeFormat(r,o)).format(I(t)?new Date(t):t)}function He(e,t,o){let r=Ue(e);return $e(()=>ye("number",r,o),()=>new Intl.NumberFormat(r,o)).format(t)}function kt(e,t,o,n){var l=n,{offset:r=0}=l,a=Y(l,["offset"]);var d,p;let i=Ue(e),s=t?$e(()=>ye("plural-ordinal",i),()=>new Intl.PluralRules(i,{type:"ordinal"})):$e(()=>ye("plural-cardinal",i),()=>new Intl.PluralRules(i,{type:"cardinal"}));return(p=(d=a[o])!=null?d:a[s.select(o-r)])!=null?p:a.other}function $e(e,t){let o=e(),r=wt.get(o);return r||(r=t(),wt.set(o,r)),r}function ye(e,t,o){let r=t.join("-");return`${e}-${r}-${JSON.stringify(o)}`}var Et=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,Eo=(e,t,o={})=>{t=t||e;let r=n=>I(n)?o[n]||{style:n}:n,a=(n,l)=>{let i=Object.keys(o).length?r("number"):{},s=He(t,n,i);return l.replace("#",s)};return{plural:(n,l)=>{let{offset:i=0}=l,s=kt(t,!1,n,l);return a(n-i,s)},selectordinal:(n,l)=>{let{offset:i=0}=l,s=kt(t,!0,n,l);return a(n-i,s)},select:(n,l)=>{var i;return(i=l[n])!=null?i:l.other},number:(n,l)=>He(t,n,r(l)),date:(n,l)=>Dt(t,n,r(l)),undefined:n=>n}};function Lo(e,t,o){return(r,a={})=>{let n=Eo(t,o,a),l=s=>Array.isArray(s)?s.reduce((d,p)=>{if(I(p))return d+p;let[f,$,c]=p,h={};c!=null&&!I(c)?Object.keys(c).forEach(v=>{h[v]=l(c[v])}):h=c;let m=n[$](r[f],h);return m==null?d:d+m},""):s,i=l(e);return I(i)&&Et.test(i)?(0,_t.default)(i.trim()):I(i)?i.trim():i}}var Oo=Object.defineProperty,So=(e,t,o)=>t in e?Oo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Co=(e,t,o)=>(So(e,typeof t!="symbol"?t+"":t,o),o),Be=class{constructor(){Co(this,"_events",{})}on(t,o){return this._hasEvent(t)||(this._events[t]=[]),this._events[t].push(o),()=>this.removeListener(t,o)}removeListener(t,o){if(!this._hasEvent(t))return;let r=this._events[t].indexOf(o);~r&&this._events[t].splice(r,1)}emit(t,...o){this._hasEvent(t)&&this._events[t].map(r=>r.apply(this,o))}_hasEvent(t){return Array.isArray(this._events[t])}},To=Object.defineProperty,Ao=(e,t,o)=>t in e?To(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,G=(e,t,o)=>(Ao(e,typeof t!="symbol"?t+"":t,o),o),qe=class extends Be{constructor(t){super(),G(this,"_locale"),G(this,"_locales"),G(this,"_localeData"),G(this,"_messages"),G(this,"_missing"),G(this,"t",this._.bind(this)),this._messages={},this._localeData={},t.missing!=null&&(this._missing=t.missing),t.messages!=null&&this.load(t.messages),t.localeData!=null&&this.loadLocaleData(t.localeData),(t.locale!=null||t.locales!=null)&&this.activate(t.locale,t.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var t;return(t=this._messages[this._locale])!=null?t:{}}get localeData(){var t;return(t=this._localeData[this._locale])!=null?t:{}}_loadLocaleData(t,o){this._localeData[t]==null?this._localeData[t]=o:Object.assign(this._localeData[t],o)}loadLocaleData(t,o){o!=null?this._loadLocaleData(t,o):Object.keys(t).forEach(r=>this._loadLocaleData(r,t[r])),this.emit("change")}_load(t,o){this._messages[t]==null?this._messages[t]=o:Object.assign(this._messages[t],o)}load(t,o){o!=null?this._load(t,o):Object.keys(t).forEach(r=>this._load(r,t[r])),this.emit("change")}loadAndActivate({locale:t,locales:o,messages:r}){this._locale=t,this._locales=o||void 0,this._messages[this._locale]=r,this.emit("change")}activate(t,o){this._locale=t,this._locales=o,this.emit("change")}_(t,o={},{message:r,formats:a}={}){I(t)||(o=t.values||o,r=t.message,t=t.id);let n=!this.messages[t],l=this._missing;if(l&&n)return Do(l)?l(this._locale,t):l;n&&this.emit("missing",{id:t,locale:this._locale});let i=this.messages[t]||r||t;return I(i)&&Et.test(i)?JSON.parse(`"${i}"`):I(i)?i:Lo(i,this._locale,this._locales)(o,a)}date(t,o){return Dt(this._locales||this._locale,t,o)}number(t,o){return He(this._locales||this._locale,t,o)}};function Po(e={}){return new qe(e)}var S=Po();var Lt=JSON.parse('{"attention.aria.callout":"callout speech bubble","attention.aria.close":"Close","attention.aria.highlight":"highlighted speech bubble","attention.aria.pointingDown":"pointing down","attention.aria.pointingLeft":"pointing left","attention.aria.pointingRight":"pointing right","attention.aria.pointingUp":"pointing up","attention.aria.popover":"popover speech bubble","attention.aria.tooltip":"tooltip"}');var Ot=JSON.parse('{"attention.aria.callout":"callout speech bubble","attention.aria.close":"Lukk","attention.aria.highlight":"highlighted speech bubble","attention.aria.pointingDown":"pointing down","attention.aria.pointingLeft":"pointing left","attention.aria.pointingRight":"pointing right","attention.aria.pointingUp":"pointing up","attention.aria.popover":"popover speech bubble","attention.aria.tooltip":"tooltip"}');var St=JSON.parse('{"attention.aria.callout":"callout speech bubble","attention.aria.close":"Sulje","attention.aria.highlight":"highlighted speech bubble","attention.aria.pointingDown":"pointing down","attention.aria.pointingLeft":"pointing left","attention.aria.pointingRight":"pointing right","attention.aria.pointingUp":"pointing up","attention.aria.popover":"popover speech bubble","attention.aria.tooltip":"tooltip"}');var Ro=["en","nb","fi"],Tt="en",Ct=e=>Ro.find(t=>e===t||e.toLowerCase().includes(t))||Tt;function Mo(){if(typeof window=="undefined"){let e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return Ct(e)}try{let e=document.documentElement.lang;return Ct(e)}catch(e){return console.warn("could not detect locale, falling back to source locale",e),Tt}}var No=(e,t,o,r)=>e==="nb"?o:e==="fi"?r:t,At=(e,t,o)=>{let r=Mo(),a=No(r,e,t,o);S.load(r,a),S.activate(r)};import{LitElement as Wo}from"lit";import{unsafeStatic as Jo,html as Go}from"lit/static-html.js";var jo=Object.create,jt=Object.defineProperty,Io=Object.getOwnPropertyDescriptor,Ho=Object.getOwnPropertyNames,Pt=Object.getOwnPropertySymbols,Bo=Object.getPrototypeOf,It=Object.prototype.hasOwnProperty,qo=Object.prototype.propertyIsEnumerable,Uo=(e,t)=>{var o={};for(var r in e)It.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&Pt)for(var r of Pt(e))t.indexOf(r)<0&&qo.call(e,r)&&(o[r]=e[r]);return o},Ht=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Qo=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ho(t))!It.call(e,a)&&a!==o&&jt(e,a,{get:()=>t[a],enumerable:!(r=Io(t,a))||r.enumerable});return e},Fo=(e,t,o)=>(o=e!=null?jo(Bo(e)):{},Qo(t||!e||!e.__esModule?jt(o,"default",{value:e,enumerable:!0}):o,e)),zo=Ht(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0;var t;(function(o){o.MalformedUnicode="MALFORMED_UNICODE",o.MalformedHexadecimal="MALFORMED_HEXADECIMAL",o.CodePointLimit="CODE_POINT_LIMIT",o.OctalDeprecation="OCTAL_DEPRECATION",o.EndOfString="END_OF_STRING"})(t=e.ErrorType||(e.ErrorType={})),e.errorMessages=new Map([[t.MalformedUnicode,"malformed Unicode character escape sequence"],[t.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[t.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[t.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[t.EndOfString,"malformed escape sequence at end of string"]])}),Vo=Ht(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;var t=zo();Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return t.ErrorType}}),Object.defineProperty(e,"errorMessages",{enumerable:!0,get:function(){return t.errorMessages}});function o(c){return c.match(/[^a-f0-9]/i)?NaN:parseInt(c,16)}function r(c,h,m){let v=o(c);if(Number.isNaN(v)||m!==void 0&&m!==c.length)throw new SyntaxError(t.errorMessages.get(h));return v}function a(c){let h=r(c,t.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(h)}function n(c,h){let m=r(c,t.ErrorType.MalformedUnicode,4);if(h!==void 0){let v=r(h,t.ErrorType.MalformedUnicode,4);return String.fromCharCode(m,v)}return String.fromCharCode(m)}function l(c){return c.charAt(0)==="{"&&c.charAt(c.length-1)==="}"}function i(c){if(!l(c))throw new SyntaxError(t.errorMessages.get(t.ErrorType.MalformedUnicode));let h=c.slice(1,-1),m=r(h,t.ErrorType.MalformedUnicode);try{return String.fromCodePoint(m)}catch(v){throw v instanceof RangeError?new SyntaxError(t.errorMessages.get(t.ErrorType.CodePointLimit)):v}}function s(c,h=!1){if(h)throw new SyntaxError(t.errorMessages.get(t.ErrorType.OctalDeprecation));let m=parseInt(c,8);return String.fromCharCode(m)}var d=new Map([["b","\b"],["f","\f"],["n",`
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function p(c){return d.get(c)||c}var f=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function $(c,h=!1){return c.replace(f,function(m,v,w,D,k,_,Q,C,B){if(v!==void 0)return"\\";if(w!==void 0)return a(w);if(D!==void 0)return i(D);if(k!==void 0)return n(k,_);if(Q!==void 0)return n(Q);if(C==="0")return"\0";if(C!==void 0)return s(C,!h);if(B!==void 0)return p(B);throw new SyntaxError(t.errorMessages.get(t.ErrorType.EndOfString))})}e.unraw=$,e.default=$}),Xo=Fo(Vo(),1),H=e=>typeof e=="string",Ko=e=>typeof e=="function",Rt=new Map;function ze(e){return[...Array.isArray(e)?e:[e],"en"]}function Bt(e,t,o){let r=ze(e);return we(()=>ke("date",r,o),()=>new Intl.DateTimeFormat(r,o)).format(H(t)?new Date(t):t)}function Qe(e,t,o){let r=ze(e);return we(()=>ke("number",r,o),()=>new Intl.NumberFormat(r,o)).format(t)}function Mt(e,t,o,r){var a=r,{offset:n=0}=a,l=Uo(a,["offset"]),i,s;let d=ze(e),p=t?we(()=>ke("plural-ordinal",d),()=>new Intl.PluralRules(d,{type:"ordinal"})):we(()=>ke("plural-cardinal",d),()=>new Intl.PluralRules(d,{type:"cardinal"}));return(s=(i=l[o])!=null?i:l[p.select(o-n)])!=null?s:l.other}function we(e,t){let o=e(),r=Rt.get(o);return r||(r=t(),Rt.set(o,r)),r}function ke(e,t,o){let r=t.join("-");return`${e}-${r}-${JSON.stringify(o)}`}var qt=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,Yo=(e,t,o={})=>{t=t||e;let r=n=>H(n)?o[n]||{style:n}:n,a=(n,l)=>{let i=Object.keys(o).length?r("number"):{},s=Qe(t,n,i);return l.replace("#",s)};return{plural:(n,l)=>{let{offset:i=0}=l,s=Mt(t,!1,n,l);return a(n-i,s)},selectordinal:(n,l)=>{let{offset:i=0}=l,s=Mt(t,!0,n,l);return a(n-i,s)},select:(n,l)=>{var i;return(i=l[n])!=null?i:l.other},number:(n,l)=>Qe(t,n,r(l)),date:(n,l)=>Bt(t,n,r(l)),undefined:n=>n}};function Zo(e,t,o){return(r,a={})=>{let n=Yo(t,o,a),l=s=>Array.isArray(s)?s.reduce((d,p)=>{if(H(p))return d+p;let[f,$,c]=p,h={};c!=null&&!H(c)?Object.keys(c).forEach(v=>{h[v]=l(c[v])}):h=c;let m=n[$](r[f],h);return m==null?d:d+m},""):s,i=l(e);return H(i)&&qt.test(i)?(0,Xo.default)(i.trim()):H(i)?i.trim():i}}var er=Object.defineProperty,tr=(e,t,o)=>t in e?er(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,or=(e,t,o)=>(tr(e,typeof t!="symbol"?t+"":t,o),o),rr=class{constructor(){or(this,"_events",{})}on(e,t){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){if(!this._hasEvent(e))return;let o=this._events[e].indexOf(t);~o&&this._events[e].splice(o,1)}emit(e,...t){this._hasEvent(e)&&this._events[e].map(o=>o.apply(this,t))}_hasEvent(e){return Array.isArray(this._events[e])}},ir=Object.defineProperty,nr=(e,t,o)=>t in e?ir(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,X=(e,t,o)=>(nr(e,typeof t!="symbol"?t+"":t,o),o),lr=class extends rr{constructor(e){super(),X(this,"_locale"),X(this,"_locales"),X(this,"_localeData"),X(this,"_messages"),X(this,"_missing"),X(this,"t",this._.bind(this)),this._messages={},this._localeData={},e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(e.locale!=null||e.locales!=null)&&this.activate(e.locale,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,t){this._localeData[e]==null?this._localeData[e]=t:Object.assign(this._localeData[e],t)}loadLocaleData(e,t){t!=null?this._loadLocaleData(e,t):Object.keys(e).forEach(o=>this._loadLocaleData(o,e[o])),this.emit("change")}_load(e,t){this._messages[e]==null?this._messages[e]=t:Object.assign(this._messages[e],t)}load(e,t){t!=null?this._load(e,t):Object.keys(e).forEach(o=>this._load(o,e[o])),this.emit("change")}loadAndActivate({locale:e,locales:t,messages:o}){this._locale=e,this._locales=t||void 0,this._messages[this._locale]=o,this.emit("change")}activate(e,t){this._locale=e,this._locales=t,this.emit("change")}_(e,t={},{message:o,formats:r}={}){H(e)||(t=e.values||t,o=e.message,e=e.id);let a=!this.messages[e],n=this._missing;if(n&&a)return Ko(n)?n(this._locale,e):n;a&&this.emit("missing",{id:e,locale:this._locale});let l=this.messages[e]||o||e;return H(l)&&qt.test(l)?JSON.parse(`"${l}"`):H(l)?l:Zo(l,this._locale,this._locales)(t,r)}date(e,t){return Bt(this._locales||this._locale,e,t)}number(e,t){return Qe(this._locales||this._locale,e,t)}};function ar(e={}){return new lr(e)}var Fe=ar(),sr=JSON.parse('{"icon.title.close":"Kryss"}'),cr=JSON.parse('{"icon.title.close":"Cross"}'),dr=JSON.parse('{"icon.title.close":"Risti"}'),ur=["en","nb","fi"],Ut="en",Nt=e=>ur.find(t=>e===t||e.toLowerCase().includes(t))||Ut;function br(){if(typeof window=="undefined"){let e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return Nt(e)}try{let e=document.documentElement.lang;return Nt(e)}catch(e){return console.warn("could not detect locale, falling back to source locale",e),Ut}}var pr=(e,t,o,r)=>e==="nb"?o:e==="fi"?r:t,gr=(e,t,o)=>{let r=br(),a=pr(r,e,t,o);Fe.load(r,a),Fe.activate(r)};gr(cr,sr,dr);var fr=class extends Wo{render(){let e=Fe.t({message:"Cross",id:"icon.title.close",comment:"Title for close icon"});return Go`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16">${Jo(`<title>${e}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m12.5 3.5-9 9M3.5 3.5l9 9"></path></svg>`}};customElements.get("w-icon-close-16")||customElements.define("w-icon-close-16",fr);var se=class extends Ge(Ft){constructor(){super(),At(Lt,Ot,St),this.show=!1,this.tooltip=!1,this.callout=!1,this.popover=!1,this.highlight=!1,this.canClose=!1,this.noArrow=!1}connectedCallback(){if(super.connectedCallback(),!this.placement||!Object.keys(le).includes(this.placement))throw new Error(`Invalid "placement" attribute. Set its value to one of the following:
${JSON.stringify(Object.keys(le))}`);setTimeout(()=>this.requestUpdate(),0)}get _actualDirection(){return this.placement}set _actualDirection(t){this.placement=t}get _arrowDirection(){return le[this.placement]}updated(){this.callout||this._attentionEl.style.setProperty("--attention-visibility",this.show?"":"hidden"),this.tooltip||this._attentionEl.style.setProperty("--attention-display",this.show?"flex":"none"),this.attentionState={isShowing:this.show,isCallout:this.callout,actualDirection:this._actualDirection,directionName:this.placement,arrowEl:this.renderRoot.querySelector("#arrow"),attentionEl:this._attentionEl,targetEl:this._targetEl,noArrow:this.noArrow},mt(this.attentionState)}pointingAtDirection(){switch(le[this._actualDirection]){case"top":return S._({id:"attention.aria.pointingUp",message:"pointing up",comment:"Default screenreader message for top direction in the attention component"});case"right":return S._({id:"attention.aria.pointingRight",message:"pointing right",comment:"Default screenreader message for right direction in the attention component"});case"bottom":return S._({id:"attention.aria.pointingDown",message:"pointing down",comment:"Default screenreader message for bottom direction in the attention component"});case"left":return S._({id:"attention.aria.pointingLeft",message:"pointing left",comment:"Default screenreader message for left direction in the attention component"});default:return""}}activeAttentionType(){switch(!0){case this.tooltip:return S._({id:"attention.aria.tooltip",message:"tooltip",comment:"Default screenreader message for tooltip in the attention component"});case this.callout:return S._({id:"attention.aria.callout",message:"callout speech bubble",comment:"Default screenreader message for callout speech bubble in the attention component"});case this.popover:return S._({id:"attention.aria.popover",message:"popover speech bubble",comment:"Default screenreader message for popover speech bubble in the attention component"});case this.highlight:return S._({id:"attention.aria.highlight",message:"highlighted speech bubble",comment:"Default screenreader message for highlighted speech bubble in the attention component"});default:return""}}defaultAriaLabel(){return`${this.activeAttentionType()} ${this.noArrow?"":this.pointingAtDirection()}`}setAriaLabels(){if(this._targetEl&&!this._targetEl.getAttribute("aria-details")){let t=this._messageEl.id||(this._messageEl.id=Xe());this._targetEl.setAttribute("aria-details",t)}}get _activeVariantClasses(){let t={callout:this.callout,popover:this.popover,tooltip:this.tooltip,highlight:this.highlight},o=Object.keys(t).find(r=>!!t[r])||"";return{wrapper:F[o],arrow:F[`arrow${o.charAt(0).toUpperCase()+o.slice(1)}`]}}get _ariaClose(){return S._({id:"attention.aria.close",message:"Close",comment:"Aria label for the close button in attention"})}firstUpdated(){this.setAriaLabels(),this.callout&&(this._attentionEl.style.position="relative")}get _attentionEl(){return this.renderRoot.querySelector("#attention")}get _targetEl(){return this.renderRoot.querySelector("slot[name='target']").assignedNodes()[0]}get _messageEl(){return this.renderRoot.querySelector("slot[name='message']").assignedNodes()[0]}get _wrapperClasses(){return Oe({[F.base]:!0,[this._activeVariantClasses.wrapper]:!0})}get _arrowClasses(){return Oe({[F.arrowBase]:!0,[F[`arrowDirection${this._arrowDirection.charAt(0).toUpperCase()+this._arrowDirection.slice(1)}`]]:!0,[this._activeVariantClasses.arrow]:!0})}get _arrowHtml(){return this.noArrow?"":ae`<div
id="arrow"
role="img"
class="${this._arrowClasses}"
style="transform:rotate(${ct[this._arrowDirection]}deg);
style="transform:rotate(${ht[this._arrowDirection]}deg);
margin-${this._arrowDirection.charAt(0).toLowerCase()+this._arrowDirection.slice(1)}:-0.5px;"
/>`}close(){let t=new CustomEvent("close",{bubbles:!0,composed:!0});this.updateComplete.then(()=>this.dispatchEvent(t))}keypressed(t){this.canClose&&t.key==="Escape"&&(t.preventDefault(),this.close())}get _closeBtnHtml(){return ie`
/>`}close(){let t=new CustomEvent("close",{bubbles:!0,composed:!0});this.updateComplete.then(()=>this.dispatchEvent(t))}keypressed(t){this.canClose&&t.key==="Escape"&&(t.preventDefault(),this.close())}get _closeBtnHtml(){return ae`
<button

@@ -14,9 +15,9 @@ aria-label="${this._ariaClose}"

@keydown=${this.keypressed}
class="${I.closeBtn}"
class="${F.closeBtn}"
>
<w-icon-close-16 />
</button>
`}render(){return ie`
<div class=${yo(this.className?this.className:void 0)}>
${this.placement==="right"||this.placement==="bottom"?ie`
`}render(){return ae`
<div class=${mr(this.className?this.className:void 0)}>
${this.placement==="right"||this.placement==="bottom"?ae`
<slot name="target"></slot>

@@ -32,9 +33,9 @@

<slot name="message"></slot>
${this.canClose?this._closeBtnHtml:Lt}
${this.canClose?this._closeBtnHtml:Qt}
</div>
`:ie`
`:ae`
<div id="attention" class="${this._wrapperClasses}">
<slot name="message"></slot>
${this._arrowHtml}
${this.canClose?this._closeBtnHtml:Lt}
${this.canClose?this._closeBtnHtml:Qt}
</div>

@@ -44,3 +45,3 @@ <slot name="target"></slot>

</div>
`}};ke(ne,"properties",{show:{type:Boolean,reflect:!0},placement:{type:String},tooltip:{type:Boolean,reflect:!0},callout:{type:Boolean,reflect:!0},popover:{type:Boolean,reflect:!0},highlight:{type:Boolean,reflect:!0},canClose:{type:Boolean,reflect:!0},noArrow:{type:Boolean,reflect:!0}}),ke(ne,"styles",[Ct.styles,vo`
`}};Le(se,"properties",{show:{type:Boolean,reflect:!0},placement:{type:String},tooltip:{type:Boolean,reflect:!0},callout:{type:Boolean,reflect:!0},popover:{type:Boolean,reflect:!0},highlight:{type:Boolean,reflect:!0},canClose:{type:Boolean,reflect:!0},noArrow:{type:Boolean,reflect:!0}}),Le(se,"styles",[Ft.styles,hr`
#attention {

@@ -61,3 +62,3 @@ position: absolute;

}
`]);customElements.get("w-attention")||customElements.define("w-attention",ne);export{ne as WarpAttention};
`]);customElements.get("w-attention")||customElements.define("w-attention",se);export{se as WarpAttention};
//# sourceMappingURL=index.js.map

@@ -45,2 +45,6 @@ declare const WarpExpandable_base: {

};
_showChevronUp: {
type: BooleanConstructor;
state: boolean;
};
};

@@ -55,6 +59,12 @@ static styles: any[];

_hasTitle: boolean;
_showChevronUp: boolean;
updated(changedProperties: any): void;
firstUpdated(): void;
get _expandableSlot(): import("lit").TemplateResult<1>;
get _chevronUpClasses(): import(".pnpm/lit-html@2.8.0/node_modules/lit-html/directive").DirectiveResult<typeof import(".pnpm/lit-html@2.8.0/node_modules/lit-html/directives/class-map").ClassMapDirective>;
get _chevronDownClasses(): import(".pnpm/lit-html@2.8.0/node_modules/lit-html/directive").DirectiveResult<typeof import(".pnpm/lit-html@2.8.0/node_modules/lit-html/directives/class-map").ClassMapDirective>;
chevronDownTitle(): string;
chevronUpTitle(): string;
render(): import("lit").TemplateResult<1>;
}
export {};

@@ -1,23 +0,58 @@

var f=Object.defineProperty;var k=(d,n,l)=>n in d?f(d,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):d[n]=l;var $=(d,n,l)=>(k(d,typeof n!="symbol"?n+"":n,l),l);import{css as L,html as b}from"lit";import m from"@warp-ds/elements-core";import{classMap as y}from"lit/directives/class-map.js";var w=d=>d.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function x(d){return class extends d{static createProperty(n,l){let g=l;(typeof(l==null?void 0:l.attribute)=="undefined"||(l==null?void 0:l.attribute)===!0)&&(g=Object.assign({},l,{attribute:w(n.toString())})),super.createProperty(n,g)}}}function s(d){let n={};for(let[l,g]of Object.entries(d))for(let v of l.split(" "))n[v]=g;return y(n)}var u={box:"group block relative break-words last-child:mb-0 p-16 rounded-8",bleed:"-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8",info:"i-bg-$color-box-info-background i-text-$color-box-info-text",neutral:"i-bg-$color-box-neutral-background i-text-$color-box-neutral-text",bordered:"border-2 i-border-$color-box-bordered-border i-bg-$color-box-bordered-background i-text-$color-box-bordered-text",infoClickable:"hover:i-bg-$color-box-info-background-hover active:i-bg-$color-box-info-background-hover",neutralClickable:"hover:i-bg-$color-box-neutral-background-hover active:i-bg-$color-box-neutral-background-hover",borderedClickable:"hover:i-bg-$color-box-bordered-background-hover active:i-bg-$color-box-bordered-background-hover hover:i-border-$color-box-bordered-border-hover active:i-border-$color-box-bordered-border-hover"};var D="focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block",a={expandable:"will-change-height",expandableTitle:"font-bold i-text-$color-expandable-title-text",expandableBox:"i-bg-$color-expandable-background hover:i-bg-$color-expandable-background-hover py-0 px-0 "+u.box,expandableBleed:u.bleed,chevron:"inline-block align-middle i-text-$color-expandable-icon",chevronNonBox:"relative left-8",chevronBox:"absolute right-16",chevronTransform:"transform transition-transform transform-gpu ease-in-out",chevronExpand:"-rotate-180",chevronCollapse:"rotate-180",expansion:"overflow-hidden",expansionNotExpanded:"h-0 invisible",button:D+" hover:underline focus:underline",buttonBox:"w-full text-left relative inline-flex items-center "+u.box,paddingTop:"pt-0",title:"flex justify-between items-center",titleType:"h4"},c="font-bold focusable justify-center transition-colors ease-in-out",i={primary:"i-text-$color-button-primary-text hover:i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover active:i-bg-$color-button-primary-background-active",secondary:"i-text-$color-button-secondary-text hover:i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active",utility:"i-text-$color-button-utility-text hover:i-text-$color-button-utility-text i-bg-$color-button-utility-background i-border-$color-button-utility-border hover:i-bg-$color-button-utility-background hover:i-border-$color-button-utility-border-hover active:i-border-$color-button-utility-border-active",destructive:"i-bg-$color-button-negative-background i-text-$color-button-negative-text hover:i-text-$color-button-negative-text hover:i-bg-$color-button-negative-background-hover active:i-bg-$color-button-negative-background-active",pill:"i-text-$color-button-pill-icon hover:i-text-$color-button-pill-icon-hover active:i-text-$color-button-pill-icon-active i-bg-$color-button-pill-background hover:i-bg-$color-button-pill-background-hover active:i-bg-$color-button-pill-background-active",disabled:"i-text-$color-button-disabled-text i-bg-$color-button-disabled-background",quiet:"i-bg-$color-button-quiet-background i-text-$color-button-quiet-text hover:i-bg-$color-button-quiet-background-hover active:i-bg-$color-button-quiet-background-active",utilityQuiet:"i-text-$color-button-utility-quiet-text i-bg-$color-button-utility-quiet-background hover:i-bg-$color-button-utility-quiet-background-hover",negativeQuiet:"i-bg-$color-button-negative-quiet-background i-text-$color-button-negative-quiet-text hover:i-bg-$color-button-negative-quiet-background-hover active:i-bg-$color-button-negative-quiet-background-active",loading:"i-text-$color-button-loading-text i-bg-$color-button-loading-background",link:"i-text-$color-button-link-text"},t={primary:`border-0 rounded-8 ${c}`,secondary:`border-2 rounded-8 ${c}`,utility:`border rounded-4 ${c}`,negative:`border-0 rounded-8 ${c}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${c}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline ${i.link}`},r={xsmall:"py-6 px-16",small:"py-8 px-16",medium:"py-10 px-14",large:"py-12 px-16",utility:"py-[11px] px-[15px]",smallUtility:"py-[7px] px-[15px]",pill:"min-h-[44px] min-w-[44px]",pillSmall:"min-h-32 min-w-32",link:"p-0"},o={medium:"text-m leading-[24]",xsmall:"text-xs"},e={inProgress:`border-transparent animate-inprogress pointer-events-none ${i.loading}`,quiet:`border-0 rounded-8 ${c}`,utilityQuiet:`border-0 rounded-4 ${c}`,negativeQuiet:`border-0 rounded-8 ${c}`,isDisabled:`font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${i.disabled}`},P={secondary:`${r.medium} ${o.medium} ${t.secondary} ${i.secondary}`,secondaryHref:`${r.medium} ${o.medium} ${t.secondary} ${i.secondary}`,secondaryDisabled:`${r.medium} ${o.medium} ${t.secondary} ${e.isDisabled}`,secondarySmall:`${o.xsmall} ${r.xsmall} ${t.secondary} ${i.secondary}`,secondarySmallDisabled:`${o.xsmall} ${r.xsmall} ${t.secondary} ${e.isDisabled}`,secondaryQuiet:`${r.medium} ${o.medium} ${e.quiet} ${i.quiet}`,secondaryQuietDisabled:`${r.medium} ${o.medium} ${e.quiet} ${e.isDisabled}`,secondarySmallQuiet:`${o.xsmall} ${r.xsmall} ${e.quiet} ${i.quiet}`,secondarySmallQuietDisabled:`${o.xsmall} ${r.xsmall} ${e.quiet} ${e.isDisabled}`,secondaryLoading:`${r.medium} ${o.medium} ${t.secondary} ${e.inProgress}`,secondarySmallLoading:`${o.xsmall} ${r.xsmall} ${t.secondary} ${e.inProgress}`,secondarySmallQuietLoading:`${o.xsmall} ${r.xsmall} ${e.quiet} ${e.inProgress}`,secondaryQuietLoading:`${r.medium} ${o.medium} ${e.quiet} ${e.inProgress}`,primary:`${r.large} ${o.medium} ${t.primary} ${i.primary}`,primaryDisabled:`${r.large} ${o.medium} ${e.isDisabled} ${t.primary}`,primarySmall:`${r.small} ${o.xsmall} ${t.primary} ${i.primary}`,primarySmallDisabled:`${r.small} ${o.xsmall} ${e.isDisabled} ${t.primary} `,primaryQuiet:`${r.large} ${o.medium} ${e.quiet} ${i.quiet}`,primaryQuietDisabled:`${r.large} ${o.medium} ${e.quiet} ${e.isDisabled}`,primarySmallQuiet:`${r.small} ${o.xsmall} ${e.quiet} ${i.quiet}`,primarySmallQuietDisabled:`${r.small} ${o.xsmall} ${e.quiet} ${e.isDisabled}`,primaryLoading:`${r.large} ${o.medium} ${e.inProgress} ${t.primary}`,primarySmallLoading:`${r.small} ${o.xsmall} ${e.inProgress} ${t.primary}`,primarySmallQuietLoading:`${r.small} ${o.xsmall} ${e.quiet} ${e.inProgress} ${t.primary}`,primaryQuietLoading:`${r.large} ${o.medium} ${e.quiet} ${e.inProgress}`,utility:`${r.utility} ${o.medium} ${t.utility} ${i.utility}`,utilityDisabled:`${r.utility} ${o.medium} ${t.utility} ${e.isDisabled}`,utilityQuiet:`${r.large} ${o.medium} ${e.utilityQuiet} ${i.utilityQuiet}`,utilityQuietDisabled:`${r.large} ${o.medium} ${e.utilityQuiet} ${e.isDisabled}`,utilitySmall:`${r.smallUtility} ${o.xsmall} ${t.utility} ${i.utility}`,utilitySmallDisabled:`${r.smallUtility} ${o.xsmall} ${t.utility} ${e.isDisabled}`,utilitySmallQuiet:`${r.smallUtility} ${o.xsmall} ${e.utilityQuiet} ${i.utilityQuiet}`,utilitySmallQuietDisabled:`${r.smallUtility} ${o.xsmall} ${e.utilityQuiet} ${e.isDisabled}`,utilityLoading:`${r.large} ${o.medium} ${t.utility} ${e.inProgress}`,utilitySmallLoading:`${r.smallUtility} ${o.xsmall} ${t.utility} ${e.inProgress}`,utilityQuietLoading:`${r.large} ${o.medium} ${e.inProgress} ${e.utilityQuiet}`,utilitySmallQuietLoading:`${r.smallUtility} ${o.xsmall} ${e.inProgress} ${e.utilityQuiet}`,negative:`${r.large} ${o.medium} ${t.negative} ${i.destructive}`,negativeDisabled:`${r.large} ${o.medium} ${t.negative} ${e.isDisabled}`,negativeQuiet:`${r.large} ${o.medium} ${e.negativeQuiet} ${i.negativeQuiet}`,negativeQuietDisabled:`${r.large} ${o.medium} ${e.negativeQuiet}${e.isDisabled}`,negativeSmall:`${r.small} ${o.xsmall} ${t.negative} ${i.destructive}`,negativeSmallDisabled:`${r.small} ${o.xsmall} ${t.negative} ${e.isDisabled}`,negativeSmallQuiet:`${r.small} ${o.xsmall} ${e.negativeQuiet} ${i.negativeQuiet}`,negativeSmallQuietDisabled:`${r.small} ${o.xsmall} ${e.negativeQuiet} ${e.isDisabled}`,negativeLoading:`${r.large} ${o.medium} ${t.negative} ${e.inProgress}`,negativeSmallLoading:`${r.small} ${o.xsmall} ${e.inProgress} ${t.negative}`,negativeQuietLoading:`${r.large} ${o.medium} ${e.negativeQuiet} ${t.negative} ${e.inProgress}`,negativeSmallQuietLoading:`${r.small} ${o.xsmall} ${e.negativeQuiet} ${e.inProgress}`,pill:`${r.pill} ${o.medium} ${t.pill} ${i.pill}`,pillSmall:`${r.pillSmall} ${o.xsmall} ${t.pill} ${i.pill}`,pillLoading:`${r.pill} ${o.medium} ${t.pill} ${e.inProgress}`,pillSmallLoading:`${r.pillSmall} ${o.xsmall} ${t.pill} ${e.inProgress}`,link:`${r.link} ${o.medium} ${t.link}`,linkSmall:`${r.link} ${o.xsmall} ${t.link}`,linkAsButton:"inline-block hover:no-underline text-center",a11y:"sr-only",fullWidth:"w-full max-w-full",contentWidth:"max-w-max"};var j={transparentBg:'before:i-bg-$color-modal-backdrop-background before:content-[""] before:absolute before:top-0 before:bottom-0 before:left-0 before:right-0 before:opacity-25',backdrop:"fixed inset-0 flex sm:place-content-center sm:place-items-center items-end z-20 [--w-modal-max-height:80%] [--w-modal-width:640px]",modal:"pb-safe-[32] i-shadow-$shadow-modal max-h-[--w-modal-max-height] min-h-[--w-modal-min-height] w-[--w-modal-width] h-[--w-modal-height] relative transition-300 ease-in-out backface-hidden will-change-height rounded-8 mx-0 sm:mx-16 i-bg-$color-modal-background flex flex-col overflow-hidden outline-none space-y-16 pt-8 sm:pt-32 sm:pb-32 rounded-b-0 sm:rounded-b-8",content:"block overflow-y-auto overflow-x-hidden last-child:mb-0 grow shrink px-16 sm:px-32 relative",footer:"flex justify-end shrink-0 px-16 sm:px-32",transitionTitle:"transition-all duration-300",transitionTitleCenter:"justify-self-center",transitionTitleColSpan:"col-span-2",title:"-mt-4 sm:-mt-8 h-40 sm:h-48 grid gap-8 sm:gap-16 grid-cols-[auto_1fr_auto] items-center px-16 sm:px-32 border-b sm:border-b-0 shrink-0",titleText:"mb-0 h4 sm:h3",titleButton:`${o.medium} ${t.pill} ${i.pill} sm:min-h-[44px] sm:min-w-[44px] min-h-[32px] min-w-[32px]`,titleButtonLeft:"-ml-8 sm:-ml-12 justify-self-start",titleButtonRight:"-mr-8 sm:-mr-12 justify-self-end",titleButtonIcon:"h-16 w-16 sm:h-24 sm:w-24",titleButtonIconRotated:"transform rotate-90"};var S={label:"antialiased block relative text-s font-bold pb-4 cursor-pointer i-text-$color-label-text",labelInvalid:"i-text-$color-label-text-negative",optional:"pl-8 font-normal text-s i-text-$color-label-optional-text"};var h="absolute top-0 bottom-0 flex justify-center items-center focusable focus:[--w-outline-offset:-2px] bg-transparent ",z={wrapper:h+"right-0",wrapperWithLabel:"w-max pr-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"},I={wrapper:h+"left-0",wrapperWithLabel:"w-max pl-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"};var R={toggle:"absolute inset-0 h-full w-full appearance-none cursor-pointer focusable focusable-inset",label:`px-12 ${S.label} py-8! cursor-pointer focusable focusable-inset`,buttonOrLink:"bg-transparent focusable",buttonOrLinkStretch:"inset-0 absolute"};var _={base:"border-2 relative flex items-start",tooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background i-shadow-$shadow-tooltip i-text-$color-tooltip-text rounded-4 py-6 px-8",callout:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8",highlight:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8 drop-shadow-m",popover:"i-bg-$color-popover-background i-border-$color-popover-background i-text-$color-popover-paragraph-text rounded-8 p-16 drop-shadow-m",arrowBase:"absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",arrowDirectionLeft:"-left-[8px]",arrowDirectionRight:"-right-[8px]",arrowDirectionBottom:"-bottom-[8px]",arrowDirectionTop:"-top-[8px]",arrowTooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background",arrowCallout:"i-bg-$color-callout-background i-border-$color-callout-border",arrowPopover:"i-bg-$color-popover-background i-border-$color-popover-background",arrowHighlight:"i-bg-$color-callout-background i-border-$color-callout-border",content:"last-child:mb-0",notCallout:"absolute z-50",closeBtn:`${o.medium} ${t.pill} ${i.pill} justify-self-end -mr-8 ml-8`};import{ifDefined as Q}from"lit/directives/if-defined.js";var p=class extends x(m){constructor(){super(),this.expanded=!1,this.animated=!1,this.info=!1,this.box=!1,this.bleed=!1,this.noChevron=!1,this._hasTitle=!0}firstUpdated(){this._hasTitle=!!this.title||this.renderRoot.querySelector("slot[name='title']").assignedNodes().length>0}get _expandableSlot(){return b`<div
class=${s({[this.contentClass||""]:!0,[u.box]:this.box,[a.paddingTop]:this._hasTitle&&this.box})}
var ue=Object.create;var Q=Object.defineProperty;var pe=Object.getOwnPropertyDescriptor;var ge=Object.getOwnPropertyNames,R=Object.getOwnPropertySymbols,he=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable;var xe=(o,e,r)=>e in o?Q(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r;var z=(o,e)=>{var r={};for(var t in o)H.call(o,t)&&e.indexOf(t)<0&&(r[t]=o[t]);if(o!=null&&R)for(var t of R(o))e.indexOf(t)<0&&$e.call(o,t)&&(r[t]=o[t]);return r};var F=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);var me=(o,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let b of ge(e))!H.call(o,b)&&b!==r&&Q(o,b,{get:()=>e[b],enumerable:!(t=pe(e,b))||t.enumerable});return o};var fe=(o,e,r)=>(r=o!=null?ue(he(o)):{},me(e||!o||!o.__esModule?Q(r,"default",{value:o,enumerable:!0}):r,o));var P=(o,e,r)=>(xe(o,typeof e!="symbol"?e+"":e,r),r);var G=F(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.errorMessages=w.ErrorType=void 0;var _;(function(o){o.MalformedUnicode="MALFORMED_UNICODE",o.MalformedHexadecimal="MALFORMED_HEXADECIMAL",o.CodePointLimit="CODE_POINT_LIMIT",o.OctalDeprecation="OCTAL_DEPRECATION",o.EndOfString="END_OF_STRING"})(_=w.ErrorType||(w.ErrorType={}));w.errorMessages=new Map([[_.MalformedUnicode,"malformed Unicode character escape sequence"],[_.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[_.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[_.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[_.EndOfString,"malformed escape sequence at end of string"]])});var X=F(f=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});f.unraw=f.errorMessages=f.ErrorType=void 0;var g=G();Object.defineProperty(f,"ErrorType",{enumerable:!0,get:function(){return g.ErrorType}});Object.defineProperty(f,"errorMessages",{enumerable:!0,get:function(){return g.errorMessages}});function _e(o){return!o.match(/[^a-f0-9]/i)?parseInt(o,16):NaN}function M(o,e,r){let t=_e(o);if(Number.isNaN(t)||r!==void 0&&r!==o.length)throw new SyntaxError(g.errorMessages.get(e));return t}function De(o){let e=M(o,g.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}function J(o,e){let r=M(o,g.ErrorType.MalformedUnicode,4);if(e!==void 0){let t=M(e,g.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,t)}return String.fromCharCode(r)}function Se(o){return o.charAt(0)==="{"&&o.charAt(o.length-1)==="}"}function Ce(o){if(!Se(o))throw new SyntaxError(g.errorMessages.get(g.ErrorType.MalformedUnicode));let e=o.slice(1,-1),r=M(e,g.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(t){throw t instanceof RangeError?new SyntaxError(g.errorMessages.get(g.ErrorType.CodePointLimit)):t}}function Le(o,e=!1){if(e)throw new SyntaxError(g.errorMessages.get(g.ErrorType.OctalDeprecation));let r=parseInt(o,8);return String.fromCharCode(r)}var Te=new Map([["b","\b"],["f","\f"],["n",`
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function Me(o){return Te.get(o)||o}var Ee=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function K(o,e=!1){return o.replace(Ee,function(r,t,b,c,d,s,h,$,m){if(t!==void 0)return"\\";if(b!==void 0)return De(b);if(c!==void 0)return Ce(c);if(d!==void 0)return J(d,s);if(h!==void 0)return J(h);if($==="0")return"\0";if($!==void 0)return Le($,!e);if(m!==void 0)return Me(m);throw new SyntaxError(g.errorMessages.get(g.ErrorType.EndOfString))})}f.unraw=K;f.default=K});import{css as ze,html as x}from"lit";import se from"@warp-ds/elements-core";import{classMap as ve}from"lit/directives/class-map.js";var ke=o=>o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function V(o){return class extends o{static createProperty(e,r){let t=r;(typeof(r==null?void 0:r.attribute)=="undefined"||(r==null?void 0:r.attribute)===!0)&&(t=Object.assign({},r,{attribute:ke(e.toString())})),super.createProperty(e,t)}}}function k(o){let e={};for(let[r,t]of Object.entries(o))for(let b of r.split(" "))e[b]=t;return ve(e)}var L={box:"group block relative break-words last-child:mb-0 p-16 rounded-8",bleed:"-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8",info:"i-bg-$color-box-info-background i-text-$color-box-info-text",neutral:"i-bg-$color-box-neutral-background i-text-$color-box-neutral-text",bordered:"border-2 i-border-$color-box-bordered-border i-bg-$color-box-bordered-background i-text-$color-box-bordered-text",infoClickable:"hover:i-bg-$color-box-info-background-hover active:i-bg-$color-box-info-background-hover",neutralClickable:"hover:i-bg-$color-box-neutral-background-hover active:i-bg-$color-box-neutral-background-hover",borderedClickable:"hover:i-bg-$color-box-bordered-background-hover active:i-bg-$color-box-bordered-background-hover hover:i-border-$color-box-bordered-border-hover active:i-border-$color-box-bordered-border-hover"};var ye="focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block",p={expandable:"will-change-height",expandableTitle:"font-bold i-text-$color-expandable-title-text",expandableBox:"i-bg-$color-expandable-background hover:i-bg-$color-expandable-background-hover py-0 px-0 "+L.box,expandableBleed:L.bleed,chevron:"inline-block align-middle i-text-$color-expandable-icon",chevronNonBox:"relative left-8",chevronBox:"absolute right-16",chevronTransform:"transform transition-transform transform-gpu ease-in-out",chevronExpand:"-rotate-180",chevronCollapse:"rotate-180",expansion:"overflow-hidden",expansionNotExpanded:"h-0 invisible",button:ye+" hover:underline focus:underline",buttonBox:"w-full text-left relative inline-flex items-center "+L.box,paddingTop:"pt-0",title:"flex justify-between items-center",titleType:"h4"},y="font-bold focusable justify-center transition-colors ease-in-out",u={primary:"i-text-$color-button-primary-text hover:i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover active:i-bg-$color-button-primary-background-active",secondary:"i-text-$color-button-secondary-text hover:i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active",utility:"i-text-$color-button-utility-text hover:i-text-$color-button-utility-text i-bg-$color-button-utility-background i-border-$color-button-utility-border hover:i-bg-$color-button-utility-background hover:i-border-$color-button-utility-border-hover active:i-border-$color-button-utility-border-active",destructive:"i-bg-$color-button-negative-background i-text-$color-button-negative-text hover:i-text-$color-button-negative-text hover:i-bg-$color-button-negative-background-hover active:i-bg-$color-button-negative-background-active",pill:"i-text-$color-button-pill-icon hover:i-text-$color-button-pill-icon-hover active:i-text-$color-button-pill-icon-active i-bg-$color-button-pill-background hover:i-bg-$color-button-pill-background-hover active:i-bg-$color-button-pill-background-active",disabled:"i-text-$color-button-disabled-text i-bg-$color-button-disabled-background",quiet:"i-bg-$color-button-quiet-background i-text-$color-button-quiet-text hover:i-bg-$color-button-quiet-background-hover active:i-bg-$color-button-quiet-background-active",utilityQuiet:"i-text-$color-button-utility-quiet-text i-bg-$color-button-utility-quiet-background hover:i-bg-$color-button-utility-quiet-background-hover",negativeQuiet:"i-bg-$color-button-negative-quiet-background i-text-$color-button-negative-quiet-text hover:i-bg-$color-button-negative-quiet-background-hover active:i-bg-$color-button-negative-quiet-background-active",loading:"i-text-$color-button-loading-text i-bg-$color-button-loading-background",link:"i-text-$color-button-link-text"},a={primary:`border-0 rounded-8 ${y}`,secondary:`border-2 rounded-8 ${y}`,utility:`border rounded-4 ${y}`,negative:`border-0 rounded-8 ${y}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${y}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline ${u.link}`},n={xsmall:"py-6 px-16",small:"py-8 px-16",medium:"py-10 px-14",large:"py-12 px-16",utility:"py-[11px] px-[15px]",smallUtility:"py-[7px] px-[15px]",pill:"min-h-[44px] min-w-[44px]",pillSmall:"min-h-32 min-w-32",link:"p-0"},l={medium:"text-m leading-[24]",xsmall:"text-xs"},i={inProgress:`border-transparent animate-inprogress pointer-events-none ${u.loading}`,quiet:`border-0 rounded-8 ${y}`,utilityQuiet:`border-0 rounded-4 ${y}`,negativeQuiet:`border-0 rounded-8 ${y}`,isDisabled:`font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${u.disabled}`},Ke={secondary:`${n.medium} ${l.medium} ${a.secondary} ${u.secondary}`,secondaryHref:`${n.medium} ${l.medium} ${a.secondary} ${u.secondary}`,secondaryDisabled:`${n.medium} ${l.medium} ${a.secondary} ${i.isDisabled}`,secondarySmall:`${l.xsmall} ${n.xsmall} ${a.secondary} ${u.secondary}`,secondarySmallDisabled:`${l.xsmall} ${n.xsmall} ${a.secondary} ${i.isDisabled}`,secondaryQuiet:`${n.medium} ${l.medium} ${i.quiet} ${u.quiet}`,secondaryQuietDisabled:`${n.medium} ${l.medium} ${i.quiet} ${i.isDisabled}`,secondarySmallQuiet:`${l.xsmall} ${n.xsmall} ${i.quiet} ${u.quiet}`,secondarySmallQuietDisabled:`${l.xsmall} ${n.xsmall} ${i.quiet} ${i.isDisabled}`,secondaryLoading:`${n.medium} ${l.medium} ${a.secondary} ${i.inProgress}`,secondarySmallLoading:`${l.xsmall} ${n.xsmall} ${a.secondary} ${i.inProgress}`,secondarySmallQuietLoading:`${l.xsmall} ${n.xsmall} ${i.quiet} ${i.inProgress}`,secondaryQuietLoading:`${n.medium} ${l.medium} ${i.quiet} ${i.inProgress}`,primary:`${n.large} ${l.medium} ${a.primary} ${u.primary}`,primaryDisabled:`${n.large} ${l.medium} ${i.isDisabled} ${a.primary}`,primarySmall:`${n.small} ${l.xsmall} ${a.primary} ${u.primary}`,primarySmallDisabled:`${n.small} ${l.xsmall} ${i.isDisabled} ${a.primary} `,primaryQuiet:`${n.large} ${l.medium} ${i.quiet} ${u.quiet}`,primaryQuietDisabled:`${n.large} ${l.medium} ${i.quiet} ${i.isDisabled}`,primarySmallQuiet:`${n.small} ${l.xsmall} ${i.quiet} ${u.quiet}`,primarySmallQuietDisabled:`${n.small} ${l.xsmall} ${i.quiet} ${i.isDisabled}`,primaryLoading:`${n.large} ${l.medium} ${i.inProgress} ${a.primary}`,primarySmallLoading:`${n.small} ${l.xsmall} ${i.inProgress} ${a.primary}`,primarySmallQuietLoading:`${n.small} ${l.xsmall} ${i.quiet} ${i.inProgress} ${a.primary}`,primaryQuietLoading:`${n.large} ${l.medium} ${i.quiet} ${i.inProgress}`,utility:`${n.utility} ${l.medium} ${a.utility} ${u.utility}`,utilityDisabled:`${n.utility} ${l.medium} ${a.utility} ${i.isDisabled}`,utilityQuiet:`${n.large} ${l.medium} ${i.utilityQuiet} ${u.utilityQuiet}`,utilityQuietDisabled:`${n.large} ${l.medium} ${i.utilityQuiet} ${i.isDisabled}`,utilitySmall:`${n.smallUtility} ${l.xsmall} ${a.utility} ${u.utility}`,utilitySmallDisabled:`${n.smallUtility} ${l.xsmall} ${a.utility} ${i.isDisabled}`,utilitySmallQuiet:`${n.smallUtility} ${l.xsmall} ${i.utilityQuiet} ${u.utilityQuiet}`,utilitySmallQuietDisabled:`${n.smallUtility} ${l.xsmall} ${i.utilityQuiet} ${i.isDisabled}`,utilityLoading:`${n.large} ${l.medium} ${a.utility} ${i.inProgress}`,utilitySmallLoading:`${n.smallUtility} ${l.xsmall} ${a.utility} ${i.inProgress}`,utilityQuietLoading:`${n.large} ${l.medium} ${i.inProgress} ${i.utilityQuiet}`,utilitySmallQuietLoading:`${n.smallUtility} ${l.xsmall} ${i.inProgress} ${i.utilityQuiet}`,negative:`${n.large} ${l.medium} ${a.negative} ${u.destructive}`,negativeDisabled:`${n.large} ${l.medium} ${a.negative} ${i.isDisabled}`,negativeQuiet:`${n.large} ${l.medium} ${i.negativeQuiet} ${u.negativeQuiet}`,negativeQuietDisabled:`${n.large} ${l.medium} ${i.negativeQuiet}${i.isDisabled}`,negativeSmall:`${n.small} ${l.xsmall} ${a.negative} ${u.destructive}`,negativeSmallDisabled:`${n.small} ${l.xsmall} ${a.negative} ${i.isDisabled}`,negativeSmallQuiet:`${n.small} ${l.xsmall} ${i.negativeQuiet} ${u.negativeQuiet}`,negativeSmallQuietDisabled:`${n.small} ${l.xsmall} ${i.negativeQuiet} ${i.isDisabled}`,negativeLoading:`${n.large} ${l.medium} ${a.negative} ${i.inProgress}`,negativeSmallLoading:`${n.small} ${l.xsmall} ${i.inProgress} ${a.negative}`,negativeQuietLoading:`${n.large} ${l.medium} ${i.negativeQuiet} ${a.negative} ${i.inProgress}`,negativeSmallQuietLoading:`${n.small} ${l.xsmall} ${i.negativeQuiet} ${i.inProgress}`,pill:`${n.pill} ${l.medium} ${a.pill} ${u.pill}`,pillSmall:`${n.pillSmall} ${l.xsmall} ${a.pill} ${u.pill}`,pillLoading:`${n.pill} ${l.medium} ${a.pill} ${i.inProgress}`,pillSmallLoading:`${n.pillSmall} ${l.xsmall} ${a.pill} ${i.inProgress}`,link:`${n.link} ${l.medium} ${a.link}`,linkSmall:`${n.link} ${l.xsmall} ${a.link}`,linkAsButton:"inline-block hover:no-underline text-center",a11y:"sr-only",fullWidth:"w-full max-w-full",contentWidth:"max-w-max"};var Xe={transparentBg:'before:i-bg-$color-modal-backdrop-background before:content-[""] before:absolute before:top-0 before:bottom-0 before:left-0 before:right-0 before:opacity-25',backdrop:"fixed inset-0 flex sm:place-content-center sm:place-items-center items-end z-20 [--w-modal-max-height:80%] [--w-modal-width:640px]",modal:"pb-safe-[32] i-shadow-$shadow-modal max-h-[--w-modal-max-height] min-h-[--w-modal-min-height] w-[--w-modal-width] h-[--w-modal-height] relative transition-300 ease-in-out backface-hidden will-change-height rounded-8 mx-0 sm:mx-16 i-bg-$color-modal-background flex flex-col overflow-hidden outline-none space-y-16 pt-8 sm:pt-32 sm:pb-32 rounded-b-0 sm:rounded-b-8",content:"block overflow-y-auto overflow-x-hidden last-child:mb-0 grow shrink px-16 sm:px-32 relative",footer:"flex justify-end shrink-0 px-16 sm:px-32",transitionTitle:"transition-all duration-300",transitionTitleCenter:"justify-self-center",transitionTitleColSpan:"col-span-2",title:"-mt-4 sm:-mt-8 h-40 sm:h-48 grid gap-8 sm:gap-16 grid-cols-[auto_1fr_auto] items-center px-16 sm:px-32 border-b sm:border-b-0 shrink-0",titleText:"mb-0 h4 sm:h3",titleButton:`${l.medium} ${a.pill} ${u.pill} sm:min-h-[44px] sm:min-w-[44px] min-h-[32px] min-w-[32px]`,titleButtonLeft:"-ml-8 sm:-ml-12 justify-self-start",titleButtonRight:"-mr-8 sm:-mr-12 justify-self-end",titleButtonIcon:"h-16 w-16 sm:h-24 sm:w-24",titleButtonIconRotated:"transform rotate-90"};var we={label:"antialiased block relative text-s font-bold pb-4 cursor-pointer i-text-$color-label-text",labelInvalid:"i-text-$color-label-text-negative",optional:"pl-8 font-normal text-s i-text-$color-label-optional-text"};var W="absolute top-0 bottom-0 flex justify-center items-center focusable focus:[--w-outline-offset:-2px] bg-transparent ",Ze={wrapper:W+"right-0",wrapperWithLabel:"w-max pr-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"},Ye={wrapper:W+"left-0",wrapperWithLabel:"w-max pl-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"};var eo={toggle:"absolute inset-0 h-full w-full appearance-none cursor-pointer focusable focusable-inset",label:`px-12 ${we.label} py-8! cursor-pointer focusable focusable-inset`,buttonOrLink:"bg-transparent focusable",buttonOrLinkStretch:"inset-0 absolute"};var oo={base:"border-2 relative flex items-start",tooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background i-shadow-$shadow-tooltip i-text-$color-tooltip-text rounded-4 py-6 px-8",callout:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8",highlight:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8 drop-shadow-m",popover:"i-bg-$color-popover-background i-border-$color-popover-background i-text-$color-popover-paragraph-text rounded-8 p-16 drop-shadow-m",arrowBase:"absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",arrowDirectionLeft:"-left-[8px]",arrowDirectionRight:"-right-[8px]",arrowDirectionBottom:"-bottom-[8px]",arrowDirectionTop:"-top-[8px]",arrowTooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background",arrowCallout:"i-bg-$color-callout-background i-border-$color-callout-border",arrowPopover:"i-bg-$color-popover-background i-border-$color-popover-background",arrowHighlight:"i-bg-$color-callout-background i-border-$color-callout-border",content:"last-child:mb-0",notCallout:"absolute z-50",closeBtn:`${l.medium} ${a.pill} ${u.pill} justify-self-end -mr-8 ml-8`};import{ifDefined as Fe}from"lit/directives/if-defined.js";var ee=fe(X(),1);var v=o=>typeof o=="string",Oe=o=>typeof o=="function",Z=new Map;function N(o){return[...Array.isArray(o)?o:[o],"en"]}function oe(o,e,r){let t=N(o);return E(()=>O("date",t,r),()=>new Intl.DateTimeFormat(t,r)).format(v(e)?new Date(e):e)}function U(o,e,r){let t=N(o);return E(()=>O("number",t,r),()=>new Intl.NumberFormat(t,r)).format(e)}function Y(o,e,r,c){var d=c,{offset:t=0}=d,b=z(d,["offset"]);var $,m;let s=N(o),h=e?E(()=>O("plural-ordinal",s),()=>new Intl.PluralRules(s,{type:"ordinal"})):E(()=>O("plural-cardinal",s),()=>new Intl.PluralRules(s,{type:"cardinal"}));return(m=($=b[r])!=null?$:b[h.select(r-t)])!=null?m:b.other}function E(o,e){let r=o(),t=Z.get(r);return t||(t=e(),Z.set(r,t)),t}function O(o,e,r){let t=e.join("-");return`${o}-${t}-${JSON.stringify(r)}`}var re=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,Be=(o,e,r={})=>{e=e||o;let t=c=>v(c)?r[c]||{style:c}:c,b=(c,d)=>{let s=Object.keys(r).length?t("number"):{},h=U(e,c,s);return d.replace("#",h)};return{plural:(c,d)=>{let{offset:s=0}=d,h=Y(e,!1,c,d);return b(c-s,h)},selectordinal:(c,d)=>{let{offset:s=0}=d,h=Y(e,!0,c,d);return b(c-s,h)},select:(c,d)=>{var s;return(s=d[c])!=null?s:d.other},number:(c,d)=>U(e,c,t(d)),date:(c,d)=>oe(e,c,t(d)),undefined:c=>c}};function Qe(o,e,r){return(t,b={})=>{let c=Be(e,r,b),d=h=>Array.isArray(h)?h.reduce(($,m)=>{if(v(m))return $+m;let[de,be,C]=m,B={};C!=null&&!v(C)?Object.keys(C).forEach(A=>{B[A]=d(C[A])}):B=C;let j=c[be](t[de],B);return j==null?$:$+j},""):h,s=d(o);return v(s)&&re.test(s)?(0,ee.default)(s.trim()):v(s)?s.trim():s}}var Pe=Object.defineProperty,Ue=(o,e,r)=>e in o?Pe(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,Ie=(o,e,r)=>(Ue(o,typeof e!="symbol"?e+"":e,r),r),I=class{constructor(){Ie(this,"_events",{})}on(e,r){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(r),()=>this.removeListener(e,r)}removeListener(e,r){if(!this._hasEvent(e))return;let t=this._events[e].indexOf(r);~t&&this._events[e].splice(t,1)}emit(e,...r){this._hasEvent(e)&&this._events[e].map(t=>t.apply(this,r))}_hasEvent(e){return Array.isArray(this._events[e])}},qe=Object.defineProperty,Ne=(o,e,r)=>e in o?qe(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,D=(o,e,r)=>(Ne(o,typeof e!="symbol"?e+"":e,r),r),q=class extends I{constructor(e){super(),D(this,"_locale"),D(this,"_locales"),D(this,"_localeData"),D(this,"_messages"),D(this,"_missing"),D(this,"t",this._.bind(this)),this._messages={},this._localeData={},e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(e.locale!=null||e.locales!=null)&&this.activate(e.locale,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,r){this._localeData[e]==null?this._localeData[e]=r:Object.assign(this._localeData[e],r)}loadLocaleData(e,r){r!=null?this._loadLocaleData(e,r):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,r){this._messages[e]==null?this._messages[e]=r:Object.assign(this._messages[e],r)}load(e,r){r!=null?this._load(e,r):Object.keys(e).forEach(t=>this._load(t,e[t])),this.emit("change")}loadAndActivate({locale:e,locales:r,messages:t}){this._locale=e,this._locales=r||void 0,this._messages[this._locale]=t,this.emit("change")}activate(e,r){this._locale=e,this._locales=r,this.emit("change")}_(e,r={},{message:t,formats:b}={}){v(e)||(r=e.values||r,t=e.message,e=e.id);let c=!this.messages[e],d=this._missing;if(d&&c)return Oe(d)?d(this._locale,e):d;c&&this.emit("missing",{id:e,locale:this._locale});let s=this.messages[e]||t||e;return v(s)&&re.test(s)?JSON.parse(`"${s}"`):v(s)?s:Qe(s,this._locale,this._locales)(r,b)}date(e,r){return oe(this._locales||this._locale,e,r)}number(e,r){return U(this._locales||this._locale,e,r)}};function je(o={}){return new q(o)}var S=je();var te=JSON.parse('{"icon.title.chevron-down":"Downward arrow","icon.title.chevron-up":"Upward arrow"}');var ie=JSON.parse('{"icon.title.chevron-down":"Downward arrow","icon.title.chevron-up":"Upward arrow"}');var le=JSON.parse('{"icon.title.chevron-down":"Downward arrow","icon.title.chevron-up":"Upward arrow"}');var Ae=["en","nb","fi"],ae="en",ne=o=>Ae.find(e=>o===e||o.toLowerCase().includes(e))||ae;function Re(){if(typeof window=="undefined"){let o=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return ne(o)}try{let o=document.documentElement.lang;return ne(o)}catch(o){return console.warn("could not detect locale, falling back to source locale",o),ae}}var He=(o,e,r,t)=>o==="nb"?r:o==="fi"?t:e,ce=(o,e,r)=>{let t=Re(),b=He(t,o,e,r);S.load(t,b),S.activate(t)};var T=class extends V(se){constructor(){super(),ce(te,ie,le),this.expanded=!1,this.animated=!1,this.info=!1,this.box=!1,this.bleed=!1,this.noChevron=!1,this._hasTitle=!0,this._showChevronUp=this.expanded}updated(e){e.has("expanded")&&setTimeout(()=>{this._showChevronUp=this.expanded},200)}firstUpdated(){this._hasTitle=!!this.title||this.renderRoot.querySelector("slot[name='title']").assignedNodes().length>0}get _expandableSlot(){return x`<div
class=${k({[this.contentClass||""]:!0,[L.box]:this.box,[p.paddingTop]:this._hasTitle&&this.box})}
>
<slot></slot>
</div>`}render(){return b` <div
class=${s({[a.expandable]:!0,[a.expandableBox]:this.box,[a.expandableBleed]:this.bleed})}
</div>`}get _chevronUpClasses(){return k({[p.chevronTransform]:!0,[p.chevronCollapse]:!this.expanded&&this._showChevronUp})}get _chevronDownClasses(){return k({[p.chevronTransform]:!0,[p.chevronExpand]:this.expanded&&!this._showChevronUp})}chevronDownTitle(){return S._({id:"icon.title.chevron-down",message:"Downward arrow",comment:"Default screenreader message for chevron down icon in the expandable component"})}chevronUpTitle(){return S._({id:"icon.title.chevron-up",message:"Upward arrow",comment:"Default screenreader message for chevron up icon in the expandable component"})}render(){return x` <div
class=${k({[p.expandable]:!0,[p.expandableBox]:this.box,[p.expandableBleed]:this.bleed})}
>
${this._hasTitle?b`<w-unstyled-heading level=${this.headingLevel}>
${this._hasTitle?x`<w-unstyled-heading level=${this.headingLevel}>
<button
type="button"
aria-expanded="${this.expanded}"
class=${s({[this.buttonClass||""]:!0,[a.button]:!0,[a.buttonBox]:this.box})}
class=${k({[this.buttonClass||""]:!0,[p.button]:!0,[p.buttonBox]:this.box})}
@click=${()=>this.expanded=!this.expanded}
>
<div class="${a.title}">
${this.title?b`<span class="${a.titleType}"
<div class="${p.title}">
${this.title?x`<span class="${p.titleType}"
>${this.title}</span
>`:b`<slot name="title"></slot>`}
${this.noChevron?"":b`<div
class=${s({[a.chevron]:!0,[a.chevronTransform]:!0,[a.chevronExpand]:this.expanded,[a.chevronBox]:this.box,[a.chevronNonBox]:!this.box})}
>`:x`<slot name="title"></slot>`}
${this.noChevron?"":x`<div
class=${k({[p.chevron]:!0,[p.chevronBox]:this.box,[p.chevronNonBox]:!this.box})}
>
<w-icon-chevron-down-16></w-icon-chevron-down-16>
${this._showChevronUp?x`<svg
id="chevron-up"
class=${this._chevronUpClasses}
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="none"
viewBox="0 0 16 16"
>
<title>${this.chevronUpTitle()}</title>
<path
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="1.5"
d="M2.5 11 8 5.5l5.5 5.5"
></path>
</svg>`:x`<svg
id="chevron-down"
class=${this._chevronDownClasses}
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="none"
viewBox="0 0 16 16"
>
<title>${this.chevronDownTitle()}</title>
<path
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="1.5"
d="M2.5 5.5 8 11l5.5-5.5"
></path>
</svg>`}
</div>`}

@@ -27,11 +62,11 @@ </div>

</w-unstyled-heading>`:""}
${this.animated?b`<w-expand-transition ?show=${this.expanded}>
${this.animated?x`<w-expand-transition ?show=${this.expanded}>
${this._expandableSlot}
</w-expand-transition>`:b`<div
class=${s({[a.expansion]:!0,[a.expansionNotExpanded]:!this.expanded})}
aria-hidden=${Q(this.expanded?void 0:!0)}
</w-expand-transition>`:x`<div
class=${k({[p.expansion]:!0,[p.expansionNotExpanded]:!this.expanded})}
aria-hidden=${Fe(this.expanded?void 0:!0)}
>
${this._expandableSlot}
</div>`}
</div>`}};$(p,"properties",{expanded:{type:Boolean,reflect:!0},title:{type:String},info:{type:Boolean},box:{type:Boolean},bleed:{type:Boolean},buttonClass:{type:String},contentClass:{type:String},noChevron:{type:Boolean},animated:{type:Boolean},headingLevel:{type:Number},_hasTitle:{type:Boolean,state:!0}}),$(p,"styles",[m.styles,L`
</div>`}};P(T,"properties",{expanded:{type:Boolean,reflect:!0},title:{type:String},info:{type:Boolean},box:{type:Boolean},bleed:{type:Boolean},buttonClass:{type:String},contentClass:{type:String},noChevron:{type:Boolean},animated:{type:Boolean},headingLevel:{type:Number},_hasTitle:{type:Boolean,state:!0},_showChevronUp:{type:Boolean,state:!0}}),P(T,"styles",[se.styles,ze`
:host {

@@ -43,3 +78,3 @@ display: block;

}
`]);customElements.get("w-expandable")||customElements.define("w-expandable",p);export{p as WarpExpandable};
`]);customElements.get("w-expandable")||customElements.define("w-expandable",T);export{T as WarpExpandable};
//# sourceMappingURL=index.js.map

@@ -1,28 +0,29 @@

var Me=Object.create;var F=Object.defineProperty;var Ee=Object.getOwnPropertyDescriptor;var Oe=Object.getOwnPropertyNames,re=Object.getOwnPropertySymbols,Qe=Object.getPrototypeOf,te=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable;var Ie=(o,e,r)=>e in o?F(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r;var ie=(o,e)=>{var r={};for(var t in o)te.call(o,t)&&e.indexOf(t)<0&&(r[t]=o[t]);if(o!=null&&re)for(var t of re(o))e.indexOf(t)<0&&Pe.call(o,t)&&(r[t]=o[t]);return r};var le=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);var qe=(o,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let b of Oe(e))!te.call(o,b)&&b!==r&&F(o,b,{get:()=>e[b],enumerable:!(t=Ee(e,b))||t.enumerable});return o};var Be=(o,e,r)=>(r=o!=null?Me(Qe(o)):{},qe(e||!o||!o.__esModule?F(r,"default",{value:o,enumerable:!0}):r,o));var z=(o,e,r)=>(Ie(o,typeof e!="symbol"?e+"":e,r),r),je=(o,e,r)=>{if(!e.has(o))throw TypeError("Cannot "+r)};var $=(o,e,r)=>(je(o,e,"read from private field"),r?r.call(o):e.get(o)),k=(o,e,r)=>{if(e.has(o))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(o):e.set(o,r)};var ce=le(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.errorMessages=w.ErrorType=void 0;var D;(function(o){o.MalformedUnicode="MALFORMED_UNICODE",o.MalformedHexadecimal="MALFORMED_HEXADECIMAL",o.CodePointLimit="CODE_POINT_LIMIT",o.OctalDeprecation="OCTAL_DEPRECATION",o.EndOfString="END_OF_STRING"})(D=w.ErrorType||(w.ErrorType={}));w.errorMessages=new Map([[D.MalformedUnicode,"malformed Unicode character escape sequence"],[D.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[D.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[D.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[D.EndOfString,"malformed escape sequence at end of string"]])});var be=le(f=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});f.unraw=f.errorMessages=f.ErrorType=void 0;var p=ce();Object.defineProperty(f,"ErrorType",{enumerable:!0,get:function(){return p.ErrorType}});Object.defineProperty(f,"errorMessages",{enumerable:!0,get:function(){return p.errorMessages}});function He(o){return!o.match(/[^a-f0-9]/i)?parseInt(o,16):NaN}function Q(o,e,r){let t=He(o);if(Number.isNaN(t)||r!==void 0&&r!==o.length)throw new SyntaxError(p.errorMessages.get(e));return t}function Ue(o){let e=Q(o,p.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}function se(o,e){let r=Q(o,p.ErrorType.MalformedUnicode,4);if(e!==void 0){let t=Q(e,p.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,t)}return String.fromCharCode(r)}function Re(o){return o.charAt(0)==="{"&&o.charAt(o.length-1)==="}"}function Fe(o){if(!Re(o))throw new SyntaxError(p.errorMessages.get(p.ErrorType.MalformedUnicode));let e=o.slice(1,-1),r=Q(e,p.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(t){throw t instanceof RangeError?new SyntaxError(p.errorMessages.get(p.ErrorType.CodePointLimit)):t}}function ze(o,e=!1){if(e)throw new SyntaxError(p.errorMessages.get(p.ErrorType.OctalDeprecation));let r=parseInt(o,8);return String.fromCharCode(r)}var Ve=new Map([["b","\b"],["f","\f"],["n",`
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function We(o){return Ve.get(o)||o}var Ge=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function de(o,e=!1){return o.replace(Ge,function(r,t,b,c,d,s,g,h,m){if(t!==void 0)return"\\";if(b!==void 0)return Ue(b);if(c!==void 0)return Fe(c);if(d!==void 0)return se(d,s);if(g!==void 0)return se(g);if(h==="0")return"\0";if(h!==void 0)return ze(h,!e);if(m!==void 0)return We(m);throw new SyntaxError(p.errorMessages.get(p.ErrorType.EndOfString))})}f.unraw=de;f.default=de});import{html as q}from"lit";import we from"@warp-ds/elements-core";import{ifDefined as Z}from"lit/directives/if-defined.js";import{when as Y}from"lit/directives/when.js";var _=function(){for(var o=[],e=arguments.length;e--;)o[e]=arguments[e];return o.reduce(function(r,t){return r.concat(typeof t=="string"?t:Array.isArray(t)?_.apply(void 0,t):typeof t=="object"&&t?Object.keys(t).map(function(b){return t[b]?b:""}):"")},[]).join(" ")};var V={box:"group block relative break-words last-child:mb-0 p-16 rounded-8",bleed:"-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8",info:"i-bg-$color-box-info-background i-text-$color-box-info-text",neutral:"i-bg-$color-box-neutral-background i-text-$color-box-neutral-text",bordered:"border-2 i-border-$color-box-bordered-border i-bg-$color-box-bordered-background i-text-$color-box-bordered-text",infoClickable:"hover:i-bg-$color-box-info-background-hover active:i-bg-$color-box-info-background-hover",neutralClickable:"hover:i-bg-$color-box-neutral-background-hover active:i-bg-$color-box-neutral-background-hover",borderedClickable:"hover:i-bg-$color-box-bordered-background-hover active:i-bg-$color-box-bordered-background-hover hover:i-border-$color-box-bordered-border-hover active:i-border-$color-box-bordered-border-hover"};var Ne="focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block",bo={expandable:"will-change-height",expandableTitle:"font-bold i-text-$color-expandable-title-text",expandableBox:"i-bg-$color-expandable-background hover:i-bg-$color-expandable-background-hover py-0 px-0 "+V.box,expandableBleed:V.bleed,chevron:"inline-block align-middle i-text-$color-expandable-icon",chevronNonBox:"relative left-8",chevronBox:"absolute right-16",chevronTransform:"transform transition-transform transform-gpu ease-in-out",chevronExpand:"-rotate-180",chevronCollapse:"rotate-180",expansion:"overflow-hidden",expansionNotExpanded:"h-0 invisible",button:Ne+" hover:underline focus:underline",buttonBox:"w-full text-left relative inline-flex items-center "+V.box,paddingTop:"pt-0",title:"flex justify-between items-center",titleType:"h4"},v="font-bold focusable justify-center transition-colors ease-in-out",u={primary:"i-text-$color-button-primary-text hover:i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover active:i-bg-$color-button-primary-background-active",secondary:"i-text-$color-button-secondary-text hover:i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active",utility:"i-text-$color-button-utility-text hover:i-text-$color-button-utility-text i-bg-$color-button-utility-background i-border-$color-button-utility-border hover:i-bg-$color-button-utility-background hover:i-border-$color-button-utility-border-hover active:i-border-$color-button-utility-border-active",destructive:"i-bg-$color-button-negative-background i-text-$color-button-negative-text hover:i-text-$color-button-negative-text hover:i-bg-$color-button-negative-background-hover active:i-bg-$color-button-negative-background-active",pill:"i-text-$color-button-pill-icon hover:i-text-$color-button-pill-icon-hover active:i-text-$color-button-pill-icon-active i-bg-$color-button-pill-background hover:i-bg-$color-button-pill-background-hover active:i-bg-$color-button-pill-background-active",disabled:"i-text-$color-button-disabled-text i-bg-$color-button-disabled-background",quiet:"i-bg-$color-button-quiet-background i-text-$color-button-quiet-text hover:i-bg-$color-button-quiet-background-hover active:i-bg-$color-button-quiet-background-active",utilityQuiet:"i-text-$color-button-utility-quiet-text i-bg-$color-button-utility-quiet-background hover:i-bg-$color-button-utility-quiet-background-hover",negativeQuiet:"i-bg-$color-button-negative-quiet-background i-text-$color-button-negative-quiet-text hover:i-bg-$color-button-negative-quiet-background-hover active:i-bg-$color-button-negative-quiet-background-active",loading:"i-text-$color-button-loading-text i-bg-$color-button-loading-background",link:"i-text-$color-button-link-text"},n={primary:`border-0 rounded-8 ${v}`,secondary:`border-2 rounded-8 ${v}`,utility:`border rounded-4 ${v}`,negative:`border-0 rounded-8 ${v}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${v}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline ${u.link}`},a={xsmall:"py-6 px-16",small:"py-8 px-16",medium:"py-10 px-14",large:"py-12 px-16",utility:"py-[11px] px-[15px]",smallUtility:"py-[7px] px-[15px]",pill:"min-h-[44px] min-w-[44px]",pillSmall:"min-h-32 min-w-32",link:"p-0"},l={medium:"text-m leading-[24]",xsmall:"text-xs"},i={inProgress:`border-transparent animate-inprogress pointer-events-none ${u.loading}`,quiet:`border-0 rounded-8 ${v}`,utilityQuiet:`border-0 rounded-4 ${v}`,negativeQuiet:`border-0 rounded-8 ${v}`,isDisabled:`font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${u.disabled}`},uo={secondary:`${a.medium} ${l.medium} ${n.secondary} ${u.secondary}`,secondaryHref:`${a.medium} ${l.medium} ${n.secondary} ${u.secondary}`,secondaryDisabled:`${a.medium} ${l.medium} ${n.secondary} ${i.isDisabled}`,secondarySmall:`${l.xsmall} ${a.xsmall} ${n.secondary} ${u.secondary}`,secondarySmallDisabled:`${l.xsmall} ${a.xsmall} ${n.secondary} ${i.isDisabled}`,secondaryQuiet:`${a.medium} ${l.medium} ${i.quiet} ${u.quiet}`,secondaryQuietDisabled:`${a.medium} ${l.medium} ${i.quiet} ${i.isDisabled}`,secondarySmallQuiet:`${l.xsmall} ${a.xsmall} ${i.quiet} ${u.quiet}`,secondarySmallQuietDisabled:`${l.xsmall} ${a.xsmall} ${i.quiet} ${i.isDisabled}`,secondaryLoading:`${a.medium} ${l.medium} ${n.secondary} ${i.inProgress}`,secondarySmallLoading:`${l.xsmall} ${a.xsmall} ${n.secondary} ${i.inProgress}`,secondarySmallQuietLoading:`${l.xsmall} ${a.xsmall} ${i.quiet} ${i.inProgress}`,secondaryQuietLoading:`${a.medium} ${l.medium} ${i.quiet} ${i.inProgress}`,primary:`${a.large} ${l.medium} ${n.primary} ${u.primary}`,primaryDisabled:`${a.large} ${l.medium} ${i.isDisabled} ${n.primary}`,primarySmall:`${a.small} ${l.xsmall} ${n.primary} ${u.primary}`,primarySmallDisabled:`${a.small} ${l.xsmall} ${i.isDisabled} ${n.primary} `,primaryQuiet:`${a.large} ${l.medium} ${i.quiet} ${u.quiet}`,primaryQuietDisabled:`${a.large} ${l.medium} ${i.quiet} ${i.isDisabled}`,primarySmallQuiet:`${a.small} ${l.xsmall} ${i.quiet} ${u.quiet}`,primarySmallQuietDisabled:`${a.small} ${l.xsmall} ${i.quiet} ${i.isDisabled}`,primaryLoading:`${a.large} ${l.medium} ${i.inProgress} ${n.primary}`,primarySmallLoading:`${a.small} ${l.xsmall} ${i.inProgress} ${n.primary}`,primarySmallQuietLoading:`${a.small} ${l.xsmall} ${i.quiet} ${i.inProgress} ${n.primary}`,primaryQuietLoading:`${a.large} ${l.medium} ${i.quiet} ${i.inProgress}`,utility:`${a.utility} ${l.medium} ${n.utility} ${u.utility}`,utilityDisabled:`${a.utility} ${l.medium} ${n.utility} ${i.isDisabled}`,utilityQuiet:`${a.large} ${l.medium} ${i.utilityQuiet} ${u.utilityQuiet}`,utilityQuietDisabled:`${a.large} ${l.medium} ${i.utilityQuiet} ${i.isDisabled}`,utilitySmall:`${a.smallUtility} ${l.xsmall} ${n.utility} ${u.utility}`,utilitySmallDisabled:`${a.smallUtility} ${l.xsmall} ${n.utility} ${i.isDisabled}`,utilitySmallQuiet:`${a.smallUtility} ${l.xsmall} ${i.utilityQuiet} ${u.utilityQuiet}`,utilitySmallQuietDisabled:`${a.smallUtility} ${l.xsmall} ${i.utilityQuiet} ${i.isDisabled}`,utilityLoading:`${a.large} ${l.medium} ${n.utility} ${i.inProgress}`,utilitySmallLoading:`${a.smallUtility} ${l.xsmall} ${n.utility} ${i.inProgress}`,utilityQuietLoading:`${a.large} ${l.medium} ${i.inProgress} ${i.utilityQuiet}`,utilitySmallQuietLoading:`${a.smallUtility} ${l.xsmall} ${i.inProgress} ${i.utilityQuiet}`,negative:`${a.large} ${l.medium} ${n.negative} ${u.destructive}`,negativeDisabled:`${a.large} ${l.medium} ${n.negative} ${i.isDisabled}`,negativeQuiet:`${a.large} ${l.medium} ${i.negativeQuiet} ${u.negativeQuiet}`,negativeQuietDisabled:`${a.large} ${l.medium} ${i.negativeQuiet}${i.isDisabled}`,negativeSmall:`${a.small} ${l.xsmall} ${n.negative} ${u.destructive}`,negativeSmallDisabled:`${a.small} ${l.xsmall} ${n.negative} ${i.isDisabled}`,negativeSmallQuiet:`${a.small} ${l.xsmall} ${i.negativeQuiet} ${u.negativeQuiet}`,negativeSmallQuietDisabled:`${a.small} ${l.xsmall} ${i.negativeQuiet} ${i.isDisabled}`,negativeLoading:`${a.large} ${l.medium} ${n.negative} ${i.inProgress}`,negativeSmallLoading:`${a.small} ${l.xsmall} ${i.inProgress} ${n.negative}`,negativeQuietLoading:`${a.large} ${l.medium} ${i.negativeQuiet} ${n.negative} ${i.inProgress}`,negativeSmallQuietLoading:`${a.small} ${l.xsmall} ${i.negativeQuiet} ${i.inProgress}`,pill:`${a.pill} ${l.medium} ${n.pill} ${u.pill}`,pillSmall:`${a.pillSmall} ${l.xsmall} ${n.pill} ${u.pill}`,pillLoading:`${a.pill} ${l.medium} ${n.pill} ${i.inProgress}`,pillSmallLoading:`${a.pillSmall} ${l.xsmall} ${n.pill} ${i.inProgress}`,link:`${a.link} ${l.medium} ${n.link}`,linkSmall:`${a.link} ${l.xsmall} ${n.link}`,linkAsButton:"inline-block hover:no-underline text-center",a11y:"sr-only",fullWidth:"w-full max-w-full",contentWidth:"max-w-max"};var po={transparentBg:'before:i-bg-$color-modal-backdrop-background before:content-[""] before:absolute before:top-0 before:bottom-0 before:left-0 before:right-0 before:opacity-25',backdrop:"fixed inset-0 flex sm:place-content-center sm:place-items-center items-end z-20 [--w-modal-max-height:80%] [--w-modal-width:640px]",modal:"pb-safe-[32] i-shadow-$shadow-modal max-h-[--w-modal-max-height] min-h-[--w-modal-min-height] w-[--w-modal-width] h-[--w-modal-height] relative transition-300 ease-in-out backface-hidden will-change-height rounded-8 mx-0 sm:mx-16 i-bg-$color-modal-background flex flex-col overflow-hidden outline-none space-y-16 pt-8 sm:pt-32 sm:pb-32 rounded-b-0 sm:rounded-b-8",content:"block overflow-y-auto overflow-x-hidden last-child:mb-0 grow shrink px-16 sm:px-32 relative",footer:"flex justify-end shrink-0 px-16 sm:px-32",transitionTitle:"transition-all duration-300",transitionTitleCenter:"justify-self-center",transitionTitleColSpan:"col-span-2",title:"-mt-4 sm:-mt-8 h-40 sm:h-48 grid gap-8 sm:gap-16 grid-cols-[auto_1fr_auto] items-center px-16 sm:px-32 border-b sm:border-b-0 shrink-0",titleText:"mb-0 h4 sm:h3",titleButton:`${l.medium} ${n.pill} ${u.pill} sm:min-h-[44px] sm:min-w-[44px] min-h-[32px] min-w-[32px]`,titleButtonLeft:"-ml-8 sm:-ml-12 justify-self-start",titleButtonRight:"-mr-8 sm:-mr-12 justify-self-end",titleButtonIcon:"h-16 w-16 sm:h-24 sm:w-24",titleButtonIconRotated:"transform rotate-90"};var y={default:"block text-m mb-0 leading-m i-text-$color-select-text i-bg-$color-select-background i-border-$color-select-border hover:i-border-$color-select-border-hover active:i-border-$color-select-border-active rounded-4 py-12 px-8 block border-1 w-full focusable focus:[--w-outline-offset:-2px] appearance-none pr-32 cursor-pointer caret-current",disabled:"i-bg-$color-select-background-disabled i-border-$color-select-border-disabled hover:i-border-$color-select-border-disabled! active:i-border-$color-select-border-disabled! i-text-$color-select-text-disabled pointer-events-none",invalid:"i-border-$color-select-border-negative",readOnly:"pl-0 bg-transparent border-0 pointer-events-none before:hidden",wrapper:"relative",selectWrapper:"relative before:block before:absolute before:right-0 before:bottom-0 before:w-32 before:h-full before:pointer-events-none ",chevron:"absolute top-[30%] block right-0 bottom-0 w-32 h-full i-text-$color-select-icon pointer-events-none cursor-pointer",chevronDisabled:"opacity-25"},M={label:"antialiased block relative text-s font-bold pb-4 cursor-pointer i-text-$color-label-text",labelInvalid:"i-text-$color-label-text-negative",optional:"pl-8 font-normal text-s i-text-$color-label-optional-text"},W={helpText:"text-xs mt-4 block i-text-$color-helptext-text",helpTextValid:"i-text-$color-helptext-text-positive",helpTextInvalid:"i-text-$color-helptext-text-negative"},ae="absolute top-0 bottom-0 flex justify-center items-center focusable focus:[--w-outline-offset:-2px] bg-transparent ",go={wrapper:ae+"right-0",wrapperWithLabel:"w-max pr-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"},$o={wrapper:ae+"left-0",wrapperWithLabel:"w-max pl-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"};var ho={toggle:"absolute inset-0 h-full w-full appearance-none cursor-pointer focusable focusable-inset",label:`px-12 ${M.label} py-8! cursor-pointer focusable focusable-inset`,buttonOrLink:"bg-transparent focusable",buttonOrLinkStretch:"inset-0 absolute"};var mo={base:"border-2 relative flex items-start",tooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background i-shadow-$shadow-tooltip i-text-$color-tooltip-text rounded-4 py-6 px-8",callout:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8",highlight:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8 drop-shadow-m",popover:"i-bg-$color-popover-background i-border-$color-popover-background i-text-$color-popover-paragraph-text rounded-8 p-16 drop-shadow-m",arrowBase:"absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",arrowDirectionLeft:"-left-[8px]",arrowDirectionRight:"-right-[8px]",arrowDirectionBottom:"-bottom-[8px]",arrowDirectionTop:"-top-[8px]",arrowTooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background",arrowCallout:"i-bg-$color-callout-background i-border-$color-callout-border",arrowPopover:"i-bg-$color-popover-background i-border-$color-popover-background",arrowHighlight:"i-bg-$color-callout-background i-border-$color-callout-border",content:"last-child:mb-0",notCallout:"absolute z-50",closeBtn:`${l.medium} ${n.pill} ${u.pill} justify-self-end -mr-8 ml-8`};import{classMap as vo}from"lit/directives/class-map.js";var Ae=o=>o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function ne(o){return class extends o{static createProperty(e,r){let t=r;(typeof(r==null?void 0:r.attribute)=="undefined"||(r==null?void 0:r.attribute)===!0)&&(t=Object.assign({},r,{attribute:Ae(e.toString())})),super.createProperty(e,t)}}}import{unsafeHTML as no}from"lit/directives/unsafe-html.js";var ge=Be(be(),1);var x=o=>typeof o=="string",Je=o=>typeof o=="function",ue=new Map;function X(o){return[...Array.isArray(o)?o:[o],"en"]}function $e(o,e,r){let t=X(o);return P(()=>I("date",t,r),()=>new Intl.DateTimeFormat(t,r)).format(x(e)?new Date(e):e)}function G(o,e,r){let t=X(o);return P(()=>I("number",t,r),()=>new Intl.NumberFormat(t,r)).format(e)}function pe(o,e,r,c){var d=c,{offset:t=0}=d,b=ie(d,["offset"]);var h,m;let s=X(o),g=e?P(()=>I("plural-ordinal",s),()=>new Intl.PluralRules(s,{type:"ordinal"})):P(()=>I("plural-cardinal",s),()=>new Intl.PluralRules(s,{type:"cardinal"}));return(m=(h=b[r])!=null?h:b[g.select(r-t)])!=null?m:b.other}function P(o,e){let r=o(),t=ue.get(r);return t||(t=e(),ue.set(r,t)),t}function I(o,e,r){let t=e.join("-");return`${o}-${t}-${JSON.stringify(r)}`}var he=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,Ke=(o,e,r={})=>{e=e||o;let t=c=>x(c)?r[c]||{style:c}:c,b=(c,d)=>{let s=Object.keys(r).length?t("number"):{},g=G(e,c,s);return d.replace("#",g)};return{plural:(c,d)=>{let{offset:s=0}=d,g=pe(e,!1,c,d);return b(c-s,g)},selectordinal:(c,d)=>{let{offset:s=0}=d,g=pe(e,!0,c,d);return b(c-s,g)},select:(c,d)=>{var s;return(s=d[c])!=null?s:d.other},number:(c,d)=>G(e,c,t(d)),date:(c,d)=>$e(e,c,t(d)),undefined:c=>c}};function Xe(o,e,r){return(t,b={})=>{let c=Ke(e,r,b),d=g=>Array.isArray(g)?g.reduce((h,m)=>{if(x(m))return h+m;let[Ce,Te,T]=m,R={};T!=null&&!x(T)?Object.keys(T).forEach(oe=>{R[oe]=d(T[oe])}):R=T;let ee=c[Te](t[Ce],R);return ee==null?h:h+ee},""):g,s=d(o);return x(s)&&he.test(s)?(0,ge.default)(s.trim()):x(s)?s.trim():s}}var Ze=Object.defineProperty,Ye=(o,e,r)=>e in o?Ze(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,eo=(o,e,r)=>(Ye(o,typeof e!="symbol"?e+"":e,r),r),J=class{constructor(){eo(this,"_events",{})}on(e,r){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(r),()=>this.removeListener(e,r)}removeListener(e,r){if(!this._hasEvent(e))return;let t=this._events[e].indexOf(r);~t&&this._events[e].splice(t,1)}emit(e,...r){this._hasEvent(e)&&this._events[e].map(t=>t.apply(this,r))}_hasEvent(e){return Array.isArray(this._events[e])}},oo=Object.defineProperty,ro=(o,e,r)=>e in o?oo(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,S=(o,e,r)=>(ro(o,typeof e!="symbol"?e+"":e,r),r),K=class extends J{constructor(e){super(),S(this,"_locale"),S(this,"_locales"),S(this,"_localeData"),S(this,"_messages"),S(this,"_missing"),S(this,"t",this._.bind(this)),this._messages={},this._localeData={},e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(e.locale!=null||e.locales!=null)&&this.activate(e.locale,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,r){this._localeData[e]==null?this._localeData[e]=r:Object.assign(this._localeData[e],r)}loadLocaleData(e,r){r!=null?this._loadLocaleData(e,r):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,r){this._messages[e]==null?this._messages[e]=r:Object.assign(this._messages[e],r)}load(e,r){r!=null?this._load(e,r):Object.keys(e).forEach(t=>this._load(t,e[t])),this.emit("change")}loadAndActivate({locale:e,locales:r,messages:t}){this._locale=e,this._locales=r||void 0,this._messages[this._locale]=t,this.emit("change")}activate(e,r){this._locale=e,this._locales=r,this.emit("change")}_(e,r={},{message:t,formats:b}={}){x(e)||(r=e.values||r,t=e.message,e=e.id);let c=!this.messages[e],d=this._missing;if(d&&c)return Je(d)?d(this._locale,e):d;c&&this.emit("missing",{id:e,locale:this._locale});let s=this.messages[e]||t||e;return x(s)&&he.test(s)?JSON.parse(`"${s}"`):x(s)?s:Xe(s,this._locale,this._locales)(r,b)}date(e,r){return $e(this._locales||this._locale,e,r)}number(e,r){return G(this._locales||this._locale,e,r)}};function to(o={}){return new K(o)}var E=to();var me=JSON.parse('{"select.label.optional":"(optional)"}');var fe=JSON.parse('{"select.label.optional":"(valgfritt)"}');var xe=JSON.parse('{"select.label.optional":"(valinnainen)"}');var io=["en","nb","fi"],ke="en",ve=o=>io.find(e=>o===e||o.toLowerCase().includes(e))||ke;function lo(){if(typeof window=="undefined"){let o=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return ve(o)}try{let o=document.documentElement.lang;return ve(o)}catch(o){return console.warn("could not detect locale, falling back to source locale",o),ke}}var ao=(o,e,r,t)=>o==="nb"?r:o==="fi"?t:e,ye=(o,e,r)=>{let t=lo(),b=ao(t,o,e,r);E.load(t,b),E.activate(t)};var N,_e,A,De,H,Se,U,Le,L,B,C,j,O=class extends ne(we){constructor(){super();k(this,N);k(this,A);k(this,H);k(this,U);k(this,L);k(this,C);ye(me,fe,xe),this._options=this.innerHTML}render(){return q`<div class="${y.wrapper}">
${Y(this.label,()=>q`<label class="${$(this,A,De)}" for="${$(this,L,B)}">
var er=Object.create;var Y=Object.defineProperty;var rr=Object.getOwnPropertyDescriptor;var or=Object.getOwnPropertyNames,me=Object.getOwnPropertySymbols,tr=Object.getPrototypeOf,$e=Object.prototype.hasOwnProperty,ir=Object.prototype.propertyIsEnumerable;var lr=(r,e,o)=>e in r?Y(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o;var xe=(r,e)=>{var o={};for(var t in r)$e.call(r,t)&&e.indexOf(t)<0&&(o[t]=r[t]);if(r!=null&&me)for(var t of me(r))e.indexOf(t)<0&&ir.call(r,t)&&(o[t]=r[t]);return o};var ve=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var ar=(r,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let d of or(e))!$e.call(r,d)&&d!==o&&Y(r,d,{get:()=>e[d],enumerable:!(t=rr(e,d))||t.enumerable});return r};var nr=(r,e,o)=>(o=r!=null?er(tr(r)):{},ar(e||!r||!r.__esModule?Y(o,"default",{value:r,enumerable:!0}):o,r));var ee=(r,e,o)=>(lr(r,typeof e!="symbol"?e+"":e,o),o),sr=(r,e,o)=>{if(!e.has(r))throw TypeError("Cannot "+o)};var y=(r,e,o)=>(sr(r,e,"read from private field"),o?o.call(r):e.get(r)),S=(r,e,o)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,o)};var we=ve(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.errorMessages=E.ErrorType=void 0;var C;(function(r){r.MalformedUnicode="MALFORMED_UNICODE",r.MalformedHexadecimal="MALFORMED_HEXADECIMAL",r.CodePointLimit="CODE_POINT_LIMIT",r.OctalDeprecation="OCTAL_DEPRECATION",r.EndOfString="END_OF_STRING"})(C=E.ErrorType||(E.ErrorType={}));E.errorMessages=new Map([[C.MalformedUnicode,"malformed Unicode character escape sequence"],[C.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[C.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[C.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[C.EndOfString,"malformed escape sequence at end of string"]])});var Se=ve(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.unraw=k.errorMessages=k.ErrorType=void 0;var v=we();Object.defineProperty(k,"ErrorType",{enumerable:!0,get:function(){return v.ErrorType}});Object.defineProperty(k,"errorMessages",{enumerable:!0,get:function(){return v.errorMessages}});function br(r){return!r.match(/[^a-f0-9]/i)?parseInt(r,16):NaN}function B(r,e,o){let t=br(r);if(Number.isNaN(t)||o!==void 0&&o!==r.length)throw new SyntaxError(v.errorMessages.get(e));return t}function ur(r){let e=B(r,v.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}function _e(r,e){let o=B(r,v.ErrorType.MalformedUnicode,4);if(e!==void 0){let t=B(e,v.ErrorType.MalformedUnicode,4);return String.fromCharCode(o,t)}return String.fromCharCode(o)}function pr(r){return r.charAt(0)==="{"&&r.charAt(r.length-1)==="}"}function gr(r){if(!pr(r))throw new SyntaxError(v.errorMessages.get(v.ErrorType.MalformedUnicode));let e=r.slice(1,-1),o=B(e,v.ErrorType.MalformedUnicode);try{return String.fromCodePoint(o)}catch(t){throw t instanceof RangeError?new SyntaxError(v.errorMessages.get(v.ErrorType.CodePointLimit)):t}}function hr(r,e=!1){if(e)throw new SyntaxError(v.errorMessages.get(v.ErrorType.OctalDeprecation));let o=parseInt(r,8);return String.fromCharCode(o)}var fr=new Map([["b","\b"],["f","\f"],["n",`
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function mr(r){return fr.get(r)||r}var $r=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function De(r,e=!1){return r.replace($r,function(o,t,d,i,l,c,p,h,m){if(t!==void 0)return"\\";if(d!==void 0)return ur(d);if(i!==void 0)return gr(i);if(l!==void 0)return _e(l,c);if(p!==void 0)return _e(p);if(h==="0")return"\0";if(h!==void 0)return hr(h,!e);if(m!==void 0)return mr(m);throw new SyntaxError(v.errorMessages.get(v.ErrorType.EndOfString))})}k.unraw=De;k.default=De});import{html as z}from"lit";import We from"@warp-ds/elements-core";import{ifDefined as de}from"lit/directives/if-defined.js";import{when as be}from"lit/directives/when.js";var M=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return r.reduce(function(o,t){return o.concat(typeof t=="string"?t:Array.isArray(t)?M.apply(void 0,t):typeof t=="object"&&t?Object.keys(t).map(function(d){return t[d]?d:""}):"")},[]).join(" ")};var re={box:"group block relative break-words last-child:mb-0 p-16 rounded-8",bleed:"-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8",info:"i-bg-$color-box-info-background i-text-$color-box-info-text",neutral:"i-bg-$color-box-neutral-background i-text-$color-box-neutral-text",bordered:"border-2 i-border-$color-box-bordered-border i-bg-$color-box-bordered-background i-text-$color-box-bordered-text",infoClickable:"hover:i-bg-$color-box-info-background-hover active:i-bg-$color-box-info-background-hover",neutralClickable:"hover:i-bg-$color-box-neutral-background-hover active:i-bg-$color-box-neutral-background-hover",borderedClickable:"hover:i-bg-$color-box-bordered-background-hover active:i-bg-$color-box-bordered-background-hover hover:i-border-$color-box-bordered-border-hover active:i-border-$color-box-bordered-border-hover"};var cr="focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block",go={expandable:"will-change-height",expandableTitle:"font-bold i-text-$color-expandable-title-text",expandableBox:"i-bg-$color-expandable-background hover:i-bg-$color-expandable-background-hover py-0 px-0 "+re.box,expandableBleed:re.bleed,chevron:"inline-block align-middle i-text-$color-expandable-icon",chevronNonBox:"relative left-8",chevronBox:"absolute right-16",chevronTransform:"transform transition-transform transform-gpu ease-in-out",chevronExpand:"-rotate-180",chevronCollapse:"rotate-180",expansion:"overflow-hidden",expansionNotExpanded:"h-0 invisible",button:cr+" hover:underline focus:underline",buttonBox:"w-full text-left relative inline-flex items-center "+re.box,paddingTop:"pt-0",title:"flex justify-between items-center",titleType:"h4"},D="font-bold focusable justify-center transition-colors ease-in-out",g={primary:"i-text-$color-button-primary-text hover:i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover active:i-bg-$color-button-primary-background-active",secondary:"i-text-$color-button-secondary-text hover:i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active",utility:"i-text-$color-button-utility-text hover:i-text-$color-button-utility-text i-bg-$color-button-utility-background i-border-$color-button-utility-border hover:i-bg-$color-button-utility-background hover:i-border-$color-button-utility-border-hover active:i-border-$color-button-utility-border-active",destructive:"i-bg-$color-button-negative-background i-text-$color-button-negative-text hover:i-text-$color-button-negative-text hover:i-bg-$color-button-negative-background-hover active:i-bg-$color-button-negative-background-active",pill:"i-text-$color-button-pill-icon hover:i-text-$color-button-pill-icon-hover active:i-text-$color-button-pill-icon-active i-bg-$color-button-pill-background hover:i-bg-$color-button-pill-background-hover active:i-bg-$color-button-pill-background-active",disabled:"i-text-$color-button-disabled-text i-bg-$color-button-disabled-background",quiet:"i-bg-$color-button-quiet-background i-text-$color-button-quiet-text hover:i-bg-$color-button-quiet-background-hover active:i-bg-$color-button-quiet-background-active",utilityQuiet:"i-text-$color-button-utility-quiet-text i-bg-$color-button-utility-quiet-background hover:i-bg-$color-button-utility-quiet-background-hover",negativeQuiet:"i-bg-$color-button-negative-quiet-background i-text-$color-button-negative-quiet-text hover:i-bg-$color-button-negative-quiet-background-hover active:i-bg-$color-button-negative-quiet-background-active",loading:"i-text-$color-button-loading-text i-bg-$color-button-loading-background",link:"i-text-$color-button-link-text"},u={primary:`border-0 rounded-8 ${D}`,secondary:`border-2 rounded-8 ${D}`,utility:`border rounded-4 ${D}`,negative:`border-0 rounded-8 ${D}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${D}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline ${g.link}`},s={xsmall:"py-6 px-16",small:"py-8 px-16",medium:"py-10 px-14",large:"py-12 px-16",utility:"py-[11px] px-[15px]",smallUtility:"py-[7px] px-[15px]",pill:"min-h-[44px] min-w-[44px]",pillSmall:"min-h-32 min-w-32",link:"p-0"},n={medium:"text-m leading-[24]",xsmall:"text-xs"},a={inProgress:`border-transparent animate-inprogress pointer-events-none ${g.loading}`,quiet:`border-0 rounded-8 ${D}`,utilityQuiet:`border-0 rounded-4 ${D}`,negativeQuiet:`border-0 rounded-8 ${D}`,isDisabled:`font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${g.disabled}`},ho={secondary:`${s.medium} ${n.medium} ${u.secondary} ${g.secondary}`,secondaryHref:`${s.medium} ${n.medium} ${u.secondary} ${g.secondary}`,secondaryDisabled:`${s.medium} ${n.medium} ${u.secondary} ${a.isDisabled}`,secondarySmall:`${n.xsmall} ${s.xsmall} ${u.secondary} ${g.secondary}`,secondarySmallDisabled:`${n.xsmall} ${s.xsmall} ${u.secondary} ${a.isDisabled}`,secondaryQuiet:`${s.medium} ${n.medium} ${a.quiet} ${g.quiet}`,secondaryQuietDisabled:`${s.medium} ${n.medium} ${a.quiet} ${a.isDisabled}`,secondarySmallQuiet:`${n.xsmall} ${s.xsmall} ${a.quiet} ${g.quiet}`,secondarySmallQuietDisabled:`${n.xsmall} ${s.xsmall} ${a.quiet} ${a.isDisabled}`,secondaryLoading:`${s.medium} ${n.medium} ${u.secondary} ${a.inProgress}`,secondarySmallLoading:`${n.xsmall} ${s.xsmall} ${u.secondary} ${a.inProgress}`,secondarySmallQuietLoading:`${n.xsmall} ${s.xsmall} ${a.quiet} ${a.inProgress}`,secondaryQuietLoading:`${s.medium} ${n.medium} ${a.quiet} ${a.inProgress}`,primary:`${s.large} ${n.medium} ${u.primary} ${g.primary}`,primaryDisabled:`${s.large} ${n.medium} ${a.isDisabled} ${u.primary}`,primarySmall:`${s.small} ${n.xsmall} ${u.primary} ${g.primary}`,primarySmallDisabled:`${s.small} ${n.xsmall} ${a.isDisabled} ${u.primary} `,primaryQuiet:`${s.large} ${n.medium} ${a.quiet} ${g.quiet}`,primaryQuietDisabled:`${s.large} ${n.medium} ${a.quiet} ${a.isDisabled}`,primarySmallQuiet:`${s.small} ${n.xsmall} ${a.quiet} ${g.quiet}`,primarySmallQuietDisabled:`${s.small} ${n.xsmall} ${a.quiet} ${a.isDisabled}`,primaryLoading:`${s.large} ${n.medium} ${a.inProgress} ${u.primary}`,primarySmallLoading:`${s.small} ${n.xsmall} ${a.inProgress} ${u.primary}`,primarySmallQuietLoading:`${s.small} ${n.xsmall} ${a.quiet} ${a.inProgress} ${u.primary}`,primaryQuietLoading:`${s.large} ${n.medium} ${a.quiet} ${a.inProgress}`,utility:`${s.utility} ${n.medium} ${u.utility} ${g.utility}`,utilityDisabled:`${s.utility} ${n.medium} ${u.utility} ${a.isDisabled}`,utilityQuiet:`${s.large} ${n.medium} ${a.utilityQuiet} ${g.utilityQuiet}`,utilityQuietDisabled:`${s.large} ${n.medium} ${a.utilityQuiet} ${a.isDisabled}`,utilitySmall:`${s.smallUtility} ${n.xsmall} ${u.utility} ${g.utility}`,utilitySmallDisabled:`${s.smallUtility} ${n.xsmall} ${u.utility} ${a.isDisabled}`,utilitySmallQuiet:`${s.smallUtility} ${n.xsmall} ${a.utilityQuiet} ${g.utilityQuiet}`,utilitySmallQuietDisabled:`${s.smallUtility} ${n.xsmall} ${a.utilityQuiet} ${a.isDisabled}`,utilityLoading:`${s.large} ${n.medium} ${u.utility} ${a.inProgress}`,utilitySmallLoading:`${s.smallUtility} ${n.xsmall} ${u.utility} ${a.inProgress}`,utilityQuietLoading:`${s.large} ${n.medium} ${a.inProgress} ${a.utilityQuiet}`,utilitySmallQuietLoading:`${s.smallUtility} ${n.xsmall} ${a.inProgress} ${a.utilityQuiet}`,negative:`${s.large} ${n.medium} ${u.negative} ${g.destructive}`,negativeDisabled:`${s.large} ${n.medium} ${u.negative} ${a.isDisabled}`,negativeQuiet:`${s.large} ${n.medium} ${a.negativeQuiet} ${g.negativeQuiet}`,negativeQuietDisabled:`${s.large} ${n.medium} ${a.negativeQuiet}${a.isDisabled}`,negativeSmall:`${s.small} ${n.xsmall} ${u.negative} ${g.destructive}`,negativeSmallDisabled:`${s.small} ${n.xsmall} ${u.negative} ${a.isDisabled}`,negativeSmallQuiet:`${s.small} ${n.xsmall} ${a.negativeQuiet} ${g.negativeQuiet}`,negativeSmallQuietDisabled:`${s.small} ${n.xsmall} ${a.negativeQuiet} ${a.isDisabled}`,negativeLoading:`${s.large} ${n.medium} ${u.negative} ${a.inProgress}`,negativeSmallLoading:`${s.small} ${n.xsmall} ${a.inProgress} ${u.negative}`,negativeQuietLoading:`${s.large} ${n.medium} ${a.negativeQuiet} ${u.negative} ${a.inProgress}`,negativeSmallQuietLoading:`${s.small} ${n.xsmall} ${a.negativeQuiet} ${a.inProgress}`,pill:`${s.pill} ${n.medium} ${u.pill} ${g.pill}`,pillSmall:`${s.pillSmall} ${n.xsmall} ${u.pill} ${g.pill}`,pillLoading:`${s.pill} ${n.medium} ${u.pill} ${a.inProgress}`,pillSmallLoading:`${s.pillSmall} ${n.xsmall} ${u.pill} ${a.inProgress}`,link:`${s.link} ${n.medium} ${u.link}`,linkSmall:`${s.link} ${n.xsmall} ${u.link}`,linkAsButton:"inline-block hover:no-underline text-center",a11y:"sr-only",fullWidth:"w-full max-w-full",contentWidth:"max-w-max"};var fo={transparentBg:'before:i-bg-$color-modal-backdrop-background before:content-[""] before:absolute before:top-0 before:bottom-0 before:left-0 before:right-0 before:opacity-25',backdrop:"fixed inset-0 flex sm:place-content-center sm:place-items-center items-end z-20 [--w-modal-max-height:80%] [--w-modal-width:640px]",modal:"pb-safe-[32] i-shadow-$shadow-modal max-h-[--w-modal-max-height] min-h-[--w-modal-min-height] w-[--w-modal-width] h-[--w-modal-height] relative transition-300 ease-in-out backface-hidden will-change-height rounded-8 mx-0 sm:mx-16 i-bg-$color-modal-background flex flex-col overflow-hidden outline-none space-y-16 pt-8 sm:pt-32 sm:pb-32 rounded-b-0 sm:rounded-b-8",content:"block overflow-y-auto overflow-x-hidden last-child:mb-0 grow shrink px-16 sm:px-32 relative",footer:"flex justify-end shrink-0 px-16 sm:px-32",transitionTitle:"transition-all duration-300",transitionTitleCenter:"justify-self-center",transitionTitleColSpan:"col-span-2",title:"-mt-4 sm:-mt-8 h-40 sm:h-48 grid gap-8 sm:gap-16 grid-cols-[auto_1fr_auto] items-center px-16 sm:px-32 border-b sm:border-b-0 shrink-0",titleText:"mb-0 h4 sm:h3",titleButton:`${n.medium} ${u.pill} ${g.pill} sm:min-h-[44px] sm:min-w-[44px] min-h-[32px] min-w-[32px]`,titleButtonLeft:"-ml-8 sm:-ml-12 justify-self-start",titleButtonRight:"-mr-8 sm:-mr-12 justify-self-end",titleButtonIcon:"h-16 w-16 sm:h-24 sm:w-24",titleButtonIconRotated:"transform rotate-90"};var O={default:"block text-m mb-0 leading-m i-text-$color-select-text i-bg-$color-select-background i-border-$color-select-border hover:i-border-$color-select-border-hover active:i-border-$color-select-border-active rounded-4 py-12 px-8 block border-1 w-full focusable focus:[--w-outline-offset:-2px] appearance-none pr-32 cursor-pointer caret-current",disabled:"i-bg-$color-select-background-disabled i-border-$color-select-border-disabled hover:i-border-$color-select-border-disabled! active:i-border-$color-select-border-disabled! i-text-$color-select-text-disabled pointer-events-none",invalid:"i-border-$color-select-border-negative",readOnly:"pl-0 bg-transparent border-0 pointer-events-none before:hidden",wrapper:"relative",selectWrapper:"relative before:block before:absolute before:right-0 before:bottom-0 before:w-32 before:h-full before:pointer-events-none ",chevron:"absolute top-[30%] block right-0 bottom-0 w-32 h-full i-text-$color-select-icon pointer-events-none cursor-pointer",chevronDisabled:"opacity-25"},A={label:"antialiased block relative text-s font-bold pb-4 cursor-pointer i-text-$color-label-text",labelInvalid:"i-text-$color-label-text-negative",optional:"pl-8 font-normal text-s i-text-$color-label-optional-text"},oe={helpText:"text-xs mt-4 block i-text-$color-helptext-text",helpTextValid:"i-text-$color-helptext-text-positive",helpTextInvalid:"i-text-$color-helptext-text-negative"},ye="absolute top-0 bottom-0 flex justify-center items-center focusable focus:[--w-outline-offset:-2px] bg-transparent ",mo={wrapper:ye+"right-0",wrapperWithLabel:"w-max pr-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"},$o={wrapper:ye+"left-0",wrapperWithLabel:"w-max pl-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"};var xo={toggle:"absolute inset-0 h-full w-full appearance-none cursor-pointer focusable focusable-inset",label:`px-12 ${A.label} py-8! cursor-pointer focusable focusable-inset`,buttonOrLink:"bg-transparent focusable",buttonOrLinkStretch:"inset-0 absolute"};var vo={base:"border-2 relative flex items-start",tooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background i-shadow-$shadow-tooltip i-text-$color-tooltip-text rounded-4 py-6 px-8",callout:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8",highlight:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8 drop-shadow-m",popover:"i-bg-$color-popover-background i-border-$color-popover-background i-text-$color-popover-paragraph-text rounded-8 p-16 drop-shadow-m",arrowBase:"absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",arrowDirectionLeft:"-left-[8px]",arrowDirectionRight:"-right-[8px]",arrowDirectionBottom:"-bottom-[8px]",arrowDirectionTop:"-top-[8px]",arrowTooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background",arrowCallout:"i-bg-$color-callout-background i-border-$color-callout-border",arrowPopover:"i-bg-$color-popover-background i-border-$color-popover-background",arrowHighlight:"i-bg-$color-callout-background i-border-$color-callout-border",content:"last-child:mb-0",notCallout:"absolute z-50",closeBtn:`${n.medium} ${u.pill} ${g.pill} justify-self-end -mr-8 ml-8`};import{classMap as wo}from"lit/directives/class-map.js";var dr=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function ke(r){return class extends r{static createProperty(e,o){let t=o;(typeof(o==null?void 0:o.attribute)=="undefined"||(o==null?void 0:o.attribute)===!0)&&(t=Object.assign({},o,{attribute:dr(e.toString())})),super.createProperty(e,t)}}}import{unsafeHTML as bo}from"lit/directives/unsafe-html.js";var Le=nr(Se(),1);var w=r=>typeof r=="string",xr=r=>typeof r=="function",Oe=new Map;function ae(r){return[...Array.isArray(r)?r:[r],"en"]}function Me(r,e,o){let t=ae(r);return U(()=>F("date",t,o),()=>new Intl.DateTimeFormat(t,o)).format(w(e)?new Date(e):e)}function te(r,e,o){let t=ae(r);return U(()=>F("number",t,o),()=>new Intl.NumberFormat(t,o)).format(e)}function Ee(r,e,o,i){var l=i,{offset:t=0}=l,d=xe(l,["offset"]);var h,m;let c=ae(r),p=e?U(()=>F("plural-ordinal",c),()=>new Intl.PluralRules(c,{type:"ordinal"})):U(()=>F("plural-cardinal",c),()=>new Intl.PluralRules(c,{type:"cardinal"}));return(m=(h=d[o])!=null?h:d[p.select(o-t)])!=null?m:d.other}function U(r,e){let o=r(),t=Oe.get(o);return t||(t=e(),Oe.set(o,t)),t}function F(r,e,o){let t=e.join("-");return`${r}-${t}-${JSON.stringify(o)}`}var Ce=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,vr=(r,e,o={})=>{e=e||r;let t=i=>w(i)?o[i]||{style:i}:i,d=(i,l)=>{let c=Object.keys(o).length?t("number"):{},p=te(e,i,c);return l.replace("#",p)};return{plural:(i,l)=>{let{offset:c=0}=l,p=Ee(e,!1,i,l);return d(i-c,p)},selectordinal:(i,l)=>{let{offset:c=0}=l,p=Ee(e,!0,i,l);return d(i-c,p)},select:(i,l)=>{var c;return(c=l[i])!=null?c:l.other},number:(i,l)=>te(e,i,t(l)),date:(i,l)=>Me(e,i,t(l)),undefined:i=>i}};function yr(r,e,o){return(t,d={})=>{let i=vr(e,o,d),l=p=>Array.isArray(p)?p.reduce((h,m)=>{if(w(m))return h+m;let[N,L,b]=m,f={};b!=null&&!w(b)?Object.keys(b).forEach(x=>{f[x]=l(b[x])}):f=b;let $=i[L](t[N],f);return $==null?h:h+$},""):p,c=l(r);return w(c)&&Ce.test(c)?(0,Le.default)(c.trim()):w(c)?c.trim():c}}var kr=Object.defineProperty,wr=(r,e,o)=>e in r?kr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,_r=(r,e,o)=>(wr(r,typeof e!="symbol"?e+"":e,o),o),ie=class{constructor(){_r(this,"_events",{})}on(e,o){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(o),()=>this.removeListener(e,o)}removeListener(e,o){if(!this._hasEvent(e))return;let t=this._events[e].indexOf(o);~t&&this._events[e].splice(t,1)}emit(e,...o){this._hasEvent(e)&&this._events[e].map(t=>t.apply(this,o))}_hasEvent(e){return Array.isArray(this._events[e])}},Dr=Object.defineProperty,Sr=(r,e,o)=>e in r?Dr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,T=(r,e,o)=>(Sr(r,typeof e!="symbol"?e+"":e,o),o),le=class extends ie{constructor(e){super(),T(this,"_locale"),T(this,"_locales"),T(this,"_localeData"),T(this,"_messages"),T(this,"_missing"),T(this,"t",this._.bind(this)),this._messages={},this._localeData={},e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(e.locale!=null||e.locales!=null)&&this.activate(e.locale,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,o){this._localeData[e]==null?this._localeData[e]=o:Object.assign(this._localeData[e],o)}loadLocaleData(e,o){o!=null?this._loadLocaleData(e,o):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,o){this._messages[e]==null?this._messages[e]=o:Object.assign(this._messages[e],o)}load(e,o){o!=null?this._load(e,o):Object.keys(e).forEach(t=>this._load(t,e[t])),this.emit("change")}loadAndActivate({locale:e,locales:o,messages:t}){this._locale=e,this._locales=o||void 0,this._messages[this._locale]=t,this.emit("change")}activate(e,o){this._locale=e,this._locales=o,this.emit("change")}_(e,o={},{message:t,formats:d}={}){w(e)||(o=e.values||o,t=e.message,e=e.id);let i=!this.messages[e],l=this._missing;if(l&&i)return xr(l)?l(this._locale,e):l;i&&this.emit("missing",{id:e,locale:this._locale});let c=this.messages[e]||t||e;return w(c)&&Ce.test(c)?JSON.parse(`"${c}"`):w(c)?c:yr(c,this._locale,this._locales)(o,d)}date(e,o){return Me(this._locales||this._locale,e,o)}number(e,o){return te(this._locales||this._locale,e,o)}};function Or(r={}){return new le(r)}var Q=Or();var Te=JSON.parse('{"select.label.optional":"(optional)"}');var Pe=JSON.parse('{"select.label.optional":"(valgfritt)"}');var Ie=JSON.parse('{"select.label.optional":"(valinnainen)"}');var Er=["en","nb","fi"],Ne="en",je=r=>Er.find(e=>r===e||r.toLowerCase().includes(e))||Ne;function Lr(){if(typeof window=="undefined"){let r=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return je(r)}try{let r=document.documentElement.lang;return je(r)}catch(r){return console.warn("could not detect locale, falling back to source locale",r),Ne}}var Mr=(r,e,o,t)=>r==="nb"?o:r==="fi"?t:e,Ae=(r,e,o)=>{let t=Lr(),d=Mr(t,r,e,o);Q.load(t,d),Q.activate(t)};import{LitElement as Ur}from"lit";import{unsafeStatic as Fr,html as Rr}from"lit/static-html.js";var Cr=Object.create,Fe=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,Pr=Object.getOwnPropertyNames,Qe=Object.getOwnPropertySymbols,Ir=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty,jr=Object.prototype.propertyIsEnumerable,Nr=(r,e)=>{var o={};for(var t in r)Re.call(r,t)&&e.indexOf(t)<0&&(o[t]=r[t]);if(r!=null&&Qe)for(var t of Qe(r))e.indexOf(t)<0&&jr.call(r,t)&&(o[t]=r[t]);return o},He=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Ar=(r,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let d of Pr(e))!Re.call(r,d)&&d!==o&&Fe(r,d,{get:()=>e[d],enumerable:!(t=Tr(e,d))||t.enumerable});return r},Qr=(r,e,o)=>(o=r!=null?Cr(Ir(r)):{},Ar(e||!r||!r.__esModule?Fe(o,"default",{value:r,enumerable:!0}):o,r)),qr=He(r=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.errorMessages=r.ErrorType=void 0;var e;(function(o){o.MalformedUnicode="MALFORMED_UNICODE",o.MalformedHexadecimal="MALFORMED_HEXADECIMAL",o.CodePointLimit="CODE_POINT_LIMIT",o.OctalDeprecation="OCTAL_DEPRECATION",o.EndOfString="END_OF_STRING"})(e=r.ErrorType||(r.ErrorType={})),r.errorMessages=new Map([[e.MalformedUnicode,"malformed Unicode character escape sequence"],[e.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[e.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[e.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[e.EndOfString,"malformed escape sequence at end of string"]])}),Br=He(r=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.unraw=r.errorMessages=r.ErrorType=void 0;var e=qr();Object.defineProperty(r,"ErrorType",{enumerable:!0,get:function(){return e.ErrorType}}),Object.defineProperty(r,"errorMessages",{enumerable:!0,get:function(){return e.errorMessages}});function o(b){return b.match(/[^a-f0-9]/i)?NaN:parseInt(b,16)}function t(b,f,$){let x=o(b);if(Number.isNaN(x)||$!==void 0&&$!==b.length)throw new SyntaxError(e.errorMessages.get(f));return x}function d(b){let f=t(b,e.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(f)}function i(b,f){let $=t(b,e.ErrorType.MalformedUnicode,4);if(f!==void 0){let x=t(f,e.ErrorType.MalformedUnicode,4);return String.fromCharCode($,x)}return String.fromCharCode($)}function l(b){return b.charAt(0)==="{"&&b.charAt(b.length-1)==="}"}function c(b){if(!l(b))throw new SyntaxError(e.errorMessages.get(e.ErrorType.MalformedUnicode));let f=b.slice(1,-1),$=t(f,e.ErrorType.MalformedUnicode);try{return String.fromCodePoint($)}catch(x){throw x instanceof RangeError?new SyntaxError(e.errorMessages.get(e.ErrorType.CodePointLimit)):x}}function p(b,f=!1){if(f)throw new SyntaxError(e.errorMessages.get(e.ErrorType.OctalDeprecation));let $=parseInt(b,8);return String.fromCharCode($)}var h=new Map([["b","\b"],["f","\f"],["n",`
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function m(b){return h.get(b)||b}var N=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function L(b,f=!1){return b.replace(N,function($,x,ue,pe,ge,Ye,he,Z,fe){if(x!==void 0)return"\\";if(ue!==void 0)return d(ue);if(pe!==void 0)return c(pe);if(ge!==void 0)return i(ge,Ye);if(he!==void 0)return i(he);if(Z==="0")return"\0";if(Z!==void 0)return p(Z,!f);if(fe!==void 0)return m(fe);throw new SyntaxError(e.errorMessages.get(e.ErrorType.EndOfString))})}r.unraw=L,r.default=L}),Hr=Qr(Br(),1),_=r=>typeof r=="string",zr=r=>typeof r=="function",qe=new Map;function ce(r){return[...Array.isArray(r)?r:[r],"en"]}function ze(r,e,o){let t=ce(r);return R(()=>H("date",t,o),()=>new Intl.DateTimeFormat(t,o)).format(_(e)?new Date(e):e)}function ne(r,e,o){let t=ce(r);return R(()=>H("number",t,o),()=>new Intl.NumberFormat(t,o)).format(e)}function Be(r,e,o,t){var d=t,{offset:i=0}=d,l=Nr(d,["offset"]),c,p;let h=ce(r),m=e?R(()=>H("plural-ordinal",h),()=>new Intl.PluralRules(h,{type:"ordinal"})):R(()=>H("plural-cardinal",h),()=>new Intl.PluralRules(h,{type:"cardinal"}));return(p=(c=l[o])!=null?c:l[m.select(o-i)])!=null?p:l.other}function R(r,e){let o=r(),t=qe.get(o);return t||(t=e(),qe.set(o,t)),t}function H(r,e,o){let t=e.join("-");return`${r}-${t}-${JSON.stringify(o)}`}var Ve=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,Vr=(r,e,o={})=>{e=e||r;let t=i=>_(i)?o[i]||{style:i}:i,d=(i,l)=>{let c=Object.keys(o).length?t("number"):{},p=ne(e,i,c);return l.replace("#",p)};return{plural:(i,l)=>{let{offset:c=0}=l,p=Be(e,!1,i,l);return d(i-c,p)},selectordinal:(i,l)=>{let{offset:c=0}=l,p=Be(e,!0,i,l);return d(i-c,p)},select:(i,l)=>{var c;return(c=l[i])!=null?c:l.other},number:(i,l)=>ne(e,i,t(l)),date:(i,l)=>ze(e,i,t(l)),undefined:i=>i}};function Jr(r,e,o){return(t,d={})=>{let i=Vr(e,o,d),l=p=>Array.isArray(p)?p.reduce((h,m)=>{if(_(m))return h+m;let[N,L,b]=m,f={};b!=null&&!_(b)?Object.keys(b).forEach(x=>{f[x]=l(b[x])}):f=b;let $=i[L](t[N],f);return $==null?h:h+$},""):p,c=l(r);return _(c)&&Ve.test(c)?(0,Hr.default)(c.trim()):_(c)?c.trim():c}}var Wr=Object.defineProperty,Gr=(r,e,o)=>e in r?Wr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,Kr=(r,e,o)=>(Gr(r,typeof e!="symbol"?e+"":e,o),o),Xr=class{constructor(){Kr(this,"_events",{})}on(r,e){return this._hasEvent(r)||(this._events[r]=[]),this._events[r].push(e),()=>this.removeListener(r,e)}removeListener(r,e){if(!this._hasEvent(r))return;let o=this._events[r].indexOf(e);~o&&this._events[r].splice(o,1)}emit(r,...e){this._hasEvent(r)&&this._events[r].map(o=>o.apply(this,e))}_hasEvent(r){return Array.isArray(this._events[r])}},Zr=Object.defineProperty,Yr=(r,e,o)=>e in r?Zr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,P=(r,e,o)=>(Yr(r,typeof e!="symbol"?e+"":e,o),o),eo=class extends Xr{constructor(r){super(),P(this,"_locale"),P(this,"_locales"),P(this,"_localeData"),P(this,"_messages"),P(this,"_missing"),P(this,"t",this._.bind(this)),this._messages={},this._localeData={},r.missing!=null&&(this._missing=r.missing),r.messages!=null&&this.load(r.messages),r.localeData!=null&&this.loadLocaleData(r.localeData),(r.locale!=null||r.locales!=null)&&this.activate(r.locale,r.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var r;return(r=this._messages[this._locale])!=null?r:{}}get localeData(){var r;return(r=this._localeData[this._locale])!=null?r:{}}_loadLocaleData(r,e){this._localeData[r]==null?this._localeData[r]=e:Object.assign(this._localeData[r],e)}loadLocaleData(r,e){e!=null?this._loadLocaleData(r,e):Object.keys(r).forEach(o=>this._loadLocaleData(o,r[o])),this.emit("change")}_load(r,e){this._messages[r]==null?this._messages[r]=e:Object.assign(this._messages[r],e)}load(r,e){e!=null?this._load(r,e):Object.keys(r).forEach(o=>this._load(o,r[o])),this.emit("change")}loadAndActivate({locale:r,locales:e,messages:o}){this._locale=r,this._locales=e||void 0,this._messages[this._locale]=o,this.emit("change")}activate(r,e){this._locale=r,this._locales=e,this.emit("change")}_(r,e={},{message:o,formats:t}={}){_(r)||(e=r.values||e,o=r.message,r=r.id);let d=!this.messages[r],i=this._missing;if(i&&d)return zr(i)?i(this._locale,r):i;d&&this.emit("missing",{id:r,locale:this._locale});let l=this.messages[r]||o||r;return _(l)&&Ve.test(l)?JSON.parse(`"${l}"`):_(l)?l:Jr(l,this._locale,this._locales)(e,t)}date(r,e){return ze(this._locales||this._locale,r,e)}number(r,e){return ne(this._locales||this._locale,r,e)}};function ro(r={}){return new eo(r)}var se=ro(),oo=JSON.parse('{"icon.title.chevron-down":"Nedoverpil"}'),to=JSON.parse('{"icon.title.chevron-down":"Downward arrow"}'),io=JSON.parse('{"icon.title.chevron-down":"Nuoli alasp\xE4in"}'),lo=["en","nb","fi"],Je="en",Ue=r=>lo.find(e=>r===e||r.toLowerCase().includes(e))||Je;function ao(){if(typeof window=="undefined"){let r=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return Ue(r)}try{let r=document.documentElement.lang;return Ue(r)}catch(r){return console.warn("could not detect locale, falling back to source locale",r),Je}}var no=(r,e,o,t)=>r==="nb"?o:r==="fi"?t:e,so=(r,e,o)=>{let t=ao(),d=no(t,r,e,o);se.load(t,d),se.activate(t)};so(to,oo,io);var co=class extends Ur{render(){let r=se.t({message:"Downward arrow",id:"icon.title.chevron-down",comment:"Title for chevron-down icon"});return Rr`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16">${Fr(`<title>${r}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2.5 5.5 8 11l5.5-5.5"></path></svg>`}};customElements.get("w-icon-chevron-down-16")||customElements.define("w-icon-chevron-down-16",co);var W,Ge,G,Ke,K,Xe,X,Ze,I,V,j,J,q=class extends ke(We){constructor(){super();S(this,W);S(this,G);S(this,K);S(this,X);S(this,I);S(this,j);Ae(Te,Pe,Ie),this._options=this.innerHTML}render(){return z`<div class="${O.wrapper}">
${be(this.label,()=>z`<label class="${y(this,G,Ke)}" for="${y(this,I,V)}">
${this.label}
${Y(this.optional,()=>q`<span class="${M.optional}"
>${E._({id:"select.label.optional",message:"(optional)",comment:"Shown behind label when marked as optional"})}</span
${be(this.optional,()=>z`<span class="${A.optional}"
>${Q._({id:"select.label.optional",message:"(optional)",comment:"Shown behind label when marked as optional"})}</span
>`)}</label
>`)}
<div class="${y.selectWrapper}">
<div class="${O.selectWrapper}">
<select
class="${$(this,N,_e)}"
id="${$(this,L,B)}"
class="${y(this,W,Ge)}"
id="${y(this,I,V)}"
?autofocus=${this.autoFocus}
aria-describedby="${Z($(this,C,j))}"
aria-invalid="${Z(this.invalid)}"
aria-errormessage="${Z(this.invalid&&$(this,C,j))}"
aria-describedby="${de(y(this,j,J))}"
aria-invalid="${de(this.invalid)}"
aria-errormessage="${de(this.invalid&&y(this,j,J))}"
>
${no(this._options)}
${bo(this._options)}
</select>
<div class="${$(this,U,Le)}">
<div class="${y(this,X,Ze)}">
<w-icon-chevron-down-16></w-icon-chevron-down-16>
</div>
</div>
${Y(this.always||this.invalid,()=>q`<div id="${$(this,C,j)}" class="${$(this,H,Se)}">
${be(this.always||this.invalid,()=>z`<div id="${y(this,j,J)}" class="${y(this,K,Xe)}">
${this.hint}
</div>`)}
</div>`}};N=new WeakSet,_e=function(){return _({[y.default]:!0,[y.invalid]:this.invalid})},A=new WeakSet,De=function(){return _({[M.label]:!0,[M.labelInvalid]:this.invalid})},H=new WeakSet,Se=function(){return _({[W.helpText]:!0,[W.helpTextInvalid]:this.invalid})},U=new WeakSet,Le=function(){return _({[y.chevron]:!0,[y.chevronDisabled]:this.disabled})},L=new WeakSet,B=function(){return"select_id"},C=new WeakSet,j=function(){return this.hint?`${$(this,L,B)}__hint`:void 0},z(O,"properties",{autoFocus:{type:Boolean,reflect:!0},invalid:{type:Boolean,reflect:!0},always:{type:Boolean,reflect:!0},hint:{type:String,reflect:!0},label:{type:String,reflect:!0},optional:{type:Boolean,reflect:!0},_options:{state:!0}}),z(O,"styles",[we.styles]);customElements.get("w-select")||customElements.define("w-select",O);export{O as WarpSelect};
</div>`}};W=new WeakSet,Ge=function(){return M({[O.default]:!0,[O.invalid]:this.invalid})},G=new WeakSet,Ke=function(){return M({[A.label]:!0,[A.labelInvalid]:this.invalid})},K=new WeakSet,Xe=function(){return M({[oe.helpText]:!0,[oe.helpTextInvalid]:this.invalid})},X=new WeakSet,Ze=function(){return M({[O.chevron]:!0,[O.chevronDisabled]:this.disabled})},I=new WeakSet,V=function(){return"select_id"},j=new WeakSet,J=function(){return this.hint?`${y(this,I,V)}__hint`:void 0},ee(q,"properties",{autoFocus:{type:Boolean,reflect:!0},invalid:{type:Boolean,reflect:!0},always:{type:Boolean,reflect:!0},hint:{type:String,reflect:!0},label:{type:String,reflect:!0},optional:{type:Boolean,reflect:!0},_options:{state:!0}}),ee(q,"styles",[We.styles]);customElements.get("w-select")||customElements.define("w-select",q);export{q as WarpSelect};
//# sourceMappingURL=index.js.map

@@ -1,9 +0,13 @@

var z=Object.defineProperty,j=Object.defineProperties;var A=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var k=(o,e,l)=>e in o?z(o,e,{enumerable:!0,configurable:!0,writable:!0,value:l}):o[e]=l,p=(o,e)=>{for(var l in e||(e={}))R.call(e,l)&&k(o,l,e[l]);if(D)for(var l of D(e))V.call(e,l)&&k(o,l,e[l]);return o},S=(o,e)=>j(o,A(e));var g=(o,e,l)=>(k(o,typeof e!="symbol"?e+"":e,l),l);import{css as F,html as $}from"lit";import B from"@warp-ds/elements-core";import{classMap as O}from"lit/directives/class-map.js";import{when as N}from"lit/directives/when.js";var y={box:"group block relative break-words last-child:mb-0 p-16 rounded-8",bleed:"-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8",info:"i-bg-$color-box-info-background i-text-$color-box-info-text",neutral:"i-bg-$color-box-neutral-background i-text-$color-box-neutral-text",bordered:"border-2 i-border-$color-box-bordered-border i-bg-$color-box-bordered-background i-text-$color-box-bordered-text",infoClickable:"hover:i-bg-$color-box-info-background-hover active:i-bg-$color-box-info-background-hover",neutralClickable:"hover:i-bg-$color-box-neutral-background-hover active:i-bg-$color-box-neutral-background-hover",borderedClickable:"hover:i-bg-$color-box-bordered-background-hover active:i-bg-$color-box-bordered-background-hover hover:i-border-$color-box-bordered-border-hover active:i-border-$color-box-bordered-border-hover"};var v={container:"fixed transform translate-z-0 bottom-16 left-0 right-0 mx-8 sm:mx-16 z-50 pointer-events-none",content:"w-full",toaster:"grid auto-rows-auto justify-items-center justify-center mx-auto pointer-events-none"},d={wrapper:"relative overflow-hidden w-full",toast:"flex group p-8 mt-16 rounded-8 border-2 w-full pointer-events-auto transition-all",positive:"i-bg-$color-toast-positive-background i-border-$color-toast-positive-subtle-border i-text-$color-toast-positive-text",warning:"i-bg-$color-toast-warning-background i-border-$color-toast-warning-subtle-border i-text-$color-toast-warning-text",negative:"i-bg-$color-toast-negative-background i-border-$color-toast-negative-subtle-border i-text-$color-toast-negative-text",icon:"shrink-0 rounded-full w-[16px] h-[16px] m-[8px]",iconPositive:"i-text-$color-toast-positive-icon",iconWarning:"i-text-$color-toast-warning-icon",iconNegative:"i-text-$color-toast-negative-icon",iconLoading:"animate-bounce",content:"self-center mr-8 py-4 last-child:mb-0",close:"bg-transparent ml-auto p-[8px] i-text-$color-toast-close-icon hover:i-text-$color-toast-close-icon-hover active:i-text-$color-toast-close-icon-active"};var H="focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block",ee={expandable:"will-change-height",expandableTitle:"font-bold i-text-$color-expandable-title-text",expandableBox:"i-bg-$color-expandable-background hover:i-bg-$color-expandable-background-hover py-0 px-0 "+y.box,expandableBleed:y.bleed,chevron:"inline-block align-middle i-text-$color-expandable-icon",chevronNonBox:"relative left-8",chevronBox:"absolute right-16",chevronTransform:"transform transition-transform transform-gpu ease-in-out",chevronExpand:"-rotate-180",chevronCollapse:"rotate-180",expansion:"overflow-hidden",expansionNotExpanded:"h-0 invisible",button:H+" hover:underline focus:underline",buttonBox:"w-full text-left relative inline-flex items-center "+y.box,paddingTop:"pt-0",title:"flex justify-between items-center",titleType:"h4"},b="font-bold focusable justify-center transition-colors ease-in-out",n={primary:"i-text-$color-button-primary-text hover:i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover active:i-bg-$color-button-primary-background-active",secondary:"i-text-$color-button-secondary-text hover:i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active",utility:"i-text-$color-button-utility-text hover:i-text-$color-button-utility-text i-bg-$color-button-utility-background i-border-$color-button-utility-border hover:i-bg-$color-button-utility-background hover:i-border-$color-button-utility-border-hover active:i-border-$color-button-utility-border-active",destructive:"i-bg-$color-button-negative-background i-text-$color-button-negative-text hover:i-text-$color-button-negative-text hover:i-bg-$color-button-negative-background-hover active:i-bg-$color-button-negative-background-active",pill:"i-text-$color-button-pill-icon hover:i-text-$color-button-pill-icon-hover active:i-text-$color-button-pill-icon-active i-bg-$color-button-pill-background hover:i-bg-$color-button-pill-background-hover active:i-bg-$color-button-pill-background-active",disabled:"i-text-$color-button-disabled-text i-bg-$color-button-disabled-background",quiet:"i-bg-$color-button-quiet-background i-text-$color-button-quiet-text hover:i-bg-$color-button-quiet-background-hover active:i-bg-$color-button-quiet-background-active",utilityQuiet:"i-text-$color-button-utility-quiet-text i-bg-$color-button-utility-quiet-background hover:i-bg-$color-button-utility-quiet-background-hover",negativeQuiet:"i-bg-$color-button-negative-quiet-background i-text-$color-button-negative-quiet-text hover:i-bg-$color-button-negative-quiet-background-hover active:i-bg-$color-button-negative-quiet-background-active",loading:"i-text-$color-button-loading-text i-bg-$color-button-loading-background",link:"i-text-$color-button-link-text"},a={primary:`border-0 rounded-8 ${b}`,secondary:`border-2 rounded-8 ${b}`,utility:`border rounded-4 ${b}`,negative:`border-0 rounded-8 ${b}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${b}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline ${n.link}`},i={xsmall:"py-6 px-16",small:"py-8 px-16",medium:"py-10 px-14",large:"py-12 px-16",utility:"py-[11px] px-[15px]",smallUtility:"py-[7px] px-[15px]",pill:"min-h-[44px] min-w-[44px]",pillSmall:"min-h-32 min-w-32",link:"p-0"},r={medium:"text-m leading-[24]",xsmall:"text-xs"},t={inProgress:`border-transparent animate-inprogress pointer-events-none ${n.loading}`,quiet:`border-0 rounded-8 ${b}`,utilityQuiet:`border-0 rounded-4 ${b}`,negativeQuiet:`border-0 rounded-8 ${b}`,isDisabled:`font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${n.disabled}`},oe={secondary:`${i.medium} ${r.medium} ${a.secondary} ${n.secondary}`,secondaryHref:`${i.medium} ${r.medium} ${a.secondary} ${n.secondary}`,secondaryDisabled:`${i.medium} ${r.medium} ${a.secondary} ${t.isDisabled}`,secondarySmall:`${r.xsmall} ${i.xsmall} ${a.secondary} ${n.secondary}`,secondarySmallDisabled:`${r.xsmall} ${i.xsmall} ${a.secondary} ${t.isDisabled}`,secondaryQuiet:`${i.medium} ${r.medium} ${t.quiet} ${n.quiet}`,secondaryQuietDisabled:`${i.medium} ${r.medium} ${t.quiet} ${t.isDisabled}`,secondarySmallQuiet:`${r.xsmall} ${i.xsmall} ${t.quiet} ${n.quiet}`,secondarySmallQuietDisabled:`${r.xsmall} ${i.xsmall} ${t.quiet} ${t.isDisabled}`,secondaryLoading:`${i.medium} ${r.medium} ${a.secondary} ${t.inProgress}`,secondarySmallLoading:`${r.xsmall} ${i.xsmall} ${a.secondary} ${t.inProgress}`,secondarySmallQuietLoading:`${r.xsmall} ${i.xsmall} ${t.quiet} ${t.inProgress}`,secondaryQuietLoading:`${i.medium} ${r.medium} ${t.quiet} ${t.inProgress}`,primary:`${i.large} ${r.medium} ${a.primary} ${n.primary}`,primaryDisabled:`${i.large} ${r.medium} ${t.isDisabled} ${a.primary}`,primarySmall:`${i.small} ${r.xsmall} ${a.primary} ${n.primary}`,primarySmallDisabled:`${i.small} ${r.xsmall} ${t.isDisabled} ${a.primary} `,primaryQuiet:`${i.large} ${r.medium} ${t.quiet} ${n.quiet}`,primaryQuietDisabled:`${i.large} ${r.medium} ${t.quiet} ${t.isDisabled}`,primarySmallQuiet:`${i.small} ${r.xsmall} ${t.quiet} ${n.quiet}`,primarySmallQuietDisabled:`${i.small} ${r.xsmall} ${t.quiet} ${t.isDisabled}`,primaryLoading:`${i.large} ${r.medium} ${t.inProgress} ${a.primary}`,primarySmallLoading:`${i.small} ${r.xsmall} ${t.inProgress} ${a.primary}`,primarySmallQuietLoading:`${i.small} ${r.xsmall} ${t.quiet} ${t.inProgress} ${a.primary}`,primaryQuietLoading:`${i.large} ${r.medium} ${t.quiet} ${t.inProgress}`,utility:`${i.utility} ${r.medium} ${a.utility} ${n.utility}`,utilityDisabled:`${i.utility} ${r.medium} ${a.utility} ${t.isDisabled}`,utilityQuiet:`${i.large} ${r.medium} ${t.utilityQuiet} ${n.utilityQuiet}`,utilityQuietDisabled:`${i.large} ${r.medium} ${t.utilityQuiet} ${t.isDisabled}`,utilitySmall:`${i.smallUtility} ${r.xsmall} ${a.utility} ${n.utility}`,utilitySmallDisabled:`${i.smallUtility} ${r.xsmall} ${a.utility} ${t.isDisabled}`,utilitySmallQuiet:`${i.smallUtility} ${r.xsmall} ${t.utilityQuiet} ${n.utilityQuiet}`,utilitySmallQuietDisabled:`${i.smallUtility} ${r.xsmall} ${t.utilityQuiet} ${t.isDisabled}`,utilityLoading:`${i.large} ${r.medium} ${a.utility} ${t.inProgress}`,utilitySmallLoading:`${i.smallUtility} ${r.xsmall} ${a.utility} ${t.inProgress}`,utilityQuietLoading:`${i.large} ${r.medium} ${t.inProgress} ${t.utilityQuiet}`,utilitySmallQuietLoading:`${i.smallUtility} ${r.xsmall} ${t.inProgress} ${t.utilityQuiet}`,negative:`${i.large} ${r.medium} ${a.negative} ${n.destructive}`,negativeDisabled:`${i.large} ${r.medium} ${a.negative} ${t.isDisabled}`,negativeQuiet:`${i.large} ${r.medium} ${t.negativeQuiet} ${n.negativeQuiet}`,negativeQuietDisabled:`${i.large} ${r.medium} ${t.negativeQuiet}${t.isDisabled}`,negativeSmall:`${i.small} ${r.xsmall} ${a.negative} ${n.destructive}`,negativeSmallDisabled:`${i.small} ${r.xsmall} ${a.negative} ${t.isDisabled}`,negativeSmallQuiet:`${i.small} ${r.xsmall} ${t.negativeQuiet} ${n.negativeQuiet}`,negativeSmallQuietDisabled:`${i.small} ${r.xsmall} ${t.negativeQuiet} ${t.isDisabled}`,negativeLoading:`${i.large} ${r.medium} ${a.negative} ${t.inProgress}`,negativeSmallLoading:`${i.small} ${r.xsmall} ${t.inProgress} ${a.negative}`,negativeQuietLoading:`${i.large} ${r.medium} ${t.negativeQuiet} ${a.negative} ${t.inProgress}`,negativeSmallQuietLoading:`${i.small} ${r.xsmall} ${t.negativeQuiet} ${t.inProgress}`,pill:`${i.pill} ${r.medium} ${a.pill} ${n.pill}`,pillSmall:`${i.pillSmall} ${r.xsmall} ${a.pill} ${n.pill}`,pillLoading:`${i.pill} ${r.medium} ${a.pill} ${t.inProgress}`,pillSmallLoading:`${i.pillSmall} ${r.xsmall} ${a.pill} ${t.inProgress}`,link:`${i.link} ${r.medium} ${a.link}`,linkSmall:`${i.link} ${r.xsmall} ${a.link}`,linkAsButton:"inline-block hover:no-underline text-center",a11y:"sr-only",fullWidth:"w-full max-w-full",contentWidth:"max-w-max"};var te={transparentBg:'before:i-bg-$color-modal-backdrop-background before:content-[""] before:absolute before:top-0 before:bottom-0 before:left-0 before:right-0 before:opacity-25',backdrop:"fixed inset-0 flex sm:place-content-center sm:place-items-center items-end z-20 [--w-modal-max-height:80%] [--w-modal-width:640px]",modal:"pb-safe-[32] i-shadow-$shadow-modal max-h-[--w-modal-max-height] min-h-[--w-modal-min-height] w-[--w-modal-width] h-[--w-modal-height] relative transition-300 ease-in-out backface-hidden will-change-height rounded-8 mx-0 sm:mx-16 i-bg-$color-modal-background flex flex-col overflow-hidden outline-none space-y-16 pt-8 sm:pt-32 sm:pb-32 rounded-b-0 sm:rounded-b-8",content:"block overflow-y-auto overflow-x-hidden last-child:mb-0 grow shrink px-16 sm:px-32 relative",footer:"flex justify-end shrink-0 px-16 sm:px-32",transitionTitle:"transition-all duration-300",transitionTitleCenter:"justify-self-center",transitionTitleColSpan:"col-span-2",title:"-mt-4 sm:-mt-8 h-40 sm:h-48 grid gap-8 sm:gap-16 grid-cols-[auto_1fr_auto] items-center px-16 sm:px-32 border-b sm:border-b-0 shrink-0",titleText:"mb-0 h4 sm:h3",titleButton:`${r.medium} ${a.pill} ${n.pill} sm:min-h-[44px] sm:min-w-[44px] min-h-[32px] min-w-[32px]`,titleButtonLeft:"-ml-8 sm:-ml-12 justify-self-start",titleButtonRight:"-mr-8 sm:-mr-12 justify-self-end",titleButtonIcon:"h-16 w-16 sm:h-24 sm:w-24",titleButtonIconRotated:"transform rotate-90"};var U={label:"antialiased block relative text-s font-bold pb-4 cursor-pointer i-text-$color-label-text",labelInvalid:"i-text-$color-label-text-negative",optional:"pl-8 font-normal text-s i-text-$color-label-optional-text"};var _="absolute top-0 bottom-0 flex justify-center items-center focusable focus:[--w-outline-offset:-2px] bg-transparent ",re={wrapper:_+"right-0",wrapperWithLabel:"w-max pr-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"},ie={wrapper:_+"left-0",wrapperWithLabel:"w-max pl-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"};var le={toggle:"absolute inset-0 h-full w-full appearance-none cursor-pointer focusable focusable-inset",label:`px-12 ${U.label} py-8! cursor-pointer focusable focusable-inset`,buttonOrLink:"bg-transparent focusable",buttonOrLinkStretch:"inset-0 absolute"};var ae={base:"border-2 relative flex items-start",tooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background i-shadow-$shadow-tooltip i-text-$color-tooltip-text rounded-4 py-6 px-8",callout:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8",highlight:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8 drop-shadow-m",popover:"i-bg-$color-popover-background i-border-$color-popover-background i-text-$color-popover-paragraph-text rounded-8 p-16 drop-shadow-m",arrowBase:"absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",arrowDirectionLeft:"-left-[8px]",arrowDirectionRight:"-right-[8px]",arrowDirectionBottom:"-bottom-[8px]",arrowDirectionTop:"-top-[8px]",arrowTooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background",arrowCallout:"i-bg-$color-callout-background i-border-$color-callout-border",arrowPopover:"i-bg-$color-popover-background i-border-$color-popover-background",arrowHighlight:"i-bg-$color-callout-background i-border-$color-callout-border",content:"last-child:mb-0",notCallout:"absolute z-50",closeBtn:`${r.medium} ${a.pill} ${n.pill} justify-self-end -mr-8 ml-8`};var w=typeof window!="undefined",L=!0;if(w){let o=window.matchMedia("(prefers-reduced-motion: reduce)"),e=({matches:l})=>L=!l;o.addEventListener&&o.addEventListener("change",e),e(o)}var Q=o=>{o.style.transition=null,o.style.backfaceVisibility=null,o.style.overflow=null},q=o=>{let e=L?"var(--f-expansion-duration, 0.3s)":"0.01s";o.style.transition=`height ${e}`,o.style.backfaceVisibility="hidden",o.style.overflow="hidden"},W=(o,e)=>()=>{o.style.height="auto",o.style.overflow=null,e&&e()},M=o=>()=>{o&&o()},C=(o,e)=>{let l=(()=>{if(!e)return new Promise(m=>{e=m})})(),c=W(o,e);Q(o),o.style.height="auto";let s=o.scrollHeight;if(w&&requestAnimationFrame(()=>{o.addEventListener("transitionend",c,{once:!0}),o.style.height="0px",o.style.transitionTimingFunction="ease-out",q(o),requestAnimationFrame(()=>o.style.height=s+"px")}),l)return l},T=(o,e)=>{let l=(()=>{if(!e)return new Promise(m=>{e=m})})(),c=M(e);Q(o);let s=o.scrollHeight;if(w&&requestAnimationFrame(()=>{o.addEventListener("transitionend",c,{once:!0}),o.style.height=s+"px",o.style.transitionTimingFunction="ease-in",q(o),requestAnimationFrame(()=>o.style.height="0px")}),l)return l};var E=o=>{let e={};for(let[l,c]of Object.entries(o))for(let s of l.split(" "))e[s]=c;return O(e)},u={success:"success",error:"error",warning:"warning"},x=class extends B{constructor(){super(),this.id=Date.now().toString(36)+Math.random().toString(36).slice(2,5),this.type="success",this.text="",this.canclose=!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}updated(){!this._expanded&&this._wrapper&&C(this._wrapper,()=>this._expanded=!0)}get _primaryClasses(){return E({[d.toast]:!0,[d.positive]:this.type===u.success,[d.warning]:this.type===u.warning,[d.negative]:this.type===u.error})}get _iconClasses(){return E({[d.icon]:!0,[d.iconPositive]:this.type==u.success,[d.iconWarning]:this.type===u.warning,[d.iconNegative]:this.type===u.error})}get _wrapper(){var e,l;return(l=(e=this.renderRoot)==null?void 0:e.querySelector("section"))!=null?l:null}get _warning(){return this.type===u.warning}get _error(){return this.type===u.error}get _role(){return this._error||this._warning?"alert":"status"}get _typeLabel(){return this._warning?"Varsel":this._error?"Feil":"Vellykket"}get _iconMarkup(){return this._warning?$`<w-icon-alert-warning-16></w-icon-alert-warning-16>`:this._error?$`<w-icon-alert-error-16></w-icon-alert-error-16>`:$`<w-icon-alert-success-16></w-icon-alert-success-16>`}async collapse(){return new Promise(e=>{this._expanded&&this._wrapper?T(this._wrapper,e):e()})}close(){let e=new CustomEvent("close",{detail:{id:this.id},bubbles:!0,composed:!0});this.updateComplete.then(()=>this.dispatchEvent(e))}render(){return this.text?$` <section class="${d.wrapper}" aria-label="${this._typeLabel}">
var gt=Object.defineProperty,ht=Object.defineProperties;var ft=Object.getOwnPropertyDescriptors;var fe=Object.getOwnPropertySymbols;var mt=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable;var te=(e,t,r)=>t in e?gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,I=(e,t)=>{for(var r in t||(t={}))mt.call(t,r)&&te(e,r,t[r]);if(fe)for(var r of fe(t))vt.call(t,r)&&te(e,r,t[r]);return e},me=(e,t)=>ht(e,ft(t));var N=(e,t,r)=>(te(e,typeof t!="symbol"?t+"":t,r),r);import{css as Vo,html as Q}from"lit";import dt from"@warp-ds/elements-core";import{classMap as Wo}from"lit/directives/class-map.js";import{when as Zo}from"lit/directives/when.js";var re={box:"group block relative break-words last-child:mb-0 p-16 rounded-8",bleed:"-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8",info:"i-bg-$color-box-info-background i-text-$color-box-info-text",neutral:"i-bg-$color-box-neutral-background i-text-$color-box-neutral-text",bordered:"border-2 i-border-$color-box-bordered-border i-bg-$color-box-bordered-background i-text-$color-box-bordered-text",infoClickable:"hover:i-bg-$color-box-info-background-hover active:i-bg-$color-box-info-background-hover",neutralClickable:"hover:i-bg-$color-box-neutral-background-hover active:i-bg-$color-box-neutral-background-hover",borderedClickable:"hover:i-bg-$color-box-bordered-background-hover active:i-bg-$color-box-bordered-background-hover hover:i-border-$color-box-bordered-border-hover active:i-border-$color-box-bordered-border-hover"};var J={container:"fixed transform translate-z-0 bottom-16 left-0 right-0 mx-8 sm:mx-16 z-50 pointer-events-none",content:"w-full",toaster:"grid auto-rows-auto justify-items-center justify-center mx-auto pointer-events-none"},k={wrapper:"relative overflow-hidden w-full",toast:"flex group p-8 mt-16 rounded-8 border-2 w-full pointer-events-auto transition-all",positive:"i-bg-$color-toast-positive-background i-border-$color-toast-positive-subtle-border i-text-$color-toast-positive-text",warning:"i-bg-$color-toast-warning-background i-border-$color-toast-warning-subtle-border i-text-$color-toast-warning-text",negative:"i-bg-$color-toast-negative-background i-border-$color-toast-negative-subtle-border i-text-$color-toast-negative-text",icon:"shrink-0 rounded-full w-[16px] h-[16px] m-[8px]",iconPositive:"i-text-$color-toast-positive-icon",iconWarning:"i-text-$color-toast-warning-icon",iconNegative:"i-text-$color-toast-negative-icon",iconLoading:"animate-bounce",content:"self-center mr-8 py-4 last-child:mb-0",close:"bg-transparent ml-auto p-[8px] i-text-$color-toast-close-icon hover:i-text-$color-toast-close-icon-hover active:i-text-$color-toast-close-icon-active"};var xt="focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block",oi={expandable:"will-change-height",expandableTitle:"font-bold i-text-$color-expandable-title-text",expandableBox:"i-bg-$color-expandable-background hover:i-bg-$color-expandable-background-hover py-0 px-0 "+re.box,expandableBleed:re.bleed,chevron:"inline-block align-middle i-text-$color-expandable-icon",chevronNonBox:"relative left-8",chevronBox:"absolute right-16",chevronTransform:"transform transition-transform transform-gpu ease-in-out",chevronExpand:"-rotate-180",chevronCollapse:"rotate-180",expansion:"overflow-hidden",expansionNotExpanded:"h-0 invisible",button:xt+" hover:underline focus:underline",buttonBox:"w-full text-left relative inline-flex items-center "+re.box,paddingTop:"pt-0",title:"flex justify-between items-center",titleType:"h4"},P="font-bold focusable justify-center transition-colors ease-in-out",x={primary:"i-text-$color-button-primary-text hover:i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover active:i-bg-$color-button-primary-background-active",secondary:"i-text-$color-button-secondary-text hover:i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active",utility:"i-text-$color-button-utility-text hover:i-text-$color-button-utility-text i-bg-$color-button-utility-background i-border-$color-button-utility-border hover:i-bg-$color-button-utility-background hover:i-border-$color-button-utility-border-hover active:i-border-$color-button-utility-border-active",destructive:"i-bg-$color-button-negative-background i-text-$color-button-negative-text hover:i-text-$color-button-negative-text hover:i-bg-$color-button-negative-background-hover active:i-bg-$color-button-negative-background-active",pill:"i-text-$color-button-pill-icon hover:i-text-$color-button-pill-icon-hover active:i-text-$color-button-pill-icon-active i-bg-$color-button-pill-background hover:i-bg-$color-button-pill-background-hover active:i-bg-$color-button-pill-background-active",disabled:"i-text-$color-button-disabled-text i-bg-$color-button-disabled-background",quiet:"i-bg-$color-button-quiet-background i-text-$color-button-quiet-text hover:i-bg-$color-button-quiet-background-hover active:i-bg-$color-button-quiet-background-active",utilityQuiet:"i-text-$color-button-utility-quiet-text i-bg-$color-button-utility-quiet-background hover:i-bg-$color-button-utility-quiet-background-hover",negativeQuiet:"i-bg-$color-button-negative-quiet-background i-text-$color-button-negative-quiet-text hover:i-bg-$color-button-negative-quiet-background-hover active:i-bg-$color-button-negative-quiet-background-active",loading:"i-text-$color-button-loading-text i-bg-$color-button-loading-background",link:"i-text-$color-button-link-text"},m={primary:`border-0 rounded-8 ${P}`,secondary:`border-2 rounded-8 ${P}`,utility:`border rounded-4 ${P}`,negative:`border-0 rounded-8 ${P}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${P}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline ${x.link}`},g={xsmall:"py-6 px-16",small:"py-8 px-16",medium:"py-10 px-14",large:"py-12 px-16",utility:"py-[11px] px-[15px]",smallUtility:"py-[7px] px-[15px]",pill:"min-h-[44px] min-w-[44px]",pillSmall:"min-h-32 min-w-32",link:"p-0"},b={medium:"text-m leading-[24]",xsmall:"text-xs"},u={inProgress:`border-transparent animate-inprogress pointer-events-none ${x.loading}`,quiet:`border-0 rounded-8 ${P}`,utilityQuiet:`border-0 rounded-4 ${P}`,negativeQuiet:`border-0 rounded-8 ${P}`,isDisabled:`font-bold justify-center transition-colors ease-in-out cursor-default pointer-events-none ${x.disabled}`},ii={secondary:`${g.medium} ${b.medium} ${m.secondary} ${x.secondary}`,secondaryHref:`${g.medium} ${b.medium} ${m.secondary} ${x.secondary}`,secondaryDisabled:`${g.medium} ${b.medium} ${m.secondary} ${u.isDisabled}`,secondarySmall:`${b.xsmall} ${g.xsmall} ${m.secondary} ${x.secondary}`,secondarySmallDisabled:`${b.xsmall} ${g.xsmall} ${m.secondary} ${u.isDisabled}`,secondaryQuiet:`${g.medium} ${b.medium} ${u.quiet} ${x.quiet}`,secondaryQuietDisabled:`${g.medium} ${b.medium} ${u.quiet} ${u.isDisabled}`,secondarySmallQuiet:`${b.xsmall} ${g.xsmall} ${u.quiet} ${x.quiet}`,secondarySmallQuietDisabled:`${b.xsmall} ${g.xsmall} ${u.quiet} ${u.isDisabled}`,secondaryLoading:`${g.medium} ${b.medium} ${m.secondary} ${u.inProgress}`,secondarySmallLoading:`${b.xsmall} ${g.xsmall} ${m.secondary} ${u.inProgress}`,secondarySmallQuietLoading:`${b.xsmall} ${g.xsmall} ${u.quiet} ${u.inProgress}`,secondaryQuietLoading:`${g.medium} ${b.medium} ${u.quiet} ${u.inProgress}`,primary:`${g.large} ${b.medium} ${m.primary} ${x.primary}`,primaryDisabled:`${g.large} ${b.medium} ${u.isDisabled} ${m.primary}`,primarySmall:`${g.small} ${b.xsmall} ${m.primary} ${x.primary}`,primarySmallDisabled:`${g.small} ${b.xsmall} ${u.isDisabled} ${m.primary} `,primaryQuiet:`${g.large} ${b.medium} ${u.quiet} ${x.quiet}`,primaryQuietDisabled:`${g.large} ${b.medium} ${u.quiet} ${u.isDisabled}`,primarySmallQuiet:`${g.small} ${b.xsmall} ${u.quiet} ${x.quiet}`,primarySmallQuietDisabled:`${g.small} ${b.xsmall} ${u.quiet} ${u.isDisabled}`,primaryLoading:`${g.large} ${b.medium} ${u.inProgress} ${m.primary}`,primarySmallLoading:`${g.small} ${b.xsmall} ${u.inProgress} ${m.primary}`,primarySmallQuietLoading:`${g.small} ${b.xsmall} ${u.quiet} ${u.inProgress} ${m.primary}`,primaryQuietLoading:`${g.large} ${b.medium} ${u.quiet} ${u.inProgress}`,utility:`${g.utility} ${b.medium} ${m.utility} ${x.utility}`,utilityDisabled:`${g.utility} ${b.medium} ${m.utility} ${u.isDisabled}`,utilityQuiet:`${g.large} ${b.medium} ${u.utilityQuiet} ${x.utilityQuiet}`,utilityQuietDisabled:`${g.large} ${b.medium} ${u.utilityQuiet} ${u.isDisabled}`,utilitySmall:`${g.smallUtility} ${b.xsmall} ${m.utility} ${x.utility}`,utilitySmallDisabled:`${g.smallUtility} ${b.xsmall} ${m.utility} ${u.isDisabled}`,utilitySmallQuiet:`${g.smallUtility} ${b.xsmall} ${u.utilityQuiet} ${x.utilityQuiet}`,utilitySmallQuietDisabled:`${g.smallUtility} ${b.xsmall} ${u.utilityQuiet} ${u.isDisabled}`,utilityLoading:`${g.large} ${b.medium} ${m.utility} ${u.inProgress}`,utilitySmallLoading:`${g.smallUtility} ${b.xsmall} ${m.utility} ${u.inProgress}`,utilityQuietLoading:`${g.large} ${b.medium} ${u.inProgress} ${u.utilityQuiet}`,utilitySmallQuietLoading:`${g.smallUtility} ${b.xsmall} ${u.inProgress} ${u.utilityQuiet}`,negative:`${g.large} ${b.medium} ${m.negative} ${x.destructive}`,negativeDisabled:`${g.large} ${b.medium} ${m.negative} ${u.isDisabled}`,negativeQuiet:`${g.large} ${b.medium} ${u.negativeQuiet} ${x.negativeQuiet}`,negativeQuietDisabled:`${g.large} ${b.medium} ${u.negativeQuiet}${u.isDisabled}`,negativeSmall:`${g.small} ${b.xsmall} ${m.negative} ${x.destructive}`,negativeSmallDisabled:`${g.small} ${b.xsmall} ${m.negative} ${u.isDisabled}`,negativeSmallQuiet:`${g.small} ${b.xsmall} ${u.negativeQuiet} ${x.negativeQuiet}`,negativeSmallQuietDisabled:`${g.small} ${b.xsmall} ${u.negativeQuiet} ${u.isDisabled}`,negativeLoading:`${g.large} ${b.medium} ${m.negative} ${u.inProgress}`,negativeSmallLoading:`${g.small} ${b.xsmall} ${u.inProgress} ${m.negative}`,negativeQuietLoading:`${g.large} ${b.medium} ${u.negativeQuiet} ${m.negative} ${u.inProgress}`,negativeSmallQuietLoading:`${g.small} ${b.xsmall} ${u.negativeQuiet} ${u.inProgress}`,pill:`${g.pill} ${b.medium} ${m.pill} ${x.pill}`,pillSmall:`${g.pillSmall} ${b.xsmall} ${m.pill} ${x.pill}`,pillLoading:`${g.pill} ${b.medium} ${m.pill} ${u.inProgress}`,pillSmallLoading:`${g.pillSmall} ${b.xsmall} ${m.pill} ${u.inProgress}`,link:`${g.link} ${b.medium} ${m.link}`,linkSmall:`${g.link} ${b.xsmall} ${m.link}`,linkAsButton:"inline-block hover:no-underline text-center",a11y:"sr-only",fullWidth:"w-full max-w-full",contentWidth:"max-w-max"};var li={transparentBg:'before:i-bg-$color-modal-backdrop-background before:content-[""] before:absolute before:top-0 before:bottom-0 before:left-0 before:right-0 before:opacity-25',backdrop:"fixed inset-0 flex sm:place-content-center sm:place-items-center items-end z-20 [--w-modal-max-height:80%] [--w-modal-width:640px]",modal:"pb-safe-[32] i-shadow-$shadow-modal max-h-[--w-modal-max-height] min-h-[--w-modal-min-height] w-[--w-modal-width] h-[--w-modal-height] relative transition-300 ease-in-out backface-hidden will-change-height rounded-8 mx-0 sm:mx-16 i-bg-$color-modal-background flex flex-col overflow-hidden outline-none space-y-16 pt-8 sm:pt-32 sm:pb-32 rounded-b-0 sm:rounded-b-8",content:"block overflow-y-auto overflow-x-hidden last-child:mb-0 grow shrink px-16 sm:px-32 relative",footer:"flex justify-end shrink-0 px-16 sm:px-32",transitionTitle:"transition-all duration-300",transitionTitleCenter:"justify-self-center",transitionTitleColSpan:"col-span-2",title:"-mt-4 sm:-mt-8 h-40 sm:h-48 grid gap-8 sm:gap-16 grid-cols-[auto_1fr_auto] items-center px-16 sm:px-32 border-b sm:border-b-0 shrink-0",titleText:"mb-0 h4 sm:h3",titleButton:`${b.medium} ${m.pill} ${x.pill} sm:min-h-[44px] sm:min-w-[44px] min-h-[32px] min-w-[32px]`,titleButtonLeft:"-ml-8 sm:-ml-12 justify-self-start",titleButtonRight:"-mr-8 sm:-mr-12 justify-self-end",titleButtonIcon:"h-16 w-16 sm:h-24 sm:w-24",titleButtonIconRotated:"transform rotate-90"};var $t={label:"antialiased block relative text-s font-bold pb-4 cursor-pointer i-text-$color-label-text",labelInvalid:"i-text-$color-label-text-negative",optional:"pl-8 font-normal text-s i-text-$color-label-optional-text"};var ve="absolute top-0 bottom-0 flex justify-center items-center focusable focus:[--w-outline-offset:-2px] bg-transparent ",ai={wrapper:ve+"right-0",wrapperWithLabel:"w-max pr-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"},ni={wrapper:ve+"left-0",wrapperWithLabel:"w-max pl-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs i-text-$color-label-text"};var si={toggle:"absolute inset-0 h-full w-full appearance-none cursor-pointer focusable focusable-inset",label:`px-12 ${$t.label} py-8! cursor-pointer focusable focusable-inset`,buttonOrLink:"bg-transparent focusable",buttonOrLinkStretch:"inset-0 absolute"};var ci={base:"border-2 relative flex items-start",tooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background i-shadow-$shadow-tooltip i-text-$color-tooltip-text rounded-4 py-6 px-8",callout:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8",highlight:"i-bg-$color-callout-background i-border-$color-callout-border i-text-$color-callout-text py-8 px-16 rounded-8 drop-shadow-m",popover:"i-bg-$color-popover-background i-border-$color-popover-background i-text-$color-popover-paragraph-text rounded-8 p-16 drop-shadow-m",arrowBase:"absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",arrowDirectionLeft:"-left-[8px]",arrowDirectionRight:"-right-[8px]",arrowDirectionBottom:"-bottom-[8px]",arrowDirectionTop:"-top-[8px]",arrowTooltip:"i-bg-$color-tooltip-background i-border-$color-tooltip-background",arrowCallout:"i-bg-$color-callout-background i-border-$color-callout-border",arrowPopover:"i-bg-$color-popover-background i-border-$color-popover-background",arrowHighlight:"i-bg-$color-callout-background i-border-$color-callout-border",content:"last-child:mb-0",notCallout:"absolute z-50",closeBtn:`${b.medium} ${m.pill} ${x.pill} justify-self-end -mr-8 ml-8`};var oe=typeof window!="undefined",xe=!0;if(oe){let e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=({matches:r})=>xe=!r;e.addEventListener&&e.addEventListener("change",t),t(e)}var $e=e=>{e.style.transition=null,e.style.backfaceVisibility=null,e.style.overflow=null},ye=e=>{let t=xe?"var(--f-expansion-duration, 0.3s)":"0.01s";e.style.transition=`height ${t}`,e.style.backfaceVisibility="hidden",e.style.overflow="hidden"},yt=(e,t)=>()=>{e.style.height="auto",e.style.overflow=null,t&&t()},wt=e=>()=>{e&&e()},we=(e,t)=>{let r=(()=>{if(!t)return new Promise(i=>{t=i})})(),o=yt(e,t);$e(e),e.style.height="auto";let n=e.scrollHeight;if(oe&&requestAnimationFrame(()=>{e.addEventListener("transitionend",o,{once:!0}),e.style.height="0px",e.style.transitionTimingFunction="ease-out",ye(e),requestAnimationFrame(()=>e.style.height=n+"px")}),r)return r},ke=(e,t)=>{let r=(()=>{if(!t)return new Promise(i=>{t=i})})(),o=wt(t);$e(e);let n=e.scrollHeight;if(oe&&requestAnimationFrame(()=>{e.addEventListener("transitionend",o,{once:!0}),e.style.height=n+"px",e.style.transitionTimingFunction="ease-in",ye(e),requestAnimationFrame(()=>e.style.height="0px")}),r)return r};import{LitElement as Pt}from"lit";import{unsafeStatic as jt,html as At}from"lit/static-html.js";var kt=Object.create,Se=Object.defineProperty,_t=Object.getOwnPropertyDescriptor,Et=Object.getOwnPropertyNames,_e=Object.getOwnPropertySymbols,Ot=Object.getPrototypeOf,Me=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,St=(e,t)=>{var r={};for(var o in e)Me.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&_e)for(var o of _e(e))t.indexOf(o)<0&&Dt.call(e,o)&&(r[o]=e[o]);return r},Te=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Mt=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Et(t))!Me.call(e,n)&&n!==r&&Se(e,n,{get:()=>t[n],enumerable:!(o=_t(t,n))||o.enumerable});return e},Tt=(e,t,r)=>(r=e!=null?kt(Ot(e)):{},Mt(t||!e||!e.__esModule?Se(r,"default",{value:e,enumerable:!0}):r,e)),Ct=Te(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0;var t;(function(r){r.MalformedUnicode="MALFORMED_UNICODE",r.MalformedHexadecimal="MALFORMED_HEXADECIMAL",r.CodePointLimit="CODE_POINT_LIMIT",r.OctalDeprecation="OCTAL_DEPRECATION",r.EndOfString="END_OF_STRING"})(t=e.ErrorType||(e.ErrorType={})),e.errorMessages=new Map([[t.MalformedUnicode,"malformed Unicode character escape sequence"],[t.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[t.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[t.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[t.EndOfString,"malformed escape sequence at end of string"]])}),Lt=Te(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;var t=Ct();Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return t.ErrorType}}),Object.defineProperty(e,"errorMessages",{enumerable:!0,get:function(){return t.errorMessages}});function r(a){return a.match(/[^a-f0-9]/i)?NaN:parseInt(a,16)}function o(a,c,p){let h=r(a);if(Number.isNaN(h)||p!==void 0&&p!==a.length)throw new SyntaxError(t.errorMessages.get(c));return h}function n(a){let c=o(a,t.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(c)}function i(a,c){let p=o(a,t.ErrorType.MalformedUnicode,4);if(c!==void 0){let h=o(c,t.ErrorType.MalformedUnicode,4);return String.fromCharCode(p,h)}return String.fromCharCode(p)}function l(a){return a.charAt(0)==="{"&&a.charAt(a.length-1)==="}"}function s(a){if(!l(a))throw new SyntaxError(t.errorMessages.get(t.ErrorType.MalformedUnicode));let c=a.slice(1,-1),p=o(c,t.ErrorType.MalformedUnicode);try{return String.fromCodePoint(p)}catch(h){throw h instanceof RangeError?new SyntaxError(t.errorMessages.get(t.ErrorType.CodePointLimit)):h}}function d(a,c=!1){if(c)throw new SyntaxError(t.errorMessages.get(t.ErrorType.OctalDeprecation));let p=parseInt(a,8);return String.fromCharCode(p)}var f=new Map([["b","\b"],["f","\f"],["n",`
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function v(a){return f.get(a)||a}var y=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function $(a,c=!1){return a.replace(y,function(p,h,_,E,O,A,D,w,S){if(h!==void 0)return"\\";if(_!==void 0)return n(_);if(E!==void 0)return s(E);if(O!==void 0)return i(O,A);if(D!==void 0)return i(D);if(w==="0")return"\0";if(w!==void 0)return d(w,!c);if(S!==void 0)return v(S);throw new SyntaxError(t.errorMessages.get(t.ErrorType.EndOfString))})}e.unraw=$,e.default=$}),It=Tt(Lt(),1),M=e=>typeof e=="string",Nt=e=>typeof e=="function",Ee=new Map;function ae(e){return[...Array.isArray(e)?e:[e],"en"]}function Ce(e,t,r){let o=ae(e);return z(()=>G("date",o,r),()=>new Intl.DateTimeFormat(o,r)).format(M(t)?new Date(t):t)}function ie(e,t,r){let o=ae(e);return z(()=>G("number",o,r),()=>new Intl.NumberFormat(o,r)).format(t)}function Oe(e,t,r,o){var n=o,{offset:i=0}=n,l=St(n,["offset"]),s,d;let f=ae(e),v=t?z(()=>G("plural-ordinal",f),()=>new Intl.PluralRules(f,{type:"ordinal"})):z(()=>G("plural-cardinal",f),()=>new Intl.PluralRules(f,{type:"cardinal"}));return(d=(s=l[r])!=null?s:l[v.select(r-i)])!=null?d:l.other}function z(e,t){let r=e(),o=Ee.get(r);return o||(o=t(),Ee.set(r,o)),o}function G(e,t,r){let o=t.join("-");return`${e}-${o}-${JSON.stringify(r)}`}var Le=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,Ft=(e,t,r={})=>{t=t||e;let o=i=>M(i)?r[i]||{style:i}:i,n=(i,l)=>{let s=Object.keys(r).length?o("number"):{},d=ie(t,i,s);return l.replace("#",d)};return{plural:(i,l)=>{let{offset:s=0}=l,d=Oe(t,!1,i,l);return n(i-s,d)},selectordinal:(i,l)=>{let{offset:s=0}=l,d=Oe(t,!0,i,l);return n(i-s,d)},select:(i,l)=>{var s;return(s=l[i])!=null?s:l.other},number:(i,l)=>ie(t,i,o(l)),date:(i,l)=>Ce(t,i,o(l)),undefined:i=>i}};function qt(e,t,r){return(o,n={})=>{let i=Ft(t,r,n),l=d=>Array.isArray(d)?d.reduce((f,v)=>{if(M(v))return f+v;let[y,$,a]=v,c={};a!=null&&!M(a)?Object.keys(a).forEach(h=>{c[h]=l(a[h])}):c=a;let p=i[$](o[y],c);return p==null?f:f+p},""):d,s=l(e);return M(s)&&Le.test(s)?(0,It.default)(s.trim()):M(s)?s.trim():s}}var Ut=Object.defineProperty,Rt=(e,t,r)=>t in e?Ut(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qt=(e,t,r)=>(Rt(e,typeof t!="symbol"?t+"":t,r),r),Bt=class{constructor(){Qt(this,"_events",{})}on(e,t){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){if(!this._hasEvent(e))return;let r=this._events[e].indexOf(t);~r&&this._events[e].splice(r,1)}emit(e,...t){this._hasEvent(e)&&this._events[e].map(r=>r.apply(this,t))}_hasEvent(e){return Array.isArray(this._events[e])}},Ht=Object.defineProperty,Jt=(e,t,r)=>t in e?Ht(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F=(e,t,r)=>(Jt(e,typeof t!="symbol"?t+"":t,r),r),zt=class extends Bt{constructor(e){super(),F(this,"_locale"),F(this,"_locales"),F(this,"_localeData"),F(this,"_messages"),F(this,"_missing"),F(this,"t",this._.bind(this)),this._messages={},this._localeData={},e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(e.locale!=null||e.locales!=null)&&this.activate(e.locale,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,t){this._localeData[e]==null?this._localeData[e]=t:Object.assign(this._localeData[e],t)}loadLocaleData(e,t){t!=null?this._loadLocaleData(e,t):Object.keys(e).forEach(r=>this._loadLocaleData(r,e[r])),this.emit("change")}_load(e,t){this._messages[e]==null?this._messages[e]=t:Object.assign(this._messages[e],t)}load(e,t){t!=null?this._load(e,t):Object.keys(e).forEach(r=>this._load(r,e[r])),this.emit("change")}loadAndActivate({locale:e,locales:t,messages:r}){this._locale=e,this._locales=t||void 0,this._messages[this._locale]=r,this.emit("change")}activate(e,t){this._locale=e,this._locales=t,this.emit("change")}_(e,t={},{message:r,formats:o}={}){M(e)||(t=e.values||t,r=e.message,e=e.id);let n=!this.messages[e],i=this._missing;if(i&&n)return Nt(i)?i(this._locale,e):i;n&&this.emit("missing",{id:e,locale:this._locale});let l=this.messages[e]||r||e;return M(l)&&Le.test(l)?JSON.parse(`"${l}"`):M(l)?l:qt(l,this._locale,this._locales)(t,o)}date(e,t){return Ce(this._locales||this._locale,e,t)}number(e,t){return ie(this._locales||this._locale,e,t)}};function Gt(e={}){return new zt(e)}var le=Gt(),Vt=JSON.parse('{"icon.title.alert-warning":"Gul varseltrekant med utropstegn"}'),Wt=JSON.parse('{"icon.title.alert-warning":"Yellow warning triangle with exclamation point"}'),Zt=JSON.parse('{"icon.title.alert-warning":"Keltainen varoituskolmio, jonka sis\xE4ll\xE4 on huutomerkki"}'),Xt=["en","nb","fi"],Pe="en",De=e=>Xt.find(t=>e===t||e.toLowerCase().includes(t))||Pe;function Kt(){if(typeof window=="undefined"){let e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return De(e)}try{let e=document.documentElement.lang;return De(e)}catch(e){return console.warn("could not detect locale, falling back to source locale",e),Pe}}var Yt=(e,t,r,o)=>e==="nb"?r:e==="fi"?o:t,er=(e,t,r)=>{let o=Kt(),n=Yt(o,e,t,r);le.load(o,n),le.activate(o)};er(Wt,Vt,Zt);var tr=class extends Pt{render(){let e=le.t({message:"Yellow warning triangle with exclamation point",id:"icon.title.alert-warning",comment:"Title for alert warning icon"});return At`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16">${jt(`<title>${e}</title>`)}<path fill="currentColor" d="M.245 12.01 6.159 1.083c.782-1.445 2.9-1.445 3.682 0l5.914 10.925c.734 1.357-.271 2.991-1.84 2.991H2.084C.517 15-.49 13.366.246 12.01Z"></path><path fill="#fff" fill-rule="evenodd" d="M8 3.25a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0V4A.75.75 0 0 1 8 3.25Z" clip-rule="evenodd"></path><path fill="#fff" d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z"></path></svg>`}};customElements.get("w-icon-alert-warning-16")||customElements.define("w-icon-alert-warning-16",tr);import{LitElement as br}from"lit";import{unsafeStatic as pr,html as gr}from"lit/static-html.js";var rr=Object.create,Fe=Object.defineProperty,or=Object.getOwnPropertyDescriptor,ir=Object.getOwnPropertyNames,je=Object.getOwnPropertySymbols,lr=Object.getPrototypeOf,qe=Object.prototype.hasOwnProperty,ar=Object.prototype.propertyIsEnumerable,nr=(e,t)=>{var r={};for(var o in e)qe.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&je)for(var o of je(e))t.indexOf(o)<0&&ar.call(e,o)&&(r[o]=e[o]);return r},Ue=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),sr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ir(t))!qe.call(e,n)&&n!==r&&Fe(e,n,{get:()=>t[n],enumerable:!(o=or(t,n))||o.enumerable});return e},cr=(e,t,r)=>(r=e!=null?rr(lr(e)):{},sr(t||!e||!e.__esModule?Fe(r,"default",{value:e,enumerable:!0}):r,e)),dr=Ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0;var t;(function(r){r.MalformedUnicode="MALFORMED_UNICODE",r.MalformedHexadecimal="MALFORMED_HEXADECIMAL",r.CodePointLimit="CODE_POINT_LIMIT",r.OctalDeprecation="OCTAL_DEPRECATION",r.EndOfString="END_OF_STRING"})(t=e.ErrorType||(e.ErrorType={})),e.errorMessages=new Map([[t.MalformedUnicode,"malformed Unicode character escape sequence"],[t.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[t.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[t.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[t.EndOfString,"malformed escape sequence at end of string"]])}),ur=Ue(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;var t=dr();Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return t.ErrorType}}),Object.defineProperty(e,"errorMessages",{enumerable:!0,get:function(){return t.errorMessages}});function r(a){return a.match(/[^a-f0-9]/i)?NaN:parseInt(a,16)}function o(a,c,p){let h=r(a);if(Number.isNaN(h)||p!==void 0&&p!==a.length)throw new SyntaxError(t.errorMessages.get(c));return h}function n(a){let c=o(a,t.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(c)}function i(a,c){let p=o(a,t.ErrorType.MalformedUnicode,4);if(c!==void 0){let h=o(c,t.ErrorType.MalformedUnicode,4);return String.fromCharCode(p,h)}return String.fromCharCode(p)}function l(a){return a.charAt(0)==="{"&&a.charAt(a.length-1)==="}"}function s(a){if(!l(a))throw new SyntaxError(t.errorMessages.get(t.ErrorType.MalformedUnicode));let c=a.slice(1,-1),p=o(c,t.ErrorType.MalformedUnicode);try{return String.fromCodePoint(p)}catch(h){throw h instanceof RangeError?new SyntaxError(t.errorMessages.get(t.ErrorType.CodePointLimit)):h}}function d(a,c=!1){if(c)throw new SyntaxError(t.errorMessages.get(t.ErrorType.OctalDeprecation));let p=parseInt(a,8);return String.fromCharCode(p)}var f=new Map([["b","\b"],["f","\f"],["n",`
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function v(a){return f.get(a)||a}var y=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function $(a,c=!1){return a.replace(y,function(p,h,_,E,O,A,D,w,S){if(h!==void 0)return"\\";if(_!==void 0)return n(_);if(E!==void 0)return s(E);if(O!==void 0)return i(O,A);if(D!==void 0)return i(D);if(w==="0")return"\0";if(w!==void 0)return d(w,!c);if(S!==void 0)return v(S);throw new SyntaxError(t.errorMessages.get(t.ErrorType.EndOfString))})}e.unraw=$,e.default=$}),hr=cr(ur(),1),T=e=>typeof e=="string",fr=e=>typeof e=="function",Ae=new Map;function ce(e){return[...Array.isArray(e)?e:[e],"en"]}function Re(e,t,r){let o=ce(e);return V(()=>W("date",o,r),()=>new Intl.DateTimeFormat(o,r)).format(T(t)?new Date(t):t)}function ne(e,t,r){let o=ce(e);return V(()=>W("number",o,r),()=>new Intl.NumberFormat(o,r)).format(t)}function Ie(e,t,r,o){var n=o,{offset:i=0}=n,l=nr(n,["offset"]),s,d;let f=ce(e),v=t?V(()=>W("plural-ordinal",f),()=>new Intl.PluralRules(f,{type:"ordinal"})):V(()=>W("plural-cardinal",f),()=>new Intl.PluralRules(f,{type:"cardinal"}));return(d=(s=l[r])!=null?s:l[v.select(r-i)])!=null?d:l.other}function V(e,t){let r=e(),o=Ae.get(r);return o||(o=t(),Ae.set(r,o)),o}function W(e,t,r){let o=t.join("-");return`${e}-${o}-${JSON.stringify(r)}`}var Qe=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,mr=(e,t,r={})=>{t=t||e;let o=i=>T(i)?r[i]||{style:i}:i,n=(i,l)=>{let s=Object.keys(r).length?o("number"):{},d=ne(t,i,s);return l.replace("#",d)};return{plural:(i,l)=>{let{offset:s=0}=l,d=Ie(t,!1,i,l);return n(i-s,d)},selectordinal:(i,l)=>{let{offset:s=0}=l,d=Ie(t,!0,i,l);return n(i-s,d)},select:(i,l)=>{var s;return(s=l[i])!=null?s:l.other},number:(i,l)=>ne(t,i,o(l)),date:(i,l)=>Re(t,i,o(l)),undefined:i=>i}};function vr(e,t,r){return(o,n={})=>{let i=mr(t,r,n),l=d=>Array.isArray(d)?d.reduce((f,v)=>{if(T(v))return f+v;let[y,$,a]=v,c={};a!=null&&!T(a)?Object.keys(a).forEach(h=>{c[h]=l(a[h])}):c=a;let p=i[$](o[y],c);return p==null?f:f+p},""):d,s=l(e);return T(s)&&Qe.test(s)?(0,hr.default)(s.trim()):T(s)?s.trim():s}}var xr=Object.defineProperty,$r=(e,t,r)=>t in e?xr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yr=(e,t,r)=>($r(e,typeof t!="symbol"?t+"":t,r),r),wr=class{constructor(){yr(this,"_events",{})}on(e,t){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){if(!this._hasEvent(e))return;let r=this._events[e].indexOf(t);~r&&this._events[e].splice(r,1)}emit(e,...t){this._hasEvent(e)&&this._events[e].map(r=>r.apply(this,t))}_hasEvent(e){return Array.isArray(this._events[e])}},kr=Object.defineProperty,_r=(e,t,r)=>t in e?kr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,q=(e,t,r)=>(_r(e,typeof t!="symbol"?t+"":t,r),r),Er=class extends wr{constructor(e){super(),q(this,"_locale"),q(this,"_locales"),q(this,"_localeData"),q(this,"_messages"),q(this,"_missing"),q(this,"t",this._.bind(this)),this._messages={},this._localeData={},e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(e.locale!=null||e.locales!=null)&&this.activate(e.locale,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,t){this._localeData[e]==null?this._localeData[e]=t:Object.assign(this._localeData[e],t)}loadLocaleData(e,t){t!=null?this._loadLocaleData(e,t):Object.keys(e).forEach(r=>this._loadLocaleData(r,e[r])),this.emit("change")}_load(e,t){this._messages[e]==null?this._messages[e]=t:Object.assign(this._messages[e],t)}load(e,t){t!=null?this._load(e,t):Object.keys(e).forEach(r=>this._load(r,e[r])),this.emit("change")}loadAndActivate({locale:e,locales:t,messages:r}){this._locale=e,this._locales=t||void 0,this._messages[this._locale]=r,this.emit("change")}activate(e,t){this._locale=e,this._locales=t,this.emit("change")}_(e,t={},{message:r,formats:o}={}){T(e)||(t=e.values||t,r=e.message,e=e.id);let n=!this.messages[e],i=this._missing;if(i&&n)return fr(i)?i(this._locale,e):i;n&&this.emit("missing",{id:e,locale:this._locale});let l=this.messages[e]||r||e;return T(l)&&Qe.test(l)?JSON.parse(`"${l}"`):T(l)?l:vr(l,this._locale,this._locales)(t,o)}date(e,t){return Re(this._locales||this._locale,e,t)}number(e,t){return ne(this._locales||this._locale,e,t)}};function Or(e={}){return new Er(e)}var se=Or(),Dr=JSON.parse('{"icon.title.alert-error":"R\xF8d \xE5ttekant med hvitt utropstegn"}'),Sr=JSON.parse('{"icon.title.alert-error":"Red octagon with white exclamation point"}'),Mr=JSON.parse('{"icon.title.alert-error":"Punainen kahdeksankulmio, jonka sis\xE4ll\xE4 on valkoinen huutomerkki"}'),Tr=["en","nb","fi"],Be="en",Ne=e=>Tr.find(t=>e===t||e.toLowerCase().includes(t))||Be;function Cr(){if(typeof window=="undefined"){let e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return Ne(e)}try{let e=document.documentElement.lang;return Ne(e)}catch(e){return console.warn("could not detect locale, falling back to source locale",e),Be}}var Lr=(e,t,r,o)=>e==="nb"?r:e==="fi"?o:t,Pr=(e,t,r)=>{let o=Cr(),n=Lr(o,e,t,r);se.load(o,n),se.activate(o)};Pr(Sr,Dr,Mr);var jr=class extends br{render(){let e=se.t({message:"Red octagon with white exclamation point",id:"icon.title.alert-error",comment:"Title for alert error icon"});return gr`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16">${pr(`<title>${e}</title>`)}<path fill="currentColor" d="M4.1.586A2 2 0 0 1 5.516 0h4.97A2 2 0 0 1 11.9.586L15.413 4.1A2 2 0 0 1 16 5.514v4.97a2 2 0 0 1-.586 1.415L11.9 15.413a2 2 0 0 1-1.415.586h-4.97a2 2 0 0 1-1.414-.586L.586 11.9A2 2 0 0 1 0 10.485v-4.97A2 2 0 0 1 .586 4.1L4.1.586Z"></path><path fill="#fff" fill-rule="evenodd" d="M8 3.25a.75.75 0 0 1 .75.75v5a.75.75 0 1 1-1.5 0V4A.75.75 0 0 1 8 3.25Z" clip-rule="evenodd"></path><path fill="#fff" d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z"></path></svg>`}};customElements.get("w-icon-alert-error-16")||customElements.define("w-icon-alert-error-16",jr);import{LitElement as Jr}from"lit";import{unsafeStatic as zr,html as Gr}from"lit/static-html.js";var Ar=Object.create,Ve=Object.defineProperty,Ir=Object.getOwnPropertyDescriptor,Nr=Object.getOwnPropertyNames,He=Object.getOwnPropertySymbols,Fr=Object.getPrototypeOf,We=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable,Ur=(e,t)=>{var r={};for(var o in e)We.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&He)for(var o of He(e))t.indexOf(o)<0&&qr.call(e,o)&&(r[o]=e[o]);return r},Ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Rr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Nr(t))!We.call(e,n)&&n!==r&&Ve(e,n,{get:()=>t[n],enumerable:!(o=Ir(t,n))||o.enumerable});return e},Qr=(e,t,r)=>(r=e!=null?Ar(Fr(e)):{},Rr(t||!e||!e.__esModule?Ve(r,"default",{value:e,enumerable:!0}):r,e)),Br=Ze(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0;var t;(function(r){r.MalformedUnicode="MALFORMED_UNICODE",r.MalformedHexadecimal="MALFORMED_HEXADECIMAL",r.CodePointLimit="CODE_POINT_LIMIT",r.OctalDeprecation="OCTAL_DEPRECATION",r.EndOfString="END_OF_STRING"})(t=e.ErrorType||(e.ErrorType={})),e.errorMessages=new Map([[t.MalformedUnicode,"malformed Unicode character escape sequence"],[t.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[t.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[t.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[t.EndOfString,"malformed escape sequence at end of string"]])}),Hr=Ze(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;var t=Br();Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return t.ErrorType}}),Object.defineProperty(e,"errorMessages",{enumerable:!0,get:function(){return t.errorMessages}});function r(a){return a.match(/[^a-f0-9]/i)?NaN:parseInt(a,16)}function o(a,c,p){let h=r(a);if(Number.isNaN(h)||p!==void 0&&p!==a.length)throw new SyntaxError(t.errorMessages.get(c));return h}function n(a){let c=o(a,t.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(c)}function i(a,c){let p=o(a,t.ErrorType.MalformedUnicode,4);if(c!==void 0){let h=o(c,t.ErrorType.MalformedUnicode,4);return String.fromCharCode(p,h)}return String.fromCharCode(p)}function l(a){return a.charAt(0)==="{"&&a.charAt(a.length-1)==="}"}function s(a){if(!l(a))throw new SyntaxError(t.errorMessages.get(t.ErrorType.MalformedUnicode));let c=a.slice(1,-1),p=o(c,t.ErrorType.MalformedUnicode);try{return String.fromCodePoint(p)}catch(h){throw h instanceof RangeError?new SyntaxError(t.errorMessages.get(t.ErrorType.CodePointLimit)):h}}function d(a,c=!1){if(c)throw new SyntaxError(t.errorMessages.get(t.ErrorType.OctalDeprecation));let p=parseInt(a,8);return String.fromCharCode(p)}var f=new Map([["b","\b"],["f","\f"],["n",`
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function v(a){return f.get(a)||a}var y=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function $(a,c=!1){return a.replace(y,function(p,h,_,E,O,A,D,w,S){if(h!==void 0)return"\\";if(_!==void 0)return n(_);if(E!==void 0)return s(E);if(O!==void 0)return i(O,A);if(D!==void 0)return i(D);if(w==="0")return"\0";if(w!==void 0)return d(w,!c);if(S!==void 0)return v(S);throw new SyntaxError(t.errorMessages.get(t.ErrorType.EndOfString))})}e.unraw=$,e.default=$}),Vr=Qr(Hr(),1),C=e=>typeof e=="string",Wr=e=>typeof e=="function",Je=new Map;function be(e){return[...Array.isArray(e)?e:[e],"en"]}function Xe(e,t,r){let o=be(e);return Z(()=>X("date",o,r),()=>new Intl.DateTimeFormat(o,r)).format(C(t)?new Date(t):t)}function de(e,t,r){let o=be(e);return Z(()=>X("number",o,r),()=>new Intl.NumberFormat(o,r)).format(t)}function ze(e,t,r,o){var n=o,{offset:i=0}=n,l=Ur(n,["offset"]),s,d;let f=be(e),v=t?Z(()=>X("plural-ordinal",f),()=>new Intl.PluralRules(f,{type:"ordinal"})):Z(()=>X("plural-cardinal",f),()=>new Intl.PluralRules(f,{type:"cardinal"}));return(d=(s=l[r])!=null?s:l[v.select(r-i)])!=null?d:l.other}function Z(e,t){let r=e(),o=Je.get(r);return o||(o=t(),Je.set(r,o)),o}function X(e,t,r){let o=t.join("-");return`${e}-${o}-${JSON.stringify(r)}`}var Ke=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,Zr=(e,t,r={})=>{t=t||e;let o=i=>C(i)?r[i]||{style:i}:i,n=(i,l)=>{let s=Object.keys(r).length?o("number"):{},d=de(t,i,s);return l.replace("#",d)};return{plural:(i,l)=>{let{offset:s=0}=l,d=ze(t,!1,i,l);return n(i-s,d)},selectordinal:(i,l)=>{let{offset:s=0}=l,d=ze(t,!0,i,l);return n(i-s,d)},select:(i,l)=>{var s;return(s=l[i])!=null?s:l.other},number:(i,l)=>de(t,i,o(l)),date:(i,l)=>Xe(t,i,o(l)),undefined:i=>i}};function Xr(e,t,r){return(o,n={})=>{let i=Zr(t,r,n),l=d=>Array.isArray(d)?d.reduce((f,v)=>{if(C(v))return f+v;let[y,$,a]=v,c={};a!=null&&!C(a)?Object.keys(a).forEach(h=>{c[h]=l(a[h])}):c=a;let p=i[$](o[y],c);return p==null?f:f+p},""):d,s=l(e);return C(s)&&Ke.test(s)?(0,Vr.default)(s.trim()):C(s)?s.trim():s}}var Kr=Object.defineProperty,Yr=(e,t,r)=>t in e?Kr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,eo=(e,t,r)=>(Yr(e,typeof t!="symbol"?t+"":t,r),r),to=class{constructor(){eo(this,"_events",{})}on(e,t){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){if(!this._hasEvent(e))return;let r=this._events[e].indexOf(t);~r&&this._events[e].splice(r,1)}emit(e,...t){this._hasEvent(e)&&this._events[e].map(r=>r.apply(this,t))}_hasEvent(e){return Array.isArray(this._events[e])}},ro=Object.defineProperty,oo=(e,t,r)=>t in e?ro(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,U=(e,t,r)=>(oo(e,typeof t!="symbol"?t+"":t,r),r),io=class extends to{constructor(e){super(),U(this,"_locale"),U(this,"_locales"),U(this,"_localeData"),U(this,"_messages"),U(this,"_missing"),U(this,"t",this._.bind(this)),this._messages={},this._localeData={},e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(e.locale!=null||e.locales!=null)&&this.activate(e.locale,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,t){this._localeData[e]==null?this._localeData[e]=t:Object.assign(this._localeData[e],t)}loadLocaleData(e,t){t!=null?this._loadLocaleData(e,t):Object.keys(e).forEach(r=>this._loadLocaleData(r,e[r])),this.emit("change")}_load(e,t){this._messages[e]==null?this._messages[e]=t:Object.assign(this._messages[e],t)}load(e,t){t!=null?this._load(e,t):Object.keys(e).forEach(r=>this._load(r,e[r])),this.emit("change")}loadAndActivate({locale:e,locales:t,messages:r}){this._locale=e,this._locales=t||void 0,this._messages[this._locale]=r,this.emit("change")}activate(e,t){this._locale=e,this._locales=t,this.emit("change")}_(e,t={},{message:r,formats:o}={}){C(e)||(t=e.values||t,r=e.message,e=e.id);let n=!this.messages[e],i=this._missing;if(i&&n)return Wr(i)?i(this._locale,e):i;n&&this.emit("missing",{id:e,locale:this._locale});let l=this.messages[e]||r||e;return C(l)&&Ke.test(l)?JSON.parse(`"${l}"`):C(l)?l:Xr(l,this._locale,this._locales)(t,o)}date(e,t){return Xe(this._locales||this._locale,e,t)}number(e,t){return de(this._locales||this._locale,e,t)}};function lo(e={}){return new io(e)}var ue=lo(),ao=JSON.parse('{"icon.title.alert-success":"Gr\xF8nn sirkel med sjekkmerke"}'),no=JSON.parse('{"icon.title.alert-success":"Green circle with checkmark"}'),so=JSON.parse('{"icon.title.alert-success":"Vihre\xE4 ympyr\xE4, jonka sis\xE4ll\xE4 on valintamerkki"}'),co=["en","nb","fi"],Ye="en",Ge=e=>co.find(t=>e===t||e.toLowerCase().includes(t))||Ye;function uo(){if(typeof window=="undefined"){let e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return Ge(e)}try{let e=document.documentElement.lang;return Ge(e)}catch(e){return console.warn("could not detect locale, falling back to source locale",e),Ye}}var bo=(e,t,r,o)=>e==="nb"?r:e==="fi"?o:t,po=(e,t,r)=>{let o=uo(),n=bo(o,e,t,r);ue.load(o,n),ue.activate(o)};po(no,ao,so);var go=class extends Jr{render(){let e=ue.t({message:"Green circle with checkmark",id:"icon.title.alert-success",comment:"Title for alert success icon"});return Gr`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16">${zr(`<title>${e}</title>`)}<circle cx="8" cy="8" r="8" fill="currentColor" transform="rotate(180 8 8)"></circle><path fill="#fff" fill-rule="evenodd" d="M11.498 4.94a.75.75 0 0 1 .063 1.058l-4 4.5a.75.75 0 0 1-1.091.032l-2-2a.75.75 0 0 1 1.06-1.06l1.438 1.437 3.471-3.905a.75.75 0 0 1 1.06-.063Z" clip-rule="evenodd"></path></svg>`}};customElements.get("w-icon-alert-success-16")||customElements.define("w-icon-alert-success-16",go);import{LitElement as Eo}from"lit";import{unsafeStatic as Oo,html as Do}from"lit/static-html.js";var ho=Object.create,it=Object.defineProperty,fo=Object.getOwnPropertyDescriptor,mo=Object.getOwnPropertyNames,et=Object.getOwnPropertySymbols,vo=Object.getPrototypeOf,lt=Object.prototype.hasOwnProperty,xo=Object.prototype.propertyIsEnumerable,$o=(e,t)=>{var r={};for(var o in e)lt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&et)for(var o of et(e))t.indexOf(o)<0&&xo.call(e,o)&&(r[o]=e[o]);return r},at=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),yo=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of mo(t))!lt.call(e,n)&&n!==r&&it(e,n,{get:()=>t[n],enumerable:!(o=fo(t,n))||o.enumerable});return e},wo=(e,t,r)=>(r=e!=null?ho(vo(e)):{},yo(t||!e||!e.__esModule?it(r,"default",{value:e,enumerable:!0}):r,e)),ko=at(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0;var t;(function(r){r.MalformedUnicode="MALFORMED_UNICODE",r.MalformedHexadecimal="MALFORMED_HEXADECIMAL",r.CodePointLimit="CODE_POINT_LIMIT",r.OctalDeprecation="OCTAL_DEPRECATION",r.EndOfString="END_OF_STRING"})(t=e.ErrorType||(e.ErrorType={})),e.errorMessages=new Map([[t.MalformedUnicode,"malformed Unicode character escape sequence"],[t.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[t.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[t.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[t.EndOfString,"malformed escape sequence at end of string"]])}),_o=at(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;var t=ko();Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return t.ErrorType}}),Object.defineProperty(e,"errorMessages",{enumerable:!0,get:function(){return t.errorMessages}});function r(a){return a.match(/[^a-f0-9]/i)?NaN:parseInt(a,16)}function o(a,c,p){let h=r(a);if(Number.isNaN(h)||p!==void 0&&p!==a.length)throw new SyntaxError(t.errorMessages.get(c));return h}function n(a){let c=o(a,t.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(c)}function i(a,c){let p=o(a,t.ErrorType.MalformedUnicode,4);if(c!==void 0){let h=o(c,t.ErrorType.MalformedUnicode,4);return String.fromCharCode(p,h)}return String.fromCharCode(p)}function l(a){return a.charAt(0)==="{"&&a.charAt(a.length-1)==="}"}function s(a){if(!l(a))throw new SyntaxError(t.errorMessages.get(t.ErrorType.MalformedUnicode));let c=a.slice(1,-1),p=o(c,t.ErrorType.MalformedUnicode);try{return String.fromCodePoint(p)}catch(h){throw h instanceof RangeError?new SyntaxError(t.errorMessages.get(t.ErrorType.CodePointLimit)):h}}function d(a,c=!1){if(c)throw new SyntaxError(t.errorMessages.get(t.ErrorType.OctalDeprecation));let p=parseInt(a,8);return String.fromCharCode(p)}var f=new Map([["b","\b"],["f","\f"],["n",`
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function v(a){return f.get(a)||a}var y=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function $(a,c=!1){return a.replace(y,function(p,h,_,E,O,A,D,w,S){if(h!==void 0)return"\\";if(_!==void 0)return n(_);if(E!==void 0)return s(E);if(O!==void 0)return i(O,A);if(D!==void 0)return i(D);if(w==="0")return"\0";if(w!==void 0)return d(w,!c);if(S!==void 0)return v(S);throw new SyntaxError(t.errorMessages.get(t.ErrorType.EndOfString))})}e.unraw=$,e.default=$}),So=wo(_o(),1),L=e=>typeof e=="string",Mo=e=>typeof e=="function",tt=new Map;function he(e){return[...Array.isArray(e)?e:[e],"en"]}function nt(e,t,r){let o=he(e);return K(()=>Y("date",o,r),()=>new Intl.DateTimeFormat(o,r)).format(L(t)?new Date(t):t)}function pe(e,t,r){let o=he(e);return K(()=>Y("number",o,r),()=>new Intl.NumberFormat(o,r)).format(t)}function rt(e,t,r,o){var n=o,{offset:i=0}=n,l=$o(n,["offset"]),s,d;let f=he(e),v=t?K(()=>Y("plural-ordinal",f),()=>new Intl.PluralRules(f,{type:"ordinal"})):K(()=>Y("plural-cardinal",f),()=>new Intl.PluralRules(f,{type:"cardinal"}));return(d=(s=l[r])!=null?s:l[v.select(r-i)])!=null?d:l.other}function K(e,t){let r=e(),o=tt.get(r);return o||(o=t(),tt.set(r,o)),o}function Y(e,t,r){let o=t.join("-");return`${e}-${o}-${JSON.stringify(r)}`}var st=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,To=(e,t,r={})=>{t=t||e;let o=i=>L(i)?r[i]||{style:i}:i,n=(i,l)=>{let s=Object.keys(r).length?o("number"):{},d=pe(t,i,s);return l.replace("#",d)};return{plural:(i,l)=>{let{offset:s=0}=l,d=rt(t,!1,i,l);return n(i-s,d)},selectordinal:(i,l)=>{let{offset:s=0}=l,d=rt(t,!0,i,l);return n(i-s,d)},select:(i,l)=>{var s;return(s=l[i])!=null?s:l.other},number:(i,l)=>pe(t,i,o(l)),date:(i,l)=>nt(t,i,o(l)),undefined:i=>i}};function Co(e,t,r){return(o,n={})=>{let i=To(t,r,n),l=d=>Array.isArray(d)?d.reduce((f,v)=>{if(L(v))return f+v;let[y,$,a]=v,c={};a!=null&&!L(a)?Object.keys(a).forEach(h=>{c[h]=l(a[h])}):c=a;let p=i[$](o[y],c);return p==null?f:f+p},""):d,s=l(e);return L(s)&&st.test(s)?(0,So.default)(s.trim()):L(s)?s.trim():s}}var Lo=Object.defineProperty,Po=(e,t,r)=>t in e?Lo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jo=(e,t,r)=>(Po(e,typeof t!="symbol"?t+"":t,r),r),Ao=class{constructor(){jo(this,"_events",{})}on(e,t){return this._hasEvent(e)||(this._events[e]=[]),this._events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){if(!this._hasEvent(e))return;let r=this._events[e].indexOf(t);~r&&this._events[e].splice(r,1)}emit(e,...t){this._hasEvent(e)&&this._events[e].map(r=>r.apply(this,t))}_hasEvent(e){return Array.isArray(this._events[e])}},Io=Object.defineProperty,No=(e,t,r)=>t in e?Io(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t,r)=>(No(e,typeof t!="symbol"?t+"":t,r),r),Fo=class extends Ao{constructor(e){super(),R(this,"_locale"),R(this,"_locales"),R(this,"_localeData"),R(this,"_messages"),R(this,"_missing"),R(this,"t",this._.bind(this)),this._messages={},this._localeData={},e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(e.locale!=null||e.locales!=null)&&this.activate(e.locale,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,t){this._localeData[e]==null?this._localeData[e]=t:Object.assign(this._localeData[e],t)}loadLocaleData(e,t){t!=null?this._loadLocaleData(e,t):Object.keys(e).forEach(r=>this._loadLocaleData(r,e[r])),this.emit("change")}_load(e,t){this._messages[e]==null?this._messages[e]=t:Object.assign(this._messages[e],t)}load(e,t){t!=null?this._load(e,t):Object.keys(e).forEach(r=>this._load(r,e[r])),this.emit("change")}loadAndActivate({locale:e,locales:t,messages:r}){this._locale=e,this._locales=t||void 0,this._messages[this._locale]=r,this.emit("change")}activate(e,t){this._locale=e,this._locales=t,this.emit("change")}_(e,t={},{message:r,formats:o}={}){L(e)||(t=e.values||t,r=e.message,e=e.id);let n=!this.messages[e],i=this._missing;if(i&&n)return Mo(i)?i(this._locale,e):i;n&&this.emit("missing",{id:e,locale:this._locale});let l=this.messages[e]||r||e;return L(l)&&st.test(l)?JSON.parse(`"${l}"`):L(l)?l:Co(l,this._locale,this._locales)(t,o)}date(e,t){return nt(this._locales||this._locale,e,t)}number(e,t){return pe(this._locales||this._locale,e,t)}};function qo(e={}){return new Fo(e)}var ge=qo(),Uo=JSON.parse('{"icon.title.close":"Kryss"}'),Ro=JSON.parse('{"icon.title.close":"Cross"}'),Qo=JSON.parse('{"icon.title.close":"Risti"}'),Bo=["en","nb","fi"],ct="en",ot=e=>Bo.find(t=>e===t||e.toLowerCase().includes(t))||ct;function Ho(){if(typeof window=="undefined"){let e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return ot(e)}try{let e=document.documentElement.lang;return ot(e)}catch(e){return console.warn("could not detect locale, falling back to source locale",e),ct}}var Jo=(e,t,r,o)=>e==="nb"?r:e==="fi"?o:t,zo=(e,t,r)=>{let o=Ho(),n=Jo(o,e,t,r);ge.load(o,n),ge.activate(o)};zo(Ro,Uo,Qo);var Go=class extends Eo{render(){let e=ge.t({message:"Cross",id:"icon.title.close",comment:"Title for close icon"});return Do`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16">${Oo(`<title>${e}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m12.5 3.5-9 9M3.5 3.5l9 9"></path></svg>`}};customElements.get("w-icon-close-16")||customElements.define("w-icon-close-16",Go);var ut=e=>{let t={};for(let[r,o]of Object.entries(e))for(let n of r.split(" "))t[n]=o;return Wo(t)},j={success:"success",error:"error",warning:"warning"},B=class extends dt{constructor(){super(),this.id=Date.now().toString(36)+Math.random().toString(36).slice(2,5),this.type="success",this.text="",this.canclose=!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}updated(){!this._expanded&&this._wrapper&&we(this._wrapper,()=>this._expanded=!0)}get _primaryClasses(){return ut({[k.toast]:!0,[k.positive]:this.type===j.success,[k.warning]:this.type===j.warning,[k.negative]:this.type===j.error})}get _iconClasses(){return ut({[k.icon]:!0,[k.iconPositive]:this.type==j.success,[k.iconWarning]:this.type===j.warning,[k.iconNegative]:this.type===j.error})}get _wrapper(){var t,r;return(r=(t=this.renderRoot)==null?void 0:t.querySelector("section"))!=null?r:null}get _warning(){return this.type===j.warning}get _error(){return this.type===j.error}get _role(){return this._error||this._warning?"alert":"status"}get _typeLabel(){return this._warning?"Varsel":this._error?"Feil":"Vellykket"}get _iconMarkup(){return this._warning?Q`<w-icon-alert-warning-16></w-icon-alert-warning-16>`:this._error?Q`<w-icon-alert-error-16></w-icon-alert-error-16>`:Q`<w-icon-alert-success-16></w-icon-alert-success-16>`}async collapse(){return new Promise(t=>{this._expanded&&this._wrapper?ke(this._wrapper,t):t()})}close(){let t=new CustomEvent("close",{detail:{id:this.id},bubbles:!0,composed:!0});this.updateComplete.then(()=>this.dispatchEvent(t))}render(){return this.text?Q` <section class="${k.wrapper}" aria-label="${this._typeLabel}">
<div class="${this._primaryClasses}">
<div class="${this._iconClasses}">${this._iconMarkup}</div>
<div role="${this._role}" class="${d.content}">
<div role="${this._role}" class="${k.content}">
<p>${this.text}</p>
</div>
${N(this.canclose===!0,()=>$`
<button class="${d.close}" @click="${this.close}">
${Zo(this.canclose===!0,()=>Q`
<button class="${k.close}" @click="${this.close}">
<w-icon-close-16></w-icon-close-16>

@@ -13,16 +17,16 @@ </button>

</div>
</section>`:$``}};g(x,"styles",[B.styles,F`
</section>`:Q``}};N(B,"styles",[dt.styles,Vo`
:host {
display: block;
}
`]),g(x,"properties",{id:{type:String,attribute:!0,reflect:!0},type:{type:String,attribute:!0,reflect:!0},text:{type:String,attribute:!0,reflect:!0},canclose:{type:Boolean,attribute:!0,reflect:!0}});customElements.get("w-toast")||customElements.define("w-toast",x);import{css as G,html as P}from"lit";import I from"@warp-ds/elements-core";import{repeat as J}from"lit/directives/repeat.js";var h=class extends I{constructor(){super(),this._toasts=new Map}connectedCallback(){super.connectedCallback(),this._interval=setInterval(()=>{let e=[],l=[];for(let s of this._toasts)Date.now()<=s[1].duration?e.push(s):l.push(s);let c=[];for(let[s]of l){let m=this.renderRoot.querySelector(`#${s}`);c.push(m.collapse())}Promise.all(c).then(()=>{e.length!=this._toasts.size&&(this._toasts=new Map(e))})},500)}disconnectedCallback(){super.disconnectedCallback(),this._interval&&clearTimeout(this._interval)}static init(){let e=document.querySelector("w-toast-container");return e||(e=document.createElement("w-toast-container"),document.body.appendChild(e)),e}get _toastsArray(){return Array.from(this._toasts).map(([,e])=>e)}get(e){if(!e)throw new Error('undefined "id" given when attempting to retrieve toast');if(typeof e!="string"&&!Number.isInteger(e))throw new Error('"id" must be number or string when attempting to retrieve toast');return this._toasts.get(e)}set(e){if(!e.id)throw new Error('invalid or undefined "id" on toast object');let l=this._toasts.set(e.id,S(p({},e),{duration:Date.now()+(e.duration||5e3)}));return this._toasts=new Map(Array.from(this._toasts)),l}async del(e){if(!e)throw new Error('undefined "id" given when attempting to retrieve toast');if(typeof e!="string"&&!Number.isInteger(e))throw new Error('"id" must be number or string when attempting to retrieve toast');let l=this.renderRoot.querySelector(`#${e}`);if(!this._toasts.has(e))return!1;await l.collapse();let c=this._toasts.delete(e);return this._toasts=new Map(Array.from(this._toasts)),c}render(){return P`
<aside class="${v.container}">
<div class="${v.toaster}" id="w-toast-container-list">
${J(this._toastsArray,e=>e.id,e=>P` <w-toast
class="${v.content}"
id="${e.id}"
type="${e.type}"
text="${e.text}"
?canclose=${e.canclose}
@close=${()=>this.del(e.id)}
`]),N(B,"properties",{id:{type:String,attribute:!0,reflect:!0},type:{type:String,attribute:!0,reflect:!0},text:{type:String,attribute:!0,reflect:!0},canclose:{type:Boolean,attribute:!0,reflect:!0}});customElements.get("w-toast")||customElements.define("w-toast",B);import{css as Xo,html as bt}from"lit";import pt from"@warp-ds/elements-core";import{repeat as Ko}from"lit/directives/repeat.js";var H=class extends pt{constructor(){super(),this._toasts=new Map}connectedCallback(){super.connectedCallback(),this._interval=setInterval(()=>{let t=[],r=[];for(let n of this._toasts)Date.now()<=n[1].duration?t.push(n):r.push(n);let o=[];for(let[n]of r){let i=this.renderRoot.querySelector(`#${n}`);o.push(i.collapse())}Promise.all(o).then(()=>{t.length!=this._toasts.size&&(this._toasts=new Map(t))})},500)}disconnectedCallback(){super.disconnectedCallback(),this._interval&&clearTimeout(this._interval)}static init(){let t=document.querySelector("w-toast-container");return t||(t=document.createElement("w-toast-container"),document.body.appendChild(t)),t}get _toastsArray(){return Array.from(this._toasts).map(([,t])=>t)}get(t){if(!t)throw new Error('undefined "id" given when attempting to retrieve toast');if(typeof t!="string"&&!Number.isInteger(t))throw new Error('"id" must be number or string when attempting to retrieve toast');return this._toasts.get(t)}set(t){if(!t.id)throw new Error('invalid or undefined "id" on toast object');let r=this._toasts.set(t.id,me(I({},t),{duration:Date.now()+(t.duration||5e3)}));return this._toasts=new Map(Array.from(this._toasts)),r}async del(t){if(!t)throw new Error('undefined "id" given when attempting to retrieve toast');if(typeof t!="string"&&!Number.isInteger(t))throw new Error('"id" must be number or string when attempting to retrieve toast');let r=this.renderRoot.querySelector(`#${t}`);if(!this._toasts.has(t))return!1;await r.collapse();let o=this._toasts.delete(t);return this._toasts=new Map(Array.from(this._toasts)),o}render(){return bt`
<aside class="${J.container}">
<div class="${J.toaster}" id="w-toast-container-list">
${Ko(this._toastsArray,t=>t.id,t=>bt` <w-toast
class="${J.content}"
id="${t.id}"
type="${t.type}"
text="${t.text}"
?canclose=${t.canclose}
@close=${()=>this.del(t.id)}
>

@@ -32,7 +36,7 @@ </w-toast>`)}

</aside>
`}};g(h,"styles",[I.styles,G`
`}};N(H,"styles",[pt.styles,Xo`
:host {
display: block;
}
`]),g(h,"properties",{_toasts:{state:!0}});customElements.get("w-toast-container")||customElements.define("w-toast-container",h);var f=typeof window!="undefined";function K(o,e){if(!f)return;let l=customElements.get("w-toast-container").init(),c=p({id:Date.now().toString(36)+Math.random().toString(36).slice(2,5),text:o,duration:5e3,type:"success"},e);return l.set(c),c}function X(o){return f?customElements.get("w-toast-container").init().del(o):void 0}function Y(o,e){if(!f)return;let l=customElements.get("w-toast-container").init();return l.set(p(p({},l.get(o)),e)),l.get(o)}export{x as WarpToast,h as WarpToastContainer,X as removeToast,K as toast,Y as updateToast};
`]),N(H,"properties",{_toasts:{state:!0}});customElements.get("w-toast-container")||customElements.define("w-toast-container",H);var ee=typeof window!="undefined";function Yo(e,t){if(!ee)return;let r=customElements.get("w-toast-container").init(),o=I({id:Date.now().toString(36)+Math.random().toString(36).slice(2,5),text:e,duration:5e3,type:"success"},t);return r.set(o),o}function ei(e){return ee?customElements.get("w-toast-container").init().del(e):void 0}function ti(e,t){if(!ee)return;let r=customElements.get("w-toast-container").init();return r.set(I(I({},r.get(e)),t)),r.get(e)}export{B as WarpToast,H as WarpToastContainer,ei as removeToast,Yo as toast,ti as updateToast};
//# sourceMappingURL=index.js.map
{
"name": "@warp-ds/elements",
"type": "module",
"version": "1.2.0-next.6",
"version": "1.2.0-next.7",
"description": "Custom elements for Warp",

@@ -6,0 +6,0 @@ "exports": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc