@warp-ds/elements 2.2.0-next.12 → 2.2.0-next.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +2082 -920
- package/dist/packages/attention/index.js +11 -11
- package/dist/packages/attention/index.js.map +4 -4
- package/dist/packages/breadcrumbs/index.js.map +1 -1
- package/dist/packages/combobox/combobox.stories.d.ts +14 -0
- package/dist/packages/combobox/combobox.stories.js +95 -0
- package/dist/packages/combobox/index.d.ts +100 -0
- package/dist/packages/combobox/index.js +2492 -0
- package/dist/packages/combobox/index.js.map +7 -0
- package/dist/packages/combobox/locales/da/messages.d.mts +1 -0
- package/dist/packages/combobox/locales/da/messages.mjs +1 -0
- package/dist/packages/combobox/locales/en/messages.d.mts +1 -0
- package/dist/packages/combobox/locales/en/messages.mjs +1 -0
- package/dist/packages/combobox/locales/fi/messages.d.mts +1 -0
- package/dist/packages/combobox/locales/fi/messages.mjs +1 -0
- package/dist/packages/combobox/locales/nb/messages.d.mts +1 -0
- package/dist/packages/combobox/locales/nb/messages.mjs +1 -0
- package/dist/packages/combobox/locales/sv/messages.d.mts +1 -0
- package/dist/packages/combobox/locales/sv/messages.mjs +1 -0
- package/dist/packages/combobox/styles.d.ts +1 -0
- package/dist/packages/combobox/styles.js +2 -0
- package/dist/packages/expandable/index.d.ts +2 -0
- package/dist/packages/expandable/index.js +20 -11
- package/dist/packages/expandable/index.js.map +4 -4
- package/dist/packages/slider/Slider.d.ts +2 -0
- package/dist/packages/slider/Slider.js +8 -0
- package/dist/packages/slider/SliderThumb.d.ts +2 -0
- package/dist/packages/slider/SliderThumb.js +8 -0
- package/dist/packages/slider/index.d.ts +2 -0
- package/dist/packages/slider/index.js +2791 -0
- package/dist/packages/slider/index.js.map +7 -0
- package/dist/packages/slider/oddbird-css-anchor-positioning.d.ts +2 -0
- package/dist/packages/slider/oddbird-css-anchor-positioning.js +3 -0
- package/dist/packages/slider/slider-thumb.d.ts +60 -0
- package/dist/packages/slider/slider-thumb.js +2663 -0
- package/dist/packages/slider/slider-thumb.js.map +7 -0
- package/dist/packages/slider/slider.d.ts +51 -0
- package/dist/packages/slider/slider.js +2569 -0
- package/dist/packages/slider/slider.js.map +7 -0
- package/dist/packages/slider/slider.stories.d.ts +17 -0
- package/dist/packages/slider/slider.stories.js +203 -0
- package/dist/packages/slider/slider.test.d.ts +4 -0
- package/dist/packages/slider/slider.test.js +62 -0
- package/dist/packages/slider/styles/w-slider-thumb.styles.d.ts +1 -0
- package/dist/packages/slider/styles/w-slider-thumb.styles.js +132 -0
- package/dist/packages/slider/styles/w-slider.styles.d.ts +1 -0
- package/dist/packages/slider/styles/w-slider.styles.js +118 -0
- package/dist/packages/slider/styles.d.ts +1 -0
- package/dist/packages/slider/styles.js +2 -0
- package/dist/packages/textfield/index.d.ts +12 -1
- package/dist/packages/textfield/index.js +77 -28
- package/dist/packages/textfield/index.js.map +4 -4
- package/dist/packages/textfield/styles/w-textfield.styles.d.ts +1 -0
- package/dist/packages/textfield/styles/w-textfield.styles.js +46 -0
- package/dist/packages/textfield/styles.js +1 -1
- package/dist/packages/textfield/textfield.stories.d.ts +1 -0
- package/dist/packages/textfield/textfield.stories.js +19 -0
- package/dist/packages/textfield/textfield.test.d.ts +1 -0
- package/dist/packages/textfield/textfield.test.js +62 -3
- package/dist/vscode.html-custom-data.json +148 -24
- package/dist/web-types.json +382 -51
- package/package.json +5 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function
|
|
1
|
+
var kr=Object.create;var Ze=Object.defineProperty;var at=Object.getOwnPropertyDescriptor;var Er=Object.getOwnPropertyNames;var _r=Object.getPrototypeOf,Or=Object.prototype.hasOwnProperty;var st=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Cr=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Er(t))!Or.call(e,n)&&n!==r&&Ze(e,n,{get:()=>t[n],enumerable:!(o=at(t,n))||o.enumerable});return e};var Ar=(e,t,r)=>(r=e!=null?kr(_r(e)):{},Cr(t||!e||!e.__esModule?Ze(r,"default",{value:e,enumerable:!0}):r,e));var C=(e,t,r,o)=>{for(var n=o>1?void 0:o?at(t,r):t,a=e.length-1,i;a>=0;a--)(i=e[a])&&(n=(o?i(t,r,n):i(n))||n);return o&&n&&Ze(t,r,n),n};var lt=st(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.errorMessages=te.ErrorType=void 0;var le;(function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"})(le=te.ErrorType||(te.ErrorType={}));te.errorMessages=new Map([[le.MalformedUnicode,"malformed Unicode character escape sequence"],[le.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[le.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[le.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[le.EndOfString,"malformed escape sequence at end of string"]])});var pt=st(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.unraw=X.errorMessages=X.ErrorType=void 0;var O=lt();Object.defineProperty(X,"ErrorType",{enumerable:!0,get:function(){return O.ErrorType}});Object.defineProperty(X,"errorMessages",{enumerable:!0,get:function(){return O.errorMessages}});function Sr(e){return!e.match(/[^a-f0-9]/i)?parseInt(e,16):NaN}function ke(e,t,r){let o=Sr(e);if(Number.isNaN(o)||r!==void 0&&r!==e.length)throw new SyntaxError(O.errorMessages.get(t));return o}function Lr(e){let t=ke(e,O.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}function ct(e,t){let r=ke(e,O.ErrorType.MalformedUnicode,4);if(t!==void 0){let o=ke(t,O.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,o)}return String.fromCharCode(r)}function Dr(e){return e.charAt(0)==="{"&&e.charAt(e.length-1)==="}"}function zr(e){if(!Dr(e))throw new SyntaxError(O.errorMessages.get(O.ErrorType.MalformedUnicode));let t=e.slice(1,-1),r=ke(t,O.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(o){throw o instanceof RangeError?new SyntaxError(O.errorMessages.get(O.ErrorType.CodePointLimit)):o}}function Rr(e,t=!1){if(t)throw new SyntaxError(O.errorMessages.get(O.ErrorType.OctalDeprecation));let r=parseInt(e,8);return String.fromCharCode(r)}var Tr=new Map([["b","\b"],["f","\f"],["n",`
|
|
2
|
+
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function Mr(e){return Tr.get(e)||e}var Pr=/\\(?:(\\)|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 dt(e,t=!1){return e.replace(Pr,function(r,o,n,a,i,s,l,d,c){if(o!==void 0)return"\\";if(n!==void 0)return Lr(n);if(a!==void 0)return zr(a);if(i!==void 0)return ct(i,s);if(l!==void 0)return ct(l);if(d==="0")return"\0";if(d!==void 0)return Rr(d,!t);if(c!==void 0)return Mr(c);throw new SyntaxError(O.errorMessages.get(O.ErrorType.EndOfString))})}X.unraw=dt;X.default=dt});import{css as qo,html as ge,LitElement as Wo,nothing as wr}from"lit";var ye=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return e.reduce(function(r,o){return r.concat(typeof o=="string"?o:Array.isArray(o)?ye.apply(void 0,o):typeof o=="object"&&o?Object.keys(o).map(function(n){return o[n]?n:""}):"")},[]).join(" ")};var ut=Ar(pt(),1);var G=e=>typeof e=="string",jr=e=>typeof e=="function",gt=new Map,ft="en";function Ke(e){return[...Array.isArray(e)?e:[e],ft]}function Ge(e,t,r){let o=Ke(e);r||(r="default");let n;if(typeof r=="string")switch(n={day:"numeric",month:"short",year:"numeric"},r){case"full":n.weekday="long";case"long":n.month="long";break;case"short":n.month="numeric";break}else n=r;return Ee(()=>_e("date",o,r),()=>new Intl.DateTimeFormat(o,n)).format(G(t)?new Date(t):t)}function $r(e,t,r){let o;if(r||(r="default"),typeof r=="string")switch(o={second:"numeric",minute:"numeric",hour:"numeric"},r){case"full":case"long":o.timeZoneName="short";break;case"short":delete o.second}else o=r;return Ge(e,t,o)}function qe(e,t,r){let o=Ke(e);return Ee(()=>_e("number",o,r),()=>new Intl.NumberFormat(o,r)).format(t)}function mt(e,t,r,{offset:o=0,...n}){var s,l;let a=Ke(e),i=t?Ee(()=>_e("plural-ordinal",a),()=>new Intl.PluralRules(a,{type:"ordinal"})):Ee(()=>_e("plural-cardinal",a),()=>new Intl.PluralRules(a,{type:"cardinal"}));return(l=(s=n[r])!=null?s:n[i.select(r-o)])!=null?l:n.other}function Ee(e,t){let r=e(),o=gt.get(r);return o||(o=t(),gt.set(r,o)),o}function _e(e,t,r){let o=t.join("-");return`${e}-${o}-${JSON.stringify(r)}`}var bt=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,ht="%__lingui_octothorpe__%",Nr=(e,t,r={})=>{let o=t||e,n=i=>typeof i=="object"?i:r[i],a=(i,s)=>{let l=Object.keys(r).length?n("number"):void 0,d=qe(o,i,l);return s.replace(new RegExp(ht,"g"),d)};return{plural:(i,s)=>{let{offset:l=0}=s,d=mt(o,!1,i,s);return a(i-l,d)},selectordinal:(i,s)=>{let{offset:l=0}=s,d=mt(o,!0,i,s);return a(i-l,d)},select:Fr,number:(i,s)=>qe(o,i,n(s)||{style:s}),date:(i,s)=>Ge(o,i,n(s)||s),time:(i,s)=>$r(o,i,n(s)||s)}},Fr=(e,t)=>{var r;return(r=t[e])!=null?r:t.other};function Br(e,t,r){return(o={},n)=>{let a=Nr(t,r,n),i=(l,d=!1)=>Array.isArray(l)?l.reduce((c,p)=>{if(p==="#"&&d)return c+ht;if(G(p))return c+p;let[u,g,m]=p,f={};g==="plural"||g==="selectordinal"||g==="select"?Object.entries(m).forEach(([h,v])=>{f[h]=i(v,g==="plural"||g==="selectordinal")}):f=m;let b;if(g){let h=a[g];b=h(o[u],f)}else b=o[u];return b==null?c:c+b},""):l,s=i(e);return G(s)&&bt.test(s)?(0,ut.unraw)(s):G(s)?s:s?String(s):""}}var Hr=Object.defineProperty,Ir=(e,t,r)=>t in e?Hr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yr=(e,t,r)=>(Ir(e,typeof t!="symbol"?t+"":t,r),r),We=class{constructor(){Yr(this,"_events",{})}on(t,r){var n;var o;return(n=(o=this._events)[t])!=null||(o[t]=[]),this._events[t].push(r),()=>this.removeListener(t,r)}removeListener(t,r){let o=this._getListeners(t);if(!o)return;let n=o.indexOf(r);~n&&o.splice(n,1)}emit(t,...r){let o=this._getListeners(t);o&&o.map(n=>n.apply(this,r))}_getListeners(t){let r=this._events[t];return Array.isArray(r)?r:!1}},Xr=Object.defineProperty,Ur=(e,t,r)=>t in e?Xr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,re=(e,t,r)=>(Ur(e,typeof t!="symbol"?t+"":t,r),r),Je=class extends We{constructor(t){var r;super(),re(this,"_locale",""),re(this,"_locales"),re(this,"_localeData",{}),re(this,"_messages",{}),re(this,"_missing"),re(this,"_messageCompiler"),re(this,"t",this._.bind(this)),t.missing!=null&&(this._missing=t.missing),t.messages!=null&&this.load(t.messages),t.localeData!=null&&this.loadLocaleData(t.localeData),(typeof t.locale=="string"||t.locales)&&this.activate((r=t.locale)!=null?r:ft,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,r){let o=this._localeData[t];o?Object.assign(o,r):this._localeData[t]=r}setMessagesCompiler(t){return this._messageCompiler=t,this}loadLocaleData(t,r){typeof t=="string"?this._loadLocaleData(t,r):Object.keys(t).forEach(o=>this._loadLocaleData(o,t[o])),this.emit("change")}_load(t,r){let o=this._messages[t];o?Object.assign(o,r):this._messages[t]=r}load(t,r){typeof t=="string"&&typeof r=="object"?this._load(t,r):Object.entries(t).forEach(([o,n])=>this._load(o,n)),this.emit("change")}loadAndActivate({locale:t,locales:r,messages:o}){this._locale=t,this._locales=r||void 0,this._messages[this._locale]=o,this.emit("change")}activate(t,r){this._locale=t,this._locales=r,this.emit("change")}_(t,r,o){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let n=o==null?void 0:o.message;t||(t=""),G(t)||(r=t.values||r,n=t.message,t=t.id);let a=this.messages[t],i=a===void 0,s=this._missing;if(s&&i)return jr(s)?s(this._locale,t):s;i&&this.emit("missing",{id:t,locale:this._locale});let l=a||n||t;return G(l)&&(this._messageCompiler?l=this._messageCompiler(l):console.warn(`Uncompiled message detected! Message:
|
|
3
3
|
|
|
4
4
|
> ${l}
|
|
5
5
|
|
|
@@ -7,7 +7,7 @@ That means you use raw catalog or your catalog doesn't have a translation for th
|
|
|
7
7
|
ICU features such as interpolation and plurals will not work properly for that message.
|
|
8
8
|
|
|
9
9
|
Please compile your catalog first.
|
|
10
|
-
`)),G(l)&&bt.test(l)?JSON.parse(`"${l}"`):G(l)?l:Fr(l,this._locale,this._locales)(r,o==null?void 0:o.formats)}date(t,r){return Ke(this._locales||this._locale,t,r)}number(t,r){return Ze(this._locales||this._locale,t,r)}};function Xr(e={}){return new Je(e)}var y=Xr();var xt=["top","right","bottom","left"];var X=Math.min,A=Math.max,fe=Math.round;var j=e=>({x:e,y:e}),Vr={left:"right",right:"left",bottom:"top",top:"bottom"},Zr={start:"end",end:"start"};function Ce(e,t,r){return A(e,X(t,r))}function Q(e,t){return typeof e=="function"?e(t):e}function V(e){return e.split("-")[0]}function oe(e){return e.split("-")[1]}function Ge(e){return e==="x"?"y":"x"}function Ae(e){return e==="y"?"height":"width"}var qr=new Set(["top","bottom"]);function B(e){return qr.has(V(e))?"y":"x"}function Se(e){return Ge(B(e))}function yt(e,t,r){r===void 0&&(r=!1);let o=oe(e),n=Se(e),a=Ae(n),i=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=ue(i)),[i,ue(i)]}function kt(e){let t=ue(e);return[Oe(e),t,Oe(t)]}function Oe(e){return e.replace(/start|end/g,t=>Zr[t])}var vt=["left","right"],wt=["right","left"],Jr=["top","bottom"],Wr=["bottom","top"];function Kr(e,t,r){switch(e){case"top":case"bottom":return r?t?wt:vt:t?vt:wt;case"left":case"right":return t?Jr:Wr;default:return[]}}function Et(e,t,r,o){let n=oe(e),a=Kr(V(e),r==="start",o);return n&&(a=a.map(i=>i+"-"+n),t&&(a=a.concat(a.map(Oe)))),a}function ue(e){return e.replace(/left|right|bottom|top/g,t=>Vr[t])}function Gr(e){return{top:0,right:0,bottom:0,left:0,...e}}function Qe(e){return typeof e!="number"?Gr(e):{top:e,right:e,bottom:e,left:e}}function ne(e){let{x:t,y:r,width:o,height:n}=e;return{width:o,height:n,top:r,left:t,right:t+o,bottom:r+n,x:t,y:r}}function _t(e,t,r){let{reference:o,floating:n}=e,a=B(t),i=Se(t),s=Ae(i),l=V(t),c=a==="y",d=o.x+o.width/2-n.width/2,p=o.y+o.height/2-n.height/2,m=o[s]/2-n[s]/2,g;switch(l){case"top":g={x:d,y:o.y-n.height};break;case"bottom":g={x:d,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:p};break;case"left":g={x:o.x-n.width,y:p};break;default:g={x:o.x,y:o.y}}switch(oe(t)){case"start":g[i]-=m*(r&&c?-1:1);break;case"end":g[i]+=m*(r&&c?-1:1);break}return g}var At=async(e,t,r)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t)),c=await i.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:p}=_t(c,o,l),m=o,g={},u=0;for(let f=0;f<s.length;f++){let{name:b,fn:h}=s[f],{x:v,y:w,data:E,reset:x}=await h({x:d,y:p,initialPlacement:o,placement:m,strategy:n,middlewareData:g,rects:c,platform:i,elements:{reference:e,floating:t}});d=v!=null?v:d,p=w!=null?w:p,g={...g,[b]:{...g[b],...E}},x&&u<=50&&(u++,typeof x=="object"&&(x.placement&&(m=x.placement),x.rects&&(c=x.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:n}):x.rects),{x:d,y:p}=_t(c,m,l)),f=-1)}return{x:d,y:p,placement:m,strategy:n,middlewareData:g}};async function ce(e,t){var r;t===void 0&&(t={});let{x:o,y:n,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=Q(t,e),u=Qe(g),b=s[m?p==="floating"?"reference":"floating":p],h=ne(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(b)))==null||r?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),v=p==="floating"?{x:o,y:n,width:i.floating.width,height:i.floating.height}:i.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),E=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},x=ne(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:w,strategy:l}):v);return{top:(h.top-x.top+u.top)/E.y,bottom:(x.bottom-h.bottom+u.bottom)/E.y,left:(h.left-x.left+u.left)/E.x,right:(x.right-h.right+u.right)/E.x}}var St=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:o,placement:n,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=Q(e,t)||{};if(c==null)return{};let p=Qe(d),m={x:r,y:o},g=Se(n),u=Ae(g),f=await i.getDimensions(c),b=g==="y",h=b?"top":"left",v=b?"bottom":"right",w=b?"clientHeight":"clientWidth",E=a.reference[u]+a.reference[g]-m[g]-a.floating[u],x=m[g]-a.reference[g],q=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c)),T=q?q[w]:0;(!T||!await(i.isElement==null?void 0:i.isElement(q)))&&(T=s.floating[w]||a.floating[u]);let Y=E/2-x/2,N=T/2-f[u]/2-1,D=X(p[h],N),J=X(p[v],N),F=D,W=T-f[u]-J,_=T/2-f[u]/2+Y,ee=Ce(F,_,W),I=!l.arrow&&oe(n)!=null&&_!==ee&&a.reference[u]/2-(_<F?D:J)-f[u]/2<0,P=I?_<F?_-F:_-W:0;return{[g]:m[g]+P,data:{[g]:ee,centerOffset:_-ee-P,...I&&{alignmentOffset:P}},reset:I}}});var Lt=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;let{placement:n,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:f=!0,...b}=Q(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};let h=V(n),v=B(s),w=V(s)===s,E=await(l.isRTL==null?void 0:l.isRTL(c.floating)),x=m||(w||!f?[ue(s)]:kt(s)),q=u!=="none";!m&&q&&x.push(...Et(s,f,u,E));let T=[s,...x],Y=await ce(t,b),N=[],D=((o=a.flip)==null?void 0:o.overflows)||[];if(d&&N.push(Y[h]),p){let _=yt(n,i,E);N.push(Y[_[0]],Y[_[1]])}if(D=[...D,{placement:n,overflows:N}],!N.every(_=>_<=0)){var J,F;let _=(((J=a.flip)==null?void 0:J.index)||0)+1,ee=T[_];if(ee&&(!(p==="alignment"?v!==B(ee):!1)||D.every(M=>B(M.placement)===v?M.overflows[0]>0:!0)))return{data:{index:_,overflows:D},reset:{placement:ee}};let I=(F=D.filter(P=>P.overflows[0]<=0).sort((P,M)=>P.overflows[1]-M.overflows[1])[0])==null?void 0:F.placement;if(!I)switch(g){case"bestFit":{var W;let P=(W=D.filter(M=>{if(q){let K=B(M.placement);return K===v||K==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(K=>K>0).reduce((K,xr)=>K+xr,0)]).sort((M,K)=>M[1]-K[1])[0])==null?void 0:W[0];P&&(I=P);break}case"initialPlacement":I=s;break}if(n!==I)return{reset:{placement:I}}}return{}}}};function Ot(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ct(e){return xt.some(t=>e[t]>=0)}var Dt=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:o="referenceHidden",...n}=Q(e,t);switch(o){case"referenceHidden":{let a=await ce(t,{...n,elementContext:"reference"}),i=Ot(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Ct(i)}}}case"escaped":{let a=await ce(t,{...n,altBoundary:!0}),i=Ot(a,r.floating);return{data:{escapedOffsets:i,escaped:Ct(i)}}}default:return{}}}}};var Qr=new Set(["left","top"]);async function eo(e,t){let{placement:r,platform:o,elements:n}=e,a=await(o.isRTL==null?void 0:o.isRTL(n.floating)),i=V(r),s=oe(r),l=B(r)==="y",c=Qr.has(i)?-1:1,d=a&&l?-1:1,p=Q(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:u}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof u=="number"&&(g=s==="end"?u*-1:u),l?{x:g*d,y:m*c}:{x:m*c,y:g*d}}var zt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;let{x:n,y:a,placement:i,middlewareData:s}=t,l=await eo(t,e);return i===((r=s.offset)==null?void 0:r.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:n+l.x,y:a+l.y,data:{...l,placement:i}}}}},Rt=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:o,placement:n}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:b=>{let{x:h,y:v}=b;return{x:h,y:v}}},...l}=Q(e,t),c={x:r,y:o},d=await ce(t,l),p=B(V(n)),m=Ge(p),g=c[m],u=c[p];if(a){let b=m==="y"?"top":"left",h=m==="y"?"bottom":"right",v=g+d[b],w=g-d[h];g=Ce(v,g,w)}if(i){let b=p==="y"?"top":"left",h=p==="y"?"bottom":"right",v=u+d[b],w=u-d[h];u=Ce(v,u,w)}let f=s.fn({...t,[m]:g,[p]:u});return{...f,data:{x:f.x-r,y:f.y-o,enabled:{[m]:a,[p]:i}}}}}};var Tt=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,o;let{placement:n,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...c}=Q(e,t),d=await ce(t,c),p=V(n),m=oe(n),g=B(n)==="y",{width:u,height:f}=a.floating,b,h;p==="top"||p==="bottom"?(b=p,h=m===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(h=p,b=m==="end"?"top":"bottom");let v=f-d.top-d.bottom,w=u-d.left-d.right,E=X(f-d[b],v),x=X(u-d[h],w),q=!t.middlewareData.shift,T=E,Y=x;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(Y=w),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(T=v),q&&!m){let D=A(d.left,0),J=A(d.right,0),F=A(d.top,0),W=A(d.bottom,0);g?Y=u-2*(D!==0||J!==0?D+J:A(d.left,d.right)):T=f-2*(F!==0||W!==0?F+W:A(d.top,d.bottom))}await l({...t,availableWidth:Y,availableHeight:T});let N=await i.getDimensions(s.floating);return u!==N.width||f!==N.height?{reset:{rects:!0}}:{}}}};function De(){return typeof window!="undefined"}function ie(e){return Mt(e)?(e.nodeName||"").toLowerCase():"#document"}function S(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function H(e){var t;return(t=(Mt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mt(e){return De()?e instanceof Node||e instanceof S(e).Node:!1}function z(e){return De()?e instanceof Element||e instanceof S(e).Element:!1}function $(e){return De()?e instanceof HTMLElement||e instanceof S(e).HTMLElement:!1}function Pt(e){return!De()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof S(e).ShadowRoot}var to=new Set(["inline","contents"]);function de(e){let{overflow:t,overflowX:r,overflowY:o,display:n}=R(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!to.has(n)}var ro=new Set(["table","td","th"]);function jt(e){return ro.has(ie(e))}var oo=[":popover-open",":modal"];function be(e){return oo.some(t=>{try{return e.matches(t)}catch(r){return!1}})}var no=["transform","translate","scale","rotate","perspective"],io=["transform","translate","scale","rotate","perspective","filter"],ao=["paint","layout","strict","content"];function ze(e){let t=Re(),r=z(e)?R(e):e;return no.some(o=>r[o]?r[o]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||io.some(o=>(r.willChange||"").includes(o))||ao.some(o=>(r.contain||"").includes(o))}function $t(e){let t=Z(e);for(;$(t)&&!ae(t);){if(ze(t))return t;if(be(t))return null;t=Z(t)}return null}function Re(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var so=new Set(["html","body","#document"]);function ae(e){return so.has(ie(e))}function R(e){return S(e).getComputedStyle(e)}function he(e){return z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if(ie(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Pt(e)&&e.host||H(e);return Pt(t)?t.host:t}function Nt(e){let t=Z(e);return ae(t)?e.ownerDocument?e.ownerDocument.body:e.body:$(t)&&de(t)?t:Nt(t)}function Le(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=Nt(e),a=n===((o=e.ownerDocument)==null?void 0:o.body),i=S(n);if(a){let s=Te(i);return t.concat(i,i.visualViewport||[],de(n)?n:[],s&&r?Le(s):[])}return t.concat(n,Le(n,[],r))}function Te(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ht(e){let t=R(e),r=parseFloat(t.width)||0,o=parseFloat(t.height)||0,n=$(e),a=n?e.offsetWidth:r,i=n?e.offsetHeight:o,s=fe(r)!==a||fe(o)!==i;return s&&(r=a,o=i),{width:r,height:o,$:s}}function Yt(e){return z(e)?e:e.contextElement}function pe(e){let t=Yt(e);if(!$(t))return j(1);let r=t.getBoundingClientRect(),{width:o,height:n,$:a}=Ht(t),i=(a?fe(r.width):r.width)/o,s=(a?fe(r.height):r.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}var lo=j(0);function It(e){let t=S(e);return!Re()||!t.visualViewport?lo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function co(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==S(e)?!1:t}function ve(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=e.getBoundingClientRect(),a=Yt(e),i=j(1);t&&(o?z(o)&&(i=pe(o)):i=pe(e));let s=co(a,r,o)?It(a):j(0),l=(n.left+s.x)/i.x,c=(n.top+s.y)/i.y,d=n.width/i.x,p=n.height/i.y;if(a){let m=S(a),g=o&&z(o)?S(o):o,u=m,f=Te(u);for(;f&&o&&g!==u;){let b=pe(f),h=f.getBoundingClientRect(),v=R(f),w=h.left+(f.clientLeft+parseFloat(v.paddingLeft))*b.x,E=h.top+(f.clientTop+parseFloat(v.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,p*=b.y,l+=w,c+=E,u=S(f),f=Te(u)}}return ne({width:d,height:p,x:l,y:c})}function tt(e,t){let r=he(e).scrollLeft;return t?t.left+r:ve(H(e)).left+r}function Ut(e,t,r){r===void 0&&(r=!1);let o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-(r?0:tt(e,o)),a=o.top+t.scrollTop;return{x:n,y:a}}function po(e){let{elements:t,rect:r,offsetParent:o,strategy:n}=e,a=n==="fixed",i=H(o),s=t?be(t.floating):!1;if(o===i||s&&a)return r;let l={scrollLeft:0,scrollTop:0},c=j(1),d=j(0),p=$(o);if((p||!p&&!a)&&((ie(o)!=="body"||de(i))&&(l=he(o)),$(o))){let g=ve(o);c=pe(o),d.x=g.x+o.clientLeft,d.y=g.y+o.clientTop}let m=i&&!p&&!a?Ut(i,l,!0):j(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+m.x,y:r.y*c.y-l.scrollTop*c.y+d.y+m.y}}function go(e){return Array.from(e.getClientRects())}function mo(e){let t=H(e),r=he(e),o=e.ownerDocument.body,n=A(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=A(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),i=-r.scrollLeft+tt(e),s=-r.scrollTop;return R(o).direction==="rtl"&&(i+=A(t.clientWidth,o.clientWidth)-n),{width:n,height:a,x:i,y:s}}function uo(e,t){let r=S(e),o=H(e),n=r.visualViewport,a=o.clientWidth,i=o.clientHeight,s=0,l=0;if(n){a=n.width,i=n.height;let c=Re();(!c||c&&t==="fixed")&&(s=n.offsetLeft,l=n.offsetTop)}return{width:a,height:i,x:s,y:l}}function fo(e,t){let r=ve(e,!0,t==="fixed"),o=r.top+e.clientTop,n=r.left+e.clientLeft,a=$(e)?pe(e):j(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,l=n*a.x,c=o*a.y;return{width:i,height:s,x:l,y:c}}function Ft(e,t,r){let o;if(t==="viewport")o=uo(e,r);else if(t==="document")o=mo(H(e));else if(z(t))o=fo(t,r);else{let n=It(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ne(o)}function Xt(e,t){let r=Z(e);return r===t||!z(r)||ae(r)?!1:R(r).position==="fixed"||Xt(r,t)}function bo(e,t){let r=t.get(e);if(r)return r;let o=Le(e,[],!1).filter(s=>z(s)&&ie(s)!=="body"),n=null,a=R(e).position==="fixed",i=a?Z(e):e;for(;z(i)&&!ae(i);){let s=R(i),l=ze(i);!l&&s.position==="fixed"&&(n=null),(a?!l&&!n:!l&&s.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||de(i)&&!l&&Xt(e,i))?o=o.filter(d=>d!==i):n=s,i=Z(i)}return t.set(e,o),o}function ho(e){let{element:t,boundary:r,rootBoundary:o,strategy:n}=e,i=[...r==="clippingAncestors"?be(t)?[]:bo(t,this._c):[].concat(r),o],s=i[0],l=i.reduce((c,d)=>{let p=Ft(t,d,n);return c.top=A(p.top,c.top),c.right=X(p.right,c.right),c.bottom=X(p.bottom,c.bottom),c.left=A(p.left,c.left),c},Ft(t,s,n));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function vo(e){let{width:t,height:r}=Ht(e);return{width:t,height:r}}function wo(e,t,r){let o=$(t),n=H(t),a=r==="fixed",i=ve(e,!0,a,t),s={scrollLeft:0,scrollTop:0},l=j(0);if(o||!o&&!a)if((ie(t)!=="body"||de(n))&&(s=he(t)),o){let m=ve(t,!0,a,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else n&&(l.x=tt(n));let c=n&&!o&&!a?Ut(n,s):j(0),d=i.left+s.scrollLeft-l.x-c.x,p=i.top+s.scrollTop-l.y-c.y;return{x:d,y:p,width:i.width,height:i.height}}function et(e){return R(e).position==="static"}function Bt(e,t){if(!$(e)||R(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return H(e)===r&&(r=r.ownerDocument.body),r}function Vt(e,t){let r=S(e);if(be(e))return r;if(!$(e)){let n=Z(e);for(;n&&!ae(n);){if(z(n)&&!et(n))return n;n=Z(n)}return r}let o=Bt(e,t);for(;o&&jt(o)&&et(o);)o=Bt(o,t);return o&&ae(o)&&et(o)&&!ze(o)?r:o||$t(e)||r}var xo=async function(e){let t=this.getOffsetParent||Vt,r=this.getDimensions,o=await r(e.floating);return{reference:wo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function yo(e){return R(e).direction==="rtl"}var ko={convertOffsetParentRelativeRectToViewportRelativeRect:po,getDocumentElement:H,getClippingRect:ho,getOffsetParent:Vt,getElementRects:xo,getClientRects:go,getDimensions:vo,getScale:pe,isElement:z,isRTL:yo};var Zt=zt;var qt=Rt,Jt=Lt,Wt=Tt,Kt=Dt,Gt=St;var Qt=(e,t,r)=>{let o=new Map,n={platform:ko,...r},a={...n.platform,_c:o};return At(e,t,{...n,platform:a})};var Me="top-start",je="top",$e="top-end",Ne="right-start",Fe="right",Be="right-end",He="bottom-start",we="bottom",Ye="bottom-end",Ie="left-start",Ue="left",Xe="left-end",rt=[Me,je,$e,Ne,Fe,Be,He,we,Ye,Ie,Ue,Xe],se={[Me]:He,[je]:we,[$e]:Ye,[He]:Me,[we]:je,[Ye]:$e,[Ie]:Ne,[Ue]:Fe,[Xe]:Be,[Ne]:Ie,[Fe]:Ue,[Be]:Xe},Eo={[Ie]:-45,[Ue]:-45,[Xe]:-45,[Me]:45,[je]:45,[$e]:45,[Ne]:135,[Fe]:135,[Be]:135,[He]:-135,[we]:-135,[Ye]:-135},ot=e=>{let t;return/-/.test(e)?t=e.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(""):t=e.charAt(0).toUpperCase()+e.slice(1),t},_o=e=>e.split("-")[0],Oo=e=>se[_o(e)],tr=e=>se[e],Co=e=>Eo[tr(e)],Ao=(e,t,r)=>{Object.assign(e==null?void 0:e.style,{borderTopLeftRadius:"4px",zIndex:1,[`margin${ot(Oo(r))}`]:"-0.5px",transform:`rotate(${t}deg)`})},er=8,Pe=24;async function nt(e){var o,n,a;if(!(e!=null&&e.isShowing)||(e!=null&&e.waitForDOM&&await(e==null?void 0:e.waitForDOM()),!(e!=null&&e.targetEl)||!(e!=null&&e.attentionEl)))return;let t=e==null?void 0:e.targetEl,r=e.attentionEl;return Qt(t,r,{placement:(o=e==null?void 0:e.directionName)!=null?o:we,middleware:[Zt({mainAxis:(n=e==null?void 0:e.distance)!=null?n:8,crossAxis:(a=e==null?void 0:e.skidding)!=null?a:0}),(e==null?void 0:e.flip)&&Jt({crossAxis:e==null?void 0:e.crossAxis,fallbackPlacements:e==null?void 0:e.fallbackPlacements}),(e==null?void 0:e.flip)&&qt({crossAxis:!0}),!(e!=null&&e.noArrow)&&(e==null?void 0:e.arrowEl)&&Gt({element:e==null?void 0:e.arrowEl}),Kt(),Wt({apply(){Object.assign(r.style,{paddingRight:`${er}px`,paddingLeft:`${er}px`})}})]}).then(({x:i,y:s,middlewareData:l,placement:c})=>{if(e.actualDirection=c,e!=null&&e.isCallout||Object.assign(r.style,{left:`${i}px`,top:`${s}px`}),l!=null&&l.hide&&!(e!=null&&e.isCallout)){let{referenceHidden:d}=l.hide;Object.assign(r.style,{visibility:d?"hidden":""})}if(l!=null&&l.arrow&&(e!=null&&e.arrowEl)){let d=e==null?void 0:e.arrowEl,{x:p,y:m}=l.arrow,g=window.getComputedStyle(r).direction==="rtl",u=tr(c).split("-")[1],f="",b="",h="",v="";if(u==="start"){let w=typeof p=="number"?`calc(${Pe}px - ${d.offsetWidth/2}px)`:"";f=typeof m=="number"?`calc(${Pe}px - ${d.offsetWidth/2}px)`:"",b=g?w:"",v=g?"":w}else if(u==="end"){let w=typeof p=="number"?`calc(${Pe}px - ${d.offsetWidth/2}px)`:"";b=g?"":w,v=g?w:"",h=typeof m=="number"?`calc(${Pe}px - ${d.offsetWidth/2}px)`:""}else v=typeof p=="number"?`${p}px`:"",f=typeof m=="number"?`${m}px`:"";Object.assign(d.style,{top:f,right:b,bottom:h,left:v}),Ao(d,Co(c),c)}}),e}import{property as L}from"lit/decorators.js";import{ifDefined as qo}from"lit/directives/if-defined.js";var So=["en","nb","fi","da","sv"],or="en",rr=e=>So.find(t=>e===t||e.toLowerCase().includes(t))||or;function Lo(){if(typeof window=="undefined"){let e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return rr(e)}try{let e=document.documentElement.lang;return rr(e)}catch(e){return console.warn("could not detect locale, falling back to source locale",e),or}}var Do=(e,t,r,o,n,a)=>e==="nb"?r:e==="fi"?o:e==="da"?n:e==="sv"?a:t,nr=(e,t,r,o,n)=>{let a=Lo(),i=Do(a,e,t,r,o,n);y.load(a,i),y.activate(a)};import{css as ir}from"lit";var ar=ir`
|
|
10
|
+
`)),G(l)&&bt.test(l)?JSON.parse(`"${l}"`):G(l)?l:Br(l,this._locale,this._locales)(r,o==null?void 0:o.formats)}date(t,r){return Ge(this._locales||this._locale,t,r)}number(t,r){return qe(this._locales||this._locale,t,r)}};function Vr(e={}){return new Je(e)}var y=Vr();var xt=["top","right","bottom","left"];var U=Math.min,A=Math.max,fe=Math.round;var j=e=>({x:e,y:e}),Zr={left:"right",right:"left",bottom:"top",top:"bottom"},qr={start:"end",end:"start"};function Ce(e,t,r){return A(e,U(t,r))}function Q(e,t){return typeof e=="function"?e(t):e}function V(e){return e.split("-")[0]}function oe(e){return e.split("-")[1]}function Qe(e){return e==="x"?"y":"x"}function Ae(e){return e==="y"?"height":"width"}var Wr=new Set(["top","bottom"]);function B(e){return Wr.has(V(e))?"y":"x"}function Se(e){return Qe(B(e))}function yt(e,t,r){r===void 0&&(r=!1);let o=oe(e),n=Se(e),a=Ae(n),i=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=ue(i)),[i,ue(i)]}function kt(e){let t=ue(e);return[Oe(e),t,Oe(t)]}function Oe(e){return e.replace(/start|end/g,t=>qr[t])}var vt=["left","right"],wt=["right","left"],Jr=["top","bottom"],Kr=["bottom","top"];function Gr(e,t,r){switch(e){case"top":case"bottom":return r?t?wt:vt:t?vt:wt;case"left":case"right":return t?Jr:Kr;default:return[]}}function Et(e,t,r,o){let n=oe(e),a=Gr(V(e),r==="start",o);return n&&(a=a.map(i=>i+"-"+n),t&&(a=a.concat(a.map(Oe)))),a}function ue(e){return e.replace(/left|right|bottom|top/g,t=>Zr[t])}function Qr(e){return{top:0,right:0,bottom:0,left:0,...e}}function et(e){return typeof e!="number"?Qr(e):{top:e,right:e,bottom:e,left:e}}function ne(e){let{x:t,y:r,width:o,height:n}=e;return{width:o,height:n,top:r,left:t,right:t+o,bottom:r+n,x:t,y:r}}function _t(e,t,r){let{reference:o,floating:n}=e,a=B(t),i=Se(t),s=Ae(i),l=V(t),d=a==="y",c=o.x+o.width/2-n.width/2,p=o.y+o.height/2-n.height/2,u=o[s]/2-n[s]/2,g;switch(l){case"top":g={x:c,y:o.y-n.height};break;case"bottom":g={x:c,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:p};break;case"left":g={x:o.x-n.width,y:p};break;default:g={x:o.x,y:o.y}}switch(oe(t)){case"start":g[i]-=u*(r&&d?-1:1);break;case"end":g[i]+=u*(r&&d?-1:1);break}return g}var At=async(e,t,r)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t)),d=await i.getElementRects({reference:e,floating:t,strategy:n}),{x:c,y:p}=_t(d,o,l),u=o,g={},m=0;for(let f=0;f<s.length;f++){let{name:b,fn:h}=s[f],{x:v,y:w,data:E,reset:x}=await h({x:c,y:p,initialPlacement:o,placement:u,strategy:n,middlewareData:g,rects:d,platform:i,elements:{reference:e,floating:t}});c=v!=null?v:c,p=w!=null?w:p,g={...g,[b]:{...g[b],...E}},x&&m<=50&&(m++,typeof x=="object"&&(x.placement&&(u=x.placement),x.rects&&(d=x.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:n}):x.rects),{x:c,y:p}=_t(d,u,l)),f=-1)}return{x:c,y:p,placement:u,strategy:n,middlewareData:g}};async function ce(e,t){var r;t===void 0&&(t={});let{x:o,y:n,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:p="floating",altBoundary:u=!1,padding:g=0}=Q(t,e),m=et(g),b=s[u?p==="floating"?"reference":"floating":p],h=ne(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(b)))==null||r?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:d,rootBoundary:c,strategy:l})),v=p==="floating"?{x:o,y:n,width:i.floating.width,height:i.floating.height}:i.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),E=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},x=ne(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:w,strategy:l}):v);return{top:(h.top-x.top+m.top)/E.y,bottom:(x.bottom-h.bottom+m.bottom)/E.y,left:(h.left-x.left+m.left)/E.x,right:(x.right-h.right+m.right)/E.x}}var St=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:o,placement:n,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:d,padding:c=0}=Q(e,t)||{};if(d==null)return{};let p=et(c),u={x:r,y:o},g=Se(n),m=Ae(g),f=await i.getDimensions(d),b=g==="y",h=b?"top":"left",v=b?"bottom":"right",w=b?"clientHeight":"clientWidth",E=a.reference[m]+a.reference[g]-u[g]-a.floating[m],x=u[g]-a.reference[g],q=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d)),T=q?q[w]:0;(!T||!await(i.isElement==null?void 0:i.isElement(q)))&&(T=s.floating[w]||a.floating[m]);let I=E/2-x/2,N=T/2-f[m]/2-1,D=U(p[h],N),W=U(p[v],N),F=D,J=T-f[m]-W,_=T/2-f[m]/2+I,ee=Ce(F,_,J),Y=!l.arrow&&oe(n)!=null&&_!==ee&&a.reference[m]/2-(_<F?D:W)-f[m]/2<0,M=Y?_<F?_-F:_-J:0;return{[g]:u[g]+M,data:{[g]:ee,centerOffset:_-ee-M,...Y&&{alignmentOffset:M}},reset:Y}}});var Lt=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;let{placement:n,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:d}=t,{mainAxis:c=!0,crossAxis:p=!0,fallbackPlacements:u,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:f=!0,...b}=Q(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};let h=V(n),v=B(s),w=V(s)===s,E=await(l.isRTL==null?void 0:l.isRTL(d.floating)),x=u||(w||!f?[ue(s)]:kt(s)),q=m!=="none";!u&&q&&x.push(...Et(s,f,m,E));let T=[s,...x],I=await ce(t,b),N=[],D=((o=a.flip)==null?void 0:o.overflows)||[];if(c&&N.push(I[h]),p){let _=yt(n,i,E);N.push(I[_[0]],I[_[1]])}if(D=[...D,{placement:n,overflows:N}],!N.every(_=>_<=0)){var W,F;let _=(((W=a.flip)==null?void 0:W.index)||0)+1,ee=T[_];if(ee&&(!(p==="alignment"?v!==B(ee):!1)||D.every(P=>B(P.placement)===v?P.overflows[0]>0:!0)))return{data:{index:_,overflows:D},reset:{placement:ee}};let Y=(F=D.filter(M=>M.overflows[0]<=0).sort((M,P)=>M.overflows[1]-P.overflows[1])[0])==null?void 0:F.placement;if(!Y)switch(g){case"bestFit":{var J;let M=(J=D.filter(P=>{if(q){let K=B(P.placement);return K===v||K==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(K=>K>0).reduce((K,yr)=>K+yr,0)]).sort((P,K)=>P[1]-K[1])[0])==null?void 0:J[0];M&&(Y=M);break}case"initialPlacement":Y=s;break}if(n!==Y)return{reset:{placement:Y}}}return{}}}};function Ot(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ct(e){return xt.some(t=>e[t]>=0)}var Dt=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:o="referenceHidden",...n}=Q(e,t);switch(o){case"referenceHidden":{let a=await ce(t,{...n,elementContext:"reference"}),i=Ot(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Ct(i)}}}case"escaped":{let a=await ce(t,{...n,altBoundary:!0}),i=Ot(a,r.floating);return{data:{escapedOffsets:i,escaped:Ct(i)}}}default:return{}}}}};var eo=new Set(["left","top"]);async function to(e,t){let{placement:r,platform:o,elements:n}=e,a=await(o.isRTL==null?void 0:o.isRTL(n.floating)),i=V(r),s=oe(r),l=B(r)==="y",d=eo.has(i)?-1:1,c=a&&l?-1:1,p=Q(t,e),{mainAxis:u,crossAxis:g,alignmentAxis:m}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof m=="number"&&(g=s==="end"?m*-1:m),l?{x:g*c,y:u*d}:{x:u*d,y:g*c}}var zt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;let{x:n,y:a,placement:i,middlewareData:s}=t,l=await to(t,e);return i===((r=s.offset)==null?void 0:r.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:n+l.x,y:a+l.y,data:{...l,placement:i}}}}},Rt=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:o,placement:n}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:b=>{let{x:h,y:v}=b;return{x:h,y:v}}},...l}=Q(e,t),d={x:r,y:o},c=await ce(t,l),p=B(V(n)),u=Qe(p),g=d[u],m=d[p];if(a){let b=u==="y"?"top":"left",h=u==="y"?"bottom":"right",v=g+c[b],w=g-c[h];g=Ce(v,g,w)}if(i){let b=p==="y"?"top":"left",h=p==="y"?"bottom":"right",v=m+c[b],w=m-c[h];m=Ce(v,m,w)}let f=s.fn({...t,[u]:g,[p]:m});return{...f,data:{x:f.x-r,y:f.y-o,enabled:{[u]:a,[p]:i}}}}}};var Tt=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,o;let{placement:n,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...d}=Q(e,t),c=await ce(t,d),p=V(n),u=oe(n),g=B(n)==="y",{width:m,height:f}=a.floating,b,h;p==="top"||p==="bottom"?(b=p,h=u===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(h=p,b=u==="end"?"top":"bottom");let v=f-c.top-c.bottom,w=m-c.left-c.right,E=U(f-c[b],v),x=U(m-c[h],w),q=!t.middlewareData.shift,T=E,I=x;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(I=w),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(T=v),q&&!u){let D=A(c.left,0),W=A(c.right,0),F=A(c.top,0),J=A(c.bottom,0);g?I=m-2*(D!==0||W!==0?D+W:A(c.left,c.right)):T=f-2*(F!==0||J!==0?F+J:A(c.top,c.bottom))}await l({...t,availableWidth:I,availableHeight:T});let N=await i.getDimensions(s.floating);return m!==N.width||f!==N.height?{reset:{rects:!0}}:{}}}};function De(){return typeof window!="undefined"}function ie(e){return Pt(e)?(e.nodeName||"").toLowerCase():"#document"}function S(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function H(e){var t;return(t=(Pt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Pt(e){return De()?e instanceof Node||e instanceof S(e).Node:!1}function z(e){return De()?e instanceof Element||e instanceof S(e).Element:!1}function $(e){return De()?e instanceof HTMLElement||e instanceof S(e).HTMLElement:!1}function Mt(e){return!De()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof S(e).ShadowRoot}var ro=new Set(["inline","contents"]);function de(e){let{overflow:t,overflowX:r,overflowY:o,display:n}=R(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!ro.has(n)}var oo=new Set(["table","td","th"]);function jt(e){return oo.has(ie(e))}var no=[":popover-open",":modal"];function be(e){return no.some(t=>{try{return e.matches(t)}catch(r){return!1}})}var io=["transform","translate","scale","rotate","perspective"],ao=["transform","translate","scale","rotate","perspective","filter"],so=["paint","layout","strict","content"];function ze(e){let t=Re(),r=z(e)?R(e):e;return io.some(o=>r[o]?r[o]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||ao.some(o=>(r.willChange||"").includes(o))||so.some(o=>(r.contain||"").includes(o))}function $t(e){let t=Z(e);for(;$(t)&&!ae(t);){if(ze(t))return t;if(be(t))return null;t=Z(t)}return null}function Re(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var lo=new Set(["html","body","#document"]);function ae(e){return lo.has(ie(e))}function R(e){return S(e).getComputedStyle(e)}function he(e){return z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if(ie(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Mt(e)&&e.host||H(e);return Mt(t)?t.host:t}function Nt(e){let t=Z(e);return ae(t)?e.ownerDocument?e.ownerDocument.body:e.body:$(t)&&de(t)?t:Nt(t)}function Le(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=Nt(e),a=n===((o=e.ownerDocument)==null?void 0:o.body),i=S(n);if(a){let s=Te(i);return t.concat(i,i.visualViewport||[],de(n)?n:[],s&&r?Le(s):[])}return t.concat(n,Le(n,[],r))}function Te(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function It(e){let t=R(e),r=parseFloat(t.width)||0,o=parseFloat(t.height)||0,n=$(e),a=n?e.offsetWidth:r,i=n?e.offsetHeight:o,s=fe(r)!==a||fe(o)!==i;return s&&(r=a,o=i),{width:r,height:o,$:s}}function Yt(e){return z(e)?e:e.contextElement}function pe(e){let t=Yt(e);if(!$(t))return j(1);let r=t.getBoundingClientRect(),{width:o,height:n,$:a}=It(t),i=(a?fe(r.width):r.width)/o,s=(a?fe(r.height):r.height)/n;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}var co=j(0);function Xt(e){let t=S(e);return!Re()||!t.visualViewport?co:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function po(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==S(e)?!1:t}function ve(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=e.getBoundingClientRect(),a=Yt(e),i=j(1);t&&(o?z(o)&&(i=pe(o)):i=pe(e));let s=po(a,r,o)?Xt(a):j(0),l=(n.left+s.x)/i.x,d=(n.top+s.y)/i.y,c=n.width/i.x,p=n.height/i.y;if(a){let u=S(a),g=o&&z(o)?S(o):o,m=u,f=Te(m);for(;f&&o&&g!==m;){let b=pe(f),h=f.getBoundingClientRect(),v=R(f),w=h.left+(f.clientLeft+parseFloat(v.paddingLeft))*b.x,E=h.top+(f.clientTop+parseFloat(v.paddingTop))*b.y;l*=b.x,d*=b.y,c*=b.x,p*=b.y,l+=w,d+=E,m=S(f),f=Te(m)}}return ne({width:c,height:p,x:l,y:d})}function Me(e,t){let r=he(e).scrollLeft;return t?t.left+r:ve(H(e)).left+r}function Ut(e,t){let r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-Me(e,r),n=r.top+t.scrollTop;return{x:o,y:n}}function go(e){let{elements:t,rect:r,offsetParent:o,strategy:n}=e,a=n==="fixed",i=H(o),s=t?be(t.floating):!1;if(o===i||s&&a)return r;let l={scrollLeft:0,scrollTop:0},d=j(1),c=j(0),p=$(o);if((p||!p&&!a)&&((ie(o)!=="body"||de(i))&&(l=he(o)),$(o))){let g=ve(o);d=pe(o),c.x=g.x+o.clientLeft,c.y=g.y+o.clientTop}let u=i&&!p&&!a?Ut(i,l):j(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-l.scrollLeft*d.x+c.x+u.x,y:r.y*d.y-l.scrollTop*d.y+c.y+u.y}}function mo(e){return Array.from(e.getClientRects())}function uo(e){let t=H(e),r=he(e),o=e.ownerDocument.body,n=A(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=A(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),i=-r.scrollLeft+Me(e),s=-r.scrollTop;return R(o).direction==="rtl"&&(i+=A(t.clientWidth,o.clientWidth)-n),{width:n,height:a,x:i,y:s}}var Ft=25;function fo(e,t){let r=S(e),o=H(e),n=r.visualViewport,a=o.clientWidth,i=o.clientHeight,s=0,l=0;if(n){a=n.width,i=n.height;let c=Re();(!c||c&&t==="fixed")&&(s=n.offsetLeft,l=n.offsetTop)}let d=Me(o);if(d<=0){let c=o.ownerDocument,p=c.body,u=getComputedStyle(p),g=c.compatMode==="CSS1Compat"&&parseFloat(u.marginLeft)+parseFloat(u.marginRight)||0,m=Math.abs(o.clientWidth-p.clientWidth-g);m<=Ft&&(a-=m)}else d<=Ft&&(a+=d);return{width:a,height:i,x:s,y:l}}var bo=new Set(["absolute","fixed"]);function ho(e,t){let r=ve(e,!0,t==="fixed"),o=r.top+e.clientTop,n=r.left+e.clientLeft,a=$(e)?pe(e):j(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,l=n*a.x,d=o*a.y;return{width:i,height:s,x:l,y:d}}function Bt(e,t,r){let o;if(t==="viewport")o=fo(e,r);else if(t==="document")o=uo(H(e));else if(z(t))o=ho(t,r);else{let n=Xt(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ne(o)}function Vt(e,t){let r=Z(e);return r===t||!z(r)||ae(r)?!1:R(r).position==="fixed"||Vt(r,t)}function vo(e,t){let r=t.get(e);if(r)return r;let o=Le(e,[],!1).filter(s=>z(s)&&ie(s)!=="body"),n=null,a=R(e).position==="fixed",i=a?Z(e):e;for(;z(i)&&!ae(i);){let s=R(i),l=ze(i);!l&&s.position==="fixed"&&(n=null),(a?!l&&!n:!l&&s.position==="static"&&!!n&&bo.has(n.position)||de(i)&&!l&&Vt(e,i))?o=o.filter(c=>c!==i):n=s,i=Z(i)}return t.set(e,o),o}function wo(e){let{element:t,boundary:r,rootBoundary:o,strategy:n}=e,i=[...r==="clippingAncestors"?be(t)?[]:vo(t,this._c):[].concat(r),o],s=i[0],l=i.reduce((d,c)=>{let p=Bt(t,c,n);return d.top=A(p.top,d.top),d.right=U(p.right,d.right),d.bottom=U(p.bottom,d.bottom),d.left=A(p.left,d.left),d},Bt(t,s,n));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function xo(e){let{width:t,height:r}=It(e);return{width:t,height:r}}function yo(e,t,r){let o=$(t),n=H(t),a=r==="fixed",i=ve(e,!0,a,t),s={scrollLeft:0,scrollTop:0},l=j(0);function d(){l.x=Me(n)}if(o||!o&&!a)if((ie(t)!=="body"||de(n))&&(s=he(t)),o){let g=ve(t,!0,a,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else n&&d();a&&!o&&n&&d();let c=n&&!o&&!a?Ut(n,s):j(0),p=i.left+s.scrollLeft-l.x-c.x,u=i.top+s.scrollTop-l.y-c.y;return{x:p,y:u,width:i.width,height:i.height}}function tt(e){return R(e).position==="static"}function Ht(e,t){if(!$(e)||R(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return H(e)===r&&(r=r.ownerDocument.body),r}function Zt(e,t){let r=S(e);if(be(e))return r;if(!$(e)){let n=Z(e);for(;n&&!ae(n);){if(z(n)&&!tt(n))return n;n=Z(n)}return r}let o=Ht(e,t);for(;o&&jt(o)&&tt(o);)o=Ht(o,t);return o&&ae(o)&&tt(o)&&!ze(o)?r:o||$t(e)||r}var ko=async function(e){let t=this.getOffsetParent||Zt,r=this.getDimensions,o=await r(e.floating);return{reference:yo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Eo(e){return R(e).direction==="rtl"}var _o={convertOffsetParentRelativeRectToViewportRelativeRect:go,getDocumentElement:H,getClippingRect:wo,getOffsetParent:Zt,getElementRects:ko,getClientRects:mo,getDimensions:xo,getScale:pe,isElement:z,isRTL:Eo};var qt=zt;var Wt=Rt,Jt=Lt,Kt=Tt,Gt=Dt,Qt=St;var er=(e,t,r)=>{let o=new Map,n={platform:_o,...r},a={...n.platform,_c:o};return At(e,t,{...n,platform:a})};var je="top-start",$e="top",Ne="top-end",Fe="right-start",Be="right",He="right-end",Ie="bottom-start",we="bottom",Ye="bottom-end",Xe="left-start",Ue="left",Ve="left-end",rt=[je,$e,Ne,Fe,Be,He,Ie,we,Ye,Xe,Ue,Ve],se={[je]:Ie,[$e]:we,[Ne]:Ye,[Ie]:je,[we]:$e,[Ye]:Ne,[Xe]:Fe,[Ue]:Be,[Ve]:He,[Fe]:Xe,[Be]:Ue,[He]:Ve},Oo={[Xe]:-45,[Ue]:-45,[Ve]:-45,[je]:45,[$e]:45,[Ne]:45,[Fe]:135,[Be]:135,[He]:135,[Ie]:-135,[we]:-135,[Ye]:-135},ot=e=>{let t;return/-/.test(e)?t=e.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(""):t=e.charAt(0).toUpperCase()+e.slice(1),t},Co=e=>e.split("-")[0],Ao=e=>se[Co(e)],rr=e=>se[e],So=e=>Oo[rr(e)],Lo=(e,t,r)=>{Object.assign(e==null?void 0:e.style,{borderTopLeftRadius:"4px",zIndex:1,[`margin${ot(Ao(r))}`]:"-0.5px",transform:`rotate(${t}deg)`})},tr=8,Pe=24;async function nt(e){var o,n,a;if(!(e!=null&&e.isShowing)||(e!=null&&e.waitForDOM&&await(e==null?void 0:e.waitForDOM()),!(e!=null&&e.targetEl)||!(e!=null&&e.attentionEl)))return;let t=e==null?void 0:e.targetEl,r=e.attentionEl;return er(t,r,{placement:(o=e==null?void 0:e.directionName)!=null?o:we,middleware:[qt({mainAxis:(n=e==null?void 0:e.distance)!=null?n:8,crossAxis:(a=e==null?void 0:e.skidding)!=null?a:0}),(e==null?void 0:e.flip)&&Jt({crossAxis:e==null?void 0:e.crossAxis,fallbackPlacements:e==null?void 0:e.fallbackPlacements}),(e==null?void 0:e.flip)&&Wt({crossAxis:!0}),!(e!=null&&e.noArrow)&&(e==null?void 0:e.arrowEl)&&Qt({element:e==null?void 0:e.arrowEl}),Gt(),Kt({apply(){Object.assign(r.style,{paddingRight:`${tr}px`,paddingLeft:`${tr}px`})}})]}).then(({x:i,y:s,middlewareData:l,placement:d})=>{if(e.actualDirection=d,e!=null&&e.isCallout||Object.assign(r.style,{left:`${i}px`,top:`${s}px`}),l!=null&&l.hide&&!(e!=null&&e.isCallout)){let{referenceHidden:c}=l.hide;Object.assign(r.style,{visibility:c?"hidden":""})}if(l!=null&&l.arrow&&(e!=null&&e.arrowEl)){let c=e==null?void 0:e.arrowEl,{x:p,y:u}=l.arrow,g=window.getComputedStyle(r).direction==="rtl",m=rr(d).split("-")[1],f="",b="",h="",v="";if(m==="start"){let w=typeof p=="number"?`calc(${Pe}px - ${c.offsetWidth/2}px)`:"";f=typeof u=="number"?`calc(${Pe}px - ${c.offsetWidth/2}px)`:"",b=g?w:"",v=g?"":w}else if(m==="end"){let w=typeof p=="number"?`calc(${Pe}px - ${c.offsetWidth/2}px)`:"";b=g?"":w,v=g?w:"",h=typeof u=="number"?`calc(${Pe}px - ${c.offsetWidth/2}px)`:""}else v=typeof p=="number"?`${p}px`:"",f=typeof u=="number"?`${u}px`:"";Object.assign(c.style,{top:f,right:b,bottom:h,left:v}),Lo(c,So(d),d)}}),e}import{property as L}from"lit/decorators.js";import{ifDefined as Jo}from"lit/directives/if-defined.js";var Do=["en","nb","fi","da","sv"],nr="en",or=e=>Do.find(t=>e===t||e.toLowerCase().includes(t))||nr;function zo(){if(typeof window=="undefined"){let e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return or(e)}try{let e=document.documentElement.lang;return or(e)}catch(e){return console.warn("could not detect locale, falling back to source locale",e),nr}}var Ro=(e,t,r,o,n,a)=>e==="nb"?r:e==="fi"?o:e==="da"?n:e==="sv"?a:t,ir=(e,t,r,o,n)=>{let a=zo(),i=Ro(a,e,t,r,o,n);y.load(a,i),y.activate(a)};import{css as ar}from"lit";var sr=ar`
|
|
11
11
|
*,
|
|
12
12
|
:before,
|
|
13
13
|
:after {
|
|
@@ -280,7 +280,7 @@ Please compile your catalog first.
|
|
|
280
280
|
svg {
|
|
281
281
|
pointer-events: none;
|
|
282
282
|
}
|
|
283
|
-
`,
|
|
283
|
+
`,Sn=ar`*, :before, :after {
|
|
284
284
|
--w-rotate: 0;
|
|
285
285
|
--w-rotate-x: 0;
|
|
286
286
|
--w-rotate-y: 0;
|
|
@@ -2446,7 +2446,7 @@ Please compile your catalog first.
|
|
|
2446
2446
|
display: none
|
|
2447
2447
|
}
|
|
2448
2448
|
}
|
|
2449
|
-
`;import{classMap as
|
|
2449
|
+
`;import{classMap as zn}from"lit/directives/class-map.js";function lr(){return`m${Math.random().toString(36).slice(2)}`}import{css as To}from"lit";var cr=To`
|
|
2450
2450
|
.place-self-auto {
|
|
2451
2451
|
place-self: auto;
|
|
2452
2452
|
}
|
|
@@ -3346,32 +3346,32 @@ Please compile your catalog first.
|
|
|
3346
3346
|
padding-top: 4rem;
|
|
3347
3347
|
padding-bottom: 4rem;
|
|
3348
3348
|
}
|
|
3349
|
-
`;var cr=JSON.parse('{"attention.aria.callout":["En gr\xF8n taleboble der introducerer noget nyt"],"attention.aria.close":["Luk"],"attention.aria.highlight":["En opm\xE6rksomhedsskabende taleboble med vigtig information"],"attention.aria.pointingDown":["peger nedad"],"attention.aria.pointingLeft":["peger til venstre"],"attention.aria.pointingRight":["peger til h\xF8jre"],"attention.aria.pointingUp":["peger opad"],"attention.aria.popover":["En hvid taleboble med mere information"],"attention.aria.tooltip":["En sort taleboble med flere oplysninger"]}');var dr=JSON.parse('{"attention.aria.callout":["A green speech bubble introducing something new"],"attention.aria.close":["Close"],"attention.aria.highlight":["An attention speech bubble with important information"],"attention.aria.pointingDown":["pointing down"],"attention.aria.pointingLeft":["pointing left"],"attention.aria.pointingRight":["pointing right"],"attention.aria.pointingUp":["pointing up"],"attention.aria.popover":["A white speech bubble providing additional information"],"attention.aria.tooltip":["A black speech bubble providing complementary information"]}');var pr=JSON.parse('{"attention.aria.callout":["Vihre\xE4 puhekupla, joka esittelee jotain uutta"],"attention.aria.close":["Sulje"],"attention.aria.highlight":["Puhekupla, joka sis\xE4lt\xE4\xE4 t\xE4rke\xE4\xE4 tietoa"],"attention.aria.pointingDown":["osoittaa alas"],"attention.aria.pointingLeft":["osoittaa vasemmalle"],"attention.aria.pointingRight":["osoittaa oikealle"],"attention.aria.pointingUp":["osoittaa yl\xF6s"],"attention.aria.popover":["Valkoinen puhekupla, joka tarjoaa lis\xE4tietoa"],"attention.aria.tooltip":["Musta puhekupla, joka tarjoaa t\xE4ydent\xE4v\xE4\xE4 tietoa"]}');var gr=JSON.parse('{"attention.aria.callout":["Gr\xF8nn taleboble som introduserer noe nytt"],"attention.aria.close":["Lukk"],"attention.aria.highlight":["En uthevet taleboble med viktig informasjon"],"attention.aria.pointingDown":["peker ned"],"attention.aria.pointingLeft":["peker til venstre"],"attention.aria.pointingRight":["peker til h\xF8yre"],"attention.aria.pointingUp":["peker opp"],"attention.aria.popover":["En hvit taleboble som gir tilleggsinformasjon"],"attention.aria.tooltip":["En svart taleboble som forklarer konteksten"]}');var mr=JSON.parse('{"attention.aria.callout":["En gr\xF6n pratbubbla som introducerar n\xE5got nytt"],"attention.aria.close":["St\xE4ng"],"attention.aria.highlight":["En pratbubbla med viktig information"],"attention.aria.pointingDown":["pekar ned"],"attention.aria.pointingLeft":["pekar v\xE4nster"],"attention.aria.pointingRight":["pekar h\xF6ger"],"attention.aria.pointingUp":["pekar upp"],"attention.aria.popover":["En vit pratbubbla som ger ytterligare information"],"attention.aria.tooltip":["En svart pratbubbla som ger kompletterande information"]}');import{css as Ro}from"lit";var ur=Ro`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.hover\\:bg-clip-padding:hover{-webkit-background-clip:padding-box;background-clip:padding-box}.bg-transparent{background-color:#0000}.bg-\\[--w-color-button-primary-background\\]{background-color:var(--w-color-button-primary-background)}.bg-\\[--w-color-callout-background\\]{background-color:var(--w-color-callout-background)}.bg-\\[--w-s-color-surface-elevated-300\\]{background-color:var(--w-s-color-surface-elevated-300)}.hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover{background-color:var(--w-color-button-pill-background-hover)}.hover\\:bg-\\[--w-color-button-primary-background-hover\\]:hover{background-color:var(--w-color-button-primary-background-hover)}.active\\:bg-\\[--w-color-button-pill-background-active\\]:active{background-color:var(--w-color-button-pill-background-active)}.active\\:bg-\\[--w-color-button-primary-background-active\\]:active{background-color:var(--w-color-button-primary-background-active)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-b-0{border-bottom-width:0}.border-r-0{border-right-width:0}.border-\\[--w-color-callout-border\\]{border-color:var(--w-color-callout-border)}.border-\\[--w-s-color-background-inverted\\]{border-color:var(--w-s-color-background-inverted)}.border-\\[--w-s-color-surface-elevated-300\\]{border-color:var(--w-s-color-surface-elevated-300)}.border-solid{border-style:solid}.rounded-4{border-radius:4px}.rounded-8{border-radius:8px}.rounded-full{border-radius:9999px}.rounded-tl-4{border-top-left-radius:4px}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.contents{display:contents}.hidden{display:none}.hover\\:underline:hover,.focus\\:underline:focus,.active\\:underline:active{text-decoration-line:underline}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-start{align-items:flex-start}.items-center{align-items:center}.-bottom-\\[8px\\]{bottom:-8px}.-left-\\[8px\\]{left:-8px}.-right-\\[8px\\]{right:-8px}.-top-\\[8px\\]{top:-8px}.justify-center{justify-content:center}.justify-self-end{justify-self:end}.absolute{position:absolute}.relative{position:relative}.static{position:static}.z-50{z-index:50}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-inverted{background-color:var(--w-s-color-background-inverted)}.s-bg-negative{background-color:var(--w-s-color-background-negative)}.s-bg-subtle{background-color:var(--w-s-color-background-subtle)}.hover\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\:s-bg-negative-hover:hover{background-color:var(--w-s-color-background-negative-hover)}.hover\\:s-bg-negative-subtle-hover:hover{background-color:var(--w-s-color-background-negative-subtle-hover)}.active\\:s-bg-active:active{background-color:var(--w-s-color-background-active)}.active\\:s-bg-negative-active:active{background-color:var(--w-s-color-background-negative-active)}.active\\:s-bg-negative-subtle-active:active{background-color:var(--w-s-color-background-negative-subtle-active)}.s-text{color:var(--w-s-color-text)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.s-text-inverted-static{color:var(--w-s-color-text-inverted-static)}.s-text-link{color:var(--w-s-color-text-link)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-icon{color:var(--w-s-color-icon)}.hover\\:s-icon-hover:hover{color:var(--w-s-color-icon-hover)}.active\\:s-icon-active:active{color:var(--w-s-color-icon-active)}.s-border{border-color:var(--w-s-color-border)}.hover\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.active\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.drop-shadow-m{filter:drop-shadow(0 3px 8px #4040403d)drop-shadow(0 3px 6px #40404029)}.shadow-m{box-shadow:var(--w-shadow-m)}.h-\\[14px\\]{height:14px}.w-\\[14px\\]{width:14px}.-mr-8{margin-right:-.8rem}.last-child\\:mb-0>:last-child{margin-bottom:0}.ml-8{margin-left:.8rem}.p-16{padding:1.6rem}.p-4{padding:.4rem}.px-16{padding-left:1.6rem;padding-right:1.6rem}.px-8{padding-left:.8rem;padding-right:.8rem}.py-6{padding-top:.6rem;padding-bottom:.6rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.font-bold{font-weight:700}.resize{resize:both}.translate-z-0{--w-translate-z:0rem;transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transform{transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-\\[24\\]{line-height:2.4rem}`;import{LitElement as To}from"lit";import{unsafeStatic as Po,html as Mo}from"lit/static-html.js";var jo=JSON.parse('{"icon.title.close":["Kryss"]}'),$o=JSON.parse('{"icon.title.close":["Cross"]}'),No=JSON.parse('{"icon.title.close":["Rasti"]}'),Fo=JSON.parse('{"icon.title.close":["Kryds"]}'),Bo=JSON.parse('{"icon.title.close":["Kryss"]}'),fr=["en","nb","fi","da","sv"],br="en",Ho=()=>{var e;let t;switch((e=process==null?void 0:process.env)==null?void 0:e.NMP_BRAND){case"FINN":t="nb";break;case"TORI":t="fi";break;case"BLOCKET":t="sv";break;case"DBA":t="da";break;default:t="en"}return t},hr=()=>{var e;let t=(e=document==null?void 0:document.location)==null?void 0:e.hostname;return t!=null&&t.includes("finn")?"nb":t.includes("tori")?"fi":t.includes("blocket")?"sv":t.includes("dba")?"da":br},it=e=>fr.find(t=>e===t||e.toLowerCase().includes(t))||hr();function Yo(){var e;if(typeof window=="undefined"){let t=Ho();return it(t)}try{let t=(e=document==null?void 0:document.documentElement)==null?void 0:e.lang,r=hr();return fr.includes(t)?it(t!=null?t:r):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),it(r))}catch(t){return console.warn("could not detect locale, falling back to source locale",t),br}}var Io=(e,t,r,o,n,a)=>e==="nb"?r:e==="fi"?o:e==="da"?n:e==="sv"?a:t,Uo=(e,t,r,o,n)=>{let a=Yo(),i=Io(a,e,t,r,o,n);y.load(a,i),y.activate(a)};Uo($o,jo,No,Fo,Bo);var Xo=class extends To{render(){let e=y.t({message:"Cross",id:"icon.title.close",comment:"Title for close icon"});return Mo`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-close-16-part">${Po(`<title>${e}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m12.5 3.5-9 9m0-9 9 9"></path></svg>`}};customElements.get("w-icon-close-16")||customElements.define("w-icon-close-16",Xo);var Jo={medium:"text-m leading-[24]",xsmall:"text-xs"},wr={primary:"s-text-inverted bg-[--w-color-button-primary-background] hover:bg-[--w-color-button-primary-background-hover] active:bg-[--w-color-button-primary-background-active]",secondary:"s-text-link s-border s-bg hover:s-bg-hover hover:s-border-hover active:s-bg-active",utility:"s-text s-bg hover:s-bg-hover active:s-bg-active s-border hover:s-border-hover active:s-border-active",destructive:"s-bg-negative s-text-inverted hover:s-bg-negative-hover active:s-bg-negative-active",pill:"s-icon hover:s-icon-hover active:s-icon-active bg-transparent hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]",disabled:"s-text-inverted s-bg-disabled",quiet:"bg-transparent s-text-link hover:s-bg-hover active:s-bg-active",utilityQuiet:"s-text bg-transparent hover:s-bg-hover active:s-bg-active",negativeQuiet:"bg-transparent s-text-negative hover:s-bg-negative-subtle-hover active:s-bg-negative-subtle-active",loading:"s-text s-bg-subtle",link:"s-text-link"},xe="font-bold focusable justify-center transition-colors ease-in-out",Wo={primary:`border-0 rounded-8 ${xe}`,secondary:`border-2 rounded-8 ${xe}`,utility:`border rounded-4 ${xe}`,negative:`border-0 rounded-8 ${xe}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${xe}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline focus:underline ${wr.link}`},me={base:"border-2 relative flex items-start",tooltip:"s-bg-inverted border-[--w-s-color-background-inverted] shadow-m s-text-inverted-static rounded-4 py-6 px-8",callout:"bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8",highlight:"bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8 drop-shadow-m translate-z-0",popover:"bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300] s-text rounded-8 p-16 drop-shadow-m translate-z-0",arrowBase:"absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",arrowDirectionLeftStart:"-left-[8px]",arrowDirectionLeft:"-left-[8px]",arrowDirectionLeftEnd:"-left-[8px]",arrowDirectionRightStart:"-right-[8px]",arrowDirectionRight:"-right-[8px]",arrowDirectionRightEnd:"-right-[8px]",arrowDirectionBottomStart:"-bottom-[8px]",arrowDirectionBottom:"-bottom-[8px]",arrowDirectionBottomEnd:"-bottom-[8px]",arrowDirectionTopStart:"-top-[8px]",arrowDirectionTop:"-top-[8px]",arrowDirectionTopEnd:"-top-[8px]",arrowTooltip:"s-bg-inverted border-[--w-s-color-background-inverted]",arrowCallout:"bg-[--w-color-callout-background] border-[--w-color-callout-border]",arrowPopover:"bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300]",arrowHighlight:"bg-[--w-color-callout-background] border-[--w-color-callout-border]",content:"last-child:mb-0",notCallout:"absolute z-50",closeBtn:`${Jo.medium} ${Wo.pill} ${wr.pill} justify-self-end -mr-8 ml-8`},k=class extends Zo{constructor(){super(),nr(dr,gr,pr,cr,mr),this.handleDone=this.handleDone.bind(this),this.show=!1,this.placement="bottom",this.tooltip=!1,this.callout=!1,this.popover=!1,this.highlight=!1,this.canClose=!1,this.noArrow=!1,this.distance=8,this.skidding=0,this.flip=!1,this.crossAxis=!1,this._initialPlacement=this.placement,this._actualDirection=this.placement}connectedCallback(){if(super.connectedCallback(),this.placement&&!Object.keys(se).includes(this.placement))throw new Error(`Invalid "placement" attribute. Set its value to one of the following:
|
|
3349
|
+
`;var dr=JSON.parse('{"attention.aria.callout":["En gr\xF8n taleboble der introducerer noget nyt"],"attention.aria.close":["Luk"],"attention.aria.highlight":["En opm\xE6rksomhedsskabende taleboble med vigtig information"],"attention.aria.pointingDown":["peger nedad"],"attention.aria.pointingLeft":["peger til venstre"],"attention.aria.pointingRight":["peger til h\xF8jre"],"attention.aria.pointingUp":["peger opad"],"attention.aria.popover":["En hvid taleboble med mere information"],"attention.aria.tooltip":["En sort taleboble med flere oplysninger"]}');var pr=JSON.parse('{"attention.aria.callout":["A green speech bubble introducing something new"],"attention.aria.close":["Close"],"attention.aria.highlight":["An attention speech bubble with important information"],"attention.aria.pointingDown":["pointing down"],"attention.aria.pointingLeft":["pointing left"],"attention.aria.pointingRight":["pointing right"],"attention.aria.pointingUp":["pointing up"],"attention.aria.popover":["A white speech bubble providing additional information"],"attention.aria.tooltip":["A black speech bubble providing complementary information"]}');var gr=JSON.parse('{"attention.aria.callout":["Vihre\xE4 puhekupla, joka esittelee jotain uutta"],"attention.aria.close":["Sulje"],"attention.aria.highlight":["Puhekupla, joka sis\xE4lt\xE4\xE4 t\xE4rke\xE4\xE4 tietoa"],"attention.aria.pointingDown":["osoittaa alas"],"attention.aria.pointingLeft":["osoittaa vasemmalle"],"attention.aria.pointingRight":["osoittaa oikealle"],"attention.aria.pointingUp":["osoittaa yl\xF6s"],"attention.aria.popover":["Valkoinen puhekupla, joka tarjoaa lis\xE4tietoa"],"attention.aria.tooltip":["Musta puhekupla, joka tarjoaa t\xE4ydent\xE4v\xE4\xE4 tietoa"]}');var mr=JSON.parse('{"attention.aria.callout":["Gr\xF8nn taleboble som introduserer noe nytt"],"attention.aria.close":["Lukk"],"attention.aria.highlight":["En uthevet taleboble med viktig informasjon"],"attention.aria.pointingDown":["peker ned"],"attention.aria.pointingLeft":["peker til venstre"],"attention.aria.pointingRight":["peker til h\xF8yre"],"attention.aria.pointingUp":["peker opp"],"attention.aria.popover":["En hvit taleboble som gir tilleggsinformasjon"],"attention.aria.tooltip":["En svart taleboble som forklarer konteksten"]}');var ur=JSON.parse('{"attention.aria.callout":["En gr\xF6n pratbubbla som introducerar n\xE5got nytt"],"attention.aria.close":["St\xE4ng"],"attention.aria.highlight":["En pratbubbla med viktig information"],"attention.aria.pointingDown":["pekar ned"],"attention.aria.pointingLeft":["pekar v\xE4nster"],"attention.aria.pointingRight":["pekar h\xF6ger"],"attention.aria.pointingUp":["pekar upp"],"attention.aria.popover":["En vit pratbubbla som ger ytterligare information"],"attention.aria.tooltip":["En svart pratbubbla som ger kompletterande information"]}');import{css as Mo}from"lit";var fr=Mo`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.hover\\:bg-clip-padding:hover{-webkit-background-clip:padding-box;background-clip:padding-box}.bg-transparent{background-color:#0000}.bg-\\[--w-color-button-primary-background\\]{background-color:var(--w-color-button-primary-background)}.bg-\\[--w-color-callout-background\\]{background-color:var(--w-color-callout-background)}.bg-\\[--w-s-color-surface-elevated-300\\]{background-color:var(--w-s-color-surface-elevated-300)}.hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover{background-color:var(--w-color-button-pill-background-hover)}.hover\\:bg-\\[--w-color-button-primary-background-hover\\]:hover{background-color:var(--w-color-button-primary-background-hover)}.active\\:bg-\\[--w-color-button-pill-background-active\\]:active{background-color:var(--w-color-button-pill-background-active)}.active\\:bg-\\[--w-color-button-primary-background-active\\]:active{background-color:var(--w-color-button-primary-background-active)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-b-0{border-bottom-width:0}.border-r-0{border-right-width:0}.border-\\[--w-color-callout-border\\]{border-color:var(--w-color-callout-border)}.border-\\[--w-s-color-background-inverted\\]{border-color:var(--w-s-color-background-inverted)}.border-\\[--w-s-color-surface-elevated-300\\]{border-color:var(--w-s-color-surface-elevated-300)}.border-solid{border-style:solid}.rounded-4{border-radius:4px}.rounded-8{border-radius:8px}.rounded-full{border-radius:9999px}.rounded-tl-4{border-top-left-radius:4px}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.contents{display:contents}.hidden{display:none}.hover\\:underline:hover,.focus\\:underline:focus,.active\\:underline:active{text-decoration-line:underline}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-start{align-items:flex-start}.items-center{align-items:center}.-bottom-\\[8px\\]{bottom:-8px}.-left-\\[8px\\]{left:-8px}.-right-\\[8px\\]{right:-8px}.-top-\\[8px\\]{top:-8px}.justify-center{justify-content:center}.justify-self-end{justify-self:end}.absolute{position:absolute}.relative{position:relative}.static{position:static}.z-50{z-index:50}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-inverted{background-color:var(--w-s-color-background-inverted)}.s-bg-negative{background-color:var(--w-s-color-background-negative)}.s-bg-subtle{background-color:var(--w-s-color-background-subtle)}.hover\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\:s-bg-negative-hover:hover{background-color:var(--w-s-color-background-negative-hover)}.hover\\:s-bg-negative-subtle-hover:hover{background-color:var(--w-s-color-background-negative-subtle-hover)}.active\\:s-bg-active:active{background-color:var(--w-s-color-background-active)}.active\\:s-bg-negative-active:active{background-color:var(--w-s-color-background-negative-active)}.active\\:s-bg-negative-subtle-active:active{background-color:var(--w-s-color-background-negative-subtle-active)}.s-text{color:var(--w-s-color-text)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.s-text-inverted-static{color:var(--w-s-color-text-inverted-static)}.s-text-link{color:var(--w-s-color-text-link)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-icon{color:var(--w-s-color-icon)}.hover\\:s-icon-hover:hover{color:var(--w-s-color-icon-hover)}.active\\:s-icon-active:active{color:var(--w-s-color-icon-active)}.s-border{border-color:var(--w-s-color-border)}.hover\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.active\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.drop-shadow-m{filter:drop-shadow(0 3px 8px #4040403d)drop-shadow(0 3px 6px #40404029)}.shadow-m{box-shadow:var(--w-shadow-m)}.h-\\[14px\\]{height:14px}.w-\\[14px\\]{width:14px}.-mr-8{margin-right:-.8rem}.last-child\\:mb-0>:last-child{margin-bottom:0}.ml-8{margin-left:.8rem}.p-16{padding:1.6rem}.p-4{padding:.4rem}.px-16{padding-left:1.6rem;padding-right:1.6rem}.px-8{padding-left:.8rem;padding-right:.8rem}.py-6{padding-top:.6rem;padding-bottom:.6rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.font-bold{font-weight:700}.resize{resize:both}.translate-z-0{--w-translate-z:0rem;transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transform{transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-\\[24\\]{line-height:2.4rem}`;import{LitElement as Po}from"lit";import{unsafeStatic as jo,html as $o}from"lit/static-html.js";var No=JSON.parse('{"icon.title.close":["Kryss"]}'),Fo=JSON.parse('{"icon.title.close":["Cross"]}'),Bo=JSON.parse('{"icon.title.close":["Rasti"]}'),Ho=JSON.parse('{"icon.title.close":["Kryds"]}'),Io=JSON.parse('{"icon.title.close":["Kryss"]}'),br=["en","nb","fi","da","sv"],hr="en",Yo=()=>{var e;let t;switch((e=process==null?void 0:process.env)==null?void 0:e.NMP_BRAND){case"FINN":t="nb";break;case"TORI":t="fi";break;case"BLOCKET":t="sv";break;case"DBA":t="da";break;default:t="en"}return t},vr=()=>{var e;let t=(e=document==null?void 0:document.location)==null?void 0:e.hostname;return t!=null&&t.includes("finn")?"nb":t.includes("tori")?"fi":t.includes("blocket")?"sv":t.includes("dba")?"da":hr},it=e=>br.find(t=>e===t||e.toLowerCase().includes(t))||vr();function Xo(){var e;if(typeof window=="undefined"){let t=Yo();return it(t)}try{let t=(e=document==null?void 0:document.documentElement)==null?void 0:e.lang,r=vr();return br.includes(t)?it(t!=null?t:r):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),it(r))}catch(t){return console.warn("could not detect locale, falling back to source locale",t),hr}}var Uo=(e,t,r,o,n,a)=>e==="nb"?r:e==="fi"?o:e==="da"?n:e==="sv"?a:t,Vo=(e,t,r,o,n)=>{let a=Xo(),i=Uo(a,e,t,r,o,n);y.load(a,i),y.activate(a)};Vo(Fo,No,Bo,Ho,Io);var Zo=class extends Po{render(){let e=y.t({message:"Cross",id:"icon.title.close",comment:"Title for close icon"});return $o`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-close-16-part">${jo(`<title>${e}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m12.5 3.5-9 9m0-9 9 9"></path></svg>`}};customElements.get("w-icon-close-16")||customElements.define("w-icon-close-16",Zo);var Ko={medium:"text-m leading-[24]",xsmall:"text-xs"},xr={primary:"s-text-inverted bg-[--w-color-button-primary-background] hover:bg-[--w-color-button-primary-background-hover] active:bg-[--w-color-button-primary-background-active]",secondary:"s-text-link s-border s-bg hover:s-bg-hover hover:s-border-hover active:s-bg-active",utility:"s-text s-bg hover:s-bg-hover active:s-bg-active s-border hover:s-border-hover active:s-border-active",destructive:"s-bg-negative s-text-inverted hover:s-bg-negative-hover active:s-bg-negative-active",pill:"s-icon hover:s-icon-hover active:s-icon-active bg-transparent hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]",disabled:"s-text-inverted s-bg-disabled",quiet:"bg-transparent s-text-link hover:s-bg-hover active:s-bg-active",utilityQuiet:"s-text bg-transparent hover:s-bg-hover active:s-bg-active",negativeQuiet:"bg-transparent s-text-negative hover:s-bg-negative-subtle-hover active:s-bg-negative-subtle-active",loading:"s-text s-bg-subtle",link:"s-text-link"},xe="font-bold focusable justify-center transition-colors ease-in-out",Go={primary:`border-0 rounded-8 ${xe}`,secondary:`border-2 rounded-8 ${xe}`,utility:`border rounded-4 ${xe}`,negative:`border-0 rounded-8 ${xe}`,pill:`p-4 rounded-full border-0 inline-flex items-center justify-center hover:bg-clip-padding ${xe}`,link:`bg-transparent focusable ease-in-out inline active:underline hover:underline focus:underline ${xr.link}`},me={base:"border-2 relative flex items-start",tooltip:"s-bg-inverted border-[--w-s-color-background-inverted] shadow-m s-text-inverted-static rounded-4 py-6 px-8",callout:"bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8",highlight:"bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8 drop-shadow-m translate-z-0",popover:"bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300] s-text rounded-8 p-16 drop-shadow-m translate-z-0",arrowBase:"absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",arrowDirectionLeftStart:"-left-[8px]",arrowDirectionLeft:"-left-[8px]",arrowDirectionLeftEnd:"-left-[8px]",arrowDirectionRightStart:"-right-[8px]",arrowDirectionRight:"-right-[8px]",arrowDirectionRightEnd:"-right-[8px]",arrowDirectionBottomStart:"-bottom-[8px]",arrowDirectionBottom:"-bottom-[8px]",arrowDirectionBottomEnd:"-bottom-[8px]",arrowDirectionTopStart:"-top-[8px]",arrowDirectionTop:"-top-[8px]",arrowDirectionTopEnd:"-top-[8px]",arrowTooltip:"s-bg-inverted border-[--w-s-color-background-inverted]",arrowCallout:"bg-[--w-color-callout-background] border-[--w-color-callout-border]",arrowPopover:"bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300]",arrowHighlight:"bg-[--w-color-callout-background] border-[--w-color-callout-border]",content:"last-child:mb-0",notCallout:"absolute z-50",closeBtn:`${Ko.medium} ${Go.pill} ${xr.pill} justify-self-end -mr-8 ml-8`},k=class extends Wo{constructor(){super(),ir(pr,mr,gr,dr,ur),this.handleDone=this.handleDone.bind(this),this.show=!1,this.placement="bottom",this.tooltip=!1,this.callout=!1,this.popover=!1,this.highlight=!1,this.canClose=!1,this.noArrow=!1,this.distance=8,this.skidding=0,this.flip=!1,this.crossAxis=!1,this._initialPlacement=this.placement,this._actualDirection=this.placement}connectedCallback(){if(super.connectedCallback(),this.placement&&!Object.keys(se).includes(this.placement))throw new Error(`Invalid "placement" attribute. Set its value to one of the following:
|
|
3350
3350
|
${JSON.stringify(Object.keys(se))}`);if(this.fallbackPlacements&&!this.fallbackPlacements.every(t=>rt.includes(t)))throw new Error(`Invalid "fallbackPlacements" attribute. Set its value to an array with one or more of the following:
|
|
3351
3351
|
${JSON.stringify(rt)}`);setTimeout(()=>{this.requestUpdate(),this.handleDone()},0),this.callout||(window.addEventListener("click",this.handleDone),window.addEventListener("scroll",this.handleDone),window.addEventListener("resize",this.handleDone),window.addEventListener("touch",this.handleDone)),this.tooltip&&(window.addEventListener("mouseover",this.handleDone),window.addEventListener("mouseout",this.handleDone))}disconnectedCallback(){window.removeEventListener("click",this.handleDone),window.removeEventListener("scroll",this.handleDone),window.removeEventListener("resize",this.handleDone),window.removeEventListener("touch",this.handleDone),window.removeEventListener("mouseover",this.handleDone),window.removeEventListener("mouseout",this.handleDone),super.disconnectedCallback()}handleDone(){window.requestAnimationFrame(()=>{this.show&&this._targetEl&&this._attentionEl?nt(this.attentionState).then(t=>{this._actualDirection=t==null?void 0:t.actualDirection}):this._actualDirection=this._initialPlacement})}get _actualDirection(){return this.placement}set _actualDirection(t){this.placement=t}get _arrowEl(){return this.renderRoot.querySelector("#arrow")}get _arrowDirection(){return se[this._actualDirection]}get _arrowClasses(){return ye([me.arrowBase,this._activeVariantClasses.arrow,me[`arrowDirection${ot(this._arrowDirection)}`]])}get _arrowHtml(){return this.noArrow?"":ge`<div id="arrow" class="${this._arrowClasses}"></div>`}get _activeVariantClasses(){let t={callout:this.callout,popover:this.popover,tooltip:this.tooltip,highlight:this.highlight},r=Object.keys(t).find(o=>!!t[o])||"";return{wrapper:me[r],arrow:me[`arrow${r.charAt(0).toUpperCase()+r.slice(1)}`]}}get _attentionEl(){return this.renderRoot.querySelector("#attention")}get _targetEl(){var r;let t=(r=this.renderRoot)==null?void 0:r.querySelector("slot[name='target']");return t?t.assignedElements()[0]:null}get _messageEl(){let t=this.renderRoot.querySelector("slot[name='message']");return t?t.assignedElements()[0]:null}get _wrapperClasses(){return ye([me.base,this._activeVariantClasses.wrapper])}get _ariaClose(){return y._({id:"attention.aria.close",message:"Close",comment:"Aria label for the close button in attention"})}get _closeBtnHtml(){return ge`
|
|
3352
3352
|
<button aria-label="${this._ariaClose}" @click="${this.close}" @keydown=${this.keypressed} class="${me.closeBtn}">
|
|
3353
3353
|
<w-icon-close-16 style="height: 16px; width: 16px; display: flex;"></w-icon-close-16>
|
|
3354
3354
|
</button>
|
|
3355
|
-
`}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._arrowEl,attentionEl:this._attentionEl,targetEl:this._targetEl,noArrow:this.noArrow,distance:this.distance,skidding:this.skidding,flip:this.flip,crossAxis:this.crossAxis,fallbackPlacements:this.fallbackPlacements},nt(this.attentionState)}pointingAtDirection(){switch(se[this._actualDirection]){case"top-start":case"top":case"top-end":return y._({id:"attention.aria.pointingUp",message:"pointing up",comment:"Default screenreader message for top direction in the attention component"});case"right-start":case"right":case"right-end":return y._({id:"attention.aria.pointingRight",message:"pointing right",comment:"Default screenreader message for right direction in the attention component"});case"bottom-start":case"bottom":case"bottom-end":return y._({id:"attention.aria.pointingDown",message:"pointing down",comment:"Default screenreader message for bottom direction in the attention component"});case"left-start":case"left":case"left-end":return y._({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 y._({id:"attention.aria.tooltip",message:"tooltip",comment:"Default screenreader message for tooltip in the attention component"});case this.callout:return y._({id:"attention.aria.callout",message:"callout speech bubble",comment:"Default screenreader message for callout speech bubble in the attention component"});case this.popover:return y._({id:"attention.aria.popover",message:"popover speech bubble",comment:"Default screenreader message for popover speech bubble in the attention component"});case this.highlight:return y._({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=
|
|
3356
|
-
<div class=${
|
|
3355
|
+
`}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._arrowEl,attentionEl:this._attentionEl,targetEl:this._targetEl,noArrow:this.noArrow,distance:this.distance,skidding:this.skidding,flip:this.flip,crossAxis:this.crossAxis,fallbackPlacements:this.fallbackPlacements},nt(this.attentionState)}pointingAtDirection(){switch(se[this._actualDirection]){case"top-start":case"top":case"top-end":return y._({id:"attention.aria.pointingUp",message:"pointing up",comment:"Default screenreader message for top direction in the attention component"});case"right-start":case"right":case"right-end":return y._({id:"attention.aria.pointingRight",message:"pointing right",comment:"Default screenreader message for right direction in the attention component"});case"bottom-start":case"bottom":case"bottom-end":return y._({id:"attention.aria.pointingDown",message:"pointing down",comment:"Default screenreader message for bottom direction in the attention component"});case"left-start":case"left":case"left-end":return y._({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 y._({id:"attention.aria.tooltip",message:"tooltip",comment:"Default screenreader message for tooltip in the attention component"});case this.callout:return y._({id:"attention.aria.callout",message:"callout speech bubble",comment:"Default screenreader message for callout speech bubble in the attention component"});case this.popover:return y._({id:"attention.aria.popover",message:"popover speech bubble",comment:"Default screenreader message for popover speech bubble in the attention component"});case this.highlight:return y._({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=lr());this._targetEl.setAttribute("aria-details",t)}}firstUpdated(){this._initialPlacement=this.placement,this.setAriaLabels(),this.callout&&(this._attentionEl.style.position="relative")}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())}render(){return!this.callout&&this._targetEl===void 0?ge``:ge`
|
|
3356
|
+
<div class=${Jo(this.className?this.className:void 0)}>
|
|
3357
3357
|
${this.placement==="right-start"||this.placement==="right"||this.placement==="right-end"||this.placement==="bottom-start"||this.placement==="bottom"||this.placement==="bottom-end"?ge`
|
|
3358
3358
|
<slot name="target"></slot>
|
|
3359
3359
|
|
|
3360
3360
|
<div id="attention" class="${this._wrapperClasses}">
|
|
3361
3361
|
<div role="${this.tooltip?"tooltip":"img"}" aria-label="${this.defaultAriaLabel()}">${this._arrowHtml}</div>
|
|
3362
3362
|
<slot name="message"></slot>
|
|
3363
|
-
${this.canClose?this._closeBtnHtml:
|
|
3363
|
+
${this.canClose?this._closeBtnHtml:wr}
|
|
3364
3364
|
</div>
|
|
3365
3365
|
`:ge`
|
|
3366
3366
|
<div id="attention" class="${this._wrapperClasses}">
|
|
3367
3367
|
<slot name="message"></slot>
|
|
3368
3368
|
<div role="${this.tooltip?"tooltip":"img"}" aria-label="${this.defaultAriaLabel()}">${this._arrowHtml}</div>
|
|
3369
|
-
${this.canClose?this._closeBtnHtml:
|
|
3369
|
+
${this.canClose?this._closeBtnHtml:wr}
|
|
3370
3370
|
</div>
|
|
3371
3371
|
<slot name="target"></slot>
|
|
3372
3372
|
`}
|
|
3373
3373
|
</div>
|
|
3374
|
-
`}};k.styles=[
|
|
3374
|
+
`}};k.styles=[sr,cr,fr,qo`
|
|
3375
3375
|
#attention {
|
|
3376
3376
|
position: absolute;
|
|
3377
3377
|
z-index: 50;
|